Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,383 karma · joined Jan 3, 2008 (18y ago) · 8,295 submissions

mqudsi on most sites.
Submissions

comment 3y ago · link · parent

> in-kernel driver has bound before the proprietary one (eg, nouveau) and potentially left the card in a state the proprietary driver isn't expecting

Thanks for reminding me of that - we definitely ran into that some. It wasn’t always with proprietary drivers, though. I think there were cases where legacy intel or amd cards would be incorrectly brought up by the old non-KMS drivers and then the KMS driver wouldn’t load, or maybe vice-versa as there were definitely specific cards within generations of chipsets that were documented as working under KMS/DRM failing and we would have to resort to the legacy drivers.

> But the answer there is not to simultaneously ship both the free and the proprietary stacks.

We didn’t really have a choice given that there wasn’t a one-size-fits-all driver (we didn’t try simpledrm - iirc it went through phases of breakage). But truth be told, while nvidia was the worst and most painful to deploy and upgrade, aside from the issue that we had to choose which version of the nvidia driver we wanted to ship (until we got the conflicting shared dependencies situation worked out by hot swapping the components before loading the driver), it was the most likely to work with all the cards it advertised support for. Only issue there was older cards not supported on current kernel versions or lacking drm drivers altogether.

comment 3y ago · link · parent

It’s not quite that simple. It’s also probabilistically arriving at the asymptote of the ideal solution for many cases. If an item is accessed often, it’ll be re-inserted quickly when it is accidentally removed but only at risk of eviction at a rate of 1/n. On average, the items you use often will be in the cache and the items you don’t, won’t. It has nothing to do with specifically actually random access pattern. Because you access it a lot, the fact that it got evicted one of those n accesses is completely amortized by the other accesses (even more so when you take into account that you never evict the item that you are currently accessing).

The solution fails for specific non-random access scenarios. Eg you access an item exactly every n-1 accesses: in an LRU, it’ll always be in the cache but in a probabilistic eviction scenario, it’s most likely not going to be in there.

comment 3y ago · link · parent

Yeah, we specifically disabled suspend and resume and supplied the needed parameters at boot time when “safe graphics mode” was selected. There were definitely cases where neither vesafb nor vesa worked for us and we resorted to our own basic framebuffer driver with out-of-band management of modes via exposed IOCTLs to bypass X’s logic here altogether.

I know you’re posting from the perspective of a Linux dev, but some of this was on FreeBSD (and some of it was not).

The EFI stuff was all on BSD, which took a lot longer to make that transition than Linux did. I didn’t dig into those as much as I did with the BIOS/VESA stuff as my role in the product was being slowly phased out at the time we added native EFI support but had plenty of devices where customers would resort to using CSM to workaround EFI framebuffer graphics driver issues.

comment 3y ago · link · parent

We had dependency conflicts between the latest separate releases for both older and newer nVidia hardware (obviously all complaints should be directed at nVidia there), and issues with the latest AMD drivers for their older devices panicking on unload in the presence of certain newer hardware and/or issues loading KMS for the newer products at the same time time as the separate driver for the older. Can’t remember the specifics but we had to load and try them in a certain order (not having a perfect map of hardware ids).

comment 3y ago · link · parent

While it’s true that having a better proliferation of hardware accelerated displays in use is a net win, you can’t discount the need to be able to bring up a GUI on generic hardware without knowing the underlying stack in advance.

While under X it was possible to install a dozen drivers and - mostly - be able to cycle through them (auto detection sucked and continues to suck at matching drivers to hardware via manufacturer/device ids), DRM/KMS drivers are unfortunately another story. You often cannot bring up a KMS driver for one hardware on another and expect to be able to gracefully unload if it’s not supported. There KMS drivers that can’t be installed in parallel (you have to choose which set of cards to support over the other a priori), and there is a ton of legacy hardware that will never get KMS drivers working, ever.

comment 3y ago · link · parent

IIRC in real-world testing on actual consumer hardware in the field (sample size in the hundreds of thousands), we found fbdev was better supported than vesa (with more restrictions, of course).

