skysight-inc/HackerNews huggingface dataset:
Not everything needs to be rewritten. And a lot of issues can be introduced in rewrites which have nothing to do with the improved resource management that RAII style development brings.

For example, if you port numeric libraries are you sure you maintain the same guarantees for numerical stability? If you are porting containers, do your new backing-array growth strategies achieve the same efficiency as using realloc? Do your new threading primitives have equivalent efficiency on all of the target architectures?

I would prefer to have warnings, or even errors, for 'known bad behaviour' that are enabled by default with new standards - think along the lines of `-fpermissive`. Forcing people to suppress these means that the onus is on them to accept the risks their choices bring.

However, just as with things like void*, the new standards are bringing in their own footguns. Ranges have pointer semantics, not value semantics, for example, which is totally non-obvious and actually means a lot of use cases for ranges just aren't possible. Newer isn't necessarily better, the people writing the original standards were brilliant as well and had their own insights which we now forget.
Life support is not particularly difficult if you can just throw mass at it.

It's probably true that Starship would only be capable to support 10 colonists all the way to Mars and that's still pretty damn good. This number will grow if you have a separate life support system on the surface and don't have to rely on the ship but the first missions will indeed have a very small crew.
I'd say, both. I wish the licenses were fluid across apps/platforms.

Say, I have a right to listen to Madonna from my Youtube Music subscription? A game, with the given permission to access my "music licenses" should be able to use that.
Just as with scientific research, asteroid mining will be the domain of robots. There's no economic case for sending humans for that job, and AI is improving year on year. So sadly no Belters, whatever the value of mining space rocks.
Ah I don't imagine there are any physical stores by me that would stock this. That said I did a google search for "flipper zero site:cz" and it seems there's sometimes second-hand ones listed on ebay-like sites, so that's an option.
I am still looking forward for the option to ungroup task bar buttons, preferably with titles. Again! Something that was there before, worked, and was useful. But some designer decided we don't need that, to the bin with it!
> […] how to build a self-sustaining colony anywhere inhospitable first because it's never been done before, and all previous attempts have failed.

Hmm? It’s been done lots of times: it’s just that once people start living somewhere, we stop calling it “inhospitable.” But c.f. the Inuit, who’ve been living above the Arctic Circle for more than a thousand years.
Even if there was only 1 sunny day a year, it would still be a problem.
> Well it seems you don't understand exceptions. They eliminate erroneous states entirely, since the objects just don't get created if an error occurs.

Error sum types do the exact same thing.

> The alternative that the parent said was making all of your state be a union with some kind of error, and making sure all accesses handle the fact the variable might be in a erroneous state.

Which is a non-issue as it is lifted to the type system. The type system will not let you forget about that.

> That is a huge explosion of possible states in your program, and essentially making every invariant weak everywhere.

You get an error state added to a given value, which you also get via exceptions, except implicitly and without notification of the additional state.

Type-safe error values also provide simpler error handling and recovery in many case, because they don't require split-path handling.

> Then FFI, I suppose you mean interfacing with C. Problems that arise when interfacing with other programming languages are orthogonal to a language's ability to be used for system programming.

It very much isn't, part of the system programming workload is to provide reusable components.

> Obviously you wouldn't let an exception propagate through some C code, that's forbidden.

And rarely if every checkable statically, hence unsafe.
I would be curious for a similar dissection of modern macOS. My intuitive sense is that it is a little better though there are probably still at least 5 layers of stuff.

So to some extent, does doing this better at the scale of a modern user-facing OS provide enough return on investment?
Throughout history, empires have absolutely sent troops when their colonies started clamoring for independence. Now, if Canada wanted to get rid of Charles as head of state and leave the Commonwealth, would the UK send troops? Unlikely, as the cost of the war is very very unlikely to outweigh the benefit of maintaining largely formal control.

But, if Puerto Rico wanted to become an independent nation, do you imagine the USA would let it without trying to quash the "rebellion" with both economic and military might?
This is a really great documentation of how far back various pieces of the UI go. If you’ve been using Windows for a long time, you remember when different pieces of the UI got introduced or changed and then frozen in amber until today.

Crazy to think they are still recovering from Windows 8 and the pivot to Metro UI.
>The whole point is that people are, en masse, concluding that they do not derive more value from being employed by a large corporation than they do working independently or on a smaller scale.

Are they? According to the BLS the percentage of people who are self-employed is lower than it was 2004-2006. It increased during the start of covid but hasn't gone up since then.

Going from "we don't want to put as much effort into corporate jobs that won't reward us for it" to "we want to be self-employed" is a big stretch that numbers don't justify.
> We sequenced Mendel's DNA!" what was the actual point?

