MurphyA/hacker-news huggingface dataset:
Show HN: Tiptap UI Components – Free React Components for Building Editor UIs
by philipisik | 2025-04-15 08:01:02+00:00
Hi, Philip here from Tiptap. We just released a new set of open source UI components for Tiptap (https://tiptap.dev/), our headless text editor framework.

These are handcrafted React components that integrate directly with Tiptap’s headless core, things like toolbars, dropdowns, formatting buttons, upload controls, etc. They’re MIT licensed and fully optional. You can use them as-is or customize every part.

There’s also a CLI that sets everything up for you: project scaffolding, recommended defaults, and a working example.

This is for folks who like the flexibility of Tiptap but don’t want to start from zero every time they need an editor UI. It doesn’t change how Tiptap works – just gives you a faster way to build on top of it.

Live demo: https://template.tiptap.dev/simple

Docs: https://tiptap.dev/docs/ui-components/getting-started/overvi...

GitHub: https://github.com/ueberdosis/tiptap-ui-components

CLI: npx @tiptap/cli init

We’re working on more components (e.g. comments, version history) including some tied to Tiptap Cloud. The ones released now are 100% free and open source.

Would love feedback, especially from anyone who’s built editor UIs before. What should we add next?
by saghul | 2025-04-15 08:02:02+00:00
I work on that codebase (we forked it off to QuickJS-ng) and while daunting at first, it's somewhat easy to work with, with the right editor! Many of them choke on such a large file, alas.

While it being a very large file, it's sorted somewhat semantically, so it's easy to work on adding a new iterator method, for example, since they are all close to each other.
by bharrison | 2025-04-15 08:02:45+00:00
Obviously YMMV, but I bought some Amazon MTB pedals rated 4.7 starts @ 9k ratings. One suffered a catastrophic failure, shearing off at the crank and I was pitched over the bars.

Design and manufacturing is obviously a major part of the equation with this product sector, and no doubt the Chinese can do that as good as, or even better than domestic brands in many respects. What they don't do as well, as far as I'm aware, is any significant destructive testing.

The bonus is I can now spend even more absurd amounts of money on bike components, which is the true dream of any true cycling enthusiast.
by DemocracyFTW2 | 2025-04-15 08:05:07+00:00
I found this interesting:

> In the UK, regulations mean that CT scan requests are reviewed by radiologists and only carried out when clinically justified and with optimised doses. Because of this, the UK has one of the lowest rates of CT scans per population in OECD countries – less than 100 scans per 1,000 people, compared with over 250 scans per 1,000 people in the US. Research studies have provided evidence that CT scans used in targeted screening on healthy people, such as for lung cancer, will save lives, and that the benefits outweigh the risks.

> However, the researchers argue that the risk of cancer outweighs any potential benefit from the whole-body scans offered by private clinics to healthy people.

So the authors do agree that "targeted screening of healthy people" done right is beneficial even though CT scans are seen as a risk-inducing measure, yet this isn't true if you just go and sell whole-body scans to healthy people, which tells me that "CT scan" may not be precise enough a word to know what the risk-benefit ratio might be in a given case; you'd have to at least add what body part was scanned, why, and maybe even where: if an American tells you they got a CT scan chances are apparently higher they just got sold an expensive and risk-inducing full-body shotgun diagnosis with little chance of turning up anything while when a Brit tells you the same, chances are higher that an experienced person tasked with saying no when in doubt vetted risks and benefits and concluded a focused exposure was worth it.
by squarefoot | 2025-04-15 08:06:09+00:00
This. People buying a laptop there for ten bucks then receiving the photo of one have indeed all the rights to complain, but common sense should suggest them before the purchase the old saying that if something looks too good to be true... And this can happen everywhere there's no strict quality control or accountability. Aliexpress is great for small modules, SBCs, diy electronics in general, however I wouldn't ever buy semiconductors, batteries or memory modules there, as the risk of fakes or low quality clones is close to 100%.
by imgabe | 2025-04-15 08:06:13+00:00
> 1. They aren't, Harvard does

> 2. Federal grants aren't targeted to specific students so revoking them isn't a targetted punishment

> 3. Harvard can still operate without these grants, including bringing in international students who the current admin might disagree with.

Harvard funds them with the money it gets from grants. If Harvard wants to fund activist students with their own money out of their endowment, nobody is stopping them from doing that.

No, they can't unilaterally import foreign students though, the government has to grant them a visa to come here, and it really doesn't seem prudent to grant visas to people who hate our country and everything it stands for. If they believe the US is so evil and awful, they should be quite relieved that they won't need to come here. Maybe Harvard can open a satellite campus in Gaza if they really feel that these are the best students who are most deserving of a Harvard education.
by Mawr | 2025-04-15 08:06:15+00:00
Wow, that is a lot of loosely connected nonsense.

> Think of blue collar workers that are hungry

The what now?

> exhausted

There aren't many jobs that physically exhaust you to the point of not being able to walk (biking is no harder than walking). Especially since leg muscles are super hard to tire out.

> people getting older

Pretty much the same as above. If anything, the elderly prefer biking to walking, it's easier on the joints.

> Its fucking annoying to wait for the bus that does not show up

Less or more annoying than waiting when your car breaks down?

> Electric bikes are no solution, the minerals and energy must be produced to transport people like me.

Right, manufacturing a 30kg bike has costs, unlike manufacturing a 1500kg car.

> No new vehicle was produced, no rare earth was needed.

That's not how the economy works. Also, buying used is better than buying new if everything else is equal (it's not in this case), but whatever vehicle you bought was produced at some point.

> Fuel is produced every day for the plastics of the EV and for many other things like pharmacy and so on.

Er, what? I guess you think your vehicle is made out of grass and runs on water or something?

> Sure you are right with vegan biking, but not all folks can do it.

Not all folks can do it, so let's stick with 99% of people using cars to get around :)

Nice try with the vegan rage-bait.
by mike_hearn | 2025-04-15 08:06:18+00:00
Yeah, exactly: the first thing a public health conspiracy has to do is forbid doctors talking about it. This case is unusual because the tribunal was so clear about their intent:

> "As a physician, the information you communicate is trusted by many."

People don't trust us but they trust you, so we're going to make you into our handpuppets.

> "Online disclosure of a private letter received from an associate medical officer of health;"

Don't tell anyone we're using you this way, otherwise they'd stop trusting you too.

> "We are dismayed by the deliberate steps you took to undermine the public health response to the COVID-19 pandemic. Your communications to colleagues, patients and your thousands of followers on social media regarding COVID-19 and public health response measures were careless, often offensive and at times, possibly harmful."

Offending the government is the primary thing listed here; they aren't even sure he caused harm! The other charges are similar: he disagreed with the government on COVID, he revealed publicly that the government was threatening him, he didn't cooperate with the people who were threatening him, he "deterred the public from complying" and so on. Then something about an infant i.e. someone too young for an invasive COVID test to have value (so he was probably right to interfere with it).
by kashunstva | 2025-04-15 08:06:19+00:00
> since Nixon+Reagan

More like since the late 1950’s with economist James Buchanan’s public choice reaction to school desegregation, a theory that won him the Nobel Prize in economics but also informed generations of conservative politicians. The planned destruction of public schools and universities had at its core the same racism that ran through the state of Virginia’s refusal to comply with Brown vs Board of Education, a project that Buchanan and his political partners were involved in.
by namaria | 2025-04-15 08:08:27+00:00
Yes. There are different concepts called 'entropy', sometimes merely because their mathematical formulation looks very similar.

It means different things in different contexts and an abstract discussion of the term is essentially meaningless.

Even discussions within the context of the second law of thermodynamics are often misleading because people ignore much of the context in which the statistical framing of the law was formulated. Formal systems and all that... These are not general descriptions of how nature works, but formal systems definitions that allow for some calculations.

