Remix.run Logo
stabbles 3 days ago

Does it include a decent BLAS? If I remember correctly R ships with reference BLAS, but for decent performance you need something external. Wonder what they picked for wasm based R.

shakna 3 days ago | parent | next [-]

Probably uses LLVM Flang to make the Fortran parts happen, compiling reference BLAS and LAPACK. As the main dev for WebR is also the one who did this [0].

[0] https://gws.phd/posts/fortran_wasm/

uniqueuid 3 days ago | parent | prev [-]

I wonder what kind of edge cases you deal with when blas is your bottleneck in R. Stan code aside, I’ve seen few problems that are neither instant (i.e. sub hours) nor impossible (I.e years of compute).

legobmw99 3 days ago | parent | next [-]

Since you mentioned Stan, feels relevant to mention https://stan-playground.flatironinstitute.org/, which lets you run Stan in WASM and analyze the results using WebR

fn-mote 3 days ago | parent | prev [-]

Isn’t the linear algebra conventional wisdom that matrix ops are ALWAYS the bottleneck?

I’m sure this is true in scientific computing.

In R maybe a bunch of resampling would be expected to dominate?