The article addresses that. Indeed, before I read the article, I too was tempted to write an angry dismissal. However, their approach and reasoning were very respectful. It was less about curiosity than honoring the fellow for his contribution to human knowledge. If they managed to enlist the support of the Augustinians themselves, I'm certain that we can entirely relax.
The end of malaria? A new vaccine from the team that cracked Covid
No more ridiculous a theory would be that Russian hackers found a way to get many thousands of other hackers around the world to plug in BADUSB/trojan devices. And to also fund their own compromise. :)

(No offense to our Flipper-creating friends. I suspect many hackers can appreciate the interesting and humorous human dynamics that are sometimes at play.)
Elon Musk’s private jet emitted 1,895 tons of CO2 in 2022 – ElonJet Wrapped 2022
> Im not AT ALL responsible for a system that is not controlled by the people.

In the US system all power - nominally - derives from the people. And it still is controlled by the people, as the balance-of-power upset in 2016 - when Trump was elected GOP candidate despite the GOP leadership disfavoring him - showed. But yes; most of the time the two party system is doing a laudable job keeping the the people disunited over petty squabbles, while the moneyed class is poking the fire. And you feeling that "the system [..] is not controlled by the people" is just part of the strategy; you are still an actor in the system and as such you bear responsibility.

> You are supporting corruption by playing its game.

I'm not permitted to participate in US American politics. I'm just an observer. The system I'm living in is a semi-direct democracy with federal, regional and local levels, on each of which I do participate. It's pretty much "by the people, for the people". Still; not without flaws.

> Yes my "do something" is focusing on supporting grassroots people and efforts that we have direct control over.

That's a laudable effort, I congratulate you. Are you aware of other grassroot movements that try to break up the two-party system and to get money out of politics?

What are "common individuals"?
or even simple HMAC if you want to go low-power and brain-dead
I think some people who discovered functional programming after "Pure" OOP, where everything is an object, fell in love with it and got a bit too high on their own supply. But i don't think it's the majority.

Also, functional programming is harder than pure imperative or imperative+object imho, which help gatekeeping, and more impressive (again, only my opinion). There is also a lot a good ideas that (came from/were invented by/were introduced with) FP and are integrated in older languages. This is a perfect setup to have cult-like groups appears, even if the person they revere isn't as "into it" as the group is generally. Imho it's mostly young devs who are/were pretty good for their age group (and thus have a bit of an ego[0]), a bit noisy, and will grow up and be more welcoming in the future.

[0] which is understandable and reasonable, this is absolutely not a shot, i was one of you (lisp/CLOS fanatic instead of FP fanatic, but still) until i worked with people 100 times better than i. The "grow up" is a small shot though, but don't take this seriously :)
Well your code relies on some core tenants or it wont run, and some core ethics of catholicism in history have shifted that wouldnt be valid before, so its reasonable to see how theyd think logically on any topic.
Why?

Simple…

1. Students would flock to easy courses and avoid hard ones. Students can be very mercenary, especially when they are choosing electives. They want the degree, not the learningf experience (some of them anyway).

2. Lecturers would make courses deliberately easy in order to purchase good student feedback. One of my first tasks as manager of my program was to put a stop to lecturers who were giving an average grade percentage of 98 (I kid you not... 98 freakin percent). FYI student feedback is one metric of tenure.

I am not saying that all subjects are of the same difficulty. I am simply saying that it is perfectly possible to package domain-specific knowledge/skills in approximately demand-equal lumps.
Where does the docs/info you need end up being?
Its not outdated. There may be multiple variations on AWD (as i mentioned, some can vary power to individual wheels, rather than just the axles), but 4WD (or 4x4) is categorically not AWD.
> try! and '?' is just a syntactic convenience for passing error returns to the caller.

Indeed. Because manually handling those are a pain in the butt. So they made a shortcut. That still needs to be handled by someone up in the hierarchy. Exceptions in all but name.

> It's not even monad-like because

No one cares whether it's monads or not.
> On my computer, the article's imperative range(6000) took 0.05 ms and the "functional" range(6000) took 400 ms. The whole [...cur, cur.length+1] thing turns a linear algorithm into a quadratic one. It wouldn't happen in all languages, but that's how JavaScript's arrays work. My advice is that if you really want to do stuff like this, choose appropriate data structures (i.e., learn about persistent data structures).

That is a good point and should perhaps have been timed before being put as an example. Arrays themselves are usually quite the mutable data structure as well, so I think your advice about learning persistent data structures is spot on. Sometimes one can simulate a persistent data structure by using copying the whole or parts for some operations and use those only when one needs a separate copy.
> I'm presumably part of the "guerilla marketing" you're talking about, although I don't think it's useful to imagine a community as engaging in "guerilla marketing" when they do what people naturally do, communicate.

Even I agree with all the rest, it's known that grass roots marketing is very strong in Google.

