skysight-inc/HackerNews huggingface dataset:
I read another comment elsewhere with which I totally agree. I think we're at a tipping point in the US where if the slogan was "End the War on Drugs" you're likely to get majority support, and ending the war on drugs would do more than any single thing to bring about social justice in the US.

Contrast that with "defund the police", the goals of which are amorphous even from its supporters, and if you don't think calls to defund the police are met with stares and questions like "are you insane" in any place besides mid-to-large urban areas in the US, you really need to pop your social bubble.

For better or for worse in a democracy you need to convince the majority (or near majority) of the population over to your side. The slogan "defund the police" is not the way to do it.
Reforming an institution always costs more money, not less.
I am Brazilian and I consider Machado de Assis the greatest Brazilian writer of all time. Posthumous Memories is the first book of Realism, so it is highly regarded. In fact, his stories are sometimes boring, but because of Assisi's style it is worth reading. If you want to read a better example of the author's work, I recommend reading Dom Casmurro. This book is a supreme masterpiece with a captivating story and unique style.
For anyone stumbling over this and having trouble to build it, I had to figure out two things:
1. When building on x86_64 Debian, I had to install linux-libc-dev:i386 to get /usr/include/i386-linux-gnu/asm/unistd.h. I also had to adapt the include path to have it actually found.
2. If you see a segfault when running the executable, you likely need to remove -Wl,-Ttext,0 from the build command. At least on my system, it fixes the segfaults and now jonesforth runs as expected.
It is strange. I got a few primes from https://www.google.com/search?q=primes+of+10+digits The small one have the same problem. (I checked them with Wolfram Alpha, just in case.)

But somewhere between 4093082899 and 5754853343 the help box disappears and it shows only the search results.
Personally I'd go with "Reform the Police" or "Police the Police". Or maybe "De-Militarize the Police" which is not the only goal but one with broader support.
I agree that to a lot of people, defund seems to imply abolish, which is not a great position. On the one hand, I think the word choice is somewhat purposeful, as it's designed to sound extreme and appeal to people who see the police as an extreme problem. On the other hand, it definitely lends itself to purposeful misrepresentation by opponents.

That said, I think given the popularity of the movement, the phrasing doesn't necessarily doom it. It's a popular enough phrase now that it's getting explanatory media coverage (I just saw the last John Oliver, where he explained that defunding the police doesn't mean abolishing them, and there's lots of other articles out there if you Google "defund the police"), and since the idea behind it is good, once people understand it I think there's a reasonable likelihood they get on board.

With all that in mind, I actually still struggle to come up with better phrasing that's both strong enough and also clearer in meaning. The obvious phrase would be "reform the police," but police reform has been talked about too much already and hasn't been effective as previously described, so that's got too much baggage to be good. "Fix the police" could be okay, but it's too general. "Redistribute the police budget to a wider range of services" doesn't exactly roll off the tongue. It's a tough one.
For me it’s definitely Elixir
What you did in this thread was egregious and we've banned this account. Please do not create accounts to break HN's rules with.

https://news.ycombinator.com/newsguidelines.html
This is worrying to many on the left, since it implies that unions could be bad. The ideologically consistent viewpoint is that the very concept of policing itself is so evil that it taints even associated unions.
Blinkist is following me around the internet at the moment, and it did make me wonder if you could offer something along the lines you just have: the world’s books summed up in just one sentence. The Blinkist’s Blinkist, as it were.

A quick google suggests that a few essays have been written with this idea in mind, and a Quora thread does the same.

But a summary wiki of all books ever written? Not there yet.

Do I dare look past the first page of Google results, or just assume (like every good entrepreneur) that because it’s not on the first page it hasn’t been done?
My Python code is up on Github under a BSD license, if you want to play with it. https://github.com/iwd32900/happyhour
I've heard the same line of argumentation used against all kinds of labor unions though. e.g. "teachers unions are failing our kids because they protect bad/apathetic/partisan teachers" or "auto unions are why American auto companies are failing since they protect workers who work 30 minutes a day and slack off the rest".
Congratulations! As a new member, I am happy to see how this community can help others.
"I'm on a screen for 80-90% of my waking hours" — I've been there and it can be really destructive to mental health and also basic thinking.

That's a good place to be in your career. Learning complex subjects is much more about quality than quantity (there was a recent HN article about effortful repetition, rather than mere repeated exposure, being the trick). So even if you want to really learn this stuff, learning to give your brain a break might be just what you need to both process the information and find pleasure in it.

