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.

Recent efforts in V8 and DevTools for Node.js

109 pointsby tweakzover 8 years ago

6 comments

franciscopover 8 years ago
&gt; &quot;Async&#x2F;await will land in Node with the next V8 update.&quot;<p>You can actually try the async-await functionality with Node Current (7.2.1 as of this writing) by passing the flag --harmony-async-await:<p><pre><code> node --harmony-async-await app.js </code></pre> It will be available without flags in the LTS release in March (that is in 3 months). Say goodbye to Callback Hell, the future of Node.js is looking pretty good.
评论 #13187717 未加载
评论 #13187804 未加载
alistproducer2over 8 years ago
If you want to use chrome devtools without changing your version of node, I&#x27;d recommend this implementation of node + devtool that uses electron (<a href="https:&#x2F;&#x2F;github.com&#x2F;Jam3&#x2F;devtool" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Jam3&#x2F;devtool</a>).<p>It literally changed my life. Thanks whoever is responsible for this project.
评论 #13188312 未加载
hackcrafterover 8 years ago
I was confused when writing a NodeJs script last night which ES* features were supported in the node runtime I had installed (6.9.x).<p>This blog posts mentioned Node already fully supports ES6.<p>Is there a table anywhere that lists ES6&#x2F;ES7 features and which nodejs version supports it natively?<p>I assume async&#x2F;await (which I love and use from TypeScript) will only be available in Node 7.x and not 6.x.<p>The Node.js home-page makes node 7.x look scary unstable, is there any real-world caveats to using it?
评论 #13186924 未加载
评论 #13187339 未加载
评论 #13187472 未加载
评论 #13187258 未加载
partycoderover 8 years ago
Well, v8 is no longer the only alternative. Now there&#x27;s Chakra as well.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;nodejs&#x2F;node-chakracore" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nodejs&#x2F;node-chakracore</a><p>Many native modules are however v8 modules, not sure how that may work.
评论 #13187321 未加载
jcofflandover 8 years ago
The number one thing Google could do to improve v8, IMO, is to give it an easy to use cross platform build system. CMake for example. V8 has repeatedly changed build systems. From SCons to Gyp and now to GN. All of these systems have been fraught with errors. Just try building the latest v8 on OSX, Windows and Linux. The SCons system was actually the most reliable. It may not have had all the fancy features of the newer build systems but it was much easier to reliably reproduce the builds.<p>The second biggest improvement would be to simplify the API. Using Contexts, Isolates, HandleScopes, etc. is complicated and causes the code to crash in unpredictable ways when you get it wrong. The API was built with Chrome&#x27;s internals in mind and this shows.
评论 #13193107 未加载
cwpover 8 years ago
That all sounds great, but... modules. The biggest thing they could do is natively support ES6 modules.