You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
他の2つと異なりビルド条件が緩め。 ただ、導入難易度はダントツに高い。 (動かないよりは遙かにいいか。。。) ヾ(・ω<)ノ" 三三三● ⅱⅲ コロコロ♪ ------------------- ↓ 本題はここから ↓------------------- プロジェクト作成 wasm-pack new wasm-mt cd wasm-mt cargo install cargo-edit wasm-pack wasm-bindgen-cli miniserve cargo upgrade cargo add wasm-mt serde_closure wasm_bindgen_futures cargo add serde --features "derive" cargo add web-sys --features "console" rustup toolchain add nigh
https://contrib.rocks はGitHubのAPIから取得したコントリビューター情報からSVG画像を生成している。これまでは SVG.js を使ったTypeScriptでの実装だったが、興味本位でRustで実装したものをWebAssembly(wasm)として実行するようにしたところ、パフォーマンスが顕著に向上したためそのまま採用することにした。 Rustもwasmもまともに触ったのは今回がはじめてだったため、実装には洗練する余地が多分にあるだろうが、この記事ではとりあえず作業の記録を書き残す。 NxワークスペースにRustをセットアップするまずはじめに、Nxのワークスペース内でRustの開発環境を整えた。Cargoにもワークスペース機能があり、複数のプロジェクトの依存関係解決を集約できる。 ドキュメントに従い、ワークスペースのルートディレクトリに Cargo.toml を
At Prime Video, we’re delivering content to millions of customers on more than 8,000 device types, such as gaming consoles, TVs, set-top boxes, and USB-powered streaming sticks. When we want to do an update, every one of those devices requires a separate native release, posing a difficult trade-off between updatability and performance. In the past year, we’ve been using WebAssembly (Wasm), a frame
これだけ多種多様なデバイスに対して、ログイン画面やパーソナライズされたポータル画面、動画の再生などの機能を実現するために、Amazon Prime VideoのアプリケーションはC++で開発されたJavaScript VMと、その上で動くJavaScriptアプリケーションの2つから構成されています。 そしてそれぞれが必要に応じてデバイスにダウンロードされ、実行されます。 特にJavaScriptのアプリケーション部分は実行時にダウンロードされ実行されることで、機能追加などの変更やバグフィクスが容易になっていると説明されています。 プロトタイプのWebAssembly化で10倍から25倍高速に Amazon.comがこのAmazon Prime VideoのアプリケーションにWebAssemblyの採用を検討し始めたのは2020年8月とのことです。 同社はプロトタイプとして低レイヤのJav
WebAssembly (or Wasm) is a W3C specification for a portable binary format for distributing and running code that has been implemented in the four major browser engines since 2017. In familiar terms, Wasm is used as a compilation target for various programming languages, generating a compact binary that can run at near-native speeds in the browser. This brought existing languages such as Rust, C an
CloudflareにはCloudflare Image Resizingがあるので、画像をオンザフライでリサイズするにはそれを使えますが、勉強の目的でCloudflare WorkersとRust(WebAssembly)を使ったエッジ上での画像リサイズに挑戦してみました。 環境の用意 Cloudflare WorkersでRustのWebAssembly開発の環境を整えるのには、下記の記事を参考にさせていただきました。Cloudflare Workersを開発するためのCLIツールであるwranglerがテンプレートを生成してくれるので簡単に環境を作成できます。 作ったもの 全コードはこちらのリポジトリからご確認ください。記事内では断片的にコードを紹介します。 Cloudflare Workersの開発用CLIであるwranglerを使って動作確認できます。 # 下記を実行後、ブラウザ
I try to keep a vague list of "technologies to try out" handy at all times. Usually things come and go from the list pretty quickly, but I've had a few that have been stubbornly persistent for quite a while now: Rust (at least for a big project)The Raft algorithmWebAssemblyWebRTCAt some point, I had a bright idea: "Why not knock out a bunch of them at once?" And thus WRaft was born. It's a Raft im
rollup.jsに爆速esbuildを組み込む方法 Rustのimage::load_from_memory遅すぎ問題 WebでWebAssemblyを使う方法を模索してふと思った。 (゚-゚) サイズでかいなぁ。。。 cargo buildで普通にビルドすると wasm_image_resizer.wasm 2.2 MB とメガ単位の結果がゴロゴロでてくる。 いくら光回線が当たり前のご時世でも、 ちょっとよろしくない。 なので今回はサイズを小さくする方法を調べてみる。 ヾ(・ω<)ノ" 三三三● ⅱⅲ コロコロ♪ ------------------- ↓ 本題はここから ↓------------------- 最適化レベルの調整 コンパイル時に行う最適化を設定する 0, 1, 2, 3, s, zの6種類から選択。 最適化レベルが高いのはzだが、 zが一番容量小さくなるわけではない
WebAssembly was initially conceived as a "JavaScript alternative for browsers" with the aim of enabling the execution of high-performance applications compiled from languages like C/C++ or Rust within web browsers. It operates alongside JavaScript, running in parallel to deliver enhanced performance. In recent times, WebAssembly has evolved into a universal runtime for cloud-native applications. I
In the last few years, organizations started to adopt stream processing architectures to power a new generation of data-driven services that can detect events, predict behaviors, and respond to customer demand in real-time. As these early pilots become production-ready services, organizations gradually expand these stream processing and analytics dataflows to other services. Moreover, as data volu
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く