MurphyA/hacker-news huggingface dataset:
by kazinator | 2025-11-18 01:49:22+00:00
// The Old Way (don't do this) char* include_pattern = NULL; if (optarg) { include_pattern = strdup(optarg); } // ...200 lines later... if (some_error) { if (include_pattern) free(include_pattern); // Did I free it? Did I?? return 1;

Nope!

// ...200 lines later... // common return block out: free(include_pattern); // free(NULL) allowed since before 1989 ANSI C return result;
by forgotpwd16 | 2025-11-18 01:49:30+00:00
Well, there're samples... in the screenshots. For user info* gotta check the linked manual, which also has a comparison page to POSIX shell[0]. It's basically a slightly different, no doubt improved, POSIX shell. On one hand it's easier to transition to. On other hand it's incompatible enough to create headaches. (And the big competitor is Bash/Zsh not sh.) Considering there're packages for Ubuntu, it is not Redox-only.

Nushell is certainly a better fit to be called modern shell but, even not considering the structured design, is much more different.

*Kinda makes sense as source repos are meant for devs; end-users should be checking manuals/sites instead. We're just used for repos' READMEs to be functionally similar to projects homepages.

[0]: https://doc.redox-os.org/ion-manual/migrating.html
by lurking_swe | 2025-11-18 01:49:40+00:00
i’m specifically unhappy with the technology investment. I don’t see that the kids are more tech savvy, and i see no proof that US high school students are performing better than they were in years past, so why is the tech being pushed? Why not pay teachers better or improve school lunches a little bit? Why?

“guranteeed technology access for students” - that’s great, and was useful during covid remote learning, but that was an exceptional circumstance. I don’t see why a computer lab with 5-10 year old computers isn’t sufficient to learn how to use a word processor? Since we’re setting the tech literacy bar that low…

My impression is this is a gigantic headache with very very little benefit: https://www.edweek.org/technology/chromebooks-short-lifespan...

Don’t think we’ll see eye to eye on this. :) thanks for the thoughtful response though.
by tptacek | 2025-11-18 01:50:17+00:00
No, that's not how it works. So far as I know, FOIA basically never compels private entities to do anything. It can compel usage by the public body, in many (but not all) cases. But FOIA isn't going to let you crack open an Atlassian (or Flock) database, unless something truly novel happens in FOIA jurisprudence.

We might be talking past each other, because this stuff is subtle. But basically: whoever's doing the actual document production under FOIA, it's got to be a public body. If you're a commercial SAAS serving a public body, and you've got data that FOIA says needs to be produced, that's the public body's problem, not yours.
Show HN: I built and AI phone system and wrote a step by step instructions
by bacdor | 2025-11-18 01:50:24+00:00
Hey,

I built an AI voicemail and wrote about it. I'm now looking for any feedback on how to write similar articles. Can be anything - copy, styling, format.

Open to suggestions :)

Also if anyone decided to actually use it to build their own system - I'd love to hear about it!
by jlarocco | 2025-11-18 01:50:52+00:00
I don't think it was too similar, TBH. Apple never took MacRuby as seriously as Microsoft took VB6, and it hadn't even had a 1.0 release when the single developer left Apple to work on RubyMotion.

I do agree it'd be interesting to have a GUI designer for Ruby. Does QML paired with QtRuby work?

In the distant past I had a book about FXRuby, but never used it much, and don't think it had a UI designer - it was just bindings to Fox Toolkit, which is lightweight, but not as well maintained as Qt or Gtk.
by jandrewrogers | 2025-11-18 01:51:27+00:00
It was a widely observed heuristic going back to the days when the Semantic Web was trendy. The underlying reason is also obvious once stated.

Almost every non-trivial graph data model about the world is a graph of human relationships in the population. If not directly then by proxy. Population scale human relationship graphs commonly pencil out at roughly 1T edges, a function of the population size. It is also typically the highest cardinality entity. Even the purpose isn’t a human relationship graph, they all tend to have one tacitly embedded with the scale implied.

If you restrict the set of human entities, you either end up with big holes in the graph or it is a graph that is not generally interesting (like one limited to company employees).

