skysight-inc/HackerNews huggingface dataset:
Yeah, nix-darwin is incredible. Use cases you mentioned are great; for me, I love being able to use my NixOS machine and MacBook to seamlessly carry around the same dev environment.

https://github.com/dustinlyons/nixos-config
>Why not give them a chance?

Why should we?
My philosophy on this is to treat C++ and C as completely different languages (as they actually are), like say Java and C or python and C. Yes it's nice that some part of the header file can be parsed in both languages and that most of the syntax is similar.

But once your expectation is that you have to do all the work at the FFI boundary it's less frustrating than to experience all the small mismatches as compiler errors or annoying runtime errors.
For the Mac context, you're running a VM as root before you even touch podman/docker. I'm confused how that's different.
As VC funding slows in the West, it's rising elsewhere
Not only for web pages - there are plenty of API requests where the connection overhead is far larger than the data payload.
It is very difficult to be a part of a different group. Even if you move there it would often take years to become a member, if you ever can get that much trust.

The idea is sound, but don't assume you understand the members enough to do a good job.
If debt SURPASSES gdp that means you need to be able to compare them, regardless of what else the phrase goes on to say about interest.

The way I would explain it to webdevs on this website is: the >= has been defined for these two types.

If instead they had written "debt interest will equal three-quarters of etc.." then you'd be 100% correct. As it is, the above poster is correct that a) debt and gdp have different units, b) the word surpass implies a comparison. All I'm adding is that there's an implied conversion: it's obvious that they mean the gdp of a year.
This is a terrible proposition.
Utopia and dystopia have lots in common for example their impracticality which gives excuses to rush things and do unacceptable sacrifices on the way to nowhere
A Career Ending Mistake
Semi nit (but semantically quite important): not `Optional<A> implements Monad<A>`, but `Optional implements Monad`. The reason many languages can't encode the `Monad` type class correctly is due to this fact: type constructors like `Optional` (higher-kinded types, in the lingo) are second-class in a lot of languages, so you can't refer to them directly in your type class definitions/implementations.
The practical upshot of this is that (similar to what's touched upon in the article) if you have a true `Monad` constraint you can use the `Monad` operations for any choice of `A` without requiring a different constraint for each possible `A` (which you would otherwise need, because there's no guarantee that `Optional<A> implements Monad<A>` implies that also `Optional<B> implements Monad<B>)`.
If you have sufficient machinery available (universal constraints, basically) you can hack around the lack of HKTs by using a constraint like `forall A. Optional<A> implements Monad<A>` and having some kind of type-level map function that gets you from `Optional<A>` to `Optional<B>` for any `A` and `B`. This is the trick people use in Rust, for example.
I make a number of infrastructure choices and it’s very helpful for me to know that Render is trigger happy with bans, shows misleading error messages and then doesn’t communicate.
Hey, I'm the author of the post. I did not post it to hacker news, but to the r/rust subreddit, where I think people had more context, and more reasons to be interested in it. Someone else posted the link to hacker news.

The title (which I indeed wanted to be a good catch phrase) was not meant to be an apology. English is not my mother tongue, so I may be misguided, but I meant "sorry" as "I am sorry about the state of affairs", not literally "I apologize to you, the sqlx library".
It took me a long time to realize that I actually prefer not using classes.

It's the small things in programming that can make a huge difference. It always felt like I should be using the C++ way because it was slightly dry-er and looked nicer, and I could have all these OO features.

Like when you see `int get_numer(void *r)` or Python's `def get_numer(self)`, or Go's `func (rational *Rational) GetNumer() (n int)`, you think: "how silly, why does the object pointer need to be in scope, just use `this`". But this tiny thing is liberating. It allows you to see that everything is just functions operating on data. And that a "method", is just a function that is taking _the entire object_ as a parameter...and hence a dependency. Which allows you to think: hmm, does this function really need to depend on the entire object...maybe it can be a separate utility function all by itself without any connection to the class. And maybe it doesn't actually need access to any of the other functions in the class...and maybe the class could be split up...etc.

I just watched a [talk](1) by Alan Kay the inventor of SmallTalk and the phrase "object-oriented" who never stops shitting on C++.

Yet OO is still absolutely everywhere.

[1]: https://www.youtube.com/watch?v=oKg1hTOQXoY
> It seemed pretty clear to me that they didn't want to head in for fear of confronting someone who can shoot back for a change.

This is a confusing statement. Isn't it good if police aren't used to confronting armed criminals?
Seeking asylum does not "bypass immigration laws". The right to do so is enshrined in those laws.
Perpetually Declining Population?
Wozmon, the ROM on the Apple 1 that fit in 256 bytes. Ben Eater did a good video (1) recently going through the 6502 assembly.

(1) https://youtu.be/SpG8rgI7Hec
The SF Fire Dept hates these things when they become random bricks and block emergency responders.

The San Francisco Fire Department “strongly disagrees” with California Public Utilities Commission’s decision to expand driverless vehicles in the city. The department released a statement below on Friday.

The Fire Department strongly disagrees with yesterday’s CPUC decision to allow commercial operations by the autonomous vehicle companies in San Francisco. We believe the ruling ignores public safety and emergency response interference that we presented to the Commission this week. The decision permits industry expansion without solving any of the underlying problems. We do not believe the industry has any incentive to remain at the table and solve their problems. These incidents with Public Safety are not going away and are in fact increasing. The Fire Department will continue to work with our Citypartners and the industry – if they remain willing – to improve the safety of the streets and community by improving the robotaxis ability to drive safely. The San Francisco Fire Department is not against modernization and new technologies but, any vehicle that endangers the people of the City and its visitors in danger and would put its passengers between a fire engine and a fire is not ready for prime time.

CAPTAIN JONATHAN BAXTER, SAN FRANCISCO FIRE DEPARTMENT
And a lot of patience for visa approvals.
And that attitude is why we are in a "death by a thousand cuts" scenario.

Even just the single plant alone is incredibly harmful: Coal power plants are estimated to cause an average of 25 (direct and indirect) deaths per PWh, 33 for brown coal. A 2GW power plant makes 17PWh per yeah, which extrapolates to 432 deaths per year.

https://www.statista.com/statistics/494425/death-rate-worldw...
Prioritizing Driver Speed over Children’s Safety and Wellbeing
One point you notice with the communist song is how devoid of humanity it is and instead sings in typical propaganda fashion how great the materialistic achievements are.
Hmmm, the "new" bit in the title seems to be over-selling things.

Taking a random example: https://software.nasa.gov/software/GSC-18031-1

It's description is: "Perl 6 DBPg PostgreSQL module"

Clicking the "Download Now" button instead re-directs to a GitHub repo: https://github.com/CurtTilmes/raku-dbpg

Last updated just over two years (!) ago.
I can't figure out how they attached the hammock. Looked up some more images online of rudders with stowaways but I don't see no net nor a place to attach besides the steering hinge thing (so you could attach a rope there, but where goes the second attach point?)
Ask HN: Impact of LLM's/ChatGPT on Accessibility
I'd like to know about stories of how chatgpt or even LLM's have impacted and helped better cope persons with a disability. It seems the potential is immense.

I'm interested in successes and failures. Maybe you've tried to integrate chatgpt into your routine, but there were obstacles that would need to be resolved before it could become a daily driver.

This is a broad question, feel free to share anything related, like new tools/apps you already use. Thank you.
In which day were newspapers considered trustworthy? _My_ newspapers were trustworthy but _theirs_ were not, just like today.

Here in America, very vitriolic, libelous, openly lawless newspapers helped lead to the US Revolution. We have much laxer laws about quality and stronger protections for the press than Britain as a result. We have a tradition of encouraging lies and counter-lies to be published.

The War of the Worlds seemed real to some people because it used the typical means of interrupting the show for breaking emergency news that people were used to at the time. It's not that radio was trusted. Some people were fooled. There's no real evidence of a national panic as a result, though. There were a great number of highly questionable newspaper articles claiming there was a panic, though, as papers will.
Can anyone recommend parenting books that are either from other cultures or from a long time ago? When I read articles like this, I nod along and agree that it all seems rational. But then I get a creeping feeling that all this over-optimization is a trait of contemporary Western culture and not necessarily the “best” advice for raising healthy kids, whatever best is supposed to mean. (I’m not sure.)

I think it would be insightful to read parenting advice from different cultures and eras and think about it from first principles.
Also the Rational usage example in C++ is using stack allocation. It's weird to then pretend like heap allocation is equivalent in the C example. I think making stack allocation work in this case would probably be difficult, but it's worth pointing out in the article that the choice is intentional and not a misunderstanding of non-new allocation in c++.

You could just use new() in the first example instead and avoid the whole issue.
These people keep surprising me!

Give women freedom of choice - not being married away at 16 at their parents' decision and having a control over their fertility - invariably means dieoff. Women never wanted to have more than one child! And that's not enough.

There is no way in the world to fix this, and the genie is out of the bottle. It is politically impossible even in the worst dictatorships to reverse this even if the need is so dire. Spain is not unique - the entire world is facing this abyss sooner or later and "later" doesn't even mean all that much later.

Any effective solution to the problem means an unbelievably heavy-handed crushing of even the most basic human rights as we see them now. Won't happen.
What do you propose we do? Do you have any ideas in mind?

Keep in mind that if the richest countries opened their borders for everyone in the world, at least hundreds of millions (if not billions) of people from the world's poor countries would immediately immigrate there, causing the rich countries to collapse, which would be no good for anyone.
Conveniently full right after you arrived, I take it?
I bet you don't mind European immigrants.... Why? Are you allergic to melanin?
And if denied, they get sent back, as it should be.

To you below

https://old.reddit.com/r/worldnews/comments/15priu2/germany_...

:)

