Better HN
topnewbestaskshowjobs
Log inSign up

throwawaylinux

3,517 karma · joined Jul 23, 2021 (5y ago) · 2,823 submissions

Submissions

comment 3y ago · link · parent

This "culture war" is a very pressing threat, because a more united population can come together to demand change. Divided, they can not. Obviously this is by design. Not that the culture war does not include legitimate and important issues, but if you think for one second the ruling class who orchestrate wars and interventions that kill millions of people care even in the slightest bit about whether commoners can have abortions or what bathrooms they can use, I have a bridge to sell you.

Nobody has profiteered more from petroleum extraction and other environmental destruction over the centuries than this same ruling class. And despite a large majority of voters even in the US wanting more action on climate change, somehow very little meaningful is actually done about it. That must be all just a coincidence though, the actual people blocking climate action are a shadowy cabal of unemployed coal miner rednecks in West Virginia who actually run the world.

comment 3y ago · link · parent

IT has to be Computer Necromancer, surely? Their job is to resurrect dead systems. I mean you go to IT complaining about a miscreant computer and the very first thing they'll do is tell you to kill the thing then raise it from the grave.

comment 3y ago · link · parent

Whichever self-proclaimed "expert" spends more money lobbying the government and has more friends in legacy and social media corporations wins I think.

comment 3y ago · link · parent

I think you just weirdly don't know what over engineering means. It absolutely means adding things to a system that aren't necesary, even if you personally think they are simple or elegant or great or should be included. That's half the reason why over-engineering happens in the first place is because engineers let their desires or passion override rational analysis.

That's really one of the primary psychological drivers behind second system syndrome actually, is that designers will latch on to their pet ideas or theories in the mistaken belief that the success of their first product validated them. Everything is a file is a great example. Everything is a file is not what made unix so successful, and yet they over engineered all their network APIs into the file and mount interfaces unnecessarily. It's not that it wasn't neat or a fun toy, but it's just an over engineering of an already solved problem in an incompatible way that offered no compelling real world advantage.

> It is LESS COMPLEX. This is not a tricky or difficult concept.

It was MORE COMPLEX than it could have been. Also not tricky or difficult.

> No, I did not say that, or mean that, or imply that.

You definitely did.

> Totally disagree.

What useful things did it bring to systems design?

And I gave some examples of existing distributed systems. Lots of material on those you can read up on if you weren't aware of them.

comment 3y ago · link · parent

Making a transparent distributed operating system in the mid-late 80s and 90s as a Unix replacement was total over-engineering and over-complexity that never had any real demand or advantage. Therefore it is a great example, you just refuse to acknowledge that. Comparing it with actual real world operating systems of the time is misleading and does not refute the second system syndrome, because a lot of complexity in those came about from making them work in in real systems which Plan9 did not need. The fact is there was significant effort and complexity put into making it distributed, and that would not be required if it did not have this unnecessary capability.

You're grasping at straws a bit here, I would have expected you to defend your argument a bit better. First you try to justify the distributed capabilities of Plan 9 by saying it's now used in kubernetes 30 years on, and when I point out that's not transparent at the OS layer then you just change to not accepting it is a complexity at all.

Anyway the argument is pointless to continue. Plan 9 was a commercial failure and brought little new to systems design. It was a warmed over Unix with over-engineered distributed systems concepts that had been built up since the 50s and 60s and weren't new. At least contemporaries like OS/400 were attempting to bring something new even if they did not ultimately succeed (although OS/400 itself was far more of a commercial success than Plan9 of course).

comment 3y ago · link · parent

None of that transparency is done at the OS level today though, it is done in layers above that, and that's not some new thing that's just started now. It's obvious that's the way to go and trying to shoehorn some over engineered network transparency into a kernel never had any real justification or demand for it.

It's not like Plan 9 was new with distributed systems or concepts or network transparency. You had many distributed systems, MOSIX, VMS, X11, NFS, etc all a decade or more before Plan 9. For the most part they were an academic obsession that's has mostly run out of steam these days replaced with local operating systems and layers on top of those which add the distributed support.

comment 3y ago · link · parent

You can if you are careful what you use libc for, of course you can't use most of its process management, threading, or make any reentrancy or thread safety assumptions.

I don't mean you would be likely use it if you were writing a normal application in C, but a special case like creating your own runtime where existing interfaces don't do exactly what you like. You wouldn't be using those things in libc anyway in that case.

comment 3y ago · link · parent

> I know. That doesn't really excuse the suckiness of asynchronous signals. It's quite simply stupid to have operating system facilities that are as limited as actual hardware interfaces. With signals, you're supposed to write code like your computer is a Super Nintendo or something.

This isn't really comprehensible. The issues with signals are presented as something that makes them "broken". Are you claiming that hardware interrupts are broken?

