4 ms·
"In 2019, the company released an entirely new version of its terminal for Windows 10, promising a better performance. However, user Casey Muratori was not conv
by 1vuio0pswjnm7 4y ago
"In 2019, the company released an entirely new version of its terminal for Windows 10, promising a better performance. However, user Casey Muratori was not convinced, claiming that the performance was still far from what could have been done without much effort. To prove his point, Casey developed in just a few days an open source prototype that performed 200 times better than Microsoft's new terminal [32]."
"In the article Software Disenchantment, author Nikita Prokopov exposes how bad software has become commonplace in our daily lives [35]. From programs that get incredibly bigger and slower with each new version, offering little or nothing more in return, to the fact that they get worse as they are used, to the most complete chaos that is the software development process.
For example, when creating an empty (!) project in npm for web development more than 50,000 files are downloaded, taking about 350 MB. This house of cards is so fragile that it gives rise to situations that are, to say the least, embarrassing. In 2016, an npm library called Left-pad, downloaded about 2 million times a month, was removed from the repository by its author, resulting in many web projects around the world crashing, including large corporations, forcing npm to revert the deletion [36]. The library, which contained 10 trivial lines, could be implemented in a few minutes even by programming students."
Some, but not all, developers get defensive when the issue of "bloat" is raised.
https://news.ycombinator.com/item?id=34842863 https://news.ycombinator.com/item?id=34842863
- vba616 4y agoYou can, anyone can, write all your programs with the mindset that you are given X amount of memory, and you use it as a cache or buffer like they did back when computers had 64K or whatever. It would solve a lot of what I see as the problems of modern software. For so many years, people have pursued the false vision of a programming environment where resources can be assumed to be infinite. The problem is, no matter how much memory you have, if you take a data structure that reasonably fits in your vast amount of memory, and then you inadvertently multiply its size, you won't have space. Or to put it another way, all finite numbers are infinitely smaller than infinity, so the delusion that any finite number is equivalent to infinity will always bring people to grief. Could someone please write a manifesto along the lines of "malloc considered harmful"? Just. Say. No.
- AtlasBarfed 4y agoJavascript, Java, C#, Golang, Python, Ruby: all garbage collected. Aside from C/C++, those are the languages of modern software dev. Yeah you could arena allocate and do some nonstandard techniques like that, but basically you are at the mercy of a garbage collector, and those LOVE to use memory. So... use C++? use Rust? As you point out, malloc and the heap are kinda the same problem as GC. Personally, some "runs on 1Ghz and 256MB of RAM" would probably be the most real world effective way to advertise some degree of restraint. We can't keep wasting processing power, the "laws" are running out of steam. MHz/Ghz is stalled for a decade, and the die shrinks are going to start running out of steam as well. I can't think the coming AI coding blast will help things either. We also lack stability and sharing in the runtime libraries (and containers are NOT helping this, they just load all their own mini-OSes for each application), and efficient means of extracting only the necessary routines from big libraries in build processes.
- nequo 4y ago> you are at the mercy of a garbage collector, and those LOVE to use memory. It’s not the GC that uses memory, it’s your program. Compare the memory use of Python with that of C++ in these benchmarks: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/python3-gpp.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/... Or OCaml and C++ here: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/ocaml-gpp.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- vba616 4y agoI don't think it's about the amount or the language. I have 16 GB of memory, and I don't expect it to decrease. I don't expect the number of cores and MHz to go down either. I'm just saying that everything should be written to take what you give it and like it. If you do that, it doesn't matter how much memory there is, or if there is a GC or not - you have none of the problems of unpredictable resource usage. I don't think (although I haven't been in school over a decade) most people come out of college with an experience of writing small programs to process everything in chunks. It's so...impure. I didn't have the experience of being taught in Scheme or something, but I can imagine.
- nikau 4y agoWindows terminal seems to be typical of modern agile software, they do the MVP then try and ladle on extra features which are buggy. As an example the tab handling is a mess - eg. you can't configure tabs where title updates using escape codes is blocked and the close "x" is removed even though the settings are there - the tab title just reverts to the profile name. I suspect it would have been fine if they actually designed all the features from the start vs grafting things on ad-hoc.
- jiggawatts 4y agoWhat blew my mind is not that incident, or that Microsoft devs refused[1] to fix it, but that about a year later they updated Notepad the same way and it visibly lags and stutters on a suuuuper high end gaming machine. Like. What. The. Fuck!? They literally never tested Notepad with large text files! It can take a minute to open a file that every other text editor on Windows opens instantly. It misaligns tabs and four spaces by one or two pixels, which means they utterly failed to render using a fixed width font in a way I have never seen before. This minimalist text editor takes over a second to launch from an SSD that can read a 4K movie end-to-end in the same time. It’s just a staggering level of incompetence. [1] Their excuses were mostly that they couldn’t even look at his code, lest their minds be infected somehow and be in violation of copyright. Meanwhile Casey uploaded it as open source and they could have at least listened to his videos with their eyes closed. Instead they elected to stick their fingers in their ears and yell “La-la-la can’t hear you!”. Clearly I’m exaggerating for effect, but not much.
- fmajid 4y agoCorporate legal departments have a really strong aversion to GPL.
- pointlessone 4y agoI wonder if the author could release his code in public domain if he wants to fix the issue. Corporate stance on GPL is not exactly unknown after all.
- tough 4y agoWhy should here the good guy bend over microsoft lawyers? Use the open source version
- jiggawatts 4y agoNobody needs to copy the code verbatim anyway. The essential part is the algorithm (or the "approach" to the problem), not some sort of specific C++ wizardry or a huge library. The correct solution can be thrown together in a couple of weekends, it's not something that has to be imported into the Windows Terminal codebase as-is.
- praisewhitey 4y ago>For example, when creating an empty (!) project in npm for web development more than 50,000 files are downloaded, taking about 350 MB. What is this in reference to? Running `npm init` just creates a package.json file
- compressedgas 4y agoI think they mean something like a next.js or a meteor.js project.
- apricot13 4y agoEvernote is another example of a complete rewrite that has ended up more bloated, buggy and missing half the features.