HNHacker News
TopNewBestAskShowJobs

rgovostes

5,986 karma · joined January 19, 2011

submissionscomments
rgovostes··on You can't parse XML with regex. Let's do it anyways
I was momentarily confused because I had commented out an importmap in my HTML with <!-- -->, and yet my Vite build product contained <script type="importmap"></script>, magically uncommented again. I tracked it down to a regex in Vite for extracting importmap tags, oblivious to the comment markers.

It is discomfiting that the JS ecosystem relies heavily on layers of source-to-source transformations, tree shaking, minimization, module format conversion, etc. We assume that these are built on spec-compliant parsers, like one would find with C compilers. Are they? Or are they built with unsound string transformations that work in 99% of cases for expediency?

rgovostes··on "DSEG": Original 7-segment and 14-segment fonts (2014)
Easter(?) egg: The 7SEGG-CHAN font appears in the preview image but is not documented on the page, other than a mathematical reference in the "Misc." section.
rgovostes··on "DSEG": Original 7-segment and 14-segment fonts (2014)
The backgrounds are achieved by having two overlapping <span> elements in different colors. If you use the font standalone, you wouldn't get the two-tone appearance.
rgovostes··on Python developers are embracing type hints
I am glad they improved this but I still like Optional[], and to a lesser extent, Union[]. It's much more readable to have Optional[str] compared to str | None.
rgovostes··on Seattle, Tech Boomtown, Grapples with a Future of Fewer Tech Jobs
> Uber driver Juan Prado made six figures in 2021, often shuttling passengers in town for job interviews and doing frequent drop-offs near downtown tech offices. Now, he said, demand is much lower. “There are moments where you can be online, and in certain areas, it shows nothing.”

"Seattle has the nation’s most expensive Uber rides" (Seattle Times). Rides to the airport have increased 50% for me in the past year, to about $75, and it's at best twice as fast as the $3 train. I doubt it's just fewer tech jobs suppressing Uber activity since 2021.

rgovostes··on Benjamin Button Reviews macOS
This is brutal.

It seems to me the Liquid Glass transition for Mac is a sacrifice for visionOS. Today, you can run iOS apps on an Apple Vision Pro, or create a virtual Mac display, but these are lesser spatial experiences: You still use a trackpad when interacting with Mac apps in Vision Pro, and you can't position their windows freely in space.

In Tahoe, hit targets are huge — toolbar buttons are 5,000 square pixels, ridiculous when using a precision pointer but maybe appropriate for eye tracking. Translucent materials make slightly more sense in augmented reality than a 2D desktop environment where no one ever complained about a lack of depth (before Apple went ultra flat and minimalist, anyway).

So despite to the apparent dud of the Apple Vision Pro as a consumer product, I doubt Apple would aggressively push a design "inspired by the depth and dimensionality of visionOS" a year and a half later without a strong reason. The recent Meta Ray-Ban Display shows the category is reaching a viable size and weight. I predict will soon see whether Apple's design gambit for spatial computing pays off or if they start to roll back towards a pointer-first UI on the Mac.

rgovostes··on Bravo Apple! Calculator app has a memory leak
There is a perfectly cromulent grammar for a unit-aware calculator:

    <expression without units> [<unit> [in <unit>]]
    <expression with units> [in <unit>]
"1+2 feet in meters" and "1 foot + 1 meter" are both unambiguous. There is no order of operations in terms of how the units bind. The expression "1 foot + 1" is appropriately invalid.

Of course the appropriate care must be paid to interpreting "in" correctly as either a unit or a keyword.

rgovostes··on Shipping 100 hardware units in under eight weeks
You mention that this is a USB HID device a few times but how are you capturing the display? Does ReplayKit broadcasting give you access? Or is the hardware also acting as an HDMI capture card or something?
rgovostes··on Bravo Apple! Calculator app has a memory leak
Many years ago, ~2009ish, a friend pointed out that Calculator.app was giving the wrong sign when raising a positive number to a negative exponent. It turned out to be a bug in CFNumber affecting virtually every app.

I noticed the other day that you can type "1+1 sq ft in sq in=" and macOS will helpfully autocomplete the answer: 1,694.0031 square inches. Which is completely wrong. 2 square feet is 288 square inches. It took a few minutes to solve the puzzle of what the hell it is doing.