There are people who's job includes to write on high impact channels like HN to promote things.

The Rust hype does not come from thin air. It gets generated in part with the help of a lot of money in the background.

Of course this time the task isn't difficult as Rust sells itself in large parts just on the ground of it's features. But this process gets accelerated with money of course.

There are not much languages that made it purely by (or despite ;-)) their virtues.

One honorable exception is Scala. It made it into the Top20 even it does not have a marketing division, only a small team behind, and a community that seems to love to produce bad publicity consistently (even the language excels at quite some things!).

And there are cases like PHP, C, Objective-C (and for some likely, JS)… But let's not talk about those, …, historical accidents…
Lite XL, A lightweight text editor written in Lua
It’s not nearly as large a dodge as presented. Ideally the economic (tax) life would be similar to the practical life, but “depreciation allowed or allowable reduces your basis” in the asset, so when you sell it, you will have a gain on the sale if it’s for more than your basis. You will be taxed on a portion of that which is depreciation recapture at a higher rate than the capital gains rate and at the capital gain rate for any gains above the basis plus depreciation recapture.

So, the new operator gets to start depreciating from their basis (which is fair and right), but the old operator has a gain to have taxed (or delayed by a 1031 exchange). It’s a cash flow difference in taxes as well (making it fair to include in the article), but not a permanent avoidance of taxation.
Your country's food regulation body should decide whether a given food source is safe for consumption or not. Never understood why people do these angst runs when they have zero informance on these issues and don't even have the means to decide whether the paranoia is warranted.
As someone who used to live in Japan I can say that Chilean salmon is much more common than Norwegian while it is also cheaper. The higher price of the Norwegian salmon and its packaging which has the character for fresh used before it ( 生 - as opposed to cured with salt) is made to give the impression that it is superior. I don't have the data for this but I think Sushi sold in stores is mostly Chilean too, unless being explicitly tagged as Atlantic in which case again it would be more expensive.
There is a real cost to consistency/change, and I don't personally believe that this is just laziness or poor design on Microsoft's behalf.

Sure, Windows could have changed the look and layout of every component with every release, but with an application as widely used as Windows you really want the ability for users to move from Windows XP to Windows 11 and still have a sense of familiarity and confidence.

It is also difficult for them to remove settings or change their behaviour of settings without breaking compatibility, so really whenever they are making the UI 'consistent' we really mean moving around the existing settings rather than rethinking them entirely - true change has to be done in baby-steps across many Windows versions.
What do you mean “bloop with the war in Ukraine”, what’s the story?
I guess theyre going for the typical 80/20 rule here! I assume for example that not many people would be setting up ODBC stuff.
A blockchain does not magically solve security issues.

In fact, it adds traceability. And data stored in it can never be deleted. Just to name a few issues.
the more consistant it becomes the less I like it, bland
With which they did not do a very good job evidently. : )
Best comment yet. Outside hospitals ridden with smokers.
While I didn’t follow the news closely, this seems to have come from the Vancouver and Toronto real estate markets. City level laws might have been tried but they lack teeth. This issue is also leading towards a vacancy survey and tax for vacant houses to provide material to escalate (I feel) if necessary.

And worldwide, people might want cheaper housing but they din’t want their own house value to decline. The former occurs in the neocortex while the latter seems to lie deep in the lizard brain.
Government officially recognises eSports as part of multi-sport event
Cash flow is so much more than just payment terms.
... is one of the main uses of the post Eternal September internet.
> The Makefile that builds the voting machine software downloads and links unaudited closed source third party libraries from the internet.

So you're saying that it's just your average npm project. Boring stuff.
It’s certainly not an easy problem but neither are many of the other problems SpaceX has thrived solving. “Arguably harder” sounds like pretty good odds to me.

The author essentially dismissed SpaceX with ad hominem attacks on Musk, who in his critics minds is simultaneously incompetent and the embodiment of his demonstrably successful companies.
Show HN: I created a telegram bot to notify my website activity
Hi there,

Recently I created a very simple telegram bot to get notification about my embed-blog.com activity. Activities like who signed up to the trial period and who is currently paying and who is created something, etc...

These are important metrics I've to know immediatly and Google analytics is not the place to learn it.

Setting up this is very easy and it's a two step process.

