skysight-inc/HackerNews huggingface dataset:
A function that allocates resources in several steps jumps, on error, to the teardown part at the end to deallocate (in reverse order of allocation) only the resources that were allocated. The others are skipped (jumped over). It's very popular in the Linux kernel.
Not disagreeing with your conclusion but there’s a difference between spending $10 more for 3 years of utility vs $10 more for 3 minutes of utility.
> So, should Target not carry items at a price point higher than a threshold that it sets arbitrarily?

Pretty sure Target does that already.
I've been hoping for celebrities to give Mastodon a shot after all of the racist spam proliferating in Facebook/Insta, but I'll admit this isn't quite what I had in mind. Do you have any more information on their decision to use Mastodon?
Do call yourself a programmer, and other career advice
This will be moderated by Trump and he will call them a synonym for unruly and boot, I imagine
For more high level languages, continue and break are the 'goto' statements...

I have never liked continue or break. It always felt like I messed something up if I found myself needing them.
I like the presentation of the three nexted loops.

Maybe "break;" should become a shortform for a generalized "break(1);" (= break one level) if we want to avoid using goto.

Perhaps this can be implemented by combining a macro with setjmmp() and longjmp() from the standard C library, without requiring a compiler change.
As @skyfaller posted elsewhere in this discussion:

> Cryptocurrency isn't just a disaster, it's several disasters bundled together. Anyone working with it in any way, anyone who has a stake in cryptocurrency, has been compromised, and can no longer be trusted, just as your neighbor who is trying to sell you on their multilevel marketing scheme can no longer be trusted. (Did they invite you to dinner? Oh, surprise, it's just to sell you on their MLM again.) They are ignoring multiple dire ethical problems as they sell their relationship with you for funny money.

Basically, any involvement with cryptocurrency is a strong signal of untrustworthiness and lack of scruples. Mere political censorship isn't in the same league.
The type signature and the laws are all functors, applicative and monads are. It's just that these type signatures happen often "in the wild", so we give them names to make reasoning easier.

To take another example, an iterator could be something like:

next :: T a -> a
hasNext :: T a -> bool

That's all an iterator is. The cool thing is that if you implement next and hasNext for a list, an array, a tree and a graph, you can all use them with the same code. That's what monads, functors and applicatives are.

As for the culture part, I think Rust is the sweet spot. Types are here, but you also have explanations. I personally find explanations without types worse than types without explanations, but ideally you should have both. Of course that's assuming meaningful types.
And jumps relative to cs or ip, which serve both. PIC idea is not related to goto.
This is GREAT news for people with kidney disease. I hope we will see this process improve and make transplants possible for more people.
That was indeed a rough time for the language. A big part of that, I think, was the setbacks around the [1] PHP 6 debacle.

[1] https://ma.ttias.be/php6-missing-version-number/
Should have named it 'Irony'/'Ironic'/'Ironical'.
May you live in interesting times indeed...
Forget Twitter Threads; Write a Blog Post Instead
I wish. My drive home takes me past two, “Trump Won. You know it and I know it.” signs. It’s a bit crazy.
Wow, that transported me right back to my first experience listening to Kraftwerk. Thank you, keep it up, very well done!
He said that before we had EVs I presume.
Cryptocurrencies aren't "inflated by fake money". Tether is inflated by fake money. And even then, probably only as fake as the corporate bond market. (Which is pretty fake lol)

Tether going to zero would mean almost nothing, usdc or the even more safe busd is waiting in the wings to fill the liquidity gap.

That's the problem with these hot takes about the crypto market being dependent on tether, it's just fud.
Well, i commented based on the picture itself. Decline in IQ is obvious, decline in SES is barely noticeable.
I actually think this is because leaded gasoline makes people not (just) dumber, but also somewhat sociopathic and prone to crime, which should compensate to a degree for their lower IQ.
Yeah, well, corporate. If you’re in that situation, you have some self-splaining to do. ;)
I like to think I’m a synth nerd in the know, and certainly chat a lot and read synth forums. But Plogue have flown under my radar. This looks like great stuff at a good price. Do you own any of their soft synths?
You've mistaken "wanting to be right" with wanting to "be correct".

