djblue

Joined 13 years ago

Karma
106
Submissions
34
Member since
Sep 22
[ my public key: https://keybase.io/djblue; my proof: https://keybase.io/djblue/sigs/nHZQ2Dcxl-FlmpuNvvKBdhy7bUdRNMKA2NcIqJky1c8 ]
View on Hacker News

Recent submissions

Comment · 5 months ago
I think one of Clojure's main strengths for concurrency / parallelism is structural sharing of immutable data across threads, which you simply cannot do in Erlang.
Comment · 5 months ago
I build and maintain Portal, which runs on multiple platforms including: Clojure, Babashka, ClojureCLR, ClojureScript, nbb, joyride, basilisp and soon jank. The main thing that's different per platform is the os/fs/http/ws libraries but the runtime state and serialization is all the same and reused across all platforms. Also, recently I was able to get most of Portal's reagent viewers, which were designed primarily to run in a browser via ClojureScript, running on the JVM for Server Side Rendering. Clojure is the most portable language I have ever used!
Comment · 3 years ago
I think most programming communities experience fragmentation as they grow. I would say the javascript ecosystem has had an order of magnitude more fragmentation at every layer: package management, server, client, module specification. IMO this is the cost of progress.
Comment · 5 years ago
I would say so, I have implemented a pwa https://djblue.github.io/portal/ hosted via github pages for people to browse through their data-structures. You can also connect the ui to a live host and send it data directly with tap> (kinda like console.log in js).
Comment · 5 years ago
For me the real advantage is the shared information model with the backend that is trivial to serialize/de-serialize with something like transit-clj(s). It's like the benefit of js/node but with richer data structures: keywords, symbols, sets, maps with arbitrary keys, instants, uuids and extensibility via tagging. JSON is great, but EDN is so much better!
Comment · 6 years ago
https://github.com/mfikes/esprit targets espruino from clojurescript.
Comment · 6 years ago
Thanks!
Comment · 6 years ago
Thanks!
Comment · 6 years ago
https://github.com/djblue/portal - link to the source and usage instructions.
Comment · 7 years ago
Sweet! Thanks for sharing. I see you're using pure-store to manage your game state. My implementation also uses a redux pattern for state management :)
Comment · 7 years ago
Your project is substantially superior to mine. It looks so goooooood!
Comment · 7 years ago
Thanks! I really enjoyed the data modeling aspect of this project. I also ended up modeling the board as a mapping of [row, column] -> color which might be different from the traditional 2D array representation.
Comment · 7 years ago
Comment · 7 years ago
I was following https://tetris.com/play-tetris, but I would be down to change it. It messes me up when I use the HJKL mapping.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton