skysight-inc/HackerNews huggingface dataset:
Perhaps:

* https://old.reddit.com/r/Parenting/wiki/recommended_reading
I've only ever encountered "Do you have a problem with that/x?" as a challenge. Can it be used otherwise? Probably, but a native speaker would know how it's going to be received especially in a contentious topic like politics.
Show HN:Very efficient directories navigator on Bash
Some epoxy putty and a hook with a flat flange could make a viable hammock attachment in about 15 min.
I made a web version of a huge book written by my former professor/boss. It definitely used 6 heading levels, maybe even more.
> The situation today with different travel capabilities for holders of different passports is somewhat like apartheid.

This isn't new. You seem to forget about the infamous "boat people", or forget how some Jewish refugees were denied asylum in US or Canada at the dawn of World War II.

> Our generation deserves to be described badly by future generations, for the issues we systematically ignore.

No, the mafia who put these people on these "rafts" and exploit their dreams, rob them, assault the women and sell some of them into slavery are the ones to blame. The US, UK, French leaders who made a mess in Libya without thinking about the consequences of their action are also to blame. Libya has literally turned into a giant open air black slave market.

https://time.com/longform/african-slave-trade/

"our generation" isn't to blame, I didn't vote for western armies to topple Gadhafi, no matter how bad he was, and then try to pull the exact same stunt in Syria, which became infested by terrorists who then perpetrated terrorist attacks on European soil that made hundreds of victims, because western leaders decided to finance "freedom fighters" that turned out to be allied with extremists.

Gadhafi was a bloody dictator, yet Libya was one of the richest nation in Africa and provided 10s of millions of jobs to sub Saharan Africans, which helped feed even more people. The western leaders that decided that chaos would be better than order and stability are the one that needs to be "described badly" now and not in the future, not me, not the common folk that didn't agree with all this.
Show HN: Awayto v2 short demo; an actual all-in-one framework
Hey folks, just putting this up as a demo link for people to try out. It's a project I've been working on since January and in light of recent framework posts lately I figured I'd start talking about my own.

