MurphyA/hacker-news huggingface dataset:
by quuxplusone | 2025-09-24 00:21:55+00:00
No, neither C nor C++ supports using `static` to add internal linkage to a struct type or type alias. (Evidence: https://godbolt.org/z/fnevfv4hr , see also cppreference.)

In C++, we need some way to give a type internal linkage so that we can have

namespace { struct S { static int mv; int f(); }; } int S::f() { return 1; } int S::mv = 1;

in one translation unit and the-same-thing-but-with-2-instead-of-1 in another translation unit. Linkage matters to `S::f` and `S::mv`, which would otherwise end up exposed to the world and cause multiply-defined-symbol errors at link time. In C, we can't have member functions or static data members, so (unless I'm missing something) there's no real physical (as opposed to philosophical) reason for a C programmer to care what linkage their types have.

If C did support internal-linkage types, I do think it would make sense to support writing simply

static struct S { ~~~~ };

instead of C++'s weird hack with the (C++-only) `namespace` keyword.

Why did C++ decide to use unnamed namespaces instead of `static struct S { ~~~~ }`? According to Stroustrup's "The Design and Evolution of C++" ("D&E"), the original idea was to separate the two meanings of `static` — unnamed namespaces would take over all the responsibilities related to internal linkage, leaving `static` responsible only for function-local statics and static members. C++98 actually deprecated the use of `static` for internal linkage — but that deprecation was reversed (thank goodness) in C++11, and I imagine most C++ programmers are unaware that such a thing ever happened.

https://stackoverflow.com/questions/4726570/deprecation-of-t...
by gangtao | 2025-09-24 00:22:32+00:00
you might check

1. Multi-Entity Structure

Many Indian SaaS companies establish subsidiaries in business-friendly jurisdictions like Singapore, Dubai (DIFC/ADGM), or Delaware. The Indian entity provides services to the foreign subsidiary, which then handles international payouts. This requires proper transfer pricing documentation and compliance in both jurisdictions.

2. Payment Service Providers

Consider platforms like:

Wise Business (formerly TransferWise) Payoneer Stripe Connect (for marketplace-style payouts) RemitOUT or BookMyForex for Indian companies These can handle multi-currency payouts while managing compliance.

3. Virtual Account Solutions

Some fintech providers offer virtual accounts in different countries, but ensure they're fully compliant with both Indian and destination country regulations. Simply "opening accounts virtually" without proper legal structure can create tax and compliance issues.
by toomuchtodo | 2025-09-24 00:22:44+00:00
Most charging, in the context of consumer electric light vehicles, takes place at home overnight. Fast charging is usually reserved for travel outside of the round trip range of home, as the average US daily commute is ~40 miles.

Fast charging is more expensive than residential charging because of the infrastructure and distribution costs to deliver ~300kw of power continuously for 10-25 minutes; on site battery storage can mitigate some of this cost (“peak shaving”).

(I charge at home, but have fast charged 100k+ miles across the US on Superchargers on an older Model S)
Show HN: A reaction-diffusion system in an SVG
by OisinMoran | 2025-09-24 00:23:07+00:00
Note that his doesn't work on Safari yet. They're not as forgiving for several of the horrible things I'm doing here.

When I first made this a few years ago on a Lenovo Thinkpad, running it would quickly hang Chrome. Technology has advanced in the meantime, and I've limited both the area and number of iterations so you should be safe.

The idea came from seeing a short video explaining that you could implement a reaction-diffusion system in Photoshop by chaining filters, and then at some point finding out that the SVG spec allowed filters too.

It's slightly randomised each time!

Feel free to adapt and remix of course
by Bender | 2025-09-24 00:24:12+00:00
so maybe I didn't miss anything

You did not miss much in my opinion. AIX and HP-UX market share are much smaller than Linux now. There are some concepts that Linux could benefit from but that's down in the weeds. e.g. system management tools that can do very advanced configurations but also log what commands it executed in the background so it can be used to learn advanced techniques and quickly debug when something goes wrong.
by lamacase | 2025-09-24 00:24:56+00:00
Stuff Matters by Mark Miodownik might fit the bill? It's about the history and modern use of materials like glass, steel, concrete, etc. in everyday objects. Maybe not for very young kids. Wikipedia has a good summary of the content.

