HNHacker News
TopNewBestAskShowJobs

iforgotpassword

8,465 karma · joined November 4, 2017

submissionscomments
iforgotpassword··on Parallel ./configure
The other issue is that people seem to just copy configure/autotools scripts over from older or other projects because either they are lazy or don't understand them enough to do it themselves. The result is that even with relatively modern code bases that only target something like x86, arm and maybe mips and only gcc/clang, you still get checks for the size of an int, or which header is needed for printf, or whether long long exists.... And then the entire code base never checks the generated macros in a single place, uses int64_t and never checks for stint.h in the configure script...
iforgotpassword··on Exercise before bed is linked with disrupted sleep
I'm really weird when it comes to exercise it seems... Doing intense exercise right before bed gets me into a really relaxed state and I fall asleep quickly. Like, doing push-ups and sit-ups for 10 minutes straight.

I don't run that often anymore, maybe twice a month, but I can only do it in the afternoon or evening. If I go in the morning, I feel very tired so I really have to force myself to keep going, and then after 15-20 minutes, my heart rate settles at close to 190bpm (compared to ~175 in the evening) which to my understanding is way too high for someone in their early 40s.

iforgotpassword··on AMD Publishes Open-Source Driver for GPU Virtualization, Radeon "In the Roadmap"
> Because it's like 2-4 times cheaper than to go nvidia?..

That still makes nvidia way cheaper compared to the time wasted getting that shit to run plus debug an unknown amount of issues down the road. I told my boss "look I wasted two days on this and it's barely working, I could've done actual work here". Two other colleagues poked at it some more without success. going Nvidia was a no-brainer then.

iforgotpassword··on Some __nonstring__ Turbulence
I think the idea is simply to

  typedef __nostring__ char* bytes;
And then use that type instead of annotating every single variable declaration.
iforgotpassword··on AMD Publishes Open-Source Driver for GPU Virtualization, Radeon "In the Roadmap"
But why do you even have to do this fucking bullshit that you randomly stumble upon, while googling error message after error message, ending up in random github repos and issues?

And no, just because the three random cards you have work doesn't mean "everything works". Just tried an MI300A a few months ago... I just wanted to test ollama as this is one of the hottest applications for GPU acceleration now, it will surely be well supported right? First, the gfx version listed for it in the ollama docs is wrong - but OK, figured it out. Then Tried some random models with it, the only output it ever generates is GGGGGGGGGGGGG. Apparently only fp16 models work, nothing more quantized. So I pick one explicitly. Then it's slower than running on the cpu in the same system.

Thanks but no thanks; this cost me two days when Nvidia just works first try.

iforgotpassword··on Mark Zuckerberg says social media is over
Yes, that's why they should have made them work properly.

Simply put the main problem was that those old IMs required a persistent connection to the server when you "just" had to add a new protocol that can do session resumption/polling. Then make a pretty mobile UI and make it possible to find other users by phone number - imo this was the number one reason why WhatsApp and iMessage won. It's an app on your phone, so it uses your phone number, not another artificial number or name or mail address - it's something the most tech illiterate gets. Because then it's just "SMS but with groups and photos". But you could have allowed to merge it with your existing account from desktop times, so all the young hip people would've kept all their contacts.

iforgotpassword··on How a 20 year old bug in GTA San Andreas surfaced in Windows 11 24H2
He has stories on his blog about windows 2 iirc, so there was an overlap from a time where they were still relatively small. So I think it's a bit odd they never talked or met.
iforgotpassword··on Cursor IDE support hallucinates lockout policy, causes user cancellations
> It sometimes takes a lot of time but I read everything. It still faster than nothing.

Opposite experience for me. It reliably fails at more involved tasks so that I don't even try anymore. Smaller tasks that are around a hundred lines maybe take me longer to review that I can just do it myself, even though it's mundane and boring.

The only time I found it useful is if I'm unfamiliar with a language or framework, where I'd have to spend a lot of time looking up how to do stuff, understand class structures etc. Then I just ask the AI and have to slowly step through everything anyways, but at least there's all the classes and methods that are relevant to my goal and I get to learn along the way.

iforgotpassword··on Ask HN: Why hasn’t AMD made a viable CUDA alternative?
What I don't get is why they don't at least assign a dev or two to make the poster child of this work: llama.cpp

