News for hackers. Stuff that matters.

den1k

Re:Electric Clojure: unified fullstack application compiler on Monday February 13, 2023 @11:09AM (#34775346)
There is a client/server divide as you can see in the code examples. But I think the issue you're describing is a permissions problem, not a question of whether the compiler manages the network for you. There are traditional client/server apps with wide open permissions that allow all kinds of queries to pass through to a prod DB. Then again there are others that are heavily permissioned. Those are implementation details. If you _can_ control which code can run then you can write that code to _only_ run with certain constraints.
Re:Electric Clojure: unified fullstack application compiler on Monday February 13, 2023 @10:37AM (#34774771)
Small bugs overall, some of which the team already addressed. One Clojure specific that is outstanding is that dynamic variables are not rebound between electric and Clojure functions. Also, the compiler currently does not optimize the callstack so the whole app stream-renders in and out which has a cascading effect. None of these are deal breakers for me, they're being worked on and I'm glad the community can now help ship fixes and improvements.
Re:Electric Clojure: unified fullstack application compiler on Monday February 13, 2023 @10:16AM (#34774407)
Yes, literally anything on the backend.
Re:Electric Clojure: unified fullstack application compiler on Monday February 13, 2023 @10:14AM (#34774394)
Code is precompiled so you could add all your safeguards during compilation. Should not be too hard to enforce fo only precompiled code to run instead of exposing eval. However, I don't believe this is implemented at this stage.
Re:Electric Clojure: unified fullstack application compiler on Monday February 13, 2023 @10:11AM (#34774341)
I've been building with this for 2+ months. Debugging is fine (not great but when is it great? Especially in Clojure). It prints stacktraces in each env. Haven't found debugging harder than traditional client/server dev. But complexity has decreased thanks to it so less bugs.
Re:Electric Clojure: unified fullstack application compiler on Monday February 13, 2023 @10:09AM (#34774311)
I've been building with electric for several months now and it's hands down incredible! Why? I think most importantly because it allows for functional composition across the network (client/server–distributed systems more generally) while also ensuring payloads are as small as possible (only what functions in each env access) which translates to FAST.

IMO this is a paradigm shift similar to GC. No one wants to manage their garbage. No one wants to manage the network. It's grunt work. Let the compiler take care of it.

I've naively rewritten a re-frame (react/redux in js) app that started getting prohibitively slow due to a bunch of deserialization on the client in electric and the performance is outstanding! TBH I'm taking a break from additional UI work on the app to do research because I realized that with electric I can build something much more amazing than I thought possible before.

Caveat: the future will not be served on a silver platter. it's early days and there are some quirks

Re:Max Datom: Interactive Datomic Tutorial on Friday April 22, 2022 @02:20PM (#31125854)
if you don't need history, have a look at https://github.com/juji-io/datalevin
the example boosts with a technology that requires making 4 requests to show the UI?
Re:Ask HN: What are some of the best documentaries you've seen? on Friday September 28, 2018 @11:10AM (#18093999)
stewart brand how buildings learn - free on youtube: https://www.youtube.com/watch?v=AvEqfg2sIH0 (uploaded by the man himself)

Vimsical.com got Open Sourced

Vimsical is fine-grained version control system mainly built to record coding tutorials.demo: https://vimsical.com/vims/5969777d-8dae-48a6-8b6c-838928b59382code: https://github.com/vimsical/vimsical

( Read More... | no comments | on HN )