While most of it is pretty relaxing it opens with the author getting stabbed on the subway so watch out for that maybe.
by hackthemack | 2025-09-24 00:25:24+00:00
I was pondering similar thoughts. Will LLM assistants ossify our current programming languages? My limited testing seems to show LLM assistants do well the more popular the language is (more data in its training), so is the hurdle for adoption of something new going to get even higher?

In an alternate universe, if LLM only had object oriented code to train on, would anyone push programming forward in other styles?
by randycupertino | 2025-09-24 00:25:42+00:00
NY Mag loves these status mapping culture-obsession journalism "all the cool kids now are doing blah" pieces. Induces status brow-furrowing in their out-of-touch but trying to still be cool soccer mom readership who read it to catch up on the culture shorthand and still feel hip.

Today it's SF AI-kids, last week it was West Village Girls: https://www.thecut.com/article/nyc-west-village-neighborhood...

A few weeks ago it was Everyone is Cheating Their Way through College: https://nymag.com/intelligencer/article/openai-chatgpt-ai-ch...

NY Mag is simultaneously seduced by their subject matter while also being worried about aging, dealing with some class anxiety and lifestyle envy.
by aw1621107 | 2025-09-24 00:26:03+00:00
> if someone has gotten access to your system where they can run `coreutil` commands you probably have bigger problems than them running a couple of commands that leak.

Speaking more abstractly since I haven't looked at the CVEs in question, but an attacker directly accessing coreutils on your system isn't the only possible attack vector. Another potentially interesting one would be them expecting you to run coreutils on something under they control. For example, a hypothetical exploit in grep might be exploitable by getting you to grep through a repo with a malicious file.

A more concrete example would be some of the various zero-click iMessage exploits, where the vulnerable software isn't exploited via the attackers directly accessing the victim's device but is exploited by sending a malicious file.
by JohnFen | 2025-09-24 00:26:39+00:00
It sounds to me like you had two successes out of four attempts. That's actually an unusually high success rate!

If I'm reading it right, your two "failures" (scare quotes because I'd count the 2nd company as a half success) are the VC backed ones. VC backed companies are a particular kind of business -- maybe that's not the style that works best for you? But that's not the only (or necessarily the best, depending) approach to starting a business.
by gangtao | 2025-09-24 00:26:43+00:00
My feeling, work with LLM is like teaching kids

Dont say not to do somthing, always say do something instead

This positive instruction style works because it gives the LLM a clear target to aim for rather than a boundary to avoid. It's like telling a child "Walk carefully on the sidewalk" instead of "Don't run into the street"
by da_chicken | 2025-09-24 00:26:58+00:00
I don't think it's necessary to completely discard the idea. However, I do think it's important, at the end of it all, to ask: Okay, so what's the utility of this framework? What am I getting out of setting up my point of view this way?

I'm reminded of an old YouTube video [0] that I rewatched recently. That video is "Every Zelda is the Darkest Zelda." Topically, it's completely different. But in it Jacob Geller talks about how there are many videos with fan theories about Zelda games where they're talking about how messed up the game is. Except, that's their only point. If you frame the game in some way, it's really messed up. It doesn't extract any additional meaning, and textually it's not what's present. So you're going through all this decoding and framing, and at the end your conclusion is... nothing. The Mario characters represent the seven deadly sins? Well, that's messed up. That's maybe fun, but it's an empty analysis. It has no insight. No bite.

So, what's the result here other than: Well, that's neat. It's an interesting frame. But other than the thought to construct it, does it inform us of anything? Honestly, I'm not even sure it's really saying life is a form of programming. It seems equally likely it's saying programming is a form of biochemistry (which, honestly, makes more sense given the origins of programming). But even if that were so, what does that give us that we didn't already know? I'm going to bake a pie, so I guess I should learn Go? No, the idea feels descriptive rather than a synthesis. Like an analogy without the conclusion. The pie has no bite.

