skysight-inc/HackerNews huggingface dataset:
The author has reinvented the ?-operator from Rust and Ruby, but for Go.

Here's the same function in Rust:

fn decomp(filename: &Path) -> Result<Vec<u8>, io::Error> {
let fd = File::open(filename)?; // File is automatically closed by its destructor.
let zd = GzDecoder::new(fd); // flate2::read::GzDecoder::new does not return an error.
let mut data = Vec::new(); // Rust makes the caller allocate the buffer for reads.
zd.read_to_end(&mut data)?;
Ok(data)
}

I think this is great. From a reader's perspective, it can dramatically improve readability in a lot of functions. From a writer's perspective, these kind of solutions make it easier to compose expressions without interleaving if-statements after every other line.

Yes, sometimes you want to add context to your errors instead of using this syntax. But you can always use verbose syntax when it's needed, and terse syntax when it's not.
Everyone's salaries were probably high enough to skate by for a bit... it's a tech company not a burger king.
Can you explain Z pack and backed up?
>I guess my question is, why isn't the battery and its early connecters better sealed off from water, and is there anything you can put in place to prevent bricking a $17k part if it detects water intrusion.

You should read walter isaicsons new book on Elon. Elon maniacally checks every requirement and process. They literally talk about this in the book. It was deemed "Stupid" to have inserts to make the bottom of the cabin waterproof.
> Part of the unspoken reality of Twitter is that it became an integral part of modern journalism.

I think this is true, and it's absolutely horrifying. Nuke it from orbit.

Twitter didn't just become toxic with the Elon takeover. It's always been toxic. It's structurally toxic. The net effect of Twitter being the brain of humanity is to prioritize and elevate the dumbest, most divisive, and most emotionally triggering ideas from every part of the ideological landscape and de-prioritize anything deep and intelligent. Trash and rage bait drive engagement.

It's like letting trashy daytime TV drive your civilization.
Has something changed markedly in the past few years?

It was fine back when I worked there

https://old.reddit.com/r/EDC/comments/dmnuts/53mamazon_fulfi...

as I noted:

>It's a job. The motto is:

>>Work Hard. Have Fun. Make History.

>and the company tries for that. Like most jobs, it depends a lot on the folks one works with/around, and what their behaviours result in management doing.

For folks not familiar w/ "Manna":

https://marshallbrain.com/manna
Are you implying that I am one of them? When exactly have I held a gun to anyone's head?

I just picked my best option in an open market...
Surely insurance would cover something like this?
And? How is this newsworthy?
Bit better performance, fewer bugs, updated implementations.
This was an entire episode of South Park last year.
> Only fix was replacing the assembly.

This is nuts. And tbqh hard to believe. Part of me thinks the lack of mechanic knowledge around Teslas make it really easy to exploit owners. With most other vehicles, you can usually cross check with other mechanics
Hard disagree, there's plenty to complain about with python strings but drawing a formal distinction between str and bytes is one of the smartest things they did for the language. It made the transition from 2->3 a huge PITA but it's one of the things that forces you two write better code. You have to actually acknowledge when you're doing an encoding/decoding step and what encoding you expect.

Python3 caught a programming error for you and you're mad about it. The traceback you got was an encoded form (bytes) that you were blinding decoding in ascii when it was in fact UTF-8. You can tell it to truck through with surrogateescape but surely you can agree that it would be insane to make that the default.
Mostly because it was the couple themselves who said that according to the article.
What about it makes you afraid? The idea that robot tech might be about to improve at exponential rates sounds amazing to me.
As someone who used to research neurogenesis in rats - there isn't great evidence that adult mammalian neurogenesis occurs in humans, so don't assume that this will translate to humans.
Do you trust providers without net neutrality codified in to law?

