skysight-inc/HackerNews huggingface dataset:
It is better. That doesn't make it perfect but it's better.

This is to be expected, in fact Rust has to be a lot better to even make a showing, because C is the "default" in some sense, you can't just be similarly good, you have to be significantly better for people to even notice.

I expect that long before 2050 there will be other, even better languages, which learn from not only the mistakes Rust learned from, but the mistakes in Rust, and in other languages from this period.

Take Editions. C was never able to figure out a way to add keywords. Simple idea, but it couldn't be done. They had to be kludged as magic with an underscore prefix to take advantage of an existing requirement in the language design, in C++ they decided to take the compatibility hit and invalidate all code using the to-be-reserved words. But in Rust they were able to add several new keywords, no trouble at all, because they'd thought about this and designed the language accordingly. That's what Editions did for them. You can expect future innovation along that dimension in future languages.
You bought into a walled garden, now you're upset when the owner of that garden decides to do some landscaping. Something tells me people aren't really getting this whole "you need to own stuff to have control over it" thing.
There are a few companies doing it.

Prometheus Fuels is another, they have been on HN previously :

https://news.ycombinator.com/item?id=31264388

They have a cool website :

https://prometheusfuels.com/

There are some companies that want to use nuclear power , Valar Atomics is one :

https://www.valaratomics.com/

The cost estimates seem to be 4-10 times as expensive as fossil fuels.
how do they measure the business outcome of their tweaks, is that a/b testing?
Yeah that seems pretty accurate. It's probably something like:

Realistic: Redeveloping the login page for the site increased return users by 30%

Unrealistic: Reveloping the login page for the site increased return users by 300%
Adding one dependency to your toolchain which in turn helps you with dealing with an open-ended set of 3rd party dependencies is a good deal.
Tragic? You really think the company is the poor victim??

Company made choices, they were bad choices. Bad business deserves zero sympathy.
Not a plumber but I’ve installed a few bidets in my homes and it’s easy to see how the flexible supply line could leak if tightened too much or not enough. Toilet braided steel supply lines themselves are supposedly supposed to be replaced every 5-10 years to reduce the risk of bursting.

I put water alarms connected to my security system behind each bidet equipped toilet.
I think I recommend you reading the proposal them. I don't claim of being a specialist in Go to say if it is possible or not, but I find it highly unlikely given how the language is.

The reason I think nullability is more likely than sum types is because Go tries to be a simple language (whatever the developers of the language think simple is), and nullability is simpler than sum types (both to implement and use). But again, I don't have any special insight
No, upside-down, or rather rotated 180°. You have rows 1-8 and columns a-h (which are usually written in lower case, as upper case are used for piece value). h1 and a8 are the white corners you mention, with rooks on them initially. White's "home" are on row 1 and 2. These coordinates are usually printed on the board.

In our case black's home was on row 1,2. The king and queen was thankfully positioned "correctly" given this mishap, as normally the white queen are on a white square (and likewise for black queen and square), but not in our case. White still had short castling on his right hand side.

What I wonder is if Kasparov (or any expert) remembers movements from the coordinates, rather than (or in addition to) seeing the pieces on the board, and how much this impacted our game.
There is also Procrastinate: https://procrastinate.readthedocs.io/en/stable/index.html

Procrastinate also uses PostgreSQL's LISTEN/NOTIFY (but can optionally be turned off and use polling). It also supports many features (and more are planned), like sync and async jobs (it uses asyncio under the hood), periodic tasks, retries, task locks, priorities, job cancellation/aborting, Django integration (optional).

DISCLAIMER: I am a co-maintainer of Procrastinate.
Same. I can’t stand not having A clipboard for the entire OS
I also increased the average temperature across the country by 15 degrees over a period of six months.
Sounds like, at best, a great way to find obsolete copies of nvidia-smi.exe shipped with installed but inactive driver versions.

On all my Windows/Nvidia systems, the current version of nvidia-smi.exe is present in %SystemRoot%\System32.

