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.

C++ Asynchronous Framework

232 pointsby shchekleinalmost 3 years ago

15 comments

Arnavionalmost 3 years ago
Based solely on the one example function on the homepage, this seems to be pre-empting asynchronous functions, presumably a fiber yielding and resuming internally, so that the code looks synchronous. libuv's API is based on callbacks. So both the implementation and the usage are very different.
评论 #32283286 未加载
FridgeSealalmost 3 years ago
Yandex (and ClickHouse) does some really, really cool technical stuff.<p>I like that a lot of the stuff they write about and open-source has a fairly strong focus on efficiency + performance. I also find the supporting docs (those that detail the problem space, how it solves the problem, etc) quite well written and often a lot more comprehensible than docs from other mainstream tech companies (MS docs are the worst, followed by Google).<p>I’m not sure why this is the case though, is it a different development culture? Different project management culture (provisions time for documentation?) something else?
评论 #32283469 未加载
评论 #32283675 未加载
评论 #32285443 未加载
评论 #32287973 未加载
评论 #32284145 未加载
cmmalmost 3 years ago
I just briefly skimmed the docs, so my observations may be inaccurate, but I got the impression that &quot;stackful coroutines&quot; are basically green threads (not C++20 coroutines, as the name might hint). Green threads need a dedicated stack per thread, with all that implies, and also I don&#x27;t find the cute &quot;magical&quot; implicit yielding helpful readability- and comprehension-wise, but that&#x27;s more a matter of taste.<p>It is either telling or a glaring oversight (let&#x27;s assume the latter) that there is no comparison with Seastar, which supports both C++20 coroutines and callbacks, with helpful syntax sugar for latter (coroutines are still nicer though!), has green threads too (which it calls &quot;threads&quot;), and can use io_uring, dpdk, etc. Seastar is free, actively developed, and is used by real software with demanding performance and scaling requirements, so in light of Seastar existing I&#x27;d expect any new C++ async framework to approach the task of &quot;selling&quot; itself more seriously than &quot;it&#x27;s like Go or Python but in C++!&quot;.
评论 #32287549 未加载
fractalbalmost 3 years ago
&gt; Speed of C++, simplicity of Python, coroutine model of Go.<p>That sounds great. Can someone with more experience with C++ tell how good this framework actually is?
评论 #32285396 未加载
coliveiraalmost 3 years ago
Excellent job, I love Yandex products, and this framework seems to be very useful.
intelVISAalmost 3 years ago
Looks good, I usually roll my own async stuff with C++20 coroutines but I&#x27;ll have to try this out; seems promising.
twobitshifteralmost 3 years ago
“Speed of C++, simplicity of Python, coroutine model of Go.”<p>Is there a speed comparison to Go?
sannysanoffalmost 3 years ago
Seems like same principles used in <a href="https:&#x2F;&#x2F;github.com&#x2F;yyzybb537&#x2F;libgo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yyzybb537&#x2F;libgo</a><p>Using libgo for 3 year, still cool. Most important: you add it, add some convenience methods on top of it, and forget about it.
mikewarotalmost 3 years ago
Somewhere in that library is code to yield()... and all I see is a forest of .hpp files (which I assume are the equivalent of .h files for c++)<p>Where does it actually get implemented?
评论 #32285162 未加载
dataflowalmost 3 years ago
No Windows support apparently: <a href="https:&#x2F;&#x2F;userver.tech&#x2F;d9&#x2F;d08&#x2F;md_en_userver_supported_platforms.html" rel="nofollow">https:&#x2F;&#x2F;userver.tech&#x2F;d9&#x2F;d08&#x2F;md_en_userver_supported_platform...</a>
评论 #32284431 未加载
mgaunardalmost 3 years ago
&quot;the&quot; C++ asynchronous framework? How presumptuous.
评论 #32286113 未加载
maxdoalmost 3 years ago
Yandex top managers are running away from Russia as their government forcing them to spread hate. They alter their news, search results as government asks. Their tech including DB&#x27;s is used for military use and is one of backbone companies that keep this bloody regime to run.<p>No matter how good this product is , Yandex as company is extremely toxic. Contributing to this product you are indirectly contribute in killing people.<p>They are advertising ( online ) recruitment process of an extremely poor and depressed regions to go and fight in ukraine.<p>They are one of the major propaganda engine of a regime who combined 18th century imperialist where they are excited to capture new territories and praise it will be good for their isolated economy.<p>80% of Russians Support war. Hence yandex as company is in charge of something even more frightful actions. They are actually hate ukrainains getting to the level of nazzis that considered some the west european countries a broken version of Germans. To compare. Soviet Union had thousands of Schools in ukrainian, printed good quality books in Ukrainian, they only didn&#x27;t tolerate politics. Russians don&#x27;t recognize ukraine as a nation with any rights and opened educational camps. The first thing they do on captured territories they destroy Ukrainain books, schools materials and any relations with culture. They import brainwashed teachers from Russia and forcefully educate kids.<p>School Teachers are backbone of their regime. Guess who provide them software? Yandex .<p>Yandex software is definitely used to run filtration camps, forcefully re-educate kids from their native language into Russian and other things no one could imagine would exist in 21st century.<p>So no, this is not yet another proxy war between two big powers. This a war of reborn 18th century imperialism combined with fascist way of mobilizing russian people.<p>Is up to you to support their project or not, but one day this new world order can come into your house.
评论 #32284219 未加载
评论 #32284106 未加载
voz_almost 3 years ago
This doesn&#x27;t mean much without benchmarks
评论 #32284270 未加载
hugez9almost 3 years ago
Do you know about cython ?
godmode2019almost 3 years ago
Yandex has better long tail results than google or bing.<p>If you are trying to find something obscure, yandex is always my final option, before I give up.<p>Google is basically a Amazon pipeline at this point, I save every useful URL because I know I won&#x27;t be able to find it again.<p>If you are trying to buy something google is easily the best, or anything local, or news related.<p>Bing is a better general search engine, for quick searches.
评论 #32284352 未加载