News for hackers. Stuff that matters.
Re:Go 1.1 performance improvements by pjmlp on Tuesday May 21, 2013 @02:31AM (#5742189)
This is why young generations should learn about compiler design and that language != implementation.

Sure the language semantics may outlaw certain types of optimizations (e.g. aliasing), but in the end nothing forbids having compilers, interpreters or JIT implementations for a given language.

The current generation tends to think strong typing, dynamic, or a GC enabled language, requires a VM.

This is what I think it is positive about Go's designer decision of using a native compiler as canonical implementation, as it shows these youngsters there are other ways to implement languages.

Re:Go 1.1 performance improvements by nly on Tuesday May 21, 2013 @10:03AM (#5743656)
Some language features do preclude some optimizations. For example, once you have dynamic typing you'll typically need a butt load of engineering effort to generate the fastest possible numerical computation.

Now that people seem to want to do everything from crypto to image processing in Javascript, projects like JägerMonkey, v8 (method JITs) and asm.js have cropped up that show this is still an unsolved problem in many respects. One could easily make the case that Javascript is, in fact, becoming less and less suitable for the web.

Re:Go 1.1 performance improvements by pjmlp on Tuesday May 21, 2013 @10:48AM (#5743978)
> Some language features do preclude some optimizations

True, that is why I mentioned the aliasing problem, but that doesn't forbid a specific type implementation.

> Now that people seem to want to do everything from crypto to image processing in Javascript, projects like JägerMonkey, v8 (method JITs) and asm.js have cropped up that show this is still an unsolved problem in many respects.

The funny thing is that advanced JIT engines like Hotspot were actually developed for dynamic languages (Self).

The good thing about JIT research for JavaScript is that it helps advancing the status of compilers for dynamic languages, even for AOT compilation scenarios I would say.