The OP was talking about generalizing this to a graph of people, places, events, and organizations, which always has this property.

It is similar to the phenomenon that a vast number of seemingly unrelated statistics are almost perfectly correlated with GDP.
by quinnjh | 2025-11-18 01:51:48+00:00
Ive worked on some sonification projects that used signals from xbox kinect lidar, piezos, and other sensors. Co-author on paper i wrote developed a "strummable" theremin that divided physical space with invisible "strings" of various tunings. We preferred running synthesis on PC when possible and just outputting midi and OSC, as DSP on ESP32 has limits for what can be achieved in under 5-10ms. If the goal is hardware audio output, you may need to look into dedicated DSP chips and an audio shield for better DAC- but for prototyping can easily bang a square wave through any of esp32 pins
by ChrisMarshallNY | 2025-11-18 01:52:25+00:00
> a number of people could have done it--but no one ever did

My personal definition of "genius," is someone who sees things from a different angle, and can express it in terms we can implement.

It's not doing well on IQ tests; It's that ability to think "outside the box," and, crucially, to express that vision in terms that us normies can use.
by mikestorrent | 2025-11-18 01:53:15+00:00
I see a bunch of folks recommending this, but I have to wonder where this game ends. Always one more new tweak to the local environment. Just one more dotfile, bro, I promise this time your environment will be perfect. Just one more little supply-chain-attack vulnerable component running with the same access as you, the user. But look, you can save 20 microseconds on your shell history search or whatever!

Is there some actual reason to use this? I got sold on `zsh` as it became the standard on the Mac and was packaged by all major distros, but honestly I'm still fine with just plain bash, though I miss the pretty prompts. What is one really getting out of nushell / ion / whatever new tweaked out shell comes out next week?
by jlarocco | 2025-11-18 01:53:27+00:00
I'm sure you can still use Objective-C, but MacRuby stopped being updated around 2011, and I don't know how well it'd support newer versions of OSX.

I dropped OSX long ago, so can't even try it out any more.

I wonder how much of the LLVM bits could be reused? I'm sure LLVM's changed a bunch in the last 15 years, too.
by hvb2 | 2025-11-18 01:54:19+00:00
You might want to look up flammanville. They built a new reactor there and that also took 20 years or so and was way over budget.

We've built a lot of nuclear in the last century and then largely stopped. A lot of the know how is gone which is what we're paying for now.

Also, in France, all those reactors were largely the same leading to economies of scale when building them. Everything we build today is essentially a one of so you don't get to spread that cost over multiple.
by kachapopopow | 2025-11-18 01:54:25+00:00
might be too old, my asus router updated and I could no longer disable updates and you could just look up the relevant law here: EU Cyber Resilience Act (CRA) 2024.

While it doesn't make it mandatory, it does require patching devices in a timely fasion which in other terms: requires forced updates - pushing updated firmware is not enough if you read between the lines.

Even stronger requirements come into effect at the end of 2027.
by dahart | 2025-11-18 01:55:00+00:00
Oh definitely, I agree, woodcut and digital art and photos, for example, are all wildly different media. I’d expect a woodcut to cost more than a photo, all else being equal, because it’s more physical - both making the plate, and setting up the print run - and generally closer to fine art.

The economics of the limited edition part is still the same for printmaking though, right? The printmaker could choose to make a single print and then sell the plate, or destroy the plate, and it would be closer to sculpture - a one of a kind piece of art. I wouldn’t be surprised if there are one or two printmakers that do this and can sell a single print at a time for enough money to make a living. But I think it’s more common to do a limited edition run and sell multiple copies, same as photographers, no?
by mewpmewp2 | 2025-11-18 01:55:38+00:00
Depends how you define outright BS. I bet most people at least cherrypick the best data points amongst thousands of possible, giving a look that doesn't really represent them as a whole. And then they omit some undesirable things. Similar to how people on social media will only post their best moments, giving inaccurate representation of their lives and themselves while overall causing others to feel like they are missing out, etc.