[0]: https://youtu.be/O2tXLsEUpaQ
by leakycap | 2025-09-24 00:27:06+00:00
> I didn't "miss a lot", I just ignored it.

Yes, so did many others and now it has blown up.

> Who cares.

I think Ellen Dash, André Arko, Samuel Giddins, Martin Emde, and even Mike McQuaid could be proposed as individuals who care. In addition to the hundreds of people commenting here.

> While I haven't used it professionally in a while, it's still the language I most enjoy working in.

Perhaps now that you're up to date on some important issues in the Ruby community, you can get involved and help right the ship so the language you love will exist in a few years.
by AdieuToLogic | 2025-09-24 00:27:38+00:00
> For the wishlist and purchase order, just think of the boilerplate you have to write to get 1 computation for variable data shapes, compared to doing what you want 2 times.

This example is simple enough to not have to use lenses for sure. Another example which may better exemplify appropriate lens usage is having properties within REST endpoint payloads used to enforce system-specific security concerns. Things like verifying an `AccountId` is allowed to perform the operation or that domain entities under consideration belong to the requestor.

> Copy-on-write types are easy if they are shallow, I'd question why they're so deep that you need inefficient lens composition to modify a deep value. We've already invented relational structures to deal with this. I'm assuming you care about history so copy-on-write is important and is not purely an exercise in wasteful immutability.

While being able to track historical changes can be quite valuable, using immutable types in a multi-threaded system eliminates having to synchronize mutations (thus eliminating the possibility of deadlocks) and the potential of race conditions. This greatly simplifies implementation logic (plus verification of same) while also increasing system performance.

The implication of using immutable types which must be able to reflect change over time is most easily solved with copy-on-write semantics. Lenses provide a generalization of this functionality in a composable manner. They also enable propagation of nested property mutations in these situations such that the result of a desired property change is a new root immutable instance containing same. Add to this the ability to generalize common functionality as described above and robust logic can be achieved with minimal duplication.

It is for these and other reasons I often find making solutions with immutable types and lenses very useful.
by breadwinner | 2025-09-24 00:27:40+00:00
Have you visited nytimes.com in recent months? Just this morning the top headline was about the lies Trump told at the UN. That's pretty controversial - the newspaper of record calling the sitting president a liar. That's not allowed in many or most countries, but it is allowed in the US. And Trump is suing New York Times for $15 billion, for defamation. That didn't intimidate NYT. They are willing to stand behind the articles they publish. If you can't stand behind what you publish, don't publish them.
by kevin_thibedeau | 2025-09-24 00:28:13+00:00
Don't forget that they ban-hammered anyone who advanced the lab leak theory because a global entity was pulling the strings at the WHO. I first heard about Wuhan in January of 2020 from multiple Chinese nationals who were talking about the leak story they were seeing in uncensored Chinese media and adamant that the state media story was BS. As soon as it blew up by March, Western media was manipulated into playing the bigotry angle to suppress any discussion of what may have happened.
by margalabargala | 2025-09-24 00:28:35+00:00
The difference between a contradiction and a revision is the difference between parallel and serial.

I'm not aware that the WHO ever claimed simultaneously contradictory things.

Obviously, rapid revisions during a period of emerging data makes YouTube's policy hard to enforce fairly. Do you remove things that were in line with the WHO when they were published? When they were made? Etc
by gangtao | 2025-09-24 00:28:43+00:00
I feel lots of search can be better replaced by LLM

Just like this one

The Hellfire missile travels at approximately 950 mph (1,530 km/h or 425 m/s). This is roughly Mach 1.3, making it a supersonic missile.

The Hellfire is an air-to-ground missile primarily used by attack helicopters like the Apache and predator drones. Its relatively high speed, combined with its precision guidance system, makes it effective against armored vehicles and other ground targets. The missile typically has a range of about 5-7 miles depending on the variant.
by osigurdson | 2025-09-24 00:28:48+00:00
I'm glad they have podman desktop. Personally though, once I realized that I can use the command line version without it (unlike docker in my experience) I uninstalled it as I don't really need the UI / KIND, etc. For me the command line is fine and having something where I don't have to first shell into wsl is great (it just runs it itself behind the scenes). Of course, Linux is generally better for development imo but this is a nice compromise on Windows.
by tbrownaw | 2025-09-24 00:30:17+00:00
> Its not really fair that crazy people are allowed to say crazy things then we, normal people, have to take the high ground and walk away. What if I don't want to walk away? Why do I have to leave a project like it's the plague because you said something insane?

