skysight-inc/HackerNews huggingface dataset:
For example, right now it's Advent of Code, day 6. The puzzles are still reasonably simple. Have a look around today's Reddit thread where people can post their answers:

https://old.reddit.com/r/adventofcode/comments/k7ndux/2020_d...

These are self-selected people, free to use a language of their choice. Ask yourself some questions:

- Which of these do I think is "most readable" vs "least readable"?

- Which of these am I happy is correct, and bug-free as far as it goes?

- Which of these would I like to make a change to, confident that it won't break?

- Which took the author most / least time?

- If I could only pick one to run on my puzzle input and submit the one answer which came out, which of these would I pick?

- Which of these would I like to maintain long term?

Another way to see the same ideas is to pick a task on RosettaCode - https://rosettacode.org/wiki/Category:Programming_Tasks - and see how much / little code people write in various languages to solve the same problem.

IMHO it isn't "the longest one" that is clearest, by a long shot. Nor the golfiest one. But it tends to be the shorter ones done in languages that have higher levels of abstraction, more libraries, nicer looking naming, more standard patterns.
Ah, yes - it's just a few bad apples.
> And books are published on all sorts of topics so even despite this, among old books you can find weird things that disagree with each other.

This is recursive and implies a decrease in diversity over time, starting from enormously high and reaching abysmally small. But I am fairly certain that it doesn't hold.

> among old books you can find weird things that disagree with each other.

I fail to see what makes old books capable of disagreeing with each other and recent releases incapable. At some point new releases become old and therefore they suddenly attain the ability to disagree with each other?

I fail to see the difference between music and books tbh. Whatever remains popular has, as you said, some property or quality that helps preserve it in memory.
I do give Apple credit for a terrific design. It would be interesting to know how much of the performance is attributable to the smaller process size, on-package memory, etc. Things others will be able to replicate. It's not clear to me how much of it is true competitive advantage.
> Will Microsoft now offer an official Windows 10 on ARM that can run on M1 Macs?...This could create trouble in the x86 PC world.
Or will Microsoft, less committed to Windows than it is to its applications running everywhere, be content to see Office and more run (and generate revenue) on M1 Macs…and how will HP, Asus, Dell and others react? This is just the beginning of a new competitive layout.

Could this be good news for Linux?
That's not how reading works. You don't parse every character like a computer does. You look at the starting letter (maybe the ending one too) and then recognize the shape of the word used. There isn't too much difference in reading a long or short variable name as long as there aren't variable names that are too similar to one another.
Due to the long growing cycles for christmas trees, we're now entering a shortage caused by the 2008 recession, and it's expected to last a few years.
Yeah, I know about wear leveling and maximum writes, which is why I mentioned what you rub on the pi. These days anything meant to be a device os that doesn't make allowances for the non-vilatile memory it will likely be running in (even if just the base is and not media mounts) as needed in some way is really doing users a disservice.

The power cycling is new to me though. Is that also based on bad defaults (e.g. not using noatime mount option etc.) or is it actually based on power? Because that seems weird given their designed use case (constantly getting and losing power as they go in and out of devices).
We stopped using our artificial tree because many of the branches are broken, probably from the weight of all the decorations. It too lasted over 30 years.

We have the same kind of disconnect around here (Brazil): all these people dressed as Santa Claus (heavy-looking winter clothing) in the middle of 40 degree Rio de Janeiro summer has always been an odd juxtaposition.
> The surface area of the blades is barely larger than that of the motor.

It looks like about 2.5cm blade vs. 1.5cm motor diameter, which is around 2.75× the area.
Is it normal to love math but not enjoy programming?
I produce music aswell. I think some genres like techno could have procedurally generated tracks, that could be then brought to an artistic level by a dj mix of those tracks. The dj would provide that needed subversion and unpredictability to make it worth listening to.
Bank of Japan Becomes Biggest Japan Stock Owner with $434B Hoard
Let's say, a software manual, where you show some screenshots or make a screencast, but for some reason it's not possible to use dummy data and you need to hide the real data (because it's customer's names, or alike)
I was a little confused by this part because MS is already happy for Office to run everywhere, in browsers. Given the in house expertise that’s given us VS Code I wouldn’t be at all surprised to see an Electron powered Office app suite in the not too distant future. Linux would (and does) benefit just as much as Mac.
I've had the same feeling for a long time. To be a Jaron Lanier-type public intellectual, you need to have some humility and curiousity. PG seems to think he's figured everything out already.
Why? If everyone gives up and just builds everything on the web then it's an indirect boon for Linux, but M1 will probably never ever properly support Linux.

