MurphyA/hacker-news huggingface dataset:
by ModernMech | 2025-04-15 22:15:04+00:00
It's a huge problem. I just can't get past it and I get burned by it every time I try one of these products. Cursor in particular was one of the worst; the very first time I allowed it to look at my codebase, it hallucinated a missing brace (my code parsed fine), "helpfully" inserted it, and then proceeded to break everything. How am I supposed to trust and work with such a tool? To me, it seems like the equivalent of lobbing a live hand grenade into your codebase.

Don't get me wrong, I use AI every day, but it's mostly as a localized code complete or to help me debug tricky issues. Meaning I've written and understand the code myself, and the AI is there to augment my abilities. AI works great if it's used as a deductive tool.

Where it runs into issues is when it's used inductively, to create things that aren't there. When it does this, I feel the hallucinations can be off the charts -- inventing APIs, function names, entire libraries, and even entire programming languages on occasion. The AI is more than happy to deliver any kind of information you want, no matter how wrong it is.

AI is not a tool, it's a tiny Kafkaesque bureaucracy inside of your codebase. Does it work today? Yes! Why does it work? Who can say! Will it work tomorrow? Fingers crossed!
by wrp | 2025-04-15 22:15:39+00:00
I remember that from the 1970s, too. I think photo gear might have been a unique case because the market was big enough to support those huge mailorder shops in NYC, and most items were expensive enough that the markup of buying at a local shop really hurt. As a young, cash-strapped, photography enthusiast, I felt guilty about buying all my major gear online, but I could bring myself to purchase only small accessories from the (really nice) people at the local camera shop.
by krapp | 2025-04-15 22:16:14+00:00
The premise that during the Biden years transgender culture was the dominant culture in America is just plainly ridiculous, as is the implication that only transgender identity mattered, culturally, during those years. Again, these were the years when transphobia began to mainstream and become codified into legislation and "antiwoke" and "anti-DEI" culture. It was never dominant, it only just started to become visible enough to really piss people off (similar to gay culture in the 1980s.)
by mattbessey | 2025-04-15 22:16:44+00:00
This was a really compelling article Dan, and I say that as a long time l advocate of "traditional" server side rendering like Rails of old.

I think your checklist of characteristics frames things well. it reminds me of Remix's introduction to the library

https://remix.run/docs/en/main/discussion/introduction > Building a plain HTML form and server-side handler in a back-end heavy web framework is just as easy to do as it is in Remix. But as soon as you want to cross over into an experience with animated validation messages, focus management, and pending UI, it requires a fundamental change in the code. Typically, people build an API route and then bring in a splash of client-side JavaScript to connect the two. With Remix, you simply add some code around the existing "server side view" without changing how it works fundamentally

it was this argument (and a lot of playing around with challengers like htmx and JSX like syntax for Python / Go) that has brought me round to the idea that RSCs or something similar might well be the way to go.

Bit of a shame seeing how poor some of the engagement has been on here and Reddit though. I thought the structure and length of the article was justified and helpful. Concerning how many peoples' responses are quite clearly covered in TFA they didn't read...
by mushufasa | 2025-04-15 22:17:15+00:00
Sounds like they are thinking about instagram, which originated as a phone app to apply filters to a camera and share with friends (like texting or emailing them or sending them a link to a hosted page), and evolved into a social network. Their new image generation feature has enough people organically sharing content that they probably are thinking about hosting that content on pages, then adding permissions + follow features to all of their existing users' accounts.

honestly it's not a terrible idea. it may be a distraction from their core purpose, but it's probably something they can test and learn from within a ~90 day cycle.
by Volundr | 2025-04-15 22:17:22+00:00
> According to who? Why do you think this is somehow the case?

Bukele says he doesn't forsee ever releasing anyone from CEDOT and has specifically ruled out doing so in this case. Trump says he's powerless to get him released.

> In what scenario does indefinite detention make any realistic sense even for the best-case scenario of its intended purpose i.e. rightfully-deported violent criminals?

