Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
howdydoo
on Jan 3, 2022
|
parent
|
context
|
favorite
| on:
Vanta.js: Animated 3D backgrounds for websites
That's true, but that doesn't mean you should use it everywhere. Using Three.js to render a single quad is like using Rust+WASM to add two numbers.
noduerme
on Jan 3, 2022
[–]
Depends how many times you're gonna add two numbers though, right?
jokethrowaway
on Jan 3, 2022
|
parent
[–]
Not necessarily. If data is moving from JS to Rust too much it may even be slower than just using JS.
Also, the simpler the operation, the higher the chance v8 optimises it pretty well.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: