in reply to Re^7: Run Perl 5 in the Browser!
in thread Run Perl 5 in the Browser!
This means Perl's op-codes are executed at "native speed". But JS code is normally far better optimized by using JIT. The same algorithm in JS and Perl will normally run (much) faster in JS.
True, with Perl there's the additional layer of the execution of opcodes. I don't know much about JavaScript JIT, but if it's compiling to native machine code (and not something internal like WebAssembly), then yes, the same algorithm in JS should be faster than WebPerl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Run Perl 5 in the Browser!
by LanX (Saint) on Aug 22, 2018 at 22:23 UTC |