Slave labor, which is what the people in CEDOT are being used for, again per their own president.

> Do you honestly think the US is actually sending anyone to indefinite detention who has not received a life sentence in court?

Yes! That's the whole problem!
by merb | 2025-04-15 22:17:48+00:00
First of all, their docs link to the market place of ms:

https://www.cursor.com/how-to-install-extension

Which is basically an article to use an extension in a way that’s basically forbidden use.

If that was not bad enough the editor also told you to install certain extensions if certain file extensions were used that were also against the tos of the extension.

And basically cursor can just be using the vsix marketplace from eclipse, which does not contain restricted extensions.

What they do is at least shady.

And yes I’m not a fan of the fact that Microsoft does this, even worse they closed the source (or some parts of it) of some extensions as well, which is also a bad move (but their right)
by kenjackson | 2025-04-15 22:18:14+00:00
Then they'll fail. They have that right.

As so many people who hate the Ivies tell me, you can get just a good of an education at your local CC and state college. That option is available and they don't have the emphasis on leaders and they also tend to accept most people who are qualified.

The reasons people want to go to Harvard aren't simply because of the academics to be ordinary engineers.
by kristopolous | 2025-04-15 22:18:39+00:00
https://fortune.com/2024/09/25/twitter-x-account-suspensions...

tripled.

They just want to protect nazi speech, like I said in the downvoted comment.

I don't care what your vibes are here.

They aren't even against actual anti-semitism. Happy merchant memes, george soros conspiracies, protocols stuff, that's all A-ok because it's nazi stuff.

If you have the wrong opinion on israel palestine, it's the concentration camp for you.

The first group the nazis sent were social democrats, peace activists, journalists ... The famous nazi book burning was at an lgbt institute. I mean they're just doing nazi shit. I don't know why this isn't clear.
by fallingknife | 2025-04-15 22:18:48+00:00
I can see I've hit a nerve here. But it's ok. I understand that the fact that private research grants contain indirect percentages less than half of the federal rate and yet still the universities not refuse them is a very difficult thing for you to argue against. It's understandable that you would resort to appeals to authority and ad hominems when you can't present a logical argument.
by burnished | 2025-04-15 22:18:52+00:00
Oh hey bad news you just got double sat and one of them has actually been here for twenty minutes but the host forgot to drop menus so everyone thought they were already taken care of. Also table three has a gluten and allium allergy, they want to know if the beer battered onion rings can be made with suitable substitutions. Also, sorry, final thing but I'm quitting right now so you'll probably want to take care of your drinks yourself
Show HN: Open Source AI App – Try on Any Outfit
by talljohnson1234 | 2025-04-15 22:18:53+00:00
Hey HN,

I built a simple web app that lets you try on any clothing item you see online whether it's from Pinterest, Instagram, or just an image you found somewhere.

It uses Google’s Gemini SDK for image editing.

The project is fully open source would love feedback or contributions!

GitHub: https://github.com/oyeolamilekan/gemini-ai-tryon
by ttoinou | 2025-04-15 22:19:33+00:00
Would be nice to retransform the output into an interval / gaussian distribution

Note: If you're curious why there is a negative number (-5) in the histogram, that's just an inevitable downside of the simplicity of the Unsure Calculator. Without further knowledge, the calculator cannot know that a negative number is impossible

Drake Equation or equation multiplying probabilities can also be seen in log space, where the uncertainty is on the scale of each probability, and the final probability is the product of exponential of the log probabilities. And we wouldnt have this negative issue
by int_19h | 2025-04-15 22:19:51+00:00
I'm pretty far to the left, and I'm actually fine with tariffs on China in principle for exactly the reason that you mention. Tangentially, I don't think that "free trade" can ever be meaningfully free when goods flow freely but workers can't move to where the high-paying jobs are - it's a recipe to create market inefficiencies that companies can profit from.