I've never inferred stupidity or lack of intelligence with asking questions. The only thing I've inferred was lack of knowledge. And the best way to get knowledge is to ask. People who ask want to know. They want the information to get to correct.

People who don't ask questions eventually make assumptions that are wrong. Because they're so wrapped up in "looking smart" and they think being "smart" means having all the knowledge. They "want to be right" so they don't look information because looking would expose they don't already have it.

Smart people seek information so they can apply it. Genuinely intelligent people just have faster processors.
Even though I own a Tesla and love it I can’t see a fully electric, long-haul semi making sense for quite some time.

For consumers (at least in my own experience) there is a range threshold that, once surpassed, means I almost never have to worry about fill ups again. So the Every day convenience outweighs the once or twice a year inconvenience of longer “fill ups“ vs gas for extended drives.

I bought mine because I hate little annoyances like having to remember/go to the gas station and fill up periodically.

For long-haul trucking though Tesla's benefits would be in automation/assisted driving, not in electrification. Short of some sort of carbon credits/regulations it’s difficult to imagine widespread adoption of a technology that has more downtime and higher initial costs than a previous technology.

The stop/start of small truck deliveries (and subsequent energy recapture) makes sense but for long-haul I can’t see it feasible until the battery energy densities jump by a sizable margin without a corresponding increase in price.

And at that point there's still few financial advantages of electrification I can think of... what am I missing there?
What Is a Token?
Token - what it is, how to buy it, what it is used for, what advantages it has. These and other questions are in my article.
They've disabled signups now, but yes, they were using Mastodon. Proof: https://hackers.town/@thegibson/107137582573450090

> the fediverse[1] is about to get "interesting"

The Mastodon community has dealt with this before when Gab came along. The majority of servers will just block the Trump instance.

And that's if they even enable federation. I suspect they won't.
What mystery? This is the same kind of question as “how does aspirin find a toothache?” It’s based on a whole rat’s nest of false assumptions, and therefore cannot be answered.
Should've used setjmp/longjmp to do the same thing. Make it even harder to reason about.
My wife broke her hand a few years ago, it required surgery to repair. It was not a "normal" issue. I suppose it could be considered normal for a hand specialist, but when thumb mobility could be permanently compromised, you really don't want to pick the wrong surgeon.

As for bedside manner, I'm mostly with you - it's largely irrelevant. For me, it's more of a minimum acceptable level - as long as they're above it, all is good.
> RedditIsFun

This app is now called "rif is fun" due to a trademark licensing dispute.
Very cool project. It reminds me a bit of https://dapr.io (even though they're obviously quite different).

One tiny note on the docs - I found it surprisingly hard to find the github repo for the project listed in the docs. I was expecting to find a GitHub link under contributing but only saw a slack channel. I eventually spotted a link in the Roadmap section.
It's not at all like that. `goto` leads to hard to follow, bug-prone code.

> Why would an otherwise sane person write code with "rep" and without ever using "jmp"?

They wouldn't. Nobody is suggesting that you should avoid `jmp` in assembly. I think maybe you missed the point? The whole "avoid goto" thing is talking about higher level languages than assembly that provide proper flow control primitives like `if`, `for`, `switch` and so on.
The existence of Grönländinga Saga -- specifically, the bits in it about Vinland and Markland and Helluland -- is in itself proof of European cognisance of the Americas. And yes, obviously at least some of them must have made it back, or their exploits would never have been recorded in the saga(s?). There's a couple of timelines in the article, reconstructing the sequence of events both from the artefacts and from the sagas; ISTR the fact-based one also mentions the return trips.