> Signals suck as a notification system too, simply because there is no queue.

You are conflating two different things. A queue is for messages. An interrupt is for notification. This is how hardware interrupts work. Some work arrives somewhere (in a queue, a register, some memory, whatever), so an interrupt is raised to notify that work is pending.

Likewise signals can be and are associated with queues or messages or pending events that can be interrogated after the notification that there is work.

> You're supposed to be notified by a signal when a child process exits but the system can actually lose that information forever in certain conditions which means it is literally impossible to build truly correct software, best you get is good enough. You also get a signal when you write to a pipe with no readers or when the terminal is resized, making it that much more of a pain to deal with that stuff.

I won't go into every type of signal. There are some that are not defined in a way that can be used by what people want to use them for. That's not a problem with "signals", it's a problem with a particular signal or lack of additional interfaces around that to provide what is required.

> The paper mentions several concrete examples in wide use right now even in consumer machines. Systems on a chip with accelerators, GPUs...

For the most part not heterogeneous. Masters that have access to host address translation services (like cache coherent GPUs or FPGAs on some busses, like nvlink or CXL with ATS) have equal ability to access the entire process memory space. And fork doesn't look really different from many other operations on an address space from the point of view of an MMU whether it's on the core or associated with an accelerator -- all it is is changing memory protections and taking page faults, the same kind of COW is done with private writable mappings, or page deduplication, for example. They really are just handwaving up things that nobody actually uses.

comment 3y ago · link · parent

What is the narrative you believe I am building out of thin air?

The thin-air narrative I destroyed was that democracy is inherently slow and wasteful. It's not, unless you are going to argue that democracy was somehow suspended, or that this project is still slow and wasteful due to democracy.

comment 3y ago · link · parent

> I would paraphrase your answer as: speed trumps complexity, and any programmer that gets caught out by the complexity is just a bad programmer.

That's a strawmn. A complete mischaracterization of what I wrote.

> Either way, your answer does not address the issues listed in the paper.

The "issues" are just wrong, as I pointed out. Like the laughable "infects the entire system" comment using as their example an implementation of fork in which major layers of the system were entirely unaware of fork. Contradicting themselves with their own example. It's not a paper, it's a rant, and it doesn't somehow gain gravitas or value just by being laid out in a particular way.

comment 3y ago · link · parent

I notice you were unable address the parts of my comment where I showed it does fit the second system syndrome. That's what I suspected.

comment 3y ago · link · parent

It is made more complex than it needs to be. I feel you're just not able to accept that. Shoehorning all abstractions into a file, making a distributed system, these are examples of over-engineering.

It doesn't have to be "bloated", or particularly bigger than a previous system or competitors, you're fixating on that part of the second system syndrome too much. But if you're really fixated on that vs Unix then take a look at the original unix for something far smaller and more elegant.

comment 3y ago · link · parent

Notice how all these things are being done in the real world on Linux, a monolithic Unix derivative.

I mean some of the connections you're trying to draw there are pretty shaky too, but I didn't say Plan 9 has no good ideas and nothing was ever learned from it. If you want something concrete, the actual 9p protocol is used to share certain resources between virtual machines in Linux today. I think certain aspects of mount, e.g., bind and union mounts at least came to Linux via Plan9 too.

That's not my argument. I'm not saying Plan9 is garbage with no redeeming features. But it is generally a failure, and a victim of second system syndrome.

> the tendency of small, elegant, and successful systems to be succeeded by over-engineered, bloated systems

Over-engineered being the important part, although that phrase is pretty arbitrary. It's obsessing and becoming irrationally myopic on certain parts of the system that the designers liked or may have been unique or interesting in the first system, in the mistaken belief that those are the important parts of the system.

> Plan 9 is dramatically smaller and simpler than mainstream UNIX systems, such as Linux.

Well naturally, Plan 9 is a relic, and was never more than a toy even when it wasn't.

comment 3y ago · link · parent

People living in unimaginable wealth and comfort on the back of environmental exploitation including in large part petroleum extraction and burning, want to pull the ladder up after them to prevent others having those same advantages, to keep their position in the status quo. Yep.

I'm not talking about actual environmentalists who practice what they preach and I am in awe of and have great respect for. Those people are few and far between though, you almost can't find one these days since their noble movement has been absolutely swamped and taken over by grifters, limousine liberals, politicians, the wealthy, and the ruling class. Hence why I put "environmentalists" in quotes.

comment 3y ago · link · parent

Democracy is not inherently slow and wasteful, as you see here Germany created this large project in short order. They did not abandon democracy to achieve it.

The key is that the "environmentalists", politicians, judiciary, activists, and people who would block the process were threatened with feeling the pain of the missing infrastructure. Amazing how quickly they abandon their high horses when it looks like it will cost them something, then it's full throttle with construction and fossil fuels. They like to be "all in this together" when they're inflicting this kind of pain on others though, so what seems to be inherent is people's desire to wield power and authority over others.

