‹ BackHN Continuity

Thread

Faster NumPy in the Browser

50 points · 8 comments · Matumio

Loading the complete thread in the background. This saved snapshot is available now. Refresh

  1. miohtama · · focus · HN ↗
    Wouldn't AI rewrite of these legacy Fortran packages like BLAS be easier at this point than trying to keep Fortran alive?
    1. Jaxan · · focus · HN ↗
      Wouldn’t it be just as easy to keep Fortran alive with ai?
      1. miohtama · · focus · HN ↗
        But why would anyone want to keep Fortran alive?
        1. cma · · focus · HN ↗
          Packages like BLAS
          1. imurray · · focus · HN ↗
            The reference implementation of BLAS is in Fortran, but these days fast implementations (using the same interface) tend not to be. OpenBLAS is in C and much of MKL is in C/C++. An individual widely-used package can be rewritten, much like a compiler.

            However, OpenBLAS still links to the reference LAPACK in Fortran, because it's mostly made fast by linking it to a good BLAS implementation. It could be rewritten, or converted to C with f2c. Although there's a long tail of useful but often niche Fortran software, some in Fortran 90 that f2c can't convert. Having a fortran compiler is still useful, and covers all of them at once.

  2. wangxiaoxiang55 · · focus · HN ↗

    [dead]

    1. DerThorsten · · focus · HN ↗
      Hi, emscripten-forge author/maintainer here. There is not yet a roadmap for pthread builds on emscripten-forge, but we are experimenting a bit with pthread support atm. Currently we are working on migrating all pkgs to emscripten 6 and also add support for wasm64 (in addition to wasm32).
  3. sharktheone · · focus · HN ↗
    Very cool too see. So happy we actually have SIMD in WASM
  4. bern4444 · · focus · HN ↗
    There is also numpy-ts[1] which is measured to be faster than numpy proper if you want to skip the webassembly.

    [1] <a href="https:&#x2F;&#x2F;numpyts.dev&#x2F;latest&#x2F;performance&#x2F;overview" rel="nofollow">https:&#x2F;&#x2F;numpyts.dev&#x2F;latest&#x2F;performance&#x2F;overview

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.