Giter Club home page Giter Club logo

wasm-klej's Introduction

Uruchomienie w trybie watch

  • cargo make watch

Wykorzystać stos do przesyłania parametrów ze stringami Po stronie rusta, zaalokować Vektor

po stronie js: push(string) pop() -> string

po stronie rusta push(string) pop() -> string

przekazanie stringa z js -> rust

push_js(string) call_rustowej_metody() - bez parametrów

po stronie rusta metoda będzie musiała wiedzieć ze czeka na nia coś na stosie pop_string() przetwarzanie

w ten sposób mozna uniknąć tworzenie mateod alloc i dealloc a zarządzaniem pamięcią nadal będzie zajmował się rust

https://radu-matei.com/blog/practical-guide-to-wasm-memory/ https://rustwasm.github.io/book/reference/js-ffi.html https://github.com/rustwasm/wasm-bindgen/blob/7465a4f84f8047f4acc8e7a2f6ea6977ebea4e58/src/lib.rs#L973-L1026

https://github.com/bnjbvr/perf-wasm-calls/blob/gh-pages/main.js#L265 https://github.com/bnjbvr/perf-wasm-calls/blob/gh-pages/make_wasm.js https://github.com/bnjbvr/perf-wasm-calls/blob/gh-pages/main.js

wasm-klej's People

Watchers

 avatar  avatar

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.