Meditation is for real. But you might also be in danger of approaching it as "a task"—I did. What I do when I sense that my body just needs to relax, now, is I lay on a yoga mat on the floor and sort of stretch without trying and gradually feel my breath and slow down. Sometimes it becomes a real work out, but I never do it with that intention. Just a suggestion.
The problem is the larger the chip, the lower the yield. High end desktop/server chips are much bigger than mobile chips.
Sonar: code formatting nagware for Java. I spent a few months being very strict with code style and it has made me permanently a more productive programmer. I used to look at my code and wonder how to improve it, now I know what to do until I'm happy with it. I've learnt to apply this to other languages.
Sonar showed me how to make code consistent, that is easier to read, write, grep and work with.

An unexpected result of being anal about whitespace for a few months was productivity with large code bases.

I no longer have Sonar itself in my workflow. But I defo feel that tool made me a better programmer.

This is not really a recomendation for Sonar but a recomendation to go find a relevant code style tool and work with it until it you are no longer learning code formatting and you are learning code clarity.
Good collection! I have many of these, plus a slightly longer one for quick fixups that happen all too often:

alias gcane="git commit --amend --no-edit"
Try installing SwitchResX. macOS hides resolution options from you, even though they're supported.

I had an old 27" dell monitor that I thought was a blurry POS, until I plugged it into a Windows box and realised it was macOS that was the POS
Brave private browser accused of deceiving users over affiliate links
Choosing Fonts for Your Data Visualization
Hyperscaler servers (eg AWS Nitro) have dedicated hypervisor processors, and then customer workloads run on another processor. Imagine this architecture in a PC: macOS as “hypervisor” and applications as the user workload.
The pandemic is not primarily a supply shock. It is primarily a demand shock. People aren't going outside.
I'm a fan of cloud native kubernetes.

But: I've also been put in the terrible position of supporting a platform sold to run on kubernetes in an air gapped, on prem, bare metal environment.

But: I've also been put into the terrible position of fighting vendors armed with agile, k8s and microservices selling that combined mayhem as a replacement for an openmp,openacc based massively parallel, on prem, bare metal HPC system with a strongly conservative development and operational tradition.

I understand loving efficiency and time savings but not everything simply works better with k8s.
For zsh, I highly recommend zsh-histdb, it stores all your commands in a sqlite database, along with data like timestamp, current working directory, hostname, session id, etc...

It has its own "histdb" command but the best part is that it integrates well with zsh-autosuggestions, so with the right SQL query you can make it suggest something "the latest command in the current session that matches, or if not found, the most frequent in that directory".

I know it is controversial because it is not using a text file and UNIX loves text files, but it really nice, and you still have your .zsh-history if you want to.
Logical Reasoning: Ideology Impairs Sound Reasoning
Many police organizations have been violating rights and abusing people for decades; saying that they need more money before they fix their problem just astonishes me. Do you really think the populace will trust them to change?

If someone's been violating your trust for an extended period of time, they need to earn it back before you give them anything they want.
Yes! "End the War on Drugs" is exactly the kind of thing that could get meaningful traction and has a relatively concrete set of goals.
I do not want to be on that call. However, if following this exchange, person B goes on to write a blog post titled "One point seven million dung beetles CAN NOT fit in my suitcase" and justifies this claim by saying that knowing how many dung beetles fit in a suitcase is not a useful thing to know, then despite how right they are about the utility, their conclusion is wrong.
it's just a useful and commonly-understood shorthand for "has better asymptotic complexity"
The responsibility for bugs and software not behaving as specified falls on the dev. team. This sort of defects is their collective 'fault' or responsibility because even if a single dev. tries to cut corners or is not very thorough there should be internal processes to catch it.

Now, "behaving as specified", well, having clarity on that can often be a big problem. The dev. team does have some responsibility there as well because they should push for clarity instead of trying to interpret on their own. I've seen it many times: spec defines something in vague terms, dev implements it the way (s)he decides to interpret/imagine it without even asking for confirmation.
Next step, racial courts
The scope of what we consider "legitimate police activity" is too large and this call is to reduce that scope as well. A 20% reduction in police activity is not an unfortunate byproduct, it's the direct result that people are calling for.
I feel like the same quote-unquote “normal people” (I think it’s a dangerous term because it’s unquantifiable and can be used to justify anything) you describe here have also been passive contributors to the racial violence of police departments across the US for years now.

So I challenge your logic and your assumptions.

If anything the last two decades of American politics have shown that a highly-mobilized and engaged minority, if they have leverage over officials via money or votes, is able to shift policy _despite_ opposition from a numerical majority of people.
- Arthur Conan Doyle's Sherlock Holmes (All 4 Novels and 56 short stories) --> read multiple times since childhood

- "Be Here Now" by Ram Dass (read once and listened to audiobook twice)

- Flatland by Edwin Abbot Abbot --> read multiple times to understand whats going on in different levels

- Some PG Wodehouse stuff because it ages well (specifically the bibilical references)

- Midnight's Children by Salman Rushdie which is absolute verbal wizardry

- Treasure Island by RLS which is a kids favorite for adventurism
Yes, I know. Linux is most successful where only a shell interface is required.

