News for hackers. Stuff that matters.
Re:Introducing the B3 JIT compiler by geodel on Monday February 15, 2016 @03:19PM (#11105640)
Are you claiming Go runs at the speed of Ruby/Python/PHP etc? Because from what I read, migration to Go from above mentioned language led to lot of hardware / memory saving. I'd think Java can certainly be considered having highly optimized compiler / runtime. But it has almost same performance as Go and much higher memory usage compared to Go.

http://benchmarksgame.alioth.debian.org/u64q/go.html

Re:Introducing the B3 JIT compiler by pcwalton on Monday February 15, 2016 @03:25PM (#11105683)
> Are you claiming Go runs at the speed of Ruby/Python/PHP etc?

No. I'm claiming it doesn't perform anywhere near the level of optimization of GCC and LLVM.

> I'd think Java can certainly be considered having highly optimized compiler / runtime. But it has almost same performance as Go and much higher memory usage compared to Go.

I disagree with what seems to be your implication that compiler optimizations don't matter (and almost everyone else who works on compilers would also disagree), but I don't really want to turn this thread into a critique of the benchmarks game, so let's just leave it at that.

Re:Introducing the B3 JIT compiler by igouy on Monday February 15, 2016 @07:39PM (#11107146)
> … and much higher memory usage compared to Go.

Please don't jump to the conclusion that huge differences in the default memory allocation of tiny 100 line programs means there will be similar huge differences between ordinary large programs.

Notice that even for those tiny 100 line programs, the difference can be more like 2x when memory actually needs to allocated for the task.

Re:Introducing the B3 JIT compiler by derefr on Monday February 15, 2016 @04:37PM (#11106222)
"Compiler optimization" in this thread is referring to speeding up compilation time†, not runtime of generated code. Go produces fast code, but the go compiler does not generate that code particularly quickly.

† Which can be seen as a runtime cost for interpreter+JIT languages, but that's a different issue. We're talking time-to-steady-state when the interpreter is fed a file (which is something Javascript engine devs worry about a lot), not benchmark-speed-at-steady-state.

Re:Introducing the B3 JIT compiler by pcwalton on Monday February 15, 2016 @05:03PM (#11106392)
No, it's the opposite. The Go compiler generates medium quality code but compiles fast.