However, the fact of the matter is that our economy as it exists right now relies on cheap goods from China. This can and should be changed, but a meaningful plan to do so would last years of careful incremental changes if the goal is to benefit Americans as a whole. This is emphatically not what this admin is doing.
by HocusLocus | 2025-04-15 22:19:55+00:00
The Bell Labs A-3 scrambler used real time band inversion and transposition and was 'snake oiled' into the commercial market, but under the pressure of WWII it fell quickly. It was bad enough it was self-clocked and a German engineer had helped design it. But even more embarrassing was, without having to reverse engineer the circuit, humans could train their ears to recognize individual speakers and even words.

Today we take for granted the ability to conjure a complicated pseudorandom digital stream for keying, but in those days it was just "no can do".

In WWII... SIGSALY was the first system secure by modern standards. Pairs of synchronized one-time phonographic records containing a sequence of tones seeded from a noise source.
by matheusmoreira | 2025-04-15 22:22:08+00:00
It also focuses exclusively on sections. I wish it had at least mentioned segments, also known as program headers. Linux kernel's ELF loader does not care about sections, it only cares about segments.

Sections and segments are more or less the same concept: metadata that tells the loader how to map each part of the file into the correct memory regions with the correct memory protection attributes. Biggest difference is segments don't have names. Also they aren't neatly organized into logical blocks like sections are, they're just big file extents. The segments table is essentially a table of arguments for the mmap system call.

Learning this stuff from scratch was pretty tough. Linker script has commands to manipulate the program header table but I couldn't figure those out. In the end I asked developers to add command line options instead and the maintainer of mold actually obliged.

Looks like very few people know about stuff like this. One can use it to do some heavy wizardry though. I leveraged this machinery into a cool mechanism for embedding arbitrary data into ELF files. The kernel just memory maps the data in before the program has even begun execution. Typical solutions involve the program finding its own executable on the file system, reading it into memory and then finding some embedded data section. I made the kernel do almost all of that automatically.

https://www.matheusmoreira.com/articles/self-contained-lone-...
by FloorEgg | 2025-04-15 22:24:06+00:00
There are many legitimate reasons to criticize Elon, but I think you are mistaken about this one.

After years of implementing no new functionality at twitter, Elon cut 75% of the workforce and in a relatively short time that followed they implemented:

Expanded Content Capabilities: Users can now post long-form content, including articles up to 25,000 characters, and upload videos up to three hours in length.

AI Integration: The platform introduced "Grok," an AI chatbot developed by xAI, integrated into X to provide real-time assistance and content summarization.

Job Search Functionality: X added a job search feature, allowing users to explore employment opportunities directly on the platform.

Financial Services: Plans were announced for "X Money Account," a digital wallet enabling real-time payments and fund transfers, developed in partnership with Visa.

Communication Tools: Audio and video calling features were introduced, expanding the platform's communication capabilities.

Content Monetization: Users can now earn income from engagement on their posts.

Many more things... tiered subscription plans, overhaul of moderation policies, community notes expansion, algorithm changes.

They were able to do all these things with a 75% reduction in workforce. Don't you find that interesting? If it had nothing to do with Elon, what would you think about it?

It's also been reported that X/Twitter is now more profitable than it has ever been. It's revenue may have shrunk, I am not sure, but even if it's true cherry-picking that fact isn't intellectually honest.
by newuser94303 | 2025-04-15 22:24:09+00:00
I don't know why people keep thinking that China will attack Taiwan. It took HK and Macao without a shot. I think China is following Sun Tzu.

"subduing the enemy without fighting," is the epitome of strategic thinking in his book, The Art of War. This means achieving victory through cunning, deception, and maneuvering, rather than through direct confrontation and bloodshed"

They are increasing their military knowing that US military costs 4+x as much. It might be 4x better so don't fight. Just bankrupt the US. Trump wants a $1T military budget next year.

Why would China want to conquer the West? Buying what it wants is cheaper than an uncertain military battle fought with Nukes.
by omneity | 2025-04-15 22:24:11+00:00
Calling it desperate is a subjective assessment. Yes, some strategies are more haphazard than others, but ignoring generative AI currently is the same as ignoring the internet in 1999 or mobile in 2010 (which facebook famously regretted and paid $4+1B to buy instagram and whatsapp in order to catch up)
by strangattractor | 2025-04-15 22:24:28+00:00
How do you patented it? What specific "practical, real-world application" does AGI purport to solve? All these algorithms work by using massive amounts of data. They all do it the same way or close to the same way.