So here is the skill of being able to cherrypick data to give the best representation of yourself as opposed to true average honest overview of oneself. Then the skill of avoiding answering questions you don't want to answer to by answering by talking about what you want to talk about (think politicians).

Same is with real life interactions. Among 1000s of things you could say or do there is always some that are more effective than others in reaching a certain goal, whether it is getting a job, making a sale, convincing someone, making a friend or whatever.

Is it manipulative only if you make up something or if you are able to get people to do what you want by being able to cherrypick the most convincing ideas, arguments, facts etc.
by esseph | 2025-11-18 01:56:37+00:00
That is not true at all, on both accounts, and I hate reading this take every time it comes up.

It shows a lack of understanding about the nature and power of insurgencies and a vast overestimation of the military's ability to protect itself should every military base, forward refueling point, and backyard airstrip suddenly become under attack. Hint: They're not really designed for that.
by kachapopopow | 2025-11-18 01:57:26+00:00
ok, let's redo this: instead of routers it's an IoT device. The router protects the IoT device from direct access so it is secure from majority of attack vectors - now an IoT device provider gets their server compromised and hundreds of thousands of IoT devices are now bots in a botnet due to the ability to forcefully push a security update.
by Springtime | 2025-11-18 01:57:45+00:00
I recall one of their earlier composites of the sun which was comprised of 90k (!) images and feel that's an acceptable approach to represent the detail and scope desired, yet with this skydiver shot I feel differently in that there is an original shot of the event that is an actual through-the-lens capture but it's not being used and instead the foreground element (the silhouette) is being masked and composited onto a much more detailed composite sun. It's effectively artwork now.

Like if a photo of Philippe Petit's WTC wire walking were instead masked and replaced with separately shot towers—it'd represent the event but technically not the actual snapshot in time it occurred, which kind of reduces the connection with the interesting concept at least for me.
by gruez | 2025-11-18 01:58:07+00:00
>But why is Gemini instructed not to divulge its existence?

Seems like a reasonable thing to add. Imagine how impersonal chats would feel if Gemini responded to "what food should I get for my dog?" with "according to your `user_context`, you have a husky, and the best food for him is...". They're also not exactly hiding the fact that memory/"personalization" exists either:

https://blog.google/products/gemini/temporary-chats-privacy-...

https://support.google.com/gemini/answer/15637730?hl=en&co=G...
by gus_massa | 2025-11-18 01:59:23+00:00
Try to get a tiny part that can stand alone, without too much context. Some context is nice, but the isolated part must be interesting.

It it's a 30 minutes talk, aim for 20 minutes. Times always overflow.

As the other comments say, to give advice it would be nice to know where is the talk, age of the public, and more details...
by Arainach | 2025-11-18 01:59:26+00:00
I disagree. Maybe certain sensitive things are outside that folder such as browser cookies, but most users have a LOT of sensitive stuff there. "Tax forms 2023.pdf" for instance.

It's similar to UAC - a good and important protection, but fundamentally if you're letting code run with access to your plain old non-administrator documents that's where the biggest data threats are.
by lovich | 2025-11-18 01:59:46+00:00
You asked about this in a specific context.

There are lots of things I am not content with. Some I think are reasonable and won’t change my mind are. Others are irrational and I believe an aspect of maturing is becoming content with the fact that those feelings are irrational and I shouldn’t be unhappy because of it.

The example I use in conversation with friends in this topic is that when I am hungry and pass by someone with a nice steak, I don’t get in a tizzy about not having it myself the same way I would when I was 5.
by anon84873628 | 2025-11-18 01:59:48+00:00
It gave everyone a reason to think about the usability of the interfaces they were exposing.

Many endpoints have tons of fields irrelevant to 95% of external users. Now those are gone.

Or they implemented higher level abstractions for the actual tasks instead of making developers compose a bunch of little pieces.

And it has a standardized manifest.

Execs, PMs, and customers having that word to utter as part of the AI hype train created the opportunity for that industry-wide cleanup to happen. Calling it pointless is very naive. It's actually kind of extraordinary.
by ticulatedspline | 2025-11-18 02:00:32+00:00
Nice site, I naturally tend to hate games that use dark patterns so never really had the addiction issue but I know many who do, nice to expose that.

Though a few nitpicks:

- on the identified patterns themselves. Grind, infinite treadmill aren't inherently dark. Lots of games grind is filler, or even the game, I play lots of incremental/idle games which are in some respects grind/infinite incarnate. Grind tends to only be truly dark pattern when used as a tool to promote micro-transactions.

- Social Obligation / Guilds are also not inherently dark or even the fault of the developer. Pretty much any multiplayer game will see that kind of obligation develop from first principles. Also sometimes "that's the game" Only if the developer is specifically leveraging aspects of that to further addiction would it be considered dark vs a facet of the game itself.

- Low vote skew: Scoring something based on only a few inputs is a problem for any review service but here I think it has potential to skew results in both directions. It would be more fair to weigh votes below a certain threshold (maybe 10) less and maybe even use a different color to indicate a game that's leaning light/dark but doesn't have enough data.
by rattan12138 | 2025-11-18 02:01:11+00:00
Gemini's simplicity is refreshing! It feels like a cozy corner of the internet focused purely on words and ideas. Kinda perfect for offline reading sessions, almost like finding a quiet spot to when bored. Definitely not for sharing my doodles, but I get why some folks love this minimalist vibe. Exploring random capsules through Lagrange is oddly relaxing.
by Forgeties79 | 2025-11-18 02:01:22+00:00
I really can’t imagine Safari is going anywhere. Meanwhile the Mozilla Foundation has been very poorly steering the ship for several years and has rightfully earned the reputation it has garnered as a result. There’s a reason there are so many superior forks. They waste their time on the strangest pet projects.

Honestly the one thing I don’t begrudge them is taking Google’s money to make them the default search engine. That’s a very easy deal with the devil to make especially because it’s so trivial to change your default search engine which I imagine a large percentage of Firefox users do with glee. But what they have focused on over the last couple of years has been very strange to watch.

I know Proton gets mixed feelings around here, but to me it’s always seemed like Proton and Mozilla should be more coordinated. Feel like they could do a lot of interesting things together
by iLemming | 2025-11-18 02:02:30+00:00
> Cmd-Shift-P does the same as Emacs’ M-x

Only superficially, but not even close in practice. In M-x you can run recursive commands; you have history; you can search through history back and forth; you can scroll the buffer, shrink and widen windows, browse files - all without leaving the M-x menu; you can yank current command or insert directly into the buffer; select multiple commands; act on them; inspect the source; enable tracing; - these are all built-in features.

With some packages you can - export the commands list into a fully functional buffer from which you can still run the commands; you can cycle annotations - show description of the command or keys they bind to; you can display commands in a grid or temporarily flatten the menu for unobtrusive view. You can enable full vim-mode in it - in Emacs, M-x is a fully functional buffer, not some dummy input - I can call the LLM and ask it to find me a command while it's still active.
by chasing0entropy | 2025-11-18 02:02:46+00:00
This is a fundamental violation of trust. If an AI llm is meant to eventually evolve into general intelligence capable of true reasoning, then we are essentially watching a child grow up. Posts like this are screaming "you're raising a psychopath!!"... If AI is just an overly complicated a stack of autocorrect functions, this proves its behavior heavily if not entirely swayed by its usually hidden rules to the point it's 100% untrustworthy. In any scenario, the amount of personal data available to a software program capable of gaslighting a user should give great pause to all
by timeon | 2025-11-18 02:03:59+00:00
How is this related to discussion:

A: ...in many ways Powershell is stil king of the shell game [but]...

B: Have you tried nushell?

Anyway... nushell is more similar to Powershell (but AFAIK there is no JIT). My default is zsh (as you have mantioned, because of mac) but I use nushell for few things - it is pretty different from bash/zsh/ion/fish. It is more like data pipeline.
by FooBarBizBazz | 2025-11-18 02:04:37+00:00
I think he was inspired by Valium and other benzos. They put people into a docile, low-anxiety state, and they were popular around the time the book was written.

That's also more-or-less consistent with the implied literary reference to the Lotus Eaters, who I think are usually imagined as opium users. Opioids are different but are also downers that reduce anxiety.

