Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
3cats-in-a-coat
on Sept 5, 2023
|
parent
|
context
|
favorite
| on:
WASM: Big deal or little deal?
I wonder if you have an object whose state has that same schema tied to a DataView offset if it'd be much different tbh.
paulgb
on Sept 5, 2023
[–]
You could create a JS object with accessor functions that stores an offset, but the object itself still takes up heap space. In Rust, it would just be a (typed) pointer to the position in the buffer and wouldn't require an allocation.
3cats-in-a-coat
on Sept 5, 2023
|
parent
[–]
It's trivial to fix with an ECS layout, but the point is does it matter.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: