News for hackers. Stuff that matters.
Re:Zig self hosted compiler is now capable of building itself by Siira on Sunday April 17, 2022 @02:05AM (#31058872)
I haven’t tried Zig yet, but I liked Common Lisp better than Go and Rust for fast CLI apps/scripts. You need to dump an image with all your deps already loaded, and then you can run small scripts with instant compilation very fast. It’s an ergonomic language with good IDE support in emacs. There are some rough edges around (inconsistent API design, the package manager not using HTTPS, …), but tolerable.
Re:Zig self hosted compiler is now capable of building itself by cercatrova on Sunday April 17, 2022 @03:58AM (#31059308)
Common Lisp doesn't offer features like sum types right? I am under the impression that it is a dynamically typed language like most Lisps, but I could be wrong.
Re:Zig self hosted compiler is now capable of building itself by adenozine on Monday April 18, 2022 @11:38AM (#31072149)
You might peek at Coalton.

https://coalton-lang.github.io/reference/

I don’t think it has sum types, but it offers a rather sophisticated and very functionally oriented type system that compiles back to SBCL. It looks neat, haven’t found time to play yet…

Re:Zig self hosted compiler is now capable of building itself by Siira on Sunday April 17, 2022 @11:53PM (#31067222)
It has optional typing, but as it’s fast without it, I haven’t dug into them. I don’t know about a union type though.