skysight-inc/HackerNews huggingface dataset:
Ikey Doherty's Serpent OS Linux Distribution Goes into Alpha
> vs. the obvious legacy/unchecked idioms

You can go crazy with legazy/unchecked/unsafe stuff if you want to in Rust. It's less convenient and more difficult than C in some ways, but 1) it's also safer and more convenient in other ways, and 2) "this will be safe and convenient" isn't exactly the reason we dive into legacy/unchecked/unsafe stuff.

And of course the greatest strength of the whole Rust language is that folks who want to do crazy unsafe stuff can package it up in a safe interface for the rest of us to use.
Except electricity is billed in kWh, everything consumes power on kw, and kWh is by far a more intuitive unit of consumption once you get past the basic of educational step of explaining 1 kw for 1 hr = 1 kWh.

As an EE I much prefer kWh, though its not all that hard to add the factor 3.6 if you really want MJ
Founder Fireside with Chris Lattner
I thought it was a somewhat good talk.
Even if younger, keep your mind open to finding friends that are more than middle-aged.
I think I'm starting to see after reading these replies and some of the linked material. Basically the things that confused me most about the rules of go when I first looked at it are playing a role in creating the attack surface: How do we decide to stop the game? How do we judge whether this (not completely surrounded) stone is dead? Why don't we play it out? Etc.
I would probably trust them more than some dismissive rando on the Internet.
> charged to 415KM up from 410KM yesterday

Maybe you were driving driving 1% more efficiently?
Did you do that with gas cars as well?

Any reason why/why not?
I've read about that, and it definitely seems like a shit show. It's about time these things change. Since I got here I mostly travel by train and I know that it's a privilege, it should be the norm in these developed countries. Anyway, hang in there and good luck.
I'm pretty sure the Vikings understood their craft very well. You don't become a maritime power that pillages all of Europe and reaches the New World long before Columbus without understanding how things work.
Look like very nice tech but unfortunately the operational overhead of postgres is too high for my use case. Will keep it in mind for future postgres-backed projects though
The point of the original article is that the battery pack may outlast the rest of the vehicle. Eventually it needs to be recycled, but not repaired while in service.
Well, buying stock in a company because you like their product is precisely the kind of bad stock picking strategy I'm talking about. The quality of a company's product is public information, so you should expect it to be priced in. Whether or not to pick any individual stock should be made on the basis of whether that stock is over-valued or under-valued in the market, not if it's a good company overall. Amazing companies can be highly overvalued, and crap companies doing garbage work can be undervalued.

Like I say, best to leave it to professionals. For some things it's fine for people to have a DIY spirit, like building a website or a cabinet. For other things, which can harm you if you mess up, it's better to leave it to the pro's... electricians, doctors, etc. We're talking about people's life savings here, they can easily lose everything and ruin their lives, not being able to take care of their family etc.
> full freedom to work on whatever interests them, and no need to deliver
> value to the employer...

That was an exaggeration. No employee has full freedom, and I am sure it was expected that you do something which within some period of time, even if not immediately, has prospects for productization; or that when something becomes productizable, you would then divert some of your efforts towards that.
EVs are just ridiculously expensive, the charging network coverage isn't great, the percentage of single home owners is comparatively low compared to renters of apartments (where there are no charging options), and the government keeps fucking around with the tax credits and rebates.

I'm not sure why the perceived reliability outweighs any of these issues.
All the bad news about private equity and its bubble
I wish this were true too but it doesn't appear that llms.txt is meant to be a markdown version of the site's content based on the example on the site and after peeking at a few llms.txt files on some of the sites in the directory.

It looks like its text meant to be fed into the llm as a system prompt specific to the site.

The most simple ones just look like a sitemap restricted to documentation: https://www.activepieces.com/docs/llms.txt

Some interesting stuff is in some of them. Like this one that prompts the LLM to explain to the user the ethical issues of using AI agents along with a disclaimer:

https://boehs.org/llms.txt

That site appears to be someone's blog and they don't seem like big fans of LLMs.

https://boehs.org/node/llms-destroying-internet

A pretty clever use of llms.txt.
Could the HN system detect these types of posts (where nothing but the web address appears) and perhaps suggest a suitable description is required?
I use auto-indent and syntax highlighting which is sort of an IDE feature, and some other quality of life things like triming trailing whitespace on lines I edit. I also trigger compilation from the editor so I can step through the compilation errors one by one.

I know my editor (emacs) could do some of the more advanced things you mention, but it needs a bit of setup and I'm lazy. It's not really a blocker.

I look at the docs if I'm doing something new to me or have forgotten a function call. I google more complex things which often gets me more useful info than an IDE could give me, unless it's drowned by AI-slop.

If I want to dig around in a codebase I can grep for things, or just open a likely looking file and isearch for the thing.

