asm.js Optimization

Discussions focus on asm.js performance and optimization in JavaScript engines like V8 and Firefox, including comparisons to JIT compilation, browser differences, and its relation to WebAssembly.

📉 Falling 0.5x Web Development
2,872
Comments
20
Years Active
5
Top Authors
#4569
Topic ID

Activity Over Time

2007
1
2008
14
2009
22
2010
55
2011
83
2012
107
2013
617
2014
266
2015
249
2016
193
2017
218
2018
148
2019
133
2020
166
2021
157
2022
134
2023
77
2024
129
2025
92
2026
11

Keywords

UC FF JIT SpiderMonkey JS ARM M1 V8 ASM TypedArrays asm js asm js v8 jit javascript optimizations performance code optimization

Sample Comments

Ravengenocide Jan 2, 2014 View on HN

asm.js can quite easily be optimized, but V8 is not yet optimized for it. So depending on the case it might run faster or slower depending on what JavaScript engine is running it.

Longhanks Dec 19, 2017 View on HN

With all major browser JIT compiling JavaScript, aren't they already?

rightbyte May 25, 2023 View on HN

The sufficiently smart JS compiler might be faster.

kingkilr Jul 10, 2013 View on HN

It's not an optimization for asm.js if you ignore the "use asm". It's just javascript then.

robryan Jan 25, 2011 View on HN

Sounds very similar to how browsers are optimizing js engines towards specific test implementations.

scotty79 Mar 11, 2015 View on HN

You can compile to asm.js if you care about performance that much.

ccozan Nov 6, 2014 View on HN

wouldn't that be the role of asm.js?

Sean1708 Dec 17, 2016 View on HN

You're thinking of ASM.js.

Scarbutt May 9, 2023 View on HN

For Javascript, what about that method would make it more performant than Javascript's JITs?

blattimwind Mar 11, 2020 View on HN

An engine like this would likely not implement the hardest bits - JIT and optimization. Many, if not most, vulnerabilities in modern JS engines arise from performance optimizations.