skysight-inc/HackerNews huggingface dataset:
The same author also put out a really interesting longform podcast piece called "It Could Happen Here", detailing the in-process crumbling of America. It goes into some recent historical examples of countries dissolving/devolving, and outlines (shockingly plausible) ways similar events could occur in the US.

https://www.stitcher.com/show/it-could-happen-here <- click the "Season 1" dropdown to filter down to just the longform stuff.
Genuine question, why the name?
Of course you can't prove that these four extra layers of abstraction will never be useful, but they aren't right now. That's why people with over 10 years in the industry are valuable - they have the intuition to see this coming.

The dev took twice as long to build the feature as they needed to, and updates to the code also take twice as long. I have seen this over and over, and GP is correct - there are some engineers who need to be coached out of overengineering.
> with weeks at a time literally not opening a door to the outside

That sounds very exaggerated. Do you think they stocked up on weeks worth of frozen food to survive?
Scottish study (Adeno-associated virus 2 infection in children with non-A-E hepatitis): https://doi.org/10.1101/2022.07.19.22277425

I was unable to find the UCL (London) study, but the above DOI references UCL faculty.
Not exactly a programming trick, but adjacent enough.

Learn your tools. Learn the features of your IDE. Learn the flags and know and understand what your makefile or runner is doing.

So many times I've asked people that and they absolutely have no idea except, 'I run make' or 'I run grunt/gulp'
I don’t have any sources for you, but a lot of people have been revisiting saturated fat and cholesterol, and it appears that they probably aren’t as bad for you as we once thought.
I don't have any agenda, but i see the problem, i made a mistake, i said Morocco instead of "at the borders"

I apologies for the mistake, i can't edit the comment anymore unfortunately
I'm on the Texas grid and we have been getting the same emails from our electric provider the last few weeks.
For performance optimizing, learning first how to do less work & delete code, second how to avoid memory accesses, and third how to use cache friendly accesses, are pretty broadly useful.

One bit-twiddling trick I used successfully on a GPU recently that was quite satisfying: I needed to gather some data to process, and it was a different amount of data for each thread. GPUs are SIMD, so process multiple threads with the same instruction and it’s bad if one thread does different work than it’s neighbor. I first tried sorting the data to make sure the work was coherent and to minimize the number of divergent threads - threads working on data while other threads are idle or doing something else. Then I learned how to use an FFS (find first set) instruction to avoid the sort but achieve exactly the same behavior. Setup a bitmask to mark active data, each thread then uses FFS to find the index of a datum to process, clears the bit and processes one item, repeat until the bitmask is zeroed. Much better than sorting, and uses fewer memory accesses, win!

Also you might be surprised to learn that the XOR trick for swapping variables is rarely if ever faster than plain old assignment on modern architectures. This is one bit-twiddling trick that you could probably unlearn and never need. It’s cute and fun to know, might be useful in an interview once in a while, but I’ve never seen it unused in production even though I have seen it discussed many times.
Go and watch it. It's great!
What is it with people trying to quantify and categorize art? Yes this scene is significant for both the history of cinema and artistically and I personally love it as well, but the quest of defining "the greatest scene" or "the best film of all time" just screams pure naïveté to me and I honestly don't understand why people would ask such questions?!
I hope that the legacy of covid lockdowns is a renewed appreciation for the second-order, systemic, and unintended consequences of any action, to be weighed against the direct and intended effects.
It still feels like my Sony Vaio from 2012 had a better screen than my current laptop. I would have liked to keep that screen with the rest being new.
I assume every missile has some sort of fail-safe to have it self-destruct or do some course correction.
If the city can buy property at 90% of appraised value, they can sell to the market at true market value. As long as their appraised value is accurate, they profit from this arrangement.

It provides the proper incentive to align appraisals with market value and prevents the city from exploiting its citizens.
The US does not use civilian nuclear reactors for nuclear weapons production.
I think it looks quite elegant in Python if you use the modern f-strings and pragmatic inline calculations.

>>> for i in range(21):
... print(f"{10*10**i:>23}{20*10**i:>23}{50*10**i:>23}")
...
10 20 50
100 200 500
1000 2000 5000
10000 20000 50000
100000 200000 500000
1000000 2000000 5000000
10000000 20000000 50000000
100000000 200000000 500000000
1000000000 2000000000 5000000000
10000000000 20000000000 50000000000
100000000000 200000000000 500000000000
1000000000000 2000000000000 5000000000000
10000000000000 20000000000000 50000000000000
100000000000000 200000000000000 500000000000000
1000000000000000 2000000000000000 5000000000000000
10000000000000000 20000000000000000 50000000000000000
100000000000000000 200000000000000000 500000000000000000
1000000000000000000 2000000000000000000 5000000000000000000
10000000000000000000 20000000000000000000 50000000000000000000
100000000000000000000 200000000000000000000 500000000000000000000
1000000000000000000000 2000000000000000000000 5000000000000000000000
>>>

Edit: fixed the asterisks for HN formatting
> is the amount paid directly proportional to the assessed value?

Yes. In many places most of that money goes to schools and is one of the reasons why public schools in wealthy suburbs are better than schools in less affluent areas.
> In Rust, moves are destructive (which simplifies implementions - you don't need an "empty" state) and always bitwise (which is usually fine, so long as they're destructive); and copies are always explicit so you don't have the above problem. I personally think that is all more useful than the borrow checker.

Without the borrow checker, this "move-by-default, move is memcpy" semantics would break all hell loose. Dangling pointers/references would be everywhere. I like this part of Rust, but I'm not sure if it can work in a non-GC, no-borrow-checker language.
I'm amazed at how many people who build graphs never learned the very basic rule that used to be taught in freshman engineering classes: Unless there is a really good reason, always scale the axes of your graphs using a range from the 1,2,5,10... sequence. (e.g., With a max Y-axis value of 38, graph on a scale maxing at 50, 1546 on 2000, etc).

Since most data science developers are not engineers, we see a lot of crap graphs these days...
It doesn’t have to be the city. you can imagine an interesting system where instead of an appraisal, every property owner puts their own valuation and computes their own tax. The catch is that anyone is able to buy the property at the assessed price for cash, without any negotiations or any opportunity to match. You will see tax evasion go to zero immediately and enforcement cost will also be zero.
Is there already a substantial amount of this in Google’s repos? It would be in character for them to reveal this after it’s already well-established internally.
Bruh, take a step back for a second. ROS is a messaging system. Its like Microservices for Robotic components. If students are having trouble with ROS you might take a different angle on the purpose. When you teach ROS you are learning middleware patterns of integration first. Secondly you have to teach fundamental geometric concepts like TF. So thats why your students are having problems you are giving them too broad or too narrow or some convoluted context to reason about what they are doing. Try flipping the script.
Someone here said don’t name your variables x, or a, etc.

I argue that you do name them ambiguously to start.

Normally when you’re writing code you’re thinking about the right hand side of the statement. What is the next step in my code? But most of the time we write the left hand side first. If you’re focused on naming, you lose your flow. You’re switching contexts.

By choosing x or a as your variable name, it unblocks your flow to write the right hand side.

Once you’ve written the code, go through and rename your variables. Use your IDE refactoring features to make this easy and change it everywhere at once.
You're forgetting that the color of the light doesn't care about how it was made. If the LEDs being installed were in the warmer color temp direction, then they would be better for the foggy/moist air; nevermind the bluer color's affect on circadian rythms.
> Hard to imagine a local city has the funds available to just buy up property.

Hard to imagine the US government has 1.5 trillion lying around to pay people to stay home, but they figured it out.
I find that very hard to believe. It has a real "have your cake and eat it too feel". I kinda imagine that people in 2072 are going to dig this paper out, look at the flooded skyscrapers in the Manhattan skyline and wondering what kind of political perversity kept this dream from coming true.

We are seeing a lot of papers today pushing renewables that sound like the "too cheap to meter" hype for nuclear energy back in the '50s.

Granted they are building some really big solar energy farms in places like China, India and the United Arab Emirates. It looks like there is a solar revolution in the third world right now but who knows if it can be replicated in temperate middle-to-low-corruption democracies. (When it comes to pumped storage China is in a class by itself but when it comes to nuclear China is in a class with Russia.)

There are quite a few miracles explicitly mentioned in this paper: affordable grid-scale storage, massive switch to district heat, large-scale concentrator solar power plants, etc. They also handwave away other miracles such as a free transmission grid that has sufficient capacity to move power around.
While I intend to learn more Rust, compatibility with existing code is a big reason why I'm paying attention to Zig. It's not yet 1.0 and it's closer to C than C++.

However, because it's meant to compile and interop with both C and C++, I'm hopeful that it'll be an easier switch for more projects. It doesn't provide the safety checks that safe Rust does, but safe Rust requires a rewrite IIUC.
On a laptop from 2008, you won't have USB 3.0, 5ghz wifi, support for 16GB DIMM's (and maybe not even 8GB).

But even more to the point, your ten year old NUC is good enough. If you were the sort of person who upgraded, you would have upgraded.

While a C64 isn't good enough for most people today, a ten year old laptop is right up until it breaks.
>There is an important and significant difference between "you want UBI so you can sit at home and do nothing" and "even if you did nothing UBI would still cover you."

I would agree if that were what the author's example, but it wasn't. The author's statement wasn't a direct attack on the UBI proponent.

>Some proponents of UBI do not want it to cover rent + food + bills. So no, some proponents do not want that.

If you're proposing UBI as protecting people from automation like the author is, it necessarily has to cover all basic expenses. By far the most popular UBI proposal in the US proposes $12000 a year, which is definitely enough for you to find a spare room in Kansas and play videogames all day.
1000 kids across 35 countries, versus the thousands dying every day in some single countries at the time.

Warning is one thing, being needlessly contrarian while conveniently not having to make a decision yourself is another.
What are the upsides and downsides of high-efficiency tires, compared to high-performance tires? I'm not familiar with the terms, in spite of having bought tires several times.
I don't understand why you'd buy a BMW when they treat customers this way. Vote with your money.
I'm not talking about the exact inverse point, I'm just suggesting that their lines around "what is" or "what isn't" a conspiracy theory are so loose as to likely be useless.
I have my own product in this area which is basically a web app. Then I ask customers to open it with the most popular Android kiosk app and it works like a charm.
It's horrendous what breeders have done to the English Bulldog. Two centuries ago they were beautiful healthy working dogs (although unfortunately used for cruel sports). Today they are deformed and unhealthy. Last week I saw someone wheeling two youngish bulldogs along in a cart/pram-like contraption because they were too unhealthy to walk properly.
If you want to see some even more insane steering angles, check out drift cars. They've been doing this for a while now.

Even discounting the parking & u-turn use cases, the amount of extra control you get at the extremes with more steering angle can be pretty remarkable.

It took me a long time to figure out why so many cars in downtown Houston had super fucked up tire arrangements (extreme camber, sticking out really far, etc). Apparently drifting setups are kind of a big deal in the car community now. Makes a lot more sense once you understand the engineering and use cases.
Without making value judgements, I agree with you. There are definitely a lot of costs associated with owning pets.
It is quite possible to own property in a given county while having no actual income in that area. If you wanted to get deep into the economics, you can consider a property tax as a tax on imputed rents (which is a standard appraisal method anyway).
The protection for this is in certificate transparency, as Chrome will throw up a warning if a certificate is valid other than it never showing up in the CT logs. See: https://no-sct.badssl.com/

