|
|
|
|
|
by eldude
3638 days ago
|
|
Can someone ELI5 why Python is more like rendering HTML than executing JS? This is confusing to me since much of node.js/V8 is C, yet AFAIK (from the title and my experience) it's faster, and I don't recall anything intrinsically more declarative (i.e. HTML) when writing python compared to JS. They both feel very similar as scripting languages to me. IOW, from my limited ignorant perspective, this feels more like the WHAT than the underlying differentiating WHY. It's possible it's in there and I missed it. EDIT: FWICT from the linked slides[1], it's the result of 2 issues: 1. Expensive dynamic language features and 2. python is like node.js, but as if you only called V8 bindings and so VM performance was irrelevant. This is strange to me; while I feel I can conceptualize the difference, I still don't know enough to understand why it is so compared with node.js. [1] https://docs.google.com/presentation/d/10j9T4odf67mBSIJ7IDFA... |
|