It's the first thing anyone tries when trying to dabble in AI or compute on the gpu, yet it's a clusterfuck to get to work. A few blessed cards work, with proper drivers and kernel; others just crash, perform horribly slow, or output GGGGGGGGGGGGGG to every input (I'm not making this up!) Then you LOL, dump it and go buy nvidia et voila, stuff works first try.

iforgotpassword··on The Pragmatic Open Source Contributor
libgd, the graphics backend of php. It's an ancient pile of shit yet the "maintainers" refuse An help, contributions and improvement as good as they can. The most popular example is emoji support on their text rendering. Questions on SO, bug reports to libgd and php go back at least 10 years, yet no interest by the devs to either fix it or accept any help in doing so.

A couple years ago I started investigating and it starts with the fact that their utf8 decoder accepts no more than 3 bytes per character, thanks to an ifdef. There's code to handle 4, so you change the ifdef and then it doesn't compile anymore because code rot. Fixing that you see the correct code points going into freetype but then something else I forgot about breaks. Then I saw there were already a couple patches on the mailing list and checking their github just now I see at least one PR with a bunch of back and forth and another couple issues with mostly no reaction or at best a few lame excuses.

If you could donate negative money to a project this would be a prime candidate. Sure, move fast and break things is bad, but this is the opposite of that, and not good either.

iforgotpassword··on Why a plane turned around when a passenger lost a phone midflight
Interesting, at the airport I always see general "no (devices with) batteries in checked luggage" signs.

One time I had an old phone with battery removed in checked luggage and when I arrived at my destination, I saw they fiddled with the tsa lock and the phone was taken out of the envelope I had it in and just lying on top of my clothes. I mean maybe they saw it in an xray and wanted to steal it and then saw it was some old junk phone, no idea how good the xrays come out to tell beforehand whether you're dealing with an iPhone or 7 year old android midrange...

iforgotpassword··on Xfinity XB3 hardware mod: Disable WiFi and save 2 watts
This was the norm in Germany for a while. Then we got a law ("Routerfreiheit") that forces ISPs to allow you to use and modem/router you want. Before that you couldn't do it with DOCSIS, but it kinda worked with DSL, if you could somehow get the PPPoE credentials.

Nowadays they have to provide PPPoE and voip credentials, and cable providers need to provide a service where you give them the Mac of your own modem and then it gets tied to your contract.

iforgotpassword··on Win98-quickinstall: A framework and installer to quickly install Windows 98
That's not their point? Linux has all the drivers lying around on disk and on every boot just does hw detection and loads the appropriate ones. It takes a few seconds. You can take a Linux install from a modern AMD system, stuff it into a 10 year old Intel system and it will boot up instantly. No driver install no "getting your devices ready" screen that shows up for a minute or two.

This has nothing to do with being open source or being customizable. It's simply pointing out how fast hw detection is not only possible but the norm on other systems.

iforgotpassword··on Win98-quickinstall: A framework and installer to quickly install Windows 98
> with a custom data packing method that is optimized for streaming directly from CD to the hard disk without any seeking

This is nice. I've always wondered why they don't do this with the core parts of the os and then only extract additional components and drivers. But maybe back then the core was only a few MB and it wouldn't have helped so much...

I remember the setup taking ages. With 9x I don't think any install ever lasted longer than a year, so I did this a lot. :)

iforgotpassword··on Span<T>.SequenceEquals is faster than memcmp
I don't think it's clickbait. Even though the title doesn't mention C# or .net explicitly it seems clear from that Span<> stuff that this is talking about some higher level language...
iforgotpassword··on IronRDP: a Rust implementation of Microsoft's RDP protocol
How about spice? I don't know anything about the technical details, but it seems to offer most of the advanced features like usb redirect and I think currently gets video support. It's currently really only used in qemu but I don't see a reason why you can't use it as a general open rdp alternative.
iforgotpassword··on That Time I Recreated Photoshop in C++
I think most people will agree that ui is the hardest part for normal desktop software. Not getting any kind of ui going, but good ui. Consistency, how to group things, what goes where.

If your app needs two inputs and a button then this won't be so much of an issue, but I've wrestled with qt in the past for more complex layouts that I hate it with a passion.

iforgotpassword··on Recursion kills: The story behind CVE-2024-8176 in libexpat
Sure if it's indirect I agree it will get messy fast with a dozen functions suddenly needing to handle an additional parameter, but unrelated to that... I'd really like to know who needs recursion for this that's deeper than 3 or 4 levels. What's the use case? Such xml surely would be unreadable and unwritable to humans, but if it's used as some form of exchange format between systems, what would that be? How would it end up with such deeply nested entities? It sounds like something you deliberately implement that way to show how "smart" you are, but not "hey that seems the reasonable thing to do here".

This makes me wonder: does any of the popular xml libs have a sort of safe mode, where custom entities and similar features are disabled, those schema urls ignored, and namespaces just flattened (and whatever else I forgot or don't even know about)? You know for when I know I only need to parse simple xml files that should contain a couple plain tags and attributes, and want to reduce attack surface.

iforgotpassword··on Firmware update bricks HP printers, makes them unable to use HP cartridges
You also never know what's in the original firmware, so why trust it more than the update, security-wise?
iforgotpassword··on uBlock Origin is no longer available on the Chrome Store
I don't remember when I tried it for the first time, but I did like it much better than the new opera. At least they were adding new features much faster. It was still different enough and lacking (to me) important features from the old opera. I still have it installed today as the fallback for the exceedingly rare case that some site doesn't work in Firefox and I really need to access it. But I have to admit that I didn't really bother to evaluate it properly in a long time. An ex colleague doing webdev just recently told me it's his primary browser as it has some nice things to make his life easier that were just more cumbersome to set up in chrome. I just gave up and accepted that at least by using Firefox I'm fighting the engine-monopoly of chrome/blink. ;)
iforgotpassword··on YouTube DRM added on ALL videos with TV (TVHTML5) clients
In the long run most likely yes :(

The door is closing slowly. Great timing with the whole manifest v3 switchover...

iforgotpassword··on uBlock Origin is no longer available on the Chrome Store
Well, today mostly yes. But at the same time, I've been an Opera user (if not fanboy) for a good decade, until they ditched their own engine and basically started from scratch with chrome as a base. It lost 99% of its features overnight.

I really struggled to switch to anything else. Firefox was definitely the most customizable, but finding extensions to replicate every feature of Opera, and properly at that, was a never-ending nightmare.

Only at that point did I realize how vital a browser has become for everyday tasks, and as a power user, how much you get accustomed to it. Maybe not if you're just running stock Chrome or Firefox with two extensions, but Opera was so feature-rich that I didn't ever install a single extension but needed about a dozen on Firefox to try and mimic it. In the end I just stayed on Opera 12 until it wasn't even funny anymore. It must've been about two years. Eventually so many sites broke that I just switched to Firefox and only installed uBO and greasemonkey. It hurt but over time I just gradually forgot what using opera was like. Sometimes I think back and really miss it. Some of it is just nostalgia by now, but the struggle switching was real.

iforgotpassword··on Google begins testing AI-only search results
And it will catch on. Everyone here knows LLMs are not a search engine, yet the average Joe treats chatgpt et al like it is. Just a few days ago I was talking to a relative (70yo) and we were arguing about whether the pool at a bathhouse in a smaller town nearby was 25 or 50m. Their website didn't say, and some quick googling didn't reveal anything. So he quickly opened the chatgpt app and a second later told me proudly that it was 50m so he was right. I didn't even try to explain to him how it can't possibly know.

Now, Google would obviously not just run a plain old LLM that was trained on their index but give it access to live data, but the same thing will still happen. People won't even be able to think they have a chance to check multiple results and question the validity. Whatever the AI spits out is the truth.

iforgotpassword··on Anime fans stumbled upon a mathematical proof
Because why would you think this is of any relevance? You're making some estimate and go like "welp I guess that's good enough" and assume that there must be a proper mathematical approach to this.
iforgotpassword··on Hacking the Xbox 360 Hypervisor Part 2: The Bad Update Exploit
360 emulation was already quite good a year ago, now there's even an experimental fork of xenon that does recompilation for even more performance.
iforgotpassword··on Half-Life
I also found it very weird back then.
iforgotpassword··on FFmpeg School of Assembly Language
That's for random "I know asm so it must be faster".

If you know it really well, have already optimized everything on an algorithmic level and have code that can benefit from simd, 10x is real.

iforgotpassword··on 'The tyranny of apps': those without smartphones are unfairly penalised
Also because ticking boxes. You just provide an app that fulfills all the silly security requirements for banking apps and then if something goes wrong, the customer has the burden of proving it's the banks fault.

I've had my banking app installed on an old Samsung phone running lineageos. I only powered it on when I had to do online banking. At some point I needed to update the app and they started checking for rooted devices, so it wouldn't work anymore. Now I've installed it on a much newer android device that I also use for a lot of other crap and sketchy stuff I don't want on my main phone. Also it's powered on all the time. Whether that's really more secure than what I did before is questionable.

iforgotpassword··on Debugging Hetzner: Uncovering failures with powerstat, sensors, and dmidecode
I once had a dell laptop that after about three years started complaining on power up that I wouldn't be using a genuine dell PSU and should switch to one. I ignored it at first because you could just hit enter and carry on, but after a while I noticed that every time this happened, the cpu would clock at a fixed 800mhz. I ordered a new power brick but the message didn't go away, so I returned the brick and decided to never buy dell again.
iforgotpassword··on Did the Windows 95 setup team forget that MS-DOS can do graphics?
If we're making compromises anyways we could just do text mode right away and move as much as possible to the final stage. NT managed to do so just fine until Vista, including the home-user targeting XP.
← PreviousPage 3 of 34Next →