CAA combined with this CT requirement means that businesses serious about issuance can set up a service to watch CT logs and get notified every time a certificate is issued, so any would-be CA attacker would have to be pretty quick with their attack if they wanted to impersonate fb.com, and that CA would be questioned by the CA/B community pretty quickly for breaking CAA policies.
‘Effective Altruism’ Is Neither
Both, article mentions:

(1) “After gitlab.com's recent changes to the free tier, we have been seriously reconsidering if gitlab.com is still the best development platform for postmarketOS.”

(2) “SourceHut is a great match for the postmarketOS principles: AGPL licensed, no Open-core model; ...”
You could check out Magic Mirror²: It is open source and runs in kiosk mode on an SBC like Raspberry Pi. Based on JavaScript and Electron.
I remember being very confused when I saw !!x on a C source code. It's a shorthand for (x != 0 ? 1:0), to return error codes.

And then almost everything from JavaScript. Including

function setPos(horizontal,value){
this.position.edit()["set"+(horizontal?"X":"Y")](value).commit();
}
I second this. Charismatic, humorous, and he takes the time to learn a subject before presenting it.
of course, but the type of software that can make the world better and solve some of the world's problems (like hunger and climate change) is not the software the majority of the people on HN are working on, me including

maybe we should stop lying to ourselves and admit that what we're doing is not something special, will most definitely not make the world better and in many cases makes things even worse (social media and advertising industry)

don't believe companies when they tell you you're working on a very important problem that will change the world

this is all made to distract you from the fact you're being exploited for profit
Zig is to C as Carbon is to C++? The interop with existing C++ code, and ability to compile and understand existing code seems very similar.
> What is actually possible to get your hands on now?

You can get your hands on many different chips right now, including many different STM32 microcontrollers. The more important question is "at what price" though, because some of these chips are more than 10x more expensive than years ago.
PEP 638: Syntactic Macros in Python
The "slow" isn't the performance of the application, but rather the ability to make changes to the language.

As it is, Google can't make changes to C++ that it wants in a timely manner (if at all). Having a C++g edition where there are slight changes to the language for the Google flavor rather than the latest standard makes things even worse.

From Google's perspective, the same can be said of Rust.

What Google does see is Swift where there are significant evolutionary changes to the language over the time.

So, Google has created their own language to fit into a similar space as C++ and allows them to make changes to the language at a much more rapid pace than the C++ standards committee would have.

My crystal ball says "this language will diverge further and further from where it started as Google changes it to solve Google Problems."

This shouldn't be a "Oh! Neat! Everyone start coding in Carbon - it's the next C++!" Yes, it's interesting in that there are some interesting ideas in it and refinement of ideas that aren't practical elsewhere. However, this is a language created to solve Google's problems - not the world's.
Approachable? I believe it's a solid "yes". Well, QBASIC was one of my 1st exposure to programming in high school, almost 2 decades ago. Internet access was kinda limited at that time, and I could understand the basic concepts (data types, loop, condition etc) in a few weeks by studying a book. Maybe I'm biased.

Productive? Not really sure about this. But obviously Python has a nice standard library and package manager which help you install 3rd party libs easily. Not idea which modern BASIC environment which provides that. If you want to handle various networking, GUI, database etc stuffs then probably Python is easier.
Is now a time to start caring about RIGHT TO REPAIR?????
This is a bit of a myth. Centrifuging and specific breeder reactors are much more useful for weapons production than any civilian power plant.
There are many successful Austen adaptations, with varying degrees of fidelity. There will always be fans who insist on picking apart every detail, but they're often broadly popular even with people who deeply love the novels and recognize the departures.

The recent Persuasion fails not because of its lack of fidelity to the novel, but because it wasn't faithful to itself. It was trying to do several things at once, and didn't do any of them well enough to endear itself to anybody.

It didn't keep Austen's prose, so it didn't have her lyricism, but it also didn't have its own voice. Compare Clueless, which adapts Emma very loosely, but is still eminently quotable.