I find the study of symmetries by Noether much more illuminating in general than trying to generalize conservation laws as observed within certain formal models.
by rklaehn | 2025-04-15 08:08:54+00:00
> Shame it's being abused by crypto bros who want to treat it as money.

Iroh contributor here. I don't know what you are referring to. Iroh is just a library to provide direct QUIC connections between devices, even if they are behind a NAT. We don't have any plans doing a blockchain or an ICO or anything like that.

I am not aware of any project called Iroh that is a scam, but if there is, please provide a link here. It's not us.

I know there have been some scammers trying to make a BLAKE3 coin or something, a year ago.
by Spivak | 2025-04-15 08:09:30+00:00
Well of course, because Elon cares about birth rates, not women. I'm actually kind of surprised if you expected any other outcome. The idea that I am given any kind of choice in whether to become a mother or not is fundamentally incompatible with their world view. It's just diet incel logic, they harken back to a world where women are completely financially dependent on men and that having a baby and being a caretaker to it is the woman's side of the transaction. There is no reason in this world to give a single shit about encouraging women to want to have kids or making it easier/more desirable because you don't have a choice in the first place. The gross "your body, my choice" people weren't joking— it's just people imagined they meant physical coercion rather than social and financial.
by Thimothy | 2025-04-15 08:10:38+00:00
Depends entirely how you define "growth". If you take AI, LLM as your baseline of growth, then yeah, sure. But what else is growing?

FPGAs are getting cheaper with each gen, expanding into low cost, high volume markets that were unthinkable for an FPGA 10 years ago. Lattice has an FPGA family specifically targeted to smartphones, and I've been consulting for a high end audio company that wanted to do some dsp, and a cheap FPGA was the best option in the market for the particular implementation that they wanted to do.

It's not sexy growth, but it's growth. Otherwise, we wouldn't had the explosion of the latest years in low end FPGA companies.
by walterbell | 2025-04-15 08:11:24+00:00
https://news.ycombinator.com/item?id=43604706

Upon gaining access to the CloudSail API, which they did using a recovered API key, they could: List all connected devices and their IP addresses Establish remote tunnels to those devices Access the robot dog’s web interface with no authentication Use the robot’s cameras for live surveillance Log in via SSH using default credentials (pi/123) Move laterally within internal networks to which the robot is connected
by phh | 2025-04-15 08:11:48+00:00
To escape the anti-trust struggles, they'll need to provide MCP servers (meaning provide callable tools). Stopping at providing MCP client (the chatbot that connects to MCP servers) isn't enough.

I'll believe in Google not actively being anti-competitive when I (a paying customer) can access/modify my gmail, google contacts, google sheets, plan routes in google maps, ... from my local llm chatbot using mcp.
by tsimionescu | 2025-04-15 08:13:27+00:00
This goes through all definitions of entropy, except the very first one, which is also the one that is in fact measurable and objective: the variation in entropy is the amount of heat energy that the system exchanges with the environment at a given temperature during a reversible process. While tedious, this can be measured, and it doesn't depend on any subjective knowledge about the system. Any two observers will agree on this value, even if one knows all of the details of every single microstate.
by FartinMowler | 2025-04-15 08:13:29+00:00
Hot showers too! And 1-800 phone numbers. In my motorcycle touring days, at 3pm or so I'd figure out where I would be at 7-8pm, lookup the nearest KOA in the KOA directory booklet, and call the 1-800 to make a reservation. Often when I arrived, they were turning away unhappy would-be campers as all spots were already taken.
by cookiengineer | 2025-04-15 08:13:59+00:00
Related:

- Lessons from open source in the Mexican government [1]

- Europe as a software colony (documentary) [2]

The TL;DR is: If a diplomat from the US is at your doorstep and wants to doxx, eh... talk to, your CEO, you're doing exactly the right thing.

[1] https://lwn.net/Articles/1013776/

