News for hackers. Stuff that matters.
Re:Haiku OS ported and running on RISC-V by dejv on Wednesday May 12, 2021 @09:57AM (#27130358)
Haiku is lacking full featured web browser like Chromium or Firefox. They do have some basic browser available, but its capability is very limited.
Re:Haiku OS ported and running on RISC-V by dleslie on Wednesday May 12, 2021 @10:27AM (#27130714)
Honestly, as someone who uses Haiku casually I find the absence of a beastly browser to be a feature. There _is_ a browser, one featureful enough to read Wiki and such, but not featureful enough to blow away hours and hours on Javascript-heavy social web applications.
Re:Haiku OS ported and running on RISC-V by f00zz on Wednesday May 12, 2021 @04:15PM (#27134611)
also, no Electron apps. all I see is upside
Re:Haiku OS ported and running on RISC-V by moshmosh on Wednesday May 12, 2021 @10:28PM (#27137780)
I ran minimalist Void Linux on a crappy dual-core Celeron Chromebox with 2GB (yes, two) of memory as a workstation for a few weeks last year.

It was impractical longer term, but really, as long as I didn't open more than a couple Surf (the Suckless browser, uses the Webkit engine) windows at a time it didn't feel slower than a tricked-out Mac or a beast of a Windows machine, for everything else. Amazing what running as little JS as possible can do. I had to run Docker and VMs elsewhere since they hog memory by design, but it was entirely fine as code-editing and command line workstation. A heavy IDE for, say, Java might have been painful if I'd needed that—which is kind of crazy, because those used to run just fine on well under 1GB of memory, too.

Using Void helped a lot because a bunch of the background garbage on something like Ubuntu, which is really getting out of control, wasn't hanging around eating memory and periodically waking up to burn cycles for unclear reasons. I imagine the benefits of Haiku are similar (big fan of BeOS back in the day, thing's UI responsiveness on mediocre hardware was downright magical)

Re:Haiku OS ported and running on RISC-V by maratc on Wednesday May 12, 2021 @01:42PM (#27133034)
That's interesting but GP points out that major applications like

> car console, tablet, media centre, info kiosk etc

would be possible but hard without a mainstream browser. Sure, one can develop a native application, but this is not how mainstream development is done these days. E.g. info kiosks basically are browsers that display whatever there is on a (frequently updated) server, and so there's zero maintenance for a kiosk.

Re:Haiku OS ported and running on RISC-V by caslon on Wednesday May 12, 2021 @03:06PM (#27133953)
There are plenty of companies that make desktop apps. Car consoles (generally) don't use browsers. I am sure that those applications would get on just fine without running Chromium. A car with a web browser is a nightmare.
Re:Haiku OS ported and running on RISC-V by f00zz on Wednesday May 12, 2021 @04:27PM (#27134753)
Don't know about kiosks, but QML is quite popular in applications like in-vehicle infotainment systems.
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, ...