I do git etc from the commandline, which I could probably do from emacs too but I never really bothered to.

I have nothing against IDEs and have used some at places where it was harder not to because they'd standardised on a common one. I kinda enjoy the simplicity of just having a familiar editor for any language I encounter though.
Technology as Routinized Magic
This post is 100% BS. I just checked the instructions for an engine swap on a fiat 500 are about 60% longer than the 500e battery swap. Also the engine weighs around 450 lbs, so its not like you aren't using a hoist or a lift for both any ways.
Exactly me -- except still a contrarian.. Everything just goes up and up and up.
The intent is not at-home fabrication: It's sending it to a company in Shenzhen (e.g. JLCPCB) to do both PCB fab, and SMT assembly for you. 10-day time between order and arrival. (USA), and astonishingly low cost.

PCB are sometimes used in these structural scenarios, (Where they are not the right tool for the job) as they're one of few(?) ways to get a custom part fabricated at low cost. If the device has electronics anyway, the added cost of expanding the PCB footprint for structure, as in this case, is small.
It takes actual humans, whose brains have been honed by multiple millions of years of evolution, over ten years for our brains to experience, neuroplasticify, form a well-formed-enough model of existence to drive a car, let alone wax philosophical about abstract concepts. And we funnel dollar after dollar, extract mineral after mineral, consume kilowatt hour after kilowatt hour, wanting, expecting Artificial General Intelligence to be ready within one or two years since the last promised version.
You went long on some fairly general assets. That's not gambling.

The problem with gamblers is (for example) making risky bets on margin and ending up losing massive amounts of money because a meme stock lost 5% of its value during a normal market fluctuation.
Did any of the smart contract stuff turn out to be legit? Any of it at all?
Sonic booms from most powerful rocket ever built have some scientists worried
> crazy unsafe stuff

The first example in the linked article is checking if a value is stored in a container and doing something different if it's not than if it is. Hardly "crazy unsafe stuff".
> then it has no reason to exist other than to extract profit from the labor of the people you hire.

My cousin's lovely response:

"So the business paying the insufficient wage and the landlord are not the same entity. The business's job is to run a business, not worry about if landlords are getting paid. It's unfair and inefficient to make businesses submit to the demands of greedy landlords in this manner. Maybe governments could step in and protect businesses but I'm unsure of the best way to do that."

Personally I think if we have a system of private ownership then charging whatever I want for rent is my right and the government should not be able to force me against my will, otherwise all property is really the governments. But I think there are grey areas when we talk about corporate/institutional property owners.
Well, one might say the same about USA. Bad health care, bad education, bad infrastructure and a lot of spending on military.

On that note, I read a satire news article that Denmark was offering to buy the US without the government so they can bring education and good healthcare to the US.
Ask HN: Is the universe so that the big bang is just a drop in the ocean?
Is the universe so vast that the big bang is just a drop in the space ocean of big bangs that intervally occur in a multi big bang universe?
Author, it would be helpful to link part 1 at the beginning of the article for people who missed it.
I think the funniest brand to have chosen would have been Alfa Romeo, but after reading Fiat I knew I was in for decent amusement.
I guess part of the reason is that the "M" in "NiMH" stands for Lanthanum - a rare earth element which happens to be used in catalysts facilitating oil refinement.

Of course catalysts are consumed slowly, but you still don't want any disturbances in the supply of a key element.
My understanding of successful blind programmers is they basically are forced to write code in a way that fits in their head, and this is the essential feature of good code.

I'd be interested in more concrete examples of what specifically you're referring to though.
I stopped enjoying chess because a game in which you always lose is no fun; the only winning move is not to play.
Q: Why is Santa so unhappy?
A: Because he only comes once a year and then it's down the chimney!
I’ll give you a too-big-to-be-illegal example. Geogroup, now named CoreCivic. It’s the largest owner of private prisons and jails in the US. They, along with other private prison corporations, engage in far more corruption than just pocketing the extra change though. They actively lobby legislators for mandatory minimum sentences and other law changes so that America can continue to be a world leader in the highest percentage of prisoners per capita.

Their 2024 revenue was $2B.
I understand what undefined behavior is, I just don't dereference pointers or optionals without first checking them against nullptr or nullopt (respectively). In fact, I generally use the .has_value() and .value() interface on the optional which, to my point in the above comment, is a very similar workflow to using an optional in Rust.

I think if you adopted a more defensive programming style where you check your values before dereferencing them, handle all your error cases, you might find C++ is not so scary. I would also recommend not using auto as it makes the types less clear.

std::optional<int> v = std::nullopt;
if (v == std::nullopt) {
return std::unexpected("Optional is empty.");
}

std::println("{}", *v);