[2] https://www.youtube.com/watch?v=duaYLW7LQvg
by prof-dr-ir | 2025-04-15 08:15:51+00:00
Whenever there is an entropy, it can be defined as

S = - sum_n p_n log( p_n )

where the p_n is a probability distribution: for n = 1...W, p_n >= 0 and sum_n p_n = 1. This is always the underlying equation, the only thing that changes is the probability distribution.
by Terr_ | 2025-04-15 08:16:47+00:00
> it's fairly clear they mean

"It's fairly clear that Herr Hitler only means to instill properly virtuous German educational values."

No, we've seen more than enough to know exactly what kind of administration this is, and how it lies.

FFS it's just 3 months in and already they're kidnapping people from America into concentration camps for the rest of their lives (however short that might be) with no trial nor even the pretense of charges.

Come to think of it, what's The Hacker News policy on storing user information? Is it time for people who aren't fans of the current administration to make new accounts?
by lproven | 2025-04-15 08:16:50+00:00
You are demonstrating and perpetuating bigotry and prejudice.

Who uses them does not matter. What they use them for does not matter.

You claimed there were no Apple users in Europe. That is a blatant falsehood. Now you have explained why you lied: because you admit it was a lie and that there are lots of people using them, but you think those people are not important, and so you ignored them and did not count them.

I am not interested your value judgements. I may even share some of them but that is not important. The point is that Apple kit costs more because Apple doesn't make budget models and doesn't use cheap cut-down components like Celerons and "Pentium Dual Core" and other budget junk.

Apple costs more. So Apple is bought by or for richer people. Management and marketing make more money so they get more expensive toys.

I am not arguing if this is right or wrong. It isn't relevant. The point is, it sells, it's used in large numbers, and as such it's commercially important.
by timonoko | 2025-04-15 08:17:06+00:00
I made it twice in 1980s. Or maybe trice, at least piecewise.

-- Note about "prepadness". No need for that. I started at 70km per day, but eventually made 500 km in 24h. Because good back wind and too hot for camping by the road.

It takes about two weeks to totally numbify youres backside. Thereafter rockhard professional saddle is the best.

https://youtu.be/8D-S8nYCwjA?si=TZfnb2qrkiZdiYU6
by 0xEF | 2025-04-15 08:18:31+00:00
Correct.

But...

We _do know_ that companies are typically driven by greed and profit, so if it is possible for them to replace their human workers with something that does a similar level of work but also does not require a paycheck, we would be absolute fools to assume that they won't do everything in their power to make that a reality, regardless of the understood reliability of LLMs.
by mrlambchop | 2025-04-15 08:19:07+00:00
Great article - enjoyed it a lot!