1. Create a telegram group and add [@Lognowbot](https://t.me/Lognowbot) into it.
2. You receive a chat_id from [@Lognowbot](https://t.me/Lognowbot)
3. Send a post message to https://lognowbot-production.up.railway.app/forward with chat_id and text you wanted to send.
4. Receive notification

i.e) code

def notify_telegram(text):
payload = {
"chat_id": settings.TELEGRAM_CHAT_ID,
"text": text,
}
endpoint = "https://lognowbot-production.up.railway.app/forward"
requests.post(endpoint, json=payload)
return True
I'm not sure why they rushed out the release, Windows 10 was and is fine and I don't think any customers were really interested in this new version/ui update/whatever

total blunder imo but I think most people are just happy it's not as screwed up as whatever the hell Windows8 was

for me personally besides the common complaints just getting to the weather widget is now a huge microannoyance that drives me up the wall
PEP 702: Marking deprecations using the type system
How to Get Good at Things
It looks stupid to have these many years but for a moment sit on the other side of the table. You created something amazing by giving significant part of your life, would you prefer to get paid only for 3 years? I think 30 years is good time to release works into public domain. In India, it's 60 years.
Almost completely agree.

I have put a vast amount of energy and time into raising the bar of our course material.
> I don’t remember previous Mac Pros being targeted this exclusively; heck, somebody in my freshman dorm in 2006 had the cheese grater Pro at the time for music production.

Well, even before the rise of covid-induced work-from-home, Apple has been shepherding almost all of their users onto laptops.

That college student's 2006 Mac Pro might have had 1GB RAM [1] - but these days, Apple has a laptop for users wanting 64GB RAM. And it isn't a suitcase-sized mobile workstation either.

People wanting more power than that for things like ML and scientific computing will often be shifting their workload to the cloud or a cluster anyway - it's only people doing interactive tasks like CAD and high-end video editing who are buying the Mac Pro.

[1] https://youtu.be/l72MsGZQA8Q?t=418
> [...] is perfectly capable of expressing functional idioms without the descent into madness.

Except of course deep recursion, which needs to be rewritten into a not so readable externalized stack or some kind of loop replacement. There are difficulties involved with rewriting some recursions as loops and some loops as recursion.

Of course, if JS engines adhered to the standard, they would all have TCO by now and the problem would not exist.
I wouldn't be surprised if they keep internal Intel support anyway - as well as other architectures.

The difference would be supporting Intel publicly - with third-party developers. As the target for Mac Pros won't just be running a load of electron apps.
> Checking for overflow is basically adding a conditional branch (usually to out-of-line code) after arithmetic.

Yes, but now as well you have to return a value to communicate the overflow to the call site. And call site has to check for that value and that's yet another and another ... and another branch. Depends how deeply you want to propagate that error and decide how (?) to deal with it, this will grow the code size, which can contribute to the higher frequency of I-cache misses and page-faults, but it can also inhibit compiler optimizations.

On the CPU level, I think there also could be an attached cost as well in case some of those branches end up as entries either in branch-target (BTB) or branch-order (BOB) buffers or both. Sizes of these buffers are quite scarce so ending up with the unfavorable ratio of check-for-overflow entries vs entries occupied by other type of branches found in the code is something that will put more pressure to our branch-prediction unit. More "important" branches will now more frequently start to lack their entry in the branch history simply because of the fact that we started sprinkling check-for-overflow branches. And yet we know that branch misprediction is the costliest operation (15-20 cycles) we can encounter in the CPU pipeline.

Also, I think a bigger picture must be observed in this context. E.g. what is the percentage of arithmetic operations some big real-world sized binaries contain? I'd figure that in average it would be a sizeable amount, and in ones with a lot of math even more so. And then I wonder what we could observe if we applied the check-for-overflow transformation to all such signed-arithmetic operations.

I'm aware that there are some artificial benchmarks showing that there's no cost attached to branches which are essentially never taken but it makes me wonder if that cost would really be zero if we exercised that change on the actual code instead. For at least the reasons from above.
In Spain they'll give a residency permit to foreigners buying a home over 500k euros.
As per the article Bjorn Eirik Olsen was a key participant. His love of Japan was driven by his interest in Aikido, and he has become one of the relatively few westerners to reach 7th Dan.
He's a very nice guy, and entertaining with stories from those days.
However, living two hours away from LA in the San Bernardino mountains, our school buses were running these in the 80s and 90s.
"Let's end with a hypothetical: in late 2023, China announces a CPU built on the open source RISC-V architecture that outperforms anything else on the planet, plus its own version of Linux designed just for the silicon.

Xi Jinping proclaims that this chip has already allowed it to accelerate its development of AI to exceed the nation's 2030 goals, in applications such as missiles capable of evading all known air defenses, which he proves by sending three of the missiles over Taiwan at low altitude.

What do the open source community and governments do then?"

The thing is: what makes you think Xi cares about you or your license? At the end of the day it's just a few bytes in a file.

The only serious way to prevent Xi from using RISC-V, Linux, and other open source tools for his Taiwan-destroying missiles is to not have it available at all. I don't see any other way to prevent them from ending up in China one way or the other; once it's "out there", it's out there.

You can maybe prevent ICE or the US military from using your open source project if you feel strongly that they shouldn't, but that's about as far as you can go.