MurphyA/hacker-news huggingface dataset:
by pjmlp | 2025-05-11 20:38:35+00:00
The community, do I have to letter spell you, why do you keep talking about Scala the language, Scala projects?

Why do I care what is written in Scala, how well it interoperates with the JVM, or whatever Scala projects are successful, when I am talking about how human beings talk down about another piece technology, its limitations and warts, how it prevents the language greatness, that by accident happens to be the underlying infrastructure of their beloved language?

Do you rather have links to discussions on Reddit, Twitter discussions and what not?

I never said anything about the creator specifically.
by motoxpro | 2025-05-11 20:39:34+00:00
This is one of those things that makes a ton of sense, will be a successful product (whether here or, most likely, integrated into Zillow, Expedia, etc. for real estate, hotels, vacation rentals), but completely bums me out because the whole point of photos is to see what it looks like in reality.

Not one of the photos stays true to reality. I know AI will get better and more accurate and make less mistakes, but the end state is the platforms, or sellers, saying "Eh, let's just cover up that little hole or up the quality of the flooring or remove that branch that obscures the view."
by cadamsdotcom | 2025-05-11 20:41:26+00:00
Good read! It exposes something deeply American and probably hard to change.

American culture glorifies inventions and new things. Meanwhile all the stuff invented ages ago is just left run into the ground. It’s very rarely rebuilt.

Transit system failures expose this.

Everyone can point to an example overseas of something shinier - trains that run on time in Switzerland, for example - yet things in the US work “well enough” even when they’re shabby. It’s actually surprising how well some things in the US continue to work despite being decayed and underfunded.

The US has given the world many amazing inventions despite all this shabby infrastructure; it keeps chugging along even though Warren Buffet feels it’s close to collapse. Maybe the rest of the world can learn something from that?
by mattnewton | 2025-05-11 20:41:41+00:00
> If you think the price of oil will be $120 after a year, you can use futures or options on futures to make this bet. If you think the S&P 500 will be over 6,500 within 2 years and the yield on 10Y Treasury bonds will be 4.25%, investment bankers will help you express this view for a fee.

I’m sorry but I think the either the author or I have entirely lost the plot. Finance is a game we play to make humans better off, not to “express their views” - if you think that being able to bet on everything makes society better off, that’s an argument you can make, but it is not self evidently good to me and it is not an argument the article seems to make.
by yieldcrv | 2025-05-11 20:41:55+00:00
are you suggesting that eliminating carried interest would deter private equity from bothering with small businesses, and make the remaining small businesses feel like a more reliable thing for workers and employers to engage in? because they won't get shuttered unceremoniously?

if I'm understanding that correctly, I have to giggle, because there are plenty of ways for institutional money to have lower taxes than ordinary income tax rates. waaaay lower than the carried interest "loophole".

also, to me, loopholes are unintended things that no one person in government or branch of government noticed. like a couple of private letter rulings from the IRS combined with an accounting tweak in a budget appropriations bill. carried interest isn't one of those to me when it was directly passed by congress explicitly and deliberately affirmed multiple times in subsequent legislation.

but I could be misunderstanding your post entirely.
by cosmicgadget | 2025-05-11 20:41:59+00:00
> One of these things is not like the others. Tesla, for good or ill, needed to write a full stack for their EV.

And so did traditional manufacturers, they just had the benefit of being able to phase it in if they so chose. Or they could have done a hard cutover, either way, the failure is on them for ignoring the benefits of the Software Defined Vehicle discussed in the article.

> It's unclear what getting one of the android automotive developers would do for you.

Do they do vehicle control systems or just infotainment?

> they needed to use Unreal Engine to show you what your own car looks like and spin it around in. 3-D deserves some kind of salesmanship Nobel prize.

I mean that's exactly the kind of thing that makes Tesla fanboys rave endlessly about their car. It just needs to be decoupled from the actual software system, like any UI.
by kace91 | 2025-05-11 20:42:18+00:00
I went through klarna’s interview process some time ago.