OTOH, …\FileRepository*\nvidia-smi.exe matches anywhere from one to eight versions, dating back to 2023.

Perhaps this is only true because I use official Nvidia mechanisms (.exe installer from Nvidia Web site or Nvidia-supplied app) to install drivers, rather than Windows Update or INF install?

Incidentally, the wildcard …\FileRepository\nvdm* suggested in the Stack Overflow answer returns zero directories on my systems, as all Nvidia driver repository directories start with either nv_dispi (GeForce) or nv_dispwi (workstation).

Which makes sense, because obviously the INF file name used to generate these directory names is subject to change without notice.

In any case, per "nvidia-smi --help":

Note that the functionality of NVSMI is exposed through the NVML C-based
library. See the NVIDIA developer website for more information about NVML.
Python wrappers to NVML are also available. The output of NVSMI is
not guaranteed to be backwards compatible; NVML and the bindings are backwards
compatible.

http://developer.nvidia.com/nvidia-management-library-nvml/
http://pypi.python.org/pypi/nvidia-ml-py/
Take out a 90 day loan for 10k and invest in something, the 30 days latter take out another, the 30 dayn latter pay off the first with results of the first investment while taking out another loan. You never make money but you pay all the bills along the way and slowly build up some hard assets that are paid for.
Sometimes importing zombie "undead code" libraries can be beneficial!

I just refactored a bunch of python computer vision code that used detectron2 and yolo (both of which indirectly use OpenCV and PyTorch and lots of other stuff), and in the process of cleaning up unused code, I threw out the old imports of the yolo modules that we weren't using any more.

The yololess refactored code, which really didn't have any changes that should measurably affect the speed, ran a mortifying 10% slower, and I could not for the life of me figure out why!

Benchmarking and comparing each version showed that the yololess version was spending a huge amount of time with multiple threads fighting over locks, which the yoloful code wasn't doing.

But I hadn't changed anything relating to threads or locks in the refactoring -- I had just rearranged a few of the deck chairs on the Titanic and removed the unused yolo import, which seemed like a perfectly safe innocuous thing to do.

Finally after questioning all of my implicit assumptions and running some really fundamental sanity checks and reality tests, I discovered that the 10% slow-down in detectron2 was caused by NOT importing the yolo module that we were not actually using.

So I went over the yolo code I was originally importing line by line, and finally ran across a helpfully commented top-level call to fix an obscure performance problem:

https://github.com/ultralytics/yolov5/blob/master/utils/gene...

cv2.setNumThreads(0) # prevent OpenCV from multithreading (incompatible with PyTorch DataLoader)

Even though we weren't actually using yolo, just importing it, executing that one line of code fixed a terrible multithreading performance problem with OpenCV and PyTorch DataLoader fighting behind the scenes over locks, even if you never called yolo itself.

So I copied that magical incantation into my own detectron2 initialization function (not as top level code that got executed on import of course), wrote some triumphantly snarky comments to explain why I was doing that, and the performance problems went away!

The regression wasn't yolo's or detectron2's fault per se, just an obscure invisible interaction of other modules they were both using, but yolo shouldn't have been doing anything globally systemic like that immediately when you import it without actually initializing it.

But then I would have never discovered a simple way to speed up detectron2 by 10%!

So if you're using detectron2 without also importing yolo, make sure you set the number of cv2 threads to zero or you'll be wasting a lot of money.
At this point we better find a way to slingshot it into space (SpinLaunch?)
The SNOO is cheaply made and poorly engineered despite the incredibly high price- and there isn't much to it. It should cost ~$45, not the $1695 it actually costs.

I recently rebuilt a used snoo myself for my newborn nephew, and was shocked to see that it is built to move everything on rubber rollers, and those rollers use the wrong material, so they both slip and grind to dust quickly.

That said- it works. I would have given my right arm for one when my son was newborn and had "colic" and would literally scream continuously from 10pm to 4am everyday for months. I was up all night holding him by myself, using the method developed by Dr. Harvey Karp (who later founded SNOO)- which is exactly what the SNOO copies and replicates automatically, which is the only thing that would calm him. It was exhausting, and I started to hallucinate frequently, and make dangerously bad decisions from lack of sleep. I think the SNOO would have saved me.
don't they own the crib after paying $1700?
A good article, but you really can't see the screenshots at all.
That's what I think, and also what I think I wrote. Sorry if it's unclear, I'm not a native English speaker.
In the case of homelessness…

We’ve learned both that if you …

1) provide free housing people will use it

2) fine/jail people for camping on the street and in parks it works as a deterrent

Why not both?

I feel lazy right now but feel free to find your own sources for the points above. The jailing one is from a study done in the Nordic states…last I remember.
a rocking basinet is a pendulum, thus mass of the child may be determined on a day to day average, thus inference may be made, such as when larger clothes are a good ad to push.
This is great news. Using Claude to build a new SaaS [1] and this will likely save me quite a bit on API costs.

[1] https://x.com/codewithparrot
It depends. One of my rules is to never buy a secondhand mattress and I definitely wouldn’t buy one for my baby. I’m not sure off the mattress comes with this bassinet or not.
Am I the only one who thinks this is unfair? If you use the Snoo successfully it gets you two-plus hours of sleep a night. That’s magical as a parent of a newborn.

We’re talking about a critical app for a hardware device that has a lifespan of several babies (ours is going on six as it circulates among friends). We should reward people who make hardware so durable and effective that they’ve sold so many of them they need to find another revenue stream.

We talk a lot in this community about maintainers getting paid. Here is a company within a ferociously regulated and risky market doing that.
At low-medium scale, this will be fine. Even at higher scale, so long as you monitor autovacuum performance on the queue table.

At some point it may become practical to bring a dedicated queue system into the stack, sure, but this can massively simplify things when you don’t need or want the additional complexity.
I wouldn't mind seeing some kind of super-charged tag-based browsing of various existing sites that are annoying to browse. YouTube is one of them.
Check out https://mathacademy.com/how-it-works, especially the section "The Learning Process," but let me know if you have any follow-up questions not addressed there. Pricing is a flat $49/mo per student, basically an all-you-can-eat buffet of learning.
I hope that nothing external can control my dreams.

You can control your own dreams by practicing lucid dreaming.
I've flown to/from McMurdo on a total of 4 types of planes... C-17, C130 (kiwi AF), L-100 (Safari, contracted by Italian antarctic program) and LC-130 (to/from pole).
> 'laptop of Theseus'

Heh :)

At what point does it cease to be the same laptop and becomes something else?
If I'm writing something, I'm writing it once. That "prewriting" stuff they teach in schools just slows down the process and makes you overthink your choice of words. I take the same "1 take" approach with code with the idea being to write the best solution on the first try. Why waste time writing something bad just so you can fix it later? That doesn't make any sense.

