LWN: Comments on "Truly portable C applications" https://lwn.net/Articles/997238/ This is a special feed containing comments posted to the individual LWN article titled "Truly portable C applications". en-us Fri, 22 Aug 2025 11:23:56 +0000 Fri, 22 Aug 2025 11:23:56 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net "Tech" isn't the only consideration https://lwn.net/Articles/1000238/ https://lwn.net/Articles/1000238/ faramir <div class="FormattedComment"> TLDR: Interesting technology, probably not one I would want to depend on long term without some non-tech research.<br> <p> As someone who has been around the FOSS world for a while, I often see interesting new technologies that don't become an integral part of the software ecosystem that I can depend on. There can be many reasons for that to happen that have nothing to do with the quality of the technology. For example, many projects have a 'bus factor' of close to one. ReiserFS is an example of something that went away for that reason. I haven't determined the veracity of the concerns raised in this case, but I appreciate those who pointed them out. Because (if true), they could threaten the long term viability of the software completely independent of any personal moral issues that I might have.<br> </div> Sat, 30 Nov 2024 01:56:29 +0000 Overwriting an executable? https://lwn.net/Articles/999330/ https://lwn.net/Articles/999330/ ssokolow <blockquote>If the binary can't overwrite itself for whatever reason (or has been configured not to at build time), it can instead write a modified copy of itself to a temporary location and invoke that.</blockquote> That assumes the target system hasn't been configured so that all user-modifiable locations are mounted <code>noexec</code> as part of a larger security policy. Sat, 23 Nov 2024 18:54:12 +0000 Note: https://lwn.net/Articles/998447/ https://lwn.net/Articles/998447/ corbet I approved the above comment because, given that the poster has been targeted for extensive criticism here, to do otherwise seemed unfair. This is not an invitation to restart the discussion, though; it needs to stop here. Sun, 17 Nov 2024 14:34:50 +0000 As a postscript... https://lwn.net/Articles/998435/ https://lwn.net/Articles/998435/ jart <div class="FormattedComment"> I'm also an LWN subscriber. I was so happy when I saw that Daroc took the time to put together a second, very well researched article that covered many subtle facets of Cosmopolitan Libc that typically go unnoticed. In the four years I've been working on this project in public, more effort went into this piece than any I've seen so far. However this comment section is is not the kind of attention I want. While I can't thank you enough for the support you've provided, not moderating these kinds of comments probably does more to hurt my career, since this will likely be the part that folks remember.<br> <p> I understand there are concerns here about the name of my project. For what it's worth, I named it "cosmopolitan" in the sense of cosmopolitan liberalism, which I define as wanting to feel at home in every nation, and the reason why I did that is because my project builds executables that aim to feel at home on (almost) every operating system. I created tools that help you build programs that overcome artificial barriers so you can have impact helping more communities, while respecting the rules each platform put in place. If anyone has actionable feedback on how I can do that better, then I'm more than happy to listen.<br> </div> Sun, 17 Nov 2024 14:32:37 +0000 Not relevant https://lwn.net/Articles/998434/ https://lwn.net/Articles/998434/ corbet The reason you don't see people called out for making racist statements here is ... because that doesn't really happen much here. For something that overtly discriminatory, you may never see it at all; that is exceedingly rare, but there was one episode recently. <p> The people we addressed did not get that attention for "calling out" or "criticizing" racism. It was because they pointedly ignored our "no personal attacks" policy. In your case after multiple requests to stop. We have been consistent about that policy for many years; please do not try to make it into something that it is not. <p> It is time for this discussion to end, let's do that here, please. If you wish to discuss our moderation policy with us, send us a note at lwn@lwn.net and we can talk further that way. Sat, 16 Nov 2024 22:16:13 +0000 As a postscript... https://lwn.net/Articles/998419/ https://lwn.net/Articles/998419/ mgb <div class="FormattedComment"> LWN is one of the least crazy forums on the Intertubes. Thank you.<br> <p> But off-topic stuff has been posted here occasionally. And it was rightly criticized by your moderators.<br> <p> What I have never seen before is two people punished in this way. It is not a good look for LWN that in both cases the people were punished for criticizing racism.<br> <p> My personal preference would be for the article, the punishments, and all associated comments to be expunged.<br> </div> Sat, 16 Nov 2024 22:07:33 +0000 Not relevant https://lwn.net/Articles/998418/ https://lwn.net/Articles/998418/ atnot <div class="FormattedComment"> Yeah so, for the record, I do fully accept I overstepped my bounds here and I'm sorry about that.<br> <p> The point I meant to illustrate was that a large contingent of the people who claim to support Justine for her technical achievements are in fact just racists and antisemites and are generally very bad at hiding it. But I could and should have just made that point directly instead of launching a barrage of personal attacks at some random person who just happened to make a tantalizingly good case in point. I also did not mean to make such insinuations about any LWN staff, to be clear.<br> <p> I do agree with you in the general case that this website tends to punish e.g. calling out racism far harder proclaiming your support for racists or making racist statements. And I would still encourage anyone to ponder the the long-term implications of such a policy. But in this case I accept that the moderator action against me specifically was warranted.<br> <p> I also consider Corbet's position ("we didn't know and might have handled things differently") much more satisfactory than the previous one ("we don't care please shut up"). It is perhaps the latter that led me to put a finer point on it than I should have, and with the further clarification I do consider that resolved, not that that excuses it.<br> </div> Sat, 16 Nov 2024 22:06:42 +0000 As a postscript... https://lwn.net/Articles/998417/ https://lwn.net/Articles/998417/ corbet We get it: people wish that we had not highlighted work by this particular author. Had we known more about the person in question, we <i>might</i> have shied away from the topic. But the article is out now, it describes a bit of interesting technology, people have had their say, please let's leave it at that. Sat, 16 Nov 2024 18:11:42 +0000 Not relevant https://lwn.net/Articles/998415/ https://lwn.net/Articles/998415/ corbet This is not a site for people to snipe at what others have posted on reddit. It is not a site for personal attacks in general. <p> There is a lot to criticize in the world right now. Trust me, I live in the US, I'm well aware of it. But if we let that discussion take over LWN, we won't have LWN anymore. There are plenty of other places where these discussions can be had. Sat, 16 Nov 2024 18:06:07 +0000 Not relevant https://lwn.net/Articles/998411/ https://lwn.net/Articles/998411/ mgb <div class="FormattedComment"> Punishing criticism of racism is never a good thing.<br> </div> Sat, 16 Nov 2024 17:48:39 +0000 Not relevant https://lwn.net/Articles/998406/ https://lwn.net/Articles/998406/ jake <div class="FormattedComment"> This is not the place for this. I have put atnot into moderated mode, which is something we really do not like to do.<br> <p> Everyone else, please drop this. It is not relevant.<br> <p> jake<br> </div> Sat, 16 Nov 2024 16:38:44 +0000 Not relevant https://lwn.net/Articles/998392/ https://lwn.net/Articles/998392/ atnot <div class="FormattedComment"> Hi Nick, since you were lending your credibility to Justine and I wasn't familiar with what that credibility was, I thought I'd give it a quick check.<br> <p> When you made some recent comments on reddit, for example saying that you couldn't imagine someone thinking "black america" was admirable or something to look up to[1] and that you didn't want North America to look like South Africa[2], what did you mean by that?<br> <p> It seems like your comment stating, in reference to Americans' role in Israel's occupation of palestine, that "if I could, I would annex other planets"[3] was considered too far by the moderators so I won't question you on that.<br> <p> You also seem to have an odd penchant for bringing up the "Turner Diaries", a book which describes a purely hypothetical (wink wink) future purge of jews, non-whites and "liberals" in the US, described by some as the most hateful book ever written. I also gather from context that you personally own a copy of it. I would rather not speculate as to why that is.<br> <p> I would also usually look past your use of the neo-nazi stock phrase "this is what they took from us", as it is sometimes used mockingly, but given the previous context I do find it somewhat concerning. As are the streaks of covid denialism and also the virulent transphobia, but I guess that just comes with the territory.<br> <p> I'll stop there but given this brief look, I'm not surprised you think very highly of her. <br> <p> [1] <a href="https://www.reddit.com/r/self/comments/1gmnrhf/comment/lw7chvx/">https://www.reddit.com/r/self/comments/1gmnrhf/comment/lw...</a><br> [2] <a href="https://www.reddit.com/r/AskHistory/comments/1fh96qp/comment/lr845jd/">https://www.reddit.com/r/AskHistory/comments/1fh96qp/comm...</a><br> [3] <a href="https://www.reveddit.com/v/worldnews/comments/1fafc9b/american_activist_shot_dead_in_occupied_west_bank/lltc7eb/?context=3&amp;add_user=sosodank...new.all.t1_lllc1iz..#t1_lltc7eb">https://www.reveddit.com/v/worldnews/comments/1fafc9b/ame...</a><br> </div> Sat, 16 Nov 2024 15:53:18 +0000 Not relevant https://lwn.net/Articles/998386/ https://lwn.net/Articles/998386/ jake <div class="FormattedComment"> <span class="QuotedText">&gt; I certainly don't go around personally vetting the beliefs of every maintainer of software I use against my own.</span><br> <p> Right. And we don't either.<br> <p> That's why this line of comments is not relevant to this article. As asked before, please stop here. Not just you, but the whole sub-thread.<br> <p> thanks,<br> <p> jake<br> </div> Sat, 16 Nov 2024 14:18:11 +0000 Not relevant https://lwn.net/Articles/998383/ https://lwn.net/Articles/998383/ dankamongmen <div class="FormattedComment"> for whatever it's worth, i worked with justine at google-ny, and she was one of the finest people (and technologists) i met in my years there. i consider myself lucky to call her a friend.<br> </div> Sat, 16 Nov 2024 13:45:22 +0000 Not relevant https://lwn.net/Articles/998375/ https://lwn.net/Articles/998375/ atnot <div class="FormattedComment"> I think this brings up a good point, which is that "sticking to technology" only works if it's mutual. You know who isn't "sticking to technology"? People like Justine Tunney.[1]<br> <p> I certainly don't go around personally vetting the beliefs of every maintainer of software I use against my own. But when you "stick to technology" and uncritically promote the work of a controversial figure without context, and that person then turns around and uses that legitimization and notariety to promote fascism, the net effect of that can only be promoting fascism. And you shouldn't be surprised when people take issue with that.<br> <p> [1] Even within just the context of this article, it should be noted that "cosmopolitan" has been historically used by antisemites as stand-in for "jewish" and given her history I would expect this played at least some factor in the naming choice (see e.g. <a href="https://en.m.wikipedia.org/wiki/Rootless_cosmopolitan">https://en.m.wikipedia.org/wiki/Rootless_cosmopolitan</a>). In fact the resemblance between this antisemtic trope and the design of her libc is pretty uncanny.<br> </div> Sat, 16 Nov 2024 08:57:47 +0000 Overwriting an executable? https://lwn.net/Articles/998371/ https://lwn.net/Articles/998371/ Lennie <div class="FormattedComment"> I think it's a good thing that it needs to overwrite itself, because that means it can't be used as a virus if the admins configure the system directly and only allow programs that are installed by the admin. Because if you have an installer on Windows or a package manager on Linux/Unix then they could do that 1 step to install it correctly.<br> </div> Sat, 16 Nov 2024 07:00:54 +0000 Not relevant https://lwn.net/Articles/998354/ https://lwn.net/Articles/998354/ lunaryorn <div class="FormattedComment"> I respectfully disagree. Sure, "let's stick to technology" and all that, but this just isn't a person who's just holding some mildly annoying views or does some slightly weird things.<br> <p> This is someone for whom even a dead simple google search immediately brings up views and statements that I can only describe as borderline fascistic. Where I'm from most of that stuff would be absolutely unacceptable and intolerable and probably even prosecutable. And it's someone who's done political activism, who themselves haven't been silent about their opinions at all, in technology contexts. It's someone who talks loud and wants to be heard.<br> <p> That's just an wholly different level of escalation, and I think this is one of the cases where I definitely consider the state of affairs long past "let's just talk technology". Some things are more important than technology, and sometimes a site about technology should definitely talk about the wider context.<br> </div> Fri, 15 Nov 2024 22:16:00 +0000 Not relevant https://lwn.net/Articles/998352/ https://lwn.net/Articles/998352/ atnot <div class="FormattedComment"> Right, it's fine as long as the trains are on time<br> </div> Fri, 15 Nov 2024 21:44:03 +0000 Not relevant https://lwn.net/Articles/998346/ https://lwn.net/Articles/998346/ kleptog <div class="FormattedComment"> Sure you can. The technology presented in the article doesn't become more or less useful or interesting based on whatever views someone holds elsewhere.<br> <p> I think it's perfectly reasonable for a technology site to stick to the technology. This is not someone anyone is likely to meet or interact with, so whatever else they do is rather irrelevant to know.<br> <p> </div> Fri, 15 Nov 2024 20:39:58 +0000 Not relevant https://lwn.net/Articles/998343/ https://lwn.net/Articles/998343/ lunaryorn <div class="FormattedComment"> They absolutely are relevant. <br> <p> You can't just "split" the public appearance of a person into the nice things you'd like to report about, and the "oh we'd rather not talk about these" things. It's still the same person saying those things. <br> <p> If you talk about light you better talk about the shadows, too. <br> <p> You choose what you want to report on, you choose whom you'd like to give a platform. If you don't want to talk about shadows, don't start writing about light. But if you write about light and then aggressively pretend shadows don't exist, that's just dishonest.<br> <p> It's not as if we're talking about a person with just a few oddities and some mildly annoying views... <br> </div> Fri, 15 Nov 2024 19:59:02 +0000 a question of manners https://lwn.net/Articles/998252/ https://lwn.net/Articles/998252/ paulj <div class="FormattedComment"> I too would prefer to know than not know. Thanks.<br> </div> Fri, 15 Nov 2024 10:35:45 +0000 a question of manners https://lwn.net/Articles/998245/ https://lwn.net/Articles/998245/ atnot <div class="FormattedComment"> I was not aware of this and that's good to know, thanks for mentioning it<br> </div> Fri, 15 Nov 2024 09:05:25 +0000 Not relevant https://lwn.net/Articles/998214/ https://lwn.net/Articles/998214/ jake <div class="FormattedComment"> Justine's views in unrelated areas are not relevant to this article.<br> <p> thanks,<br> <p> jake<br> </div> Thu, 14 Nov 2024 19:40:16 +0000 a question of manners https://lwn.net/Articles/998212/ https://lwn.net/Articles/998212/ dskoll <p>Parent comment was a bit shocking, but prompted me to do some online searches and... huh... it's not very pretty. Thu, 14 Nov 2024 19:25:10 +0000 stop this right here https://lwn.net/Articles/998197/ https://lwn.net/Articles/998197/ jake <div class="FormattedComment"> This kind of comment has no place here. Please refrain from this kind of thing. I have placed you into moderated mode to help ensure that you stay "polite, respectful, and informative".<br> <p> jake<br> </div> Thu, 14 Nov 2024 16:01:50 +0000 a question of manners https://lwn.net/Articles/998196/ https://lwn.net/Articles/998196/ jubal <div class="FormattedComment"> did ms. tunney finally stop using antisemitic or racist dogwhistles for her projects now that she's pretending she's not a techno-fascist anymore?<br> </div> Thu, 14 Nov 2024 15:47:37 +0000 jart must have had fun https://lwn.net/Articles/998103/ https://lwn.net/Articles/998103/ mirabilos <div class="FormattedComment"> I discovered cosmo some months ago, and I am (still) both at the same time.<br> <p> It’s something I would do, just even more… (and on more contemporary platforms than I do… I do i386+sparc32 and things like that).<br> </div> Thu, 14 Nov 2024 03:20:47 +0000 jart must have had fun https://lwn.net/Articles/998099/ https://lwn.net/Articles/998099/ Cyberax <div class="FormattedComment"> I can't decide whether it's great or horrifying.<br> </div> Wed, 13 Nov 2024 23:09:49 +0000 jart must have had fun https://lwn.net/Articles/998096/ https://lwn.net/Articles/998096/ pbonzini <div class="FormattedComment"> The sources to the header of the APE format are completely crazy:<br> <p> <a href="https://raw.githubusercontent.com/jart/cosmopolitan/1.0/ape/ape.S">https://raw.githubusercontent.com/jart/cosmopolitan/1.0/a...</a><br> </div> Wed, 13 Nov 2024 20:18:53 +0000 Overwriting an executable? https://lwn.net/Articles/998094/ https://lwn.net/Articles/998094/ mathstuf <div class="FormattedComment"> <span class="QuotedText">&gt; And have them work like old MacOS universal binaries, which had both Intel and PowerPC executables on the same file....</span><br> <p> The Mach-O format explicitly supports having multiple architectures in the binary. There is/was an effort for a "FatELF" format to do this, but it has, AFAIK, never made much of an impact.<br> </div> Wed, 13 Nov 2024 20:01:40 +0000 Linux kernel patch for handling APEs natively https://lwn.net/Articles/998089/ https://lwn.net/Articles/998089/ Lionel_Debroux <div class="FormattedComment"> Justine Tunney has also produced a Linux kernel patch for directly loading the ELF part of APEs: <a href="https://justine.lol/ape.patch">https://justine.lol/ape.patch</a> .<br> </div> Wed, 13 Nov 2024 19:22:13 +0000 Overwriting an executable? https://lwn.net/Articles/998088/ https://lwn.net/Articles/998088/ daroc <div class="FormattedComment"> If the binary can't overwrite itself for whatever reason (or has been configured not to at build time), it can instead write a modified copy of itself to a temporary location and invoke that.<br> </div> Wed, 13 Nov 2024 18:39:09 +0000 Overwriting an executable? https://lwn.net/Articles/998086/ https://lwn.net/Articles/998086/ jorgegv <div class="FormattedComment"> I can imagine all sorts of warnings and alerts coming from security software, antimalware, audit systems, etc. the very first moment an executable overwrites itself...<br> <p> Also, I suppose this does not work either in inmutable storage (e.g. container images), or storage that is measured and/or authenticated (e.g. dmverity).<br> <p> I appreciate the effort, but I'm not sure this way of achieving multiplataformas execution is in line with current developments... Can this "self overwrite" thing be deactivated, even at the cost of a slightly higher startup latency? And have them work like old MacOS universal binaries, which had both Intel and PowerPC executables on the same file....<br> </div> Wed, 13 Nov 2024 18:18:43 +0000 What about Zig? https://lwn.net/Articles/998085/ https://lwn.net/Articles/998085/ mathstuf <div class="FormattedComment"> I think `zigcc` can generate platform-specific binaries from anywhere (like a cross-compiler). `cosmocc` is, rather, making a "target" that executes on any of up-to-12 platforms as a single binary.<br> </div> Wed, 13 Nov 2024 18:02:55 +0000 What about Zig? https://lwn.net/Articles/998084/ https://lwn.net/Articles/998084/ prittner <div class="FormattedComment"> I'm not a fan of the Zig language at all, but there have been similar discussions about using it as a cross platform C tool chain: <a href="https://ruoyusun.com/2022/02/27/zig-cc.html">https://ruoyusun.com/2022/02/27/zig-cc.html</a><br> <p> I wonder how this approach has evolved in the last two years and how it compares to Cosmopolitan?<br> </div> Wed, 13 Nov 2024 17:56:55 +0000