4 ms·
a lexer/tokenizer in js. hmm. i love how we've got new fast JS engines, but really? this fast?
by imajes 17y ago
a lexer/tokenizer in js. hmm. i love how we've got new fast JS engines, but really? this fast?
- zefhous 17y agoYou could still use it if you like the syntax better and just precompile it. Same deal with sass (http://sass-lang.com/ http://sass-lang.com/).
- jerome_etienne 17y agocappuccino and all that... they got a new language with compiler all in javascript :) objective-j it is like objective-c but for javascript http://cappuccino.org/learn/ http://cappuccino.org/learn/ ps: they will never do asm the way we did :)
- boucher 17y agoFor what it's worth, all of us have programmed 68k assembly.
- jerome_etienne 17y agothen you likely feel the gap too :)
- vl 17y agoModern JS engines are fast enough for many tasks not possible before. For example, I implemented AES256 and SHA256 in javascript for "security locker" website (http://www.memengo.com http://www.memengo.com). I spent few days hand-optimizing the implementation to make it fast enough to encrypt user data in slow browsers like IE6, but last-generation browsers like FF3.5, Safari 4, Chrome would be fast enough even without excessive tuning.
- boucher 17y agoIn fact, browsers were that fast in 2006, when this was written. Not fast enough to do some things that we're doing today, but more than fast enough to parse a simple language like this.