memory64
botnet
memory64 | botnet | |
---|---|---|
7 | 5 | |
179 | 69 | |
1.7% | - | |
8.5 | 0.0 | |
1 day ago | about 1 year ago | |
WebAssembly | Rust | |
GNU General Public License v3.0 or later | GNU Affero General Public License v3.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
memory64
-
Top 8 Recent V8 Updates
A completed implementation of memory64 for memory-hungry applications.
-
Extism Makes WebAssembly Easy
Indeed, webassembly is moving extremely slowly. I started a project years ago expecting https://github.com/WebAssembly/memory-control/blob/main/prop... and https://github.com/WebAssembly/memory64 to be fixed at some point. Neither are yet, and the project still suffers from it to this day.
I think wasm is still great without these fixes, but I have lost confidence in the idea that wasm will reach its full potential any time soon.
-
How Photoshop solved working with files larger than can fit into memory
It's in the works: https://github.com/WebAssembly/memory64
Starting with 32bit had some performance advantages because 64bit runtimes can use virtual memory shenanigans to implement bounds checking with zero overhead. In wasm64 they'll have to do explicit bounds checking instead.
-
Transformers.js
Right - currently, everything runs using WASM (32-bit, with 64-bit coming soon [1,2]), and I plan to add support for WebGPU soon!
(WebGPU is the successor to WebGL, which is coming out in April 2023 [3])
[1] https://github.com/WebAssembly/memory64/issues/36#issuecomme...
-
What was the rational for 32-bit memory addresses in WebAssembly? It seems very short-sighted, considering it only came out pretty recently in 2017
It shouldn't be a big surprise that a 64-bit pointer extension is out there and being worked on. The great thing about a VM is you can integrate major changes like this when they are needed and with the benefit of experience and hindsight. If the 4GB limit turns out to be restrictive then it can be lifted.
- Why Am I Excited About WebAssembly?
-
Increasing Smart Contract Canister Memory Proposal is live for review
The goal of this proposal is to increase the amount of memory that canisters can access [eventually] bound only by the actual capacity of the subnet. Since, the Memory64 proposal is not standardized 1 yet and its implementation 1 in Wasmtime is not production ready yet, this proposal enables the increase by introducing a new stable memory API.
botnet
-
Out of the loop: WASM for non-web projects
I was/am working on a project (https://github.com/JMS55/botnet), where users upload scripts compiled to WASM to control entities on a game server, so that they can write custom behavior.
-
Sandboxing DLL Code
Never heard of extism before, but second using WASM for plugins/scripting/extensions. I'm using it for botnet(1). Each player uploads a WASM program to control their bots. Both the server and the bot SDK are written in Rust, and can share some code.
-
Why Am I Excited About WebAssembly?
4. Speed
I'm hoping to write my thesis for my master's degree on this topic this year. I'm also in the process of writing a game like screeps, where users provide a WASM script to control units for an RTS-style game (without combat though) https://github.com/JMS55/botnet.
It's amazing how simple it is to constrain memory usage, runtime duration, and secure exported functions to a WASM VM. Performance is also great - currently about ~6 microseconds per tick per unit, up to ~200 microseconds when doing expensive pathfinding. All that, while letting you program your units in Rust - the same language as the server is written in, while being able to share code with the server, and not having to use something more script-y like lua.
-
easy to use Plugin API in rust?
The boilerplate sucks, but it works well when you don't need a ton of different functions. I use wasm as a scripting language for running isolated untrusted scripts in a game I'm developing, and it works really well https://github.com/JMS55/botnet.
-
Ask HN: Who needs help with side projects?
I'm working on a Screeps-like game using WebAssembly. You compile a script to WebAssembly, and for each robot you control on the server, it runs the script in an isolated environment to choose an action for that robot. The goal is to write a program to coordinate your robots to gather resources and expand your control of the server.
Here's an example bot script: https://github.com/JMS55/botnet/blob/master/example_bot/src/...
The basic infrastructure of the project is more or less in place, besides a visual replay viewer which I'm working on right now. What's needed is a bunch of work in designing game mechanics and APIs. I don't actually have any plans beyond bots running around and harvesting randomly generated resources at the moment. Feel free to open a discussion on the github page if you're interested in Rust, WebAssembly, and video games.
https://github.com/JMS55/botnet
What are some alternatives?
interface-types
micropolis-rs - The classic Micropolis (Sim City 1) game rewritten in Rust and React, with WebAssembly support.
wasmtime - A fast and secure runtime for WebAssembly
homebridge-lutron-caseta-leap - Homebridge support for Lutron Caseta Smart Bridge 2
temporal-polyfill - A lightweight polyfill for Temporal, successor to the JavaScript Date object
baghchal.net - Online Baghchal Issue Tracker
proposal-temporal - Provides standard objects and functions for working with dates and times.
component-sandbox-demo
Rhai - Rhai - An embedded scripting language for Rust.
reference-types - Proposal for adding basic reference types (anyref)
extism - The framework for building with WebAssembly (wasm). Easily load wasm modules, move data, call functions, and build extensible apps.