This takes as axiomatic that people with incompatible beliefs in one area cannot work together in a different area.
by serf | 2025-09-24 00:30:21+00:00
imo it's more a driver thing than an os thing.

I can get arch/slack to work on weird hardware, what I can't do is get the promised hardware performance without specific (usually semi-closed) hardware drivers.

If you're relying on , say, rockchip features -- then you're boned without their support -- this is already a big enough heartach without the malware/data-mine angle (which is likely just as valid.)
by maroon_unperson | 2025-09-24 00:30:50+00:00
LLMs could also ease adoption of new languages by making hiring less of a barrier to using something more niche. It becomes easier for someone to hit the ground running and be productive even if they still need to put the time in to become an expert.

Instead I find myself more concerned with which virtual machine or compiler tool chain the language operates against. Does it need to ship with a VM or does it compile to a binary? Do I want garbage collection for this project?

Maybe in that way the decision moves up an abstaction layer the same way we largely moved away from assembly languages and caring about specific processor features.
by leakycap | 2025-09-24 00:30:51+00:00
> Most charging, in the context of consumer electric light vehicles, takes place at home overnight.

This is why I said "If you don't live where you park with access to low-cost charging"

> Fast charging is more expensive than [...]

... gasoline, often.

Which surprises people when I mention this, as they've been told electric is cheaper. A lot of truck owners don't own the place they call home.
by troy55_yort55 | 2025-09-24 00:31:24+00:00
Hey HN! We built something interesting at atono.io - feature flags that live directly in your user stories, not in LaunchDarkly.

The insight: Every time a dev wanted to flip a flag, they had to context-switch to another tool, find the right flag, talk to PM, worry about permissions, then context-switch back.

We realized the issue was around the story or issue object - so we rethought that.

How it works: Feature flags are built directly into stories - toggle them ON/OFF right where you're working Control by environment, customer segment, or location Based on openfeature.dev standard (so you're not locked in) No separate service, no extra $20/user billing, no permission tickets

What else we built: Stories that evolve with your work (not tickets that close and lose context) Chrome extension that captures full diagnostics for bug reports in one click AI tool outputs stay with the relevant work (no more "which ChatGPT thread was that in?") The architecture bet: We treat stories as mutable objects rather than immutable tickets. This lets us embed live controls (like feature flags, usage, etc.) directly into the work context. Free forever for teams up to 5. Just sign up and start using it.

Here's the deal: First 50 people who sign up, invite one teammate, and create a feature flag get our limited edition Capybara t-shirt (our Chief Chill Officer). Email info@atono.io with your username.

Find a bug, get a mug (of coffee)? We'll send you a $10 Starbucks card for the coffee you'll drink while we fix it.

Not trying to be everything to everyone - we specifically built this for SaaS teams who are building production-level products - Interested in your your advice on what we add in next - Try it and break it: atono.io
by renewiltord | 2025-09-24 00:31:32+00:00
Admittedly, public transport is garbage. And for the time we'd go to La Petite Baleen, a car is 0.5x the time. So in that respect I agree. In Mission Bay everything else is close by.

But I think perhaps if someone told me "We don't live well. I can only take my child to swim class on the weekends" I would think that somewhat strange.
by godelski | 2025-09-24 00:32:41+00:00
FYI attention wasn't originally purposed on AIAYN. Their main contribution was a fully transformer based network.