The link is a demo site of Awayto v2 [1] (ignore the front page info that's all from version 1). Awayto [0] started out as a quick deploy app which grew to exist via AWS. I felt the need to make something that wasn't so closely tied to cloud infra, and Awayto v2 is that. Currently deployed on hetzner vms, using Tailscale for networking, there is a great deal of things going on. There is a local installation path planned, as long as you provide your own servers, etc, as it all just works on Tailscale anyway. I'm still working on docs, but the goal is to spit out _everything_ a dev might want to control in their stack. My current version of deploying to hetzner sets up 7 servers (2 ns, exit, build, app, db, svc). Git profile [2] for more info, tech stack info.

This is just a short demo and will only be up a limited time. There's no email validation or anything, gibberish is welcome. You are not being tracked. I know I need how-to docs, video assists, and all that. Slow and steady. It's being hosted from a single warehouse in the Pacific Northwest, be kind. Caching is in play and not perfectly tuned so maybe wait a few minutes if something doesn't automatically show up. Any feedback is awesome. Cheers!

[0] https://github.com/keybittech/awayto
[1] https://github.com/jcmccormick/wc
[2] https://github.com/jcmccormick
Plus subtitles: Dum dum da da daaa dum, …
If the Grand Canyon wasn’t so interesting to look at (e.g. more like Black Canyon that is now lake Mead) it probably would be flooded today.

And people would be arguing that we need to keep the levels of lake Gread high or something.
Security, food availability, housing, job market, social security, etc.

You can't just increase the population of a country and assume everything will continue to work: many parts of the economy have momentum and need time to adapt, and a sudden change may break down existing balances.
I mean it is that simple then, if you are from a different country and not wealthy you have no chance.
Nope, just saw their blog post about it recently.
Wouldn't this encourage others to take the same risk? Not all will succeed. It'd become some sadistic Hunger Games-esque style of immigration control.
Most of "poor people" in USA would be considered above average in other countries and continents.
Why? Something to do with static or dynamic linking?

Anyway, I'm almost sure I've read multiple times on HN that SBCL can do it, in some threads about Lisp, including recent ones.
I write code every day and I still had to ponder your question for quite a while before I could think of a data structure I use regularly by name.

It is not exactly useful knowledge to keep top of mind. It is not like you need to look up how to use daily data structures. I had an easier time remembering the names of data structures I almost never use, or even have never used, as retaining their names actually has some usefulness.

In an interview situation, I expect I would also give up with stating I could not recall any to save the awkwardness of sitting there silent for half an hour racking my brain.
This all seems pretty recent and by American authors. I'm asking for more of: how do Indian/Chinese/Japanese/Mexican parents raise their kids? How did 19th-century American parents raise their kids? And so on.
If they were indeed seeking asylum as stated in some of the coverage of this, please remember that seeking asylum is a right under the UN declaration on human rights, and is very different to "illegal immigration".
Whataboutism very much, but to entertain you:

Yes, what about them?

You conflate individual discomforts with numerous people actually dying or suffering lasting physical damages. Who are you to pretend your personal idiosyncrasies and weird preferences were more important than society as a whole?
You can come close to that time complexity on a single CPU by using multigrid methods.

https://en.wikipedia.org/wiki/Multigrid_method

Unless of course your matrix has a prohibitively complicated structure.
I've posted a short article about the javascript .find() and .findIndex() methods. I hope it's informative and useful for some of you. Please reach out with any comments, queries, ideas, thoughts, criticism or banter!
> I won't make money from "russians" anyway so please use this "license" and may be you will stop to produce those cracks!

Well it's not like they could afford it when the average monthly wage in the '90's was something like 50 bucks.
No matter how free code is, if it can't prove to me what it does and it's design decision, it may as well not exist at all.
> Can you expand on that? I'm not involved in the field, but there certainly exist many low qbit machines with varying technologies around the world that can already be used for calculations. Yes, they're nowhere near big enough to be useful yet, but qbit counts in the biggest machines are multiplying every year similar to Moore's law, so that seems to be just a matter of time.

I'll believe it when I see it. Yes, machines exist, but so far I have not seen one single convincing application that makes it better than a classical computer. Not saying it can't be done, but for all the hype around quantum computers, so far the results are dismal. (And I used to work in a relevant field.)
Why is your immediate assumption that immigrants cannot work and support themselves and their families just like natural born citizens?
Everyone being able to check whether you’re in an area without cell reception does not seem like the best of ideas.
I am curious how that is useful at all? I imagine prototyping and the set of libraries that you have is quite limited compared to something like Python. You're also limiting yourself to a much smaller pool of developers which have to intersect both finance and Haskell! I suppose that last point is an advantage of some sort since that filters out a huge portion of "normie" applications.
From that same post, though, referencing the C 11 standard

> "All pointers to structure types shall have the same representation and alignment requirements as each other."

And so the concern wouldn't apply to this pattern?
Now that I'm working from home I voluntarily go to a co-working space. Interestingly, it has an open-office plan for the basic membership (although you can pay 6x and get a private office if you want). I find that I really like going there and I can concentrate fairly easily if I'm in that gear. The problem with working from home is that although you can have a private office with a really nice set-up, you really are completely by yourself. I am single and do not have roommates or pets, so it is just me and the furniture here. That's fine for a while, but there is something nice about just having other people walk past you once in a while.
The naivete to believe that consumers driving company sales even realize that performance is something they need to care about.
I agree that we haven't found a "killer app" or really figured out what it's good at. We may not. Look at blockchain, there was lots of promise and it's actually pointless. AI wont be like that because you can do stuff with it, but maybe it wont coaless into something really game changing the way computers have. Maybe it will.

Anyway, what's interesting to me it getting to the core of what it really is good at. You can do a lot of things with AI but it's a poor tool for a lot of them. So what fundamentally is it uniquely helping with?

There was the book "prediction machines" that proposed AI is reducing the cost of prediction. It's now outdated and useless but not before it wasted countless businesses time looking for predictions they could automate. At least it was an interesting framing. I haven't really seen one since.
If the best and brightest people leave the country - how is it going to improve?
Living paycheck-to-paycheck is quite often a lifestyle choice showing more lack of planning and of financial skills than poverty.
There are PAM croup and namespace modules to limit resource use and isolation on Linux-based systems. Obviously they're using the same bases as containers.
Potentially the most substanceless article I've read this year.
Services that are "trying to make a VC rich" are a double-edged sword. They are prone to "moving fast and breaking things", sudden business model pivots and dramatic pricing changes.

On the other hand, they are often heavily subsided by aforementioned VCs in the name of building momentum. So if you use them cautiously with all this in mind, you can often treat it as an informal piece of redistributative taxation.
If you’re concerned about electronic waste specifically you’d never buy a new computer, only repair computers destined for the trash.

Concerned about it in general is appropriate for governments and large companies, of course; they can make a dent.
And were you able to connect to that server from some other device?
Why the world’s best vanilla is so easy to steal
That is not the only possible vulnerability.
No, they entered the country legally as asylum seekers.
Sacrificial anodes, zinc blocks cast on to a steel bar which are then welded to the hull.

But those are usually submerged full time.
Being a welfare recipient in Germany earns you vastly more monsy than working hard in Nigeria. Almost every single Nigerian has a direct economic interest to get to Germany.
Passports were originally to help merchants cross war zones safely.
I often recommend Apple refurbished to friends who are strapped for cash, the argument being that it’ll last longer and be cheaper over the long run. So far haven’t really run into an issue with this. Call it the Sam Vimes theory of computer upgrades.
New Anti-Consumer MacBook Pros – Teardown and Repair Assessment [video]
I know several very successful entrepreneurs and I know quite a few people with rich parents. I don't see much of a correlation.

In my perception many of the rich kids lack the drive to work as hard as you need to, to become a successful entrepreneur, instead opting for a safer route. Granted, if you are from a really poor background and live in the US without much of a social safety net, I could see how that could hamper your prospects, but that's hardly a problem where I'm from.
Yes, one group wants as little to do with the government as possible and one group wants as much as possible to do with the government.
Indeed. It's super easy to create an opaque type in C: forward-declare a struct. So in the header:

struct Rational2;
struct Rational2 *make_rational(int,int);

Then in the file:

Rational2 *make_rational(int n,int d){
return (Rational2 *)new Rational(n,d);
}

void del_rational(Rational2 **pp){
delete (Rational2 *)*pp;
*pp=nullptr;
}

And so on. You could probably arrange for it to be called Rational in both languages, starting out along these lines and then taking it from there:

#ifdef __cplusplus
class Rational { ... };
#else
struct Rational;
typedef struct Rational Rational;
#endif

And now you can could your C helpers from C++ as well, and the result is a genuine C++ Rational object that you can use either way. I don't think the ODR applies across languages, and I'm not 100% certain this would actually be an ODR violation anyway, at least not quite, but you'd need to ask somebody more qualified than me.

(Another suggestion I would have is to bracket the entire header in the ifdef'd extern "C" {...} block, which limits the amount of extra crap you have in the header and per function. I think you can direct clang-format not to indent these blocks.)
The future involves far less (legal) travel, not more, as the working class even in the richest countries lose access to cars and air travel.

You will stay in your assigned district of your '15 minute city', and if you complain, your social credit score will take a hit.
Because we are rich and can afford it. Because bringing more people to our country that needs labor will keep the economy churning. Because your ancestors got here somehow.
It's not what errno does in C. errno in C is a thread-local variable which means accessing it is inefficient (it uses thread-local storage, which is much more expensive than a local variable) and you have to do awful things like save errno at the beginning of signal handlers if you call a function in the signal handler that can set errno (basically: any library function).

Whether or not it's better to have a sum type (IMO it isn't), what Go has isn't anything like errno. errno is an ugly wart on the POSIX interface, which is otherwise quite nice. For example, Linux system calls directly return negative error codes, which is a much better way of handling errors, and then the libc has to set errno and return -1. Awful.

>- you have to handle it in-place with no convenient shorthand allowing for handling it at another layer (and usually that’s the only meaningful way forward). Also, error handling is a cross-cutting concern, squeezing it inside your business logic is (in my opinion) a bad thing.

That you say this and then advocate for optional<T>/result<t,e> is insane. That's exactly what a sum type does: it squeezes error handling into your business logic. And no, papering over that with ugly ? operators everywhere is not a solution, it is syntactic sugar. Error handling is part of the logic of your program. It is not just some 'ah we'll return it' thing. Many operations can fail and many errors are recoverable.
> Either they are not qualified, which means we are not educating our college students to a sufficient standard, the poverty wages are so detrimental that only foreigners will put up with it.

The third possibility is of course that top 1% of the college students outside of US are better than 10th percentile of college students inside.
The vast majority of people in America has already succeeded: being "poor" there is better than being "average" in most countries on Earth.
Who are you to determine whether someone is worthy or not?
This is the way, or have an external monitor as your main monitor.

Or have four external monitors; the reason I had to wait for the M1 Pro.
Definitely not a gimmick; it's not that most teams would pull in components from different frameworks, it's that teams can add targeted interactivity using the framework of their choice on one shared templating framework that can run on the server per request or generated once on build.

Astro is really, really neat, IMO and suitable for use cases that are content focused but still require encapsulated areas of interactive components.
Updating third party dependencies becomes much more cumbersome, as copy pasting isn’t really the most reliable way to update stuff. You lose all traceability with upstream, and their code becomes much harder to distinguish from your own. It also increases the size of your repositories by a lot.
> Anyone who makes the argument that AI’s can never be creative, and that you need humans for that, probably understands neither human creativity nor the working of the current generation of AI.

I agree with this, and this is why AI should be stopped. Intelligence as an emergent phenomenon is likely what happens in us. Why can't it happen with AI? In that case, AI has a good chance of being dangerous and caring even less about our biosphere than we do.

And even so, we are simply not prepared for the consequences of AI, and by replacing our human connections with AI, everyone will become more disconnected than they already are because of technology.

Just imagine if AI could have the capability of being creative, or at least simulating a good approximation of how we are creative. It will be an infinite low-cost resource of creativity, but paradoxically it will cause creativity to lose all meaning. That is because creativity does not operate in a vacuum. It expresses not just aesthetic value but a communicative value between humans and adding AI to the mix will only make the world worse and less comprehensible.

(If you think this is hype, just look at how incomprehensible the world already is with technology. Most humans cannot fathom all the information out there, and for those of us that try, it leads to neuroses and psychological disorders.)
Show HN: Jema – open-source Jasper alternative
As with all of the languages you mention, consuming C from the other language is trivial. And since C++ is a superset of C that is certainly true there. Consuming the other language from C is difficult without a C compatible runtime API to help bridge the gap.

Of course the issue for C++, unlike the other examples here, is that it does not have a runtime layer that can be used to bridge the gap. So we either write a wrapper in C++ using extern C, or use a tool to do it.

It seems there was a GSOC effort for SWIG to generate C wrappers for C++ libs but it might not have made it all the way? I don't see C as a target language on SWIG's site.

Still, a bespoke, high level design for the C wrapper is always going to be less painful for the consumer.
See what is happening on the Mediterranean. Again and again people are dying because they are baited to make extremely risky crossings.
Proof required that people make these trips to become “welfare recipients”. Sounds like a “just so” story to me.
This is why I like Rust’s associated functions concept. It is just functions and data. But with organization of clear relationships. “These functions act on these data.” (And a bit of syntactic sugar)
Was wondering the same thing - going through a tech audit at the moment for ISO and that certainly wouldn’t fly, unless we were able to prove that we effectively treated it like we owned it.
Is this a parody of the "a monad is a burrito" meme?
You might be interested in Hunter, Gather, Parent.
In SF they hVe a combined system so there’s not alternative.

In peninsula there are separate storm drains in the streets. Better in theory! But they don’t permit a direct connection from your French drain’s sump pump into the storm system. So some people pump into their household sewer instead.
That's an insane thing to say. I am concerned about electronic waste. I am not concerned about it to the extent that I would never buy or use a new computer. I am concerned enough about it that I don't want to waste a perfectly good computer because it has been designed to be thrown away.

Would you say that someone concerned about food/food-related) waste should not ever buy any food? Of course not. But don't buy food that you don't intend to eat, and don't buy food that causes unnecessary waste like food that is unnecessarily individually-wrapped.
That seems to have gotten better but I don’t know if it’s because I’m smarter on what I install, or if windows is better.

