René's URL Explorer Experiment


Title: Utiliser l'API JavaScript de WebAssembly - WebAssembly | MDN

Open Graph Title: Utiliser l'API JavaScript de WebAssembly - WebAssembly | MDN

Description: Si vous avez déjà compilé un module depuis un autre langage en utilisant des outils comme Emscripten, ou chargé et éxecuté vous-même le code, l'étape suivante est d'en apprendre plus à propos des autres fonctionnalités de l'API JavaScript WebAssembly. Cet article vous enseigne ce que vous aurez besoin de connaître.

Open Graph Description: Si vous avez déjà compilé un module depuis un autre langage en utilisant des outils comme Emscripten, ou chargé et éxecuté vous-même le code, l'étape suivante est d'en apprendre plus à propos des autres fonctionnalités de l'API JavaScript WebAssembly. Cet article vous enseigne ce que vous aurez besoin de connaître.

Opengraph URL: https://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API

direct link

Domain: developer.mozilla.org

og:localefr
og:imagehttps://developer.mozilla.org/mdn-social-share.d893525a4fb5fb1f67a2.png
og:image:typeimage/png
og:image:height1080
og:image:width1920
og:image:altThe MDN Web Docs logo, featuring a blue accent color, displayed on a solid black background.
og:site_nameMDN Web Docs
twitter:cardsummary_large_image
twitter:creatorMozDevNet
position3

Links:

