MurphyA/hacker-news huggingface dataset:
by database64128 | 2025-07-20 05:33:23+00:00
> One problem with Go is the lack of fine-grained control over allocation. In particular, no arena allocation support. How does C# compare?

Go has an experimental arena package [0], but the proposal is on hold and the code may be removed in the future.

C# does not support arenas. But it does provide the stackalloc keyword, whereas in Go you kind of need the compiler's blessing for avoiding heap allocations.

> Another problem is relatively high cost of FFI interop with C. It's gotten better, but Go still needs to switch stacks, etc. How is C#?

Async in C# is implemented as stackless coroutines. Calling into FFI is cheap.

> How does C# compilation speed compare?

In my experience, release builds are a bit slower than Go.

> Does the compiler optimize more aggressively than Go (which does very little optimization)? I've heard the C# AOT compiler is lacking, but it's not clear in what way.

Not much to say on this, but with each new .NET release, a core .NET team member posts a blog post about performance improvements in the new release. The most recent one: https://devblogs.microsoft.com/dotnet/performance-improvemen...

> Does C# have the equivalent of "go run"?

dotnet run

> What's the package management situation like?

NuGet Gallery [1] is like a centralized DLL registry. Definitely not as good as Go.

> Can you use LINQ against databases like Postgres on Linux, without having to buy into a lot of Microsoft/.NET stuff?

Probably not. This is usually done with EF Core and the Postgres provider.

[0] https://github.com/golang/go/issues/51317

[1] https://www.nuget.org/
by f1shy | 2025-07-20 05:35:47+00:00
I don’t know at this point if you have fun trolling around or what.

“If you have two power supplies at different voltages and connect them together, there will be a finite resistance through the cable and Ohm's Law applies.”

That is an error that only a person with minimal knowledge from TV shows can do. That is absolutely bot true for regulated power supplies, SMPS or Linear, becauae (even if the later is called linear) they are not linear. So no, you cannot apply Ohm’s law.

“The rectifier you're referring to is the flyback diode in that case. But now as you've said yourself, the power supply will shut down if the voltage coming in is too high, which is frequently due to either a polyfuse or an efuse tripping”

Noooo I’m talking about the diode at thr end of any SMPS, buck, boost, fly-back or whatever type, or even a linear regulator. Is about how a regulated power supply works: as the voltage goes up in the output, it shuts down, stops the output current, in an intent to liwer the voltage. There is no fuse in 99% of supplies out there, because they have active protection. Is called a transistor, not a polyfuse.

“I also have quite literally thousands upon thousands of other engineers, books, universities etc backing me up”

That is what you think, but you are wrong. Sorry mate. If you would just go to a lab and put 2 power supplies in parallel, like I do pretty much daily, you will see you are wrong.

You are the most ignorant, obstinate and arrogant person I’ve seen in HN… and here is full of it. I’m 100% sure you studied CS in a medicre university, work as sw dev, and think you can talk with an EE. You say you work with electrical stuff, but your other posts reveal you are a SW dev. Obviously you are a liar, and trying to be right when you are sooo obviously wrong.

I do care what you do, because with such an arrogance and incompetence together, you are going to get somebody hurt or killed. Please start studying and stop being so stubborn when you are just wrong!
by ggm | 2025-07-20 05:36:57+00:00
If they used homomorphic third party checks, they wouldn't be in your search. It's none of their business and they can't know.

Look I get it, I'll probably be in VPN too sometimes. But you kind of delivered my message: you hate it, you don't seem to think a LOT of parents will want it.

Clean feed DNS is only so useful.

I'm guessing you also don't like MyGov ID either. Or Hawk's Australia card. Personally I like one stop shop for my tax and medicals and centrelink.

So what abuse specifically are you referring to in "this power" and abuse? Police access? ASIO access?
by zozbot234 | 2025-07-20 05:38:14+00:00
> Idiomatic programming in a functional language requires garbage collection.

Rust has functional programming features and no garbage collection, because the borrow checker can tell when a closure will outlive the references in its captured environment. We used to think that would not be feasible other than perhaps in very special cases - hence the need for GC to keep that environment around - but Rust proved that wrong quite convincingly.
by 9x39 | 2025-07-20 05:39:08+00:00
I blast my friend who works at a regional bank chain about new failures by banks to protect their customers from scams. He reminds me that frequently, if a bank gets between a customer and moving their money as they wish, they can quickly get as angry at the bank as they will the scammer.

My righteousness somewhat dulled by this conundrum, I usually slump in my chair and wonder again how to protect the elderly and simple in a global connected world.

Maybe solving a coordination problem here between banks? A SAR-like mechanism but a “friendly” one for fraud victims that require all banks to coordinate on and slow this customer down from playing into the scam? Some kind of 3rd party prepared to reach out not unlike a fraud report and gently try to get the victim to see the scam that’s wound around them?

Of course that’s now just one more way we’re owned, needing permission to debank or move? Ugh. I worry because every elderly family member I have, I think, has talked to me about suspicious calls and scams, some progressing quite far before a friendly observer intervened.
by conradludgate | 2025-07-20 05:39:14+00:00
I think it's reasonable enough. The author already argued that there are reasons for non GC languages to exist, even if the performance doesn't matter to them.

One interpretation of the article is just the author doesn't personally like the borrow checker, but another interpretation is the author saying the borrow checker is just a bad abstraction.

So under the assumption that we don't have a GC available, what else can we compare the borrow checker against?
by 0xDEAFBEAD | 2025-07-20 05:40:28+00:00
BTW, just for some perspective here. According to Our World in Data, your annual probability of dying in a road accident might be on the order of 1 in 10,000 to 1 in 100,000:

https://ourworldindata.org/grapher/death-rates-road-incident...

Compare with coronal mass ejection:

"In 2019, researchers used an alternative method (Weibull distribution) and estimated the chance of Earth being hit by a Carrington-class storm in the next decade to be between 0.46% and 1.88%.[45]"

https://en.wikipedia.org/wiki/Coronal_mass_ejection#Future_r...

If we take that number at face value and annualize it, your annual risk of seeing a serious solar storm (power restoration could take months or years) is on the order of 1 in 1,000. 10-100x more likely than dying in a road accident.

So why is it that you wear a seatbelt, yet we're not prepping for a serious solar storm? Humans are much better at thinking about "ordinary" recurring risks like car accidents, than "extraordinary" civilization-scale risks.
by Arainach | 2025-07-20 05:40:39+00:00
The number of mice has grown exponentially. It's not clear anyone could have kept up.

Millions, probably tens of millions of people have jobs trying to manipulate search results - with billions of dollars of resources available to them. With no internal information, it's safe to say no more than thousands of Googlers (probably fewer) are working to combat them.

