MurphyA/hacker-news huggingface dataset:
by crooked-v | 2025-05-07 20:22:03+00:00
Another I would suggest is buildings with specific unusual proportions and details(e.g. "the mansion's west wing is twice the height of the right wing and has only very wide windows"). I've yet to find a model that will do that kind of thing reliably, where it seems to just fall back on the vibes of whatever painting or book cover is vaguely similar to what's described.
by thegrim33 | 2025-05-07 20:22:09+00:00
Every thread about software licenses always devolves into a firehose of debate and conflicting beliefs. How, in 2025, are we still in a state where, on HN of all places, nobody has any idea what the specifics of LGPL really means or how it has to be implemented? How is it so convoluted, confusing, and up to interpretation?

There's demonstrably room for innovation here - coming up with some new system that actually makes sense, that people can actually understand. I suppose there's licenses like MIT that fall in that bucket. Everyone is pretty clear about something like the MIT license. But the various GPL licenses and other, more custom/convoluted licenses ideally need to be replaced by something much better.
by PaulHoule | 2025-05-07 20:22:43+00:00
Myself I got into programming long before I got interested in game design. These days I am interested in what I'd call "non-fiction games" that use game techniques to other ends. For instance, gamification of commerce or social media. I have a project on my Kanban board to develop an "art gallery" based on Web XR that will let me publish my stereograms to the MQ3... If I can figure out the memory management angle.

My question is does this guy

https://en.wikipedia.org/wiki/ZUN_(video_game_developer)

like composing music better or game design?
by robbie-c | 2025-05-07 20:23:00+00:00
Disclaimer: IANAL

> If the same IP address is hashed using the same method, the result will always be the same, meaning it can be matched.

The way people get around this is by using an ephemeral salt, that is deleted e.g. daily. After enough time has passed, it'd be impossible to reverse the hash as the salt would be lost.
by km144 | 2025-05-07 20:23:05+00:00
Well as a member of gen-z, I'll happily agree with you if that makes you feel like less of a boomer. And I think it mostly has to do with attention. The capacity for focused attention has been deteriorating at a societal level for quite a long time. It's not a generational thing either—we are all facing similar pressures with the sheer amount of information we've been forced to process on a daily basis. That loss of attentional capacity seems to be affecting really important faculties like learning, creativity, and deep work.

I see this in myself all the time but I find a lot of people my age are quite aware of what is happening to us while many older people are stuck blaming the kids—hell, there are times in public when I see older folks more glued to their screen than your average teenager. It's not just young people. The path forward isn't very clear.
Show HN: Sprigman – Pac-Man Recreated in a Limited Tile Based JavaScript Engine
by kuberwastaken | 2025-05-07 20:23:14+00:00
Sprig is a tile based game engine made by Hack Club that's like Scratch's older brother but has it's own set of unique limitations.

All sprites need to be made in Bitmap and uses a midi like event sequencer to get any music into it, since it's meant for a different set of hardware, you can only use very basic controls too.

I made a version of PacMan inside it that has randomly generated mazes every time and mostly works well!
by phil21 | 2025-05-07 20:23:26+00:00
Being skinny does not, but being morbidly obese absolutely is a strong correlation to the point of it being a rounding error. Medical conditions that cause it are extremely rare.

For better or worse, as a formerly morbidly obese person I can say society doesn’t really care why - they absolutely take you less seriously overall regardless of the underlying reasons.
by darkmighty | 2025-05-07 20:23:26+00:00
Indeed, there's a simple algorithm using interval arithmetic to do so (within bounded time too!).

Think of it as binary subdivision/search of [0,1], using a stream of random bits. Steps:

(1) Divide the current interval in 2 (using its midpoint); (2) Using one random bit, pick one of the 2 intervals; (3) if the picked interval (new current interval) lies entirely on the domain of a single floating point value[def1], stop and return this value, else go to (1).

[def1] The domain associated to a floating point value is the interval between the midpoint between it and its lower neighbor on the left, and the midpoint between it and its higher neighbor on the right.

I expect the performance is very poor, but it does cover all floating point numbers in [0,1] with exactly correct probabilities (assuming the bit probabilities are exactly correct). That's in part because naively you need higher precision arithmetic to do so, as well as up to 53 or so iterations, on average well over 32 I presume.