If you are dereferencing things without checking that they can be dereferenced I don't know what to tell you.
Recycling human and animal excreta could help meet nutrient supply for crops
Since the V-2 rocket passed the Kármán line during WWII, I wonder if dlcarrier is pointing out that the line was passed before there was any space race and before Kármán proposed that boundary?
If you only knew how bad it really is. In capitalism you have N firms "completing" so that usually means you will have multitudes people working on the exact same thing. Imagine that level of inefficiency.
The currency converter is the odd one out because it context dependent. (Time, contract, etc)
An artist-beekeeper's apian oeuvre celebrates the industrious insect
Bookmarking this answer. This will be my automated response to the usual disrespectful comments by conspiracists on conclusions achieved by strong specialists.
I encourage you to try driving one. Even if you don't care about the possibilities for improved energy efficiency and reduced pollution, or don't care for the latest technology, the driving experience is wonderful. Instant power, smooth, quiet. Up here in Canada it's even better: no spending 10 minutes for it to warm up - about 60 seconds before it's blowing hot air and otherwise no need to warm up an engine. I've driven older manual vehicles for two decades, but after two years driving an EV I never want to go back.
Anyone who has the necessary training and equipment can repair or replace an EV battery and it is done by a few companies here in Norway.

for instance https://www.batterielektro.no/elbil/, https://carfix.no/carfix-teknikere-kan-apne-og-reparere-elbi...
Well there is the only law that goes with deep learning, the law of statistics. The interpretation that has the highest number of occurrences will most likely be preferred.

If you take the standard dataset, i.e. the internet, I would suppose it's actually not that morally bad on average because the sites it's sourced from are largely moderated, and the ones that aren't tend to be thrown out. So there would have to be an inherent lawful, positive bias due to the general lack of the opposite in the ground truth examples provided.
Haskell has had this with `newtype` for ages. Type safety without runtime overhead.
I prefer ok_or for optionals and map_err for for results in Rust. I believe the way you proposed ends up with very deeply nested code which I try to avoid.
> I've never heard Python or Ruby referred to as untyped

Well, now you have! Here are some examples:

https://0xda.de/blog/2024/03/untyped-python-sucks/

https://lucumr.pocoo.org/2023/12/1/the-python-that-was/

In fairness I think it is a fairly recent linguistic shift, probably because there's no debate between weakly typed and strongly typed - strongly typed is oblivious the right answer. Instead the debate is between dynamically-typed-without-static-type-annotations and statically-typed-or-dynamically-typed-with-static-type-annotations, but obviously people need a more succinct term for that.

> Like, no one would call Ocaml untyped if you used type inference and didn't spell them out yourself... Or if you used the auto keyword everywhere in C++... The Ruby and Python runtimes both definitely enforce types.

Static type inference still counts as having static types. That's totally different to dynamic typing without static type annotations ("untyped").
> There's one big difference between 1987's Luna Luna and today's: Children aren't allowed on the rides.

> Haring biographer Gooch doesn't think the artist would have approved of children just watching his carousel turn.

