MurphyA/hacker-news huggingface dataset:
by gjsman-1000 | 2025-05-04 17:12:13+00:00
Close; but the security still isn’t anywhere close.

On Alpine, if there’s a zero day in WebKit, you’d better check how your security is set up, and hope there’s not an escalation chain.

On Horizon, dozens of bugs in WebKit, the Broadcom Bluetooth stack, and the games have been found; they are still found regularly. They are also boring and completely useless, because the sandboxing is so tight.

You also can’t update Alpine in 5 seconds flat, even between a dozen major versions. That alone is amazing.
by butz | 2025-05-04 17:12:22+00:00
If you are space concious, you should try to select Flatpak apps that are using the same runtime (Freedesktop, GNOME or KDE), and make sure all of them are using exactly the same version of runtime. Correct me if I'm wrong, but only two versions of Flatpak runtimes are supported at a time - current and previous. So during times when transitioning happens to newer runtime, some application upgrades are not done at once, and user ends up using more than one (and sometimes more than two) runtimes. In addition to higher disk space usage, one must account for usual updates too. The more programs and runtimes you have, more updates to download. Good thing, at least updates are partial.
by notahacker | 2025-05-04 17:12:57+00:00
> You want elites to decide what the important issues are and propose solutions, and voting to be limited to picking between those approved worldviews.

I'm not sure the OP said anything that implied they wanted this, but on the other hand it's unambiguously true that many politicians characterised as "populist" do want this upon getting into power. It's just that their justification for interfering with court cases or removing elected officials who disagree with them or banning opposition altogether is "they represent the elites/immigrants/Jews but I am on your side", which distinguishes them from people justifying similar actions on the basis of national identity or religion or divine right or technocracy...
by t-writescode | 2025-05-04 17:13:05+00:00
To build reusable components, I end up using a mix of a lot of extension functions and Kotlin's function pointer syntax.

So, the components themselves will look something like this:

fun HtmlBlockTag.radioButtonWithLabel( groupName: String, id: String, hidden: Boolean = false, radioButtonFunc: (INPUT.() -> Unit)? = null, func: LABEL.() -> Unit ) { radioInput(name=groupName) { this.id = id this.hidden = hidden radioButtonFunc?.invoke(this) } label { this.htmlFor = id; func() } }

And then use of them will be like this:

call.respondHtml { body { div(CSS_CLASS_NAME) { radioButtonWIthLabel(MORE_CSS_CLASS_NAME, "group", "id") { +"Text for the label" } } } }

More complicated examples just extend that quite a lot.

I've also got whole files dedicated to single extension functions that end up being a whole section that I can place anywhere.

---

And then to test those single-function components, I'll do something like this:

