TMI: Not Rust
Jul. 23rd, 2012 08:41 pmMonths ago, my overlords and I decided that I was going to spend some time working on something besides Rust. That something ended up involving generators and IonMonkey. It might seem strange for me to work on a JavaScript engine, since I've barely written a line of JavaScript in my life. (Unless you count a job I used to have once where I wrote a little bit of ActionScript. It was better than you might think.) And it is; that's why I eventually decided not to continue working on this project.
(I wasn't familiar with generators before this. It turns out they're what you do when you want to write functions that operate over aggregate data without actually building up intermediate data structures -- such as when you're working in a language whose compiler doesn't do deforestation, such as almost all of them. Rather than relying on the compiler to do shortcut deforestation like you might do in Haskell, generators let you write producers and consumers without the pesky intermediate data structures in between. Or at least that's how I understand them.) ( Read more... )