News for hackers. Stuff that matters.
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by andi999 on Saturday July 17, 2021 @04:12PM (#27868442)
I am very pessimistic. I think it would need a strong usp or some killer app. Maybe going into hard real time direction might allow it to live in a niche in audio and machine operation console. But currently I don't see a path.
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by agildehaus on Saturday July 17, 2021 @04:37PM (#27868647)
Why does everything need commercial success?

It's survived for 20 years despite having none. It will continue as long as there are interested developers.

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by techrat on Saturday July 17, 2021 @04:20PM (#27868500)
Realtime audio on hardware that isn't sold by Apple would be quite a killer reason to use Haiku. Especially seeing Apple is progressively abandoning the Pro, configurable market again.
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by diskzero on Saturday July 17, 2021 @10:30PM (#27870388)
Our final pivot at Be was HARP, the Home Audio Reference Platform, which we thought would be a killer reason to use BeOS. It was not a success.
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by gjsman-1000 on Saturday July 17, 2021 @04:43PM (#27868706)
They released a Mac Pro, as configurable as you could desire, less than two years ago and have a replacement already in the works. They aren’t abandoning the market.
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by michaelmrose on Saturday July 17, 2021 @11:33PM (#27870593)
It starts at 6000 and has similar specs to $2600 dell or alternatively a $1500 machine you could build.

Just going from the dinky 256GB SSD your 6000 machine comes with to a more reasonable 2TB actually takes you to 6800.

Furthermore for this very substantial price you are buying a machine on an arch they are in the process of abandoning a bigger issue than the price.

To recap in 2013 the trash can came out. It was I guess OK but by 2015 its specs were noncompetitive. Between 2015-most of 2019 there was no real great answer for a mac tower. At the cusp of 2020 the new tower emerged followed 1 year later by the announcement that everything is moving to arm sooner or later.

Out of the last 8 years there has been one year in which it was a great year to get a mac tower and only if you are rich.

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by bboygravity on Sunday July 18, 2021 @04:12AM (#27871496)
Yes. But you get properly working real-time audio out of the box with the Mac Pro that you don't get with any PC system.

Assuming that this is true (which it is based off of the other comments) then that is EASILY worth the extra 4000 or even 10.000 USD to someone who needs real-time audio to do their recording or other audio creation job.

When I became a professional (in another field than audio/music) I developed 0 tolerance for tech that didn't work or that has me fiddle around with it for hours to work. It financially just doesn't make any sense to spend your time on that. It also doesn't make any sense from a mental health and free-time point of view.

I think that was the point (even though I'm not knowledgeable on the subject, other than having spent many day of my hobby-life trying to get Cubase to record with audio monitor (VST) without jittery latency on Windows and utterly failed).

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by samatman on Saturday July 17, 2021 @04:52PM (#27868770)
I agree with that for what it's worth.

People who aren't in the industry don't really realize that the Mac Mini is the entry-level into audio production for most people (iMac is the same for video). It has just enough to get started, and when you're making the big bucks the Mac Pro is in fact affordable for what you get.

Developers only see MacBooks for so long that they forget the rest of the product line exists, yet it's there for a reason.

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by jbluepolarbear on Saturday July 17, 2021 @10:04PM (#27870281)
What profession is the Mac Pro targeted? They used to be great for video production and 3D modeling, animation, and light baking, but the current version just isn’t good enough and I’m seeing more and more professionals opt for a pc with a big dedicated gpu.
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by squarefoot on Sunday July 18, 2021 @08:07AM (#27872255)
I would definitely consider Haiku for music if it had the same low latency capabilities as BeOS, but latency aside, a lot changed since the BeOS era: today pretty much all non consumer audio interfaces are external, therefore driver support for them is needed as well. Also it's not uncommon to see hybrid systems in which Linux runs a DAW and its plugins under WINE. It's a mess to configure and breaks very easily (lesson learned: don't do that in your tinkering machine that you upgrade often or install/compile different kernels etc. use a separate machine for Linux+music), so a WINE port would be useful as well, but I guess it'd be a huge job.
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by skavi on Saturday July 17, 2021 @04:25PM (#27868542)
realtime audio and good color management are two things a lot of people use macOS for..
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by kitsunesoba on Saturday July 17, 2021 @04:54PM (#27868786)
If I'm not mistaken it already has a bit of an audience as a replacement for old BeOS boxes in radio broadcasting.
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by themodelplumber on Saturday July 17, 2021 @07:10PM (#27869521)
The Channel Caster 16, probably the most capable Haiku OS commercial system available at present. Yours for only $3199.

http://www.tunetrackersystems.com/command-center-system-pack...

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by bboygravity on Sunday July 18, 2021 @04:16AM (#27871515)
Wow, how cool is that. It seems rather ballsy of them to go for HaikuOS. Is it because of BeOS legacy software they had developed?

They have another system at the bottom of the page for a mere 1600 USD.

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by tialaramex on Sunday July 18, 2021 @10:29AM (#27873219)
Yes, this product historically was a BeOS product, and eventually it became cheaper to put together a version of Haiku with no show stopping bugs for their customers on hardware you can actually buy than to try to find hardware that would still run an obscure 1990s operating system.

The very first versions of this product are essentially BeOS, plus an existing MP3-player type application, plus a little bit of software glue, the right off-the-shelf hardware and the know-how to use it for radio broadcast.

It's definitely one of those products some HN regulars would dismiss as "I could basically make that in an hour". Me too. But, after an hour nobody else can maintain it and it doesn't work on anybody else's computer. The hard work is in turning that into a product that generates some net revenue, which is mostly non-technical work.

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by agildehaus on Sunday July 18, 2021 @08:03PM (#27877873)
It's because the owner of that company, Dane Scott, was a notable member of the BeOS community. He ran BeOS Radio for years.
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by brirec on Saturday July 17, 2021 @09:55PM (#27870247)
> probably the most capable Haiku OS commercial system

Not knocking this Caster, but it might also be the ONLY Haiku OS commercial system

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by nyanpasu64 on Saturday July 17, 2021 @05:08PM (#27868885)
I've heard that Haiku's audio APIs are similar to those of BeOS, which are harder to use than today's APIs. I hope they can be improved though, if Haiku is a better foundation for real-time media than standard Linux (or even realtime).
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by tialaramex on Saturday July 17, 2021 @05:55PM (#27869145)
The BeOS Media APIs enshrine a strange way to think about multimedia latency, which is maybe useful if your central idea is that you need to synchronise audio and video through different production pipelines, but doesn't serve real time audio work at all.

I believe Haiku did eventually fix some of the most egregious mistakes in their audio handling for example for years if you played silence it made everything else quieter, which is a classic goof†. But it's a long way from ideal for this application. You can of course use anything, if your hobby is making music with Haiku, knock yourself out, same with a ZX Spectrum or a toy xylophone, but yeah, not ideal.

† How do I mix samples for N channels together? Adding them together and dividing by N ought to work right? No.

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by smallstepforman on Saturday July 17, 2021 @07:13PM (#27869539)
The Haiku MediaKit API was available 5 years before Fabrice Bellard published ffmpeg, and back in the early 90’s BeInc’s goal was to attract the next successor to the NewTek toaster, and to be the next real time audio mixer. This is why they emphasised chaining of media nodes and sorting our “performance time” synchronisation issues with their API. The famous BeOS marketing video demos such a device.

BeOS kernel allows unique app access to a shared memory area, eliminating memory copies when sharing data. When creating the shared area, media apps can set several media access flags to engage the “fast path” if the devices have that buffer. These days modern graphics API’s (eg. Vulkan) offer the same buffer creation hints to help the driver figure out where to best allocate memory (device local, host accessible etc). Because not all memory is equal.

I’ve used both ffmpeg API and BMediaKit (I’m the author of a Haiku native video editor, https://github.com/smallstepforman/Medo). The BMediaKit API is trivially easy to use. ffmpeg is notoriously convoluted. Likewise, the native GUI API is also a pleasure to use. This is why my open source media editor is Haiku native (and not cross platform).

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by grepfru_it on Saturday July 17, 2021 @07:31PM (#27869640)
Hey! Thanks for your contributions to the BeOS Ecosystem. The OS wouldn't be the same without it!
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by viraptor on Saturday July 17, 2021 @06:52PM (#27869426)
Since Pipewire, the Linux view on audio is changing a lot. The latencies are not what they used to be. Even if Haiku becomes more usable, it's unlikely to achieve a massive difference.
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by 0des on Saturday July 17, 2021 @07:36PM (#27869660)
Conversely, in my own experience, Pipewire removed everything I held dear, destroyed my will to compute, and has somehow crippled my systems for the purposes of multitasking with any type of media playing.

Hyperbole aside, I'm glad someone was looking at the audio situation, but this one seemed to knock me out of the game on every machine that received it. Examples of common scenarios for me: I can't have firefox open and virtualbox at the same time, or bitwig and firefox, or visual studio and audacious. Common pairs of apps cause a bitrate mismatch for whatever reason, and everything sounds like a heavily bitcrushed and ring modulated signal.

The exception to this are machines that were installed with pipewire, rather than upgraded to pipewire. Also, using Cadence, a router type app helps, but inconsistently.

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by viraptor on Saturday July 17, 2021 @08:12PM (#27869801)
Do you mean sample rate? This may help https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Con...

Otherwise, have you raised the issue at https://gitlab.freedesktop.org/pipewire/pipewire/-/issues ? They're pretty responsive.

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by zozbot234 on Saturday July 17, 2021 @09:01PM (#27870020)
Does the PREEMPT_RT patchset matter wrt. audio latencies in Linux? That seems to be the biggest effort wrt. "low latency" workloads at least on the kernel side.
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by viraptor on Saturday July 17, 2021 @09:30PM (#27870140)
It does for latency and reliability, but in my experience running the xanmod kernel with just preempt without rt provides low enough (sub-5ms) latency that I stopped caring about RT in my home recording use.
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by snvzz on Sunday July 18, 2021 @07:02AM (#27872022)
5ms is an eternity, and without PREEMPT_RT I get xruns at 5ms on jack, which is (still) far better than pipewire on the same hardware.

Even with PREEMPT_RT, I can't even run 2ms pipelines without xruns.

I don't think this is within the realm of fixable. Linux simply isn't a good design for this. Kernel too large and unpredictable. Who knows when or if execution will return to userspace.

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by viraptor on Sunday July 18, 2021 @08:05AM (#27872247)
It depends on the use case, I'm quite happy with 5ms :-)

Ftr, on Pipewire on a Dell xps with iRig2, I'm getting 4.6ms reported with just PREEMPT. An xrun every few minutes if I try to go to ~2ms. I suspect I could get that working reliably with RT.

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by tialaramex on Sunday July 18, 2021 @11:01AM (#27873504)
People are weird about this. Because audio is ultimately a vibration moving through the air, latency is equivalent to distance because sound can only travel a few hundred metres per second.

So, 5ms is less than two metres. When COVID-19 forced you to stand a little further away from people, did you find it added "an eternity" of latency to everything? No? You barely noticed? Right.

One exercise that's interesting is you can build a physical loop (e.g. speaker plus microphone) and play with how long it takes samples to leave your software, turn into audio, then re-enter and come back to your software. You might find that to your disappointment a software stack may be giving you just 256 samples of latency but your hardware adds say 8 milliseconds on top of that.

This approach also helps you ensure you're doing apples to apples comparisons.

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by snvzz on Sunday July 18, 2021 @12:35PM (#27874276)
Latency is the whole chain. That's Linux's latency, on top of everything else that could be there, such as however many meters of distance between speakers and listener in a live performance.

In no way is it acceptable for Linux to add 5ms to the chain.

Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by LoveLeadAcid on Sunday July 18, 2021 @04:45PM (#27876514)
Audio latency is only measured in the air once it leaves a transducer. You're comparing apples to oranges here and deliberately misunderstanding the issue.
Re:HaikuOS running on RISC-V hardware (HiFive Unmatched) by ozfive on Saturday July 17, 2021 @04:14PM (#27868454)
This was the same argument for BeOS back in the day.