I had to go through both reasonable and weird steps, including IQ tests for some reason. I passed them all, and then I was ghosted, and upon reaching out I was met with months of excuses asking me to wait (the recruiter is on vacation, we’re waiting for the new budget to be approved, “I personally forgot to reply”, and a few others). I eventually stopped reaching out and never heard back.

If the whole company is as dysfunctional as those interactions implied, I wouldn’t really look up to them as trendsetters.
by MrJohz | 2025-05-11 20:42:47+00:00
Based on the JS Framework Benchmarks (so caveats apply), an app built with lit-html (i.e. just the HTML templating part, as I understand it) is about the same size as SolidJS, and an app built with lit (i.e. the full framework) is about the same size as Svelte or Preact, and at a similar order of magnitude to Vue or Mithril.

So at least in terms of minimal bases, all of these frameworks are much of a muchness.
by jillesvangurp | 2025-05-11 20:43:10+00:00
It's not just about the software but about the hardware architecture of the car. Legacy manufacturers are coming from a situation where they are integrating hardware and software from a lot of different suppliers. This makes upgrading the car a very tedious process and slows down the process of getting suppliers to fix issues and provide new firmware in a timely fashion. It's worse for them because they often want to do ICE and EV variants of the same car. Which means sticking with the same supply chains and associated issues.

Vertically integrated companies do this very differently. Tesla pioneered this. The Chinese copied this and at this point you also have companies like Rivian and a few of the legacy manufacturers that are doing the same. Effectively they in house all the software and e.g. Rivian runs the software on a handful of hardware subsystems instead of having hundreds of chips with their own firmware for things like the wind screen wipers, the software that controls the windows, the AC, the keyfob, AI driving features, and so on.

I mention Rivian here because they just did a deal with VW to start doing the same for them.

The issues here are not just technical but cultural. I used to work in Nokia when it was in the (slow) process of figuring out that they were a software company rather than a hardware company. Then Apple and Google came along and they were slow to adapt their internal processes and management. Apple makes firmware that goes on their phone. They provide OTA updates. There's only one supported version of that firmware: the current & latest one. It's the same for all phones they still support with updates. Nokia did the opposite. They forked their software for each product variant (dozens per year). And they did not do OTA upgrades. So most of their phones weren't updated at all (by users), and would typically ship with bugs that had already been fixed on other branches of the software. And it would ship on the schedule of the manufacturing process, regardless of the state of the software. With all the obvious consequences. Nokia got a well deserved reputation of shipping half baked software.

By the time MS bought them out, they had learned and improved a lot but Apple and Google were running circles around them by then and it did not matter anymore.

You see the same with car manufacturers currently. It's all about the buttons and the bling. They have a gazillion of upsells, features, special trims, and what not. And it all adds up to a whole lot of nothing if the software experience isn't great. That's why VW is paying billions to Rivian to fix that for them.

Their cars are too expensive, have too many chips and wires, and their software just isn't good enough. And they don't have ten years to figure this out for themselves. That's what Rivian is supposedly fixing for them.
by rayhaanj | 2025-05-11 20:43:11+00:00
I think you mean "running your own recursive resolver", an authoritative server is one which is authoritative for some zone (e.g. example.net), whilst a recursive resolver is one that goes and walks from the root of the DNS hierarchy to the leaf that you have queried.

It is probably quite a bit slower though needing to have roundtrips at each stage of the resolution, which is also likely a reason that these public resolvers get so much use (latency improvement via caching).
by mrcwinn | 2025-05-11 20:43:13+00:00
That’s an oversimplification of the factions.

There are large groups who don’t deny the risk, but question the cause, or simply think it’s not a viable solution to stop the economy, or not treat sick people with grid-taxing medical equipment, or deny automobiles to people who must commute to earn a living, or ban certain foods, and so on and so on.

I really wish we had always been on solar and the Model T had been electric for the same cost. Unfortunately, the supply chain and economy just didn’t support that. Bummer. Let’s focus a bit less on moralizing and instead turn our attention to fixing the challenges at hand.

