skysight-inc/HackerNews huggingface dataset:
While reading the code I stumbled upon "case 1 ... 10:” or similar and asked myself how I could have missed this range feature for so many years. It turns out that this is a GCC extension and indeed not part of the language. A list of the C extensions (and C++ extensions) can be found here: https://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/C-Extensions.ht...
Thanks for the name, after looking it up, it sounds interesting.
Why isn't the Fed raising the reserve rate (apparently it was set to 0 in 2020[1]) to reduce commercial banks creating new money?

[1] https://www.investopedia.com/terms/b/bank-reserve.asp#citati...
Hence why other languages do make this differentiation, only D refuses to go down this path.
The other one I considered was this.

https://up-shop.org/up-squared-v2-series.html
How could he be a good thing for it, when he's been completely unserious about it from the beginning? Remember he wanted to get out of the deal he signed off, and he said everything and its opposite about twitter. Nobody knows his plans for twitter not because he's kept them secret, but because he doesn't have any. This is a pure vanity project for him, and completely out of his area of expertise.

And as a twitterer, he's been an active part of the low-information cesspool.
Driving Three-Color E-Paper Pricetags with an Arduino
Which arrow keys out of four you don't need?
Of the books I've read this year, the fiction ones that stand out to me would be:

1. The entire Sprawl Trilogy by Gibson, and the entire Bridge Trilogy, also by Gibson. The former I'd read before (multiple times) while the latter I had not read all the way through until now. Neuromancer I've read probably 7 or 8 times total in my life by now. I'm not as crazy about Gibson's later stuff, but the Sprawl and Bridge books are great.

2. The rest of the HHGTTG "trilogy" besides the first book. I'd read the first book a couple of years ago but never got around to reading the rest until this year. Note that when I say "the rest" I'm excluding that one book that was written by another author after Douglas Adams' passing. I may still read it one day, but I'm not in any hurry to do so.

In terms of non-fiction:

Real-World Reasoning: Toward Scalable, Uncertain Spatiotemporal, Contextual and Causal Inference by Ben Goertzel, Nil Geisweiller, and Lucio Coelho is the stand-out of the lot. How the Mind Works by Steven Pinker and How Can the Human Mind Occur in the Physical Universe? by John R Anderson are also worthy of a mention.
Facebook has 50% profit margins. Why can’t twitter do that? They both sell ads.
One’d think the countless bombings of the region to be quite ‘flattening’.
Is this more from a USA-prespective? I suspect most other countries are more or less aware of this.
The Fed is doing exactly that: https://fred.stlouisfed.org/series/FEDFUNDS
ESP8266 Web Server Saves 60% Power with a 1 Ms Delay
This is incorrect accounting. Source: myself, CPA.

We could drill down further here but it’s not worth 3 paragraphs of nuance for this subtle point.
The Harder They Fall, by Budd Schulberg.

The best book I read this year, providing a glimpse on the crude reality of corruption on boxing, an immersion in the 40s, and a very human commentary on being defeated.
> It's not supported by a vast majority of the maintainers of the project and spearheaded by folks who have contributed very little.

I feel that here you demonstrate some of the improvements that can be made to the project. This stance shows that the view on what constitutes the Community around the project is quite narrow: Contribute a lot of code and you matter. Commits + LoC or be silent.

While that is a logical perspective and how many FOSS projects look upon community, it neglects all the people in different roles that have a warm heart for the project and do activities that may be less visible than that. Like taking time to advocate the project across the web wherever they can. Or those working in a broader ecosystem in other projects where you indirectly benefit. Codeberg is an example who maintain a downstream fork, and where people like Otto Richter act like delegated maintainers and handling a lot of user feedback. Or the group of projects involved in forge federation, that did the brunt work where Gitea benefits tremendously [0].

The announcement of Gitea Ltd and the follow-up with the Open Letter did a lot of good in that respect. For the first time there's broader open discussion on strategical aspects and long-term project direction where many of the community have their say. Though the open letter only gives indications of the kinds of community project improvements that can be made, these last couple of days a ton of feedback has been posted on how these could actually be shaped.

[0] https://news.ycombinator.com/item?id=29830061
Trained Stable Diffusion can, but training it costed 600 000$ and took 150 000 GPU hours.

Also, Stable Diffusion isn't a revolution in model architecture, it's still a deep neural network. There's been a lot of innovation in how you can best apply DNNs to problems, and that's where CLIP and stable diffusion innovate, but also a lot of the advancements has been purely due to sheer brute force from funding more compute resources to train deeper networks using larger datasets.

I'm optimistic, but I'm also trying to contextualize to have the right expectations.
Oh you got me. CA is actually awash in extra power and those rolling blackouts, poorly maintained equipment causing power line fires every year killing hundreds, burning thousands of acres is all an extremist conspiracy theory. Carry on.
Yeah, but you should use something like JITWatch as well, not all news turn into heap allocations.