(I've left out the proof that probabilities are correct, but I believe it's easy to show)
by jchw | 2025-05-07 20:24:01+00:00
I do use Ninja when I use CMake, but honestly that mostly comes down to the fact that the Makefiles generated by CMake are horrifically slow. I don't particularly love CMake, I only use it because the C++ ecosystem really has nothing better to offer. (And there's no chance I'm going to redistribute a project that can't build with the Makefile generator, at least unless and until Ninja is default.)

Anyway, the Google C++ style guide has nothing to do with why C++ modules aren't and won't be used at Google, it's because as-implemented modules are not an obvious win. They can theoretically improve performance, but they can and do also make some cases worse than before.

I don't think most organizations will adopt modules at this rate. I suspect the early adopters will wind up being the only adopters for this one.
Show HN: I built a free, local, open-source alternative to lovable
by willchen | 2025-05-07 20:24:16+00:00
Hi HN -

I'm excited to share a free, local, open-source AI app builder that I created. You can see what it looks like and download it here: https://dyad.sh/

It's open-source and on GitHub: https://github.com/dyad-sh/dyad

If you've used one of the popular AI app builders like lovable, v0 and bolt, but want something more flexible and without the lock-in, I think you'll like dyad.

Here's a few things that makes it different:

- Runs locally - Dyad runs entirely on your computer, making it fast and frictionless. Because your code lives locally, you can easily switch back and forth between Dyad and your IDE like Cursor, etc.

- Run local models - I've just added Ollama integration (https://www.dyad.sh/docs/guides/ai-models/local-models), which lets you build with your favorite local LLMs.

- Free - Dyad is free and bring-your-own API key. This means you can use your free Gemini API key and get 25 free messages/day with Gemini Pro 2.5!

Note: dyad isn't an IDE (and not another VS code fork :) and instead is focused on people, esp. non-coders, who want an all-in-one tool to build+preview web apps in a simple intuitive desktop UI.

I’d love any feedback. Thanks!
by jeroenhd | 2025-05-07 20:24:26+00:00
The method for printing uses an Intel UART driver to print characters. AFAIK, the standard low level UART generally only does single character transfers unless you write a (relatively) complex driver.

Rendering per string is better per string, but I'm not so sure how bad the difference is when it comes to UART but I doubt the system has enough throughput for the first implementation to matter.
by dark-star | 2025-05-07 20:24:35+00:00
Do these work the same as the professional/medical ones? A friend of mine had one during a study, and she claimed it worked by electrostimulation (small electric shocks), not ultrasonic waves?

She wanted to buy one of those devices because they really helped her but the cost was upwards of 1500€, this would probably be within range for her, assuming it works the same way?
by mmastrac | 2025-05-07 20:25:01+00:00
I'll raise you a polyglot script that doesn't require eval: :)

1 // len(""" console.log('javascript'); /* """) print('python'); # */

Example:

# python3 /tmp/test.py python # node /tmp/test.js javascript

