News for hackers. Stuff that matters.
Re:The Use of assert() in SQLite by macintux on Saturday April 27, 2019 @09:20AM (#19765346)
I haven’t worked with a lot of code bases, but am I correct in assuming this level of precision with error handling is fairly rare? Impressive stuff.

Orthogonal: one of my favorite talking points about Erlang is the fact that nearly every line of code is an assertion, and that those assertions are always enabled, even in production.

You’d not want to use Erlang for truly high performance code, granted.

Re:The Use of assert() in SQLite by vemv on Saturday April 27, 2019 @11:04AM (#19765869)
Interesting point about Erlang! Where can I find more info on that specific aspect?
Re:The Use of assert() in SQLite by macintux on Saturday April 27, 2019 @11:23AM (#19765975)
If you can tolerate a video, my talk from Midwest.io covers it to some degree.

It’s really just a happy byproduct of the overall design of the language and VM. The two primary features that make it happen are immutability and ubiquitous pattern matching.

https://youtu.be/E18shi1qIHU