skysight-inc/HackerNews huggingface dataset:
In certain projects I can see why you would reach for functional style error handling, but for the vast majority of standard web apps/apis (what people are typically building in JS/TS) try/catch is far superior. Have the error bubble up to your endpoint, serve either a specific error message or a vague error message depending on error type, log accordingly. This is so simple, much quicker to develop and provides all the functionality you need. You can still use returned errors in the places that really call for it, but in my experience those instances are in the minority.
Indeed.

I apologise that none of the following words rhyme; rough, cough, plough, dough, lough, hiccough.
The “right to be forgotten” works nicely in tandem with the “right to know” - where you get to ask companies to tell you what they have on you.
Ask HN: How do you keep your sense of purpose during rapid tech revolutions?
Agreed. Torx might not be ideal, but it is widespread and (relatively) cheap. And miles better than anything else that is widespread and cheap.
Yes because just snap your fingers and you get cured easily of a genetic disease, sure

"they treat you forever" well I certainly hope so, given the alternative is snuffing out

(yes yes I'll be the ones to agree that companies and researchers can be hard headed sometimes, but that's not why diseases go uncured - life and biology is not a tiktok video)
Yes, Apple shipped the top tier PowerMac G5s with water cooling, including the top-of-the-line quad-core (2 x dual core) models. I don't think they were overclocked, they just ran extremely hot at stock speeds.
Can the model use the text without making a copy (in memory) to process it?
We stuck with Intel MBPs for awhile because people needed machines, but the scientific computing infrastructure for Apple silicon took more than a little bit to get going.
The local hardware stores' own brands offer a wide range of cheap, torx-compatible screws. I think this started not too long ago (but can't say for sure, probably 2019 when the latest torx patent expired?), and they still offer screws with the normal cross shape. Both are of the same, decent quality.

I only buy the torx/star variants, since they're just superior.
I know this book is not intended to be used as a first reading on Linear Algebra but, to me, this text isn’t good even for a second(or a third) read. The author hurries up too much on certain parts. I think that Serge Lang’s Linear Algebra does a better job in explaining pretty much every topic of the subject.
That's the big if, but even if your team agress to use this, the greater JS ecosystem doesn't, so you end up being the odd one out.

"Law of least surprise" is a good thing to keep in mind when writing maintainable code.
China isn't a communist country, it's first and foremost authoritarian. They do have ruthless capitalism, and the ruthless competition in between individuals that comes with it.

They inherit from confucianism, and a more collectivist mindset that is prevalent in this area of the planet, but I don't think it should be conflated with the way the economy is organised.

The Japanese on the other hand are overall conformist and conservative.

With just these counter examples, it doesn't feel like you're looking at the right variables to judge whether innovation is embedded in the culture or not.
As always it depends. If that one improvement is paid for by more hacks (not just small inconsistencies), you start thinking. Adding hacks is linear, but their destructive effects are exponential because they start to interact. These places typically are never revisited but covered in more crust.

What if your colon surgeon bragged "Yes, I forgot the instrument in you, but the polyp is gone, so celebrate the improvement and shut up!"?
I don't know why people think that DNA is so personal and private. it's the equivalent of IP addresses for biological beings.
Because despite being currently at the forefront of technology, Apple has shown time and time again to be anti-user.
Yup, I really enjoyed looking through this gallery. Was a nice detour from the middle of the article :)
I used to be able to use Google for that (at least for written speech), but results have been decreasing in quality for the past few years.
> If you were initially fine with software emulation (i.e. Rosetta 2)

You'd need a DTK to know if you're fine with emulation or not.

If you cared at all about your app running, you wouldn't just assume that it magically runs fine on an emulation layer you never touched, and that at speeds that are reasonable.

For a reference point, Rosetta was far from being great, and while some apps could run against it, it was most of the time an ultra painful experience. That pain helped devs to put the effort into making native versions, but it also means you couldn't expect Rosetta 2 to give acceptable performances from Apple's track record.
I got an M2 Pro Mini a couple of weeks ago to replace my 2018 i7 MBP and while it is obviously snappier and you feel it's more powerful without running benchmarks the main difference is that: it is silent. I only got it warm to the touch rendering video with Da Vinci, when CPU temp usage quickly went to 75ºC.
Ironically, I bet that a lot of React-driven apps use try/catch on a regular basis. Despite not doing a deep dive into the topic, I believe React's "asynchronous" (Suspense?) functional components actually throw Promises, and the runtime awaits them before re-rendering the component.
(Just pointing out that all these numbers are in GB/s)
> My DNA isn't some terrible secret I have to hide in the dark.

You DNA isn't as unique as you think it is, or it is, but specific parts aren't. The way law enforcement uses DNA tests only compares a small part of your DNA sequence. People have already been wrongly convicted based on DNA "evidence". If 23andMe is opening up access to their database of customers there's a very real chance for people to be misidentified and potentially implicated in crimes they didn't commit, again this has already happened using existing DNA databases.

So yes, you absolutely need to keep your DNA in the dark and only provide it when it's beneficial to you and when you can trust that it's kept safe or destroyed. Providing DNA to a company that might sell it in the future was always a stupid idea. 23andMe might be completely safe in what they are doing, but what stops them from selling your data to say Palantir in the future?
One does not simply move to a democracy.

Democracies are welcoming for people stepping down, not up.
Are you talking about Rosetta 1 or 2? Because Rosetta 2 was not an "ultra painful experience" in any sense of the phrase.

Rosetta 2 was straightforward and surprisingly fast, requiring zero tweaking or user interaction. Most people never even noticed.
A big problem with discourse on AI is people talking past each other because they're not being clear enough on their definitions.

An AI doomer isn't talking about any current system, but hypothetical future ones which can do planning and have autonomous feedback loops. These are best thought of as agents rather than tools.
My guess is they live in the US and they're making their argument under the assumption that the treatment will be enormously expensive and you will have to pay out of pocket for it. In that case you're caught between a rock and a hard place: will I die a slow and painful death due to genetical disease X, or do I go bankrupt paying for it.

In many countries this is a genuine concern I guess. Even in multiple European countries with great healthcare and (nearly) free health insurance, "novel" (and often very expensive) treatments are not always covered.
Early versions of OSX (well Rhapsody) were release on x86 and the underlying OS ran on several other chips so really well known.
Because insurances can use DNA knowledge as a justification for charging you more.

If having the wrong IP address costs $1k extra per month, but only of other people know, then you'd also be more careful about keeping it a secret.
I wonder... If you don't have access to randomness, e.g., you need to base your choice off some fixed program, and with some limited program length, in theory a perfect observer should be able to guess with certainty your next choices after some time, since there's only a fixed number of possible programs?

Of course this isn't of much practical use...
For inference or training?

For training, Apple has no CUDA, so you're pretty much dead in the water, unless you're specifically interested in e.g. local fine-tuning (for e.g. privacy or start-up strategy of "use the user's compute").

For inference, 4090 and H100 are not designed for throughput per $. Nvidia GPUs like the A40 or T40 are tuned for cloud inference, but at the end of the day your product is either running inference server-side (so play your own CAPEX vs OPEX, maybe even try Jetson) or user-side and so the user chooses the hardware not you.

I mean maybe there are Wallstreet analysts or people at Qualcomm/Broadcom who want an Apple vs Nvidia shootout to see who is getting the most of their silicon, but for the product space the comparison is basically irrelevant. Which is likely what Apple and Nvidia want right now.
Says it's spicy
haha feel sorry for everyone who paid, these assholes are doubling down and screwing their customers even more
This is very useful. My biggest problem, as a non-native English speaker, is figuring out when to use a hard and when a soft "g".

Example:

https://youglish.com/pronounce/gif/english
One and a half 12-chip?

Or a 12 plus a binned 8?
I can keep it quite consistently at ~45%, by changing my pattern.
Assuming you have the source code for all your native code, then yes it should mostly work. 3rd party libraries can contain native code which means that you may be dependent on someone else porting their code.
https://hringdu.is/

An Icelandic ISP that I've been a very happy customer with for years.

Some years ago, back before I bought my self some proper networking equipment, I was renting a router from them. On a Saturday evening the connection went down and so I reached out to them on Twitter for help. We worked out it must be the router giving out. Within an hour there was an employee from them standing on my doorstep with a new unit for me. At 21:00 at night!

And roughly two years ago they sent me an email saying they had just reduced the monthly fee by a considerable amount (~10%).

I point anyone who will listen towards them.
This was really interesting, I (being a C buff, beard and all) love this kind of low-level hacking to get critical infrastructure to work on a platform. Many of the gotchas they experienced seemed familiar (such as char's lack of signed-ness) from helping beginners with the language, too.

It was surprising that the OP calls C's shift operators (<< and >>) rotate, especially surprising in the context of low-level/assembly programming where rotate is very often a separate instruction. A rotate will bring bits "around", while a shift just inserts 0s or sign bit copies.
Once that happens, it won't be by the backdoor.

Insurance companies will offer a "DNA discount" and ask for DNA directly, and simply charge more to anyone who refuses, and then grade the amount of "discount" based on the risk profile back from the DNA sample.

If you hold out and refuse, you'll simply get lumped in with the riskiest.

People love a "discount".
And by all means don't do it under the extractor fan, it will suck in the flames and catch fire.
Good question. I would like to hear OPs answer.

Personally I've been tempted by the hardware, but I don't care for Apple's software bundle (MacOS, iTunes, etc.). With the M-series they have show indifference/reluctance/hostility to work with other vendors and the open source community. Asahi Linux has made major progress, but despite support from Apple.

Another (minor) frustration is the keyboard layout. I'm user to having backspace, delete, insert.

Finally, Apple's offerings are a bit heavier that the ~1kg ultrabook I like to work with.

[Summary] I wouldn't say I would never buy Apple, but so far they haven't presented products appealing to me. And at the root that is caused by their approach to stewarding their "ecosystem".
I worked in insurance and they all seem intent on tailoring everyone's insurance policies based on any minutiae they can dig up on them. For example they found out for life insurance that people who live in greener areas live longer, so they were trying to obtain geographical data for "greenness".

I asked them what the end game is. What happens when everyone's insurance policy is exactly tailored to them? What is the point of insurance then? If they get it too right they put themselves out of business. They didn't have a good answer.
But how will I ever survive without my touchbar?
What quantization are you talking about for these?
Those people typically want to use their phone indoors too. There's really no good way to spin an uncomfortably hot phone.

If it's separate from the phone then you don't have to worry about that, but again if it's separate from the phone the entire scenario that made you want this kind of device starts to collapse because the requirements are so different.
Well, If you see pattern in the spam mail then you can setup a rule that filters the spam.

That’s what I have done on my outlook.
My “sense of purpose” has never had anything to do with my career in software. Family, friends, children and other interests give me sufficient purpose. Tech is for getting an income.

If you work in the industry long enough you’ll notice very few actual revolutions or even innovations. Just a lot of recycling and fad and fashion, with the occasional actual new idea.
Industrial espionage happens everywhere, the US does it, as well. At some point this excuse starts becoming cope.
Last month I did testing on the latest gen AMD APU (7940HS @ 65W - 8C Zen4 CPU, Radeon 780M RDNA3 GPU) on how llama2-7b (4-bit quants) performed w/ a variety of inferencers (llama.cpp, exllama v2, mlc w/ CPU, CLBlast, ROCm, and Vulkan backends) and only llama.cpp's ROCm implementation convincingly beating CPU inferencing.

Even then, interactive (batch=1) inferencing was still barely faster. I suspect memory bandwidth (I ran w/ 2 x DDR5-5600) is the main bottleneck. Just as a point of reference, the inferencing performance is roughly in the ballpark of (but slightly lower than) my 16GB M2 MBA.

Details: https://docs.google.com/spreadsheets/d/1kT4or6b0Fedd-W_jMwYp...
"k" as in "kilo" is never capitalized.
You should try starting one. You'd just need to work with every email provider on the planet (including people running personal email servers) and convince them to let you decide for them what is spam or not, get them to implement a massive list of IPs/domains to whitelist on their servers, get them to let you edit that list whenever new mass mailers sign up for your "We're totally not spam" service, and then get them to provide some way for complaints to come back to you so that you can enforce your rules. It'd be a hard sell for mail providers, and it wouldn't solve the spam problem for any messages that aren't sanctioned by your service.

You'd also have to do a lot of work to validate new senders long before they send their first message and you start getting complaints or else you're just letting spammers pay you to completely bypass every mail provider's spam filters until they finally get blocked and have to create a new account with you under a different company name.

If you can convince everyone to trust you, and your service, and that it'd be worth it for mail providers to do all that work on their end on top of everything they're doing currently to prevent spam, it really could improve deliverability.
No OP, but UK keyboard layout on Apple devices sucks, seperately from overriding decades of muscle memory reaching for cmd instead of ctrl. Could never get used to UI/workflow. No native window snapping (back in the day at least). Workarounds required for a lot of my tooling, no native containers, until recently no native VM solution (believe UTM solves this). Brew.

As a disclaimer I do think Linux with Gnome provides the absolute best developer experience so you can take all my opinions with that in hand.
Why is Java still so popular even in 2023?
Who is "those folks"? The ones I know of have been complaining about how the term "AI safety" has changed meaning from "don't kill everyone" to "don't embarrass the corporation".
There's no other computer that has this performance on integrated GPU, unified memory and battery time.

But if you don't need any of that, of course even a used windows laptop would do and can have 32GB RAM.

I paid 2200€ for the M2 Macbook Pro in Sweden, but PC hardware sales have been tanking hard, so I think the pricing reflects that.
It is not obvious it does.
> low-end laptops

you're saying they're low-end because Intel? if you've got your macbook connected to two monitors, you're not very concerned about battery performance.

So isn't Intel silicon competitive speedwise? I thought the M[0-4]s were OK but sort of hypey as to being better in all regards.
Take the following function:

function arrmin<T extends {field: number}>(a: T[]): number {
let m = a[0].field;
for (let i = 1; i < a.length; i++) {
if (a[i].field < m) {
m = a[i].field;
}
}
return m;
}

Now call arrmin([]). There's no way to avoid a throw. You would have to annotate every function that uses field selection on an array element (and a bunch of other conditions) as "throws", or enforce error checking code (if (0 <= i < a.length) {...}).

Rust didn't solve that either, does it? It just panics.
I actually, without any speck of joke, want to speak english with redneck accent or texan.

example of i18n with redneck as target: https://web.archive.org/web/20120307132029/http://www.ninesy...
That is the thing though, you're privileging good intentions above good results. None of the pro-growthers "care" about China, they just like the benefits bring to them personally. Nevertheless, more than a billion people you consider peasants thrive.

The degrowthers literally want them impoverished so that they can score whatever weird points care earns them in their twisted framework. It is a sick philosophy. Hopefully they keep losing battles long enough for Africa to get up on its feet.
I agree with you, although I think your example does perhaps display some missing social understanding, even if the intention was good-natured.

> the white balance is so poorly executed on this everyone looks like they're suffering from a severe case of jaundice. It's all I can focus on and it's not helping your film

It's a bit much right? There is a way to give strong negative feedback without sounding affected. You could have communicated the same thing with the slightly toned down: "The white balance is really poorly executed unfortunately. It's all I can focus on and it's not helping your film."

I liked the original article by the author as an example of giving negative feedback.
I’m quite surprised to see that setup.py has been deprecated for years. I set out to setup my first package earlier this year and after spending way too much time trying to figure out what is recommended and why I actually settled on setup.py

I knew it was “the old” way, but didn’t realize it was abandoned.

Getting your code packaged seems way harder than developing your code.
Marlon Brando's Island in French Polynesia
I remember a certain Skyrim installer that was created by them. The progress bar would only update every 25%, and on my slow PC, it felt like an eternity waiting for the game to install. Also, if I recall correctly, the installer didn't create a desktop shortcut, so you had to hunt down where the game was installed. Those were certainly some memorable times.
I want to build a cluster and run it in a data center.
So. Tempted. Decent ports again, decent keyboard again, plus the M3 goodness, and it comes in black :)

But the MacOS shitshow is a deterrent. Anyone know if you can install Linux on them?
Packaging was the reason I left python (in favor of Nim) roughly 10 years ago.
I suspect the difficulty comes from the developer’s skills, or lack of, not from an inherent complexity in the to-do list domain.
The whole company is sized to a specific revenue stream, and this revenue stream requires a specific sales volume. Apple could get off Mr. Bones' wild ride, but this would require remaking how the whole company works:

- less frequent laptop releases mean lower sales (do you want this 2020 Mac or this 2023 Dell?)

- lower sales mean lower revenue, lower revenue means lower costs

- so now Apple has to spend less on R&D and at the same time convince its board of directors that lower sales don't mean Apple is failing
He's the Jordan Peterson of climate change. Spends half his time making snide digs at his opponents and then goes right into sophistry and word salad when he finds himself on tricky ground:

> Interviewer: “Tell me more about what’s happening on the energy front.”

> Smil: “We haven’t made a single correct move in energy.” […]

> Hydroelectricity is the best, the most sustainable—I hate that word, sustainable. That’s the best form of renewable energy there is today, right? Because it runs all the time. Wind—well, you know, even in Manitoba, it’s not there 75 per cent of the time…. People feel constrained to be publicly correct to build a wind turbine farm…. Why do we do these stupidities, right? Well, because we feel renewable energy is only solar and wind, right? Not hydro apparently. Most people don’t think that way.”

> Interviewer: “You mentioned you dislike the word sustainability.”

> Smil: “Yeah, absolutely hate it [the word sustainability] because there is no such thing. Sustainability cannot be defined. Sustainable for what? Over next year? Over 10 years? Over a millennium? On a local basis, on a planetary basis? I mean, there are so many time and space dimensions to it you cannot define what is sustainable. If somebody is boasting that what they are doing is sustainable, it’s a total laugh. There is no sustainable thing.”

https://www.desmog.com/vaclav-smil/
One of the advantages of libraries such as these (in my opinion) is it gives you the ability to incorporate the errors thrown into the return type of functions, creating a broader contract than you would ordinarily achieve.

This is mainly in the context of TypeScript (think IntelliSense, etc.), also considering the fact that TypeScript doesn't support typed errors (neither does Flow, FWICS).

Then again, wrapping everything is a huge pain.
Python's situation is pathetic. Some Python folks wanted to get rid of the builtin module `distutils`. Got deprecated, and now it's finally removed in Python 3.12. That's a breaking change in a minor release, probably because they're too afraid to do a Python 4 release after the 2->3 debacle. Then they publish a migration guide only as part of the 3.12 release, which is too little too late, cause the majority of the projects hasn't moved away from `distutils` yet. There's a lot of unclarity like "you can just install setuptools, it replaces distutils" (setuptools has a startup script that hacks the search paths so you can still run `import distutils` and get their vendored copy of it). Except nobody knows whether to add a conditional dependency on setuptools then. Why on earth do you have to depend on another package to get a vendored copy of distutils? And a fraction of the projects doesn't care and makes it a user problem: just install setuptools yourself as a system / user site-package, then everything works. (Except it doesn't when setuptools is in PYTHONPATH cause the startup script doesn't run, which happens on nix and other prefix-based package managers). At the end of the day, every Python package has their own ugly solution.

All that could have been prevented by the Python folks who insisted on deprecating a builtin module. They could have jumped in and help migrate the popular Python packages away from distutils long ago, to set an example. But nope, they really like to keep things messy.