News for hackers. Stuff that matters.
Re:Electric Clojure: unified fullstack application compiler by dustingetz on Monday February 13, 2023 @12:24PM (#34776725)
(Founder here; I'll address the debugging concern in a separate comment)

Here's a demo of React.js interop via Reagent, the wrapper is 25 LOC: https://gist.github.com/dustingetz/9854d23037b55bfab3845539f...

Our DOM module is only 300 LOC - it's bare metal DOM point writes + Electric (reactive language) + macros for JSX-y syntax. When the programming language itself is reactive, DOM rendering falls out for free.

Mechanically, Electric is comparable to Solid.js except the reactive engine is general purpose and orthogonal. DOM rendering is a special case of incremental view maintenance.

Electric's reactive engine is https://github.com/leonoel/missionary ; Electric can be seen as a Clojure to Missionary compiler. Missionary is cross-platform functional effect and streaming system that today is tested on JVM, Node and Browser platforms. Missionary was created by Léo Noel, who is also the architect of Electric.

There are no comments on this comment yet.