logoalt Hacker News

peteeyesterday at 3:48 PM1 replyview on HN

Janet global state is thread local;[1] janet_init() is called once per thread.

[1] official docs: https://janet-lang.org/capi/embedding.html


Replies

OskarSyesterday at 6:31 PM

So you can't execute a Janet script on a different thread than it was created on? Still not good: if you're making audio plugins, you don't control the threads which your program runs on. It's just not good enough, IMHO.

show 1 reply