I sure as shit do not.
I'd heard of Crouton and the like but I hadn't heard that Chromebooks had (what appears to be) a native and supported way of installing Linux applications. What distribution is hiding under the covers there?
I wish it were that easy. I've had sibo for 3 years now, originally methane sibo, took 2 rounds of xifaxan and neomycin and 3 rounds of xifaxan alone and now still have hydrogen sibo. I've tried many other herbal treatments, done a ton of tests, tried probiotic loading to overcome it, but nothing seems to have really worked. Worst part is eating the same meal, for every meal, day in and day out because it's the only food that doesn't give me issues.
You can more powerful / faster GPUs in an Intel Mac Pro than the M2 Ultra GPU for sure.

I do recall a while back Nvidia did release updated MacOS drivers, but I’m not sure of the state of those on modern macOS.

But it certainly was possible to run an NVIDIA eGPU at some point.
Lots of other good Makefile `help` target suggestions here.

https://gist.github.com/prwhite/8168133

My favorite is (since it only depends on a recent bash):

SHELL:=/bin/bash
.PHONY: help help_target-funky+names.0k and_with_2_targets_and_spaces_like_bison
help_target-funky+names.0k and_with_2_targets_and_spaces_like_bison: ## Funky ones & bison dual target display ok
echo "bad - why are you not displaying?"
help: ## bash help
help: ## moar bash help
@RE='^[a-zA-Z0-9 ._+-]*:[a-zA-Z0-9 ._+-]*##' ; while read line ; do [[ "$$line" =~ $$RE ]] && echo "$$line" ; done <$(MAKEFILE_LIST) ; RE=''
i've never understood why it isn't given out free in pubs - its a pittance to source, and my god, it gives you a thirst. Not to mention it tapping into some kind of trad-pub vibes
That's one's been flagged for some unknown reason. :(
The article mentions:

In addition, similar to a previous report using a transgenic mouse model of Alzheimer’s disease,56 the relative abundance of the pathobiont genera Desulfovibrio was significantly increased in Alzheimer’s patients compared to cognitively healthy control subjects
You are right. I think what I don't like is that using this operator stops you being able to use the error as a value in the given context. I would rather always have the if block there, screaming it me, ready to be addressed. But certainly YMMV.
So it's $33k in AUD but notes in parentheses it is 17k in British Pounds. I thought the same thing to though.
Perhaps one can imagine a researcher who knows many children die every day, uselessly, and it filled them with hope to honor those children, by leveraging their tragedy to try to improve the future.
Banks have an obligation to ensure that people can access and use their funds. This isn’t email, being unable to spend your own money has very serious consequences for people. It’s their duty to provide security measures that both ensure transactions are authorised correctly, and allow people reasonable access to their money.

If you’re house bound, entirely dependent on a trusted third party help for your day-to-day living, and your bank only provides a debit card and PIN facility to authorise your transactions, then what choice do you have but to share those credentials with a trusted third party so they can buy food for you?

The bank chooses the authentication mechanism, their customers don’t get a choice. If that mechanism doesn’t work as intended when faced with common and entirely reasonable living situations, that’s the banks failure, not the customers failure.
There are always risks. Every US automaker has gone bankrupt at some point except Ford and Tesla. Success is not assured, and there is substantial peril ahead. Regardless, Tesla is not fighting for it's life like it was 5-10 years ago. They are on firm footing, through a combination of insatiable demand for energy storage products, robust EV subsides to get off of fossil fuels (which I refuse to debate the merits of, that is wasted time), and a brand that is popular. Tesla may still die, but we must get to the point where it is immaterial if they do, where there is no going back to combustion for mobility.

The financials I reference are public in EDGAR, I currently do not have access to material non public information and would not share if I did.
universal name: Palmaria palmata
I've had several really negative interactions with Cruise on San Francisco streets. More worryingly when I tried to bring them to Cruise's attention I got no response. I've had cars drive aggressively in a stop start motion towards me and my kids on a crosswalk, such that I had to stop in the middle of a busy street where we had right of way, to allow the Cruise vehicle to barrel past. A situation that would have resulted in being pretty dam pissed at a human driver. I don't think they should be on the roads.
The line is supposedly a quote from the couple. Or at least this is strongly implied by the article.
Analysis of gut microbiota composition by bacterial 16S rRNA gene sequencing in a subset of Alzheimer’s patients (Supplementary Fig. 1A–E) revealed no significant change in alpha and beta diversities between control subjects and Alzheimer’s patients (Supplementary Fig. 1B–D). However, at phylum level, Alzheimer’s patients had a higher abundance of Bacteroidetes (Fig. 1C) reported to comprise many pro-inflammatory species,53 and a lower abundance of the phyla Firmicutes and Verruocomicrobiota, reported to produce beneficial metabolites.54 At the genus level, Alzheimer’s patients had on average a significant reduction in the relative abundance of Clostridium sensu stricto 1 and the short chain fatty acid (SCFA) butyrate-producing genera Coprococcus, which is associated with healthy ageing in general55 (Fig. 1C). In addition, similar to a previous report using a transgenic mouse model of Alzheimer’s disease,56 the relative abundance of the pathobiont genera Desulfovibrio was significantly increased in Alzheimer’s patients compared to cognitively healthy control subjects
The first one there has been flagged, but the 2nd one seems ok still. :)
Off topic but who thought naming your site 404 and creating branding with slashes and modal call to actions on page load was a good idea?