I think what they mean by "lays down a marker" is that this finding marks that already-established-as-existing cognisance in time, since they established the exact year those trees were felled and the Viking settlement built. (And, nice coincidence -- or did they sit on it for a while to make it so? -- it's apparently exactly a millennium ago.)

OK, since the Vikings then had to winter in their in their new-built settlement before returning in the spring, and if you want to count "Europeans know of it" as pertaining to at least Icelanders in general[1], you could argue that the specific marker for "European cognisance" goes a year or two later. But that's academic -- literally, as in, let the academics discuss it. But now they have a starting year to hange their discussion on, so this finding marks not only the age of the settlement and discovery of North America, but ultimately also of Europeans' consciousness thereof.

___

[1]: Not just the also rather precarious settlement on Greenland, which I suppose could have died out after the return of the Vinlanders but before anyone went from there to Iceland, so without ever getting word back to Europe at large.
What is the situation these days with infringement of major IP by Chinese companies? If they've had a battery chemistry to themselves for a while it sounds like they're having their cake and eating.

I have first hand knowledge where at the small and medium scale, Chinese manufacturers will happily knock off major brands and steal technology to make products, and as a non-Chinese IP owner you have very little recourse. Is this situation still how it works for key IP from major companies or if you're (e.g.) Tesla and you had a patent on battery technology, could you realistically enforce it in China?

There are some old quotes from Elon Musk about Space X just keeping stuff secret rather than patenting it because otherwise he'd be just giving it away to his major competitor in China: https://www.businessinsider.com/elon-musk-patents-2012-11?r=...
That struck me, too.
Conspiracy theories are a manifestation of skepticism.

One insight recently in the political theater is to determine what your audience is skeptical of. Everyone is skeptical of something, and these biases, when pinpointed, can be illuminating.

On any topic you can split skepticism into groups. Are you more skeptical of government? The pharmaceutical industry? Corporations? Which?
I wonder what the intended tone is here. I would argue that you're exactly right. Google wants to have their cake and eat it too - they want engagement through rage and unreality, but they don't want to be seen as enabling that kind of thing, so they do performative and largely useless measures like banning people who have large following elsewhere and putting Wikipedia links under Flat Earth articles, but don't actually address the core problem: that they make more money when people get angry for no reason, and thus they have to incentivize that kind of art and "journalism" on their platform.

We see this from the other side every year come Pride; companies put rainbow shit all over their sites while maintaining LGBTQ+ exclusive practices because they don't want to lose their bigoted customers.
Having just read a couple articles about it, I see no reference to nuclear strike anywhere. Do you understand that proposition is to commit genocide at a minimum, and maybe start WW3?

If you wanted to use military force, you would create a power blackout in target area by destroying closest substation or powerplant.

"In the end, two California High School students were arrested and pled guilty. Their mentor, an 18 year-old Israeli, was also arrested"

Surely noone is mad enough to nuke their own country? Or would you nuke the wrong ciutry instead?
I tell it to friends I know and trust in the industry. Outside of the industry it often causes jealousy and potentially damage relationships with nothing worthwhile to gain of sharing it. So I usually just say how money is never enough, we agree on that and move on.
Show HN: An aggregator for delivery jobs by category and vehicle
PHP is in my opinion the best solution when creating libre open-source software

It gives the widest amount of people the chance to selfhost for cheap.

You can get a PHP webhost for $5 per month including databases,
some cheaper, some more expensive.

You dont have to worry about a VPS, Docker, Kubernetes, or anything like that.
Hosting companies contribute by having "one click installs"

Sign up, pay you bill, click a button and you have your very own Wordpress instance
and you can publish what you want.

If you create solutions that you want people to be able to self-host it is the best
choice for now.

It is far from perfect.

WP has suffered a long string of severe security bugs.
People have gotten their sites hacked

Some cheap hosters are not good.
(I had great experience with a couple)

A lot of devs like to hate PHP and see it something awful from two decades ago.
I understand that. There is truth in it.
PHP from 20 years ago is quite different from PHP now.
It is probably better than you think.

I would not start a project that needs to Google scale on PHP.

Nor would I expect a lot of people to have the ability to cheaply and easily self-host something like that.

but I like running my own Wordpress, my own file share solution, my own wiki
and so on.

I can do all that dirt cheap thanks to awesome developers, PHP and cheap hosting.
The author's approach is that he has a reason for his behaviour that others don't understand, and he says they treat him as "stupid," which may not be accurate. The pop culture trope about "genius and insanity," resembling each other has always been presented as mysterious, but the link is that both people are indexed on things others can't see. The difference is that one person is persuasive and manages to cohere, persist, and realize ideas from those things others can't see, and the other person fails for a variety of reasons related to just being high functioning nuts.

The examples the author gives are more about being indexed on what others can't see than him being ignorant - but "stupid" is an interesting one because that means something else. If you separate intelligence and smart as being a capactity for abstraction and clarity vs. being able to get or achieve the things you want, one person can easily be both hyperintelligent and completely un-smart. Nerd is the cliche for that. The low cunning of a middle manager can produce outcomes that are very smart, without much talent for complexity, discovery, truth, or consideration, which is reflected in other archetypes.

I often admit I'm not particularly smart, and that mostly I'm stupid in such unexpected ways that people conclude I must know something they don't, because nobody with a rudimentary apprehension of reality would attempt the things I have. Beware an idiot with the element of surprise. This is to say, I look stupid every day, and it is often painful and has a permanent record, but I see it more like lifting weights, where given the options, using your body to shift hundreds of pounds without leverage is definitely short term stupid, but the effects of persisting are long term smart.
The utility of goto is one of those things I've always understood but been too embarrassed to say out loud.
It's a hard name to meme on. He should have gone for his characteristic "can't help but talk about it". Some name like "Stolen Users Network"
Check out the Asus ROG Zephyrus Duo 15, even though it's marketed as a gaming machine, it will address all the issues you're talking about and might even compete with the new MacBook pros that just came out this week. It should more than suffice since you use it for mostly dev and would be great value. I've personally reviewed it and YouTuber TechLead uses it. Check it out then do your homework before you buy anything, anywhere. Cheers.

https://www.4alltech.com/2020/06/the-asus-rog-zephyrus-duo-1...
I used to work at a place where we recognized each other for the ability to "stick our hand in the fan."

Meaning, we know that some things cannot be understood until they are tried, and trying such things often leads to failure (though there's an art to keep the failure small and learn fast.)

So we'd basically recognize and reward people for embracing that reality, for the ability to say "yup I am gonna probably do this wrong the first time but that's gonna lead to progress"

Inverse of that is fear of failure - inability to do something unless you are certain you're capable of securing a successful outcome. Basically that means you only do things you already know how to do.
Isn't pretty much all modern x86 cpu's ARM at their core anyways, or am i missing something? The big deal about Apple scilicone is how its an all-in-one and obviously having things compiled for arm in the first place helps
I think he's on to something. Lots of young people in the U.S. don't want to drive. They are less motivated than my generation was, because more of their social life can be remote, and cars now carry a lot of stigma as well. Their generation are going to spend a lot less on personally owned automobiles and a lot more on other forms of transportation.
There was a DC-3 rescued from St-Hubert Airport near Montreal, it was just a shell when they started and it flew for D-Day memorial. Registration C-FDTD. You can read more about it here: https://planesavers.com/ and watch the videos on YouTube https://www.youtube.com/c/MikeyMcBryan. Having this DC-3 being rebuilt in what is pratically my backyard, it was fascinating to see the progress and see it in person.
Facts don't care about your feelings and the truth doesn't hurt points of view that are legitimate.
I've done a bit of PHP and it is not under-rated. Compared to most other languages it is terrible. Nobody is saying that you can't make cool stuff with it.

Try Typescript in your next project.
The Economist is selling their cover as an NFT
> only the resources that were allocated

How does it know which were allocated and which were not? If you are talking about memory allocation, then you could simply deallocate all the pointers provided they were initially set to NULL. Freeing a NULL pointer is well-defined in C.
*find

And I dunno, ask my wife.
Also, HN removed it from the front page despite the upvotes. After, November 28 it may be more worthy
when I read the article this was what stood out to me, as well. Last winter it got _really_ cold where I live. Does that mean that if I got a Tesla with an LFP battery it would be drastically less useful in the winter? Seems problematic.
Ask HN: Is proshares Bitcoin ETF any good?
One thing a C-like goto has over exceptions is that you can only jump around within a single lexical scope. That restriction is a big win for readability.

Exceptions use a dynamic scope to decide where to jump to, so, in the general case, it's a lot harder to understand how they will affect program behavior by simply reading the code. That's a major reason why using exceptions for non-exceptional control flow is widely considered to be evil.
Cloudflare’s Pace of Innovation
> Most common issues seems to be staff often not enforcing/honouring seat reservations

My understanding is they don't actually have any staff on the bus, they are a booking system and branding provider for smaller bus operators. There are some small exceptions where providing bus services requires actually operating a bus in a given country but they only do the bare minimum there.
They both present compelling evidence and can be thus classified as science. Darwin spent a couple decades accumulating evidence before he wrote the book.

Also, majority of non-fiction textbook are about psychology, economy, sociology, history etc. which are vastly more intractable than biology and physics.
Not many of us are kernel developers, or agree whole-heartedly with their practices.
Notably, their ToS forbids you from criticizing the site.

> 23. disparage, tarnish, or otherwise harm, in our opinion, us and/or the Site.

https://truthsocial.com/terms-of-service/
Wow, the list of supported targets is a tad longer than I've yet seen elsewhere: https://docs.zephyrproject.org/latest/boards/index.html
'sensitive content'

Why's that, because it's Trump related?
> What we want is to make the kids who do worse do better

Not exactly. The optimal strategy is to make every kid do their best. That means giving some resources to every kid in proportion to how much better it'll make them.

We don't only excel because of our average performance. We also excel, as a society, because of the outlier contributions of some of our most gifted students.
“Non-movement is the same and as valid as movement!”

Sure, good luck with that, but why impose it on others?
So that perspective is largely a risk management failure. Yes, it's possible and probably likely, that at some point a rogue cosmic ray might flip a bit on your phone (or a bit in transit between a tower and your phone).

No, it is exceedingly unlikely that such a bit flip will have a real world impact beyond an unexpected error that manifests as an application crash or device reboot in the worst scenario, and most likely a temporary failure such as an image not loading or rendering, or a decryption operation that fails because the flipped bit makes is treated as an error.

Is it something to be concerned about? Generally not - if you are in an environment that has sufficient radiation that it has a practical impact on your phone, one would hope that your actual concern is more heavily focused on protecting your physical self, and one would hope that your personal threat model increases in scope to justify spending on electronics that are more resilient if you have budget left over after buying protective gear.
typing in the search term "meeple" does not seem to do anything.
Correct. Apparently my phone has "AI" because it recognises a flower as a flower and applies a colour filter and background blur when I use my camera. This is not AI.

By the same extension of logic, any program that recognises input data and performs some form of pre-programmed logic is AI. ie. any computer program?
Lots of people hum and haw and get things totally wrong. The question is not how fast you jump but how well prepared the ground of your thought was for the situation.
Save this tutorial to your bookmarks, then: https://packaging.python.org/tutorials/packaging-projects/#c...
Yet HN removed from the front page. Why the hate for PHP.
New Tencent Job Posting Hints Metaverse Developments Edit
Presumably you would throw the box away before air travel, and according to the article box size != laptop size.