Lurker News
Had some fun with shared array buffers over many months of free time.

Skip to the end to play around with the final app.
Open to ideas on how to simulate more whilst staying in js land.

Comments (70) 25 threads

Earlier comments
a-dub1 reply#
so when do we get WebBLAS and WebFORTRAN?

kinda joking, kinda not.

a-dub1 reply#
there's also numpy and scipy in the webassembly python distro (pyodide). but the "kinda not" part more refers to first class scientific/numerical computing support. it's possible, but the libraries are all disjoint or are webassembly ports, etc.
shakna3 replies#
Pyodide uses f2c for that, as mentioned in the link, but it isn't great, and barely works. You won't get the expected speed out of BLAS that way.

Which is why the flang port it's about is attempting to compile to the actual primitives.

Continue this thread — 3 replies

kragen1 reply#
super cool! i'm thinking webgpu might be usable for a speedup, not sure if webgl would be
mandarax81 reply#
A WebGL transform feedback shader would be 100% as performant as what you could write in WebGPU for this use case (independent particle updates).
kragen#
thanks! is there a minimal example you'd recommend looking at?
dangoodmanUT#
This is great work
randall#
super helpful!!! thanks for this!!

Load more comments