News for hackers. Stuff that matters.
Re:Firefox’s new streaming and tiering compiler by Yoric on Wednesday January 17, 2018 @12:16PM (#16169686)
Well, the difference between "interpreted" and "compiled" has become very blurry during the last 20 years. These days, most "interpreted" programming languages are actually compiled to machine code on the client system.

This includes the JVML, of course, but also JavaScript, Python (with PyPy), etc. PHP isn't quite there yet, but it's coming.

> As a side note, it is interesting to see that multithreaded compilation of a single page provides significant performance benefits here...this is usually not done with C/C++ code compilation from what I understand about it

It's slightly different, but native code is typically compiled concurrently, too. The meat of it is often handled by the build system rather than the compiler itself, but that's not so different.

Re:Firefox’s new streaming and tiering compiler by pjmlp on Wednesday January 17, 2018 @12:44PM (#16169994)
It was always like that on the mainframe world.

Assembly was actually bytecode, with a micro-coded CPU doing the actual execution.

All Xerox computers were like that. The first boot step was to load the right kind of micro-code for the environment being started.

The AS/400 native environment (nowadays known as IBM i), is based on bytecode TIMI, which gets AOT compiled via a kernel level JIT.

Re:Firefox’s new streaming and tiering compiler by lclarkmichalek on Wednesday January 17, 2018 @12:18PM (#16169710)
PHP is there with HHVM
Re:Firefox’s new streaming and tiering compiler by noir_lord on Wednesday January 17, 2018 @03:07PM (#16171301)
Which ironically isn't really any faster than PHP7 in the real world outside of benchmarks.

7 was a phenomenal release, I saw 50% reductions in processing time across the board and on old array heavy systems 5-10x memory reduction.

Re:Firefox’s new streaming and tiering compiler by solidr53 on Wednesday January 17, 2018 @05:19PM (#16172561)
Thanks to pressure from HHVM I assume. Nothing was happening in the PHP language for freaking three years.

To be fair the benchmarks usually take a wordpress or drupal installation and do a requests per second measurement, which IMO is a real world benchmark.

No hate, I just don't get why hhvm doesn't get any love for what they did. Maybe because from HPHPc to HHVM they seriously gave the PHPc a competition and people kind of got mad.

https://kinsta.com/blog/the-definitive-php-7-final-version-h...

Re:Firefox’s new streaming and tiering compiler by littlestymaar on Wednesday January 17, 2018 @07:03PM (#16173315)
> Nothing was happening in the PHP language for freaking three years.

To be fair that's not because they where sleeping, but because they attempted to do something that proved too hard (unicode support) and they had to abandon it. That's why PHP skipped version 6.

Re:Firefox’s new streaming and tiering compiler by krapp on Wednesday January 17, 2018 @06:46PM (#16173196)
>No hate, I just don't get why hhvm doesn't get any love for what they did.

I don't know - I expected to see a ton of Hack projects show up here but it's like no one cared about the language except as a wake-up call to PHP. Maybe the involvement of Facebook put people off.

Re:Firefox’s new streaming and tiering compiler by Yoric on Wednesday January 17, 2018 @12:21PM (#16169739)
My bad, I hadn't looked at that project in some time and I hadn't realized they had advanced that far.
Re:Firefox’s new streaming and tiering compiler by nabla9 on Wednesday January 17, 2018 @12:39PM (#16169947)
And then modern microprocessors receive x86-64 instructions and decode them into underlying microcode.