News for hackers. Stuff that matters.

djblue

Re:My thoughts after using Clojure for about a month on Wednesday June 03, 2026 @05:01PM (#48389977)
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.
Re:My thoughts after using Clojure for about a month on Wednesday June 03, 2026 @04:56PM (#48389919)
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!
Re:Clojure Turns 15 panel discussion video on Monday February 13, 2023 @02:49PM (#34779249)
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.
Re:ClojureScript 1.10.844 on Tuesday April 06, 2021 @02:15PM (#26715364)
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).
Re:ClojureScript 1.10.844 on Tuesday April 06, 2021 @02:11PM (#26715315)
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!
Re:Espruino: JavaScript for Microcontrollers on Thursday October 15, 2020 @02:17AM (#24785434)
https://github.com/mfikes/esprit targets espruino from clojurescript.
Thanks!
https://github.com/djblue/portal - link to the source and usage instructions.
Re:Show HN: Tetris Implemented in ClojureScript on Saturday April 20, 2019 @06:47PM (#19709402)
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 :)
Re:Show HN: Tetris Implemented in ClojureScript on Saturday April 20, 2019 @02:39PM (#19708149)
Your project is substantially superior to mine. It looks so goooooood!
Re:Show HN: Tetris Implemented in ClojureScript on Saturday April 20, 2019 @02:35PM (#19708130)
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.
Re:Show HN: Tetris Implemented in ClojureScript on Saturday April 20, 2019 @02:29PM (#19708094)
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.
Re:Show HN: Tetris Implemented in ClojureScript on Saturday April 20, 2019 @02:13PM (#19707978)
Thanks!
Re:Way to store your dotfiles: A bare Git repository (2016) on Saturday April 06, 2019 @02:08PM (#19592139)
The reason I want to be able to have different files for different machines was to make slight variations to some of my dotfiles. I used to use branches but it was too much error prone work keeping all my branches up-to-date. I switched to a system where I template my dotfiles, but now I have to expand those templates for them to actually work. I do have leverage when to expand the templates and how to install them. There are a bunch of different ways to do this depending on what you want but what I ended up doing was:

1. Template files using a syntax that was easy find / replace using a regex. You could use an existing one if you like.

2. Generate a bash install script with all the file variants embedded as base64 strings. I can build this script locally, but I also have a travis ci build that pushes up the install.sh script as a gh-pages like branch.

3. I can now curl the install.sh script from any machine I want and bootstrap my dotfiles. The only install time dependencies are bash, curl, git, base64, mkdir, and echo so it's a very portable self-contained script.

4. During install time, I use a case on hostname to determine which files to use and I use git to put them into my $HOME directory using a similar strategy described by the article.

github: https://github.com/djblue/dotfiles install.sh: https://git.io/vxQ4g

Re:Chicken Scheme 5.0 on Thursday November 08, 2018 @11:04PM (#18412259)
This is the biggest value of structured data, as soon as you convert something to a string you have lost all your leverage.
Same here :(
Re:GNU Guile site redesign on Thursday November 05, 2015 @05:46PM (#10516673)
I think the consensus is that the site looks great... I have to agree :)
Re: on Monday November 17, 2014 @10:50PM (#8622282)
I don't think your link works. Sorry.
Re:Show HN: Setup a Ghost Blog Using Docker and Nginx on Monday November 17, 2014 @04:04AM (#8617424)
Thanks for the write up. I've been getting into docker lately and this is really useful.
agreed, but maybe easier without all the new.
Re:Show HN: The 3d universe of npm on Monday November 17, 2014 @03:52AM (#8617399)
This project is really cool! Well done.

Older »