As it should be.
"Are Greg and Emily More Employable Than Lakisha And Jamal"

5000 job applications with evenly weighted resumes randomly paired with names more commonly given to white children and names more commonly given to Black children. The "White" applicants were FIFTY PERCENT more likely to get a callback.

https://www.nber.org/papers/w9873

Here's one from Georgetown that follows performance disparity and wealth, with marked differences appearing in kindergarten.

https://journals.sagepub.com/doi/full/10.1177/23780231198317...

Here's an article from the fed discussing a study that shows the average white family has just under 5x more assets than your average Black family, and crucially, that intergenerational wealth doesn't play a big role in that:

https://www.bostonfed.org/news-and-events/news/2023/03/bosto....

There is so much more empirical proof that the US simply is not a meritocracy. You must be deliberately shielding yourself from it or astonishingly naive to think otherwise.
Got bankrupted by a runaway process? Might was well brag about it.
Increasing the number of qubits doesn't help unless the gate fidelities and coherence times also improve. Otherwise, the system quickly becomes a very expensive random number generator. In transmon qubit systems, I haven't seen much progress in these metrics over the last couple of years. IBM keep adding more qubits to their chips, but they don't seem to be able to actually use them.

After almost thirty years of development, ion traps have now reached a few ten qubits with reasonable fidelities. However, this requires shuttling the ions between trapping zones which is enormously slow (many milliseconds per gate). And scaling this to hundreds of thousands of qubits is a completely open question (none of the current techniques will work).
The addiction potential and the associated risks vary greatly from benzos to phenibut. Benzo withdrawal can kill you, pregabalin or phenibut withdrawal will cause only moderate discomfort.
TikTok users in UK to be left with ‘more toxic’ version of app, say campaigners
> And if denied, they get sent back, as it should be.