re: the notes on the use of the device keys (stored in the K/V store), assuming that they are per device would seem the most obvious vs that they are global. Global keys would be written in the main app body in my experience, not the KV store (but that doesn't mean people have not done unusual things here of course!).

I also want to share some feedback on the complexity of managing per device keys these days and the risks - there are lots of easy to use tools that per device keys like this much simpler to do in 2025 than 2015 and cloud platforms that take in CSV files and return very similar messages... Typically a security model for a device such as an air purifier can be easily defined as not having device encryption enabled if it has per-device keys on as the impact of breaching a single device remains compartmentalized to a single edge component and in this case, just a purifier (vs a car or something that explodes!). Not that I agree with this, but corporate security can! Device encryption causes lots of problems in factories that are often best 'ignored' if the product can afford it.

Per another comment, god bless ESP32 developers once the EU rule kicks in in August... !
by karel-3d | 2025-04-15 08:19:10+00:00
You need good latency for streaming, torrents can get to a decent speed but the latency will always be bad.

Modern streaming protocols sometimes go to absurd lengths to avoid too many hops so you get the data as soon as possible... torrent has so many jumps and negotiations to get to the actual file. It's good for decentralization but decentralization and efficiency go against each other.
by bayindirh | 2025-04-15 08:19:29+00:00
Yes, their open source drivers had a painful birth, but they are good once they're sanded and sharpened with the community.

However, they somehow managed to bork e1000e driver in a way that certain older cards sometimes fail to initialize and require a reboot. I have been bitten by the bug, and the problem was fixed later by reverting the problematic patch in Debian.

I don't know current state of the driver since I passed the system on. Besides a couple of bad patches in their VGA drivers, their cards are reliable and works well.

From my experience, their open source driver quality does not depend on the process, but on specific people and their knowledge and love for what they do.

I don't like the aggressive Intel which undercuts everyone by shady tactics, but I don't want them to wither and die, either, but seems like their process, frequency and performance "tricks" are biting them now.
by sterlind | 2025-04-15 08:20:14+00:00
of course "race realists" tend to be anti-Israel; many of them are genuine neo-Nazis. the term arose back in the '90s among white supremacists, who tend to be heavily antisemitic.

the Trump admin aren't (for the most part) "race realists." or antisemitic. or philosemitic. no, the Trump admin is cynically indifferent to the plight of the Jewish people. they're using antisemitism as a cause celebre, a useful cudgel to attack their enemies on the Left. Republicans are using Jews the way the Democrats used trans people - as pawns in a game of identity realpolitik. at least until our political liability outweighs our usefulness, then we get left holding the bag.

you can spot false allies like this because they will amplify the most extreme voices, the most divisive and inflammatory rhetoric, when speaking for their charge. I guarantee you, most trans people didn't want Canadians fined for using the wrong pronouns, and most Jews don't want grad students deported for writing an op-ed. the loudest voices aren't ours.
by frm88 | 2025-04-15 08:20:24+00:00
This is the second time you write a comment where you argue that stable birthrate/population numbers contradict genocide.

The ICC issued a warrant for Netanyahu on (among others) the grounds of using starvation as a method of warfare [0]. Starvation as a method of warfare is consistent with genocide [1]. These are international legal facts/definitions.

[0] https://en.m.wikipedia.org/wiki/International_Criminal_Court... [1] https://en.m.wikipedia.org/wiki/Starvation_(crime)
by richardatlarge | 2025-04-15 08:20:35+00:00
I found harvard’s letter a poor attempt to articulate just how authoritarian the demands are, and how they undermine the very idea of a university. How leaders of such a prestigious university refuse to place what’s going on in historical context is sad. But it’s educational: now I have a better understanding of how the nazis came to power.

not a perfect comparison, but a useful starting point.
by FloorEgg | 2025-04-15 08:21:36+00:00
Thank you, never heard of that concept before. I don't think I was doing that but I can see how it could appear that way. I can't figure out how to get back to the parent comment to see what I was responding to, but I think I asked that because I was trying to understand if the commenter was reacting only to the Harvard letter and preconceptions about the administration, or the administration's letter itself. I could have been more thoughtful about the question.

I have very little experience engaging in political discourse on the internet. So I asked the question like I would to a friend.

I'm realizing now that the best way for me to engage is simply to take these threads and paste them into an LLM and have it explain the nuance and context to me. I just wish there was a forum for conversing about this stuff with real people with diverse viewpoints and who kept to most respectful interpretations.
by FilosofumRex | 2025-04-15 08:21:49+00:00
Boltzmann and Gibbs turn in their graves, every time some information theorist mutilates their beloved entropy. Shanon & Von Neumann were hacking a new theory of communication, not doing real physics and never meant to equate thermodynamic concepts to encoding techniques - but alas now dissertations are written on it.

Entropy can't be a measure of uncertainty, because all the uncertainty is in the probability distribution p(x) - multiplying it with its own logarithm and summing doesn't tell us anything new. If it did, it'd violate quantum physics principles including the Bell inequality and Heisenberg uncertainty.

The article never mentions the simplest and most basic definition of entropy, ie its units (KJ/Kelvin), nor the 3rd law of thermodynamics which is the basis for its measurement.

“Every physicist knows what entropy is. Not one can write it down in words.” Clifford Truesdell