Better HN
topnewbestaskshowjobs
Log inSign up

dokyun

192 karma · joined Aug 9, 2024 (2y ago) · 167 submissions

Submissions

comment 19m ago · link · parent

I'd trust Joe Bloggs to MITM my connections over Cloudflare.

comment 1w ago · link · parent

Hilarious how so much political discourse now is just downstream from /pol/ shitposting and people believe it's actually worth writing about. I've never seen the term "europoor" outside 4chan before this.

comment 1w ago · link · parent

Don't forget the avocado toast.

comment 2w ago · link · parent

Baffling reply.

comment 1mo ago · link · parent

> 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.

comment 1mo ago · link · parent

> 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.

comment 1mo ago · link · parent

> 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.

comment 1mo ago · link · parent

> 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."

comment 1mo ago · link · parent

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!

comment 1mo ago · link · parent

> 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.

comment 1mo ago · link · parent

Funny this is getting downvoted cause it's literally what Plan 9 C does.

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

comment 1mo ago · link · parent

SSL added and removed here :-)

comment 2mo ago · link · parent

Antisec was right.

comment 2mo ago · link · parent

piece of paper

comment 3mo ago · link · parent

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.

comment 3mo ago · link · parent

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.

comment 3mo ago · link · parent

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.

comment 3mo ago · link · parent

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!

comment 3mo ago · link · parent

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.

comment 3mo ago · link · parent

Lots of people run single-user instances.

comment 3mo ago · link · parent

> 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.

comment 3mo ago · link · parent

> 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).

123456