I know someone who is very far left, and yet insists on driving a vintage car that is a lot worse for the environment than a neighbor’s F150. We’re all filled with contradictions and regrettable hypocrisies.

It’s the challenge of our time. How can we live how we want to live, whatever that means individually, in a way that is sustainable and avoids a system of state rationing?
by prisenco | 2025-05-11 20:43:16+00:00
Not just some people. There are a wildly unnecessary amount of marketing pages and pages with basic forms that are built using React.

Every time I've been at a company and suggested moving to vanilla css+html or a static generator, the reaction is like I brought up rewriting in assembly.

There needs to be a significant push for simplification of the default toolchain. I understand using React, but reaching for it by default at the beginning should be seen as unnecessary complication.

Especially because it's 100x easier to move from html+css to a framework than it is to move from a framework to literally anything else.
by Kirby64 | 2025-05-11 20:43:16+00:00
Maybe consider that you live in a bubble without a lot of variety of cultures.

Bidets are quite common in Europe, although they tend to be dedicated separate bidets. They’re also common in japan, obviously, with Toto existing there.

And even within my own sphere, my (US company) work has bidets in every toilet, and some of my relatives discuss bidet use, none of us are “Internet people” as you state.
by Swizec | 2025-05-11 20:43:27+00:00
I work on a site that was built without frameworks with just a sprinkle of jQuery on top of a traditional MVC framework.

It worked great but then the business grew and the software became bigger than what fits in 1 engineer’s head. We now have lots of issues that need fixing.

A good example are pages that take 5 seconds to load because they have to do so much, then you submit a form, and the page reload takes 5 seconds to go through but there is no UI feedback so you press the button a few more times because maybe it didn’t work? Then you get an error because the first action worked but the subsequent actions failed due to uniqueness constraints. Now as a user you’re confused: did you place the order or not? You got an error but the order also showed up in your history. Hmmm

As engineers we have issues understanding what is and isn’t in scope. Will this javascript file you touched affect only the feature you wanted, or another 50 pages you didn’t even know about? When you add a new thing in a template, how many N+1 issues across how many pages did you just cause? Where does the data even get loaded?? The query lives so far away from where you use the data that it’s really hard to track down. Etc

We started putting new things in React, especially the more interactive areas of the site. It’s pretty nice in comparison. Not perfect, but the framework pushing you to think in components helps a lot. I’m slowly introducing this mentality to other parts but the framework really wants to fight you on it so it’s gonna take a while.
by insin | 2025-05-11 20:43:28+00:00
Modern static content web development is in some of the best health it's ever been in with the likes of Astro.

You get your lovely developer experience with components, with the same component API enabling layouts for the repeatable outer structure, easy composition of reusable parts of your content, ease of passing data around between these and implementing any logic you need before rendering or inside what you're rendering.

The user gets a snappy, static website.
Ask HN: What do you think of this color changing Rubik's Cube variant?
by amichail | 2025-05-11 20:44:35+00:00
Consider a Rubik's cube like puzzle that starts all black.

As you scramble it, you introduce colors in 1-bit RGB.

In particular, two opposite faces of the cube have the letter R on them, two opposite faces have the letter G on them, and two opposite faces have the letter B on them.

These letters are put on the center square of each face.

You can rotate just like with a Rubik's Cube. You can also tap a face to toggle the color bit indicated by the letter on the face.

For example, tapping on a face with R would toggle the red bit on all the "stickers" on that face.

To solve the puzzle, you need to get it back to all black.

Do you think this would make an interesting puzzle?
by j_not_j | 2025-05-11 20:44:43+00:00
Some comments, in random order:

- your test codes are not reproducible: running twice generates different sets of numbers because they have unknown seeds. As a result, if you change (a) compilers or compiler switches, (b) operating system versions, (c) host processors or (d) architectures, the question arises: what is wrong? What is different? This is known as a regression test.

- try shishua as another speedy PRNG. See https://espadrine.github.io/blog/posts/shishua-the-fastest-p...

- You only test a few times? I think one hundred BigCrush tests, using a set of 100 seeds, would be suitable. Takes a few days on an RPI 4 (with cooler). Run the same 100 tests on a Ryzen and Xeon, just to be sure. They should be bit-for-bit identical.