comment 3y ago · link · parent

> If Plan 9 had been released earlier before Unix took over the world, then there's a good chance Plan 9 would've taken over the world instead.

If something different had happened things might have been different. Maybe. There's also a good chance it wouldn't have, in my opinion, and Unix still would have taken over the world.

> Bad decisions can be made without the second system effect coming into play, and vice versa.

Yes but Plan 9 is a classic second system syndrome. Unix made "everything is a file, but not quite". Plan 9 took that to the absolute extreme, demonstrating that they clearly missed what was good about that Unix design choice, which was was not some theoretical purity. Unix was a highly network-able system, and Plan 9 took that to the absolute extreme trying to develop a distributed single system image, again missing what was good about Unix networking, which was not the ability to make a remote machine behave as though it was the same system as the local one.

> Releasing plan 9 as a propietary OS during that time was pure folly, but not the second system effect.

No you're right, the proprietaryness of the OS wasn't the part that was the second system syndrome. Over-engineering something that was not needed or wanted and releasing it 8-10 years after many successful commercial and academic Unixes had been used.

I mean if it was a research effort to inform how Unix might evolve and be improved in the real world sure, but they expected actual users to switch over to this warmed over Unix-ish looking thing with lots of things you don't want, oh and it's incompatible with your existing systems. Come on.

I know this hurts Plan 9 fanatics to hear, but it's not amazing. You can listen on a network port with a file, and you can access a file or run a program on some other computer "in the ether". Neat. Then you go on with your life.

comment 3y ago · link · parent

> If you'd read the Microsoft Research PDF linked above, you'd have seen that fork scales with how much memory the parent is using, which would be invisible in these synthetic benchmarks.

Ah right, I was talking about SMP scaling, but yes fork does have an O(memory) scaling factor.

It certainly shows up on benchmarks because 99% of forking in Unix is on small processes (make, bash, etc.), not huge ones like Chrome. This kind of thing is why the Windows kernel is unable to compete with Linux in performance and scalability in in a lot of important basic operations that make things like git slow. The focus was on some academically supposedly "correct" interface or way of doing things, not what programs actually want to use.

> They say that Chrome on Linux might take up to 100ms to fork. That doesn't scream very fast to me.

Yeah probably true. If I needed a facility to be able to exec very frequently in a highly threaded application with a huge memory footprint and significant security concerns, I would almost certainly use a dedicated process to do that. You can potentially use posix spawn or clone directly, but forking from a thread from the main process in this case just seems unnecessary and asking for portability problems.

I don't say fork is perfect or can't be improved, but the hysteria about it's "infecting" the whole system and causing some vast problem is just not at all true.

comment 3y ago · link · parent

Great, this is how it should be. The real problem is trying to artificially induce population growth in highly developed and consuming countries, rather than allowing them to naturally peak and reach a sustainable level.

comment 3y ago · link · parent

Fork is actually very fast. Too funny a paper coming from Microsoft about fork/exec speed -

https://www.bitsnbites.eu/benchmarking-os-primitives/

Linux absolutely destroys the "proper" API. Nearly 40x faster at launching a program with fork+exec than Windows' CreateProcess. Not to mention the fact that vfork has always been available which is even faster.

Fork is also pretty scalable, it requires no global locks. It is thread-safe, it has defined semantics in threaded programs and can be used to exec a process. And it isn't insecure, it does what is advertised, as securely as advertised.

And close on exec is hardly a huge complication, it's actually a detail of exec(), not fork. It applies independently of exec, and you could make an exec that closes fds by default unless they're marked with a persist-on-exec flag. Library or runtime code can do this anyway really without any "huge complication". I don't know what you mean about SCM_RIGHTS interfering with fork, do you have something in mind? The problem would really be at the exec boundary, fork does not purport to alter any security attributes of the child or parent, so it really doesn't make sense to call it insecure. It doesn't suddenly get new rights, or have any limits enforced.

I mean it is complicated stuff, but so is any process runtime environment that provides async notifications, threads, spawning, etc. Anybody who tells you they can make this simple and broadly usable is selling you snakeoil or a toy API. If people can't cope with reading documentation and thinking carefully about this stuff, they shouldn't use it anyway, they should use a higher level runtime or library to do process management. The handwringing about fork is a bit baffling. Reminds me of the handwringing about fsync, it seems that people just don't read documentation and make silly assumptions about how things should work, and then get embarrassed and blame the tools.

I mean fork retains file descriptors from the parent process. This is not some obscure undocumented behavior, it's like the second thing you read in the manual page. Same as execve. I don't like to make excuses for badly designed APIs and code, but honestly if a programmer isn't capable of thinking about what happens to file descriptors there they certainly should not be writing code that uses fork or exec, let alone something that's security sensitive. I don't think that's being unreasonable or elitist. You wouldn't want them writing security sensitive Windows code either, would you?

