TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Indexed types for a statically safe WebAssembly [pdf]

51 pointsby luuabout 1 year ago

1 comment

comexabout 1 year ago
The paper waits until page 2 to mention that their scheme would not help standard WebAssembly implementations at all: those implementations already eliminate all bounds checks using a virtual memory trick, so reducing the number of required bounds checks makes no difference.<p>However, it would help implementations that can&#x27;t use the virtual memory trick, such as if they need to support a 64-bit WebAssembly address space, or run on a 32-bit host, or have a huge number of WebAssembly VMs in the same host process.<p>And if I understand their (extremely hard to read) graph correctly, the scheme reduces the bounds checking overhead in that case quite close to zero, which is pretty impressive.<p>On the other hand, any approach based on software bounds checking is ripe for speculative-execution attacks. Maybe that doesn&#x27;t matter because in the browser it&#x27;s a lost cause already?
评论 #39560851 未加载
评论 #39557910 未加载
评论 #39558192 未加载