class SingleSectionTest { private suspend fun ApplicationTestBuilder.buildApplicationAndCall( data: DataUsedForSection ): Document { application { routing { get("test") { call.respondHtml { body { renderSingleSection(data) } } } } } val response = client.get("test") val body = Jsoup.parse(response.bodyAsText()) return body; } @Test fun `simple test case`() = testApplication { val data = DataUsedForSection("a", "b", "c") val body = buildApplicationAndCall(data) // all the asserts } }

And so on. Is this what you were wondering? Or would you like a different sort of example?
by PaulDavisThe1st | 2025-05-04 17:13:28+00:00
If a suitably-sized majority wants to amend the constitution (where "suitably sized" is defined by the constitutional amendment process), they can go ahead, always. That's why to some degree this is just pushing the issue of "tyranny of the majority" out one level - but that doesn't mean it is not worthwhile.

On the other hand, electing leaders who simply decide to not follow the constitution (perhaps because they believe they have "a majority" at their backs, or perhaps not) is something entirely different.
by kbolino | 2025-05-04 17:13:29+00:00
Apart from the Microsoft Visual C++ Runtime, there's not much in the way of third-party dependencies that you as a developer would want to pull in from there. Winget is great for installing lots of self-contained software that you as an end user want to keep up to date. But it doesn't really provide a curated ecosystem of compatible dependencies in the way that the usual Linux distribution does.
by dredmorbius | 2025-05-04 17:13:52+00:00
It's pretty well understood (and was at the time) that the project was aimed at collecting voice sample data for further voice-recognition and AI work:

"Google Shuts Down GOOG-411" (October 9, 2010)

The service has helped Google build a large database of voice samples and improved the voice recognition technology. Here's what Google's Marissa Mayer said about GOOG-411:

"The speech recognition experts that we have say: If you want us to build a really robust speech model, we need a lot of phonemes, which is a syllable as spoken by a particular voice with a particular intonation. So we need a lot of people talking, saying things so that we can ultimately train off of that. ... So 1-800-GOOG-411 is about that: Getting a bunch of different speech samples so that when you call up or we're trying to get the voice out of video, we can do it with high accuracy."

<https://googlesystem.blogspot.com/2010/10/google-shuts-down-...>

""The 411 Parable": Make sure you are playing the same game." (2011)

But just when the "head-to-head" competition was rolling Google announced GOOG-411 was no more... they'd captured all the human speech they needed to train their algorithms and were on to bigger and better things... Huh, voice recognition... algorithms?

<https://web.archive.org/web/20130810032940/http://buildconte...>

Not that the sudden death didn't kill what was at the time a useful service, and squander goodwill in the process.
by emorning3 | 2025-05-04 17:13:52+00:00
>> In this case we build a model with 1T index which we lookup for every token to make prediction with much smaller model. <<

This index seems to be used to minimize the size of models.

I'm familiar with term indexing as described in The Handbook of Automated Reasoning and I imagine that this index helps them recognize 'generalizations'.

In the way that a rewrite rule can be used to reduce an infinite number of expressions, not just a single expression, a generalization can be used to minimize models.

Generally, such an index would be some kind of prefix-tree.

Just a guess, guessing is fun
by yorwba | 2025-05-04 17:13:56+00:00
It has this note at the bottom:

"Note that I chose an unusually long chart to exemplify an extreme case of aspect ratio stretching. Still, 512px² is enough.

This is two_col_40643 from ChartQA validation set. Original resolution: 800x1556."

But yeah, ultimately which resolution you need depends on the image content, and if you need to squeeze out every bit of accuracy, processing at the original resolution is unavoidable.
by Brian_K_White | 2025-05-04 17:14:26+00:00
Everyone else is not wrong, and I did not say they were, and so any argument you try based on that is already voided nonsense before you start.

Some people are wrong. It's easy to say that because it has always been true for everything in the world. This topic is no different.

If you want to suggest that you are not wrong, or that I am, you have to present an argument that holds water for that, not anything else.

No one owes anyone a business selling OSS, not even the author of said OSS. If you write something that you want to make money selling, then you are not interested in participating in OSS. That's it. Full stop.

Sell your software honestly.

"But I can't if it's not..." So what? Ok then don't sell it. It's no one else's problem that you have a misguided notion of why OSS exists and what it is good for and why one should spend any time or effort contributing to it.

All the other wailing and crying stems from bullshit you never had any right to in the first place. Not just legally or technically but morally and common-sensely.
by simianwords | 2025-05-04 17:15:09+00:00
that's fair - i have some app ideas for which i would like control over prefix caching. for example you may want to prompt cache entire chunks of enterprise data that don't change too often. the whole RAG application would be built over this concept - paying per hour for caching is sensible here.

>With OpenAI I don't have to do any planning or optimistic guessing at all: if my app gets a spike in traffic the caching kicks in automatically and saves me money.

i think these are completely different use cases. is this not different just from having a redis sitting in front of the LLM provider?

fundamentally i feel like prompt caching is something i want to control and not have happen automatically; i want to use information i have over my (future) access patterns to save costs. for instance i might prompt cache a whole PDF and ask multiple questions. if i choose to prompt cache the PDF, i can save a non trivial amount of tokens processed. how can OpenAI's automatic approach help me here?
by spongebobstoes | 2025-05-04 17:15:28+00:00
Respectfully, I think your reply assumes that I am suggesting the only AI interface must be on the phone.

It should be everywhere, as a first line of customer service. Even once talking to a person, real-time translation is necessary -- it's not possible to staff enough skilled employees in every language on earth.

I'd like to call out that "I can't log in" is the most common problem with Facebook, by a wide margin. HN user anecdotes are just not useful when assessing the scope of this problem.

I'd also like to call out that many people (usually not English speaking) nearly exclusively use voice memos and phone calls, and rarely type anything at all.

I think it is clear that AI will enable better customer service from Facebook. Without AI, a FB call center is clearly impossible. With AI, perhaps it begins to look feasible.
by philjohnson | 2025-05-04 17:15:55+00:00
This is a great idea. I was actually just suggesting PWA with opt-in updates in another comment I was just replying to, so it's affirming to hear someone else suggest it as well. Love the changelog piece.

Now the question is if people would be willing to pay. Perhaps it could be a nominal one-time payment to get the PWA and updates for up to a limited amount of time, or monthly amount to get updates indefinitely.

And maybe the URL accessed web version stays free with the core features, and PWA has benefits of both offline and some extra features.

Would you be willing to pay for something like this?
by wk_end | 2025-05-04 17:16:01+00:00
We can't build something quite like that because we demand a whole lot more from our general-purpose computing devices than we demand from our Switches.

For instance, the Switch - and I don't know where in the stack this limitation lies - won't even let you run multiple programs that use the network. You can't, say, download a new game while playing another one that happens to have online connectivity - even if you aren't using it!

On a computer, we want to be able to run dozens of programs at the same time, freely and seamlessly; we want them to be able to interoperate: share data, resources, libraries, you name it; we want support for a vast array of hardware and peripherals. And on and on.

A Switch, fundamentally, is a device that plays games. Simpler requirements leads to simpler software.
by account-5 | 2025-05-04 17:16:20+00:00
I'm replying to myself in reply to everyone who replied to me.

Thanks all for the explanations, much appreciated, I thought I was missing something. I really should have known though, Ive been using portable apps for over 20 years on windows and remember.net apps not being considered portable way back when, which are now considered portable since the run time is on all modern windows.
by trbndev | 2025-05-04 17:16:26+00:00
routr is a lightweight, offline search router inspired by DuckDuckGo's bangs. It's fully browser-based (no server requests needed other than the initial one) and routes queries like `!gh tokio` to GitHub, `!yt` to YouTube, `!hn` to Hacker News, etc.

What sets it apart:

- Runs entirely locally (no network, no tracking)

- Lets you define your own bangs and destinations

- Optionally rewrites queries for better precision (with AI)

Example:

Typing `article about german war in the stone age !!g` becomes: `site:en.wikipedia.org "german" AND "war" AND "stone age"`

More on query rewriting and performance:

https://tl128n.github.io/writings/2025-05-02_optimizing_sear...
by mrangle | 2025-05-04 17:16:49+00:00
I'm speaking about an environment that passively allows truth by default, because of truly free speech. Something that works simply, and that people can simply understand. Which is a prerequisite for democracy.

You're arguing for active assurance of truth, assumedly forced on people, which isn't possible in principle. While using pseudo-intellectual refences to Foucault and the scientific method in an attempt to slyly imply that, in the end, truth has to be defined by your party interests.

I argue for freedom of individual choice, which is the fundamental democratic principle. You're arguing for the need for society wide consensus in belief, which is not a democratic principle.

Does a willingness to engage with the historical definition of how a true answer "would be arrived at" include the functional banning of future science and debate?

For the record, I wrote a graduate paper on the best evidence for the cause of autism. Not that the then-current best evidence definitely revealed the cause, but only that it was the best evidence at the time. Although the evidence did not point to vaccines, I would hold anyone who wanted to ban such debate as being too academically compromised to be a member of the scientific community. In private, I would be more direct.
by charles_f | 2025-05-04 17:17:09+00:00
I once worked on a public sector project as a consultant, spent a year doing studies for similar projects that had been done elsewhere, resulted in a document presenting a budget and timeline with options that I presented to their board of elected officials. They wanted the number and timeline to be half of what we showed, and scope unchanged.

I opened my mouth to argue, my partner at the time cut me short "we'll see what's possible".

We spent the next couple months massaging numbers under his supervision removing all contingency, selecting the most optimistic paths and assumptions, and plain lowering numbers. Until, for all intents and purposes, our document was the same but showing the numbers they wanted with out signature at the bottom.

They were very happy with our work. They're elected officials you see, they are concerned with re-election and appearing to behave reasonably with money. I got a promotion out of it.

The project ended costing 30% more than what we initially planned and took 30% more than our estimate.
by RKFADU_UOFCCLEL | 2025-05-04 17:17:20+00:00
I tested in Tor Browser at standard security level and it's blank except the thumbnails on the left show fine, so just a minor glitch somewhere is breaking it. I presume it doesn't support TOC then, which is a shame. On the upside, the signature feature is well appreciated, something sorely missing from most other PDF editors.
by em-bee | 2025-05-04 17:17:23+00:00
what can string interpolation do that i can't also do by sandwiching a variable between strings: 'string1'$var'string2'?

string interpolation is useful where concatenating strings requires an operator, but i don't see the benefit otherwise.

for more complex examples i can use printf, or someone could write a function that does string interpolation. since there is no need to fork, that should not be that expensive
by gjsman-1000 | 2025-05-04 17:17:43+00:00
This isn’t actually true, as you can use the Nintendo Switch Online app, or the eShop, while downloading games.

You just can’t play games at the same time one is downloading. That’s a deliberate storage speed and network use optimization than a software limitation. You can also tell this by the notifications about online players from the system, even as you are playing an online game.

(Edit for posting too fast: The Switch does have a web browser, full WebKit even, which is used for the eShop and for logging in to captive portal Wi-Fi. Exploits are found occasionally, but the sandboxing has so far rendered these exploits mostly useless. Personally, I support this, as then Nintendo doesn’t have to worry about website parental controls.)
by jchw | 2025-05-04 17:17:55+00:00
You know, I thought UEFI actually was doing the same thing, but I am mistaken, at least for anything resembling modern UEFI.

Apparently, modern UEFI just doesn't bother supporting classic Video BIOS option ROMs at all, only supporting UEFI option ROMs. Then for those... you either need to hope your GPU has one for your host CPU architecture, or you can use X86EmulatorDxe, a Qemu-based LGPL module that can run AMD64 drivers on AArch64, which hasn't been updated in a few years, or Intel's MultiArchUefiPkg, a more modern solution using Unicorn Engine that supports both AArch64 and RISC-V. Which is also LGPL, but.. Unicorn Engine itself is GPL, which is obviously a potential licensing issue for any would-be users. And, Intel archived it (probably alongside tons of their other open source projects) earlier this year, so it is no longer being maintained by them. Or, finally, you can have an option ROM containing machine-independent EFI Byte Code... which is no longer required by the UEFI spec, was never really used (apparently, the primary toolchain was a proprietary Intel C compiler that is no longer updated.) So who knows how many UEFI implementations still support it. It was removed from EDK2 in 2023, so presumably newer firmwares won't handle it at all.

I'm sure most people don't care about the trainwreck that is UEFI, but I found this tangent to be surprisingly interesting. At this point, treating AMD64 as a lingua franca of PC-based computers might just be the best way forward rather than trying to invent virtual machines. If they wanted to go the VM route, they should've committed fully and only supported OpROMs that were architecture-independent from the gitgo.

All of this just so we can initialize the video card and display some messages at boot, huh.
by fuzzfactor | 2025-05-04 17:17:58+00:00
When I'm on the move I'll power up a PC without sitting down and come back to it later, but never "wander off" if I'm already sitting there since it only takes about 20 seconds to cold boot, 5 seconds of which is intentional delay in case I want to choose something other than my default OS from the bootmenu.

I say it is really nice not to have any problems with the boot process myself.
by variaga | 2025-05-04 17:19:12+00:00
The product in the article I think it said came from 2006? Not based on the chips I worked on, anyway.

Just like early wifi, there were several companies working on wireless usb chips at the time, and performance could vary a lot depending on who's product you bought, and when.

Here's an article about us I found from 2008.

https://www.eetimes.com/staccato-communications-ultra-wideba...

The "ripcord 2" chips (mentioned) definitely could do 480Mbps at short range. I worked on the design of the next generation after that (equal performance, but lower-cost/lower-power-consumption), which never made it to the commercial market.

"What happened" was the combination of the product/ market mismatch I mentioned above (like, the wireless laptop dock was cool for a demo, but it didn't charge your laptop battery like a regular wired dock would, so it wasn't actually practical for daily use) so we didn't have enough revenue to self- sustain, and the "great recession" meant investment dried up and we eventually just ran out of money.

Staccato merged with a different wireless usb startup to try to delay the inevitable, and then tried to "pivot" to something profoundly stupid and I bailed at that point. (They did an internal demo of the new "product". It was maybe the worst tech demo I've ever seen. I was out 2 weeks later. I think the company dragged on for maybe another year.)
by GloriousCow | 2025-05-04 17:19:14+00:00
MartyPC brings cycle-accurate IBM PC emulation to your web browser.

Run Area 5150 at 60fps on your phone!

Almost every feature from the desktop version is present if practical:

- View the realtime state of nearly every component of the system. - View live disassembly of CPU instructions. - Edit registers and memory. - Slow down or speed up the system. - Peek on how games draw their graphics with the Memory Visualizer.
by Dwedit | 2025-05-04 17:19:27+00:00
Mp3tag is a really good program for this task, how does this one compare?

I once used MP3Tag to fix some MP3s where the artist got screwed up because the track name contained a slash, and these files had already been put into separate directories by artist. Since you could match album even recursively in directories, it was easy enough to move all the files back to their proper place.
by didgetmaster | 2025-05-04 17:19:51+00:00
Homelessness, like poverty, crime, and ignorance will never be eradicated. There are just too many people who refuse to accept a way out of them, even if others think that way is easy.

You can lead a horse to water, but you can't make it drink. That does not mean we should stop finding ways to help those who feel trapped by them and will take a opportunity when it is presented. There are countless 'success stories' where people change.

Thus, 'solving' homelessness is a fools errand. Using resources wisely to maximize its effect on as many as possible should be the goal.
by Jtsummers | 2025-05-04 17:20:00+00:00
It's more an issue of todsacerdoti not checking their submission titles will fit, they do this a lot with their submissions. Abbreviating titles is not frowned upon when they don't fit, I've never had any reverted to something like this submission's title because I (for instance) shortened "United States" to "US" to shave off 11 characters.

In this case, cutting out the superfluous "programming language" part would get you "Understanding-j: An introduction to J that gets to the point" which would fit just fine. When in doubt, include the original title in a comment to explain the edit and let the mods sort it out later.
by Arcuru | 2025-05-04 17:20:21+00:00
I've been using fish for many years now though I keep trying all these new shells.

Ultimately I've found that for my interactive shell I just want something widely supported and with easy syntax for `if` and `for` loops for short multi-line commands. For anything longer than that I just reach for real Python using either the `sh` or `plumbum` package.

I don't need the extra features very often, so I just run things in full Python where I'm already comfortable.

I've tried oils/ysh, elvish, xonsh, nushell, and while they are _fine_ I don't want to learn a different language that's not quite Python and not quite shell.
by anton-c | 2025-05-04 17:20:51+00:00
They probably didn't care what they were but when you pull them apart it's usually some variation of a 1-4-6-5 with occasional chords on the 2nd or 7th scale degree. Generally it was diatonic. I think most musicians listen to enough to know when something doesn't sound "right"(beyond welcome subversions of expectations usually found in more sophisticated genres, musically. I love and played punk for the record)
by antonvs | 2025-05-04 17:21:19+00:00
It’s 2025. We’ve been able to render small circles for a while now!

Seriously though, the entire graphics display is much more hi res than the original, and it’s not trying to emulate the original resolution. So one slightly more serious way to answer the question is, all the graphics are higher resolution, it’s just that you notice it more when it comes to the ball.