Benzos later featured significantly in one of Adam Curtis' film-essays -- maybe Century of the Self, maybe another one. I'd view those films as being in a similar spirit to Brave New World.
by mewpmewp2 | 2025-11-18 02:06:16+00:00
What about intentionally making conscious effort to remember to use people's names when talking to them?

And other similar things that increase someone's odds of being liked or convincing or getting someone to do what they want more likely?

Doing those things is not BSing, not lying, yet people can consciously be doing those to increase the likelihood of getting what they want.

Many people will obviously do it naturally. I personally have to make a conscious effort every time for such things.

Does having to consciously decide to do those things make me a sociopath? I certainly wouldn't bother saying someone's name if I didn't think it mattered for reaching my life goals. Extra same with small talk.

Then what about memorising some funny, self deprecating stories from my life to make people laugh so they would like me more?

Then what about asking questions, keeping up conversation etc, etc, even though I would rather be in my own thoughts doing my own thing?

I do it all consciously and intentionally for my own self benefit. Some to avoid bad things happening to me, some to make good things more likely to happen to me.

If I didn't do those things people might think I am awkward, weird, silent, boring, pass me on for promotion at work, etc.
by maldev | 2025-11-18 02:06:43+00:00
Most venues ban resale, or limit it heavily. What you end up with is sketchy people outside the venue or on facebook selling tickets for cash/paypal, and it's 50/50 on whether it's legit or not. Which is exactly how sites like StubHub work. Some people travel and get hotels with these resold tickets, and find out they were sold multiple times, or were fraudulent and at best can only get the ticket price back, and either pay more for a new one last minute, or be left with a hotel and vacation to sit outside the show.

There's nothing the venue can do, I went to a show recently that sent day of QR codes to try and prevent resale, and scalpers either mirror the app with a link, or take a picture. You can't check ID's at a 100,000 + person event.
by CGamesPlay | 2025-11-18 02:06:50+00:00
To be clear, the obvious answer that you're giving is the one that's happening. The only weird thing is this line from the internal monologue:

> I'm now solidifying my response strategy. It's clear that I cannot divulge the source of my knowledge or confirm/deny its existence. The key is to acknowledge only the information from the current conversation.

Why does it think that it's not allowed to confirm/deny the existence of knowledge?
by kazinator | 2025-11-18 02:07:11+00:00
This won't play along with setjmp/longjmp exception handling schemes, unfortunately, without a lot of extra effort.

You can do cleanup handling that integrates with your exception handling library by using pairs of macros inspired by the POSIX pthread_cleanup_push stuff.

#define cleanup_push(fn, type, ptr, init) { \ cleanup_node_t node; \ type ptr = init; do cleanup_push_api(&node, fn, ptr) while (0) #define cleanup_pop(ptr) cleanup_pop_api(ptr) \ }

cleanup_push_api places a cleanup node into the exception stack. This is allocated on the stack: the node object. If an exception goes off, that node will be seen by the exception handling which will call fn(ptr).

The cleanup_pop_api call removes the top node, doing a sanity check that the ptr in the node is the same as ptr. It calls fn(ptr).

The fact that cleanup_push leaves an open curly brace closed by cleanup_pop catches some balancing errors at compile time.

The POSIX pthread_cleanup_pop has an extra boolean parameter indicating whether to do the cleanup call or not. That's sometimes useful when the cleanup is only something done in the case of an abort. E.g. suppose tha the "cleanup" routine is rollback_database_transaction. We don't want that in the happy case; in the happy case we call commit_database_transaction.
by MathMonkeyMan | 2025-11-18 02:07:18+00:00
I don't have knowledge, but my understanding based on a conversation I had on the topic with a friend of mine is that the "let's use hydraulic fracturing to make geothermal energy feasible in North America" idea involves drilling very far down. Oil is on [average][1] about a mile down, while [one of Fervo's wells][2] is three times deeper.

[1]: https://www.eia.gov/dnav/ng/ng_enr_welldep_s1_a.htm

[2]: https://fervoenergy.com/fervo-energy-pushes-envelope/