WebAssembly
Logo języka | |
| Pojawienie się |
9 lat temu |
|---|---|
| Typowanie | |
| Aktualna wersja stabilna |
2.0.0 |
| Twórca | |
| Licencja | |
| Platforma sprzętowa | |
| Platforma systemowa | |
| Strona internetowa | |
WebAssembly, w skrócie Wasm – otwarty standard przenośnego zapisu binarnego, oraz reprezentacji tekstowej (WAT – WebAssembly Text Format) w formie S-wyrażeń[1]. Głównym założeniem języka jest udostępnianie wysoko wydajnej platformy do uruchamiania aplikacji na stronach internetowych. Standardem zajmuje się organizacja W3C ze wsparciem Mozilli, Microsoftu, Google oraz Apple. Pracę nad Wasm zostały ogłoszone w 2015 roku[2]. W listopadzie 2017 Mozilla ogłosiła wsparcie „dla wszystkich głównych przeglądarek”[3]. Nazwa nawiązuje do języka asemblera, ponieważ jest to język niskopoziomowy.
WebAssembly (tzn. Podstawowa Specyfikacja WebAssembly[4] oraz Interfejs JavaScript WebAssembly[5]) stało się rekomendacją World Wide Web Consortium 5 grudnia 2019 roku, zostając czwartym językiem natywnie obsługiwanym w przeglądarkach internetowych, dołączając do HTML, JavaScript, oraz CSS.
Chociaż Wasm ma swoją reprezentację tekstową w postaci S-wyrażeń, jest najczęściej wynikiem kompilacji. Wiele języków można skompilować do Wasm, np. Rust, Go, C++, C#, Java, Python czy TypeScript.
Przykład reprezentacji tekstowej
(module
(import "math" "exp" (func $exp (param f64) (result f64)))
(func (export "doubleExp") (param $0 f64) (result f64)
(f64.mul
(call $exp
(get_local $0)
)
(f64.const 2)
)
)
)
Przypisy
- ↑ WAT - WebAssembly Text Format. WEBAssemblyMan. [dostęp 2021-12-14].
- ↑ Google, Microsoft, Mozilla And Others Team Up To Launch WebAssembly, A New Binary Format For The Web.
- ↑ WebAssembly support now shipping in all major browsers.
- ↑ WebAssembly Core Specification [online], 5 grudnia 2019 [dostęp 2021-02-28].
- ↑ WebAssembly JavaScript Interface [online], 5 grudnia 2019 [dostęp 2021-02-28].
Linki zewnętrzne
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.