Hacker Newsnew | past | comments | ask | show | jobs | submit | okanat's commentslogin

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

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.


Then why are they investing in weapons? I mean, I get it for the investors. Governments are investing in weapons, so investors build what governments require. In the EU the problem is not building factories, it's selling what's being built while being sabotaged by the EU and it's import treaties letting Chinese vendors massively undercut their own industry to the point of bankrupting entire sectors (solar panels, plastics, now cars). But WHY do EU governments do this? (and why are they lending very large amounts of money to do it)

I mean, they must be aware of the basic facts: if you're making weapons of war best possible outcome is they sit unused in a basement. If they are used, the other guy's weapons will be going in the other direction and your weapons will not just not contribute to the economy, they'll literally have very strong negative contributions. Whichever of the 2 situations you're in, there will be no improvement for the population, no economic growth beyond the initial investment, no nothing. Just a LOT of tax money poured into a black hole in the ground.

I get that weapons lets a lot of political appointees select their own companies and personally make a lot of money in the short term, at incredible cost to everyone around them.

For the governments buying the weapons this is a guaranteed zero-return-on-investment, with loaned money. Does it really need explaining how stupid this is from a financial viewpoint? In a few years this will become a drag on the EU economy of something like 10% of all taxes raised in the EU. And that's assuming they aren't actually used for anything, because then it'll be a 50%+ drag on the economy.

Surely a DRAM industry is cheap in comparison, plus it actually has a chance of paying off.


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.

I think it’s to do with the LED flicker. You can sometimes see it in your peripheral vision (ie your light/dark receptors) but your RGB cones aren’t as good at spotting it.

Insects eyes are biologically very different.

With LED lighting, if you have lots of spot lights in the ceiling and and open door, you’ll likely find that the light leaving the house is a bath of reflection from different sources inside the house and that likely cancels out the worst of the flicker.


Do they cluster around the bulbs? If not, they might not be attracted to the lights.

Install a single incandescent somewhere and be less mystified by the claim.

They didn't say no bug ever goes to any led light.


But it is what the title on HN says. Is it too much to expect something like "Insects swarm less at LED lights" if that is more truthful?

It is not what the title says, either literally, explicitly, or by implication. The title is already exactly fine.

Is it too much to expect super smarty hn developer types to know how to read? Yeah looks like.


Probably but is it too much to expect something like reading the article before commenting? We all know that many articles/blog posts titles on the internet are clickbait.

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.


If you don’t mind sharing: what provider did you switch to?

Not the OP, but my guess is its Tuta Mail (https://tuta.com/). Very solid looking service and FOSS focus


this looks so much better than Proton :)

ding ding

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.


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.


In terms of aesthetic, I love Windows 7-era Aero glass design (and to a lesser extent, Vista), but I also love the classic Windows 9x/2000 look. If I had to choose between the two, I'd go with Aero simply because of the start menu search bar.


In both Windows 7 and Vista you could change the theme engine to Windows Classic, which gave you the Windows 9x/2000 look AND the start menu search bar.


Exactly. Windows 7 plus the windows 2000 "classic" option was pretty awesome.

Win10 LTSC with the right options and limiting search to local only is pretty good also though. Insanely snappy on even crap systems (with really any SSD)


I found the transparency of windows in Vista and 7 to be a useless distraction. Found Windows 8.1 to be refreshing in that respect, although the menuless apps were poor.

Maybe on the OS side. However, Vista coincided with the release of Office 2007. That release of Office introduced the dreaded Ribbon, which made functions much harder to find.


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.


> It made functions easier to find

I actually find it difficult to scan for a specific function since the most of the text in the ribbon is centered and may have multiple lines. With the current design, I am expected to look up top to check what tab I am on, then look down bottom to find the container that might have my desired functionality, and then finally scan the middle text (which may be one or two lines) for the button.


When Office 2007 was released, they made a lot of noise about how the ribbon was easy to use. One of the key functionality was Preview - that when the mouse cursor moves inside a button, the change is immediately applied to the content and when the cursor moves outside a button, the change was undone.

They never bothered to implement this Preview functionality on the Web version of office, and I bet only a few ever noticed this inconsistency.


I used the Zune theme for windows XP which I really liked. I dreaded Vista because it was just a resource eater with all the effects turned on.

https://www.softpedia.com/get/Desktop-Enhancements/Themes/Mi...


The zune theme is great, now on my XP machines i use a mod of the MCE theme called Royale Noir which is my absolute favorite.

https://images.sftcdn.net/images/t_optimized,f_auto/p/5c889a...


I loved Windows Aero and the flip 3D view - the latter mostly because it looked so cool for that time!


Oh you mean "ripping off compiz"?


I just learned that X Window System came out a year before the first Windows release. Interesting. Thanks for pointing out the compiz ripoff. It spurred me to look up the original release dates.


... 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.


Lol. Check when linux had multiple desktops and when osx had them.

If you're a tachyon I guess linux is ripping off osx :)


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.


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


Oh gosh, the choice of language is such a context-specific design decision. The first versions of what became Docker were written in Python. The choice of Go was a mix of nerdy excitement ("it's like the best of Python and C!"), and adoption strategy: back then devops tools were segmented by language runtime: ruby, python or Java mostly. Shipping a compiled binary allowed us to be adopted by all tribes.

None of these things can be transposed today, so I guess I can't answer...

For what it's worth, my current project (dagger) is written in Go.


I interviewed Solomon about the Go history (plus some others) for this talk https://www.infoq.com/presentations/languages-cloud-native/

Actually there are some longer unedited versions I might release.


That's a good answer that effectively rebuts the article's claim that Go was a bad choice imo.


The article's point that Go is a bad fit for some of the low-level interactions with the kernel, is absolutely correct though. We had to do a lot of juggling to get it to work properly. But in the end it was fine. I would say it was the correct choice of language at the time, and it certainly contributed to Docker's early success.

Another explicit goal was to facilitate contribution. We thought Go syntax was "vanilla" enough to attract a broader set of contributors than a more niche, opinionated language like Erlang, Haskell, Clojure etc. I think that also worked out well - Docker was known for attracting many contributors, many of them making their very first open source contributions. We even ran special meetups to help people become contributors, that was fun.


I think that's so true and it was one of the keys to success of the project. I contributed the very first simplistic implementation of referencing linked containers by name. I never would have bothered if the project was written in C or C++ (I'm more than capable, I just don't enjoy torturing myself). Go made it MUCH easier for a fly-by-night contributor such as myself to join the party.


This is the coolest set of contributions to HN this month, most likely.

Thank you.


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...


Also the case for the equivalent POSIX methods, it's a common pattern in C for a reason.


> 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.


> 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.

I think it's just the fundamental mentality of the kind of people it recruits and it wasn't always the case either. It felt like the old Unix guard of people who worked at Bell Labs were far better adjusted. If anything, this feels more like a social thing because you just encounter these kinds of people a lot outside of programming on say Reddit or 4chan, as in people who just completely seem to miss what goes on outside of their little bubble and I do feel certain types of FOSS have a higher chance of recruiting those people because they were the people who used to first submit patches for free on github and then rose the ranks. This does not in any way occur with say people being paid by Intel to write drivers for Linux. They seem to know perfectly well what goes on with the world because they weren't recruited through those channels that are just more likely to attract, shall we call it “terminally online” people as the kids call it nowadays?

> 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.

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?”. 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. To them Linux is really just a desktop kernel and they completely don't seem to realize that desktop usage of it is really super inconsequential in the larger scheme of things.


> 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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: