News for hackers. Stuff that matters.

newlisper

Re:Ask HN: Which stack for prototyping? on Monday April 19, 2021 @02:34PM (#26866381)
You can always ETL the latest value of the DB to a new DB/Schema
Re:Firefox 88.0 on Monday April 19, 2021 @12:36PM (#26864707)
Have they give up on dev tools?
Re:Ask HN: Which stack for prototyping? on Sunday April 18, 2021 @09:23PM (#26858288)
Clojure/Ring + Datomic + React
Re:From Vim to Emacs in fourteen days (2015) on Thursday March 11, 2021 @05:36PM (#26429887)
Nothing, if you are only concerned with text editing.
Re:From Vim to Emacs in fourteen days (2015) on Thursday March 11, 2021 @05:34PM (#26429869)
FWIW, I use emacs(with evil) inside tmux, so you can keep your flow if you are willing to invest in the transition.
Re:Immutable Approaches on Monday March 08, 2021 @06:08PM (#26392906)
I suppose it’s all a trade off. The pain of jumping through hoops with the libraries mentioned above

With no libraries, modern JS makes being "diligent about immutability (as the article puts it)" straight forward, making the benefits of something like Clojure very small and not worth it for the majority of projects. Having immutability by default pales in comparison to the benefits of using mainstream languages with big ecosystems IMO.

Re:-2000 Lines of Code on Monday March 08, 2021 @01:32PM (#26389578)
Use Java, problem solved.
Re:Reflections on IDEA vs VS Code on Saturday March 06, 2021 @03:20PM (#26370223)
Yep, can't use them because I have 4GB RAM macbook air.
Re:Reflections on IDEA vs VS Code on Saturday March 06, 2021 @03:03PM (#26370075)
In my opinion, the Emacs/Vim communities clearly missed a golden opportunity for a more larger adoption.

They just copy their init.el/vimrc to the server, Emacs/Vim users have been able to do this (coding on remote environments without all the kludges) since forever ;) and personally, I find it superior to vscoce's remote plugin since your editor and tools sit on the same machine.

For GUI editors, I agree that vscode's remote development extension is a killer feature and nothing can't match it today.

Re:Reflections on IDEA vs VS Code on Saturday March 06, 2021 @02:39PM (#26369900)
Actually, Microsoft cares a lot about Java and they invest resources on it. Why? azure

https://devblogs.microsoft.com/java/

Re:Clojure from a Schemer's Perspective on Friday March 05, 2021 @12:06PM (#26359137)
so I'm curious what's going on under the hood

https://en.wikipedia.org/wiki/Persistent_data_structure

Maybe GC is just a lot better than I think.

Yes, Clojure relies heavily on the JVM's GC being very good. It trashes it like there is no tomorrow and it would be a lot of work and extremely hard for an implementation of Clojure from scratch to match the performance of Clojure in the JVM because of how good the JVM's GC is.

Having said that, I have move 3 projects (10k-20k LoC) to JS from Clojure and don't plan creating new ones in Clojure, the JS projects ended up being faster, shorter and easier to understand. Idiomatic Clojure is very slow, as soon as you want to squeeze any little performance out it your code base will get ugly really fast. Learning Clojure is nice for the insights but I'll will pick nodejs first any day for new projects. Even if I need the JVM, my first choice probably will be Kotlin and then Clojure.

Of course there are many more downsides to using Clojure. No ecosystem, the cognitive overhead of doing interop with over-abstracted over-engineered Java libraries(because of no ecosystem ;)), the horrible startup times, the cultist community and the interop is really not that good, sometimes you have to write a Java wrapper over the Java lib to make it usable from Clojure. The benefits over JS are minimal but the overhead and downsides are too much. Worth learning it but not worth using it for real production projects.

Re:Leveraging the Go Type System on Tuesday February 09, 2021 @12:18PM (#26080070)
Bringing Java's premature over-engineered over-abstracted practices to Go.
Re:TechEmpower Framework Benchmarks: Round 20 on Monday February 08, 2021 @04:00PM (#26070037)
Where did you see memory consumption results?
Re:From First Principles: Why Scala? on Saturday February 06, 2021 @11:27PM (#26052641)
What are the options?
Re:JavaScript Minification Benchmarks on Saturday February 06, 2021 @03:53PM (#26049830)
Google Closure is the best at minification but it's also the worst less pragmatic option for 99% of projects.
Re:Script Lisp on Saturday February 06, 2021 @03:43PM (#26049757)
GraalVM is based on the JVM, it consumes Java libraries...
Re:Script Lisp on Saturday February 06, 2021 @03:18PM (#26049574)
I have given up on Clojure, life is too short to suffer the frustrations of Java libraries.