Unfortunately value types are years away, if they ever land.
Why we are polarized by Ezra Klein
Sea is beautiful if you do not have yet to worry about memsafety
I’m trying hard to establish this habit as well. I got an e reader so I can read in the dark (lights bother my SO when she’s falling asleep). I confirm that reading technical books before bed puts me straight to sleep. And most e readers can sync with a smart phone so you can continue reading instead of browsing HN during a lunch break :)
There are tonnes of rumours being spread at the moment so I wouldn't take any of them seriously until they're confirmed.
Queens of Jerusalem by Katherine Pangonis.

Amazing book about the role female leaders played in the “Holy Land.”

She spends chapter after chapter talking about these fascinating women who built a country.

She also tries to talk about the women rulers in the nearby Islamic countries. But she can’t, because there aren’t any.

I strongly recommend!
Ah thankyou, do you think it will spike anything like it did in the 80s?

[edit: I see she discusses this in article as well, now]
I've been reading the dune series too and while the first book was amazing and the second was good, they get worse fast after that in my opinion
"Shareware Heroes: The renegades who redefined gaming at the dawn of the by internet" by Richard Moss.
I would wait for the first product to launch before pronouncing a company dead, which should be fairly soon: https://www.reviewjournal.com/local/traffic/officials-aim-to...
As usual, there is a whole spectrum between immaculate and landfill desk.

Both extremes are not very productive. But a person doing actual work might have more than just a completely empty desk. What about a cup of coffee, or a notepad, or a small whiteboard, or a reference manual? Because if everything you might need is on your pc and you don't leverage your immediate three dimensional reality, you're not at peak productivity. A manual on the desk is "better" than a PDF on a second workspace.
Somewhat on topic, but it feels like D evangelists and Walter Bright keep extoling everywhere about D but D has yet to really be used as widely as other modern languages. D forever was the "C++ replacement" and I feel like it still hasn't shaken that perception in people's minds even though D has come onto its own as a unique language.
Connect with a founder.
NA VCs are superior to EU. Make sure to get a VC that knows your industry.
VCs are hungry for good companies, don't sell yourself short.
Connect with a founder.
Don't hunt just for the biggest check.
Everything else is subjective and personal to your company.
Connect with a founder.
Not only DisplayPort. The past year I found out even works for VGA and DVI, and now I control the brightness of my monitor with the mouse wheel :-)
They host the servers. They know your current IP and current login session to the app store at all times. Of course they could ship a signed update to only you with a court order. How do you think beta channels work?

Maybe judges do not realize they have that power yet, but they will eventually.

The CCP certainly understands this well, which is why they seized the HSMs governing encryption and binary signing for Chinese citizens.
Bronze Age Mindset

If one book from the 21st century will be remembered in 500 years, I am convinced this will be it.
Ask HN: Kubuntu or Debian+KDE?
I am currently in the market for a new Linux distro and I would like to hear the HN community's take on it.

I have been thinking about choosing Kuduntu or Debian+KDE.

I find it really hard to come up with any pros and cons.

I came up with this solution:

They probably give me the same experience, but since with Kubuntu there are 3 vendors involved (updates travel from Debian to Ubuntu to KDE) and for Debian+KDE only one vendor is involved (Debian), Debian+KDE is probably leaner and will make less problems.

Any Hacker News grade thoughts on this?

These are the two installers I have in mind:

"debian-live-11.5.0-amd64-kde+nonfree.iso" from this page:
https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/current-live/amd64/iso-hybrid/

Or "Kubuntu 22.04.1 LTS" from this page:
https://kubuntu.org/getkubuntu/

My idea is to install only the terminal version and then do:
apt install kde-plasma-desktop

So I don't get Kmail and the other KDE applications. I don't need those as I use Firefox and Thunderbird.
You’re not punching down when the near entirety of all cultural institutions, journalists, and technology platforms have mobilized to protect your target from all question and criticism.

When you can be censured, deplatformed, and even lose your job for stating an objective truth like “men cannot get pregnant”, your words, by any possible definition, are punching up.
I am easy to look up, as well as what I do for a living, if you wish to do so.

The data I post on HN is public. When I post data to a public place it is no longer mine. I am not a luddite, I simply have separation of concerns between public and personal life. Data that is not public, is mine.

When I fly, I accept this is a public event. All parties are transparent about this. You will however be hard pressed to buy a record of the local locations I frequent or what I purchase at a pharmacy without an expensive private investigator because I do not carry a cell phone and I pay cash.

The data that I consider mine, such as personal family photos, detailed location history, my IoT product usage, etc, lives in servers I physically own on property I own. Not unlike a box of photos in someones attic. If you want to rifle through it, get a warrant. No surveillance capitalism companies will have a chance at buying that data regardless.

I do sometimes use third party services to distribute private data, such as matrix.org. The privata data such as DMs can not be decrypted or controlled by the server operators, and only by my keys on devices I control all software on. That data is mine too.

You do not need to trust your ISP to have a useful level of digital sovereignty.
>"The Long Way to a Small, Angry Planet" by Becky Chambers

This one made me think, is there any sci-fi by female authors, which involves aliens, but doesn't depict or mention sex with them?
The issue here is a technical one, not a legal one.

If a platform wants to be global but only has an unique and global way of moderating content then it will naturally converge to the most restrictive legislations.

So this shows that what is required is a fine-grained approach where content can be moderated and made available or not on a jurisdiction per jurisdiction basis.

For instance, if someone in the US writes a twit that is legal in the US but not in, say, Germany then that twit should only be censored in Germany, not globally and certainly not in the US. Obviously, the issue is that this may be costly and so companies may decide not to bother and indeed to just follow the most restrictive legislations.
Perovskite cells are the next generation of solar energy tech
Sorry, I have no experience with this hardware. Was a neat coincidence that I had just finished watching a new YT video LGR posted today showing off this cassette hardware when I saw your question.
Ring, unfortunately, has quite toxic project leadership with a history of making hostile decisions towards their contributors and userbase ( see https://github.com/briansmith/ring/issues/774 for one example ). Something to be aware of if you're considering building with it.
I read the main Earthsea Cycle books by Ursula Le Guin. Really enjoyed them, her prose is so evocative yet terse, especially in comparison to what would now be considered young adult fiction.
Two vastly different ones:

* Starting the evolution by Namkhai Norbu - on spiritual development using an authentic tradition, not some new age stuff

* John Osterhout's Philosophy of Software Design - vastly overdue, I love this book. I already apply many points presented in this book but several fragments gave me an enlightening perspective on my daily tasks
To me it made sense as cheap technology demonstration. Maybe allowing something further.
This sounds interesting. In my opinion, the best way to improve consoles is to add user definable buttons in infinitely chainable button bars. Total Commander is an example of this.
Where does Python 3.11 get its ~25% Speedup? Part 1: General Optimizations
Piranesi was a comforting other worldly read that really helped with escapism.
Except for this one :)

https://twitter.com/elonmusk/status/1586108809772089345?s=46...

Edit: apparently this was “trauma / shock actors” (whatever that means) but it was still picked up by CNBC.
'says US Senate'

It was written GOP, authored by think tankers with zero scientific background. Necessary to continue to investigate Covid origins but this type of report production adds noise rathe than signal
I'm pretty sure that none of the BSDs have an EFI stub option, and they need a separate EFI bootloader. I could be wrong, but I did check this about a year ago.
Telcos (and I would expect water and energy companies) support legacy systems whose software only runs in Solaris.
Main Developer Salary: $52,747.25

Damn. That's nothing, especially for someone doing such important work.
I agree that POSIX is needing of a few small additions;

* local keyword
* 2 or 3 variable expansion tricks (string replacement etc)
* pipefail

But with those, I think the spec isn't too bad. I've been writing (imo) high-quality (and shellcheck compliant) shell scripts for a decade, and _always_ try to be as pendantic about being posix compliant where humanly possible. Sometimes things are a _little_ harder (no sarcasm here), but it's really quite doable once you get the hang of it.

You scripts then end up being far more portable, and as stated below, MUCH easier to read. The trick is, to write readable code (which is hard enough for most people, regardless the language anyway :p)

e.g. (a very simple example), and an addition to Shrikant's post, avoid the terse double ampersant 'and' (&&) and double pipe 'or' (||) operators, in normal calls.
do
e.g.
```sh
if ! external_command; then
do something with failure
fi
```
Rather then
`external_command || do something with failure`

These can get up becoming really hard to read once they become longer, where reading a stupid "if" statement is easy to comprehend. Readability over saving number of lines.

One important hint left forgotten, always make sure the last line of your file is `exit 0` or similar. This is more a 'weak' security feature. Prevent people from appending files and executing stuff instead. Gives a known exit point.

Another addition would be to actually favor single quotes for pure strings, and use double quotes where you expect the shell to do something with your string (true for most cases, but there's plenty of strings that benefit from single quotes, and hint the reader what to expect). Also integers should never be quoted (as it would turn then into strings), which shows a 'bad' example in the trace statement, you are now comparing the strings '0' and '1' rather then the number. Best use something easier to read in that case.

One thing I will pick up from this post for sure, is the trace hint, I'm adding that to my scripts, but probably a little more tunable.

```sh
set -eu
if [ -n "${DEBUG_TRACE_SH:-}" ] && \
[ "${DEBUG_TRACE_SH:-}" != "${DEBUG_TRACE_SH#"$(basename "${0}")"}" ] || \
[ "${DEBUG_TRACE_SH:-}" = 'all' ]; then
set -x
fi

echo 'Hello World'

exit 0
```
Though I'll probably just settle for one of those keywords, I like 'all' the best atm. This would run the trace only if this special keyword is given, or if the variable contains the name of the script. I initially had `basename "${0%%.sh}"` but that makes things like `test,test1,test2` impossible, though that only helps if the extension is used ;)

While not needing be part of this list, I personally also always use functions, unless the script really is less then a handful lines, like google's bash-guide, always have a main etc.

In the end though I do disagree writing bash and bashisms. There's plenty of posts about that though; kind of like the whole C++ 'which version to use' discussion, where bash tends to be inconsistent in itself.

Shameless plug: See some of my older stuff here https://gitlab.com/esbs/bootstrap/-/blob/master/docker_boots...
Is the paywall/login blocker for non-users gone for anyone else? I don't get it anymore as of this morning.
In a typical academic or r&d lab setting they were very hacker friendly networked setups, where people would share scripts, installed software, and media. You could access files in each other's home directories from any machine (controlled by file permissions), automate things with cron jobs, someone would be administering the IRC server, the servers and workstations would be the same OS so people would naturally graduate to running a IRC or usenet server for the local users etc.

(Probably it could also be a much less fun scenario than a Mac, with power tripping sysadmins handicapping usage, non-technical users having problems or feeling excluded, etc)
FIDE's finances are the sort of finances where your Swiss bank terminates all of your accounts in response to OFAC sanctions against terrorist states [0].

I don't think they belong on this list, even if they technically are a nonprofit!

[0] https://www.bbc.com/news/world-europe-43053626
Rust doesn't have GC, but it has very good automatic memory management. GC or memory management doesn't make programs immune to buffer overflows, which is the most common security vulnerability these days, while use-after-free is at 4th place.
Also its terrible for accessibility. Text can be manipulated and rendered in all sorts of ways. Tim Berners Lee is rolling in his grave!!
I have read almost all of Zecharia Sitchin works on Anunnaki, the ancient astronauts, this year. Still have couple of books to go. I read the 12th planet when in elementary school a long time ago and always wanted to read more on this. So I finally did and am very glad. Best things is that he is merely interpreting in his own way all the found sumerian, akkadian, babylonian... literature and jewish writings and bible. So no one can say he is wrong because there is no authority on interpretation of those writings and translations. You can choose to go along with his ideas or not. He does not force-feed you anything, which I like. And in the end, his version of our history makes the most sense to me from anything to this day, however weird it might be at first. Scientists also confirmed the mathematically expected existence of the famous Nibiru so with time, more and more proof is confirming his views, along with new discoveries of writings and artefacts. One negative sides of his writing, after the first 12th planet s that it becomes too abstracts - descriptions of land, locations, structures... with lacking images in the books the reader becomes a bit lost and disconnected. But when he is talking about stories and events that took place in the past, that's when you're hooked in. Also the first book has about 80% of everything, the rest of the books is a lot of repetition for new readers and not much new information. Still worth reading but one will get most out of the 12th planet and I'd say the Anunnaki chronicles which is kind of a summary of his work and i think the last book released by his estate put together fro all his previous released and unreleased works.
The twelve pin power connector isn't meant for low cost PCs. It is meant for extremely high end PCs and extremely reliable server hardware.
The US needs to cease this type of appeasement. The EU as a 'regulatory superpower' only if US companies care for that market. We need to stick to our principles over profit and protect US social media firms from foreign laws, perhaps even encourage them to withdraw service from such unfree markets
There's an argument that assumes that building more lanes does not increase the number of people who travel, only the number of people who choose to do so by car. Then with fewer lanes, the same number of people still get from A to B but on bicycles or using public transport instead of cars.

These photos illustrate it well:

https://www.streetroots.org/news/2015/04/03/streets-are-ever...
a certain amount of rose-tinted glasses

I'm sure that's a factor but maybe the particular point in the technology development curve accounts for a lot of the perceived difference. There was a striking qualitative difference between a $2000 computer and a $20000 computer and if you had access to both, the latter felt like some sort of glimpse of the future like you got a ride in a prototype flying car.

A computer that is 10x more expensive than a high-end smartphone is not Indigo² better than a 386. That gap just happened to be a brief and memorable outlier.
The Murderbot Diaries by Martha Wells are fun, most are short novellas
What you don’t know is how much worse MS itself would have been without the 550M for whatever they used it for. Unlikely 120B worse off but it would be something.
How could the crawler discover the pay-walled content? If sites explicitly allow the crawler to enter, what would be their argument to prevent that the search engine shows a cached version, especially if that's the search engine's policy from the start?

That said, search engine for pay-walled sites with integrated micro payment isn't a bad outcome. What else could create an alternative to the ad-based business model?