So take caution trusting Apple's math, which naturally is up to 2x better³—for some value of x.

rgovostes··on Meta’s live demo fails; “AI” recording plays before the actor takes the steps
A reference to the 2010 iPhone 4 demo perhaps: https://www.infoworld.com/article/2297843/steve-jobs-wi-fi-m...
rgovostes··on Ton Roosendaal to step down as Blender chairman and CEO
Can you elaborate on how Blender exemplifies “the way science should do software”? Are you talking specifically about some aspect like community governance, user experience, code quality, etc.?
rgovostes··on About the security content of iOS 15.8.5 and iPadOS 15.8.5
I am out of date on the latest from the jailbreak scene, but checkra1n supports the device up to iOS 14. If you updated to iOS 15, there may not be a full jailbreak, but not all is lost.

The latest release of Xcode, Xcode 26, still allows you to build apps for iOS 15. At some point you will have the secondary problem of needing an older Xcode which only runs on an older macOS, though Apple has been doing the minimum to make it possible to acquire both of these.

With a free Apple Developer account, you can sign and side load your apps, but they expire every 7 days, and you wouldn't be able to add any restricted entitlements. But the TrollStore exploit (https://github.com/opa334/TrollStore), which I cannot vouch for, seems to work around these limits.

So: It seems like if you are the kind of person who keeps disposable vapes to reprogram the microcontrollers, the iPhone 6S should actually be an attractive device worth keeping:

- Runs an operating system released in September 2021 and received regular bug fixes and security updates through July 2024. Still receives occasional security updates as of September 2025. Not completely end-of-life.