You could argue they didn't invent dot product attention nor transformers but they definitely formalized those so I'll leave that nitpicking to Schmidhuber lol. But the other stuff, they say just as much in the paper. It's easy to pass credit over to the ones who popularized a technique rather than the many people who developed it.
by cptnapalm | 2025-09-24 00:32:56+00:00
Fair enough on that. The problem I've seen (and don't have a good idea for how to fix) is on Reddit where the most terminally online are the worst offenders and they simply drown out everything else until non-crazy people just leave. It doesn't help that the subreddit mods are disproportionately also the terminally online.
by toomuchtodo | 2025-09-24 00:33:09+00:00
There’s over the road/long haul and end mile trucking. Agree the former will need some logistics around electrical power purchase agreements for stable pricing for mid trip charging between origin and destination, but depots where the trucks are back every night (<~500 miles round trip) are easily supported by depot owned and colocated charging infrastructure.

Still early days in the mobility energy transition (both light and heavy vehicles), so I think there’s a lot of room for electric TCO costs to decline.

(family member was a truck driver for most of their life, so familiar with the operating models)
by speff | 2025-09-24 00:33:42+00:00
Manufacturing:

> The United States is the world's second-largest manufacturer after the People's Republic of China with a record high real output in 2024 of $2.913 trillion [0]

I believe the US' manufacturing capability is the core of your comment and I also believe it's incorrect. Sure we don't manufacture fast-fashion or junk products and we may have lost quite a bit of tribal knowledge[1] with respect to that. But it's nothing that can't be re-gained.

And the benefits China and the Russia get from their spying programs? Americans by-and-large simply do not care about them. Denmark can do whatever they want with their tech as long as their citizens approve. Like you said, they're in a different position given their geographic location - thus, they have different priorities. But Americans do not feel like they have such an existential threat so they are (generally) not willing to give up their privacy.

Whether "reality" catches up to your predictions remains to be seen.

[0]: https://en.wikipedia.org/wiki/Manufacturing_in_the_United_St...

[1]: https://www.youtube.com/watch?v=3ZTGwcHQfLY
by breadwinner | 2025-09-24 00:33:54+00:00
The New York Times has published plenty of stories you could call controversial. Just this morning the top headline was that Trump lied at the UN. Trump has sued the Times for defamation, yet the paper stands by its reporting. That’s how publishing works: if you can’t defend what you publish, don’t publish it. The Section 230 debate is about whether large online platforms such as Facebook should bear similar accountability for the content they distribute. I think they should. That's the only way we can control misinformation and disinformation.
by leakycap | 2025-09-24 00:34:12+00:00
Working for others is a great way to support yourself while you build the framework of skills and routines that can support a business.

Freelancing or building your own businesses is more exhausting than having a job, so if you're feeling like a job might provide some relief - at least apply and try to get some interviews. You might be happier.

Don't be too hard on yourself in the meantime.
by ants_everywhere | 2025-09-24 00:34:14+00:00
analog computers don't generally compute by operating on symbols. For example see the classic video on fire control computers https://youtu.be/s1i-dnAH9Y4?t=496

OP's specific phrasing is that they "map symbols to symbols". Analog computers don't do that. Some can, but that's not their definition.

Turing machines et al. are a model of computation in mathematics. Humans do math by operating on symbols, so that's why that model operates on symbols. It's not an inherent part of the definition.
by AfterHIA | 2025-09-24 00:34:30+00:00
Bingo. This is Adam Smith's whole point in the second half of, "Wealth Of Nations" that nobody bothers to read in lieu of the sentiments of the Cato Institute and the various Adam Smith societies. Nations produce, "kinds of people" that based on their experience of a common liberty and prosperity will err against tyranny. Economics and autocracy in our country is destroying our culture of, "talk and liberality." Discourse has become, "let's take turns attacking each other and each other's positions."

The American civilization has deep flaws but has historically worked toward, "doing what was right."

https://www.adamsmithworks.org/documents/book-v-of-the-reven...
by softwaredoug | 2025-09-24 00:34:37+00:00
For inciting violence. Sure. Free speech isn’t absolute.

But along with fringe Covid ideas, we limited actual speech on legitimate areas of public discourse around Covid. Like school reopening or questioning masks and social distancing.

We needed those debates. Because the unchecked “trust the experts” makes the experts dumber. The experts need to respond to challenges.

(And I believe those experts actually did about as best they could given the circumstances)