Unless Apple have a complete change of heart, if it ever does it will be as a result of far too much work done for free
Safari on iOS. Reddit is basically unusable without an account via web.
I used to crack a bunch of cartridges into a large plastic bag such as an outdoor trash bag. I didn't realize N2O was an accelerant so I was smoking. The tip of the cig fell on the bag and it went up in a flash. Fortunately it burned quickly and only singed me.
I'm doubtful that it will be adopted in developing and underdeveloped countries, but it's something we will only be able to check in a few decades.
Well I clicked it because I am quite a fan of making internet more open.

Unfortunately this article in my opinion is at best just bad and misguided.

New laptops rarely have RJ-45 nowadays, point here is that article is technically misleading and overly simplistic. You are not going to achieve much by just connecting laptops with cable, let alone just switches and then connecting those to more switches, it is far more complicated.

I don't believe in piece below to be true, because one had to be in academia, science facility or government to connect: "For a very long time, no one paid for Internet access because Internet access was not something that was sold. It was like a public beachfront at the ocean. If you were near it, you could jump in, no credit card required.".

In the end "focus on infrastructure, not coding" because "programmers useful only for large companies". Most of that infrastructure needs code that is written by programmers.
Well, for somebody it finally became obvious that Zuckerberg's Libra is a play on Winklevosses' Gemini (their crypto exchange project) :)
Maybe a good example for you would be people interested in Tesla cars.

They won't see Tesla ads because ... tesla doesn't advertise.

But the people selling water filters -- they know they sell to people with good income and who live in a house. People who can afford a tesla also match that, so there's a higher chance of selling to them than the general population, so they may pay to advertise.

So yes it is different - advertising is based on other people's interest in you, not on your interest in them.
I doubt that very much. The iPhone was a true revelation: in user interface, in form factor, in the things it allowed you to do.

The M1 is amazing but it doesn’t compare. Performance (both raw and thermal) is a big boost but it’s not going to reinvent computing.
Ask HN: Is there any free email provider that works with Tor?
They all want my phone number and IP address.
What is even more baffling to me is the sheer rage and lack of humanity of fans towards the developers when they delayed it several times. There was a lot of hate including death threats to the developers. I understand the internet brings out the worst in people but I can't imagine anyone desiring to be a game developer at this point.
That’s dissapointing. Especially after they ‘promised’ they wouldn’t do it.

I wonder what the solution is here. Boycotting the game is hardly going to help the employees there.

I guess this is just one of those things that the law should mandate, but does not for some reason.
> At an average retail price of $75 a pop, these trees make up a $2B+-per-year business.

Good lord, is this true? Why are they so bloody expensive south of Canada? We paid $25 for a Christmas tree from IKEA, and we got a $25 coupon to spend in the new year, which essentially made it free.

I mean, you can pay $75 for a tree if you want.. the local youth art theater does this as a fundraiser, and you can go direct to the farm and pay this as an "experience", but that price at a big box store, wow...
It's amazing how fast it makes things burn. They sell nitrous at auto stores for super charged engines but I never did that because it's very dirty
I would assume that you'd have to try and scale for what ARM allows them to get away with (if you will) - e.g. ARM allows wider decoding, while also taking into account the increased density allowing you to get more bang for the same buck (so to speak)
It doesn't mean anything to "start from scratch" anyway. The Network is a meme, knowing what it is has the effect of creating it.

The last time it could have been possible, with tremendous effort, to divert things such that the Internet didn't become the Network and something else did, would have been around 1990.

That's the point where JIPS happens. Up until then, the US has a lot of IP networking, but some other rich industrialised countries have the ITU's X.25 networking. The ITU in some sense are a logical place to look for the beginning of this Network because they oversaw technological development for its predecessor, the Public Switched Telephone Network.

Anyway in the UK they have some X.25 but people are interested in this American IP stuff, so they agree to offer establishments with X.25 access to IP as well starting January 1991, in a programme called JIPS (the JaNET IP Service). JIPS is an enormous success, everybody loves IP and soon it is apparent that the future is IP not X.25. Game over, the Internet becomes inevitable at that point.

Now, I care also about the last mile, "phase I delivery of the Network" meaning that ordinary citizens in most of the world have access to the Network. No iterations of the Network have been truly universally accessible. Even for the oldest (the global postal network agreed in Bern in 1874) you need at least literacy, a taught skill not truly accessible to every person. But we can get very close, and it took several more years for the Internet to do that.
Lots of votes, but little ‘attention’, as in: little discussion.

Why? Not because of “monarchy” but because there’s little intellectual material in this hit piece. It’s pure ad hominem.
As others have said, often you don't want to free the node, you want to do something else with it. E.g., put it in a free list. However, usually if you're not freeing it, you'd null out the next field so that you don't accidentally access it when it's not part of the list (at least I would).
So fear-mongering is bad for business? Who'd thought.
I guess scope is the other thing missing to make it more programming language like. I wonder how you'd do scoping in a spreadsheet.
It's useless to go shooting at the nearby targets because the target you need to shoot at isn't convenient.

1) California is the way it is because a whole shitload of people won't take even simple precautions. The Bay Area shows what California could be. If everybody took the precautions seriously, things would be opening instead of closing. In particular, the restaurants are suffering precisely because of the kind of people who want to go to restaurants but won't obey restrictions.

2) The governors cannot print money and are looking at a budget Armageddon coming up--no matter WHAT they do it's going to suck. The Federal government CAN print money--and is shoveling it at the rich.

Go harass the Senate Republicans. History suggests tar and feathers are effective.
Well you can increase the size of the blocks, maybe to full font-height. But at some point in future, some ML-guy will even decipher that probably.
This is what I thought it was: upload spreadsheet, get API
Clearly something is needed because Go 1.15 doesn't support it and 1.16 won't be available for months. Maybe the announcement was after the 1.15 feature freeze though.
WildDuck has dedicated plugins for Haraka and ZoneMta. So when Haraka receives a new email the recipient is validated by WildDuck plugin and the final message is stored directly to WildDuck’s database.
Oh I know it works quite often.

> These kinds of anecdotes are important, but for every anecdote on one side of the equation, there exists an anecdote on the other.

I think this would be mean catastrophic insurance failure isn't very rare.
The dangers of nitrous are hypoxia, B vitamin depletion, nerve damage, dissociative effects and extreme compulsion to use. I was in treatment with a dentist's wife, who really screwed herself in a bad way with all of these effects and could hardly walk because of nerve damage to her feet.
IN 2020, Disinformation Broke the US
It seems like that would follow if the working memory was leveraging existing long-term memories, since there would be less storage or work required to hold something like a "long term index ID" and/or residual than to store information about something more novel that could not really reference long-term memory to the same degree.
Part of the problem is that "the truth" is generally not as simple and one dimensional as people would like it to be.

I was called "lazy" for much of my life. Then I was diagnosed with a genetic disorder and people finally understood I wasn't lazy. I just didn't have the energy other people had.

Everyone knows addiction is extremely hard to quit, yet being an addict remains stigmatizing and the addict is routinely treated in a blamey way for their failure to quit.

Specific outcomes also tend to have a circumstancial component. When a family has a "badly behaving" teenager, they typically blame the teen. But family therapists typically see a misbehaving minor as the presenting problem and wonder what is going on in the social fabric of the individual that is creating this outcome.

None of us entirely has control over our own lives and our own actions. We have some input, but we always have constraints on us.

Explanations that fall inside the Overton Window will be latched onto quickly. This can boil down to victim blaming rather than trying to understand with some compassion how and why things went wrong.
They said crunch was happening in October. Why is it news again now?
in a lot of other languages you would be passing things by reference; the concept of an address would not be needed to implement a linked list.
> I have seen so many articles on HN in front page about M1 over the past few weeks.

HN has a huge hard-on for Apple. It's not unjustified in this instance, but HN is exactly the same as any other online forum in that it has its own forms of tribalism and bias.
Daily Temperatures
Thanks for the starting point. I find one of the biggest challenges is figuring out what I should learn to be efficient (the unknown unknowns), so even just a point in the right direction is very helpful!
Duff's device is a bad idea in modern code, because it's effectively a sign to compilers saying "Hi, please don't optimize my code or this loop in any way." In general, microoptimization of code to produce particular assembly sequences is a bad idea, because the actual assembly the compiler generates is only loosely related to the actual code.
Reminds me of the tonearm cartridge I saw yesterday, selling for almost $3000 (no tonearm included). I guess if you've spent $25,000 on a tonearm, you might as well. I also guess that - at those prices, if your ears are that spectacular - what the hell, get the unobtainium wires.
As a resident of RBKC, I can tell you that this was literally never an issue in local elections before Grenfell. Issues people really cared about were things like people driving Ferraris/Lambourghinis with the silencers/mufflers removed down residential streets late at night.
Blue masks contain Teflon, and other mask related tradeoffs
Thanks for the feedback. Will update the article accordingly.
All pointers are pointers too, so I don't see much of a difference between "indirect" and "next_ptr", other than the "next" part. In similar situations at my job, I've drawn a small ASCII diagram in the comments, and named the variable something like "splice_point", with a corresponding label in the diagram.
> the true cost of x86 is finally exposed

They've reinvented x86 at least twice: microcode and then x86_64. I wouldn't bury x86 yet.

Plus a good chunk of the M1 computing prowess is not even the CPU, it's the additional hardware such as the neural engine cores and such. This is something you could put next to a Sparc core, it's not ARM specific.
Side question, is there a better remote desktop/spice client than Microsoft Remote Desktop via the app store? I've found it's performance lagging compared to MS RDP client, or Remmina on Linux?
Ya, this is always what I think about when I see people spending lots of effort on "scalability".

You either need an enormous client base or are doing something very specialized that requires tons of memory or cpu per customer.

