TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Curl on 100 Operating Systems

308 点作者 LaSombra超过 1 年前

21 条评论

NelsonMinar超过 1 年前
What an achievement! Curl is a blessing.<p>It&#x27;s interesting to me that he highlights 32 bit time_t as one important point of compatibility. Makes perfect sense if your goal is to keep your program working on many operating systems. OTOH 2038 is only 14 years away now, or well closer to today than when curl was launched. I wonder when no one will think working with 32 bit times is worth the trouble? My guess is about 3 months after the Y2K38 date, maybe even longer.
tetha超过 1 年前
This is something a bunch of devs growing closer to us ops-guys have learned as well: Dependants are drag. Infrastructure and central systems stop being agile and nimble if enough stuff depends on it. Trivial changes become really hard.<p>Like, if you have your service with a backend and a frontend and want to toss your API between those out and deal with it, who cares? Do it.<p>If you want to throw out some weird edge case in a base template because &quot;It&#x27;s ugly&quot;, you need to look at 20 legacy services, and 20 somewhat modernized services people don&#x27;t want to touch, and some 50 more services if they use that. That&#x27;s the work necessary to understand how much work that change would mean. At that point, we&#x27;re not talking about executing the change, or reverse engineering arcane mysteries.<p>I&#x27;m not going to say it&#x27;s glorious work, but it makes a roadie or an admin proud if you can keep the &quot;wonderful star&quot; afloat and change everything below it without anyone noticing.
kristopolous超过 1 年前
There&#x27;s a bunch of things on there that haven&#x27;t had a release in over 25 years. Are they still doing current builds on SCO, Xenix, OS&#x2F;2 and NextStep?<p>I&#x27;ve run these, I know some curl exists on them, but in my experience that curl is always like at least 15 years old.<p>If you say you don&#x27;t want to break some support matrix and the last build on a bunch of that matrix was well over a decade ago, how do you know it&#x27;s not broken?
评论 #38275221 未加载
评论 #38276109 未加载
评论 #38276186 未加载
评论 #38279511 未加载
snakeyjake超过 1 年前
&gt; Countless users and companies insist on sticking to ancient, niche or legacy platforms and there is nothing we can do about that.<p>Most people, even proprietary closed source developers, write software where one of the first sentences in its license is something like &quot;This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&quot;<p>That is inexpensive.<p>Some people, myself included, develop software where the fitness for purpose is guaranteed and warranties are explicit and absolute.<p>That is very expensive. And slow.<p>It makes sense to stick with ancient and niche platforms that have been pored over for 30-40 years by very slow and deliberate developers when someone may die, the environment may be ruined, or millions of dollars in damage may occur if something breaks.<p>At least that&#x27;s what I tell myself when staring at Ada on INTEGRITY on PowerPC.
评论 #38279319 未加载
Foivos超过 1 年前
One of the reasons for this popularity is the permissive license. I would guess that the license is MIT, but seems to be a bit different [1]. Does anybody know (in simple words) what are the main differences with MIT? The copyright webpage does not elaborate.<p>[1] <a href="https:&#x2F;&#x2F;curl.se&#x2F;docs&#x2F;copyright.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;curl.se&#x2F;docs&#x2F;copyright.html</a>
评论 #38276700 未加载
评论 #38277235 未加载
评论 #38276799 未加载
w3news超过 1 年前
I was expecting nearly 100 Linux versions, but wow, it is even 100 if you just count all Linux versions as a single OS.
评论 #38275963 未加载
einpoklum超过 1 年前
In my personal experience, when you write code which caters to many legacy systems, your code will likely end up...<p>* adhering closely to well-regarded coding practices regarding naming, typing, modularity etc.<p>* being more standards-compliant (except in clearly-identified locations)<p>* having more robust abstractions<p>* exhibiting less bugs (in particularly on modern platforms)<p>* having a more robust build system<p>* being automatically compatible with future platforms, or at the very least exceedingly easy to make compatible<p>which is a good thing.<p>(But this may not be true if you cater to just a <i>few</i> legacy systems, because then you might make do with a bit of idiosyncratic combination of fudges and hacks.)
turol超过 1 年前
Strange that they list FreeDOS, DR-DOS and MS-DOS as separate OSes even though they are very similar. They are effectively ABI-compatible, unlike the different Unix flavors.
评论 #38276222 未加载
评论 #38278047 未加载
评论 #38276771 未加载
Thaxll超过 1 年前
And people still wants it to be rewritten in Rust. Does Rust can actually targets all those arch &#x2F; os?
评论 #38276406 未加载
superasn超过 1 年前
Related reading: On how curl was born and its history (1)<p>(1) <a href="https:&#x2F;&#x2F;daniel.haxx.se&#x2F;blog&#x2F;2023&#x2F;03&#x2F;20&#x2F;twenty-five-years-of-curl&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;daniel.haxx.se&#x2F;blog&#x2F;2023&#x2F;03&#x2F;20&#x2F;twenty-five-years-of-...</a>
JaDogg超过 1 年前
Wonder if curl runs in more devices than Java?
评论 #38275776 未加载
评论 #38275612 未加载
评论 #38277573 未加载
tomcam超过 1 年前
101 to be exact. I run it on ENIAC but due to program size it takes me about 11 years to re-enter the machine code every time Daniel does an update. I’m currently on version 1.01 hoping to get to 1.01A around 2042.
orf超过 1 年前
The PR mentioned: <a href="https:&#x2F;&#x2F;github.com&#x2F;curl&#x2F;curl&#x2F;pull&#x2F;11610">https:&#x2F;&#x2F;github.com&#x2F;curl&#x2F;curl&#x2F;pull&#x2F;11610</a>
wolf550e超过 1 年前
s390 and z&#x2F;Arch are the same thing, at least as long as both 80386 and Core i9-14900K are both &quot;x86&quot;.
Always_Anon超过 1 年前
Yet still not on ESXi. Maddening.
评论 #38275023 未加载
评论 #38281434 未加载
ilovecurl超过 1 年前
I love curl. It just works.
berlinbrowngalt超过 1 年前
Isnt it just a gcc compiled program on 100 os systems. Where is gnu at?
评论 #38278052 未加载
queuebert超过 1 年前
Dave? Dave? I&#x27;m still waiting on a port for HAL 9000. Please, Dave.
评论 #38280404 未加载
robblbobbl超过 1 年前
Thumbs up for the evergreen!
johnklos超过 1 年前
It&#x27;s an excellent response to the rather dismissive attitude that a subset of developers have about legacy anything. Too many times they don&#x27;t care about portability and&#x2F;or correctness, and are happy to dismiss whatever they don&#x27;t use as irrelevant.<p>They did it when all the world was an i386 (a take on the &quot;all the world&#x27;s a VAX), and now they&#x27;re treating even 32 bit x86 the way they used to treat all non-x86. It&#x27;s not a good look.
xaerise超过 1 年前
It is not correct. He is counting ChromeOS as its own but in fact ChromeOS is Linux. Then he should count RHEL, Ubuntu, Lubuntu and so on also.
评论 #38275045 未加载
评论 #38274841 未加载
评论 #38274888 未加载
评论 #38274640 未加载