- 100 BigCrush tests should show only a handful (4 or fewer) duplicate test failures.

- your seeds are almost great: too many people think "42" is random in a space of 0 through 2^64. But 0xdeadbeef is so 1990s...

- you don't need different seeds per PRNG; you can generate reproducible ones (2x to 4x 64bit) from a single good 64-bit seed and your favourite PRNG. Your test code should read a seed or set from the command line (see first item).

- warmups? Really?

- Remember that BigCrush and other tests are created by mathematical people not practical people. Do they test for equal numbers of odd and even results? Hmmmm....

- try Collatz, see https://news.ycombinator.com/item?id=39733685

- the tests are very cache-friendly; nobody does this. It's true that everybody compares against this unrealistic scenario, however.

- if you've spent a month in twisty little PRNG passages, all alike, you are on the first steps of your journey. Take a towel.

J
by rietta | 2025-05-11 20:45:20+00:00
I have been a big fan of delayed_job for a while. For a time went with sidekiq + Redis but found the juice not worth the squeeze. The biggest issue was complex logic that got run before the current sql transaction finalized. Weird timing bugs and wacky solutions with after_commit hooks and random delays. Not an issue if the database is the sole source of state.
by DebtDeflation | 2025-05-11 20:45:42+00:00
I've worked in the field of Contact Center AI for almost 10 years now. Rough order of magnitude you can expect to deflect around 30% of inbound contacts with an AI chatbot. You can also expect to reduce agent Average Handle Time by 15-20% using AI enabled semantic search and workflow automation. This is ballpark, if your contacts are simpler you can do a little better, if they're complex you'll do a little worse.

The problem is that vendors are telling companies they can eliminate 80-90% (maybe even 100% if they can keep a straight face) of their customer service agent jobs with AI, and that is nonsense.
Show HN: Sqlitemap, a persistent map implementation backed by SQLite for C++
by bw-hro | 2025-05-11 20:46:11+00:00
I have created sqlitemap, inspired by pythons sqlitedict. It offers an easy way to store key-value data into a SQLite database by implementing a map interface so that no sql needs to be written.

Main features:

- Persistent key-value storage using SQLite - Easy-to-use map-like interface in C++17 - Transactions - Custom encoding/decoding for keys and values

Minimal example:

#include <bw/sqlitemap/sqlitemap.hpp> int main() { bw::sqlitemap::sqlitemap db("example.sqlite"); // add some key-value pairs db["a"] = "first-item"; db["b"] = "second-item"; db["c"] = "third-item"; db.commit(); std::string item = db["b"]; // query key "b" std::cout << item << std::endl; }

Results in a SQLite database like this:

$ sqlite3 example.sqlite sqlite> SELECT * FROM unnamed; a|first-item b|second-item c|third-item

Maybe someone else will find it helpful too, any feedback welcome! More details/examples etc. can be found on Github: https://github.com/bw-hro/sqlitemap
by a4isms | 2025-05-11 20:46:26+00:00
Many years ago—2002!—Joel Spolsky wrote this:

https://www.joelonsoftware.com/2002/05/06/five-worlds/

His thesis was that before arguing about software development tools, practices, anything really, it's vital to establish what kind of development you're doing, because each "world" has its own requirements that in turn motivate different practices and tools.

The worlds he quoted were Shrink-wrap; Internal; Embedded; Games; and Throwaway. Shrink-wrap is no longer a thing for most developers, and we can probably name some others today that didn't exist then. But the basic advice he gave then matches what you're saying today:

We need to anchor arguments about tooling in a statement about the type of development we're trying to address, and we need to appreciate that the needs of each world are different.
by notepad0x90 | 2025-05-11 20:47:02+00:00
You're right, if tangible harm is involved, or a specific threat is made, free-speech can't be used as a defense. There is no debate there. But I'm sure you'd agree hating Nazis shouldn't be a crime right? The fact of the matter is hatred or belief in harm is not a bad thing in anyone's mind so long as it is directed at something you consider evil. you're supposed to hate evil.

