Would it be cheating to use Racket? https://racket-lang.org/
So seems like it should be fine! Go ahead and make a racket :)
131–135 of 135 posts
Would it be cheating to use Racket? https://racket-lang.org/
So seems like it should be fine! Go ahead and make a racket :)
Crafting Interpreters came out just in time for this :) http://craftinginterpreters.com
Earlier quoted context omitted.
I'd like a GC (no borrow checker) version of Rust. There's so many cool concepts in the language that I'd like to know how useful it is in different contexts. (Compiled without a VM, option types, no nulls, easy error handling without exceptions...)
We use D a lot at work, we genuinely can only laugh at people who refuse to entertain the idea of a GC. The GC allows our code to exist without extensive memory book-keeping. When we want to avoid the GC we know how, when we want the productivity we use the GC and fuggedaboutit
Having spent 20 years mostly working in GC languages, it's totally worth it! However, writing portable libraries like SQLite or libpng are very difficult to do without bringing in unacceptable overhead for your consumers.
Crafting Interpreters came out just in time for this :) http://craftinginterpreters.com
Hadn't heard of this book yet! From my cursory glance this looks like quite a good introduction into language implementation, which is just what I've been looking for myself, thanks a lot!
Earlier quoted context omitted.
> Appending a string to a null value..? Appending a string to an undefined value, via array addition, which turns them into strings but doesn't turn null into 'null' or undefined into 'undefined'. It's a bit of a hack. `'a' + undefined === 'aundefined'` `[ 'a' ] + [ undefined ] === 'a'` Also the empty string '' evaluates to false. `[ undefined ] + [ undefined ] == ''` This is wat - https://archive.org/details/wat_des…
> This is wat For a second, I thought it was JavaScript