As I'm writing, I do go back and make changes as they pop into my head. But once I'm done writing it, I'm done unless I notice an obvious mistake after the fact.
Part of the appeal is security for those who really need it. As a kid on Windows Vista i eagerly seeked out random hacks for the games I was playing, and ended up getting a few viruses here and there, resulting in my paypal balance being drained a few times (back when Paypal didn't have KYC or when it was easy to defeat). Maybe this was a good learning experience, but getting those viruses could've been much more consequential in a lot of ways and if I had really needed that money it would've been better if I was running something more locked down.
Year round aviation access to Antartica. Well Done! Every step towards McMurdo becoming a normal city despite its location seems like such an incredible accomplishment.

Can this work at pole station too? I realize there's a lot of other considerations landing there in the winter (fuel freeze temp?) but the less isolated it becomes, the more science we can get.
It's probably still a good example. Looking up the CVEs for various search terms:

coreutils: 17 results

linux kernel: 6752 results

x11: 184 results

qt: 152 results

gtk: 68 results

docker: 340 results

rust: 455 results

python: 940 results

node: 110 results

javascript: 5657 results

firefox: 3268 results

chrome: 3763 results

safari: 1465 results

webkit: 1346 results

The large monolithic codebases have a lot more CVEs. I'd also argue that patching a fix on code made up of small, modular parts is much easier to do, and much lower hanging fruit for any casual developer to submit a PR for a fix.
> You can write isNumber(foo) instead of typeof foo === "number".

Indeed you can, but it depends what isNumber does. This is more like what it should do IMO:

function isNumber( foo ) {
return (
(typeof foo === "number") && (foo == foo)) ||
((typeof foo === 'object') && (foo instanceof Number)
);
}

And that is I think the value of micro libs, at least in JS, you don't want to think about all the edge cases when you only want to check if something is a Number.
Reminder: if overcommit as a concept seems distasteful, the real ire should be directed at the Unix fork syscall, an API that will always fail on a process using over 50% of the available memory without overcommit. Ideally apps would use vfork or posix_spawn instead, but that isn't the world we live in. Overcommit is a sensible way to help apps that use a lot of memory "just work". You can always turn it off if you don't need apps using a lot of memory to be able to fork.
iOS has IPSec VPN support built-in, you don’t need the App Store or even an Apple ID to have a VPN.
> The parser defines the grammar.

But how can you have assurance which grammar it defines, or that it even defines a well-defined grammar?

I’m well aware that some languages don’t bother defining a proper grammar, or define it without having a mechanism to ensure their implementation matches it, but lacking that assurance is exactly the drawback of not using a parser generator.
No, but this is how you fool non-technical people. You will not impress any technical person by skipping the "how".

It is funny since one can make outrageous claims on one's resume about impact without needing to prove anything. This doesn't work the same for the "how".
If you want a generic queue that can be consumed in any runtime, you can just build it directly into postgres via extensions like https://github.com/tembo-io/pgmq.
Why not just use a normal camera?
Sounds like you're in a good place then. If you have all that, you don't need high pay. You just need pay.
By "making money" I mean profit. If you add up only Twitter's good quarters prior to Musk, it's less in total than Meta made in a single quarter in 2016, or roughly 1 month in 2024.

Put another way, Meta makes more profit in a week than Twitter was making per quarter at its best
> sensors that detect when the baby is crying and simulates the sounds of the womb to help keep babies

I realize this may come off as a bit insensitive but isn't this taking away a chance to bond with your child? Children not being physically held enough at young age has lifelong implications
Maxwell's Daemon
I used Orkut many years ago. I remember it was very popular in Brazil.
> The UNIX philosophy is also build on the idea of small programs, just like micro-libraries, of doing one thing and one thing well, and composing those things to make larger things.

They have small programs, but that are not of different project. For example all the basic Linux utilities are developed and distributed as part of the GNU coreutils package.

It's the same of having a modular library, with multiple functions in them, that you can choose from. In fact the problem is that these function like isNumber shouldn't even be libraries, but should be in the language standard library itself.
This is an argument for having a library that provides that function, but it is not an argument that it should be a micro-library.
Not checking dependency updates need to die already.
Not choosing better dependencies needs to die already.
No, all that memories ware overwritten by posts from literal nazis, antivaxxers, chemtrail scientists and other rage content.
The media is not exploring this conflict between Twitter/X and Brazil correctly. What’s happening is that one justice on their Supreme Court equivalent, Alexander de Moraes (https://en.wikipedia.org/wiki/Alexandre_de_Moraes), has been abusing his position to illegally suppress political opposition. You can read about it in this thread:

https://x.com/shellenberger/status/1775516415023251835

Note that Twitter is not refusing to comply with local laws. They’re saying that the orders from Moraes are not legal under Brazilian law, and therefore they are refusing to comply. Moraes is one justice. There is a due process there. You can’t just arbitrarily order bans on social media accounts or call for people of the opposing political camp to be arrested for illegal speech, even in Brazil. Moraes, for his part, claims he was given the power to unilaterally censor speech and arrest violators by the Superior Electoral Court (a different court from the one he is a sitting justice on). Which makes no sense, since the courts cannot make up laws, since they are not the legislature.

By the way Musk isn’t the only one criticized Moraes. Even the New York Times wrote an article that labeled him as a threat to Brazilian democracy, as have various press organizations:

https://www.nytimes.com/2023/01/22/world/americas/brazil-ale...

More disturbingly, their new leader Lula - who has a history of corruption and authoritarianism - has been calling for criminalizing lies, whatever that means:

https://www.public.news/p/brazil-should-terrify-you
Doesn't that exclude NaN (which you probably want despite the name)? I think this really highlights that you probably do want to think about those edge cases...

In any case this is a bad example because Typescript exists.
The Dormi baby monitor app works extremely well, and you can install it on any old smartphone to repurpose as a baby monitor. For my son, I just velcroed an outdated phone with a worn out battery to the wall. It is really well designed because it also notifies if the connection is lost or if anything goes wrong, which a lot of expensive commercial cameras don't.
> Once you have less skin in the game, it is easier to make bad decisions. The author argues this is due to a) having a capital buffer to cushion you, and b) having more time to waste.

