01:48 | <bakkot> | ljharb: node has supported postMessage for a long time; how old a node are you talking? |
01:54 | <bakkot> | (there isn't anything in the language itself, so it'll depend on what exactly your host provides) |
04:38 | <ljharb> | um, even node 19 doesn't have postMessage? |
04:40 | <ljharb> | i mean, atm i have no solution in node at all, so wasm would be something |
04:40 | <ljharb> | node 0.5 has ArrayBuffer at least, so, as old as possible :-) |
08:23 | <bakkot> | ljharb: ah, sorry, it does but it's hard to get to |
08:24 | <bakkot> | (new (require('worker_threads').MessageChannel)).port1.postMessage(null, [y.buffer]) |
08:26 | <bakkot> | works in 12 but not 10, but there might be a different way of getting at MessageChannel on older versions |
08:30 | <bakkot> | hm, no, nothing else I can see from a quick glance at https://nodejs.org/docs/latest-v10.x/api/all.html |
08:31 | <bakkot> | so might not be something you can do in nodes older than 12 |
08:31 | <bakkot> | (or 10 with --experimental-workers) |
17:30 | <ljharb> | thanks tho, that still helps a lot |
17:31 | <ljharb> | otherwise i was gonna have to write wasm |