Inability to change EFI resolution is OK except with high-res (4k) discrete GPUs running without scaling. But that’s ok because you can do fake DPI scaling in software - the actual tissue is performance at 4k sucks if not hardware accelerated.

Bigger problem today is that EFI fb support is still in its nascence both manufacturer- and software-side. Manufacturers ship crap that’s not up to spec while some EFI FB handlers are too strict in what they expect or haven’t added quirks for some of the very common hardware you might run across.

comment 3y ago · link · parent

At this point, everyone knows about bloom filters simply because it’s the thing to write about any time someone asks “lesser known data structures/algorithms?” - it’s hard to find a list that doesn’t feature them!

Still some good entries in that list. I would add skip lists, not because they’re structurally anything special but because they open your mind to the possibly entirely-new-to-the-reader world of probabilistic data structures.

As someone that’s been around the block, something I’ve learned to be less surprised by is how often simply adding an element of randomness to a difficult problem can sometimes give you results comparable to a 10- or 100-times more complicated solution, with the advantage of being more maintainable, making better use of the i$, and avoiding a lot of work. (Eg compare a cache dropping randomly selected items to LFU or LRU caches.)

comment 3y ago · link · parent

Nice read. I wouldn’t have minded more technical details about the implementation and challenges, but that’s probably because I’ve had to write generic SVGA drivers to support generic graphics cards before. (I’m not clear on what was the more convenient alternative to VMs that the author ended up using, though?)

Side-bar but still on-topic: It really irks me to no end that Windows 3.x and Windows 95 could get a fairly hardware-agnostic (fallback) software-rendered GUI fully up and running and exposed to user space in the early 90s and even today Linux/BSD can’t manage that (even just in SVGA mode) without vendor specific drivers. Xfree86 and then Xorg with the fb driver were attempts at doing the same but I can attest they never achieved that same universality. I had hoped EFI fb could finally give us the same for modern PCs but the chances of open source efifb drivers in userland working on a chipset/implementation they haven’t been tested against are a real crapshoot.

I had “success” (compared to the status quo, not compared to the situation on Windows) writing X drivers that wrote to the kernel framebuffer but that broke when everything was rewritten or deprecated in order to support EFI. Even then, the support for listing supported modes and changing to them was very poor (which make sense given how little serious use the kernel frame buffer sees), never mind figuring out what modes intersected with those the display supported. Laptops with integrated plus discrete graphics cards (or desktop motherboards with the same) were also problematic for various reasons.

comment 3y ago · link · parent

You could redesign the rotary dial to return to zero much, much faster with shorter pulses and smaller intervals between them given advances in high frequency signal counting.

comment 3y ago · link · parent

I thought it was just my Apple TV.

comment 3y ago · link · parent

BBC uses A/B testing for headlines, submitted title is from BBC news app but I swapped in "UK Intellectual Property Office" for some UK-specific jargon.

2022.

UK Intellectual Property Office says password sharing is criminal act(bbc.com ↗)

18 points · by ComputerGuru · 3y ago · 4 comments

comment 3y ago · link · parent

Seems… pointless? Obviously protect all of you from further injury insomuch as you can.

It seems like someone just wanted to invent another acronym.

comment 3y ago · link · parent

Yeah, FreeBSD is/was a big Forth user for its boot menu, but that’s being ported to Lua now.

comment 3y ago · link · parent

I will not disagree with you there (have an upvote on me), but (not that we can know without it being investigated) that seems to be a straightforward case of employee theft of proprietary documents and data from their employer. If so, that’s something that absolutely should be prosecuted but it’s not a case of systematic/organization corruption (although willfully declining to investigate what happened might very well be).

comment 3y ago · link · parent

Corruption is a very serious allegation and typically involves some form of quid-pro-quo (direct or indirect, tangible or non-tangible). There are contexts it likely applies, such as lobbyists and PACs getting favorable laws passed, wealthy donors getting ambassadorships, etc, but I can’t see how it applies in this case.