I would think 99% of all internet companies could likely handle everything on a single massive machine, or two, for redundancy. Assuming they were somewhat optimized.
Ask HN: How do you save your bookmarks?
What bookmarks manager do you use to save your bookmarks and supports fulltext search
Here's an example of some nice procgen music.

https://github.com/devinroth/GenerativeMusic

Its a lot more opinionated, its not just a blank slate at the start, but thats the only way to generate stuff that sounds nice, as things stand at the moment.
Because the game is about to come out, I guess.
There certainly is! Initial architecture selections were based around appearance and price, and in fact specified a zinc fire-resistant cladding. But due to ‘value engineering’ (read: cost cutting) this was switched to aluminium (flammable) cladding. The architects didn’t specify exact materials, they thought this would be done by the design and build contractors, who knew nothing about cladding and outsourced. The facades contractor got a heavily discounted price from the cladding suppliers, but didn’t believe it was their responsibility to check it met fire regulations, especially considering the cladding promotional literature said it was suitable. Then, pet way through the building process there was a shortage of the original insulation, and so another insulation was substituted in. At no point were the engineers/designers informed, and the on site surveyor from building control did not realise. In addition to this the installers were installing things the wrong way round, upside down, improperly cut and attached etc. The failings go on and on...

Re rebranding I think the industry would be aware enough. Despite the tests having been frauded previously, they would need to be redone under new company names at great expense, fraudulently or not. The more likely course I suspect is companies rebranding existing products and claiming new chemical formulas. (As was already done by Celotex: https://www.bdonline.co.uk/insulation-used-on-grenfell-refur...)
Assuming you leverage the KV store for some things that are read-write or very dynamic, it should perform better.
I'm just a hobbyist but I play guitar and am getting more into production (drum machines, synths, sequencing multi-sampled instruments, etc.) Recording my guitar gives me an appreciation for the fact that as great as virtual instruments are, there is still so much left on the table that a good instrumentalist (let alone a vocalist) is doing and often not even thinking about it. There's much more to it than playing the right notes at the right times if you want it to sound right, much less good. Stuff like the Linnstrument is taking it to higher levels, but I think the horizon for Faux-y Bonnamosa is a little further out than some in the tech crowds might imagine.

The bar might seem a little lower for pure electronic genres but it'll still be some time before Steve Faoki is consistently better than the real deal.
It’s not the same, but this is significantly accelerating the end of x86, and the end of Intel (at least the end of the current dominance of both). Such shifts don’t come along that often.
I have an odd structure that links objects into "boxes" where each object can be in more than one box and each box can contain multiple objects. I made a struct to link an object to a box via a pointer to both the object and the box. These links are each part of 2 lists, one from the object and one from the box. The main job is to find all the objects in a given box, which is done by following the list from the box. To delete an object involves following the list off the object and removing all the links - each of which is in a list from a box.
Each link needs two next pointers since it's part of 2 lists. It also needs a PREV pointer for the list from the box for easy deletion. I originally had an empty link object within the box object to be the previous node, but then realized a better way was to have the PREV pointer point to the previous NEXT pointer which means a box only has a pointer instead of a link. This pointer is why I decided to post.

Lastly my link object contained 5 pointers, so I XORed the object and box pointer to cut it down to 4. I always start traversal from one of those, so the XORed value can always be used to reach the other. This did not really impact performance much.
This certainly falls under Rich Hickey's definition of "simple", which is one virtue. But:

> it is not immediately evident how the more elegant solution actually works

another virtue is ease of comprehension, and the more elegant solution lacks that in my (and seemingly Linus') opinion. Maybe if you're used to working with pointers to pointers you might have an intuituon for them, but I at least had a difficult time gaining an intuitive grasp on the second solution, which could potentially nullify the bug-resistance of having fewer branching cases. In short, calling the second one objectively better is overstating it I think.

It's worth noting that in a language with union types, you can have the best of both worlds (using Rust here because it's the one I'm most familiar with):

enum LinkedList {
Null,
Node { value: i32, next: Box<LinkedList> }
}

In the same way that the pointer to a pointer homogenizes the head-case with the rest, a union type means that any given linked list "is just a node", and the head can therefore be treated the same way as any later node
Maybe a software developers’ union. Big projects like this use a lot of third party tooling; imagine if a decent percentage of those said “we won’t license this to you unless you’re a union shop” or something like that. And said union would enforce humane working conditions.
>I put a Noctua fan on my Pi and it sucks in a surprising amount of dust; mostly an artifact of too much ventilation when the computer doesn't actually need the airflow.

I'm not sure what "too much ventilation when the computer doesn't actually need it" mean.

Either there's dust in the air/surfaces near the intake or not.
It's not like every fan was acting like that. "We've received death threats" has become a tool to try and change the topic from whatever made people upset.