I _believe_ the only source limitations are the the JS cannot contain `"""` and Python cannot contain `*/`.
by op00to | 2025-05-07 20:25:35+00:00
We should be monitoring liver enzymes anyway as part of yearly labs to identify issues like fatty liver. For what it's worth, since taking Zepbound, my borderline-but-not-yet-high enzymes are now smack in the middle. I'm on a few medications that have improved my health, but require monitoring to ensure that things don't go bad.
by layer8 | 2025-05-07 20:25:41+00:00
See the PDF kindly linked by the sibling (https://news.ycombinator.com/item?id=43919991):

• “The highest resolution that the expert assessors could discern in the highest performing movie theater was about 875 L/PH.

• “The horizontal resolution averaged over the six multi-burst groups measured on the screens of the six selected movie theaters was about 715 L/PH.”

L/PH = lines per picture height, i.e. vertical resolution

This was for 35 mm film.

Also, well-mastered DVDs with anamorphic widescreen can look astonishingly good on an output device that doesn’t interpolate its lines.
by amlib | 2025-05-07 20:25:53+00:00
> The second issue is what you described, the mixing is just bad, sound effects and music are much louder than dialog making it impossible to comprehend without subtitles.

The trend of mixing sound effects much louder has been in vogue for longer than star wars exists and not a lot of movies drown out everything in super loud music (Christopher Nolan films being exhibit number 1 lol). I think part of the issue stems from the audio not being adapted for home releases. There used to be special sound mixes for VHS, TV shows and even DVDs (as stereo version of the 5.1 track) that lowered the dynamic range and made everything fairly clear even on your 70s CRT TV speakers.

Nowadays sound engineers probably marvel at how nice and crisp their work sounds on a studio kitted with 1 million worth of audio gear and call it good enough for playback in all systems. Add some directors wanting more "natural" dialog requesting actors to speak softly and the deal is sealed, only the 0.1% can watch anything without subtitles.

I honestly think the solution is for the industry to adopt a standardized audio gain control solution. The only reason we didn't get that in the past was because implementing such things on consumer gear was far too expensive (it was far more cost effective to just pre-process it and deliver the low dynamic range mix right in the medium, with the advantage of the possibility of a custom tuned mix). Today's TVs all have some kind of audio normalization functionality but they are all kinda bad (they alter loudness balance making everything sound tiny, a proper solution requires proper equal loudness contour compensation) and not suited for sudden and constant jumps of volumes like in movie action scenes. It also doesn't helps that every manufacturer does it differently.
by packetlost | 2025-05-07 20:26:02+00:00
This just isn't true. A segfault happens when an access happens outside of the memory space of the process, such as a 0x00 pointer. Pages are typically allocated in 4kB chunks and allocators will try to minimize syscalls to allocate more virtual pages by trying to maximize reuse of existing pages. All of this results in an out of bounds access being trivial and hard to detect without additional code to check: https://paste.sr.ht/~chiefnoah/be5864cb0d78d6691fe3e36946709...

A runaway loop can access program memory until it segfaults pretty easily.
by pc86 | 2025-05-07 20:27:35+00:00
One of the greatest jobs I ever had from a technical perspective had terabytes of structured access logs hosted on prem inside of a VPN, with a few small bespoke tools to search through them (and many more pages of commands for common tasks not yet implemented in a UI).

Not a single line of tracking or analytics on the front end, we just tracked everything we cared about at the server level.
by weinzierl | 2025-05-07 20:27:38+00:00
There were even business card sized and shaped ones. I remember an article in a computer magazine which warned against using them in the brand new generation of quad speed drives because the unbalanced mass would ruin your expensive CD-ROM drive.

https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSrOMTr...
by layer8 | 2025-05-07 20:28:49+00:00
Watching a 4K digital scan of a master copy on a 4K TV is different from what you would see in movie theaters. The roughly 700-800 lines is the apparent resolution one would experience in a real-life movie theater with analog projection.

The point is that even 1080p TV is an improvement in resolution over what you used to see in cinemas with 35 mm prints.
by ericghildyal | 2025-05-07 20:29:06+00:00
The problem isn't the number of boxes plugged in, its that the TV has its own OS and built-in apps that people want to use that doesn't work with anything outside the TV.

I don't think too many people have, for example, a Samsung TV and a Firestick and use the 2 interchangeably for different apps.

I had this problem until the Samsung interface got too unbearably slow (6 year old tv), so I just bought a Google TV and that goes through my receiver's HDMI in port. Before this update, I was using optical out from the TV into my receiver, but the quality was noticeably degraded. I'm lucky I also don't use the radio function or a record player since that would just add to the chaos.
by minimaxir | 2025-05-07 20:31:06+00:00
The web search functionality is also available in the backend Workbench (click the wrench Tools icon) https://console.anthropic.com/workbench/

The API request notably includes the exact text it cites from its sources (https://docs.anthropic.com/en/docs/build-with-claude/tool-us...), which is nifty.

Cost-wise it's interesting. $10/1000 queries is much cheaper for heavy use than Google's Gemini (1500 free per day then $35/1000) when you'd expect Google to be the cheaper option. https://ai.google.dev/gemini-api/docs/grounding
Show HN: DashPack – Turn a car window switch into a family‑friendly soundboard
by NathanCordince | 2025-05-07 20:31:55+00:00
Here is the hacked together *DashPack*, a tiny CAN‑bus interface that listens for the window‑up switch in my 2018 Porsche Macan and plays movie quotes through the car’s AUX input. It gives passengers (especially kids) something fun to do that doesn’t involve touching any “unsafe while driving” controls.

---

### Why?

* The only controls reachable by back‑seat passengers that don’t affect driving are the seat and window switches. * A single, familiar control with two modes:

* **Short press** – triggers a *random* clip (e.g. a “pew‑pew” laser sound). * **Auto‑up hold** – triggers a *known* clip (e.g. Spaceballs: “Thank you for pushing the self‑destruct button”).

* Adds a bit of shared, in‑car comedy without screens or Bluetooth headaches.

---

### How it works

1. *Hardware*

* Raspberry Pi (or any Linux box with `socketcan`) * USB‑to‑CAN adapter (I used an InnoMaker USB2CAN) * 3.5 mm audio out → car’s AUX jack (I used a cheap 2.4 GHz TX/RX pair to hide the Pi in the cargo area)

2. *Wiring (Macan 2018)*

* Comfort CAN at the gateway under the rear bench * Pin 5 = CAN‑L * Pin 15 = CAN‑H * Posi‑tap, run two wires through the stock conduit, DONE.

3. *Software*

* Python (`python‑can`, `pygame`, `playsound`) * Reads CAN ID 0x3D0 and decodes the *window‑up* bits * Picks a WAV/MP3 from `sounds/`, launches `mplayer` * Autostarts via a `.desktop` file so it survives key‑off/on cycles

4. *Testing*

```bash # virtual CAN sudo modprobe vcan sudo ip link add vcan0 type vcan sudo ip link set up vcan0 # simulate a window‑up frame every second cangen vcan0 -I 3d0 -D 0000140085 -g 1000 ```

---

### Caveats

* *Vehicle‑specific:* Only confirmed on a 2018 Macan Base. Other Porsches → new CAN IDs & pins. * *Hackish:* No guarantees, warranty, or safety claims. Tap the wrong wires at your own risk. * *Audio:* I avoided Bluetooth on purpose; AUX + analog TX/RX has 0 pairing issues and \~0 latency.

---

### Repo / Docs / Pics

[https://github.com/your‑user/dashpack](https://github.com/your‑user/dashpack) – full wiring photos, CAN logs, and a list of quote clips in `sounds/`.

---

### What’s next?

* Hooking HVAC and seat‑vent messages for more “passenger superpowers” * Car‑agnostic bus sniffing to auto‑learn switchgear IDs * Maybe an “Arduino‑only” build so folks don’t need a Pi

---

I’d love feedback on:

* Better ways to detect switch events across different Porsche models * Safer/cleaner CAN tap ideas * Creative sound clip suggestions (short lines that always get a laugh)
by betterThanTexas | 2025-05-07 20:32:23+00:00
Well, if you've devoted a significant part of your life to neurotically analyzing your own actions in order to comply with a certain set of values, changing one of those values will naturally imply reevaluating of much of your life. I think realistic expectations of yourself for not living up to your own values is important to maintain basic resilience.

Not to mention, we all have behavior that's fundamentally contradictory to our values. At least, IMO.
by safety1st | 2025-05-07 20:32:41+00:00
That's interesting info but I don't agree with the information being 'wildly misleading'

- If people wish to consume expensive, luxury foods they will do so, and that's OK and valid, even during a political crisis. America endeavoring to produce more of these luxury products is good for the country's economy and makes self-sufficiency easier if a crisis arises.

- Maybe those factories should be on US soil, also good for self-sufficiency. Maybe not so good for international conglomerates - I don't care, they've had a great run, time for them to work for the people again.

Enjoyable food existed before the current era of globalization. The brands might change, but it will exist after that era is wound down. Let's not pretend otherwise.
by nomel | 2025-05-07 20:32:49+00:00
I've only worked in exceptions, so I can't really comprehend the book-keeping required without them. To me it's a separation of concerns: the happy path only involves happy code. The "side channel" for the unhappy path is an exception, with an exception handler at a layer of the abstraction where it's meaningful, yet happy, code. By "happy" I mean code that's simply the direct practical work that's trying to accomplished something, so doesn't need to worry about when things go terribly wrong.

Being blind to the alternative, and mostly authoring lower level libraries, what's the benefit of not having exceptions? I understand how they're completely inappropriate for an OS, a realtime system, etc, but what about the rest? Or is that the problem: once you have the concept, you've polluted everything?
by Sohcahtoa82 | 2025-05-07 20:32:49+00:00
Agreed.

Something I've noticed with "naturally skinny" people: They simply don't have the appetite of the obese. They don't need to self-regulate their eating, as they just don't have the desire to eat. Their sense of hunger is properly calibrated. If they eat a large lunch, they won't even be hungry at dinner time and might just have a snack if they eat at all.

As an obese over-eater, I'm insanely jealous. I'm almost constantly hungry. For me to lose weight, I have to ignore the literal pain in my stomach and the strong biological urge to eat. I literally just finished my lunch 45 minutes ago which consisted of a roast beef sandwich (with like 8 oz of roast beef) and some chips. About 800 calories. I'm still hungry.

I'm not dehydrated and confusing thirst with hunger. My urine is almost completely clear.

> I suggested eating hamburgers and pizza, and he said that he couldn't stand the taste. His lack of weight had little to do with self-control.

Absolutely wild. Maybe that's the next level of human evolution: To have a brain that understands that food will always be readily available in modern civilization and so finding high-calorie foods delicious and providing a dopamine hit for consuming them isn't necessary.
by pfannkuchen | 2025-05-07 20:33:37+00:00
SO seems different because the author of the post is republishing it. If they are republishing copyrighted material without notice, it seems like the SO author is the one in violation of copyright.

In the LLM case, I think it’s more of an open question whether the LLM output is republishing the copyrighted content without notice, or simply providing access to copyrighted content. I think the former would put the LLM provider in hot water, while the latter would put the user in hot water.
by genghisjahn | 2025-05-07 20:34:00+00:00
You raise a good point. It was kinda gray in the SO days. You almost always had to change something to get your code to work. But at lot of LLM's can spit out code that you can just paste in. And, I guess maybe the tests all pass, but if it goes wrong, you, the coder probably don't know where it went wrong. But if you'd written it all yourself, you could probably guess.

I'm still sorting all this stuff out personally. I like LLM's when I work in an area I know well. But vibing in areas of technology that I don't know well just feels weird.
by danilafe | 2025-05-07 20:34:51+00:00
This is a strange article to me. I've not seen any class that teaches Prolog place these constraints (use recursion / don't add new predicates) or even accidentally have the outcome of "making prolog look tedious". What's the joke here?

That aside, I wonder if getting the reverse solution (sum(?, 10)) is better served by the straightforward or the tedious approach. I suspect both would work just the same, but I'd be curious if anyone knows otherwise.
by endofreach | 2025-05-07 20:35:13+00:00
Whenever i am in a new country, i hit the first bookstore in the city centre. Child section often has disney books or similar. Sometimes even bilingual versions. I recommend it.

No idea how to order my food, but if i ever need to find my son, who's a clownfish, and was kidnapped, and i need to do it in italian, i am ready.
by api | 2025-05-07 20:36:03+00:00
To me the crisis of art today is not AI, it's discovery.

People all over the world are making great art. How do I find it in an ocean of human-made mediocrity and now AI-churned slop? How do we discover new artists?

I sometimes go looking for new writers and new music. It's very time consuming. I'll spend hours and hours to find maybe one new piece I like. Most of that time is sifting through stuff that's just unremarkable.

Social media used to help, but now social media is just a flood of dreck.

AI is making this problem worse, but not exactly for the reason the AI bashers say. It's not that AI makes art obsolete or that AI can't be used to make real art. It's the AI makes it so easy to make dreck, it's flooding the zone even more.
by impendia | 2025-05-07 20:36:08+00:00
I don't see why you can't reuse whatever mechanics you like.

Return of the Obra Dinn was a 2018 mystery puzzle game, where you have to figure out how everyone died in an ill-fated voyage at sea. Amazing game.

I searched Reddit for "games like Obra Dinn", and this led me to Case of the Golden Idol, a 2022 game with similar mechanics. The developers were quite open about being inspired and influenced by Obra Dinn -- and they ended up creating something in the same genre, but very much their own creation, with their own flavor. And also very enjoyable.

Originality is nice, but I'm not at all convinced it's a prerequisite for quality.
by skydhash | 2025-05-07 20:36:28+00:00
I have a somewhat cheap Denon for 5.1 audio and after the initial sound setup, I've never needed to touch the settings other for adjusting the subwoofer volume. It's mostly Apple TV -> AVR -> TV, but I got other inputs like a PS4 and a PC for music. And it has Airplay, Bluetooth and Spotify Connect for anyone that wants to play from their phone.

There's no need for a super-complicated setup for good sound.