Recent submissions

Comment · 12 days ago
Thanks!
Comment · 14 days ago
enjoy!
Comment · 2 months ago
Can't wait for the distillations! I'd love improvement on writing on cheap models
Comment · 3 months ago
saw some discussion on zig incremental compilation, so I got curious and did this silly bench.

quite impressive

Comment · 3 months ago
python is terrible for embedding, starlark is the way to go. Very easy to embed.
Comment · 3 months ago
It occurred to me a few weeks ago why programming languages don't just try add metaprogramming capabilities with comments, without modifying the original compiler. So I went ahead and experimented how would it look like in golang.

So far so good! It's basically go templates that take in any package level go symbol and write code into a meta.go file.

You can do the same with the go/ast package, but metago makes it very easy to add your own custom transformations. No build tags, just write .metago templates, annotate structs, and run metago.

So far I've managed to make stringer, enums, mocks and even an efficient json serde template with metago. As an experiment, there's also a typesafe active record like orm in the repo. So you can do a lot with it!

Comment · 3 months ago
I think people are overfocusing on the wrong thing.

Bun is slop. Let's not pretend it is not. It went from 600k lines of zig to almost a million of rust, for a wrapper around a js engine. It might be useful slop, but it is still slop.

It's understandable to have mixed feelings about bun as the creator of the language.

You spend 10 years of your time making a language, and one of the most prominent projects that uses it does it in a nasty and sloppy way. You try to help, but your advice gets ignored.

You make a whole language about improving software quality, only to be associated with a project that doesn't care about it.

For once I do appreciate that somebody is willing to have the guts to say what they think. The bun rust rewrite article said no words about the tradeoffs of moving to Rust (compilation times?), and I agree with the false dichotomy presented. How do we know that most bun bugs were not created because of slop / AI usage / stubbornness?

Comment · 7 months ago
tbh I'd rather have this behaviour, defer should've been lexically scoped from the beginning.
Comment · 10 months ago
You already have this problem whenever you are using a library in any programming language. Unless you are extremely strict, vendor it and read line by line what the library does, you are just trusting that the code that you are using works.

And nothing is stopping the AI from making the unreadable mess more readable in later iterations. It can make it pass the spec first and make it cleaner later. Just like we do!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton