Better HN
topnewbestaskshowjobs
Log inSign up

okanat

2,076 karma · joined Jun 20, 2021 (5y ago) · 869 submissions

Submissions

comment 1d ago · link · parent

> Even so, it's easily the best OS option for PC at the moment. Linux/KDE is ok but Windows 11 is just more rock solid. I wish they would fix their schizo settings apps though. How are so many settings still only in the Windows NT era Control Panel?

I would love it if they reverted the Settings app and gave us back the Windows 7 Control Panel. The new Settings app is so dumbified, I had to develop skills in Powershell to get to the settings old control panel had.

comment 1d ago · link · parent

> Is there still a LTSC version? Or does that need "cleaning" too?

There is. It requires significantly less "cleaning", almost none, but still a couple of annoying defaults. If you can live with the missing stuff, it is good.

Compared to consumer edition, it lacks the codecs and they are delivered through Microsoft Store unless you deploy it properly with the Enterprise tooling ($$$$). I don't want to deal with that so I use consumer edition Pro (which I have a legal license for with my XPS 15 and Thinkpad P1 Gen 5).

If you set up the consumer version with an EU locale, Windows also lets you remove almost anything, permanently. Anywhere else, tough luck. I think many problems with bundling and adware are not technical but social / legal problems. Push your governments to regulate big tech!

> I don't use Windows, except once or twice per decade for nostalgic reasons, like visiting an old favorite prostitute for old times sake, to see how she is holding up.

I was a full-time Linux user until 2020. I bought a Thinkpad for it. But I encountered so many driver issues with the new laptop that didn't get solved for a year or even more. Compounded with the studies, the stress of job search and the need of having something up-to-date (i.e. no "stable" distros) that works after the setup, I moved away. I knew and I know Linux desktop is still decades behind in many areas, I used to use it despite the fact.

After taking a microkernel course at the university and exploring L4 stuff, I definitely prefer NT's design over Linux. Dealing with real C / C++ deployments in a few jobs also made me appreciate Win32 more.

However, I just don't want to bother maintaining an OS unless someone pays me (which my employer does for a custom distro, that we have to patch kernel and other system bugs constantly).

comment 1d ago · link · parent

I wouldn't call core Win32 (ntdll, kernel32, user32, wsock32) mediocre. Windows NT userspace always had full async IO support. It is quite fast and really robust under load. If you used pure Win32 apps like Rufus, you'd see that it actually flies. Games also use pure Win32 and DirectX. They are quite good in performance as well.

Win32 is basically too big to have a global opinion. There are good parts and then there is event tracing API :)

It is still well-designed for its purpose and there is a lot of thought put for future compatibility, most changes do not affect the API but adds another bit field or puts some fields in a struct which has pre-reserved fields.

Now, Microsoft has largely abondonned Win32 and kept reinventing UI framework on top of UI framework. WPF was actually good. It is like QtQuick: declarative and GPU accelerated.

WinUI that came with Windows 8, however, is crap. Moreover Microsoft made 3 incompatible versions of it and didn't fix the bugs in the earlier versions and WinUI 3 is still accreting more. They also ported system utilities like Explorer to WinUI 3 inheriting all the bugs. You can still launch old Control Panel (pure Win32) and its performance compared to Settings (WinUI 3) is day and night. Moreover they do crazy stuff like using React Native to generate WinUI because they fired their capable devs and now left with full stack JS ones.

Add all the overhead of adware and extra telemetry and the AI bullshit, Windows 11 became a sluggish mess that requires a deep cleaning script after install to get the actual performance out. Win32 is still there, it is still fast. Whatever diff they have with Windows 7 isn't

comment 1d ago · link · parent

The performance of the process creation isn't a bug but an intended tradeoff. NT is slower because its process creation does more (checks for permissions, reloads binary, does relocation from scratch for DLLs, basically what fork + exec does but a bit more).

Many Unix systems didn't have threads but relied purely on multiprocessing. Threads on Linux is still a hack on top of the process API: clone.

On the other hand NT came with threads from the first release to do multitasking. It doesn't have fork because NT developers didn't want to add the hacky fork syscall for cloning the process / its memory area.

comment 1w ago · link · parent

Office 365 / Azure AD subscription is cheap. It comes with legal certifications that are very expensive to obtain alone and usually shareholders pressure you to get them. It has remote management capabilities and a very alive closed source plugin ecosystem that's battle tested.

How long would it take FOSS to replace this? How long would businesses and their shareholders will wait? Buying Microsoft will GUARANTEE that you'll have the certification you need in weeks, how long would FOSS would ship and PROVE that they obey a non-open "open" standard?

Will FOSS GUARANTEE cross-compatibility of the file format?

What you are proposing isn't stupid if the most important goal is independence. Most businesses don't care about independence. They PREFER dependencies they can blame and sue / settle with.

comment 1w ago · link · parent

Germany and Sweden are not China. They have extremely federalized governments. They are also part of the US-based economic system with a lot of neoliberal principles. Their voters pay a lot of tax and they do not really want to pay the price of going fully independent. Microsoft as many US companies got an edge in the 90s due to DoD contracts and corporate contracts. There are many European companies whose systems are deeply tied into Microsoft (one example, the whole restricted info labeling system of Siemens was deeply integrated with Office 365, SharePoint and Exchange when I worked there)

Basically migrating away from Microsoft has always a significant cost even for partial replacements. The democratic systems and shareholder pressure makes it hard to keep long-term projects going in the Western countries and companies. Choosing Microsoft has never costed an election nor caused significant share price but going against it has economic and legal risks.

So without a dictating government with nuclear reasons, you will not get enough pressure to move away.

comment 2w ago · link · parent

Kernel usually uses SLABs which work differently than general purpose userspace allocators.

comment 2w ago · link · parent

European investors and governments are risk averse. DRAM is one of the riskiest silicon products. They talk a lot about independence but European governments lack the raw investment power and willpower to make decade-long investments that are guaranteed to lose money in the next decade as DRAM. If Europe wants DRAM made in European soil, the governments and people should be ready for losing tens to hundreds of billions of taxpayer money.

When Korean and American factories ramp up, the price will plummet. Basically whatever business will not make a single Euro profit for years.

European silicon manufacturers target industrial and automotive for a reason. They want large, guaranteed contracts for older silicon nodes which are cheap and profitable. They let the US, China and Taiwan to take risk of developing new ones. When they do research, they prefer incremental ones.

When it comes to real talk Europe doesn't really care about independence more than it cares about capital and profits. Only an actual war will make the governments care and it will be too late. Without a strong drive to create one's own nuclear arsenal, don't expect any groundbreaking risky investment out Europe.

comment 2w ago · link · parent

Weird. My home has only LED bulbs. There are still moths and bees who get attracted to the light when I leave the window open.

comment 3w ago · link · parent

ding ding

comment 3w ago · link · parent

I think that trust is burned already. I moved away from Proton to a German provider that sponsors its own infrastructure to be developed as FOSS (yes that means they are commoditizing their own product, but it is the SERVICE that's paid for).

Having shareholders means that the company WILL NOT continue to serve their customers. Any company that has external shareholders is untrustworthy. Everybody should consider them as disposable. It doesn't mean that you cannot have a deal with them, now but the parties should be aware that anything that you share will be misused. So if Proton has any external shareholders, it is already untrustworthy to me.

Therefore, they cannot really gain any trust by being activist shareholders and change leadership. They already supported a certain "persona" to make them money.

comment 4w ago · link · parent

... which is "ripping off OSX". But you don't want to hear that, do you?

UX being copied by OSes from each other is a good thing.

comment 4w ago · link · parent

I actually like Ribbon and I disagree. It made functions easier to find, for people who didn't have a muscle memory of those functions. It actually taught them how to use the program and exposed conditional menus like picture options better than the toolbars that appear and disappear.

Of course people who got used to traversing 3-level menus got annoyed but they still have all the same keyboard shortcuts. However, spending enough time, you also get used to Ribbon and it usually requires fewer clicks not more.

I still find a tastefully done Ribbon is better than a menu and a toolbar combination. The problem is, not everybody has put the same effort that Microsoft did which created monstrosities like Solidworks Ribbon.

comment 4w ago · link · parent

I think the sweet spot is WPF or actaully its FOSS version: AvaloniaUI. It is high level enough to be cross-platform and not stupidly verbose, however it is rather light pn resources. However, Win32 still wins in absolute minimalism.

comment 4w ago · link · parent

Although I started with 98, I think Vista / 7 was the peak. It was user friendly enough for newbies but didn't sacrifice advanced controls. Just organized them better to bring focus to the more used parts.

comment 4w ago · link · parent

The syntax and meaningful spaces are annoying. The dynamic typing is abused to hell in everything including the standard library. It has wacky paradigms like "exceptions instead of conditionals" or having "else" clause for loops.

It lacks decent packaging and by design cannot handle multiple versions of dependencies or perform metadata-only/declarative resolution. To resolve the dependencies of a Python package you need to install it. Many Python packages resolve their dependencies imperatively depending on the current system state. When you need binary dependencies like numpy it gets even worse since libpython doesn't have a stable ABI.

It is one of the most underdesigned languages but it holds a dear place due to being easier to translate from pseudocode to actual implementation. This resulted many academics to pick it up and write advanced math libraries in it.

comment 1mo ago · link · parent

> Or just in general how these people seem to completely forget that desktop usage is largely just an afterthought for Linux and the main usages are phones, servers, small devices and supercomputers.

I think you're right in that most paid developers use/develop for Linux ecosystems do for server or embedded, where they use Linux out of "laziness" since it provides a basics. Then the engineering team implements everything else GUI, webservers etc on top of it. At work I'm a firmware engineer but I can also write quite complex Linux stuff and I occasionally contribute to the Yocto recipes. You really see that Linux ecosystem is really for people who prefer to dig stuff. Dig decade-old email threads, read C source the whole time. Fix and patch weird bugs and pile workaround on top of workaround by forking things. Linux ecosystem really isn't designed to scale to be deployed into wild-west PC universe and still lives in a "here is the source; good luck!" world.

> Even ignoring the future though. It's just the understanding of the “now”. Things like initially libinput having no way to disable mouse acceleration and the developer at first resisting it until receiving a mountain of complaints and finally relenting because “Everyone would want mouse acceleration always on, right?”.

I mean it can be argued where to split and keep libinput as the lower-level library for the embedded engineers (TBH I don't know if embedded engineers really care). However, what I don't understand is: if they are going to split things in a more granular way, why not provide a higher level library for DEs where functions for acceleration etc. are provided as extras.

At the same time, I have a hunch that GNOME could be the reason (AFAIK libinput dev is employed at RedHat with other GNOME devs) and GNOME likes things "lean" i.e. featureless. One of the reasons Wayland has completely surrendered window decoration and we have to use workarounds and hacks like XDG Decoration is GNOME's insistence on offloading everything to clients and vetoing every single compromise (including XDG Decoration, but Valve pushed it AFAIR).

Again I think designing Wayland as a "allocating rectangles on CPU or GPU buffers" protocol/library is okay. But why don't we have a unified higher level "Wayhill" where ex-GNOME DEs define things like what a decorated window is [^], what happens to the crashed application, unified resizing, actual display management and unified configuration so it can be shared with the login manager. Now KDE implements one thing, wl-roots implements another (wl-roots is probably closer to my "Wayhill" idea but it kind of caters to more terminal-driven stuff, I do prefer pure GUI-driven desktops) and GNOME just opposes everything.

I see this kind of "provide the lowest level abstraction, nothing else" as a paradigm in every single component in Linux. It is really tiring both as a desktop user and as a paid developer. Since it is a socio-technic concept, rather than a purely technical, I don't really see that we'll solve it with "more FOSS". The overall mindset needs to change or we need to bootstrap a new ecosystem (which is an uphill battle).

[^]: Yes Firefox and Chrome would look wacky (basically dual decorated) since they use some lower level GNOME/GTK stuff (file dialogs, cairo rendering etc, GTK themes/libadwaita), however this kind of push could have helped browsers to be more agnostic as well.

comment 1mo ago · link · parent

Would you consider writing Docker/moby in a different language, if you were to create it scratch today?

comment 1mo ago · link · parent

They look interesting, especially TinyGo with WASI targets. It enables a much simpler path for software-in-the-loop testing.

It looks like TinyGo also had to make some compromises to reduce the memory footprint and increase optimizations: https://tinygo.org/docs/concepts/compiler-internals/differen...

> A whole program is compiled in a single step, without intermediate linking. This makes incremental development much slower for large programs but enables far more optimization opportunities. We are actively working on build caching so that at least part of the work does not need to be redone on every compilation.

comment 1mo ago · link · parent

Oh good to know and I stand corrected. I guess if you can opt-in with a syntax (like dyn does in Rust), this kind of in-the-middle generics could be a nice addition to systems programming languages. However, we need a GC-less solution of course.

comment 1mo ago · link · parent

You can also design a "dual-pass" API. Basically you have an API call to estimate or calculate the memory usage needed and then another parameter / API call to actually do the operation.

For example the WideCharToMultiByte [1] function of Win32 handles UTF-16 to UTF-8 conversion. If you pass your destination pointer as NULL, then it purely calculates the number of bytes you'll need in your buffer. Then the main program actually allocates the memory and calls it again with the populated destination pointer.

[1]: https://learn.microsoft.com/en-us/windows/win32/api/stringap...

comment 1mo ago · link · parent

> Also, the optimism just highlighted how out of touch they were, that they thought people would actually just rewrite everything in 5 years is bizarre and suggests a fundamental lack of understanding to me. Same thing with Wayland and GPLv3 to me.

It is the fundamental difference in the developer's origin/experience in FOSS projects vs commercial software. However, there is an even bigger paradigm difference underneath. Academia survives on one-off projects and FOSS is often recruits students in universities who contribute as hobby, without contracts. The usual POSIX software is all about exposing things with minimal abstractions. It makes developing and iterating on software easier on the developer.

People who work in commercial software are forced into decade-long support contracts. So they develop skills in managing long-term backwards compatibility. This comes with the abstractions and software designs with more thought into their future.

You see that in Windows components that the engineers thought about how the computer systems will evolve and allocated some slack to extend the software: https://faultlore.com/blah/c-isnt-a-language/#case-study-min... . This kind of hindsight isn't something one can easily learn without being forced into the backwards compatibility and getting burned before or mentored. Some of the skills also means that you need to learn where to place the "narrow waist" of the API.

To illustrate the difference I'll actually compare Win32 vs X11/Wayland. Win32 is a much better abstraction and much better "narrow waist" point than X11 was. X11 was designed tightly around 80's hardware and people had to add hacks on top of hacks to actually make things like GPUs work. X11's network transparent architecture actually made implementing direct rendering harder. While Win32 already had some ideas that made into Wayland and it designed nice abstractions for allocating windows, direct rendering buffers and compositing. Win32 had baked in concepts like a window or a button or text rendering. So when the devices with HighDPI appeared or when new security boundaries needed the higher level abstractions of Win32 made it possible for Microsoft to make smaller API changes while the whole X11 started to collapse with 90s hardware and then was useless for 2010s.

comment 1mo ago · link · parent

Not really. The modern NT enforces its specs unless you opt-in or Microsoft opts your Hyrum's Law monstrosity in.

comment 1mo ago · link · parent

Raymond Chen actually talks about this: https://devblogs.microsoft.com/oldnewthing/20240521-00/?p=10...

They basically had a cart populated with random-ass stuff they found in computer shops to the maximum of the USB spec supported wirh hubs. They inserted the hub and watched Windows crash until everything is fixed and worked, then they started yanking it when it was still discovering devices.

comment 1mo ago · link · parent

If you look at the compatibility tool you'll see multiple checks not only executable name match. It can check version headers and other signatures.

comment 1mo ago · link · parent

Sorry but scientific method has been the default for "Truth" for many academic subjects. It is reliable and idempotent. If all of the human information and most of the knowledge workers are removed from the Earth tomorrow, many will arrive in the same conclusion in most of the natural sciences and maths. The language and representation will be different but prime numbers will still be prime numbers and the matter will still be made of one neutral and two "interactive" elements.

Social sciences like politics, history and economy are harder to replicate with the scientific method, however repeated observations, statiscial information as well as qualitative analysis with evidence-based research can still provide replicable analysis.

> If anyone has a better idea how to determine what is true and what isn't - i'd certainly be very interested

This kind of excuse is often cited to shut down any discussion, especially in history, politics and economics. I find it deeply anti-intellectual and dogmatic. As long as evidence and counter-evidence is followed, it should be possible to discuss alternative interpretations and solutions.

comment 1mo ago · link · parent

Open knowledge systems like Wikipedia are not really defensible. Letting anybody edit any page is a great way to get AI and human slop everywhere. It makes it extremely easy to insert knowledge with dubious quality and sources.

We need "open access" knowledge systems with known authors who are sponsored by non-profit and educational organizations and its their duty to defend their reputation.

Humanity needs more openly accessible curated and factually checked information and "open to modify" systems are bad at in all.

comment 1mo ago · link · parent

What kind of Rust projects? How many dependencies? Does it use macros? How about generics and traits?

Most of the Rust ecosystem makes unnecessarily heavy use of compile-time traits and monomorphized generics (aka Go generics or C++ templates). The language syntax encourages it as well. The thing is compile times will NEVER drop to level of Go unless the entire set of players (language, standard library, almost all library developers) actually prioritize dynamic dispatching instead of static dispatching / monomorphization. That's the tradeoff for the performance and RAM usage you gain. Template-heavy C++ also suffers from the same issues for the same reason.

Golang is fast to compile because its interface definitions are runtime/dynamically dispatched (aka `&dyn Trait` in Rust or virtual classes in C++) and it had no generics for a long time forcing types like slices, map and vectors to be magic types.

If you need fast compile times, you need to split your program into multiple binaries or write your own backend ecosystem that almost only uses dynamic dispatching. If your full Cargo dependency tree pulls 50+ crates, you'll not get fast compile times. You need to avoid derive-macros like plague. You need to use non-Cargo build systems or `build.rs` to generate Rust code instead of derive-macros.

Unlike Golang Rust also targets extremely memory constrained devices where monomorphization enables memory savings, extra optimizations and fewer CPU cycles / instructions (e.g. microcontrollers, UEFI/BIOS implementation). It is a system programming language first. With system programming languages you are responsible for these choices as the developer. Rust just happens to have a vivid scene of backend libraries since the language's safety enabled many non-system developers to write correct and performant programs quickly.

comment 1mo ago · link · parent

It is not the same comparison. CAD produces exact same drawings as handwritten ones. It purely makes engineers more effective. It just took the menial side of the work. You still had to care about every single detail and tolerance. You still followed the same way of manufacturing things. You still do the smallest parts of it. Just like word processing vs handwriting a book / letter. You still have to type every single letter. You still think every sentence.

AI is the complete opposite. It takes away the thinking part. When people use AI, they tend to offload a lot of thinking part to it as well. I use it because company policy. But if you care about every single if case and every single variable name, writing by hand is faster unlike CAD.

12345
29