News for hackers. Stuff that matters.
Re:Firefox's JIT is getting significantly faster by speedgoose on Friday September 25, 2020 @11:26AM (#24590809)
The last thing I want in my browser is a JVM.
Re:Firefox's JIT is getting significantly faster by coldtea on Friday September 25, 2020 @12:12PM (#24591322)
The brower already has a VM, and from the same people and the same principles who made the Java JVM JIT and the fast Smalltalk one back in the 90s...

Lars Bak, the v8 head:

"In 1994, he joined LongView Technologies LLC, where he designed and implemented high performance virtual machines for both Smalltalk and Java. After Sun Microsystems acquired LongView in 1997, Bak became engineering manager and technical lead in the HotSpot team at Sun's Java Software Division where he developed a high-performance Java virtual machine.".

Re:Firefox's JIT is getting significantly faster by hinkley on Friday September 25, 2020 @01:05PM (#24591854)
I heard at one point that Hotspot had crossed a million lines of code. Looks like V8 is close to 2 million sLOC.

The same source says SpiderMonkey is about 540k sLOC.

Bak has learned a lot of lessons along the way I'm sure, and unless Cliff Click decides to write VMs again (sounds like he's semi-retired, doing something else) then he may be the best person for the job. But nobody's perfect. For me this is Exhibits A-C.

Re:Firefox's JIT is getting significantly faster by remram on Friday September 25, 2020 @12:22PM (#24591440)
The JVM actually had a lot of features that are slowly appearing in JavaScript. Standard bytecode format (like WebAssembly), security/authentication (origin, content security policy)...

One day JS engines will add cryptographic signatures to replace the complex origin rules and they will unify the WebAssembly workflow with the JavaScript code pipeline and we'll have a full JVM again.

Re:Firefox's JIT is getting significantly faster by zozbot234 on Friday September 25, 2020 @12:41PM (#24591627)
> One day JS engines will add cryptographic signatures to replace the complex origin rules

Signed HTTP exchanges might give you that already, AFAICT.

Re:Firefox's JIT is getting significantly faster by sk2020 on Friday September 25, 2020 @12:00PM (#24591194)
Maybe I'm just ignorant, but haven't browsers nearly become just a VM for JavaScript? Rendering documents is sometimes incidental. I'm not sure Swing would actually be worse than HTML5.
Re:Firefox's JIT is getting significantly faster by remram on Friday September 25, 2020 @12:16PM (#24591374)
Layout is actually difficult and offers a great many interesting problems when you try to parallelize it or efficiently use GPU acceleration. There are a lot of constraints and text is difficult to size and render.
Re:Firefox's JIT is getting significantly faster by hinkley on Friday September 25, 2020 @01:25PM (#24592052)
Layout is automated (and hopefully repeatable) typesetting.

The other thing Donald Knuth is famous for is getting so fed up with typesetting for his books, he created a document format to help him keep his sanity. And then went way way down that rabbit hole instead of finishing his book series. One might argue that's not sanity-preserving.

Re:Firefox's JIT is getting significantly faster by foxdev on Friday September 25, 2020 @05:36PM (#24594361)
Sometimes the detour is the journey.
Re:Firefox's JIT is getting significantly faster by The_Colonel on Friday September 25, 2020 @12:25PM (#24591468)
Agreed, layout is probably more difficult problem and definitely the area with more potential for improvements ("forced reflow" anyone?) whereas JS engines are already at the point of quickly diminishing returns.
Re:Firefox's JIT is getting significantly faster by runawaybottle on Friday September 25, 2020 @12:32PM (#24591555)
Could the GeForce 3090 be fast enough to handle it?
Re:Firefox's JIT is getting significantly faster by chungus_khan on Friday September 25, 2020 @01:43PM (#24592223)
An Intel GMA 950 can handle accelerating browsers. It's less about raw power and more about just being able to efficiently split up the workload to get the page rendered and visible in as little time as possible.
Re:Firefox's JIT is getting significantly faster by johnnycerberus on Friday September 25, 2020 @11:46AM (#24591025)
There's already a VM. If Graal really brings better performance then I don't mind.
Re:Firefox's JIT is getting significantly faster by vips7L on Friday September 25, 2020 @02:57PM (#24592983)
I wonder if anyone is already trying to build that. A browser based on graaljs and java rendering engine. I wonder if you could take firefox mobile and do it. I'm assuming its html/css rendering engine is in Java/Kotlin.
Re:Firefox's JIT is getting significantly faster by wenc on Friday September 25, 2020 @12:10PM (#24591289)
We had that in the early days — Java applets. But the paradigm was a little different because they were essentially Java programs and not JavaScript.
Re:Firefox's JIT is getting significantly faster by 1f60c on Friday September 25, 2020 @11:48AM (#24591054)
Why?