Y
Hacker News
new
|
ask
|
show
|
jobs
by
Others
1881 days ago
I worked on one as an undergrad:
https://github.com/gwsystems/aWsm
Full AoT compilation, C programs run within 10% of native
2 comments
heavyset_go
1881 days ago
10% difference from native, or 10% of native performance?
link
Others
1880 days ago
10% worse performance. Not 10x worse :D
link
moonchild
1881 days ago
Since it compiles using llvm, what's the reason for the discrepancy?
Lost information about e.g. aliasing?
link
Others
1880 days ago
Bounds checking, dynamic dispatch is more expensive, wasm semantics have no undefined behavior to exploit for optimizations. And there is bloat in the process. I’m sure losing information effects things as well
link