Re:WebAssembly Raytracer
by asgs on Saturday December 16, 2017 @02:39PM
(#15941469)
nice comment! how does enforcing type system help improve the performance? is there any article that sheds more light? also, did you mean static typing instead of strong?
[ Parent
| on HN ]
Static typing means that typechecking can be done at compile-time, and optimizations can be applied then. Dynamic typing generally means that some runtime layer needs to do typechecking during execution. So, as a rule of thumb, it's usually assumed that a statically-typed language will be faster than a dynamically-typed one.
... unless the dynamically typed language also allows type declarations, intended mainly for enhancing speed.