Skip to main contenthttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#content
Skip to searchhttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#search
MDN https://developer.mozilla.org/fr/
HTML: Markup languagehttps://developer.mozilla.org/fr/docs/Web/HTML
Elementshttps://developer.mozilla.org/fr/docs/Web/HTML/Reference/Elements
Global attributeshttps://developer.mozilla.org/fr/docs/Web/HTML/Reference/Global_attributes
Attributeshttps://developer.mozilla.org/fr/docs/Web/HTML/Reference/Attributes
See all…https://developer.mozilla.org/fr/docs/Web/HTML/Reference
Responsive imageshttps://developer.mozilla.org/fr/docs/Web/HTML/Guides/Responsive_images
HTML cheatsheethttps://developer.mozilla.org/fr/docs/Web/HTML/Guides/Cheatsheet
Date & time formatshttps://developer.mozilla.org/fr/docs/Web/HTML/Guides/Date_and_time_formats
See all…https://developer.mozilla.org/fr/docs/Web/HTML/Guides
SVGhttps://developer.mozilla.org/fr/docs/Web/SVG
MathMLhttps://developer.mozilla.org/fr/docs/Web/MathML
XMLhttps://developer.mozilla.org/fr/docs/Web/XML
CSS: Styling languagehttps://developer.mozilla.org/fr/docs/Web/CSS
Propertieshttps://developer.mozilla.org/fr/docs/Web/CSS/Reference/Properties
Selectorshttps://developer.mozilla.org/fr/docs/Web/CSS/Reference/Selectors
At-ruleshttps://developer.mozilla.org/fr/docs/Web/CSS/Reference/At-rules
Valueshttps://developer.mozilla.org/fr/docs/Web/CSS/Reference/Values
See all…https://developer.mozilla.org/fr/docs/Web/CSS/Reference
Box modelhttps://developer.mozilla.org/fr/docs/Web/CSS/Guides/Box_model/Introduction
Animationshttps://developer.mozilla.org/fr/docs/Web/CSS/Guides/Animations/Using
Flexboxhttps://developer.mozilla.org/fr/docs/Web/CSS/Guides/Flexible_box_layout/Basic_concepts
Colorshttps://developer.mozilla.org/fr/docs/Web/CSS/Guides/Colors/Applying_color
See all…https://developer.mozilla.org/fr/docs/Web/CSS/Guides
Column layoutshttps://developer.mozilla.org/fr/docs/Web/CSS/How_to/Layout_cookbook/Column_layouts
Centering an elementhttps://developer.mozilla.org/fr/docs/Web/CSS/How_to/Layout_cookbook/Center_an_element
Card componenthttps://developer.mozilla.org/fr/docs/Web/CSS/How_to/Layout_cookbook/Card
See all…https://developer.mozilla.org/fr/docs/Web/CSS/How_to/Layout_cookbook
JavaScript: Scripting languagehttps://developer.mozilla.org/fr/docs/Web/JavaScript
Standard built-in objectshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects
Expressions & operatorshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Operators
Statements & declarationshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Statements
Functionshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Functions
See all…https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference
Control flow & error handinghttps://developer.mozilla.org/fr/docs/Web/JavaScript/Guide/Control_flow_and_error_handling
Loops and iterationhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Guide/Loops_and_iteration
Working with objectshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Guide/Working_with_objects
Using classeshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Guide/Using_classes
See all…https://developer.mozilla.org/fr/docs/Web/JavaScript/Guide
Web APIs: Programming interfaceshttps://developer.mozilla.org/fr/docs/Web/API
File system APIhttps://developer.mozilla.org/fr/docs/Web/API/File_System_API
Fetch APIhttps://developer.mozilla.org/fr/docs/Web/API/Fetch_API
Geolocation APIhttps://developer.mozilla.org/fr/docs/Web/API/Geolocation_API
HTML DOM APIhttps://developer.mozilla.org/fr/docs/Web/API/HTML_DOM_API
Push APIhttps://developer.mozilla.org/fr/docs/Web/API/Push_API
Service worker APIhttps://developer.mozilla.org/fr/docs/Web/API/Service_Worker_API
See all…https://developer.mozilla.org/fr/docs/Web/API
Using the Web animation APIhttps://developer.mozilla.org/fr/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API
Using the Fetch APIhttps://developer.mozilla.org/fr/docs/Web/API/Fetch_API/Using_Fetch
Working with the History APIhttps://developer.mozilla.org/fr/docs/Web/API/History_API/Working_with_the_History_API
Using the Web speech APIhttps://developer.mozilla.org/fr/docs/Web/API/Web_Speech_API/Using_the_Web_Speech_API
Using web workershttps://developer.mozilla.org/fr/docs/Web/API/Web_Workers_API/Using_web_workers
All web technologyhttps://developer.mozilla.org/fr/docs/Web
Accessibilityhttps://developer.mozilla.org/fr/docs/Web/Accessibility
HTTPhttps://developer.mozilla.org/fr/docs/Web/HTTP
URIhttps://developer.mozilla.org/fr/docs/Web/URI
Web extensionshttps://developer.mozilla.org/fr/docs/Mozilla/Add-ons/WebExtensions
WebAssemblyhttps://developer.mozilla.org/fr/docs/WebAssembly
WebDriverhttps://developer.mozilla.org/fr/docs/Web/WebDriver
See all…https://developer.mozilla.org/fr/docs/Web
Mediahttps://developer.mozilla.org/fr/docs/Web/Media
Performancehttps://developer.mozilla.org/fr/docs/Web/Performance
Privacyhttps://developer.mozilla.org/fr/docs/Web/Privacy
Securityhttps://developer.mozilla.org/fr/docs/Web/Security
Progressive web appshttps://developer.mozilla.org/fr/docs/Web/Progressive_web_apps
Learn web developmenthttps://developer.mozilla.org/fr/docs/Learn_web_development
Getting started moduleshttps://developer.mozilla.org/fr/docs/Learn_web_development/Getting_started
Core moduleshttps://developer.mozilla.org/fr/docs/Learn_web_development/Core
MDN Curriculumhttps://developer.mozilla.org/en-US/curriculum/
Structuring content with HTML modulehttps://developer.mozilla.org/fr/docs/Learn_web_development/Core/Structuring_content
CSS styling basics modulehttps://developer.mozilla.org/fr/docs/Learn_web_development/Core/Styling_basics
CSS layout modulehttps://developer.mozilla.org/fr/docs/Learn_web_development/Core/CSS_layout
Dynamic scripting with JavaScript modulehttps://developer.mozilla.org/fr/docs/Learn_web_development/Core/Scripting
Playgroundhttps://developer.mozilla.org/en-US/play
HTTP Observatoryhttps://developer.mozilla.org/en-US/observatory
Border-image generatorhttps://developer.mozilla.org/fr/docs/Web/CSS/CSS_backgrounds_and_borders/Border-image_generator
Border-radius generatorhttps://developer.mozilla.org/fr/docs/Web/CSS/CSS_backgrounds_and_borders/Border-radius_generator
Box-shadow generatorhttps://developer.mozilla.org/fr/docs/Web/CSS/CSS_backgrounds_and_borders/Box-shadow_generator
Color format converterhttps://developer.mozilla.org/fr/docs/Web/CSS/CSS_colors/Color_format_converter
Color mixerhttps://developer.mozilla.org/fr/docs/Web/CSS/CSS_colors/Color_mixer
Shape generatorhttps://developer.mozilla.org/fr/docs/Web/CSS/CSS_shapes/Shape_generator
About MDNhttps://developer.mozilla.org/en-US/about
Advertise with ushttps://developer.mozilla.org/en-US/advertising
Communityhttps://developer.mozilla.org/en-US/community
MDN on GitHubhttps://github.com/mdn
Bloghttps://developer.mozilla.org/en-US/blog/
WebAssemblyhttps://developer.mozilla.org/fr/docs/WebAssembly
Guideshttps://developer.mozilla.org/fr/docs/WebAssembly/Guides
Utiliser l'API JavaScript de WebAssemblyhttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API
https://github.com/orgs/mdn/discussions/739
https://developer.mozilla.org/de/docs/WebAssembly/Guides/Using_the_JavaScript_API
https://developer.mozilla.org/en-US/docs/WebAssembly/Guides/Using_the_JavaScript_API
https://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API
https://developer.mozilla.org/ja/docs/WebAssembly/Guides/Using_the_JavaScript_API
https://developer.mozilla.org/ko/docs/WebAssembly/Guides/Using_the_JavaScript_API
https://developer.mozilla.org/pt-BR/docs/WebAssembly/Guides/Using_the_JavaScript_API
https://developer.mozilla.org/ru/docs/WebAssembly/Guides/Using_the_JavaScript_API
https://developer.mozilla.org/zh-CN/docs/WebAssembly/Guides/Using_the_JavaScript_API
Vous pouvez contribuer en rejoignant la communauté francophone sur MDN Web Docs.https://developer.mozilla.org/fr/docs/MDN/Community/Contributing/Translated_content#langues_actives
https://developer.mozilla.org/en-US/docs/WebAssembly/Guides/Using_the_JavaScript_API
compilé un module depuis un autre langage en utilisant des outils comme Emscriptenhttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/C_to_Wasm
chargé et éxecuté vous-même le codehttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Loading_and_running
les concepts de WebAssemblyhttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Concepts
Quelques exemples simpleshttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#quelques_exemples_simples
Mémoirehttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#mémoire
Tableauxhttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#tableaux
Globalshttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#globals
Multiplicitéhttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#multiplicité
Résuméhttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#résumé
Voir aussihttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#voir_aussi
Quelques exemples simpleshttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#quelques_exemples_simples
webassembly-examples (angl.)https://github.com/mdn/webassembly-examples
Préparationhttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#préparation
simple.wasm (angl.)https://raw.githubusercontent.com/mdn/webassembly-examples/master/js-api-examples/simple.wasm
modèle simple (angl.)https://github.com/mdn/webassembly-examples/blob/main/template/template.html
Conversion du format WebAssembly en Wasmhttps://developer.mozilla.org/en-US/docs/WebAssembly/Guides/Text_format_to_Wasm#un_premier_apercu_du_format_texte
Diffusion de notre module webassemblyhttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#diffusion_de_notre_module_webassembly
WebAssembly.compileStreaming()https://developer.mozilla.org/fr/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static
WebAssembly.instantiateStreaming()https://developer.mozilla.org/fr/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static
Responsehttps://developer.mozilla.org/fr/docs/Web/API/Response
ArrayBufferhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
instantiate-streaming.html (angl.)https://github.com/mdn/webassembly-examples/blob/main/js-api-examples/instantiate-streaming.html
en direct (angl.)https://mdn.github.io/webassembly-examples/js-api-examples/instantiate-streaming.html
Chargement de notre module wasm sans diffusionhttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#chargement_de_notre_module_wasm_sans_diffusion
WebAssembly.compile()https://developer.mozilla.org/fr/docs/WebAssembly/Reference/JavaScript_interface/compile_static
WebAssembly.instantiate()https://developer.mozilla.org/fr/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static
ArrayBufferhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
Visualiser wasm dans l'outil de développementhttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#visualiser_wasm_dans_loutil_de_développement
Mémoirehttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#mémoire
mémoire linéair (angl.)ehttps://webassembly.github.io/spec/core/exec/index.html
instructions de chargement et de stockage (angl.)https://webassembly.github.io/spec/core/exec/instructions.html#memory-instructions
mémoires partagéeshttps://developer.mozilla.org/en-US/docs/WebAssembly/Guides/Understanding_the_text_format#mémoires_partagées
postMessage()https://developer.mozilla.org/fr/docs/Web/API/Window/postMessage
ArrayBufferhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
SharedArrayBufferhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
WebAssembly.Memory()https://developer.mozilla.org/fr/docs/WebAssembly/Reference/JavaScript_interface/Memory
modèle simple (angl.)https://github.com/mdn/webassembly-examples/blob/main/template/template.html
Redimensionner la mémoirehttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#redimensionner_la_mémoire
Memory.prototype.grow()https://developer.mozilla.org/fr/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow
RangeErrorhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/RangeError
ArrayBufferhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
Memory.prototype.grow()https://developer.mozilla.org/fr/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow
Instance.prototype.exportshttps://developer.mozilla.org/fr/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports
Exemple avancé pour l'utilisation mémoirehttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#exemple_avancé_pour_lutilisation_mémoire
memory.wasm (angl.)https://raw.githubusercontent.com/mdn/webassembly-examples/master/js-api-examples/memory.wasm
memory.wat (angl.)https://github.com/mdn/webassembly-examples/blob/main/js-api-examples/memory.wat
DataViewhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/DataView
Memory.prototype.bufferhttps://developer.mozilla.org/fr/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer
memory.html (angl.)https://github.com/mdn/webassembly-examples/blob/main/js-api-examples/memory.html
en direct (angl.)https://mdn.github.io/webassembly-examples/js-api-examples/memory.html
Tableauxhttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#tableaux
référenceshttps://en.wikipedia.org/wiki/Reference_(computer_science)
Table.prototype.set()https://developer.mozilla.org/fr/docs/WebAssembly/Reference/JavaScript_interface/Table/set
Table.prototype.grow()https://developer.mozilla.org/fr/docs/WebAssembly/Reference/JavaScript_interface/Table/grow
techniques de liaison dynamique (angl.)https://github.com/WebAssembly/tool-conventions/blob/main/DynamicLinking.md
Table.prototype.get()https://developer.mozilla.org/fr/docs/WebAssembly/Reference/JavaScript_interface/Table/get
Un exemple de tableauhttps://developer.mozilla.org/fr/docs/WebAssembly/Guides/Using_the_JavaScript_API#un_exemple_de_tableau
table.wasm (angl.)https://raw.githubusercontent.com/mdn/webassembly-examples/master/js-api-examples/table.wasm
table.wat (angl.)https://github.com/mdn/webassembly-examples/blob/main/js-api-examples/table.wat
modèle HTML (angl.)https://github.com/mdn/webassembly-examples/blob/main/template/template.html