Hacker News new | ask | show | jobs
by capableweb 1530 days ago
This is very interesting to see, lots of fun use cases with Clojure + Flutter.

> no REPL yet

Seems the most vital part is missing so far, but impressive enough with this first version released. Something I personally I do when hacking on my own lisps (happens too often maybe), is implementing support for the nrepl protocol so I can use neovim + conjure with it as soon as possible, to help further the development of course :)

From "https://github.com/Tensegritics/ClojureDart/blob/main/doc/fl..."

> When you edit your cljd file, the watcher recompiles cljd files and, on success, hot reloads the application. Sometimes the application may not pick up your change so hit the return key to get the watcher to restart the application.

Is this something specific to ClojureDart, is it because of Dart or because of Flutter? If it's because ClojureDart, it's alright as the project seems to be in early stages, but if it's because of Dart/Flutter it doesn't bode well. I have almost zero experience with either Dart/Flutter so interested to hear where the problem lies.

2 comments

I haven't looked at ClojureDart, but Flutter/Dart certainly had excellent hot reload, usually maintaining state and so on. Perhaps it's just the immaturity of this project. I do remember the hot reload might not have worked like a file watcher? I vaguely remember I had to integrate a server call into vim or something on save, but it was a while ago.
ClojureDart co-author here. It happens in Dart too. Some changes are not compatible with the current application state. It may occur a bit more frequently because of Clojure being less stringent than dart about giving names to everything (which is tedious but definitely helps with hotreloading).