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

Not released yet, but honorable mention to ladybird: https://ladybird.org/


Unrelated to Firefox though.


I am a bit confused by their moving from C++ to Swift instead of Rust. It sounds a bit Apple-first. I get that it ports to Linux okay, but will it be hard to make it work with Windows some day?


The main reasons were that Swift supports OOP and Rust doesn't (useful because web standards are object-oriented and it's easier to follow the specs when you can model them in your code), and that Swift supports C++ interoperability instead of just C interoperability like Rust (makes it easier to incrementally move to Swift in an existing C++ codebase).


Rust makes more sense if you were to start from scratch, but the Ladybird devs said that their code is already heavily OOP, so it maps to Swift a lot better.

Also, variety is good, we have Servo in Rust (although I wish they'd make an actual browser around it too).


Yeah I guess it's the same story as with the TSC port to Go


I use WSL for work as well and in my opnion it fits Microsoft's classic "embrace, extend, extinguish" paradigm.

WSL basically prevents most from requesting from the IT dept, A full blown Linux desktop/Laptop because they will simply say "you want Linux? here have WSL, it is 100% Linux", Which it is really not, WSL's idiosyncrasies from a true Linux Desktop drives me nuts at times.


Chances to find common language with CorpIT going higher if you will bring not just "Linux laptop" request, but request + ready to be used and proven to work tooling for good MDM, integrated into common system; way of limiting privileges (i.e. no local admin), Full Disk Encryption with TPM and other basic things.


The issue has more often been about the security tools and monitoring for Windows, along with account federation. These tend to be more broadly available and polished on Windows and Mac.

I'd prefer a full Linux workstation, but if it's locked down like some Windows I've experienced, I'm not sure it's materially better.

Right now I'm working in a remote, secured, locked down Windows VM... Without WSL or Docker. That sucks a lot.


Damn here I was hoping I was safe on Opensuse TW with Kernel 6.3.2

Thankfully I should be able to rollback with Opensuse's snapper. This is the key advantage of Opensuse TW in my opinion, The BTRFS filesystem alongside snapper helps maintaining a reliable system while on the bleeding edge.


Ignorant take


That is impressive, Should take a dive into pdfcpu


How Linux freezes under high memory usage, Mac OS and Windows both handle such situations well without requiring a hard reboot.


Windows freezes, too and if you are a heavy multitasker with a program that hogs memory and you are not carefully it can happen wow frequently


Windows definitely stalls less in those kinds of situations. I remember running both Windows and Linux on my old 2 core 4GB RAM laptop. On Windows I could have easily swapped out almost ten GB of memory and it'd still chug along, whereas Linux would be completely unresponsive after a couple of GB of swapped out memory and require a reboot. I wonder how much the pending MGLRU patch for Linux 6.1 would help with this.


The old Windows Task Manager has code in it that killed other programs to be able to start so the user could kill more programs.

I don't know if this feature still exists in modern versions since memory has increased so much but I always found it to be neat that some developers thought about this.


Sounds like a good idea for systems that are absolutely hammered. `htop` could add a `--kill` flag, or maybe `--kill-ram` / `--kill-cpu` which would first try to kill the most ram/cpu intensive application, and then load the UI.

I've ended up in a couple of situations where servers are so hammered it takes five minutes just to get a ssh session up and running because some process took up all CPU/RAM and was barely able to do anything in the server itself. Something like that could maybe help.


David Plummer wrote the Windows Task Manager, he made a 3 part series on his YouTube channel [1]. It's a fascinating couple of videos, highly recommend to watch.

[1] https://www.youtube.com/watch?v=f8VBOiPV-_M


Basically kill -9


It's not even close. Linux overcommits memory by design.

If you disable memory overcommit, Chrome based browsers won't even start.


Mac OS absolutely freezes too. It happened to me just a few days ago and I had to hard reboot.


Right? It's getting worse and worse with each update.

I remember praising mac os memory management back in the days when you could just go to "Applications" folder and open everything at once without a hiccup.

Today, even rebooting with "reopen apps" option is a nightmare.


Ask a mac zealot this and they will deny it ever happening.


Mac user for 15 years. Happened to me maybe a dozen times.


You must not be a Mac zealot


If that was the case, macOS and windows would own the server market because who would want to have a server that "freezes" under "heavy memory load". MacOS is virtually non-existent and Windows has a small share of the market and performs poorly comparison.


by "freezes", 'deeter72 almost certainly means that the user interface becomes unresponsive, which is not relevant for servers.

windows has policies that prioritize maintaining user interface and foreground app responsiveness.




I linked threads on LKML that are directly relevant to this subject, about how this (system becomes nonresponsive under memory pressure) is a real problem that people really experience, with a lot of people agreeing that it is a problem and suggesting various mitigations. Most of those ideas presuppose that memory pressure leads to stalls and are about figuring out how to detect when the system is stalled and making no progress and killing processes after it has gone on for a while (often with userspace daemons). I think MGLRU is maybe getting merged in linux 6.x and will hopefully help avoid the stalls.

you linked a list of all CVEs in macOS. I don't see how this is relevant at all.


> [...] is a real problem that people really experience, with a lot of people agreeing that it is a problem and suggesting various mitigations [...]

tl;dr: I believe you are overblowing the importance of the bugs. In the bigger scheme of things they're more likely inconsequential.

(see my other reply for more)


These links are not just two simple bugs.

The first link is a report that the system becomes nonresponsive under memory pressure and a discussion of that report. In that thread, there was not really any agreement about whether this was a bug, let alone what the bug was, or what the fix would be.

The second wasn’t a bug at all, it was a patch proposed set of knobs to allow users to avoid the problem.


I vaguely remember Solaris had a way to prioritise focused X Window application (IA) while keeping it within time-sharing (TS) scheduling class.

Kernel thread for interactive applications in focused window would then have higher priority than background applications improving responsiveness. I am not sure what manipulated the priority, but I assume Xsun (X Window server) did it.


I believe that this absolutely could be done with ebpf setting schedule priority. A small daemon looking at the front-running window and you're there.

https://lwn.net/Articles/873244/


I guessed as much but I stand by my statement… If there was a serious problem, we would know by now.


We do know by now, which is why the LKML thread I linked is titled "the elephant in the room."


original answer:

Ok. I got it. Literally speaking there are two (maybe more?) known bugs. Do we know how many are there for Windows and macOS? I get freezes every now and then under macOS, so there _might_ be memory management issues there as well.

My point stills stands because I believe that the bugs you posted are largely inconsequential. Bugs could be very well been patched by now (or not). My guess the fix won't uptick the % of linux in desktop or server market.

IMHO "the truth is in the pudding": if the largest share of mobile OS's is based on linux (android) and largest % in servers in again based on linux, memory management is overall good enough - otherwise the market share would have dropped considerably.

UPDATE: Revisiting the thread question... I'm barking at the wrong tree. The question wasn't about relevance and market %. Your comment is to the point.


> if the largest share of mobile OS's is based on linux (android)

Android has had a variety of downstream patches over the last 5-10 years to address this problem. ChromeOS too.


It is more a matter of paying for licenses than anything else.



This is a gross generalization. And I'm not sure where you are picking up those values from as well or their accuracy, for Flask is ~15,000 on uWsgi or Gunicorn? or the default werkzeug dev server? How you deploy matters very much I'm sure you'd understand.

However, Ultimately development teams make do with the skillset they have and saved development time is saved money. Who cares of the toolset, Most programmers forget about the business objectives ultimately. Instagram's backend was originally Django, they managed just fine for a long time. Using C++ is pretty overkill even for a simple API project and potentially a huge waste of developer time, people seem to forget developer time is expensive.


I don't think it's fair to call it a gross overgeneralization; good software engineering is being able to evaluate and select the right tool(s) for the job than try to bastardize their fave lang into everything.

The numbers were from skimming TechEmpower's benchmarks. I don't have a horse in the race as I don't do (much) web dev but I found the disparity amusing even if the reality isn't quite so bleak due to, as you mentioned, many other factors before you even hit the application itself.

Ultimately I agree with you, I'd rather see someone use a framework they're comfortable with if it makes their life easier - but I won't lie to them and pretend it's optimal.


I feel like in general Python on Mac OS is messy compared to Linux and even Windows.


There is a lot of good things to say about Python which is a fairly nice language but I feel it is messy on every platform. Tooling makes the situation bearable nowadays but that's definitely not one of Python strong point.


Inside russia you can flex as much as you want. Case in point "Maksim Yakubets" of Evil Corp. Who drives a camo'd lamborghini with the plate "Thief"..

https://www.thetimes.co.uk/article/moscow-cyberthief-wanted-...



The probably he has connections with the corrupt police or criminals. A nobody can't really drive a custom lambo and not get noticed.


This is shocking. God, what a corrupt state.


Yes, contrary to the US which isn't corrupt, right.

I am neither american nor russian by the way. And although my own country is officially not really corrupt, we also have our fair share of lobbies and non-prosecuted crimes when someone higher up fucks something up.

EDIT: Looking at the downvotes I guess people think I hate the US while defending Russia or whatever. Actually I think every country or rather it's government has flaws with intransparency or legal corruption, just in different areas. US has shady financial things, Russia is apparently in the hacking space, my country has it's shady areas as well etc. Don't take my comment as an attack towards the US as a whole or as a way to say Russia does nothing wrong.


Finally, pure whataboutism.


Not really in my opinion.

The poster was expressing that they're shocked, saying what a corrput state Russia was. And I don't quite understand why they're shocked and presumed that they're from the US.

I didn't try to deflect by saying "Russia isn't a dangerously corrput state because look at the US", I tried to say "Why are you shocked about Russia when your own country has it's problems with corruption too."

Hope that makes sense and that I'm now not registered as a russian astro-turfer.


When attacking Russia for a specific thing, bringing up the misdeeds of the US are a distraction, and "whataboutism".

When comparing the morality of the two nations (or criticising the "world police" status of the US as hypocritical) recalling American misdeeds is appropriate.

In the case the post was "what a corrupt state", attacking character of Russia generally, hence it's appropriate. It's worth pointing out that OJ Simpson published a book "If I did it", which could be seen as morally unacceptable too - but then there would be a difference between "that's terrible" and "America is terrible".


For some reason everyone on this site sees the term “whataboutism” as an immediate way to invalidate a statement they disagree with.

I believe OPs point was that in fact, Russia is as corrupt as other world powers…so you shouldn’t be shocked by their tolerance of cyber criminals.


How is this particular instance "corruption". The guy violated US laws which Russia do not "harmonize". This is similar to a US-based person who is attacking Putin in the media. It's illegal in Russia, but would that make the US extradite him?


Thievery is illegal in Russia too.


But the theft is happening outside of Russia, so a Russian court could not pursue.


What would happen if you stole $1bn in Russia and escaped to the US?


You'd make a federated, censorship-resilient sometimes-encrypted chat app.


This reminds a scene from the TV show, the wire when one of the main criminal character hosts a meeting with other gang leaders and a member of his gang is recording minutes, the main character says "Are you taking notes on a criminal fucking conspiracy?".

Apparently none of the intelligent executives at Apple/Google figured this out.


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

Search: