skysight-inc/HackerNews huggingface dataset:
This was the original implementation in the standard library way back. The language evolved in such a way that made it unsound.

It is a pretty fundamental feature of the current version of rust (search term: NLL) that borrows do not end upon the last reference (or any type with lifetime parameter, but I'll just say "reference") with that lifetime being dropped; rather, they end when the last reference will no longer be used. This is crucial to ergonomics; otherwise you could not have:

let x = vec![];
let y = &mut x;
y.push(0);
x.push(1);

because, strictly speaking, y is dropped at the end of the block.

Dropping a reference quite often doesn't even count as a use (#[may_dangle] types, and actual references). But even if it does, if the drop for any reason doesn't happen, then it's irrelevant for determining when the "last use" of a lifetime will be. It is also another fundamental feature of the current version of rust that leaks are safe and sound and they cannot be considered unsafe/unsound without removing useful features (this was not an intentional design decision originally but see search term "leakpocalypse").

Combined, this means that just because the lifetime of a value typed `Guard<'a>` ended, doesn't mean that value actually got dropped; it just went away for some unspecified reason. This doesn't mean drops are unreliable or anything like that; even though leaks are not unsound, in "correct" rust code you pretty much have to intentionally leak for it to happen. But it does mean that if some code must run to prevent data races, you can't just put it in a Drop impl and trust it will run.

Contrast mutex guards, which unlock the mutex upon dropping. This is still perfectly sound in the face of leaks, because it fails open: if drop doesn't run, mutex stays locked, so no data races can happen.
Seems like a better idea to cover the roofs with PV panels, to be honest. This would reflect heat and provide power for the cooling / travel / regular house electricity.
I use Cygnal for making a Windows version of TXR.

https://www.kylheku.com/cygnal/

You compile in the Cygwin environment where you have all the usual tools. Then shipping the program with cygwin1.dll from the Cygnal project gives it native-like behaviors.
Would we still see ourselves as human if other hominin species weren't extinct?
In theory? On an infinite timeline? Probably. Has it been done, and will it be done? Probably not.
Then you don't really understand it :)

But, if you're a trader and know what you're doing, taking advantage of bear markets is fine of course.
> Either crypto or credit card, if you end up taking a payment via stolen credentials, you will refund the money.

This by itself shows that you are making a fundamental confusion: crypto is not to be compared with credit cards. crypto is meant to be cash.

Anyone that steals crypto will wash it before attempting to spend it. And depending on the network, you can't even know what is the origin. So, it would be the same as being robbed of cash.

But okay, let's move on.

> If your margin is slim, you've just amplified your fraud risk.

What if my margin is infinite? Say I want to sell digital goods, with an effective unit cost of zero. Why would I want to worry about the 1/1000 chance of someone "stealing" a copy, when that cost is nothing compared with credit card processor fees and the only thing I am trying to avoid is being hit with chargeback fees?

> wait until crypto becomes common

Crypto becoming common does not mean that people should be keeping large amounts in their wallets. A wallet is not a bank account.

Even those crazy enough to keep substantial amounts of funds in crypto would have (at least) two separate set of keys. One to use for their "hot wallet" and one for cold storage. This is almost basic practice. In a world where crypto "becomes common", what could happen is that your "bank" would be a service that is responsible (and properly paid) to be a trusted custodian of larger funds.
I'd never heard of that so I googled for a video because I wanted to know if GPT 3 is like that. After watching the video I can see what you mean. Fascinating but somewhat horrifying.

https://www.youtube.com/watch?v=3oef68YabD0
The issue is bigger than just "dmy" date formatting. There are cultures that use different calendars altogether. I believe there were relevant extensions to ISO 8601 in the works. Should databases jump on implementing it at their level though? I don't see why store time as anything other than a UTC timestamp with enough precision (probably just epoch milliseconds), converting at GUI input/output points.

So I think you underestimate the sheer scope and bloat needed to accommodate all possible languages and cultures equally well. And if we abandon that idea, perhaps it makes sense to keep things simple and support customization instead. If on the other hand Azure doesn't even allow installing any non-English FTS engine that would be questionable of course.
The senior engineers should have been more honest ("screw you and your pet language, we won't be using this garbage here") instead of getting the author to run various useless side quests.

This is the company he is talking about:
https://www.hologram.io/blog/why-we-dont-hate-php

They love PHP and Python. Good for them, I don't like those languages but why would I get a job there and try to get them to use a language with a pretty much completely opposite philosophy?

It would be like getting a job at a vegan restaurant and suggest they should have wagyu beef on their menu because it's so tasty and everyone loves it.
> Discipline doesn't scale.

I want a shirt with this on it.
Yea, but trying to squeeze more out of the lower middle class, and poor, dosen't seem kind at this point in history.

I see a lot of virtue signaling out there.

Most of us can't afford a electric vechicle, and those federal credits seemed to just go to people whom could afford any vechicle.

I can't even afford the smog check, and registration, on my 4 banger toyota. A Truck I've keep going 20 years. It uses very little gas. (My vechicle has always been tuned up properly. I thought by now we would have had free smog checks for the poor? In CA we have a low income deal that was enacted when CA decided to require smog checks. It's so complicated most people don't use the "gift". You need to bring your car to a mechanic in order to get any money back. Shade Tree mechanics are out of luck.

My point is the corporations/government will pass any Global Warning measures down to us.

We are already tapped out.

If we are really serious about Global Warming lets go after the wealthy boys first. Take away their private jets.

And enough with their Globalization. If they can make a product that dosen't need to be shipped long distances, have them make it here.

I'm a Democrat, and winced when Biden pretty much gave a FY to the oil companies in order to sound Progressive. I knew at the time, the poor can't afford to pay more for gas, and natural gas.

Now--I don't blame the president for this spike in gas prices, but I would have rather have him say this is a big problem, and we can't just do away with oil.

Be it my PG&E bill that just seems to go up, and the $6.69 gas at my Chevron station, the poor are already paying to much of their income on a complex problem. (My gas station raised their prices the minute they started talking about inflation, and the Russia sanctions. It is pure greed. They made a record profits in the past few years.

Sorry about my rant. I just don't like being squeezed so much, while my wealthy neighbors buy crap from Amazon, and think they are doing their part by driving a Tesla.
Trick question: glibc doesn't support that.

Trying to statically link with glibc is a fool's errand.
Nope. Not true. I haven’t had a bug in production the last 5+ years. And I am maintaining large scale C++ software with massive refactorings and features added. The key is having solid tests.
I work at a smaller remote company. We just sell them back to Apple for whatever gift card they offer. Not the highest price we can get but very low hassle.
You can get Legendary Crests by other means for free...at maybe 1 or 2 a month.

The Rare Crests you get more easily and have a chance to drop a Legendary Gem, but never a 5-star gem.
An example of why Carter was a terrible President. Remember the looong gas lines? I sure do. For years, just getting gas was a miserable experience with arbitrarily long waits, up to hours.

Reagan's first act was to sign an Executive Order eliminating all oil and gas price and allocation controls.

The gas lines vanished literally overnight (and I'm not exaggerating) and never returned. Boy do I remember that.

Carter could have done that. But he simply didn't understand economics.

Sadly, Biden is considering having the government control fuel distribution again.
As Po dries up, Italy's food and energy supplies are at risk
I wouldn't be surprised if this routine was guided by the creator. As in, they edited it to make it work and that was probably after discarding a bunch of terrible stuff. Nevertheless it's not unlike how Jerry actually works, he would write a lot, and then edit it down later. He worked hard at it and it sounded almost joyless.
Unwind safety is an underdeveloped aspect of rust. Unwinding is not meant to be used for control flow. catch_unwind should be used to protect FFI callbacks and restart unwinding on the other side. I would consider its use in thread pools to be an abuse of the feature.

That said, given that unwinding does exist, it is the responsibility of unsafe code blocks to account for it. They must not allow safe code to create UB. That they mostly don't account for it is a culture issue.
University of Michigan full front end development course (11 hours)
whats the loophole?
There's lots of people in the world.
I like our Ruud/Rheem hybrid heat pump water heater. (The two brands are the same company. The only difference is whether you pay someone to install it.)

However, it was not trouble free:

The time of day scheduling feature is useless. Once or twice a month it gets stuck in "lower temp" mode. The app reports kWh used and displays alerts, which is nice. Otherwise, there's no reason to give it WiFi access.

Pay for the leak detector option. It's relatively cheap, but not included for some reason.

You're likely to have condensation issues unless you use a good installer, or do it yourself and follow directions.

The power lead on ours wore through due to vibration too, so pick someone that's experienced/conscientious enough to route wires carefully.
As a clojure programmer, I'd say the same of Haskell. Oop is less expressive than FP, and static typing is less expressive than dynamic typing. These are usually just tradeoffs people choose for their problem domain
> Bums me out as Blizzard IP always has a special place in my heart.

This is what they're financializing. It's a cash out, private equity style.
I think this article is missing the real network effect of Patreon.

Anyone who uses Patreon will be much more likely to support you because they already have a Patreon account. They don't have to setup an account on some other platform and add their CC details again.
A shame how exploitative this game is because it plays rather well. It also has the same problem as D3 with a complete throwaway story which turns off casual players.

No point chasing the Diablo 2 dragon. The series needs to move on to something more.
That cuts both days, a Windows developer trying to port a project to Linux would be justified in concluding the filesystem locking semantics are horribly broken and non-existent.
As an audiophile one of the most satisfying app sounds I've ever heard is busuu's 'completed a lesson' sound, the engineers really nailed that one. It's so gratifying to hear I almost consider it a reward, and I actively anticipate it once I finish a lesson.
It is a weird thing to me that a minimal impact lifestyle[0] requires a very constrained and expensive computer ecosystem to facilitate unrealized happiness.

[0] ...but with frequent travel?
> The police remains firmly in hands of the state in India. No matter the party in power. They don’t serve people, they serve politicians.

The statement is confusing to me. Usually, to say they serve politicians means that they serve a party, not the state.

They should serve the state, which is a creation of and responsible to the people. Serving a political party is corrupt and not serving the people; for example, in totalitarian and authoritarian countries, the police and other state institutions often serve the party.

Regardless, is there evidence of the police doing such things for other political parties?
my advice is use k8s if you know it, don't if you don't
I thought the videos looked corny as hell. I'm pretty sure they're going to make Diablo 4 resemble a Saturday morning cartoon, just like Diablo 3. And from the the descriptions of the mechanics, those don't seem to have improved either.

Just resign yourself that the Diablo series and the rest are gone.
The all-in-one heat pump hot water heater pulls in warm air from its surroundings, pulls the heat out of it and puts that into its water. Then it lets out its "exhaust" colder air. Ducting to outdoors improves things, because it doesn't put that cold air back into your basement / utility closet, but you're still pulling heat out of the air - which your house heater now has to put back into the air - and unless your space is perfectly airtight, that's probably just going to be sucked in via the nearest air gap to outside.

It's a bad system. Split systems make sense, and I know they exist, but they seem weirdly rare.

Some data on this topic: https://www.energyvanguard.com/blog/will-a-heat-pump-water-h...
I think Git submodules are good, but they have a very narrow set of use-cases. Sometimes people use submodules when what they really want is a sub-tree merge.
Seinfeld wrote his own stand-up. The whole premise is Seinfeld doing his comedy club routine, not Seinfeld the show.
The supposed loophole is that you have to complete an Elder Rift to "roll" the crests as done in the submission, versus opening a literal box.

It hasn't made a difference legally, and they are probably losing potential impulse sales due to friction.
No? There's a lot of other amazing things about the company beyond having 15% development drag? IT is not that important in the grand scheme of things.

Jesus. I have an executive level officer in the company that has my back and you're telling me to quit? Utterly horrible advice.
Also at https://news.ycombinator.com/item?id=31792818
Space navigation is amazing. If I throw a rock into the lake I can barely see where it is until it hits the water. When we fling these craft into the void how do we know where they are and where they are going?

I can think of three ways:

(1) get the direction right in the first place and just assume the craft is where we calculate it should be;

(2) watch it from afar somehow; or

(3) have it tell us where it is.

These seem like three quite different options and I would love to know how it’s actually done.
Yes. It’s called Refinement Types. I wish Rust came with Refinement Types from day one. That would have been a massive step forward instead of the much smaller step forward that Rust is currently taking.
Mark Shields, political analyst on CNN and PBS 'NewsHour,' dies at 85
I remember when Voyager was swinging past Jupiter for the first time. Caltech set up monitors all over campus, where we got to see the pictures as they arrived. We'd check the monitors before class, after class, etc. A popular joke was if one of the moon pictures showed a giant Death-Star-like hatch on it, how fast we'd be putting together a manned mission to investigate.

It was fun watching the scientists boiling over with excitement when all their theories were trashed by each new picture, and they had to reinvent them from scratch.
It's worse than that. The free legendary crests are not the same as the paid ones and the gems you get from them are soulbound and can't be traded. Even some of the paid crests from the bundles are this lesser tier of legendary crest[1].

[1] https://reddit.com/r/DiabloImmortal/comments/v9v96i/til_ther...
I don't agree there are plenty of songs with nonsense lyrics pre-AI

like (Da Da Da - Trio - 1981) -> https://www.youtube.com/watch?v=3oef68YabD0
It is not so much a "yes-no" as a "how much and what exactly" question. And the starting points may differ from country to country.

After the Second World War, Japan concentrated heavily on passenger trains, Germany on the autobahn and a little on passenger trains, and the USA (almost?) exclusively on automobiles. Some of the differences can be explained by geography, but it was certainly not all determined by it. There always seems to be some room for choice. Usually, at any given time, the public perceives only part of the actual advantages and disadvantages, as well as the inherent trade-offs. Moreover, people's preferences are also constantly changing. That's why it's always necessary to adjust and dare to do something new.

However, in such matters, countries also seem to be extremely conservative and hardly able to leave a path once it has been taken, because institutional and economic structures and entire schools of thought would have to be completely realigned. In particular, the losers of a rethink will do everything they can to delay change as long as possible, while the exact winners are not yet known.
It's not. It's an open source project (aka owned by no one) that started at Microsoft. The person who created WiX left Microsoft to create Firegiant, which is the primary contributor to its continued development and maintenance.
I'll never forget going to a basque place in Nevada with that on the menu
You may not need a NAT proper if all you expose / do is HTTP requests.

Run a proxy / LB on an instance that has a public IPv4 and a VPC network interface. Don't NAT or route between these networks, just let the proxy listen on the public interface, and contact the backend servers on the private interface.
> security researcher Zeshan Aziz found the recovery email address and phone number tied to the Pune police official’s name in the leaked database of TrueCaller, a caller ID and call-blocking app

Even though truecaller has accidentally done some good in this case, they are essentially a voluntary spyware.

https://www.truecaller.com/unlisting
Pretty rare link for HN but there's a reason. I get asked locally all the time when people find out I'm a developer that they want to learn how to build web pages.

Pains me to say as a Spartan but I listened to a bit of it and the professor is quite good. Two friends have taught broadly this same course at Michigan State, they're both super enthusiastic and I'm sure they're great instructors as well but their work isn't on the web.

Most people want instant success and won't invest in the full 11 hours. But if they do they will have gained a useful skill. So if anyone asks you've got the link ;<).
If I pay in cash then I’m physically present. Usually I’m at a store with a reputation to uphold and a set return policy that’s reliable. If I’m transacting with an unknown entity (eg craigslist) then I can at least physically inspect the item. Very different than ordering online.
We'll see, but the HODLers are not selling (AFAIK). A lot of this latest deep pullback was driven by over-leverage and margin calls on BTC backed DeFi (like Celsius). The margin calls on staking tokens in particular are a new factor adding to volatility.

https://www.coindesk.com/markets/2022/06/14/staked-ether-bec...

https://cryptoslate.com/blockfi-liquidates-major-counterpart...
Similar search. Duck Duck Go, fwiw.
In my mind, it's a predictable outcome of nationalism, which puts the 'nation' (who is that, exactly?) ahead of individuals. Notice that the US Declaration of Independence says that goverment is instituted by the people to protect their human rights and liberty - government exists to serve individuals - that's the purpose, not some 'nation'.

As soon as they start talking about a nation, it's an excuse to sacrifice others to the interests of 'the nation' - which of course means the interests of a few people, spun and presented to make them like it's the interests of a quasi-divine entity.
Lightyear and the Fight over Queer Visibility
Interesting related tidbit - Most sophisticated computers would instantly fail when exposed to outerspace. The process of making them rad tolerant is expensive and complicated. Using simpler chips makes it easier and means there is less that can go wrong. This is why most space bound computers even today appear on the surface spec sheet to be out of date.
> On AWS, that would be Fargate on ECS, or on Google Cloud, Google Cloud Run.
> You won't have to manage servers, network overlays, logging, or other necessary middleware.

I disagree with this take. EKS is a managed service just like Fargate and you have to learn how to manage both equally (VPCs, CIDR ranges, IAM rules, etc). You might as well start on kubernetes if you are going to switch to it eventually.

> I'd suggest that teams adopting Kubernetes (even the managed versions) have an SRE team, or at minimum, a dedicated SRE engineer.

I'd love to hear what parts of running EKS require an SRE team and how Fargate/ECS solve that issue and make it self-serviceable.
I totally agree, it's practically impossible. Is it a philosophical thing or a technological thing? GPL is about source code and going against that will never make much progress.

It is almost always possible to do some relatively simple hacks to make old stuff work, though (LD_PRELOAD, binfmt_misc/qemu, chroot/docker).
Where it sucks is with things like tuna. Tuna cans were 8oz 30 years ago, and shrunk 1/8 of an ounce at a time to 5 oz today.
I don't think Bitcoin is going to $0 any time soon, but I do think the pool of "greater fools" has likely shrunk significantly and that's going to make climbing out of these dips tougher. Also, if there is a major recession on the horizon, tons of small-time cryptocurrency investors are going to be liquidating their positions just to get some form of cash to roll in.

With that said, there's probably enough HODLers who can just trade it among themselves for the foreseeable future to keep the price from completely tanking. But this will make crypto less accessible to outsiders.
I mean you said it yourself.. that's why you have security groups? You're either paying a ton to use NAT gateway, or setting up a dedicated box to act as your in-house NAT, or configuring security groups. It's pretty simple: no inbound connections except from the VPC.

Also even if there's no firewall at all, how does that mean your machines are getting owned? My boxes listen on precisely one port: a heavily locked down sshd (which isn't listening on that interface anyway)
Carl Sagan is mentioned in the article. He was quite a treasure. He came by our dorm once for conversation and dinner. The conversation was about whether life could be based on silicon rather than oxygen. I.e. living rocks! Very fun.
I'm guessing these days even when you get a built-in microwave in a modern kitchen (such as above stove with ventilation hood unit) it's still a 1500W max load thing designed to go on a normal household 120V 15A circuit. You'd need to go to some expensive high end stuff before you have like a 240V 30A capable microwave.
Yup, firing Ive was the first step in the right direction.

Of course, we didn't see the effects until now because a trillion dollar ship takes a while to turn around.
The charlist wonkiness does bleed into elixir. Just about every other week or so there is someone confused on elixir forums: Here's one from 2 days ago: https://elixirforum.com/t/unexpected-output-from-enum-module...

I had a junior that came from python that did not want to work in elixir because he refused to write unit tests and the fact that double quotes were different from single quotes (and double quotes were default) he couldn't deal with -- joke was on him because python3 made strings a whole lot more complicated!