"Algorithms can be patented when integrated into specific technical applications or physical implementations. The U.S. Patent Office assesses algorithm-based patent applications based on their practical benefits and technological contributions.

Pure mathematical formulas or abstract algorithms cannot be patented. To be eligible, an algorithm must address a tangible technical challenge or enhance computational performance measurably.

Patenting an AI algorithm means protecting how it transforms data into a practical, real-world application. Although pure mathematical formulas or abstract ideas aren’t eligible for patents, algorithms can be embedded in a specific process or device." [1]

[1] https://patentlawyer.io/can-you-patent-an-algorithm/#:~:text...
by akoboldfrying | 2025-04-15 22:24:32+00:00
No one is blaming the attendant. People are reacting (or not, as some claim) to their attitude.

The side issue of blame can be taken out with a different example: You stub your toe. A person sees. Suppose that they either wince in sympathy, or laugh derisively.

Do you feel the same about that person either way? For avoidance of doubt: Are there any situations in which your future behaviour towards them would depend on which of these 2 reactions they gave?
by mediaman | 2025-04-15 22:24:50+00:00
I'd add that the deductive abilities translate to well-defined spec. I've found it does well when I know what APIs I want it to use, and what general algorithmic approaches I want (which are still sometimes brainstormed separately with an AI, but not within the codebase). I provide it a numbered outline of the desired requirements and approach to take, and it usually does a good job.

It does poorly without heavy instruction, though, especially with anything more than toy projects.

Still a valuable tool, but far from the dreamy autonomous geniuses that they often get described as.
by lelandbatey | 2025-04-15 22:24:51+00:00
It's quite different in intent. When you stash crypto within a defi contract that you authored, and that contract states that the crypto can move under certain conditions, and then folks come along and say "hey, I meet those conditions" and move the crypto, then no crime has been committed!

If you didn't want folks to be able to get the crypto under those conditions, then why did you make the contract grant them the crypto in those conditions? I can't take a stack of $100 bills and leave it on the sidewalk with a post-it note saying "only to be picked up by John" and then sue the person named John who comes by and picks up cash. I also can't get mad when Alice sees the stack and tells her friend John to come pick up the money with his name on it.

So it is with crypto. Why are you using crypto if you don't want to follow the rules? That sounds to me like you're trying to do unregistered securities trades...
by yjftsjthsd-h | 2025-04-15 22:25:04+00:00
You can just connect to a running X session from an SSH shell; if your X server is on display :0 (usually the default), then you just

export DISPLAY=:0 echo foo | xclip -selection clipboard

This even can work with Wayland, where it becomes

export WAYLAND_DISPLAY=wayland-1 echo foo | wl-copy

(Note that AFAICT Wayland sessions number from 1 instead of 0)
by s1artibartfast | 2025-04-15 22:26:12+00:00
Thanks. For the record, I directionally agree with the problem statement, but not the proposed solution.

I dont think it would work unless they find a way to impact the public schools. They has far greater PR and legal challenges, but the institutions themselves are far more vulnerable to funding cuts if those are surmounted. For example, the University of California system has a 30 billion endowment, but supports 300k students plus 250k faculty, staff, and administrators. However, the UC endowments are growing rapidly, up from 20 billion in 2019.

If the federal government can somehow blow up all the state universities (e.g. loan denial), it wont matter if there are some Ivy League holdouts. Even then, this is probably worse than the problem.
by DonHopkins | 2025-04-15 22:26:35+00:00
These videos of robotic cow milking machines, feed mixers and distributers and pushers, and manure roombas are amazing!

Cows like to push and play with their food to get to the yummy grain bits, so the feed robot pushes the food back so they can eat it all.