it sounds cool, but also like a “fun museum”— not a museum to have fun in, but to observe a bygone era where fun was permitted for a single season, before being boxed away for decades until it returned as pieces to be seen, not touched, felt, or enjoyed, except in the mind’s eye, if at all.
Slang for "the fine article". Comes from RTFA, "read the fine article". Or some other adjective of your preference that starts with F.
You can still swap out a battery just like swapping out an engine. Both require extensive knowledge, specialized tools, and a lot of time, but it's definitely possible.
Powder cocaine cannot be smoked at all (https://en.wikipedia.org/wiki/Free_base) and smoking anything naturally carries additional risks.

If it didn't make a meaningful difference in the experience but only increased the legal penalties, there would be no good reason for dealers to prepare crack, yet they did.

Nothing about a the race of a cocaine addict compels that addict to prefer one form or the other.

The comparison is made as a metaphor for strong addiction exactly because of the old political connotation. Those don't just go away. There are almost certainly more addictive substances out there; that is completely irrelevant to how humans use language. I would argue, even the phrase "crack cocaine" has more sticking power because of the phonetics.
It is possible to commit no mistakes and still lose.

That's not a weakness.

That's life.
There’s also a regression-to-the-mean problem, the systems really shouldn’t optimize just for the easier cases. I wonder if that’s a direct tradeoff, I think maybe it is with the kinds of things I see used to tweak out hallucinations.
And the elephant in the room (literally): A moderate-sized CRT weighed a TON, burned through power, and took up substantial desk real estate.

They definitely have their perks but I only own one CRT for retro gaming, and I wouldn't trade any of my newer monitors or TV's for a bulky old tube if you paid me. Hardest conceivable pass please.
In the knife attack in Texas the causal link between news about something bad originating in Asia and the attack seems pretty direct.

The attacker said in court that he blamed China for the COVID pandemic, mistook the Burmese for Chinese, and perceived them as a thread because they were "from the country who started spreading that disease around".

Note at the time of the attack the attacker probably did not actually know anyone who had COVID and probably hadn't even been personally affected by anti-COVID measures. The attack was a mere 4 days after the first confirmed COVID case in Texas from community spread, and only 3 days after the WHO had declared COVID a pandemic. The governor had declared a disaster the day before which gave him powers to order state-wide health measures, but no such measures had actually been undertaken.
If you're hosting it yourself, I would expect that you also make backups of your whole server and/or database if one is involved. A custom backup feature built into the app seems redundant.
> allowing inmates to have jobs both takes pressure off of the cost/budget for their incarceration

No. This CANNOT be part of the argument for prisoner's having jobs. If we as a society have decided that the only route to protecting society is to strip people of their rights and freedom, the we MUST be the one's to fund it. I don't have a problem with prisoners having jobs, in fact I definitely agree that it needs to be a part of rehabilitation. But a system that depends on abusing others to prop itself up should not exist. And this system cannot exist and deliver the actual results we want of correction and rehabilitation if there is a monetary incentive because there will always be someone that will come along and selfishly twist the system for their own gain.

I think all proceeds of prisoner work should remain solely that of the prisoners (potentially garnishable depending on their crimes).
I pay my brokerage about that, which is fine, as it works out as less than 0.1% of my average deal - and it’s usually at least five years between a buy and a sell.

When people complain about brokerage fees, or are pleased that their brokerage charge no fees, it usually means they will be losing their shirt at some point.

Volatility trading is for masochists on actual cocaine, and suckers.
Look into the Unitarian Universalist (UU) church. I'm a recently retired atheist and moved to a new city. My wife was brought up UU and they welcome all beliefs. We started attending services at a local fellowship a month ago and have been welcomed and are starting to make some friends there.
I’ve been cognizant of this for several years now, but almost immediately after I began to act on it, the pandemic hit and threw it all into disarray.

Since then I’ve moved which has enabled a massive CoL reduction which is great, but at the same time I’m not sure this is where I want to be for even the next 5-10 years and so I’ve been resistant to putting down roots. Needing to drive to do anything also doesn’t help, as I find driving on anything but practically empty roads unpleasant.

There may be a pedestrian/cyclist-friendly city with great public transportation in my future, and so if I make a point to go out and do things consistently it’ll probably be there.
Enforce paying prisoners fair-market wages. That, in addition to providing prisoners with funds so they can start with at least some amount of money when they're released (many will face many months if not years searching for a job that will take them!), also prevents the government from using slave labor to undercut prices of, say, fire prevention crews.

And from these fair wages, deduct the rent of an average single-bedroom apartment.
Yeah, that's the point. The initial preference function will guide the whole process; unless you change after each step the preference function used to compare, in which case it may never converge to a stable point.

And even if it converges, different initial functions could guide to totally different final results. That would make it hard to call any chosen function as "strictly better than any other".
Sounds like your problem is rather looking down at other people, I can imagine it would be hard to make friends that way.
I don’t think I’d have agreed to volunteer at church as much as I do without WFH.
Is there a point to saying something like this other than to be explicitly uncompassionate towards those affected?

I could simply respond with "sorry to hear you upset yourself by considering these people entitled", and it would have about the same merit.

It's like telling somebody after a close relative or some else dear to them died that what, did they expect that person would live forever? No, do you?

Do you genuinely think their feelings of betrayal stem from an unreasonable notion of the world? Have you at all considered that the expectations they harbored were not 100% of their own creation?
Your second install step fails because there's no requirements.yaml in the repo.
> Letting someone who is in for 5-10 years for pushing crack get a job they can work from their cell so they can potentially get right upon release is definitely preferable to ensuring the perpetrator turns into a career fuckup.

Yes, but some crimes hurt specific people, badly. Some victims seek a measure of retribution, and in a different place and time we all could agree that is "justice". Some other legal systems extricate themselves from this conflict by placing perpetrators at the mercy of their victims. The US system is not superior in its efforts to withhold from victims the satisfaction of appropriate retribution. In exactly the same way you think 5-10 years in the scenario above is unjust, I think a system that ignores the impact of crime on victims is worse than useless.
AI has always had the concept of a “winter” or bust. [1] As in computer science in general we have had people shift concentration on what can make the most and that can occur during a PhD. The thing about the AI winter this time is that ML and Deep learning and LLMs advanced so quickly that a large bust in AI didn’t really occur. Also, I have heard about people getting the AI jobs and then complaining it’s all about cleaning data and nothing about applying new AI techniques to solve a big challenging problem. For CS in general and IT I can sort of see this as a business cycle and LLMs doing some replacement of jobs or it could just be a business cycle.

[1] https://en.wikipedia.org/wiki/AI_winter?wprov=sfti1#