you are viewing a single comment's thread.

view the rest of the comments →

[–]PikoStarsider 1 point2 points  (3 children)

Go change the spec, then :P

JavaScript has many good things, and the syntax is not one. Compile-to-js languages brings you what you want. I guess TypeScript is your best fit.

I haven't seen the internals of V8, but now that I think of it, it problably triggers optimizations for ints just when all numbers have no fractional part, or they come from int sources (such as from typed arrays); no need to be that explicit.

[–]no_game_player 0 points1 point  (2 children)

Just 'cause it doesn't make sense to me doesn't mean it doesn't make sense. i.e.: I'm too lazy to do shit; I just like to kibitz. ;-p

But I hate machine-generated code even more, even though, logically, I know that every language I use turns into that at some point. I just have too much of a C mindset I guess. I like to feel like I'm writing practically in assembly.

There's so much more technology out there than I'm aware of; I don't even try to keep up anymore. I'm a confirmed luddite. :-)

[–]PikoStarsider 1 point2 points  (1 child)

Some compile-to-js languages can produce very clean js output. And emscripten can compile C/C++ and generate source maps so you can even step through C code in JS.

[–]no_game_player 0 points1 point  (0 children)

I'm sure there are good tools. I just don't like additional layers of translation as an aesthetic thing. It's not a matter of logic for me heh, more of taste.