I don't know aboit Brazil. But in Europe that usually does not happen.
I wouldn't say it's popular yet, but it has surpassed most niche languages, and it is growing.

• https://lib.rs/stats

• https://redmonk.com/rstephens/2023/05/16/top20-jan2023/
The Wizard of Oz Approach (2016)
As a compassionate person, why don't you pay for people to immigrate over legally and then pay for their bills until they get settled in and find a job? Why do we all have to be forced to pay for your compassion through our taxes?
That’s because the Tijuana river delta is in IB and not Coronado. Sadly the TJ river periodically becomes an open sewer.
Big fan of React.

But it seems the frameworks around it are moving more and more into the SSR direction.
It’s likely that the wealth of those willing to do it has increased; when I had experience with it it was mainly blue-collar laborers stretching their dollars.
> anybody who has maintained a large repository of CloudFormation code will tell you its not a panacea.

CloudFormation is one of the worst IaCs out there, so it's not really a good example.

One really nice model is managed Kubernetes with IaC/GitOps via tools like ArgoCD or Flux CD. This eliminates the need for things like CloudFormation, Terraform, Ansible, Puppet, OS version and patch management, etc. - most of the stuff that those tools are used to manage is replaced by the cloud provider's management of the cluster nodes. This lets you focus on the application layer, which is where the business value is. IaC in this context is pretty seamless. It also makes you much less dependent on the cloud provider's specific APIs - Kubernetes becomes your interface to all that.
Thank you for the great summary
There's also virgl_test_server which runs the virgl protocol over a socket.