The problem I have is Microsoft keeps shoving windows 11 down my throat; that damn start menu needs to remain where it was in 1995!
I read some statistics that per mile, humans are actually pretty safe.

I read somewhere on average Americans spend 70 billion hours a year driving. That is a lot of driving.
This isn't really a parenting book, but rather an analysis of parenting advice from different cultures & eras, and their outcomes: https://www.goodreads.com/en/book/show/29101505
I enjoyed it particularly for its critique of modern Western parenting.
I don‘t know how to think about the other comments concentrating more about coal vs hydroelectric but I went to the grant canyon with my family just this summer (I‘m from Europe) and it is not just a hole in the ground. My kids did the Junior Ranger badges for the south rim and one learns a lot about the ecosystem throughout the canyon. But maybe I‘m indoctrinated now…

I know a similar plan existed for Yosemite which sounds even more crazy to me.

I think the human behavior to put its need above all other is the problem. Not withstanding the fact that we understand little about the consequences of these kind of changes.
Really?

I found it rather basic and substance free. It doesn't bring anything new to the table. Yes, we're at the start and new use cases will come along. So?
Absolutely vacuous.
Do you know how absurdly low the federal poverty level is compared to actual living expenses, anywhere? Do you honestly think $ > FPL = able to speculatively invest? Lots of basic needs assistance programs start tapering once you hit 133% of the regionally-adjusted federal poverty level and many don't disqualify until you until you hit multiples... And we still have a lot of food insecurity, housing insecurity, and lack of access to medical care among people who don't qualify.

https://www.cnbc.com/amp/2023/04/11/58percent-of-americans-a...

58% of Americans are living paycheck to paycheck. Throwing money into some Robinhood investment when you're living paycheck to paycheck, especially if you're responsible for other people, as many people in lower socio-economic brackets are, is completely irresponsible.
I think "I Regret the world has come to this" is a better translation.

But ultimately he is making a good point. IMO FOSS is the ultimate socialism - literally anyone who downloads Linux is a part owner of a trillion dollar construct - we all own it. We can fork it any time - and the reason we keep to one is purely a social decision to use that fork not that one.

And if we all own FOSS like we all own the seas or a forest we need to find means to look after it.

God Knows how. And she ain't telling.
Feud heating up between Arizona workers and the world's leading chipmaker
<Wow i never knew their music was so complex. That video is amazing
I fail to understand how two-panel file managers didn’t become the default. It seems that in the 90s Norton Commander and it’s derivatives were widely used on DOS PCs. They made many file management tasks so much easier. Why don’t we see them around nowadays?

I know that FAR and probably Midnight Commander are still around, but I just don’t see anybody using them.