Coder Social home page Coder Social logo

SIMD support about vectorious HOT 2 OPEN

mateogianolio avatar mateogianolio commented on May 26, 2024
SIMD support

from vectorious.

Comments (2)

metabench avatar metabench commented on May 26, 2024

That's really good to see. I'm not seeing any indication of API documents for it though, https://www.npmjs.com/package/llml_simd has the same or very similar readme.

@mateogianolio Have you got any further into the details of that code? Have you got any suggestions on how to get it's API from Rust or some kind of easy to use analysis of the Rust code? Or even the JS? I've only looked it it for a few minutes, I could probably get somewhere with a bit of trial and error. I don't know how useful it would actually be from node because there is an overhead when calling C++ and presumably Rust too.

It may turn out to be very useful educationally to look into this code, and see what it offers in terms of calling highly optimised Rust code from JS even if it's not useful as-is because of the overhead of calling compiled code from JS being too high. That overhead could (and should) fall in the future, so it's worth paying attention to and having measurements of.

from vectorious.

mateogianolio avatar mateogianolio commented on May 26, 2024

I think WASM calls still have a non-negligible overhead, and I don't think SIMD is officially supported by WASM yet?

But as far as I can tell neon (https://neon-bindings.com/) should achieve near-native performance (at least same performance as c++ addons). The downside obviously being that it only works in node.js and not the browser.

That said, I have not tried the library so can't say anything about it other than it looked interesting :)

from vectorious.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.