skysight-inc/HackerNews huggingface dataset:
> I feel like heavy switches save me from a situation where my brain wants to type a letter, but upon feeling the start of applying force, it thinks "that is not the letter you want".

I've run into this, myself, but never thought about it being related to the resistance of the switches. However, I'm convinced that's it after thinking about it.

Related to this is the most annoying thing I run into with my basic keyboards is over-stretching for CTRL+V. I always catch myself about 1/4 of the way into pressing the key and instinctively adjust. On my mechanical with decent resistance, my finger bounces off the `B`, lands on `V`, and everything is fine. On my laptop keyboards, which have a varying degrees of "too short of a distance" between pressed and not pressed (even my Thinkpad), this almost always results in the CTRL+B being hit immediately before the CTRL+V (lovely bookmark pane, now go away!)
> The money you have to pay to enrol in the insurance system?

What money is that? I'm looking for some reference that explains to me what "insurance system" you are talking about, because so far I have not found one. Everything I have found talks about subsidies, not insurance.

> If it walks like a duck, and quacks like a duck...

Which is exactly my point: what you are describing does not walk or quack like insurance. It walks and quacks like a subsidy.

> the insurance – and thus the subsidy on the premium – is available for anything you'd ever want to grow.

Again, I am looking for some kind of reference that says this, because so far everything I have found talks about subsidies for certain crops only.
I know it's a typo, but still - I'm adding "schenario" to my list of good words to use when describing screwy code.
This is true. The hardest people on the poor, who are in favor of cutting welfare, are the almost poor. Which is why they shouldn’t be listened to and why leaders need to lead.

Another motivating aspect is that it’s “easier” to attack and defeat a nearly equal rival than it is to defeat a much stronger enemy. For example, people attack the weaker and poorer than themselves much more readily than they attack their actual common enemy: the very rich. Instead, most people are bitterly divided-and-conquered, ensconced in their separate, partisan echo-chambers, accomplishing nothing. This is not to say adversarial partisanship doesn’t have its place: two or more strong parties function as countervailing powers to prevent either from gaining an upper hand. These days however, when corruption is too extreme and too hedged, the major parties become different flavors of tools of the rich.

Furthermore, when the established order appears weak or imploding, people tend to move more naturally to the extremes of right and left, seeking utopian solutions and populist demagogues.

What’s this means is that Marx was, inconveniently, correct about reality of concentrated wealth and greed’s externalities but subsequent splintering factions that developed in the 19th and early 20th centuries weren’t necessarily correct about the prescriptions. These days people must realize that “a house divided cannot stand” and that vampiric billionaires have bought most governments and mass media to such an extent that they are extincting species at an incredible rate, doubling-down on climate change and causing a widening gulf of inequality that hasn’t been seen in a century. People who are relatively comfortable or are in destructive industries will do everything to reinforce their cognitive dissonance and destroy those who challenge them with inconvenient reality.
Interesting you bring up abstinence because kids are having way less sex nowadays than in the past.
Imagine wanting to learn Japanese and learning compiler theory just to learn Japanese easier.
_spin_ locking in particular
> I'm not sure why anyone would complain, to be honest.

Lots of small farmers are complaining, so perhaps you are an outlier.
I think you're both right here. From the outside, it seems like most people don't consider the morality of their actions, but I believe it's a matter of degrees and instances.
For instance, I've been told by many in my social circle that I tend to think more deeply than most about the morality, direct or implied, of my actions/beliefs, than the average person, but when I speak to people, there's always some code they're holding themselves to, even if they don't articulate it as such, but then there are also people who will have sex with anything in sight, but will engage in extreme handwringing over every food choice and environmental impact. Even if someone isn't weighing the morality of their own actions, they're acutely aware of how others' actions comply or contradict their moral code.
Practically everyone has some common moral code that they abide by, while ignoring other parts because of convenience, desire, etc.
People who are highly morally consistent tend to be seen as ascetics, extremists, idealogues, or the like.

Like intelligence, moral IQ is a spectrum that probably most don't consciously think about until a conundrum comes up, but that generally centers around a mean, and spans multiple areas that overlap across cultures and generations and behaviors.
For the Person Who’s Fixing My Laptop
Sampling Profiler for Python Programs
eBay Horror Story
How to Operate a Steam Locomotive
> some sort of messianic figure helping you with your problems does not exist

FWIW, that's not what I was talking about, the guy I went to see is a hypnotherapist not a messiah.

> And my last sentence was not distasteful at all.

FWIW I wasn't offended. (I've had friends insult me to my face when bringing up personal history that is outside their worldview.)

> Depression is generally not solved by one-off sessions with life-coaches.

Right, and that is not what happened to me. The person who helped me is arguably the greatest living hypnotherapist on the planet.

Anyway, IMO you're right about the value and importance of hard work but wrong about books not being helpful.

Cheers!
I genuinely love ultramarathons. I encourage people to do them for various self-improving reasons (and because they can be super fun, etc). I also work for a race company that produces ultra marathon focused events.

Do I get free speech, or does my potential to continue making a living preclude me from that right?
I worked with a security company that did essentially that with air canons and radar. Unfortunately, scared birds aren't the most predictable creatures, but it seems to work pretty well.
I'm a really naive when it comes to tax law and a lot of economics statistics - but I'm having trouble seeing this.

If I am a waiter who made 35,000 in reported income and 10,000 in unreported income I made 45,000. I can take the standard deduction on 35,000 and in all statistics used by think tanks/reporters/politicians I will weight in the category of those who made ~35,000. Am I missing something?
TypeScript annotations are also optional.

In my experience, TypeScript does not reduce the number of tests you need to write.
That's being victim of your peers falling for the sunk cost fallacy
Can anybody explain the advantages or otherwise of Apple’s libdispatch for locking? I understand there’s Linux support now also. Is this something you would use outside of Apple ecosystem?

https://developer.apple.com/documentation/dispatch/dispatch_...
Bruce Perens: Invasion of the Ethical Licenses (2019)
We don't need any complicated social or cultural explanations for the dating issue.

Women generally prefer taller men. Asian men tend to be short.

The explanation works the other way too, with men typically preferring shorter women. There are other attributes as well, such as muscle mass and the amount of body hair.
or CPUs!
I guess I shouldn't be too surprised[0], we used to clean our sneakers in the dishwasher.

And about a decade ago I had a crab dinner served at a friend's house. The guy knew how to cook -- easily the best crab legs I've had (helped by the fact that he knew where to get good product). After we finished the meal, he explained that he cooked them in the dishwasher. I think part of me was grossed out, but it lasted only a few seconds ... they were extraordinary.

[0] I am, but I probably shouldn't be.
I highly recommend reading the whole thread, especially all Torvald's responses.
Behold, everyone, this is the future!
I've often needed something like this, but, sadly, once again, this isn't it.

No discredit to you; this is great work, but for me, personally: The world does not need more diagram editors.

Diagrams are fundamentally not the right tool for the problem I have.

The problem I have is that I have a technical system, for example, a network diagram, or an architecture diagram of a system or set of systems; and I need the data that represents that system, to be visualised in multiple diagrams, in such a way that you can have multiple views of the same data.

This means that when you make a change to the data, all of the diagrams are updated to reflect that change.

As an analogy to explain what I mean, consider a 3D model:

If you have a 3D model, you want to save it as a 3D model.

What you don't want, is to manually draw the way that model looks from 5 different perspectives; because if you alter the model, to say, add a new cube, or change the color of a face; you have to redraw every single diagram.

What would be actually novel, would be to allow you tag / label / whatever the components of your diagrams in some way, and they apply filters to the diagram to generate different views of the data, while maintaining one single master diagram.

I know, this is a hard problem, because layouts are fundamentally hard (if you've ever worked on layout engines you'll know exactly what I mean), and you end up looking like graphviz as soon as you try to use constraint solving to layout the elements in a diagram... I guess.

...but, at least it would be genuinely novel to try.

I don't really see much here that would, eg. get to use it over the many other indistinguishable diagram editors out there.
A bit off-topic, but you mean parser. Compiler is so much more than parser that I consider equating them harmful.
I think you have it pretty much backward. Attaining a power-generation level necessary to be off the regular grid is not that hard. And becoming independent of PG&E would have serious benefits to a city of about any size at this point given the serious economic cost of unreliable power.

The problem is the cost, logistics and legalities of an alternative grid. Every place that is on PG&E power currently would have to gain control of the PG&E power poles and spend the money needed to modernize them. That is a huge cost.
It doesn't attempt to determine the size of the critical section, AFAIK. I think it's saying that sleeping immediately when failing to acquire the lock would significantly hurt small critical sections, and so instead they spin a few times to avoid punishing those scenarios.
I agree in spirit, but a lot of human behaviors, derived from decisions, don’t have consequences. Did Nestle face consequences for their decisions to promote formula, etc?
Specs, reference docs, how-tos, tutorials, and explanations are all different types of documentation. They have different tones, amounts of detail, structures, and purposes. It's impossible to do all of the above in one document except in trivial cases.

So at the risk of having opinions that overreach the context I was given here, I'll argue that the materials were not "perfect", no matter how thorough.

In fact, I think it's possible to edit what you wrote a little and make the word "perfect" ironic. If someone is making colleagues emotional, that's a red flag that the approach to documentation leaves room for improvement, for instance. Good writing requires empathy for the audience.
Just wrote up a cookbook for IO in Go. You may find it useful
imagine every instant in your life is an infinitesimally small point on a timeline (or every millisecond if something concrete is easier). the present is t0.