And the Poopoombas had to learn to be more aggressive about pushing cows out of the way and not stopping every time they bumped or got kicked, because otherwise the cows would assign them the lowest status in the pecking order, and they could only cower in the corner.

Here are the videos from the article and some more:

The milking process of the Lely Astronaut A5 - EN:

https://www.youtube.com/watch?v=g-zYshsAg1E

Takes Dairy Farm Tour

https://www.youtube.com/watch?v=vZY8TbBoDd0

Zeta - how it works - EN - NL subtitles:

https://www.youtube.com/watch?v=17TA-lI_oqQ

Zeta - Vision film - EN - NL subtitles

https://www.youtube.com/watch?v=8nRaj16tPLc

Their web site has a pretty cool "page not found" error page too:

https://www.lely.com/moo

Now dairy farms can use two different kinds of AI together! ;) They could develop an insemination module to go with their calving module.

https://www.lely.com/solutions/latest-innovations/zeta/ai-ca...

I wonder if you can rent swarms of these and dispatch them to anywhere you need them:

https://www.lely.com/solutions/manure/discovery-collector/

Or if you can use them in reverse, loading them up them dumping shit wherever you wanted to, like a giant Logo Turdle, in the name of art and science.
by Volundr | 2025-04-15 22:27:07+00:00
> But Occam's razor here... what's more likely? That the sky is falling and the US can and will now send people to their (presumed) death without any charges or day in court whatsoever (while you sit here accepting it, doing nothing), or that this is not actually the beginning of the end of the entire country in one fell swoop?

Given that they've been sent to a brutal prison involving torture and forced labor, and that the people who sent them there are now claiming they have no power to bring them back?

Yeah man Occam's razor says we have a dictator doing and end run around the constitution, not that they are just being held for a few months before their trail date.
by steveklabnik | 2025-04-15 22:27:58+00:00
> And if they do, is it good design to install back-ends for (say) 23 such target architectures that you're never going to cross-compile for, in practice? Does that benefit the user?

rustc --print target-list | wc -l 287

I'm kinda surprised at how large that is, actually. But yeah, I don't mind if I have the capability to cross-compile to x86_64-wrs-vxworks that I'm never going to use.

I am not an expert on all of these details in clang specifically, but with rustc, we take advantage of llvm's target specifications, so you that you can even configure a backend that the compiler doesn't yet know about by simply giving it a json file with a description. https://doc.rust-lang.org/nightly/nightly-rustc/rustc_target...

While these built-in ones aren't defined as JSON, you can ask the compiler to print one for you:

rustc +nightly -Z unstable-options --target=x86_64-unknown-linux-gnu --print target-spec-json

It's lengthy so instead of pasting here, I've put this in a gist: https://gist.github.com/steveklabnik/a25cdefda1aef25d7b40df3...

Anyway, it is true that gcc supports more targets than llvm, at least in theory. https://blog.yossarian.net/2021/02/28/Weird-architectures-we...
by duxup | 2025-04-15 22:28:11+00:00
What is most efficient and cost effective for you and the cost benefit can greatly benefit from your location / prices.

For me natural gas heat is still super cheap compared to electric heat. My electric isn't all that expensive, gas is just that cheap.

It bothers me when I see home improvement shows talk very generally about what someone should choose when picking new household utilities appliances.
by krapp | 2025-04-15 22:28:16+00:00
Woke is an adjective derived from African-American English used since the 1930s or earlier to refer to awareness of racial prejudice and discrimination, often in the construction stay woke. The term acquired political connotations by the 1970s and gained further popularity in the 2010s with the hashtag #staywoke. Over time, woke came to be used to refer to a broader awareness of social inequalities such as sexism and denial of LGBTQ rights. Woke has also been used as shorthand for some ideas of the American Left involving identity politics and social justice, such as white privilege and reparations for slavery in the United States.

https://en.wikipedia.org/wiki/Woke

... although the term has been captured and repurposed into a generic anti-progressive pejorative. Basically anything that isn't racist, sexist and "based" is now "woke."