comment 3y ago · link · parent

It is second system syndrome, and it absolutely is about the market. No wonder so many academic types fall to second-system syndrome, they don't think about their users only themselves. Second system syndrome is absolutely related to market success when you're talking about a commercial system like this -- how else are you going to gauge success?

Transparent distributed single system, for example. The strange and unexplainable obsession by so many computer systems developers. The reality is almost nobody wants it, yet Plan9 was almost entirely designed around this concept. A complete boondoggle. Even the nerdy people who get a kick out of this kind of thing will set up a single system distributed cluster and run a few commands and say "hey that's neat" and then go back to using Windows or Linux, complete with tools for remote administration of systems, and applications that can do clustering and distributed systems in the cases where it's necessary or helpful.

comment 3y ago · link · parent

It's mind boggling that there are still some people who don't think Plan 9 was a text book case of second system syndrome.

comment 3y ago · link · parent

Asynchronous processor interrupts have analogues to basically all these issues that signals do. Signals are certainly a pain to implement and get right, but people seem to think they're something that they aren't, or expect them to be used for something they can't do. Clearly signals aren't a message passing scheme, they're a notification system. And obviously taking an asynchronous interrupt needs to use reentrant code.

As for the fork paper, seems like a typical academic type of critique.

"Fork today is a convenient API for a single- threaded process with a small memory footprint and simple memory layout that requires fine-grained control over the execution environment of its children but does not need to be strongly isolated from them."

I.e., exactly what it is good for and used for. And it goes on

"Fork is incompatible with a single address space. Many modern contexts restrict execution to a single address space, including picoprocesses [42], unikernels [ 53], and en- claves [ 14]."

And talking about heterogeneous address spaces, and all other things academics love but nobody really uses.

They also make pretty outlandish claims "Fork infects an entire system." based on the Windows implementation where the Win32 API and kernel explicitly do not implement fork. And it's provocative language "infects" -- the Linux kernel fork implementation is maybe a thousand lines of C code. And that does not constrain it or prevent it offering several of the suggested alternatives.

K42 was also a failure of a research operating system, and another microkernel (surprise). Turns out (as usual) that designing a system around some latest craze or fad in technology no matter how good (RCU and other lock free algorithms) rather than designing it to deal with workloads that people actually use, is still the recipe for disaster and one of the main causes of second system syndrome.

comment 3y ago · link · parent

I'm saying that all institutions which support and enable and legitimize brutal theocratic dictatorships like this should be purged of the parasites which infest them, yes.

comment 3y ago · link · parent

What seems pretty obvious is all the globalist institutions, everything from FIFA to the UN Human Rights Council, which are happy to take bribes from unashamedly totalitarian petrostates and worse, don't care.

That's what gets me. Qatar can Qatar in Qatar, but the disgusting, corrupt, hypocritical ruling class who would preach to me and claim to be the "experts" on how I should live my life and to be my moral superiors is what gets me. And they're the ones who really enable and legitimize these regimes too. They're the real evil, and it's high time to put an end to them.

comment 3y ago · link · parent

> A classic example is creating a dependency and then raising the price.

Okay let's see your example then. What's a case you are thinking of that is vaguely similar to this that was ruled a breach of contract?

> Also look up "antitrust".

This isn't a constructive argument. I could equally just rebut it by telling you to look up "antitrust", right? What part of antitrust laws would apply here? Surely if you have an idea you can write a sentence or two to explain.

comment 3y ago · link · parent

Right.

comment 3y ago · link · parent

> I mean, if the .com registry said to Google “renewals are $10B for Google.com or we let someone else have the domain”, that would border on extortion.

I don't think it would be extortion, it would just be Verisign breaching their agreement with ICANN.

> People build brands on these, and it’s odd that you can’t permanently buy one or at least have a predictable cap on price increases.

I think you could have those things if you use services that are backed with appropriate contracts or regulations. It's more odd that people would build their brand using a company that is not known for providing stable, consistent, long term products and services.

comment 3y ago · link · parent

Contract law is pretty comprehensive and has been forged over centuries by scammers and grifters, I doubt there would be much new here.

This doesn't sound like it's retroactive, they're negotiating a renewal and Google changed their price. Doesn't seem out of the ordinary unless there were some particular terms about pricing and renewals.

Google isn't a charity, they're a greedy non-ethical corporation that is not famous for providing reliable consistent products. I'm surprised this kind of behavior comes as a surprise to anybody in tech.

comment 3y ago · link · parent

And in what jurisdiction is "price gouging" considered civil damage?

comment 3y ago · link · parent

Sue for what?
1
252627
95