News for hackers. Stuff that matters.
Re:Rust 1.47 by hinkley on Thursday October 08, 2020 @01:57PM (#24721809)
I like that const functions occupy a space between a normal function and hygienic macros. You can avoid writing out lookup tables long-form where the entries are very predictable. For instance you could write a base64 encoder and decoder without putting ["a", "b", "c"... ] in your code base, and then have to worry if you accidentally put "D" in there twice. The typical alternative in other languages is to evaluate this at startup time, which adds latency to your program.

Compile-time function evaluation is also one of the features of the Jai programming language. If you can't get people to use your language, getting them to steal all your features is a good consolation prize.

Re:Rust 1.47 by jsheard on Thursday October 08, 2020 @07:10PM (#24724940)
> If you can't get people to use your language, getting them to steal all your features is a good consolation prize.

It's difficult to use Jai as long as it only exists on Jonathan Blows computer, he still hasn't released it