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.

Make the Raku programming language familiar to C++ programmers

64 pointsby lizmatalmost 3 years ago

7 comments

pie_flavoralmost 3 years ago
I love Raku. Perl faced the same sort of pressure as PHP did to modernize and get rid of insanity, but where PHP modernized by sweeping all the insanity under the rug, Raku leaned <i>into</i> the insanity and invented brand new modern forms of it. Global variables getting you down? Just use dynamically scoped variables, where assignment follows the call stack. Automatic conversion between strings and ints annoying? Stick it in the type system and let user-defined types implement the behavior too. Hate nulls? Use the class object itself as a typed null.<p>So much of the language is so fundamentally <i>different</i> from how languages are made in Current Year that I couldn&#x27;t begin to evaluate how useful or confusing these features are in the wild (especially operators like `ff`); I simply have zero context whatsoever for it.
评论 #31825523 未加载
samatmanalmost 3 years ago
I like the niche Raku has carved out for itself, as a sort of experimental platform for writing software expressively.<p>I don&#x27;t use it, I probably won&#x27;t, this kind of expressivity is something which feels good for developers but doesn&#x27;t help them cooperate. The tradeoffs are probably not worth it.<p>I&#x27;m glad it exists, though. It&#x27;s a language where the users mostly find neat ways to say things, Perl is a great basis for that sort of language, and I wish them well.
评论 #31810863 未加载
humanrebaralmost 3 years ago
I know this is a just for fun post, but C++ engineers haven&#x27;t been especially happy with iostreams. {fmt} and std::format are more modern alternatives.<p>And use of std::endl is widely considered an antipattern. Use of &#x27;\n&#x27; is always better for printing new lines.
评论 #31810498 未加载
评论 #31811879 未加载
bcatanzaroalmost 3 years ago
Just in time for C++23’s long awaited std::print<p><a href="https:&#x2F;&#x2F;github.com&#x2F;cplusplus&#x2F;papers&#x2F;issues&#x2F;884" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cplusplus&#x2F;papers&#x2F;issues&#x2F;884</a>
formerly_provenalmost 3 years ago
The despair of iostream coming to a language near you.
评论 #31810587 未加载
blippagealmost 3 years ago
I tried Raku a few times, but thought it to be too slow for me. Grammars seemed kinda nice, but somewhat frustrating.<p>One good thing about Raku is that I thought it had what I called &quot;a programmers mindset&quot;. To put it another way, the language seemed to be structured in such a way to &quot;think the way I think&quot;, rather than the other way around.
vmcsalmost 3 years ago
nowadays everyone does programming language
评论 #31810281 未加载
评论 #31811986 未加载
评论 #31811101 未加载