News for hackers. Stuff that matters.
Re:Haiku Project by astrobe_ on Friday September 23, 2016 @02:41PM (#12566963)
I'm not so sure. When you implement your own OS your hands are mostly free. With browser on the other hand, you have to comply to large, complex and evolving standards (HTML/CSS/Javascript). I might be biased by the fact that I dabbled a bit with the Linux kernel and dislike graphics programming, though.
Re:Haiku Project by panic on Friday September 23, 2016 @04:26PM (#12567692)
Browser engines like WebKit are (with some work) portable to any platform with a C++ compiler: that's how the current Haiku browser is built.
Re:Haiku Project by nickpsecurity on Friday September 23, 2016 @06:50PM (#12568497)
So, now you just need to build a highly-optimizing, C++ compiler instead of a browser? That's another project that few got right over a period of a decade or so. Of course, one could use a C++ to C compiler or extend existing C++ compiler with OS-specific backend. Might still be plenty work but easier than clean-slate browser.
Re:Haiku Project by Sanddancer on Friday September 23, 2016 @08:59PM (#12568947)
Both gcc and clang have flags to emit raw object files. At which point, your porting work really centers around making sure you have a good standard library in place, and that your kernel has a reasonable implementation of parsing a binary format like ELF or PE, etc.
Re:Haiku Project by nickpsecurity on Friday September 23, 2016 @10:53PM (#12569215)
Now that's pretty cool. Appreciate the tip.
Re:Haiku Project by ori_b on Friday September 23, 2016 @11:24PM (#12569290)
> So, now you just need to build a highly-optimizing, C++ compiler instead of a browser?

No. You just use gcc. Like everyone else.

Re:Haiku Project by nickpsecurity on Saturday September 24, 2016 @12:16AM (#12569438)
The gist of the comment was whether GCC automatically made something like WebKit + JIT + Native Client work on very, different OS by a simple compile. I doubted that was true or that the work was easy.
Re:Haiku Project by ori_b on Saturday September 24, 2016 @12:49AM (#12569502)
You only need to implement the window system and widget rendering glue. The layout, javascript, CSS, DOM, history, etc is all platform independent.

But implementing `drawButton()`, `blitToScreen()` and similar is in no way similar to implementing a C++ compiler, as you implied.

An example of a port is here, in this directory: https://trac.webkit.org/browser/trunk/Source/WebCore/platfor...

Re:Haiku Project by nickpsecurity on Saturday September 24, 2016 @03:13AM (#12569842)
Sounds a lot better than I thought. Appreciate the explanation. :)
Re:Haiku Project by kobeya on Saturday September 24, 2016 @04:54AM (#12570143)
I ran firefox on BeOS.
Re:Haiku Project by nickpsecurity on Saturday September 24, 2016 @11:24AM (#12571270)
Im curious how it ran. Was there a performance boost from BeOS architecture?
Re:Haiku Project by kobeya on Saturday September 24, 2016 @04:08PM (#12572415)
Not noticeably. It just rendered better than the built in browser..
Re:Haiku Project by jwatte on Saturday September 24, 2016 @12:20AM (#12569445)
I prefer clang.
Re:Haiku Project by nickpsecurity on Friday September 23, 2016 @04:22PM (#12567670)
That's true. Take the Redox project that's been moving along nicely. Or Haiku, Syllable, MenuetOS, etc. All of them had small teams with external vontributors that got plenty done in terms of a usable OS.

Whereas, a fast, standardized browser like Firefox takes a huge company to support it. The complexity is just huge. Plus, the standards and web experience are always moving along. Can't wait for more people to scratch an itch if you want to stay competitive.

Re:Haiku Project by watwatwatwat on Friday September 23, 2016 @04:15PM (#12567624)
Why is he being downvoted?