But this is not what Haiku is about.
React was invented because anytime developers at Facebook touched code regarding unread messages/notifications, they would introduce a defect. You'd find the error and then fix it, but it was fundamentally a minefield. So, they had to invent a new way of building frontends, and then all those defects went away.

Now, I do tend to believe, that there still is a lot of low-hanging fruit with regards to programmer discipline. Many juniors (and some seniors) just straight up don't pay attention to things, don't check things, don't think things through to their obvious conclusion. You can then try to add policy to try to force them to do these things, like, e.g. you must have 100% coverage on your code, maybe that'll force them to try running their code at least once before merging into master. But then of course that must be a blanket policy for everyone, and you know how the story goes.
What makes this YC’s? I don’t think these are all YC companies and I don’t see anywhere that a YC employee is curating this list.
Who are these normal people you're referring to?

Why is it a scary concept to them?

Why should the message be diluted to reduce normal people's fears?

It's explicitly demanding an alternative system to one that has for decades instilled fear of violence towards Black folks.

I support the slogan, and the weight behind it. The intention is to spark discomfort in normal people, change won't happen when normal people feel comfortable.
Security to me means that someone that can restart a service can 'really' don't do anything else, if i trust 'the' peoples they have already root/management-console access etc, if not they have a jail/container etc. Half-backed sudo-stuff has nothing to-do with trust nor security
All you need is a bug in your tests or mocks or fixtures to realize that tests aren't 100% foolproof either. Nothing is, we all know that.

That said, in proper type safe development at least your own API comms should be type safe. It's easy if you use the same language on client and backend, which is possible with Typescript, Reason/Ocaml, Scala, Rust, etc.

The problem with Typescript is that it's half assing type safety in the language itself and people generally half ass type safety in other aspects of development too. You just can't expect to reap the benefits of real type safety with such an approach.
This has been my experience as well. Then Prisma wasn't able to correctly "introspect" the database, threw a generic error, and that was the end.
A mixed approach can be done, yes. If dynamic classloading is needed, you need to bundle a JIT as well (or at least a traditional interpreter). Excelsior JET has used this hybrid approach for years. [0] I imagine it should be possible to omit the JIT if it can be determined that it's not needed.

[0] https://en.wikipedia.org/wiki/Excelsior_JET
They used to do this with even/odd releases - one doing features, one doing bugs, but I am uncertain if they do that any more.

Things SHOULD be getting more reliable if they just keep retiring older machines :)
Lotsa trashy spam pages.
The "rm" thing was only (almost) a problem that time because I had passed a list of files to ripgrep, instead of passing it a list of directories to do a recursive search. rm by default don't erase directories.

But now that you mention it, creating an alias gr=rg sounds like a no-brainer. Thanks.
> What's "schuleth" then? . . . This is a form of "shall, should" but in this context it has its old meaning, now lost, of "owe"

I would not say it is lost. What else does "you should" mean but "you owe"? You can exchange "You should..." for "You ought to..." (ought is a past tense of owe).
So cool! All the best for your future.
As far as my experience goes, the single best way to deal with background noise is... the mute button.

In every video conf I've been, you can instantly tell when "one of them" who can't be bothered to mute themselves joins. The audio quality immediately goes down the drain. It's always the same subset of people who do it, too. As soon as they're enjoined to please mute, the audio quality is restored.

No amount of magic signal processing will ever match it.

While perhaps misguided to use it that way, the mute button thus act as a social-clueness meter.
An attentive moderator can address all these issues, but it's frustrating to be just a regular participant who can't mute others.
A number of ways, for instance from what I read in the New York Times article a couple days ago. First is direct political activity -- anybody in city governance who crosses the union loses their seat in the next election.

Second, the union contract can effectively dictate how laws are enforced on the police, e.g., the what the disciplinary mechanism is like, so the laws become un-enforceable.

Third is through labor action such as work-to-rule.
What do you think of Hasura vs Postgraphile?

https://www.graphile.org/postgraphile/
editor scripting, perhaps
An ahead-of-time compiler doesn't have the advantage of the call profile of polymorphic call sites. The JIT compiler has much more inlining opportunities, and in some cases this results in better performance.

Also, there are cases where manual memory management, which usually boils down to reference counting, has great overheads where a GC-managed runtime has no overhead at all. They involve repeatedly building up and then discarding large data structures. GC algorithms simply don't see the dead objects, whereas refcount-based management must explicitly free the memory of each object.
>If the goal is to prevent police brutality, it seems like it would be more effective to deal with the problem directly - punish police officers who use excessive force.

Regulation without teeth is ineffective.