This can be used for OpenGL inside containers, by bind mount-ing the socket into the container (/tmp/.virgl_test).

Also useful for debugging with rr, even with the nvidia driver you use OpenGL over virgl with the environment vars __GLX_VENDOR_LIBRARY_NAME=mesa LIBGL_ALWAYS_SOFTWARE=1 GALLIUM_DRIVER=virpipe
We don't require this standard of human drivers. As evidence, note the 40,000 deaths/year.
For sure there are differences in the enemy if you consider us already at war with China and/or Russia. It's my personal opinion that WWIII kicked off the day Russia's navy left port and circled around Europe to get to the Mediterranean (Dec 2021), but we haven't technically declared war yet.

Its worth noting that Afghanistan may be less developed technologically but they have now successfully fended off invasions from both the Soviet Union and the US. Never underestimate your enemy in war, especially if you're Goliath invading David's home.
Thanks for the links.
I wonder if it’s entirely that, or if management fears that staff might somehow gain a benefit by taking obsolete hardware.
>causing the rich countries to collapse

In what way?
Thank you. You put into words what I was thinking.

The best paradigm in programming has to be procedural style. The cleanest code I’ve written and read has always been procedural. I even maintain a monster VBA Word Macro at work and - after some much needed refactoring - its pretty easy to understand (ignoring VBA’s warts).

The flow of logic and dependencies on data is much easier to follow in procedural.
GP here. I completely agree. Looking back, I wish I pushed harder to follow up and get the last piece of that data. It was a massive missed opportunity.
It's 100% good enough most of the time.
He probably hasn’t bothered to buy a WinRAR license ;)
I'm wondering if this approach could mean we'd one day be able to have CUDA running on non-Nvidia GPUs.
This is underrated advice. More than once, my spouse has promised my son something as we're about to leave that I can't deliver, guaranteeing a tantrum or at least some level of having to drag him along while he's sulking and disappointed in me.