Are you suggesting that everyone involved from attorney generals to congressmen, senators, federal judges, and Supreme Court justices (not a one of which - including the two Trump appointees - formally registered their disagreement with the unanimous decisions/reviews or lack thereof) were, somehow, making decisions and getting something out of deciding/acting contrary to how they would have otherwise?

comment 3y ago · link · parent

Are you saying “I’m not concerned about data leaks that I could potentially be affected by and have my own personal information leaked through as much as I am about a celebrity billionaire getting their tax records released after years of litigation and after lawsuits going all the way to the Supreme Court (or others like him)?”

comment 3y ago · link · parent

I could not believe that misfeature was actual, intended behavior from upstream gtk and not some stupid MBA-minded decision made by district maintainers when I ran into that on elementaryOS 6.

comment 3y ago · link · parent

This is expired. It ran to the end of November.

comment 3y ago · link · parent

This is purely up to the schema designer or dbadmin. You can create a Postgres index specifying “using hash” to specify that the index will not contain the contents of the field, just its hash.

I’m pretty sure that still necessitates a hit to the db to prevent false hashes, but that’s going to be the case with your approach, too.

comment 3y ago · link · parent

glibc doesn't actually support statically linking. (You can force it, but it breaks things.)

comment 3y ago · link · parent

To be pedantic, DePalma says the data was with the author who had already died at the point of that claim.

comment 3y ago · link · parent

For reference, DePalma (the accused) was featured in a New Yorker article in 2019 [1] that was shared and discussed here on HN at the time [2].

(For those that didn't read this article, DePalma is accused of faking the data to match earlier findings w/ another peer to "beat her to the punch," but the initial data and the drawn conclusions are apparently still "valid".)

[1]: https://www.newyorker.com/magazine/2019/04/08/the-day-the-di...

[2]: https://news.ycombinator.com/item?id=19526679

comment 3y ago · link · parent

Apparently there is a "long-standing practice in paleontology" for researchers to pay private landowners for (exclusive) access to search for fossils on their private property - at least according to this New Yorker article [1] - and that DePalma arranged for that to further his research.

It seems that after the initial promising findings, DePalma put together (with the help of investors or benefactors?) the money for an exclusive long-term lease.

> He found many complete fish, which are rare in the Hell Creek Formation, and he figured that he could remove them intact if he worked with painstaking care. He agreed to pay the rancher a certain amount for each season that he worked there. (The specifics of the arrangement, as is standard practice in paleontology, are a closely guarded secret. The site is now under exclusive long-term lease.)

[1]: https://www.newyorker.com/magazine/2019/04/08/the-day-the-di...

comment 3y ago · link · parent

The article claims that the areas where fossils were found had winters with temperatures just above freezing, and that some evidence (fossilized young, growth patterns in bones, etc) indicates that the species lived there year-round rather than only migrating there during the warmer months.

comment 3y ago · link · parent

Yes, I considered that. I think it's a very valid possibility and likely GP's argument is applicable to the titan dinosaur species. However in the context of this article, we're discussing much smaller ("regular mammal-sized") dinosaurs living in polar conditions, where the calculus changes enough that this discussion is rather besides the point.

comment 3y ago · link · parent

Without commenting on anything else in your reply,

> Other counter evidence is that some species were just too darn big to be endothermic and at that size would have high enough internal temperatures to cook themselves.

I don’t understand. Isn’t the existence of the (obviously endothermic) blue whale enough to obviate that argument, at least on its own?

comment 3y ago · link · parent

So few displays have field/user upgradeable firmware. Dell publishes info about the latest firmware on their website, but with no downloads. You contact them and say my monitor has spotty DPMS and I see I’m a couple of firmware versions behind, how do I update? They tell you it’s not possible.

Might as well call it a hardware revision instead of a firmware version.

comment 3y ago · link · parent

But that's what's covered in the article. The "block transaction and require chip and PIN" flag is stored on the magtrack itself.

comment 3y ago · link · parent

It's a legal requirement for EU vendors but the cards themselves (or at least some of them) can still be used without 3DSecure.
1
676869
277