This is another example of what people mean when they say the system is inherently flawed and needs to be disassembled and rebuilt from the ground up:
https://twitter.com/michaelhayes/status/1270059013854711821
How do you expect them to "earn it back" without investing more money to pay for better training and investigations of citizen complaints?
Twitter and Square are making June 19th a company holiday forevermore
This is an evidence-free supposition, consistent with your pattern across this thread of making broad claims without anything to support them. You’ve provided no proof that k-means on a representative sample of phenotypic variation in the groups you cite would return this result.

That almost everyone can agree on these categories is also contrary to reality. For example, many of who you describe as East Asians consider themselves racially distinct both within their societies and from their nearby neighbors. Also, what major categories do mixed race people fall inside?
Announced on YC's blog: https://blog.ycombinator.com/next-steps/
I feel that Visual Studio Code (a free programmer's text editor) suffers from its poor branding -- it's too easily confused with Visual Studio (a paid IDE), so folks dismiss it out of hand because of the perception that it's not free or is only for MS languages like C# (neither is true). Microsoft should have called it something else.

As a Vim user of 2 decades, I have to confess something: VS Code is a far better programmer's editor than Vim. It's pretty responsive, has seamless (and better) integration with language servers [1] than Vim, has better autocomplete than Vim (due to said language server) and the Vim keybindings are not terrible.

For the first time, refactoring (renaming variables) is easy because the editor now understands the language-specific structure of the code as opposed to the code being treated as a long string. It's possible to attach a language server to Vim but it's fiddly and doesn't work that well.

[1] https://langserver.org/
Insightful article leveraging insightful analysis.
Twenty Best Visual Studio Code Extensions for Productive Web Development in 2020
Do you feel the same way about cloud providers? Should they always be able to see everything and tamper with anything for the workloads their users run? If that’s the case, would you be in favor of making contracts to that effect (as already exist for all cloud providers I’m aware of) unenforceable?
Police unions are different than others in that they are the only group allowed to impose violence on other citizens. No issue with dismantling unions if it is not found to be an optimal organizational solution to minimizing harm.
Also — you say the slogan is doing more harm than good. How do you know?

Based on your own judgement, based on talking with your friends, based reading articles in XYZ publication, based on “common sense”, based on what?
Ask HN: I just won $150k. What do I do?
I just won $150,000 in cash, and I have no idea what to do with it. This is about a year's worth of salary for me, and I have no outstanding debts or big expenses other than rent.

I'm in my early twenties, have never had this sort of money in the bank before, and I am totally lost.

How do I best use my tiny jackpot?

EDIT: To clarify, I _also_ have a job where I make ~$150k/y, regardless of this jackpot.
its possible, but im not convinced

1. mac os has been buggy for quite a few releases already

2. outside of drivers and apps, ios and macos are basically the same kernel and userspace/libraries, so there isnt much to port
There can still be background noise, but if you're wearing a headset there is not a feedback loop where noise from the other participants gets looped through your mic and speakers.

Participants often don't realize that they're the culprit when somebody else sounds terrible.
None of this fancy technology is necessary IMO.

Just implement push to talk with mute-by-default. 90% of the audio issues would be resolved. Another 5% could be solved by buying everyone a decent headset which hopefully has a push-to-talk button on it as well.
Really nice.
Also thanks for open source this.

I'm in a student club and we have our own Jitsi instance so we will probably run it on our own infrastructure.

Do you have any plans for a "random" feature? If not would you be open for pull requests?
Well, I don't know if they can. The analogy that comes to mind is that of an long-term abusive spouse: When you threaten to leave, they say they'll change, they just need a little time and your help. Do you believe them?
To be fair, I recently searched for a Middle English grammar and pretty much everyone said to just learn by reading with a commentary. It’s close enough to Modern English that you can approach it more like reading an odd dialect.
> I would be very disappointed if engineer, even junior, showed your attitude towards problem solving.

What attitude is that exactly? Some semblance of a code of ethics? I think you are drastically underplaying the "random con" of a realtime facial recognition surveillance network of body and CCTV cameras.

People have to be confronted with the use cases of the technology they build prior to building it. Ignorance, naivety, and a post-hoc "I didn't know it would be use as such" is just ethical negligence.
macOS usage share is also small (4.9% according to Wikipedia).
you should have pricing upfront without any forms to request it - I hate that approach
My point was to respond to your "what if there's never a vaccine? Will we hide in our homes forever?"

There's a middle ground between "no attempt made to mitigate the loss of human life" and "safe and effective vaccine readily available". We can and should be doing more.

It's also not too late to do more.

But instead, we seem to be adopting the nihilism that I read in your original post, that, (in a few ways) time's up.
That’s actually not true about convincing the majority.

A minority has had outsize political influence in the US for a decade or two now. Because of the electoral college and because of gerrymandering.
Mining and transport of uranium ore, processed fuel and nuclear waste. I don’t know how significant those are.

My main concern with nuclear power is that they still haven’t managed to create any active long term storage of the nuclear waste. And before that, we don’t know the full actual cost of the energy.