News for hackers. Stuff that matters.
Re:Introducing the B3 JIT compiler by cosinusoidally on Monday February 15, 2016 @03:56PM (#11105892)
Why didn't you use JavaScript for that purpose (in a similar vein to how LuaJIT uses Lua for dynasm)?
Re:Introducing the B3 JIT compiler by pizlonator on Monday February 15, 2016 @04:19PM (#11106082)
I'm not a big fan of self-hosting. I like that you can build JavaScriptCore without using JavaScriptCore.
Re:Introducing the B3 JIT compiler by cosinusoidally on Monday February 15, 2016 @08:39PM (#11107376)
I wasn't really referring to self hosting. I was wondering whether it made sense to write tools like JavaScriptCore's offlineasm in JavaScript rather than Ruby (as LuaJIT does by using Lua for its dynasm tool). The LuaJIT build process actually builds a cut down copy for Lua for the purposes of running dynasm, which is then used to build parts of LuaJIT.
Re:Introducing the B3 JIT compiler by pizlonator on Tuesday February 16, 2016 @12:22AM (#11108045)
We spend time optimizing JavaScriptCore's build time. It's a hard problem and it's important when managing such a large project. People inevitably have to do clean builds and that sucks when you have >400k lines of C++ code.

So, naturally, we want to avoid building JSC twice. ;-)

Re:Introducing the B3 JIT compiler by iso-8859-1 on Monday February 15, 2016 @07:42PM (#11107163)
Suppose that you are developing not to push this platform, but to simple do better on this platform. What does self-hosting gain you in that case?