News for hackers. Stuff that matters.
Re:Haiku OS ported and running on RISC-V by waddlesplash on Wednesday May 12, 2021 @10:01AM (#27130407)
There is no technical reason one could not port Chromium or Firefox at this point; it's simply that nobody has put the time in to do it (as you can imagine, porting a web browser is not an easy task.)
Re:Haiku OS ported and running on RISC-V by ori_b on Wednesday May 12, 2021 @11:32AM (#27131486)
There's 600+ patches needed to build chrome on BSD, and upstream is constantly churning, which means they need maintenance.

Upstream refuses to import anything related to BSD support, so they need to be maintained out of tree.

And this is for a much more popular set of projects.

"Not an easy task" is a bit of an understatement.

Re:Haiku OS ported and running on RISC-V by leoc on Wednesday May 12, 2021 @02:09PM (#27133345)
Re:Haiku OS ported and running on RISC-V by HeckFeck on Wednesday May 12, 2021 @12:43PM (#27132312)
I've built Firefox on NetBSD. I wonder how many patches are required for it.

Presumably the use of rust is a dependency that needs fulfilled for building FF. Looks like there has been some work on getting rust to play with Haiku at both the Rust and Haiku ends:

https://docs.rs/haiku/0.2.0/haiku/

https://www.haiku-os.org/blog/nielx/2020-09-06_rust_on_haiku...

Re:Haiku OS ported and running on RISC-V by nix23 on Wednesday May 12, 2021 @01:13PM (#27132684)
Re:Haiku OS ported and running on RISC-V by rjsw on Wednesday May 12, 2021 @05:12PM (#27135201)
Some of those are for optional features like WebRTC, they are not all needed for a functional browser.
Re:Haiku OS ported and running on RISC-V by codetrotter on Wednesday May 12, 2021 @06:15PM (#27135810)
This thread is about fully featured browsers though. I think without WebRTC you can not call the browser fully featured.
Re:Haiku OS ported and running on RISC-V by rjsw on Wednesday May 12, 2021 @05:12PM (#27135211)
Firefox 52 is the last version that can be built without Rust, it is kept in pkgsrc for that reason.
Re:Haiku OS ported and running on RISC-V by yjftsjthsd-h on Wednesday May 12, 2021 @11:46AM (#27131660)
> as you can imagine, porting a web browser is not an easy task

I would imagine, but now I'm trying to figure out why; do they really use that much API surface? Network access should be simple enough, they need audio, keyboard input, and a canvas/surface to render to, but what else?

Re:Haiku OS ported and running on RISC-V by phendrenad2 on Wednesday May 12, 2021 @05:16PM (#27135255)
I think the problem is most modern browsers are a pile of open-source libraries at the bottom, any of which may use architecture-specific and/or compiler-specific native code. Also different systems have slightly different toolchains, for instance, compiling BSD on Linux can't be done because Linux GCC can't handle the divergent BSD GCC makefiles. D'oh! Wonder how that happened, surely they'll fix it soon...
Re:Haiku OS ported and running on RISC-V by panta on Wednesday May 12, 2021 @03:30PM (#27134232)
HW accelerated audio/video encoders/decoders (eg for WebRTC), mic, camera, crypto, ...