- Supported by the latest developer tools, probably through June 2026, with older downloads available (https://xcodereleases.com/).

- Known jailbreaks and exploits to maximize utility.

It's not surprising that the trade-in value for a 10-year-old device is nil, but on the secondary market they fetch about $60 (https://swappa.com/prices/apple-iphone-6s) which is not bad if you consider the device capabilities compared to most hobbyist devkits.

rgovostes··on I replaced Animal Crossing's dialogue with a live LLM by hacking GameCube memory
Many years ago there was a project in which researchers swapped localization strings to turn The Sims and Grim Fandango into language practice experiences. Generative dialog that is contextual and skill-appropriate dialog could also be a killer application for language practice.
rgovostes··on [dead]
LLM slop, in addition to not being a convincing argument.

There is a vast space of PWAs that could be implemented without Bluetooth APIs, push notifications, or rotation lock.

But iOS has had “Add to Home Screen” since 2007, longer than the App Store has existed, and to a first approximation zero developers have ever opted to ship apps this way, even as Apple did make occasional improvements, like the Web Push API and metadata tags for app icons.

I guess it’s that two-tap process to install the app?

rgovostes··on Areal, Are.na's new typeface
I've considered using one of Dinamo's fonts, Diatype, but I can't bring myself to license each font weight for €140, double that if you want italics. Wait are you building a web app, distinct from website, using desktop tools like Figma? Triple it. (Just one domain, right?) Your company employs 50 people? Double it again. We're up over €13,000 for one typeface but it's yours, with a generous bundle discount, for just €4,662. Now can they interest you in Mono, Semi-Mono, Compressed, Mono Compressed, Semi-Mono Compressed, Condensed, Mono Condensed, Semi-Mono Condensed, Extended, Expanded, Rounded, Rounded Mono, Rounded Semi-Mono...
rgovostes··on Xz format inadequate for general use
Nonetheless, xz has the best sshd integration.
rgovostes··on macOS 26 Tahoe's Dead Canary Utility App Icons
Apple enthusiasts like John Gruber believe in an ideal Apple. (See his reference to the Founder's "backs of the cabinets" quote.) The real company is distinct from this ideal. Believers support the company's actions so long as they can be plausibly squared with the ideal. But when the company strays—by phoning in design, or being stingy (iCloud's 5 GB free tier)—they respond with equally vocal criticism.
rgovostes··on Ask HN: Best codebases to study to learn software design?
These are several years old at this point, but many open source project leaders contributed to the series "The Architecture of Open Source Applications", which is free to read online: https://aosabook.org/en/index.html
rgovostes··on Calling Their Bluff
I wonder how many people have paid for International Drivers Permits from scam websites. In the US these are only issued by AAA, and until recently they were only available by mail or in person, creating an opening for grifters to sell print-at-home PDFs.

(The concept seems outdated, and I've successfully rented cars abroad without an IDP at all. Also, isn't it weird that authority to issue these is delegated to AAA, and them only?)

rgovostes··on The secret code behind the CIA's Kryptos puzzle is up for sale
I've spent a fair amount of time on K4, and my conclusion is that it's simply a poor puzzle. At this point 24 of 97 characters have been revealed, and yet there's seemingly still not enough information pointing to how the known plaintext corresponds to the ciphertext. Over the decades everything reasonable has been tried and eliminated, which means the solution is likely to be unreasonable.
rgovostes··on Fire hazard of WHY2025 badge due to 18650 Li-Ion cells
Conference badges are basically insta-e-waste too.
rgovostes··on "This question has been retired"
Hi, I’m an Independent Advisor. It sounds like you expected Microsoft community support to be a valuable resource for answers to your technical problems. I can understand how frustrating that would be. At this point, the most reliable solution is to perform a clean reinstall of Windows.
rgovostes··on Spotting base64 encoded JSON, certificates, and private keys
There is a Base64 quasi-fixed point:

    $ echo -n Vm0 | base64
    Vm0w
It can be extended indefinitely one character at a time, but there will always be some suffix.
rgovostes··on OpenAI's "Study Mode" and the risks of flattery
Out of curiosity, was it James Tailor in Bangkok? I was whisked there on my last day by my hired guide while she stopped for an “errand”. It struck me as a preposterous hustle, but now I’m curious if this is a common ploy.
rgovostes··on Apple Is Selling iPad Repair Parts for Astronomical Prices
Third-party vendors are selling parts harvested from damaged, used devices. Apple’s prices do seem astronomical, but the comparison isn’t Apple’s to apples.

Also, how do these prices compare to what Apple charges for an out of warranty repair? If it’s the same, there’s no story. https://www.simplymac.com/ipad/how-much-does-it-cost-to-fix-...

rgovostes··on Show HN: Self-updating MCP server for official pip, uv, poetry and conda docs
> Docker `:latest` tag guarantees you always get current docs without manual updates.

The docs should probably be pinned to the version of the tool you have installed. Aside from that, pinning to a specific container hash (not tag) allows you to audit it and trust that malicious instructions haven’t been introduced into the docs.

rgovostes··on Beyond Meat fights for survival
When Impossible was new and only available in burger format at a small number of partner restaurants, I ventured out to SF to try two of them. I concluded that it can make for a genuinely convincing substitute, but the key is preparing it with a sleight of hand to misdirect from the noticeable imitation texture and flavor. Those early burgers were made with thin patties, with flavorful burger sauces and toppings.

As Impossible expanded beyond their launch partners, they lost their control over the consumer experience. I think many restaurants now serve wretched Impossible Burgers because they just substitute a beef patty and don't try to accommodate the differences.

If you are savoring it as part of a taste test, it will never fool you; the first impression isn't the takeaway. If beef is not the focal point of the dish, as in their Impossible Mapo Tofu recipe (https://impossiblefoods.com/recipes/impossible-mapo-tofu) or a chili or something, it can slot in pretty well. They are nowhere near substitutes for ribeye steak or smoked brisket.

rgovostes··on GH Killing Command Palette for "low usage"
I use GitHub every day and follow news about the company but I’ve never heard of this.

https://docs.github.com/en/get-started/accessibility/github-...

rgovostes··on Apple's Browser Engine Ban Persists, Even Under the DMA
On my Mac, Google Chrome takes 1.8 GB. I would be pretty sore if I had to download that on cellular while trying to hail a cab in a foreign country because the app requires something like the Battery Status API in order to extract a surcharge because my battery is at 2%.
rgovostes··on Apple's Browser Engine Ban Persists, Even Under the DMA
So these web apps will prompt the user to install and configure a third-party browser engine?
← PreviousPage 4 of 31Next →