News for hackers. Stuff that matters.

dokyun

Re:your C is not standard C on Friday October 16, 2026 @11:10PM (#50127527)
> Of course no doubt that (hopefully) C compilers used for compiling plan 9 things won't break it

You use the Plan 9 compiler to compile Plan 9 programs. Attempts at trying to get GCC to compile Plan 9 programs correctly have been mixed.

> So it effectively quietly makes a bunch of quiet guarantees that C99 doesn't

Yeah. It's not a C99 compiler.

> Even if not explicit, that's still semantics outside of those C99 specifies, that code may be relying on.

Yeah. They're not C99 programs.

> Fact of the matter is, you cannot make a full atomics library that will necessarily work correctly on C99.

Sounds like C99's problem.

Re:your C is not standard C on Friday October 16, 2026 @10:44PM (#50127384)
> to take advantage of the monstrous bandwidth offered by modern ethernet, OS bypass with the card DMAing directly in your process cache is a must.

Architecture problem. Do your programs normally saturate a 40 gig network pipe?

> The reality is that a programming language that claims to be usable for system programming must be able to deal with shared memory and provide a concurrent memory model.

You can boot up a Plan 9 kernel and tell me if it works or not. Like, this is not a high bar, but you keep treating it like it is because it's based on the assumption that all compilers are broken with the set of all compilers being GCC.

Re:your C is not standard C on Friday October 16, 2026 @12:04AM (#50113936)
> Not sure what CSP is supposed to mean

https://en.wikipedia.org/wiki/Communicating_sequential_proce...

> but if you eliminate shared memory and have the kernel copy data between threads, you're leaving a ton of performance on the table.

If that's your bottleneck then you've either already solved every other class of performance issue with your program or you're working in a fantasy environment-- you're probably not hacking on FFmpeg right now. 90% of performance is I/O bound, whether it be the disk, the network or whatever. You can easily ascertain the correctness of a CSP system, because it's just message passing and inherently synchronous. Not so much with shared memory. It's a tradeoff. Unix pipes are also pretty goddamn fast, like, this is an issue people have spent time squeezing as much performance as possible out of. Google uses Go for all of their important backend shit. The entire internet is a giant message passing system.

Re:your C is not standard C on Thursday October 15, 2026 @08:36PM (#50112226)
> As long as you want to use shared memory to communicate with concurrent processes

That's something pthreads do and CSP doesn't.

> you need a memory model with compiler support. Even if you exclusively use mutexes.

If you use CSP you can effectively eliminate shared memory in user space and you don't have to handle this with the compiler. Then you can say "here's a way to communicate between processes in user space, the runtime/kernel handles the shit underneath. If you want to do it some other way we can't guarantee it'll work."

Re:your C is not standard C on Thursday October 15, 2026 @04:47AM (#50100991)
It seems like the guy analyzes how Pthreads are formally defined and declares that "Threads cannot be implemented as a library". Maybe if the title was changed to "Pthreads cannot be implemented as a library" it'd be true. Pthreads are fucking abysmal.

> We explicitly do not address the less frequently used environments in which multiple concurrent threads communicate communicate primarily through message passing, such as C programs communicating only through the MPI[34] library, or Erlang[11] or Concurrent ML[28] programs.

Heh, there's your answer. CSP FTW!

Re:your C is not standard C on Thursday October 15, 2026 @04:36AM (#50100910)
> You need compiler/language support to ensure atomics are handled properly

That's an assumption that you're treating as though it somehow informs reality. I gave you an example of atomics being handled by a library, and the man page points to where in the source code it's defined.

> so you'd need to know how Plan 9's compiler/language specifies atomics.

It doesn't, as far as I can tell. Kencc is a very "dumb" compiler that does little magic nor does it extend the language beyond the standard C that the Bell Labs guys were used to. For whatever reasons, they found it expedient to write new libraries instead of changing the language itself. They did occasionally write compilers for new languages when they had wacky ideas that would be difficult to accomodate, like Newsqueak and Alef. In Alef's case they actually did accomodate some of it, which is how Plan 9 got libthread.

Re:your C is not standard C on Thursday October 15, 2026 @02:01AM (#50099803)
Funny this is getting downvoted cause it's literally what Plan 9 C does.

https://man.cat-v.org/plan_9/2/atom

Re:Cloudflare Ohttp Gateway on Saturday October 03, 2026 @03:08AM (#49942010)
SSL added and removed here :-)
Antisec was right.
Re:Ask HN: Advice on Migrating from 1Password? on Thursday September 03, 2026 @02:54AM (#49546720)
piece of paper
Re:Nitter project received cease and desist on Tuesday August 25, 2026 @10:32PM (#49443491)
I'm not sure if it ever was that hard but if you follow a bunch of people the network effects will kick in eventually, you can also add relays to pull in posts from other servers if you're impatient. A fresh instance can take some time before the known network starts filling in, especially if you don't know who to follow (or have anyone following you), but fedi is a series of tubes: it only pushes and pulls stuff from places it knows. I didn't have problems federating outgoing messages to my friends' instances when I started, but I wouldn't be surprised if some Mastodon servers use some stupid anti-spam measure that keeps low peer count servers away.
Re:Nitter project received cease and desist on Tuesday August 25, 2026 @09:14PM (#49442970)
Yeah, I do too; but it's just per-user. There are a couple instances that are so worthless that I'd rather throw all their posts in the trash than deal with their users individually, but I don't think that logic should be applied in general, which it unfortunately is.

Most instances of trolling can be dealt with by a single block, or reaching out to the admin, but basically no one puts in the effort to reach out if someone's causing problems (Hell, one guy even reported my whole site to my host without so much as a word in my direction, just for a couple inflammatory posts someone made).

And I don't think it's right to police what people are able to see and interact with if I'm running an instance with other people (if it were a single-user instance, that'd be different).

But hey, it's your server. You should do what you want with it. I just wanna do what I want with mine.

Re:Nitter project received cease and desist on Tuesday August 25, 2026 @08:44PM (#49442776)
https://fba.ryona.agency/ lets you browse instance block lists, sort by most defederated, who defederates the most, etc. There used to be FediBlock which maintained a centralized blocklist, but it doesn't exist anymore (gee, I wonder how something like that would end up eating itself?).

As far as reasoning goes, I think you can grasp how people would try and wield a tool like blocklists. A lot of blocks are merited, while some arent. I've had several blocks put on my instance from servers that I never even interacted with, for reasons that seemingly appear out of thin air.

Re:Nitter project received cease and desist on Tuesday August 25, 2026 @08:33PM (#49442687)
https://fedilist.com/ is a good instance browsing/monitoring tool maintained by the guy who runs fsebugoutzone.org, one of the more prominent and "fun" servers. He's a good dude.

You can browse by software, whether its open registration or not, allows tor, etc. You can glean statistics off of certain instances, which is really useful if you run one yourself. Most of the instances on the other side of fedi run the Pleroma software.

Have fun!

Re:Nitter project received cease and desist on Tuesday August 25, 2026 @03:22PM (#49439249)
Nothing, fedi is extremely anarchic by design. If you don't like a server you can move to a different one, or start your own. The big Mastodon servers put in a great deal of effort to police what their users can see and interact with (see FediBlock), but it's impossible to shut certain people or groups out of the network entirely. It's a double-edged sword, but it's a net good for the kind of network it was intended to be, which is a hacker's network; it wasn't designed for normies.
Re:Nitter project received cease and desist on Tuesday August 25, 2026 @03:15PM (#49439144)
Lots of people run single-user instances.
Re:Nitter project received cease and desist on Tuesday August 25, 2026 @03:04PM (#49438974)
> I've heard that - what is your experience? Downvotes and exclusion? Are there more 'open' servers?

Fediverse has plenty of servers which are "free speech" adjacent, which most Mastodon servers close off since its easier for them to police what their users can see than let them do it themselves. The vast majority of them do not run the Mastodon software, and feel far more "wild west" with all the shitposters. But if you want to talk with actual hackers and are into that sort of thing, it's fun times.

Re:Nitter project received cease and desist on Tuesday August 25, 2026 @02:42PM (#49438646)
> Nerd stuff is the reason I visit these sites.

Fedi is a lot better if you want nerd stuff specifically, running instances attracts a lot of hackers who're geared toward it. The big instances are pretty much the same shlock you get on Twitter/Bluesky but there's a lot of cool people in the margins (tip: look for instances that aren't running Mastodon).

Re:"No KYC" Crypto Cards Tap Corporate Issuing Loopholes on Wednesday August 05, 2026 @04:15PM (#49188369)
What are people who insist on paying with cash doing that they need to hide?
Re:Toot.community is shutting down on Thursday July 30, 2026 @02:42PM (#49113963)
Like usual, the Mastodon people have the least understanding of how federation actually works.

When a server stops federating, the federated posts still exist in the DB of all the remote instances that recieved it. They're still indexed and searchable from there. You could move those posts into the DB of a new server, but they'll still "originate" from the old one. But you can carry on and interact with old threads.

There's no real foolproof mechanism for updating posts, although there is an AP Update activity, much like deletes there's nothing forcing an instance to respect it.

Re:Codeberg Bans Cryptocurrency Projects on Thursday July 23, 2026 @02:33PM (#49026120)
Guys like Theo have a baseline to uphold and I think decades of dealing with the public on an open project with specific goals that need to be met would turn anyone sour. People respect him for his actual work though, like they used to with Torvalds before he got bought out by IBM.

Drew I think is just kind of a dick who has a history of putting his personal crusades before delivering a product people want. I remember a few years back sourcehut being reported as unstable and he went and lashed out at people who were complaining to him about it instead of fixing the issues. And he banned crypto projects cause he doesn't like them, at least Codeberg held it to a vote.

Patrick Volkerding is a pretty stable guy, I think he's the model more BDFLs should strive to be.

Re:Codeberg Bans Cryptocurrency Projects on Thursday July 23, 2026 @03:01AM (#49017859)
I wouldn't call Drew DeVault stable, he crashed out after 4chan simultaneously exposed his creation of the RMS report alongside his huge loli porn fixation.
What do you have against Moldova?
wine whatever.exe 2>/dev/null
Re:1983 Northern Telecom Commodore Phone on Monday June 22, 2026 @03:05AM (#48626745)
There's only two in the whole article, what are you smoking?
Re:Your brain was never designed for this much bad news on Sunday June 21, 2026 @04:15AM (#48616773)
Don't blame me, I voted for Kodos.
Re:Unauthorized alert sent to cell phones across Brazil on Saturday June 20, 2026 @09:13PM (#48614721)
And remember, kids, knowing how to program or wanting really badly to figure out how things work inside doesn't make you a hacker! Hacking boxes makes you a "hacker" ! That's right! Write your local representatives at Wikipedia/urbandictionary/OED and let them know that hackers are people that gain unauthorized access/privileges to computerized systems! Linus Torvalds isn't a hacker! Richard Stallman isn't a hacker! Niels Provos isn't a hacker! Fat/ugly, maybe! Hackers, no! And what is up with the use of the term "cracker"? As far as I'm concerned, that term applies to people that bypass copyright protection mechanisms. Vladimir Levin? HACKER. phiber optik? HACKER. Kevin Mitnick? OK, maybe a gay/bad one, but still WAS a "hacker." Hope that's clear.

-- The UNIX Terrorist

Re:AURpocalypse now: a look at the recent AUR attacks on Friday June 19, 2026 @09:23PM (#48605344)
SlackBuilds.org is pretty sensible.
Re:There Are No Instances in ATProto on Friday June 19, 2026 @03:14PM (#48602118)
Yeah, I mean a big reason why Fedi is segmented the way it is, is because the Mastodon crowd has a lot of merited and unmerited prejudices against the other parts of the network, and put a lot of effort into splitting it with centralized blocklists. The W3C working group that works with the AP spec (which refuses to cooperate with credible people representative of projects like Pleroma) is now looking to adopt a centralized moderation model similar to Bluesky's. It's one of the issues with the instance model, even though users have the tools to shape their own view of the network, to not have to see things they don't like, instance admins still get to dictate who they're allowed to talk to and what they see. I don't think that's right, even if the reasons are justifiable.

The guy who runs FSE (one of dark fedi's more notable instances) has written a lot of good blog posts on his side of the technical and social details, his one about running FediList is a good picture of the type of one-sided politics involved (and, if you're into the technical stuff, is rich with that too): https://blog.freespeechextremist.com/blog/about-fedilist.htm...

Re:There Are No Instances in ATProto on Friday June 19, 2026 @02:45PM (#48601773)
On fedi there are several distinct pockets apart from the mastodon crowd which although don't dominate in raw headcount have their own flavour and unique view of the network (in 2nd place is "dark fedi", which has more shitposters, hackers and free speech adjacents; there's also a contingent of Japanese users mostly on Misskey instances). What I get out of AT is that this wouldn't really happen, since the content distribution would dominate your view with Bluesky posts regardless of your relationship with the rest of the network.

Older ยป