News for hackers. Stuff that matters.
Re:Joy: A maximalist web framework for Lisp aficionados by jpe90 on Tuesday June 07, 2022 @11:52AM (#31656126)
I don't really care about startup time personally but the linked page mentions "very low memory usage" which is quite a contrast with Clojure which seems to use insane amounts of memory for simple things.
Re:Joy: A maximalist web framework for Lisp aficionados by d_t_w on Tuesday June 07, 2022 @09:08PM (#31662059)
Do you have a reference for Clojure's 'insane amounts of memory' use?

Our product (https://kpow.io) is written in vanilla Clojure/Clojurescript, it will quite happily run with a 64MB heap for smaller workloads.

64Mb for a non-trivial full-stack enterprise-grade application with authentication enabled providing a rich UI and multiple asynchronous and/or scheduled background processes that monitor and manage Kafka resources. Sure we don't recommend running multi-cluster production workloads on a 64MB heap, but requiring further memory for real workloads has nothing to do with Clojure and we're a long way from 'insane' memory use, or doing simple things.

Re:Joy: A maximalist web framework for Lisp aficionados by d_t_w on Wednesday June 08, 2022 @12:59AM (#31663410)
RE: Clojure startup times, the full Kpow web app starts in ~7s.
Re:Joy: A maximalist web framework for Lisp aficionados by swlkr on Tuesday June 07, 2022 @12:57PM (#31657137)
I wrote janetdocs with joy and it's been running for quite a while on a pretty small VPS. htop shows RES memory usage as ~16MB and SHR as ~6MB, so it's anecdotal, but there's at least one data point.
Re:Joy: A maximalist web framework for Lisp aficionados by capableweb on Tuesday June 07, 2022 @12:29PM (#31656744)
I'm not saying it is using a low amount of memory, but I just fired up a new Clojure repl and it seems to end up using 90MiB memory once up and running. Is that what you'd call "insane amounts of memory"?

Maybe spending too much time in JavaScript-land has jaded my view of memory consumption.

Re:Joy: A maximalist web framework for Lisp aficionados by shakna on Tuesday June 07, 2022 @06:02PM (#31660586)
Janet, for comparison to that 90MiB will use something more like 16MiB. Using less than 20% of the overall memory footprint does make Clojure seem insane by comparison.
Re:Joy: A maximalist web framework for Lisp aficionados by joe_guy on Tuesday June 07, 2022 @10:50PM (#31662646)
How does that scale? I'm not worried about 60mb of ram in 2022. Is there a single like-like comparison of a complex application?