It didn't do "costume drama" well. Bridgerton also plays fast-and-loose with its costuming, but its costumers clearly loved the period. They adapted loosely to create a feeling. Persuasion was just all over the map, seemingly a combination of whatever was on hand in the costume shop (but badly fitted) and whatever they pulled out of the actors' closets. You don't have to be a period expert to know that it doesn't look right.

It kept winking at the camera -- literally. It's widely thought they were trying to evoke Fleabag, but couldn't capture its desperate charm. You didn't want to root for anybody. All of the characters were much meaner than in the novel -- which worked for Fleabag, but didn't have Fleabag's super-high-wattage cast to pull it off. They made you root for the characters despite being terrible people.

And no, it's not the mixed-race casting. Again, that succeeds really well in Bridgerton. It gives the cast some visual interest. Men in particular can all look identical in costume dramas, wearing the same clothes and having the same haircuts. Lots of other things in all costume dramas are non-period; the race mixing just isn't a big deal to me.

It's certainly not easy to adapt a 200 year old novel, but it has been done many times in many different ways. This just wasn't it.
Interesting. Parts of Britain were very similar. Things like every mine union chapter had its own brass band and the mine unions took great pride in thier traditions and thier local communities. Basically it’s neglected miners and steelworkers and other closed down heavy industries in the north of England that voted for Brexit just to pull the rug out from under everyone else because they were thrown on the scrap heap by Thatcher in the 1980’s and those areas never recovered. The liberal voting cities told the mining folk they were idiots for voting for brexit and so they switched allegiances from Labour (closely linked to the unions) to the Conservatives who were telling these people they were going to fix things for them, ‘levelling up’ the North of England. This hasn’t happened there is not even a coherent plan for how it could happen and the new candidates for prime minister are all going on about how they’re going to be more like Thatcher than the others, forgetting that the people who just switched to them hated her for destroying thier way of life. So be careful! Don’t disrespect the miners they will cause chaos if you annoy them!!
What’s the motivation for optimising this? If it’s for user input, you only need to call this once per frame (or at most a few times).
Unfortunately American passports are not guaranteed immigration vehicles. Even countries with very close economic ties[0] and no language barrier are still a challenge to get labor market access into; and I can totally see that blossoming into full-on NIMBYism-but-for-people if this were to become mainstream.

[0] EU excluded, mostly because the EU was very adamant on tying trade liberalization to immigration liberalization.
Wao, this is a really cool way to build full fledged search that too in a notebook!

Does it work end-to-end with PDF as a data structure or do we have to use OCR and parse the text first to be able to search it, really curious?
It's how I got my "real" start in the tech industry

Currently work at a self-driving car company working on interfaces for passengers to interact with a driverless vehicle

In the past I worked at an agency that specialized in kiosks for clients who didn't necessarily have the skillset or experience to deploy hardware to stores (Google Nest was one of our customers, and iirc they had some internal grumbling about owning Android but paying us to deploy Android-based kiosks)

One place I worked at had a very meteoric rise and fall. Their business model was selling a premium spin bike with an Android tablet attached (you can guess which company this is)

The common thread is "Android for HMI", and it's the niche I've based my career on.
Cisco patches dangerous bug trio in Nexus Dashboard
"modernize the language"? People still buy Chaucer in old (or middle, whatever) English.
The move situation would be less confusing to newcomers if they had called it what it really does, std::become_rvalue_reference or something.
I did it for years. Mostly interactive content for museums and marketing events. Last one was in 2014 I think.

My main stack was Adobe Air. Sometimes I used Cinder, a C++ framework when I needed more performance. The last projects were done using NWJS which was like Electron using whatever JS stuff was needed like Rivets, Pixi, even jQuery.
That’s correct and stripes are mostly used as a fall back now a days, if at all. Merchants are reluctant to use stripe because in case of chargeback of a striped payment the liability shifts to the merchant, no question asked. That’s how the payment networks got merchants to migrate to use chip based authentication.