The reason the US isn't like EU in this regard is that hating tyranny is the cause of its founding. Being able to hate the british's oppressive rule was crucial, being able to organize a rebellion around that hatred is how the US exists. And in current times, being able to hate MAGA and neo-fascism is important.

However, hatred and conspiracy to harm people are different things. Inciting specific harm against anyone is illegal both in the EU and the US today. "you can't yell 'fire' in a crowd" and all.

Let's get a bit more practical, why can't Muslims living in Europe consider anything critical of their prophet is hate-speech? Or laws opposing revenge killings and their treatment of women is hate-speech and religious bigotry? I can assure you to them it feels severely harmful, their passionate response is from a place of hurt and pain. I don't see why any of that is not banned under hate speech laws.

The crucial point here is that the people have a contract with their government such that the government is allowed certain powers. The question here is "can the government police speech that doesn't involve potential and specific harm?". In the US, Islamic imams can preach sermons on Sharia law in promotion of revenge killings and other imams or even other religious leaders can criticize that sermon and preach in its opposition. From what I understand, in the EU, they can't preach that and no one can really criticize them, but their followers still hold that belief with no opportunity to observe the topic debated.
by 0xDEAFBEAD | 2025-05-11 20:47:14+00:00
Agreed. A serious approach to this problem would be: Identify critical computers which are currently 13+ years old (most likely embedded systems). Assume that the same sorts of systems will be 13+ years old in 2038. Focus on raising awareness with that particular target audience, e.g. give talks about the 2038 problem at embedded systems conferences. Try to get it included in university curricula. Etc.
by ashishbagri | 2025-05-11 20:47:34+00:00
- We used our custom clickhouse sink which inserts records in batches using clickhouse native protocol (as recommend by clickhouse). Each insert is done in a single transaction so if an insertion has failed, partial record do not get inserted on clickhouse. - The way the system is architected this cannot happen. If the deduplication server crashes, the entire pipeline is stopped and nothing is inserted. Currently when we read a data successfully from Kafka into our internal NATs JS, we acknowledge the new offset into Kafka. And the deduplication and insertion happens after. The limitation currently is that if our system crashes before inserting into clickhouse (but after ack to kafka) we would not process this data. We are already working towards finding a solution for this.
by deepsun | 2025-05-11 20:48:18+00:00
Moreover, in some countries it's actually honorable to be on a "wanted" list, like terrorist, extremist, tax evasion etc. Because that lists are often used as oppression against opponents. E.g. Russia routinely does that against pacifists. Khodorkovsky was jailed for 10 years for "stealing" from his own company after he announced his West-leaning political ambitions.
by cdrini | 2025-05-11 20:48:46+00:00
Yeah I think there is plenty of room for good discussion here, but using that quote without context is misleading. And the faulty model was pulled after only a few days of being out, iirc. It definitely does speak to the necessity of nuance when analysing AI in these contexts; results for one model might not necessarily hold for another, and even system prompts could change results.
by knuckleheadsmif | 2025-05-11 20:49:37+00:00
Yes, making UI’s is not a new problem but building on top of the DOM/HTML as the backbone is.

I too am from the before times where I guess we built essentially our own frameworks to handle own unique issues and take security into our own hands (verses have to trust external libraries and external resources….)

I sadly laugh when I hear 20+ years late people are still fighting back button navigation issues. I still see sites that can’t handle double posts correctly or recovery gracefully when post responses fail/timeout.

I’m out of the game now but for all the benefits of the web it’s been haves to death to support stuff the underlying infrastructure was nit designed for.
by Dwedit | 2025-05-11 20:50:01+00:00
No, linking to a static version of the CRT is a good thing, it cuts out the unused code. If you dynamic link to MSVCRxx/VCRUNTIME, you force the user to download that exact DLL from Microsoft. Dynamic linking to MSVCRT doesn't have that problem, but it's very hard to do in Visual Studio.

The only time you really can't static link to the CRT is LGPL compliance?