It’s not wrong per se but worded to hide the benefit. Having less skin makes it easier to take higher risk. Which means more “bad” decisions but also with higher potential.

———-

While the prepayment strategy described here is interesting, I'm skeptical about some of the claims and implications. Here's why:

> So how much should they discount it? So let's say we're going to buy steaks. We're going to pay $34 a pound wholesale for dry aged rib-eye, we get net-120 (normally). So I call the guy and say "I'm going to use 400 pounds of your beef a week for the next 4 months, for our menu, which is about about $300,000 of beef, what (would) we get, if we prepay you?" And he was like "what do you mean?" I'm like "I want to write you a cheque tomorrow for all of it, for four months." And he was like, "Well, no one has ever said that." So he called me the next day, he said "$18 a pound" … so … half. Half price.

1. The 50% discount seems implausibly high. Even considering the benefits of prepayment and volume commitment, typical early payment discounts in most industries range from 1-5%, rarely exceeding 10%.

2. The story implies this strategy reduces waste, but the restaurant's beef consumption remains unchanged. The butcher isn't selling more beef overall, just securing a guaranteed sale for a portion of their product.

3. While prepayment does reduce risk for the supplier and improve their cash flow (which justifies some discount), it doesn't fundamentally alter the supply-demand dynamics or the perishable nature of the product.

4. If such extreme discounts were readily available, it suggests either highly inflated initial prices or an incredibly inefficient market. In reality, these price disparities would likely be arbitraged away quickly.

5. The net-120 terms do carry risks (default risk, cash flow pressure, inventory carrying costs), but it's unlikely these factors account for such a large portion of the price.

The principle of prepayment providing mutual benefits is sound, but the magnitude described here is likely overstated or oversimplified. A more realistic scenario might involve a combined discount of 20-25% at most, factoring in prepayment, volume commitment, and possible seasonal factors.

This story, while engaging, highlights the importance of critically evaluating business anecdotes, even from seemingly authoritative sources. The restaurant industry certainly has room for innovation in supply chain and financial practices, but the impacts and benefits may be more nuanced than presented here.
Maybe allow board membership/de-membership by popular vote of the entire community?
This is hilariously Kafka-esque, what a shitshow
Reminds me of the 2ality blog post on that:

https://2ality.com/2017/08/type-right.html
I don't think they need to draw an exact line for us to know what they're talking about.
> So by some odd alchemy

I'm not looking for a fight. I'm not sure why you decided to ignore the following sentence. If you want to cut comments apart with a scalpel you'll be able to find whatever you're looking for.