Readit News logoReadit News
zare_st commented on Multipath TCP for Linux (2022)   mptcp.dev/... · Posted by u/pantalaimon
EvanAnderson · a year ago
If TCP had a protocol specific identifier for connections (a couple of 32-bit values, for example-- a client nonce and server nonce) rather than using the source/destination IP addresses multi-homed hosts and seamless transition between different networks would become native features of the protocol. A client could roam between two different IP networks and TCP connections would "survive", for example. (I'm oversimplifying nearly to the point of hyperbole, to be sure...)

(Another fun future would have been one where SCTP got widespread adoption.)

zare_st · a year ago
But the stuff that carries TCP is IP. That's why TCP can work seamlessly, because it uses identification from a previous layer. Consider I bind a server to an ID, and not IP:port, the operating system running it must know how to communicate that via IP, so there will be a corellation map somewhere and that map needs to be synchronized between all peers that wish to host the roaming server.

Otherwise you're just switching port (16-bit) value to arbitrary 32-bit identifier.

zare_st commented on Multipath TCP for Linux (2022)   mptcp.dev/... · Posted by u/pantalaimon
mauriciob · a year ago
How would routing be done without source/destination? When the device changes networks, how does the origin and all routers along the way know that this device is on a new network?
zare_st · a year ago
Yeah it's a shortsighted plan. How would i set up rules on firewall if I don't know how to distingush the connections?
zare_st commented on Tvix – A New Implementation of Nix   tvix.dev/... · Posted by u/vngzs
NewJazz · a year ago
I'm a US citizen and there is a significant risk that I will be detained and held hostage if I travel to Moscow.
zare_st · a year ago
I don't think is wise even if you had written guarantees from their state via the business, because how your state might look at it.

It's a war, things have changed.

zare_st commented on Trying to Understand Copilot's Type Spaghetti   rtpg.co/2024/03/07/parsin... · Posted by u/mooreds
david-gpu · a year ago
Can you elaborate on this part? I am trying to understand.

> in a mature product, reading and maintaining code takes about 10 times as much effort as writing it in the first place

Wouldn't that imply that rewriting a mature codebase from scratch would take ten times less effort than reading and maintaining it?

I only saw two instances where (different) management approved a complete rewrite of a working product and in both cases it turned out to be a disaster, because it is easy to severely underestimate how much effort it will take to match the features, quality and performance of the old codebase. I suspect it is almost universally better to refactor the old codebase incrementally.

Based on that, I take that you mean something else and I didn't get your point.

zare_st · a year ago
Absolutely no.

If a line of code belongs in a project with one file and a main() function, the presumption of impact of that code line on overall code paths is trivial.

If that line of code belongs in a library procedure used by a million LOC project, presumption cannot be done if you don't the project internals and tooling.

Rewriting entire systems or frameworks because one thinks that it's hard to implement a certain class of features is almost always a recipe for disaster.

zare_st commented on Why quantum entanglement doesn't allow faster-than-light communication (2016)   forbes.com/sites/chadorze... · Posted by u/list
nobodyandproud · a year ago
Non-Locality doesn’t mean information travels faster than c.

The main article attempts to explain why instantaneous “spooky action at a distance” is real, yet information can’t be relayed this way.

zare_st · a year ago
For specific cases, asm is faster than c.

I'll show myself out

zare_st commented on Finding memory leaks in Postgres C code   enterprisedb.com/blog/fin... · Posted by u/lichtenberger
gkfasdfasdf · a year ago
That wouldn't help find this particular resource leakage since the memory is still referenced somewhere by the app - so LSan wouldn't regard the memory as leaked.
zare_st · a year ago
Valgrind will show these as "still reachable"
zare_st commented on Scientists have traced human tail loss to a short sequence of genetic code   cnn.com/2024/03/23/world/... · Posted by u/priyankanath
sschueller · a year ago
How long until humans have an actual "shelve" (indentation) on their pinkie at birth to rest their phone on?
zare_st · a year ago
Never. Individuals with that kind of mutation have to be born per random chance, and then selected via sexual preference.
zare_st commented on Some Reflections on Writing Unix Daemon   tratt.net/laurie/blog/202... · Posted by u/ltratt
WesolyKubeczek · 2 years ago
I don’t assess FreeBSD doesn’t have resource limits. I’m stating the fact that prior to systemd, issuing a service restart command under any Unix at all was prone to inheriting any rlimits your shell session happened to have, which could in turn lead to unforeseen consequences like sudden memory/file handles failures or sluggish I/O, depending on how shell sessions are being set up.

Implementing a service manager that can understand and interpret systemd unit files for FreeBSD would require it to be based on completely different kernel mechanisms than Linux, feature parity aside. I can easily see that people with enough skill won’t see the need to be bothered to write such a piece of software, and those who don’t will just shrug and stay on Linux.

zare_st · a year ago
Why would systemd unit files matter for FreeBSD? FreeBSD has its own rc system and its own ports and packages and maintainers. If and when some major software starts lagging behind the upstream because of runtime issues, then it's time to discuss the alternatives. Right now such things do not happen.

FreeBSD had to mock several parts of systemd in order to port newer GNOMEs that are dependent on systemd. rc still runs this software, but unfortunately software depends on systemd sockets which is absurd design choice but here we are. Again mocking the absurd interprocess part is the way to go, as opposed to supporting entire specification and API of systemd.

"Any unix" doesn't cut it, too general, too broad. You did ask in dual sense in your original question but then you specifically stated FreeBSD as an example; so I'm answering for FreeBSD specifically.

The problem that I have with opinion in your post is an implication about groups of people - people with skills that should supposedly write a systemd clone for FreeBSD or other Unices, and people without skills that are supposedly waiting for the first group to do some work so they can enjoy systemd on *BSD or wherever. Let me be blunt here, I can assure you this is not the case. Systemd is not a factor for anyone in BSD world and it's a factor only for people that would like to migrate from Linux and retain their usual workflow and muscle memory.

zare_st commented on Some Reflections on Writing Unix Daemon   tratt.net/laurie/blog/202... · Posted by u/ltratt
WesolyKubeczek · 2 years ago
Well, do systems like, say, FreeBSD even support facilities functionally equivalent to control groups? Even if they do (which they don’t), it would be a whole new separate implementation, and there’s not enough interest from anyone who can do it to roll their sleeves and work on it.
zare_st · 2 years ago
Answer to question - yes, and more. Jails+rctl (available since 2012) is not cgroups it's cgroups+SELinux+APParmor. Vanilla linux container is not a security barrier, vanilla FreeBSD jail is.

In practice this means more seamless 'isolation' in Linux case but that isolation is weak. Which perfectly corresponds to FreeBSD looking at server uses 99% of the time and Linux looking at the desktop too.

About your conclusion, I don't think that's based on anything so please do write on what facts do you base the assessment that FreeBSD has no resource limiting and isolation features, and that it would be a 'separate implementation', as FreeBSD always tends to upgrade and not change tools and interfaces, and that there is not enough interest from anyone to implement it, as most major FreeBSD features are actually paid for by FreeBSD sponsors.

zare_st commented on Some Reflections on Writing Unix Daemon   tratt.net/laurie/blog/202... · Posted by u/ltratt
WesolyKubeczek · 2 years ago
Can rctl give me an ability to run two instances of the same executable with different limits?
zare_st · 2 years ago
Yes

u/zare_st

KarmaCake day125August 4, 2023View Original