I almost immediately closed the page thinking the link was bad and I was seeing a 404 status page, because this is the shitty UX on first load on mobile: https://imgur.com/IYDWWBp
Oh, very cool. I’d missed that somehow. Thanks for the link!
You can count individual tree rings, so yeah.
Air Canada sues seats.aero for scraping award availability [pdf]
Nobody said that. Nobody was hating the player.
We need a modern update to Diderot's solution for kings and priests that considers politicians and billionaires.
No, its a use case and a huge feature.

During the work day my wireless headphones are pretty much always on. I'm able to get up from my desk and stretch, get something from across the office, go to the kitchen and make lunch, go check the mail, do pretty much anything around the house without needing to take them off. Having the headphones not physically tethered to the device is the point. I don't have to literally disconnect from whatever media I was consuming or conversation I was having just because I stood up from my desk.

And then I also don't have a cable flopping around while I'm at my desk. I don't have a cable to get tangled up. I'm not limited to whatever length of cable I need to connect properly, the headphones work anywhere in the room. I charge the headphones overnight at my desk every few days, so charge levels are never really a concern.

I'd use wireless headphones exclusively on my gaming PC if it wasn't for the latency and HSP using a lousy codec. Newer Bluetooth standards will solve that HSP quality problem and really reduce the latency concerns. Its a massive pain having to deal with my wired headphones on my gaming PC compared to my experience on my work setup or personal laptop with my bluetooth headphones.

And as for out and about, my bone conduction wireless headphones are leagues more convenient than any wired headphones. Not quite as high of quality, but for the convenience and non-isolation properties they're excellent for just out and about ambient music. I also wear them when gaming on the couch with my laptop while watching a show with my wife while she knits. I can hear the game just fine, I can hear the show, and can carry a conversation with my wife without wires all over the place on my lap and couch.
VSCode + ElixirLS is usually enough for everything. ASDF is a useful tool to install desired Erlang/Elixir version. Don't think you need anything else
I guess we just differ on our understanding of Van maintenance cost.

Rivian is worth 17 billion today, and loses a billion per year.

Buying them to support the Amazon fleet would be paying 1.7 million per van upfront, then 100k/year, just to ensure spare parts manufacturer exits.

That is one hell of a cost to avoid buying 3rd party parts.
That makes sense. The art industry is an opaque manipulative machine. It is full of very rich people who just care about how the art is valued in the secondary market. I do feel that there has to be a way where so-called real artists get their due, not just the ones making art for the collectors. I recently saw a show in MoMA PS1 by Puerto Rican artist Daniel Lind Ramos, who is 71, it is a pleasure watching him making his sculptures. He makes me wanna make art again. I am not sure how to delineate art for money from art that is worthy. How does one make the type of art they feel they need to make and be compensated?
It would be cool if you could create technology to diff a donor microbiota to a recipient microbiota in humans and check the causality.
Yes, when a topic you're intimately familiar with comes up, it's unbearable reading the comments.

