3 ms·
This is actually pretty interesting. Some of the performance benefits of C (known types, little and predictable allocation) without its total lack of any safety
by lucian1900 14y ago
This is actually pretty interesting. Some of the performance benefits of C (known types, little and predictable allocation) without its total lack of any safety. Syntax still sucks, but not much can be done about that while still looking like JS.
On the other hand, any runtime that infers structure (like V8 or PyPy) will make most of the performance benefits moot, leaving only predictable allocation (fewer and shorter GC pauses).
- tomp 14y agoThe syntax doesn't matter; if the browsers implement something like this, it will make javascript a much more compelling target for compilers (even of fast, statically typed languages), so you can make your own syntax above it!
- lucian1900 14y agoI meant that the syntax still has plenty of pitfalls. Compilers can already uses the same features lljs is using and just generate JS.
- dllthomas 14y agoOne way in which it might actually help significantly is if it motivates coding in ways that are better structured, and the sophisticated run-times can take good advantage of this.