The new family rule is: Don't promise the kid something you won't personally deliver for certain! Which means, don't promise anything on behalf of anyone else, even if that other person is well-meaning.
Honourable mention to fff even if only for its name.
Particularly function pointers may have different sizes than what you'd expect. Thus it's best practice to always use sizeof() for the specific type of pointer you are interested in if you need to know it at runtime just as with any normal non-pointer type.
Yes in the research computing world (HPC and similar systems, and some other sorts of shared resource) at least. On Linux-based machines you can limit resources otherwise, via PAM, or startup of interactive sessions in a distributed resource manager ("batch system").
You're making the parent's point. Why bother trying to model the entire concept of a "name"? Just have something to display on the screen (get the user to type it in and they can't complain when you display it back) and something to put on legal documents.
Britain has felt the shift to home working more than most countries
The same way the countries they are from collapsed. Environments have a carrying capacity.
And since they couldn’t afford it, they’d write cracks for it, which would end up in the West. The idea was let them get it free, and then the desire to write cracks is reduced.
> if the richest countries opened their borders for everyone in the world, at least hundreds of millions (if not billions) of people from the world's poor countries would immediately immigrate there

Why do you believe this would happen, given that internal migration between rich and poor parts of counties without internal travel restrictions is nowhere near that significant?

It's not like NYC collapsed from all the people leaving Detroit.
Small Business Tech Roundup: Google Goes After DocuSign and Adobe
Rereading this post 5 years later and with now a third child (2y) it's pretty close to what I would write today.
Absolutely not. That would imply that Chatbots are an optimal solution where the optimality criteria are short-term financial gains for mega-enterprises and the maladaptive instincts of humanity in the unnatural situation of being forced into a highly technological world.

Sugary cereals and desserts have taken over much of snacking today, doesn't mean it's a good thing.
And cause the poorest countries - already very dysfunctional - to have basically zero hope to develop. Making it a self reinforcing cycle.
Interesting coincidence, I've just talked about this in the article I published yesterday: https://alinpanaitiu.com/blog/complex-simplicity-of-static-w...

FAR Manager has been the place I lived as a Windows power user, I remember using it with a highly customized ConEmu which I carried around as a portable installation on a USB drive (on my keychain)

Whenever a relative or friend asked me to troubleshoot some problem on his PC (which was quite often), I plugged that drive in and instantly looked like I probably know what I'm doing.

I remember having plugins for navigating into DBs, archives, FTP, Android ADB filesystems, Windows Registry, processes, MP3 ID3 tags, MTP storage devices etc.

I felt like a monkey trying to type Shakespeare when I bought a Mac and did not have FAR Manager anymore. With fish shell and fzf I fulfilled most of my use cases nowadays on Mac.

Now, if only there was an Everything file search alternative, there really is nothing that matches that on macOS.
'Automated error handling' is a misfeature in a language where correctness matters. Perl and Python can use exceptions and there it makes sense. It makes no sense for a language without garbage collection and frankly the only system where it actually works well is Common Lisp, which has restarts. Without restarts, exceptions are just error codes but with spooky action at a distance.
It's a framework like NextJS. It focuses on static content generation first but allows you to make small parts of the page interactive (JS rendered) instead of making whole pages JS rendered in order to facilitate some interactive widget in the corner (hence the name Islands Architecture).

It also has an ability to mix and match components from different frameworks on the same page/site. I think this is mostly a gimmick though, no one should be pulling in multiple frameworks for a single page or site.
Rust is even more strongly typed than Go, so it reduces the chance of bugs even more. The borrow checker also reduces the chance of bugs. It was originally created just for memory safety, but it turns out that the ownership structures that it enforces are less bug prone.

It's quite similar to how using immutable data structures leads to less bug prone code.
> There is nothing inherently "civilised" about Europeans or Catholics.

Change "civilised" to "domesticated", and you're there.
Semantic HTML has excellent potential. I personally like the style where footnotes for running text are placed in the right-side margin, in a smaller and/or semi-greyed font, and maybe with details/summary expanders.

But every implementation of styles like this seem to require some sort of detailed knowledge of CSS to wrangle it into working order.
The Sierra Club is a horrible organization founded by a horrible person (Muir).

Their opposition to zero carbon energy projects such as hydroelectric and nuclear have served to increase our dependence on fossil fuels.
Damned if you do, damned if you don't.

I understand why one wouldn't want to accept them despite their predicament; these stowaways are generally unskilled and don't speak the language of their host country. There's social integration and investment to consider and inviting even one sets a precedence for others to follow.
Most countries have investor visas or something similar that not only grants you entry but also residency
Like many people with a libertarian outlook, you don't seem to understand that laws aren't the most limiting factor in most people's lives. Simple economic realities prevent most people from moving to "whatever zip code they want."

Every disadvantage seems trivial if you ignore the actual barriers they impart.
That’s the Hamburg Court for you. It is well known for not having any clue about IT and often getting the most ridiculous results.