4,687 karma · joined Dec 4, 2021 (4y ago) · 1,693 submissions
comment 3y ago · link · parent
I am thinking: "This block of text looks like it will take me 4 minutes. Do I have 4 minutes"?
The estimate of someone else about how long something will take me to digest and work through may be completely irrelevan to me.
Things someone with a finance rather than technical background thinks will take 10 minutes, I may be able to quickscan and reply to within less than a minute. On the other hand, I have had questions to POs about mails regarding business minutia that took time for me to roughly grasp, and they replied within a few minutes, because that's their area of expertise.
comment 3y ago · link · parent
If I want a specific question answered, I will ask that in the pretext to the forwarded mail. If I want to draw the attention of the reader to a specific part of the mail, I don't forward, I just quote that part.
Forwarding is a way for me to either say: "Hey, I think you should be aware of this" or "I think this concerns you more than it does me", or "I think this is for you". What the recipient of the forward then makes of that, is his business, not mine.
comment 3y ago · link · parent
There is a button in my mail client that says "forward". If I want to forward a mail, I click that, put in address(es) and click "Send". If I'm feeling especially generous, I am gonna type a quick "FYI" ontop of the message field. Usually I don't, and trust that the recipient(s) will draw the correct conclusion from the "Fwd:" that is prefixed to the subject.
Whatever format is used, idc. that's up to my mail client. I am not gonna, and I don't want to, worry about this detail. That's why I outsource this to a program.
Even if I worried about it, it would be completely moot. I get emails from at least 3 dozen people every day. Many of those are forwarded. These people use at least half a dozen different mail clients, and most act exactly as described above. It is completely impossible for me to somehow enforce a standard, so I stopped worrying about it.
comment 3y ago · link · parent
The idea was to turn public opinion against copyright infringement by using terminology associated with violent crimes, such as piracy and robbery.
Ofc it backfired spectacularly, with the "pirating" community adopting the term and reveling in it. Who could have known that using a term that the general public immediately associates positively with countless novels, movies and other works of fiction, radiating a flair of adventure, swashbuckler charm and the freedom of the carribean seas, would fail to turn public opinion against something :D
comment 3y ago · link · parent
It doesn't, and it always baffles them when I don't even give them a whiteboard problem to solve. I don't need people who have memorized all graph search algorithms, I don't need people who can code them up in 6 languages without looking anything up. People who can google competently (or use a textbooks index) can do the former just as well, and LLMs can do the latter.
What I need are people who can take requirements, anticipate as much as humanly possible what else the client will do over time, and find a maintainable architecture that implements those and maybe is resilient when facing further changes down the road.
And that is a HARD skill, that leetcode and most of what CS curricula will not teach.
comment 3y ago · link · parent
I disagree. We know it's our problem. But we quite often don't get a, or too little, say in the decisions made to manage that problem properly.
Because yes, it would be nice if we would "explore the whole problem space with stakeholders", and it would be great if we could "decide together".
What ends up happening quite often however, is some "stakeholder" saying yes and thank you to whatever he-who-holds-the-money (or his career-advancement) says, with little to no regard whether the promised addon/feature/whatever is feasible and/or accomodated by the existing architecture. Suddenly, the space that needs to be explored may be galaxy-sized, or moebius-strip-shaped.
What also tends to happen: The "exploration of the space" is outsourced to some consultant or architecture astronaut, who wont write a single line of code, and certainly won't have to deal with any unforseen difficulties.
It would also be nice if, once the "exploration of the space" is done, devs get to implement based on what was explored. Which, given the aforementioned unforeseen properties of the problem domain, is laden with unforeseen change as it is. What tends to happen quite often is that in addition to that, requirements, and thus the problem domain change mid project...sometimes multiple times.
comment 3y ago · link · parent
I don't use them. End of story. And no, LinkedIn doesn't count imho, because it serves exactly two purposes, to have an easily pointed to, searchable, public CV and a communication channel for recruiters to try and get me interested.
And that's it. No FB, no Insta, no Twitter, no Tiktok, not even large Whatsapp or similar chat app groups (the biggest is my family channel).
And lo and behold: I live, and happily so. And get news just as fast as everyone else, because RSS feeds are a thing, and probably a bit faster than people who rely on their "social" media feed to tell them what's up, because my RSS feed is controlled by exactly one algorithm, and that's a for loop iterating over my list of feed-addresses ;-)
comment 3y ago · link · parent
The first step to understanding requirements: There needs to be a requirement worthy of the name.
Because let's face facts: programmers are quite often confronted with "requirements" cooked up by some "stakeholder" that don't even describe the problem domain, much less a path to how it should be modeled.
A lot of the spaghetti that contemporary production code ends up looking like far too often, is programmers having to play a stupid game of "chase the nebulous and ever changing 'requirements'".
Once you develop for A but then B is required as well, and the architecture didn't anticipate that, you may be able to go back and change it ... or not, because usually the requirements change, but the deadlines don't, and good luck doing the same, or more, work all over again, in half the time.
Yes, programming is a hard problem. It really is. But it is also quite often being made harder than it needs to be.
comment 3y ago · link · parent
Because ideas are highly unlikely to be universally correct, no matter how good they are. Even if an idea is supported by all available evidence, it MUST subject itself to scrutiny and possible falsification, all the time.
A dogma flies in the face of that. It is, by definition "any belief held unquestioningly and with undefended certainty" (quote from wikipedia). Once people follow an idea dogmatically, they are very likely to apply that idea no matter if it makes sense or not. They stop following logic and start following scripture.
It is bad enough if this happens in science, where we really do have systems so far supported by all available evidence. But it becomes a lot worse in areas like software development, where we know there isn't "the one" true way of doing things.
And to head off one likely reply to this: Yes, I apply this logic also to the assumption that "dogmas are always bad". If someone could present proof showcasing a dogma that only has good outcomes, with no negatives attached, then I am willing to change my mind on this.
comment 3y ago · link · parent
Ahhhhh...yes, but...
There are two kinds of people when it comes to dogma: The faithful, and the preachers. The inexperienced developers are the faithful. They cling to the scripture without proof that it is actually necessary.
Insofar, I agree with your post.
But the faithful need someone to preach the faith, and those are usually not the inexperienced ones. Those are usually experienced developers. Their personal reasons to cling to the dogma are varied: Some may have started as faithful themselves, for some it's stubbornness, an unwillingness to change, maintaining a feeling of superiority, the fear of becoming obsolete, ...
So here we are in disagreement. The preacher is the product of experience and development over time. And in my book, the preachers of dogmas are more of a problem than the faithful who follow them. Because it's the preachers who write the scripture, the preachers who make up arguments why alternatives to the ideology are bad, and the preachers who seek to isolate their flock from the "evil" preditions of alternatives.
> I don't think it's a coincidence many of the ideas that have the most fervent and zealous followers have names that sound righteous, if it isn't clean code it's pure functions or more recently memory safety.
Closing my answer on another point of agreement, it is absolutely not a coincidence, that the wording of dogmas in programming sound eerily similar to that in religious teachings ;-)
comment 3y ago · link · parent
Make things as simple as possible, and as complex as necessary.
I can always make something more complex than it is now. As you say, we can take out things from a monolith and make them into a service. It can be hard to do so, sure. But nowhere near as hard, as trying to get complexity OUT of a system once it's in. Everyone who ever tried to revert a bunch of microservices back into a Monolith knows exactly what I am talking about. It usually amounts to the same work as a ground-up rebuild.
comment 3y ago · link · parent
The evidence for this, albeit empirical, is the history of AI development itself.
AI doesn't show continuous development over a long period of time. It always developed in steps. A new architecture or method is discovered and able to solve some previously hard or unsolveable problems.
Then this solution slowly develops in capability, mostly based on better and cheaper hardware, while it's quality plateaus.
It may be that LLMs will not follow that pattern. I don't think so, for reasons outlined above. But until it can be shown that they don't, that this really is the long-sought-after AI architecture that just gets better and better over time, I don't think that a healthy dose of pessimism is unwarranted based on history.
comment 3y ago · link · parent
Which is countered by...the assertion that it won't?
LLMs won't get intelligent. That's a fact based on their MO. They are sequence completion engines. They can be fine tuned to specific tasks, but at their core, they remain stochastic parrots.
> I want to know only one thing, which is what gives him the confidence necessary to say that.
I want to know only one thing, what gives the confidence to say otherwise?
comment 3y ago · link · parent
That is an assumption, for which I have yet to see proof :-)
> I think common sense would disagree
Please, do enlighten me: How do I access SHM without mapping it first, or otherwise setting it up?
> Now you've accepted it doesn't require syscall
There was nothing to accept. If you actually read my post, you will see that I talked about the issues of IO and setup seperately.
And my point stands still solid ;-) SHM requires syscalls not required when directly using shared memory.
comment 3y ago · link · parent
Which is irrelevant, because there is barely any functional difference between the two. POSIX SHM uses a better API, providing a file-descriptor like object. That's all.
And yes, using that API also requires syscalls.
> Furthermore, these man pages dont even support your argument.
Wrong, they absolutely do. "Accessing" something doesn't just involve the IO, it also involves the setup. And this requires syscalls, in SysV as it does in POSIX.
> Did you actually read them? These are just for the mapping, not for actually accessing (read/write) the shared memory
I am well aware of that, hence my seperate mentioning of IO later in my post. ;-)
And the argument in that post stands as solid as it was before. `mmap` MAPS memory. This mapping requires an address translation overhead EVERYTIME THE MEMORY IS ACCESSED. This translation doesn't happen in userspace.
Now, there is a way around that, in principle: If I mmap with ANONYMOUS and SHARED, and then `fork()`, I could have the same mapping in the child process. The problem here is: This relies on the forking after the mmap(). Any newly created objects, if I manage to map them into the child process, will again require address mapping. Again, this isn't an issue in threads. As soon as I create a new object on the heap, it is available to every thread, under the same address.
But hey, what do I know. But I think the people who are going to dedicate countless hours of their lives making actual parallel processing via multithreading possible in Python know why they are doing so. As do the people who implemented abstractions around threading in basically every major programming language ;-)
comment 3y ago · link · parent
Oh rly?
https://man7.org/linux/man-pages/man2/shmat.2.html
https://man7.org/linux/man-pages/man2/shmctl.2.html
https://man7.org/linux/man-pages/man2/shmdt.2.html
https://man7.org/linux/man-pages/man2/shmget.2.html
Pretty sure it says something about "System Calls Manual" at the top of all these man pages ;-)
And IO on the SHM once it's attached may look "free", but it isn't. The M-mapping incurs a further overhead which simply doesn't exist for threads: A threads heap space is the same address space as those of it's siblings in the same process.
comment 3y ago · link · parent
I am not talking about switching context between the threads of execution. I am talking about a context switch to kernel code simply to access the shared memory. All interactions with SM require syscalls.
So no, I am not "talking nonsense", and yes, communication between multiple processes requires more context switches than communication between threads.
comment 3y ago · link · parent
Wrong. Processes pose hurdles via the limits of IPC and control between processes that Threaded applications don't have to bother with. There are ample examples for this in the PEP.
> What Python need is better support for placing native instances in shared memory.
If that were the case, then threading wouldn't exist in the first place. Shared memory is still IPC. It still requires context switching into the Kernel. It still poses problems that threads don't have.
comment 3y ago · link · parent
If we could make cables superconducting simply by making them thicker, we wouldn't need superconductors.
> What are the better examples?
Microelectronics for a start. Resistence bleeds heat, heat buildup limits designs. A novel superconducting materials would allow us to make more efficient chips.
As for further examples: https://en.wikipedia.org/wiki/Technological_applications_of_...
comment 3y ago · link · parent
Math and logic are as much subjected to falsification as physics or biology. Mathematicians write proofs, and their peers try to find flaws in them.
> arts, etc aren't knowledge?
I am obviously talking about scientific knowledge, and in that regard: No, they aren't. The study of art can be scientific, and is as subjected to empiricism and falsification as everything else. Art in itself however isn't.
If humanity forgot all the works of Mozart and Schubert, it would be a very sad day, but society would still function. If humanity forgot how to make steel, or had to rediscover the fourier transformation, we would have a problem.
comment 3y ago · link · parent
The only thing that can prevent me from accessing htop, is a kernel panic.
Because, even if the Desktop Environment crashes or freezes (Can't even remember the last time that happened), I can always switch to another virtual console with Ctrl+Meta+F2, login and run any program from there, including starting another DE instance.
And in the equivalent of a kernel panic in windows (BSOD), the Task Manager is inaccessible as well.
comment 3y ago · link · parent
An 8-15% increase in available electricity without any new power plants built isn't game changing?
The ability to transport power over longer distances, making eg. solar farms in remote locations suddenly feasible projects isn't game changing?
> and you have to take into account the cost of replacing the wires
No I really don't have to, as we, as a species, seem to have money in abundance. What we do not have in abundance, is biospheres. We have exactly one of those, and if it's ruined, all the money won't help.
The ability to suddenly boost the efficiency of our electrical grids by 8-15% would not solely solve the problems our species currently causes for itself, but it would help a ton.