Worst part is when you try to set the record straight and wind up with -5 votes and a dead comment within minutes.
This isn't specific to ketamine tho is it? The placebo effect is well studied.
WhatsApp clampdown highlights video call compliance threat for finance firms
Not really weighing in one way or another, but I do not see scatter plots in the paper other than one PCA plot (which was not LDA... not sure why they chose PCA, so no strong reason to expect point separation there, though I do not know the diversity metric they are using so feel free to ignore my commentary).

Violin plots always look like they overlap. I think seaborn's split=True should be pushed a bit harder.
Seaweed must have water though.
> That's far from "marginal" or a "gizmo", IMO, and I don't think we've even begun to see the final outcome.

Come on. The internet is really a gizmo that in no way is a substitute for basic needs (like housing, healthcare, or security) when evaluating someone's quality of life.

That's pretty easy to show: if you were given a choice between:

1. being homeless but having access to "a good portion of the sum total of human knowledge" through "cheap cell phone plan."

2. having a home, but no internet access.

Which would you choose? Wikipedia won't keep the rain off your head.

IMHO, software engineers are often very poor judges of the true value of the tech-gizmos they spend so much time with.
Ah thanks. My basic knowledge of the US was that most workplaces have a single union, and that in many cases membership is very high. IE police, teachers, doctors, lawyers, auto workers. But looking it up now it's not as clear. Yes the case you mention of multiple unions and also individuals seems possibly more balanced! Thanks.

I'd like to see a comparative analysis of how the legal and social infrastructure for unions differs in outcomes between all the different ways it has been done across countries, industries, and time.
"Z-pak" is a dosage of the antibiotic Zithromax, or Azithromycin, taken as a "pack" of pills over the course of 5 or more days.

I'm guessing backed up means constipated
Five charts to help understand Canada's record-breaking wildfire season
Yes and no. So I did it because I honestly get annoyed with pixel operations in node js. The same thing in Python with the pillow library achieves the same things in quarter the lines of code as you would need in something like sharp in nodes

The other reason I used a Python backend was that I want to extend it to more involved image processing, like producing control net inputs or post processing the end result.

Does that make sense ? Open to better ideas though
Eng teams and PMs using Miro for retros and sprint planning is one of the stupidest tech trends I've seen in the last 2-3 years. Panning and zooming and manually sizing and moving post-it notes, we might as well do agile ceremonies in Tabletop Simulator.
In the UK authorised push payment fraud, where customers are tricked into authorising payments to fraudster accounts has a similar smell to Swedish case you mention. Rulings by the regulators and courts have reached basically identical conclusions to the Swedish courts. Fs the customers acted in a reasonable manner, then it’s the banks failure, customers aren’t expected to become security and fraud experts just to access their bank accounts.
The process hasn't been perfected and is still pretty risky even at official places
Being able to wrap the error with context is the key. If done right, you can identify the exactly what caused the error without any additional infrastructure. (For people that say stack traces do this, they don't. They don't tell you which iteration of the for loop you're on. They don't tell you what the code on the other side of the channel you read the error from was doing.)

My rule for errors is to add only information that the caller isn't aware of. So don't do:

func GetFooByID(ctx context.Context, id int) (Foo, error) {
row, err := LookupRow(ctx, "foo", id)
if err != nil {
return nil, errors.Wrapf(err, "GetFooByID id=%v", id)
}
return row, nil
}

The caller already knows the id it's looking up, and that the name of the function is GetFooByID. It might include those in its wrapping of that error, but GetFooByID shouldn't.

Meanwhile, this is good:

func UpgradeFoos(ctx context.Context, tx *Tx) error {
foos, err := GetAll(ctx, tx, "foos")
if err != nil {
return errors.Wrap(err, "GetAll")
}
for _, foo := range foos {
if err := UpgradeFoo(ctx, tx, foo.ID); err != nil {
return errors.Wrapf(err, "UpgradeFoo(%v)", foo.ID)
}
}
return nil
}

