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.

Ignition: V8 Interpreter

131 pointsby hittarukialmost 10 years ago

11 comments

hittarukialmost 10 years ago
<a href="https:&#x2F;&#x2F;twitter.com&#x2F;andywingo&#x2F;status&#x2F;630705153922838528" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;andywingo&#x2F;status&#x2F;630705153922838528</a>
评论 #10034384 未加载
pwgalmost 10 years ago
See this: <a href="http:&#x2F;&#x2F;i.stanford.edu&#x2F;pub&#x2F;cstr&#x2F;reports&#x2F;cs&#x2F;tr&#x2F;94&#x2F;1520&#x2F;CS-TR-94-1520.pdf" rel="nofollow">http:&#x2F;&#x2F;i.stanford.edu&#x2F;pub&#x2F;cstr&#x2F;reports&#x2F;cs&#x2F;tr&#x2F;94&#x2F;1520&#x2F;CS-TR-9...</a> (ADAPTIVE OPTIMIZATION FOR SELF: RECONCILING HIGH PERFORMANCE WITH EXPLORATORY PROGRAMING)<p>Esp. section 5.3+ starting on physical pdf page 56.
评论 #10034410 未加载
s_kilkalmost 10 years ago
Can anyone summarize what this move will mean for performance on the average web app?<p>Will they be giving up some speed to claw back some memory?
评论 #10034332 未加载
评论 #10034401 未加载
twotwotwoalmost 10 years ago
This might be about RAM-constrained phones; the design doc refers to &#x27;--optimize-for-size devices&#x27;, suggesting it won&#x27;t (initially?) be on for everyone. Android and Chrome OS already enable Linux zram to get more out of low-memory gadgets. Incidentally, Google announced a (to me very ambitious-sounding) push for $50 Android phones today (<a href="http:&#x2F;&#x2F;www.engadget.com&#x2F;2015&#x2F;08&#x2F;10&#x2F;google-revamps-android-one-india&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.engadget.com&#x2F;2015&#x2F;08&#x2F;10&#x2F;google-revamps-android-on...</a>) that better low-RAM support could mesh nicely with, though of course it&#x27;s just a coincidence the dates lined up.
gsgalmost 10 years ago
Interesting decision.<p>The architecture sounds a little unusual:<p>&quot;The interpreter itself consists of a set of bytecode handler code snippets, each of which handles a specific bytecode and dispatches to the handler for the next bytecode. These bytecode handlers are written in a high level, machine architecture agnostic form of assembly code, as implemented by the RawMachineAssembler class and compiled by Turbofan&quot;<p>It also seems as if all calls are mediated by code generated by the compiler, which has the advantage of avoiding the awkwardness of different calling conventions between native and bytecode functions (possibly at some cost to performance?).<p>Fascinating reading. Thanks V8 people for allowing such documents to be public!
评论 #10035845 未加载
评论 #10036936 未加载
评论 #10036175 未加载
themckmanalmost 10 years ago
I like the way Google projects seem to use Google Docs for this sort of thing. I&#x27;ve noticed in the past docs come up for projects like Angular and Go. I&#x27;d like to hear more about some of these documentation policies if anyone knows anything.
评论 #10035388 未加载
评论 #10035918 未加载
pietaalphaalmost 10 years ago
Would it be useful a &lt;hot-code&gt; tag for the purpose of indicating that optimizations are required for the code?<p>in Lisp we have compiler options (declare (optimize ...))
ilyaigpetrovalmost 10 years ago
Does this make implementation of other language compiled for V8 easier?
ndesaulniersalmost 10 years ago
So V8 will be moving from a two tier to a three tier architecture.<p>Spidermonkey is three tier and JSC is four.
评论 #10036085 未加载
评论 #10038432 未加载
felixangellalmost 10 years ago
The link to optimizing an ANSI C interpreter is broken, it&#x27;s missing a colon after the protocol. I dunno if there&#x27;s anyone here that can fix that, just thought I&#x27;d say it anyway.<p>Actually it&#x27;s not the colon, there are two protocols:<p><pre><code> http:&#x2F;&#x2F;http:&#x2F;&#x2F;dl.acm.org&#x2F;citation.cfm?id=199526 ^^^^^^^ </code></pre> My bad.
rancuralmost 10 years ago
by my deeds I will honor him, V8
评论 #10036965 未加载