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.

FibJS: Based on V8, uses fibers instead of async

18 pointsby alexbezhanabout 2 years ago

4 comments

olegpabout 2 years ago
As someone who wrote something similar (<a href="https:&#x2F;&#x2F;github.com&#x2F;olegp&#x2F;common-node">https:&#x2F;&#x2F;github.com&#x2F;olegp&#x2F;common-node</a>) back in the day before async&#x2F;await, I have to say that I don&#x27;t see much of a need for this nowadays. The only feature that&#x27;s still useful that I can think of is the ability to run the same code on V8 and the JVM.
bcoatesabout 2 years ago
I think this is a hoax&#x2F;joke?<p>The performance test is bizarre, and literally nothing in the development guide ever shows anything but single-thread serial code for i&#x2F;o.<p>What, exactly, happens if a second user accesses the website while a request is processing?<p>Also the docs don&#x27;t explain how fibers are being used -- what is the scheduling strategy? Is there even more than one fiber?
评论 #35178118 未加载
评论 #35175950 未加载
评论 #35176016 未加载
rswskgabout 2 years ago
The docs are so disingenuous<p><a href="https:&#x2F;&#x2F;fibjs.org&#x2F;en&#x2F;docs&#x2F;guide&#x2F;about.md.html" rel="nofollow">https:&#x2F;&#x2F;fibjs.org&#x2F;en&#x2F;docs&#x2F;guide&#x2F;about.md.html</a><p>The comparison doesn&#x27;t do half of what the original did. Bizarre
llamaLordabout 2 years ago
Is it just me, or does their example of the traditional way of doing those calls user literally the least efficient possible way of writing that code?<p>Surely using async&#x2F;await would get you to something nearly as clean as their end-state
评论 #35177404 未加载
评论 #35176665 未加载