Now your logs look something like "server failed to startup error=apply migration: upgrade foos: UpgradeFoo(42): i/o timeout" instead of "server failed to startup error=i/o timeout". This saves you from "hmm, maybe it's too slow to get all the foos in a batch like that, we should change that". But nope, it's actually UpgradeFoo(42) that's broken.

Wrapping applied well is my favorite feature of Go. Most people don't do it. The standard library doesn't follow my rules. But if you do it this way, every error you see is so easy to debug and resolve. Less downtime, more reliability.

(As an aside, that loop where you accumulate errors can easily accumulate into a multi-error as of recent versions of Go. I always prefer to try everything possible and return all the errors, then you can fix multiple problems with your input on one go. It's also good for cases where you are doing a main operation and an ancillary operation, like closing something. People often ignore errors on "Close" and "Sync", but by joining those into a multierror, then you no longer have questions like "there were no errors, but this file isn't on disk". https://pkg.go.dev/go.uber.org/multierr#hdr-Deferred_Functio... is a really nice approach for the common case of "defer fh.Close()". I have an `errors.Close` wrapper I use: https://github.com/pachyderm/pachyderm/blob/master/src/inter.... Can't live without it!)
I've submitted the link after watching Louis Rossmann video [1] on it which was published an hour ago. The link was in the video description. I was not aware of any previous posts on HN about it.

[1] https://www.youtube.com/watch?v=pka9KaQh7DA
You may not think it is. But it is. If none of your reasons are because of those companies, their product or how they are run, then it is insane.
$FOSS_Project description: reproduces a couple of features of well known applicationX

vs

$FOSS_Project description: reproduces functionality of applicationX

how many people will be attracted to the first option vs the second?
This field is littered with studies like this, measuring hundreds of different outcomes and then presenting the statistical noise as positive findings.
I don't think that's been true historically. You can access maps that you provide, but dereferencing userland pointers (like path names passed into an 'open' call) have not been available. Or has that changed recently?
If you set `$(CC)` (like `CC=i386-linux-musl make`) and can deal with `$(CC)` being your linker. Not all projects can but most will tolerate it.
But that’s part of the value proposition of Go: that it’s a small(-ish) language. I like that it lacks magic found in many other languages. Though I concede that the “simplicity” sometimes comes at the expense of developer ergonomics
> We just need better connections.

This isn't quite enough.

The web is built on top of the internet right now, and the internet assumes that identities are mostly static. To find you, I dial your address, and that gets routed to your computer.

The problem is, in the real world, addresses for humans change frequently unless you invest heavily in keeping them stable.

On the trivial side, an ISP will rotate an IP address out from under you.

On the less trivial side, you'll move from your laptop to your cellphone.

The internet is missing an overlay network that can stably route messages to users in the face of unstable identifiers.

Right now, I'm working on solving this with the libp2p overlay network paired with a scuttlebutt style gossip tree that supports multi-device concurrent writing to an append only database. You group together one or more databases under a "user" client side to model an account for a real world person.

If you can find that database, you can find the user. We locate the database by looking for every node that announces the sha256 hash of root node on a DHT.

This also pushes availability requirements down past the threshold of the persistent connection most devices enjoy these days. Any number of devices can mirror the database, so even if one device loses cell coverage another device is still mirroring it.

The next step is solving delegation. Once you have multiple keys that can write to a shared data structure for a user, you can issue capabilities to third party services to modify that data structure. So you can do fun things like delegate managing/backing-up blog posts to a 3rd party hosted SaaS while still retaining full control of your data.

We are walking around with super computers in our pockets with a near-HA 5G cell connection. The problem is, they aren't addressable in any meaningful way for the use cases users care about. If you want to host your website, you can't do it on your personal devices without figuring out a stable identifier for them on the internet.

Edit: If this stuff interests you, we have a good list of research papers inspiring what we are building listed on our open interview challenge - https://gitlab.com/webai-open/network/interview-challenge