If every one of them is a 10x engineer they're still outnumbered by more than 2 orders of magnitude.
by android521 | 2025-07-20 05:40:54+00:00
wow, you just havn't lived through other systems (just 100x more sufferings). People in the west just don't know how lucky they are and try to destroy the best system human have even known. Yes, the current system can be and should be improved. But you learn a bit about modern history, you would realize that socailism or communism are hell compared to what you have right now. Because in the real world, socialism or communisim inevitably leads to concentration of power as those in power are in charge of redistribution. History and millions of starved people should have already taught us that it would only lead to hell.
by satwik | 2025-07-20 05:42:05+00:00
Hi, author of the repo (https://github.com/satwikkansal/wtfpython) here, pleasantly surprised to wake up to this thread about it. The intention of the project is not to put Python in a bad light relative to other languages, the intention was to explore it more deeply through (sometimes contrived) snippets that give non-obvious outputs. I believe for a regular Python programmer, the "Slippery Slopes" section is a must-know. The first section (Strain your brain), does contain some patterns that you may not ever see in real world, the goal there is to just learn about internals. Agreed some of them are very obvious for a well-learned programmer, and some of them aren't even Python specific, it does help a lot of beginner to intermediate programmers. I remember it being given as a supplementary material in one of the CS-based course.

It is curated with something-for-everyone approach, I expect people to learn a thing or two about Python / CS after going through the snippets. I haven't updated it in a while in a major way, but looking at the feedback I'll try to organise them better, and add new snippets (I have a long personal list that I maintain) in a future release!
by ezschemi | 2025-07-20 05:42:14+00:00
There is the case of a German Green Card holder being detained: https://newhampshirebulletin.com/2025/05/09/nashua-german-am...

There’s also some tourists being detained, e.g. https://www.dw.com/en/german-nationals-us-immigration-detain... One common thread seems to be past DUIs, misdemeanors and infractions.
by rpcope1 | 2025-07-20 05:45:01+00:00
Just use some Reolink or similar ONVIF cameras like Axis or Dahua. Block traffic from them to anywhere other than your NAS. They're pretty simple, mine have the ability to just FTP captures to a given system, and thus I've got redundant captures (on a system with a bunch of drives, and on the microsd cards in the cameras). Maybe there's some spooky backdoor crazy way they can phone home, but I doubt it given how they're PoE and access to basically every other system is locked down my firewall.
by bilbyx | 2025-07-20 05:46:30+00:00
Stock price alone doesn't tell the full story. Pat Gelsinger was brought in to fix long-term structural issues at Intel - things like rebuilding its foundry competitiveness and securing leading-edge node capabilities. These aren't quick fixes and takes years to pay off. Yes, the TSMC discount issue hurt, but that also speaks to broader industry tensions and strategic missteps that predates Gelsinger. Letting him go before the turnaround had a chance to work seems shortsighted.
by Perenti | 2025-07-20 05:46:37+00:00
I believe the simple answer (vs complicated truth) is that the donor cell, a fertilized egg, is in a state accepting a not-quite-formed nucleus. There are no male cells that can get into that state AFAIK, possibly excepting pluripotent stem cells that are somehow convinced to undergo ovogenesis.

The truth is of course much more complicated than my limited understanding.
by bryanrasmussen | 2025-07-20 05:46:56+00:00
>Stated more tersely: the human proclivity to travel and share immune information with peers is a strength, not a weakness.

hmm, ok, since your profile says you study epidemiology sometimes I guess that's a totally reasonable take I hadn't considered. I was of course going off the stuff that was going around during Covid's height when people would refer to theories that faster and increased international travel would lead to more pandemics, and that Covid worked as predicted by that theory.
by noodletheworld | 2025-07-20 05:48:10+00:00
There is a fundamentally unfortunate reality here which is quite problematic.

Namely, you don’t deserve to be paid for working 8 hours if you only worked for 30 minutes over an eight hour period.

I don’t care if you personally agree with that or not, the reality is that businesses believe it.

That means, sooner or later there will be a great rebalancing where people will be required to do significantly more work; probably the work of other developers who will be fired.

It’s fun for home projects; but the somewhat depressing reality is that there is no chance in hell this (sitting around for 7 hours a day reading reddit while Claude codes) will fly in corporate environments; instead, you’re looking at mass layoffs.

So. Enjoy it while you can folks.

In the future you’ll be spending that 8 hours struggling to juggle the context and review 20 different tasks, not playing with your kids.
by throwitaway012 | 2025-07-20 05:48:45+00:00
I’ll bite because I get where you’re coming from. But the truth is the things that make my life good aren’t necessarily expensive things.

Being healthy, getting to live some place I like, enjoying the outdoors, street food, underground music. Baking and cooking with my wife. Taking my dog to the park. I’m grateful every day.

Once I tapped into what really helped me enjoyed life I realized I definitely need money, but not necessarily astronomical amounts.

You need to get in touch with what really gives you moments of joy. Don’t follow other people, understand yourself.
by phatskat | 2025-07-20 05:50:21+00:00
> Their internal browser was a custom stripped down 5+ years old Electron or Chromium Embedded Framework monstrosity, begging to be exploited somehow.

While all true, the (correct) choice to only allow signed authenticated URLs effectively killed one of the parts of BakkesMod that I was super excited to use. I don’t think forcing it was the wrong call, I do think not allowing me to bypass the security warning _somehow_ is loathsome.
by jeeyoungk | 2025-07-20 05:50:51+00:00
Definitely agree that goroutines don't suck; it makes go into one of the only languages without "function coloring" problem; True N:M multithreading without a separate sync and async versions of the IO libraries (thus everything else).

I think channels have too many footguns (what should its size be? closing without causing panics when there are multiple writers), thus it's definitely better "abstracted out" at the framework level. Most channels that developers interact with is the `Context.Done()` channel with <-chan struct{}.

Also, I'm not sure whether the go authors originally intended that closing a channel would effectively have a multicast semantics (all readers are notified, no matter how many are); everything else have pub-sub semantics, and turns out that this multicast semantics is much more interesting.
by zozbot234 | 2025-07-20 05:51:23+00:00
You can absolutely "go fast and break things" (i.e. write prototype-quality code) in Rust, but it requires a lot of boilerplate that will be very visible in the code, and will also make it comparatively easy to refactor the prototype into a real production-quality implementation. You can't really say this of any other languages AIUI. What often happens instead is that the prototype is put in production more or less as-is, without comprehensively fixing the breakage. Rust makes it very clear how to avoid that.
by roenxi | 2025-07-20 05:51:53+00:00
Those definitions of exp are all immediately obvious and nearly the definition of textbook, every university calculus course covers them. That is the issue with defining interesting as novel - nothing generally known is novel any more. And they don't require any special maths - sum_{i=0}^\infty z^n/n! is literally just multiplication and addition.

The long and short of it is it just isn't possible to tell someone that their problem isn't interesting. Interest isn't an inherent property of an equation, it is the state of mind of the person looking at the equation. And in this case the x+y/xy is a classic interesting puzzle despite (really because of) how well known the solution is.
by grewil2 | 2025-07-20 05:52:14+00:00
Let’s not forget Amiga 3000UX - a workstation released with Amiga Unix, a full port of AT&T Unix System V Release 4 (SVR4). Notable users include Free Software Foundation staff programmers who used it at MIT to help further some early development of the GNU operating system.

https://en.m.wikipedia.org/wiki/Amiga_3000UX
by vlovich123 | 2025-07-20 05:54:06+00:00
It’s important not to confuse entertainment with a serious understanding of the consequences of systems. For example, Asimov’s three rules are great narrative tools because they’re easy for everyone to understand and provide great fodder for creatively figuring out how to violate those rules. They in no way inform you about the practical issues of building robots from an ethical perspective nor in understanding the real failure modes of robots. Same with philosophy and self driving cars - everyone brings up the trolley problem which turns out to be a non issue because robotic cars avoid the trolley problem way in advance and just try to lower the energy in the system as quickly as possible vs trying to solve the ethics.
by light_hue_1 | 2025-07-20 05:54:38+00:00
> To reach this, Tan has committed to investing in recruiting and retaining top talent; "I believe Intel has lost some of this talent over the years; I want to create a culture of innovation empowerment."

So that means they're going to start paying well and treating people well? Right?

Because compared to FAANG Intel is a big paycut. Particularly in ML the gap is quite large.
by JackYoustra | 2025-07-20 05:54:55+00:00
(while I think this isn't the affordability driver) this point about prices isn't really true - compare the graphs of two markets: one with a horizontal demand curve (perfect competition) and one with a downward-sloping demand curve (monopoly) - the first will have no deadweight loss, the second will have substantial deadweight loss.

Markets tend to the second and need state intervention in order to prevent the proliferation of monopolies. Functionally this is intervention every time price coordination happens, which... is pretty clearly what AirBNB is doing!
by nemothekid | 2025-07-20 05:55:16+00:00
I don't mean to imply that writing a graph in C++ is impossible. It's clearly possible in modern C++.

My contention is treating indicies-based management as some tedious, manual workaround. Unity's ECS is written in C#, which has both a GC and the language expressiveness for an actual graph objects, but has adopted an indicies based system. It works, and is performant, so it isn't a mistake for the compiler to herd users down that path.

In a similar vein, the Linux codebase is full of completely legitimate and readable uses of goto, but we are perfectly happy with languages that force us to use structured control flow.
by abenga | 2025-07-20 05:55:43+00:00
The road outside my house was widened into a highway more than five years ago. To this day, Google Maps still asks me to take detours that were only active during construction. I have reported this ad nauseum. Nothing. It also keeps telling me to turn from the service lanes onto the highway at points that only pedestrians walk across. More than once, it's asked me to take illegal turns or go the wrong way up a one way street (probably because people on motorbikes go that).

Whatever method they use to update their data is broken, or they do not care about countries our size enough to make sure it is reasonably correct and up-to-date.
by GeneralMayhem | 2025-07-20 05:55:48+00:00
Yeah, I know that's how it works under the hood - and why you have things like all integers with values in [-5, 256] being assigned to the pre-allocated objects - but I don't think it's a particularly useful model for actually programming. "Pass-by-reference with copy-on-write" is semantically indistinguishable from "pass-by-value".
by SkiFire13 | 2025-07-20 05:56:19+00:00
> Lastly, the unstable specialization feature also deals with lifetimes, which as I mentioned is the feature's biggest obstacle on the way to stabilization.

The issue is really that `specialization` *has* to deal with lifetimes, even when there is apparently none. The example core with `Read` and `Read + Seek` also suffers from lifetime issues: some type could implement `Seek` depending on some lifetime and this would make your specialization unsound. For this reason `min_specialization` does not accept your specialization.
by noodletheworld | 2025-07-20 05:56:55+00:00
It doesn’t matter what downtime task it is.

You won’t have time to do it; it’s naive and ridiculous to expect that businesses will just let people goof off for 7 hours a day.

Regardless of the output they generate.

Anyone who doesn’t believe this has never had to manage budgets and staff.

It’s the “AI utopia” people making vague hand wavey motions about post-scarcity.
by roenxi | 2025-07-20 05:58:12+00:00
Like when AMD decided that Nvidia was barking up a crazy tree when they started targeting general purpose compute with their GPUs instead of gamers? Companies miss opportunities for high-margin products all the time. There is every chance there is a huge market for high-RAM GPUs, the demand has only started appearing in the last few years. Margins could be anywhere in the space right now. I don't think its been tested, if there is a high-ram but otherwise mid-range card I'd like to know about it.
by cornholio | 2025-07-20 05:59:08+00:00
While it's zero proof, since the data used for training is human generated, you raise an interesting point: the financial stakes are so high in LLM research that we should be skeptical of all frontier results.

An internet connected machine that reasons like humans was by default considered a fraud 5 years ago; it's not unthinkable some researchers would fake it till they made it, but of course you need proof of it before making such an accusation.
by MangoToupe | 2025-07-20 06:00:01+00:00
> You wouldn’t just have a frozen snapshot of knowledge, you’d have a tool that can help people use it, even if they’re starting with limited background.

I think the only way this is true is if you used the LLM as a search index for the frozen snapshot of knowledge. Any text generation would be directly harmful compared to ingesting the knowledge directly.

Anyway, in the long term the problem isn't the factual/fictional distinction problem, but the loss of sources that served to produce the text to begin with. We already see a small part of this in the form of dead links and out-of-print extinct texts. In many ways LLMs that generate text are just a crappy form of wikipedia with roughly the same tradeoffs.
by verisimi | 2025-07-20 06:00:29+00:00
You seemed to be frustrated at the lack of alternative, so I pointed out that the alternative is to ignore politics.

From this latest reply it seems you are heavily invested on one side of the political spectrum.

Surely you can see that if you have a specific and highly involved position on one side of the political spectrum, when your side is not winning, it will be losing. There can be no alternative.

What you seem to really want is complete dominance of the spectrum - this is the alternative you really seem and I think you are frustrated not to be achieving it. But would you really want to impose your opinions and 'help' on everyone, whether they like it or not? Maybe you would, I don't know.

Anyway, I'll point you back to my original point. The alternative is to let politicos play their games and try to remain personally uninvolved. This is the path to sanity.