an event occurs (buy ticket) at tX. according to "ignore sunk costs", at tX+delta you should annihilate all influence from any event at tX or before. therefore that you have a concert ticket is, in a weird way, almost immaterial. it enables a future decision (to "freely" go to a concert, as you would any other activity) but, my interpretation is that you only have present and future after every instant moment.

you may say: well what about eliminating future opportunities? e.g. i spent my last $250 on concert ticket so can't go to hawaii. that is in part of a matrix i would call "regret" or counterfactuals (not sure if there's an economic/scientific term here), which involves thinking about how past decisions affected future ones.
I wonder if it would be possible to edit it to remove the tone.
I'm sure you could do it with a closed system, e.g. pump water up a cliff, and when you need power, bring it back down. I'm guessing using dams on existing rivers is just more convenient than building a closed system from scratch since it can double dip on hydro infrastructure.
A Tech Insider Stylishly Chronicles Her Industry’s ‘Uncanny Valley’
Because it would tarnish the brand if poor quality recordings came out?
Interpretable models are an exciting new entry to the ML toolkit. While they are likely sufficient for everyday ML tasks, they might not be expressive enough vs deep networks to tackle complex tasks like fraud and anti-money laundering classification. As with any tool, interpretable vs black models have optimal target applications that data scientist can apply them for. As interpretable models get wider tooling for training, expect them to play a larger role in simpler ML tasks. Black box models are however here to stay and will always have their place with their versatility.
Storm in a teacup. It's (pretty much) just a matter of increasing the number of bits in the epoch-counter, and a recompile.

In fact, just adding ONE more bit to the epoch-counter would put off any problems for another 68 years. TWO extra bits and it delays any problems for another 200 years at least.

Doubling the number of bits (32 to 64) puts off the problem for MILLIONS of years.

[And I don't think that humans will still be around by then.]
Yeah. I've done that, too, and TypeScript certainly can catch up to 20% of the public bugs on GitHub. But I find that after all the other measures I use (particularly TDD and code review), there just aren't many type-related bugs left to catch (very near zero).

Mileage can and does vary. Airbnb noted a significant benefit from TypeScript. I suspect you could reproduce Airbnb's results if you had a good design review process and poor test coverage.

Lots of people share your views. A lot of people love using TypeScript because it feels satisfying and the intellisense you get with it is really nice. I'm not saying anybody is wrong for feeling that way -- only that on the projects we used it for, ROI was not good.
Lots of things that make sense don’t happen because there’s no way to centralize the revenue.

It might be cheaper and more efficient to have 100 contractors split a billion dollar market. But one person who controls that market can afford to spend more on lobbying. They also will be unified in their needs and desires. Therefore they will win the culture war.

I do think this can change with computers, federation software can allow those 100 contractors to compete effectively with the one billionaire and offer the savings back to the end consumer. But those platforms are still early in their development.
I've been using MindNode for this.

I've found it very good at letting me quickly transfer my system ideas to paper. It gets out of the way and works with quick keystrokes.

But it breaks down when trying to use it for presentation. It is too difficult to show and hide different states of the system when presenting to others. It's slow changing between each state by showing and hiding different nodes.

I'm looking forward to trying your tool for this reason. I just wish it was a local program.
Watch my Neural Network learn to shoot a target
I'm still working on creating fun little games to run on the browser. Halfway trough creating a clone of Bang Bang (windows classic) I realized I needed a good artificial intelligence to play against the player. So I forked my halfway done game into this experiment and trained my neural network (custom written) to learn to shoot targets.

The ideia is that at each level the player plays against a neural network that has been trained for longer periods of time. As you can see on the video, after twenty minutes it got really good.

I'll be posting the source code soon, for now, here's the video:

https://www.youtube.com/watch?v=3FB92OOYqPI
Woman who allegedly ripped hijab off student’s head charged with hate crimes
I actually looked through a few LeetCode problems a couple months back and had a brief panic that I found tricky/nonintuitive to formally prove from first principles problems that were apparently "easy" or "trivial" to just intuit (as LeetCode commenters tend to characterize, anyway). I was never satisfied with people's "oh, just do xyz and it makes sense" - I just assumed I was dumb... Still not sure what to make of this - I'm not the only one, I guess... ?
Limitations on depth makes sense, because the actual storage implementation can make recursive retrievals very costly. A folder could be an abstraction for a remote resource.

Of course it would still make sense for server to tell client about this (there are files/no files/I don’t know).
Do you think that, given the tremendous issues resulting from multiculturalism, it would thus make sense to stop that experiment and maybe have Africans achieve in Africa, Pakistanis achieve in Pakistan, and so on?
Quick shout out to LZFSE. Similar compression ratio to zlib but much faster.

https://github.com/lzfse/lzfse
Ask HN: Idea Sunday
So, let's do this experiment. Every Sunday, a thread will be started to share product ideas. Why? Because many people have ideas they will simply not have the time to implement, and many need product ideas to work on...
My latin in-laws shake their heads in pity because I can't 'get' García Márquez, even reading in Spanish.
Thanks so much. Do you mind if I email you when it is ready and you can see if you like it? No emails would go through me, there would be no centralized server; you would authenticate and then your client would ping the mailserver that you authenticated to.

That's a great idea to post it to Dribbble. I never gave my Dribbble account much love, do you have any idea how to get it some exposure there? Thanks a bunch.
The red bar indicates the strength of the projectile. The games consists in two cannons facing each other and trying to hit one another. Level destruction is a big part of the game, I'll try to implement that also.
The biggest spiritual revolution will take a strong shape during this decade based on values of kindness, compassion and empathy. This is because people will gradually realize that almost all the current problems including mental diseases (depression), religious conflicts, political turmoil, economic and military warfare are happening because of selfish living, and very narrow mindset. Though technology and comfort wise humans have progressed a lot over last couple of centuries but mentally the same degree of evolution hasn't happened. (if it had, we’d have no physical borders/huge national militaries etc. when in technology we’ve broken all distance and boundaries) The fault lines are increasingly visible again which may cause WW3 but spiritual revolution is coming with or without WW3.
Ask HN: AngularDart vs Angular + Flutter vs NativeScript?
Till now I've been dealing with the backend, so my knowledge of the frondend languages/tools is limited. For my next project I want to code the frontend too (full stack?). I've been reading about Flutter, which seems promising for developing iOS and Android apps and maybe even desktop ones.

For Web, I thought AngularDart would be appropriate for code sharing between all apps. But by looking at their github, I'm not sure if it's in active development. On the other hand, Angular looks pretty good for web. But code sharing would be a problem with Flutter. But will be easier with NativeScript.

So, I'm not sure if I should focus on Dart ecosystem or JS/TS ecosystem. Please, share your experience if you been through this process. Thank you!
>His posts appear hours before I awake every day, despite us being in the same time zone.

What does his publishing schedule have to do with anything? He's successful because he chose a time that's earlier in the day for your time zone than other bloggers do?
I find the writing beautiful even in translation. It always makes me wish I could read the original language. It does make me feel like I'm missing a lot of things, but even with those things missing I find that it's better than most other things I read.

I've had a very similar feeling when reading Russian authors like Gogol, Pushkin, and Dostoevsky.
Disagreement on Disagreement
Meta: This post is yet another victim of the HN verbatim title rule despite the verbatim title making little sense as one of many headlines on a news page.

How is "Now using Zstandard instead of xz for package compression" followed by the minuscule low-contrast grey "(archlinux.org)" better than "Arch Linux now using Zstandard instead of xz for package compression" like it was when I originally read this a few hours ago?
Quoting from the link:

> A dispatch semaphore is an efficient implementation of a traditional counting semaphore. Dispatch semaphores call down to the kernel only when the calling thread needs to be blocked. If the calling semaphore does not need to block, no kernel call is made.

This sounds like the same optimization that futex(2) makes for pthread mutex on Linux. So while a naive semaphore might enter the kernel 100% of the time, this one does so only when there is actual waiting to do.

It would seem to me that sem_wait() does similar on glibc so Linux probably performs similarly with the standard POSIX semaphore:

> https://github.com/bminor/glibc/blob/master/nptl/sem_wait.c

mirrored from here:

> https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=blob;f=n...
Managing State in ClojureScript
> And so I often wonder wtf. happened to all the knowledge we accumulated in this field when I see contemporary apps or websites.

Why not ask the graphic "designers" responsible for all these contemporary UI atrocities?

They'll tell you think you want skeumorphism, but really don't, so accept what they deign to build for you and be quiet
Not anymore since the Battle.net launcher.
Per Google & DDG y'all are the only two, exactly the same, wordings so I'd say they snipped it from you previously, Kayce :)
Yes, absolutely. Books contain a lot of good information. You're a slow reader, I'm an ADHD reader, therefore I find that audiobooks are a stellar way to read. I plow throw 3-6 audio books a month, I've got my overdrive app from my local library, plus hoopla and Audible.

In tech land, I find some books, like pragmatic programmer or design patterns. Tech books have the problem of being poorly written. Fiction books on the other hand and many business books have a tendency to be of really high quality.

A good publisher is Random House, they have a really good audio department too. I really enjoy Scott Brick as a narrator; also checkout authors like Nelson Demille, Tom Clancy and John Grisham.
The $5k Car That Fits in the Palm of Your Hand