Hacker News new | ask | show | jobs
by fb03 2718 days ago
Audio software has strict buffer/latency demands which usually cannot be guaranteed on interpreted language platforms.

Doing audio synthesis with JS or any other interpreted language really is totally possible and has been done in a more or less serious way in several implementations and webtoys etc. But if you need extremely low latency and guarantees you cannot go that route, sadly.

1 comments

You can always write native extension in c++/rust/c.
so then why use electron as well if the majority of your code is going to be native anyway?
exactly.

the UI is the minority of the code. the main engine is gonna need to be implemented in some language which has strict guarantees about performance. also, not having a garbage collector that fires in a seemingly random way helps a lot too :)

It's probably a decent way to package your program. And you can use all the glammy JS you want.