HNHacker News
TopNewBestAskShowJobs

StillBored

6,226 karma · joined February 13, 2014

submissionscomments
StillBored··on Linear Address Spaces: Unsafe at any speed (2022)
<i>So with the 80386, Intel finally abandoned their failed approach of segmented address spaces and joined the linear rest of the world. (Of course the 386 is technically still segmented, but let's ignore that).</i>

That seems an odd interpretation of how they extended the 286 protected mode on the 386. The 286 converted the fixed address+64k sized segment registers to 'selectors' in the LDT/GDT which added permissions/etc to a segment descriptor structure which were transparently cached along with the 'base' of the segment in generally invisible portions of the register. The problem with this approach was the same as CHERI/etc that it requires a fat pointer comprising the segment+offset which to this day remains problematic with standard C where certain classes of programmers expect that sizeof (void*) == sizeof (int or long).

Along comes the 386 with adds a further size field (limit) to the segment descriptor which can be either bytes or pages.

And of course it added the ability to back linear addresses with paging, if enabled.

Its entirely possible to run the 386 in an object=segment only mode where each data structure exists in its own segment descriptor and the hardware enforces range checking, and heap compression/etc can happen automatically by simply copying the segment to another linear address and adjusting the base address. By today standards the number of outstanding segment descriptors is limiting, but remember 1985 when a megabyte of RAM was a pretty reasonable amount...

The idea that someone would create a couple descriptors with base=0:limit=4G and set all the segment register to them, in order to assure that int=void * is sorta a known possible misuse of the core architecture. Of course this basically requires paging as the processor then needs to deal with the fact that it likely doesn't actually have 4G of ram, and the permissions model then is enforced at a 4K granularity. Leaving open all the issues C has with buffer overflows, and code + data permissions mixing/etc. Its not a better model, just one easier to reason about initially, but then for actual robust software starts to fall apart for long running processes due to address space fragmentation and a lot of other related problems.

AKA, it wasn't necessarily the best choice, and we have been dealing with the repercussion of lazy OS/systems programmers for the 40 years since.

PS: intel got(gets) a lot of hate from people wanting to rewrite history, by ignoring the release date of many of these architectural advancements. Ex the entire segment register 'fiasco' is a far better solution than the banked memory systems available in most other 8/16 bit machines. The 68000 is fully a year later in time, and makes no real attempt at being backwards compatible with the 6800 unlike the 8086 which is clearly intended to be a replacement for the 8080.

StillBored··on KDE going all-in on a Wayland future
Ok, so instead of a couple UAC style prompts for screen readers, macro recording, desktop sharing, etc, and some tweaks to GDK, we got what? An entire new backend GDK windowing system, and a pile of broken applications? And its been decades?

And its not like actual flaws people found couldn't be fixed.

There is a word for this.

StillBored··on KDE Plasma 6.8 Will Go Wayland-Exclusive in Dropping X11 Session Support
https://www.x.org/releases/X11R7.6/doc/xextproto/security.ht...

Is the security extension from 1996, which has a section on keyboard security

and its crazy to me that this anyone can claim X11 can't be off loaded, which its been doing for decades. From all the crazy blt/pattern HW acceleration to GL/vulcan implementations to the fact that the entire server can be on the other side of a network pipe, meaning it could be anywhere, including entirely encapsulated on a graphics card/smart nic/etc.

And if your talking about the xlib serialization, that was largely fixed with XCB.

StillBored··on KDE Plasma 6.8 Will Go Wayland-Exclusive in Dropping X11 Session Support
https://www.x.org/releases/X11R7.6/doc/xextproto/security.ht...

Notice the date.. 1996

(for those that didn't click the link, that is the X11 security extension which address all that, and it was published ~30 years ago).

StillBored··on KDE Plasma 6.8 Will Go Wayland-Exclusive in Dropping X11 Session Support
The KDE blog entry reads like a modern political platform denying climate change, or claiming renewable energy can replace traditional energy sources on the grid.

One head strictly stuck in the ground and ignoring the cases that make many of those statements flatly false. Like for example, the nvidia support. Nvidia support in Linux is in the 'good luck' catalog, especially on any optimus laptop, where one is lucky if the power management works, much less multiple screen docking/undocking, and a heap of other issues. Then please clarify which actual driver stack one is running (nouveau vs provide by nvidia binaries, vs nvidia open source) To claim its great with wayland ignores core failures that still exist.

Its the same with X11 forwarding, which like copy paste, has been steady degrading to the point where all the dbus/etc services being depended on makes double digit percentages of applications not work with 'ssh -X' and oh wow, waypipe. It seems all of windows/osx and KDE/Gnome are steadily shooting themselves in the foot.

I'm sorta happy I pulled my financial support not long ago, there are a couple 'toxic' people in the distro DE community who are pushing their own agendas, everyone else be damned. And weirdly enough it seems those people aren't doing it for some corporate/whatever reason, but just to wave a flag about their accomplishments. The entire reason most people claim wayland is 'better' is largely FUD, but that doesn't stop the true believers.

StillBored··on KDE going all-in on a Wayland future
> In case I wasn't clear enough, there was never a screenshot feature. Any X11 client could read any pixel written by any other X11 client.

Which is a load of FUD, the X11 security extensions from (checks google) 1996, restrict this.

StillBored··on DIY NAS: 2026 Edition
ECC! I don't care what BS people say about ZFS/Btrfs/whatever, if a bit flips on your router hopefully the checksum fails and nothing bad happens.

If you flip a bit in memory, on the way to the disk, then its corrupt at rest, and future reads will likely propagate the error.

Sure, who cares, a glitch here/there in your kids first birthday video. Better hope the glitch is there, rather than in say the bit of code computing the sector offsets/whatever.

Stories like this hit the media every couple years, so if it can happen on the big fancy EMC/whatever then it can happen on your little NAS in the closet.

So, just pay the little extra for the CPU+MB+RAM that protects your data from the NIC all the way to the HD.

StillBored··on Same-day upstream Linux support for Snapdragon 8 Elite Gen 5
Asahi is also still a platform with a huge pile of out of tree patches on top because the platform itself is pretty unusual, requiring for example, a 16K page size kernel which is unlike pretty much every other arm Linux platform.
StillBored··on Same-day upstream Linux support for Snapdragon 8 Elite Gen 5
I was going to write a snarky comment, but in the "if any of Qualcomm leadership is listening" I'm going ask a question:

Why is any of this needed when the kernel is full of platforms that are forward compatible with the Linux kernel and boot and generally operate on day one, without a huge pile of changes?

What does it benefit the user to have a huge pile of proprietary implementations of devices they frankly don't care about? Ex: just about anything related to power management? Why can't QC adhere to industry standards when they implement standard devices, ex: USB? Why can't these platforms adhere to industry standard firmware interfaces rather than custom mailbox interfaces?

StillBored··on TSA to charge $18 fee for travelers without Real ID or passport
And generally considered unconstitutional, until suddenly it wasn't, just like GWB nationalizing the TSA itself thereby creating the single largest case of the federal government pilfering through everyday Americans persons and property hunting for things that are legal to own. Which was also wildly considered unconstitutional, until it wasn't.

And go read the 4th amendment, with the understand that no one who signed it thought anything in the constitution authorizes any part of the federal government to ignore the absolutist language the bill of rights is written in. The assumption was that if there arose a need to justify the federal government searching people like this it needed a super majority to pass an amendment to fix it.

StillBored··on TSA to charge $18 fee for travelers without Real ID or passport
Right, and the reason this has been going on for nearly a quarter century in the USA is because it was widely considered an unconstitutional national passport until 9-11, and got bipartisan push-back from a number of states following its passage.

The federal government passed it along with the authoritarian wishlists various agencies had been salivating over for 40+ years and unable to get passed, until under the guise of saving us from the 'terrorists', who now 25 years later, turned out the actual terrorists were probably just domestic authoritarians. The guys living in caves weren't really a threat and could be dealt with, without passing a bunch of stuff to affect every single citizen of the country.

StillBored··on Discontinuation of ARM Notebook with Snapdragon X Elite SoC
Sure, but i suspect for basically all of us (maybe Elon is surfing HN today), that literally means nothing. Few of us have the 100's of millions required to design and fab a competitive SoC, and for those that do, the arm licenses are easier to acquire than the knowledge of how to build a competitive system (see RISC-V). You might as well complain about TSMC not publishing the information on how to fab 2nm parts or the code used to generate the mask sets.

For the rest of us, what matters is whether we can open digikey/newegg/whatever and buy a few machines and whether they are open enough for us to achieve our goals and their relative costs. So that list of vendors is more appropriate because they _CAN_ sell the resulting products to us. The problem is how much of their mostly off the shelf IP they refuse to document, resulting in extra difficulties getting basic things working.

StillBored··on Discontinuation of ARM Notebook with Snapdragon X Elite SoC
Or they just got one of the 'good' models and tuned linux a bit. I have a couple lenovo's and its hit/miss, but my 'good' machine has an AMD which after a bit of tuning idles with the screen on at 2-3W, and with light editing/browsing/etc is about 5W. With the 72Wh battery that is >14h, maybe over 20 if I was just reading documentation. Of course its only 4-5 if i'm running a lot of heavy compile/VMs unless I throttle them, in which case its easy over 8h.

One of my 'bad' machines is more like 10-100W and i'm lucky to get two hours.

Smaller efficient CPU + low power sleep + not a lot of background activity + big battery = very long run times.

StillBored··on Discontinuation of ARM Notebook with Snapdragon X Elite SoC
While each of the comments here describe individual failings, on a well supported laptop it is possible to get better power efficiency than windows if your willing to spend the time manually tuning linux, the powertop/etc suggestions are fine, but fundamentally the reason some of the 'lighter' DE's save so much power is that there is a lot of 'slop' in the default KDE/GNOME and application set. You have random things waking up to regularly and polling stuff which pulls the cores out of deep sleep states. And then there are all the kernel issues with being unable to identify and prioritize/schedule for a desktop. Ex: the only thing that should be given free reign is an active forground application, grouping and suppressing background applications, running them on little cores at slow rates if they have work to do/etc. All that is a huge part of why macos does so well vs linux on the same hardware.

The comment about ACPI being the problem is slightly off base, since its a huge part of the solution to good power management on modern hardware. There isn't another specification that allows the kind of background fine grained power tuning of random busses/devices/etc by tiny management cores who's entire purpose is monitoring activity and making adjustments required of modern machines. If one goes the DT route as QC has done here, each machine needs a huge pile of custom mailbox interface drivers upstreamed into the kernel customized for every device and hardware update/change. They get away with this in the android space because each device is literally a customized OS and they don't have the upstream turnaround problem because they don't upstream any of it, but that won't scale for general purpose compute as the parent article talks about.

StillBored··on Discontinuation of ARM Notebook with Snapdragon X Elite SoC
I have a couple generation back amd laptop that can 'standby' for months.. its called S4 hibernate. Although at the same time its set for S3 and can sit in S3 for a few days at least and recover in less time than it takes to open the screen. The idea that you need instant wakeup when the screen has been closed for days is sorta a niche case, even apple's machines hibernate if you leave the screen closed for too long.

That isn't to say that modern standby/s2-idle isn't super useful, because it is, but more for actual use cases where the machine can basically go to sleep with the screen on displaying something the user is interacting with.

StillBored··on The privacy nightmare of browser fingerprinting
I would re-frame "is it really worth breaking half the web" as those sites are not compliant to begin with. Nothing in the web standards stack mandates javascript, its an optional feature! Web developers of yore understood that a fundamental property of a properly written web site was to degrade gracefully if javascript wasn't available, but the groupthink of the past decade has chosen weaponized incompetence over doing their jobs and in the process has not only thrown a load of noncompliant insecure garbage out there, but broken a load of accessibility standards, and other things in the process.
StillBored··on Vacuum bricked after user blocks data collection – user mods it to run anyway
Yes, I was thinking he needs an attorney to file suit against them for intentionally damaging his property, and then charge them for the 'repair' which would be the months he probably spent fixing it at a top grade engineering salary.
StillBored··on Server DRAM prices surge 50% as AI-induced memory shortage hits hyperscalers
While thats a sweet upgrade for people with an older desktop that can support a motherboard swap, its worthwhile to point out the ram is probably insufficient.

RAM usage for a lot of workloads scales with core/thread count, and my general rule of thumb is that 1G/thread is not enough, and 2G/thread will mostly work, and 4G/thread is probably too much, but your disk cache will be happy. Also, the same applies to VMs, so if your hosting a VM and give it 16 threads, you probably want at least 16G for the VM. The 4G/thread then starts to look pretty reasonable.

Just building a lot of opensource projects with `make -j32` your going to be swapping if you only have 1G/thread. This rule then becomes super noticeable when your on a machine with 512G of ram, and 300+ threads, because your builds will OOM.

StillBored··on Does our “need for speed” make our wi-fi suck?
A lot has changed in the 25 years since gbit wired ethernet was rolled out. While wired ethernet stagnated due to greed.

Got powerlines? Well then you can get gbit+ to a few outlets in your house.

Got old CATV cables? Then you can use them at multiple gbit with MoCA.

Got old phone lines? Then its possible to run ethernet over them with SPE and maybe get a gbit.

And frankly just calling someone who wires houses and getting a quote will tell you if its true. The vast majority of houses arent that hard, even old ones. Attic drops through the walls, cables below in the crawlspace, behind the baseboards. Hell just about every house in the USA had cable/dish at one point, and all they did was nail it to the soffit and punch it right through the walls.

Most people don't need a drop every 6 feet, one near the TV, one in a study, maybe a couple in a closet/ceiling/etc. Then those drops get used to put a little POE 8 port switch in place and drive an AP, TV, whatever.

StillBored··on Synology reverses policy banning third-party HDDs
I don't know the details of the warnings either, but from the original articles it sounds like they had moved to a QVL list that didn't include 3rd party devices, only their rebranded ones. Which is possibly because they got seagate/wd/etc to tweak something in the firmware. Which isn't unheard of for large vendors. And it is somewhat fair, qualifying drive persistence is probably some ugly unit test that takes hours to run, and requires being able to pull power on the drive at certain points. So the warning ends up being the equivalent of "we don't know if this drive works, lots of them don't we are going to disable this aggressive cache algorithm to assure your data is persisted" and that kills the performance vs the qualified drive. But because some non technical PM gets involved the warning shown to the user is "This drive isn't qualified".

The other take though, was that it was just a $ grab by rebranding and charging more for drives that were functionally the same. Which for logical people made sense because otherwise, why not say why their drives were better. But sometimes the lawyers get involved and saying "our rebranded drives are the only ones on the market that work right when we do X, Y, Z" is frowned on.

Hard to really know without some engineer actually clarifying.

StillBored··on Synology reverses policy banning third-party HDDs
This is a mixed bag. As someone who worked in the storage industry for ~10 years, there are a lot of poorly defined behaviors that are vendor/model specific and I can see how its easier to just pick a particular model, test it and declare it the blessed version having done similar stuff myself.

Ex, SMART attributes, mode sense/caching behaviors, etc. Which can all be used in conjunction with RAID to determine when a disk should be replaced, or the user warned about possible impending doom, to simple things like how one sets cache WT/WB and flushes the caches (range based flushing is a thing, doesn't always work, etc) for persistence.

OTOH, much of this is just 'product maturity' because it is possible to have a blessed set of SMART/etc attributes that are understood a certain way and test to see if they exist/behave as expected and warn the user with something like "this drive doesn't appear to report corrected read errors in a way that our predictive failure algorithm can use". Or "This drive appears to be a model that doesn't persist data with FUA when the caches are set to write back, putting your data at risk during a power failure, would you still like to enable writeback?"

And these days with the HD vendors obfuscating shingled drives or even mixing/matching the behavior in differing zones its probably even worse.

StillBored··on Amazon fined $2.5B for using deceptive methods to sign up consumers for Prime
Which because they have gotten away with it for so long, everyone else has been copying (or well I guess this has been going on for decades in various forms) them.

Ex, netflix, which has decided to pop up a 'we noticed there are people who don't live with you using your account, click here to pay us another $9/month' every time it starts on my TV, presumably because my underage child, who legally lives with me, uses it on her phone when she is away at school for 5 months a year.

And then when someone clicked the default pay us button, I was unable to figure out how to remove the charge without actually calling and telling them I was canceling after 20+ years. (the whole extra member thing wasn't showing up in the web ui, no idea why, maybe its because of the TV clicking process).

StillBored··on In Defense of C++
Which goes to the GP's point, which is that security and robustness are not on the radar.

And my point in providing a concrete example, where a decision was made to prioritize unsafe behavior in a known problematic area, when they could just as well have made a half dozen other decisions which would have solved a long standing problem rather than just perpetuating it with some new syntactic sugar.

StillBored··on In Defense of C++
Its worse. The day I discovered that std::array is explicitly not range/bounds checked by default I really wanted to write some angry letters to the committee members.

Why go through all the trouble to make a better array, and require the user to call a special .at() function to get range checking rather than the other way around? I promptly went into my standard library and reversed that decision because if i'm going to the trouble to use a C++ array class, it better damn well give me a tiny bit of additional protection. The .at() call should have been the version that reverted to C array behavior without the bounds checking.

And its these kinds of decisions repeated over and over. I get its a committee. Some of the decisions won't be the best, but by 2011 everyone had already been complaining about memory safety issues for 15+ years and there wasn't enough politics on the comittee to recognize that a big reason for using C++ over C was the ability of the language to protect some of the sharper edges of C?

StillBored··on Removing newlines in FASTA file increases ZSTD compression ratio by 10x
I think the prevalence of the format vs something more widely used should be part of that metric.

On those grounds, the lack of pre-tokenization in html/css/js ranks at this point as a planet killing level of poor choices.

StillBored··on Apple has a private CSS property to add Liquid Glass effects to web content
Which is probably exactly why this was added. The cheap way to usually tell if someone is using a 3rd party UI toolkit, is to start tweaking the system theming and see if the application follows some scaling/color changes correctly.

In this case some subset of apple provided apps weren't following the theme and they fixed it by adding a private css property.

Vs some other OS vendor that likely removed most of the theme controls so they didn't have to keep fixing a huge pile of 1/2 baked abandoned toolkits scattered across their product portfolio.

StillBored··on U.S. added 911k fewer jobs in year through March than reported earlier
Austerity has repeatably been shown to kill economic growth and trigger recessions/depressions. Yet for whatever reason there is one party in congress who's entire economic policy is basically austerity measures. Repeatedly, the ax man comes in and cuts spending that generates multiples of economic activity in return. This happens all the time cut a $1 here and it costs $4 over there kinds of things. Infrastructure is frequently in this category, delay maintenance until it can't be repaired, or simply fail to invest until a road/bridge is gridlock 18 hours a day, or the train is to scary to ride. The current admin is doing this 10x because they aren't being smart about what they cut, just doing it for political points.

Is there government waste? Sure, but that requires micro tweaks, aka instead of hiring more TSA agents maybe decide they shouldn't be randomly selecting every 3rd precheck user for additional screening/etc, or maybe decide that investing in even slower scanners isn't the right choice. Plus, in TX having seen some of these contracts the city/state gives out, the idea that private industry is more efficient is laughable. In some cases they are basically contracting out for millions of dollars a year a job that could be handled by one or two actual government employees paid less than $100k a year.

StillBored··on Nest 1st gen and 2nd gen thermostats no longer supported from Oct 25
Gonna shill Venstar's colortouch line despite not having any financial relationship with them. Only because I don't see anyone else mentioning them, and I've had good luck with them for the past ~10(?) years in multiple houses. They are AFAIK the only "smart" wifi thermostat that both provides a standalone local JSON API (https://developer.venstar.com/documentation/) , and have a pretty wide ecosystem of devices and supporting infra that covers as much if not more than what some of the larger players do.

They are pretty niche, so much so that it took me maybe a year of half-hearted searching before I found a smart thermostat that wasn't dependent on an internet connection. And of course there is a home assist integration/etc https://www.home-assistant.io/integrations/venstar/

Read some reviews before you buy them, or you might be surprised by the resistive touch on some models (which works fine with the UI), audible click when the relays go on/off (this is actually a big advantage in failure modes), and other features some people might not like.

StillBored··on Electricity prices are climbing more than twice as fast as inflation
Batteries are just an extension of the thinking that PV or Wind are 'cheap'. There is slight U shape in the price where an initial fraction lowers the cost, but then it just additional cost overhead. Cost shifting some of the excess solar into the evening to reduce the peak load there is fine, but then your still paying for a pile of excess backup capacity to sit around idle for those days when the sun doesn't shine, and adding more batteries beyond a certain point is the same. They just sit around idle most of the time adding to the cost. I've posted here napkin math for how much a W of solar or reliable PV actually costs and been down voted but the math is easy when you stop believing that a W from PV/Wind is the same as a W from your local Gas/Coal/Hydro/Nuke plant.

All those gas plants and batteries sitting around idle soon start dominating the cost structure because the price of their produced watts starts to go exponential.

StillBored··on Emailing a one-time code is worse than passwords
And there is _NOTHING_ worse than being locked out of an account because without asking they reverse the password and second factor authentication while your traveling and don't have access to a phone/etc.

Nevermind. that pretty much all services treat the second factor as more secure than my 20 character random password saved in a local password safe. And those second factors are, lets see, plain text over SMS, plain text over the internet to an email address, etc, etc, etc.

← PreviousPage 2 of 34Next →