skysight-inc/HackerNews huggingface dataset:
And test pilots regularly died in the old system, and come home to their children in the current one, so I prefer the current one.

The point is that it isn't "they were test pilots, so crazy" it is "in the 1950's and 1960's a lot more death was accepted and because of that, the standards were lower."
I was curious too, so I poked around! I had never looked at this codebase before this comment, so, I may have some things wrong.

> How are interpreters designed in Rust? What parts can be safe and what can't be?

Depends on the design. Different interpreters are different.

A quick glance at the source code seems to show unsafe in:

* A data structure called "boxvec"

* Some calls to unreachable_unchecked, get_unchecked, and the like. Wonder what the overheads were here.

* Some lock/mutex implementations

* A few unsafe functions in the jit. They use cranelift. Bet there's a bunch in there too. Usually this is the classic thing that needs unsafe in interpreters.

* The python object data structures; they do some stuff to have a smaller representation

* some FFI code in the standard library, calls directly to libc

> What is the internal representation of a Python object?

https://github.com/RustPython/RustPython/blob/master/vm/src/...

> How does the GC work?

Traditionally, Python uses refcounting + cycle detection. A quick glance at their issue tracker implies that as of last month, they had recounting but no cycle checks yet.

> In C++ a common technique is to make a linked list of scopes, stored in native stack frames; I'm not sure how that can be done in safe Rust.

Looks like they have a RefCell<Vec<FrameRef>>, instead.
I honestly can’t think of a better language for beginners and experts alike with the exception of perhaps JavaScript.
this garbage tool was installed on my mac recently through I think an update and took over my shell by injecting itself into my bashrc.

I learned that the built in history search in bash requires one less key press to use.
I’ve wondered this as well, though I suppose many countries use a police force armed with just batons (but combat training I’d assume).
This is super sci-fi but i'm wondering if we'll get anywhere near incubating a brain (or simulating existing brains) so that it doesn't have an aging body to deteriorate and render it useless (of course, this wouldn't solve other brain-damaging disease). A virtual environment would be used to simulate the inputs and record the outputs so that you effectively live longer//forever (perhaps you could choose to terminate at any time).

This is basically the plot of San Junipero but with the vast resources going into ML, neuroscience, and anti-aging, it's not hard to imagine this being a possibility within the next 100 years.
Civilians can end your life "without trial" if its in the right circumstance just like a police officer can. These are the the rules the courts put into place. And just to be clear I have no issue with self defense. A reminder we are not talking about police doing things against the law or if they get away with it more often.
Do you live in an area with high homeless rates? As in, "there's a homeless camp of tents consuming multiple city blocks"-level of homelessness?

It's horrible for everyone in the city--most of all for the homeless.

These people suffer from mental health or drug issues and need help. The status quo of "leave them to fend for themselves" is simply an unacceptable outcome.

The system launched by the DPD may not be perfect, but it's a whole lot better than what existed before. It's a huge step in the right direction.
Psychiatry does not know how to cure mental illness. At best it knows how to medicate it and alleviate symptoms while causing very serious or deadly side effects.

Investing more money into this doesn't solve the societal issues which come from drug addiction, lack of economic opportunity, a failing education system, etc

I would rather see us focus on fixing schools and the economy than spend billions on these programs that have dubious outcomes
Ask HN: How would you make ops decisions, if you could do it again?
I'm struggling with thinking about operations decisions: "mark this account as fraud" or "email customer if they have an item in their cart for >3 days". Decisions that define the customer experience or business operations of your company.

I've seen a combination of manual, expert rules/code and machine learning involved at my company, but it's a mess. So many teams, so much politics. How does your company do it? What do you'll do well, and how did you get there? Pitfalls?

If you could design a system that works for engineering and operations teams, how would you?
There are now variable speed limit signs too.

Example...

https://www.aspentimes.com/news/speed-limit-on-i-70-through-...
Yeah. Oddly enough, the aforementioned “97%” stat brought me to an Innocence Project page[1] which leads with:

> In nearly 11% of the nation’s 349 DNA exoneration cases, innocent people entered guilty pleas.

Obviously a small and biased sample group, but guilty plea ≠ guilty.

[1] https://innocenceproject.org/guilty-plea-campaign-announceme... (2017)
Microsoft’s hololens2 is $3.5k available now for developers.
Thank you! Will definitely try it.
And this is the hyperbolic, overdramatic society we live in today, with no nuance or potential to see another side.

Qualified immunity -- qualified meaning limited. Yes it is easy to abuse and has been abused, but rest assured cops have gone to jail for murder and involuntary manslaughter.
This one's fun†, too:

https://www.washingtonpost.com/business/2019/08/08/police-sh...

"Among men of all races, ages 25 to 29, police killings are the sixth-leading cause of death, according to a study led by Frank Edwards of Rutgers University, with a total annual mortality risk of 1.8 deaths per 100,000 people. Accidental death, a category that includes automotive accidents and drug overdoses, was the biggest cause at 76.6 deaths per 100,000, and followed by suicide (26.7), other homicides (22.0), heart disease (7.0), and cancer (6.3)."

† fun == sickening
Explain what "insurance" has to do with it?
How I dream of a future language with the power of rust, ease of python, and the ability to work in a browser.
Sure, could happen. Or maybe more of the relevant players share the load, the way they do with the kernel.
I thought our government was supposed to be "of the people" (also known as a democracy). Maybe we should expand access to voting (e.g. easier to register, no-excuse mail-in ballots, adding polling places, making election day a holiday, and/or extending voting days). We could also address gerrymandering and other structural issues (e.g. some system other than first-past-the-post).

Now think about which side wants to do this and which side wants to stop them.
Considering the DPD boss supported this method precisely because he was having police officers wasted at situations that didn't need them, the fact that there were no arrests means perfect specificity on the test for "Should I choose STAR over PD?".

Why would you randomly dispatch them? That would defeat the purpose entirely of this unit.
I don't know if there's a great general answer here. We used to make all these decisions pretty much manually. Now we automate some things directly in code. We're far from ML so will deal with it when we get there.

Manually doesn't scale, but also the people who are closest to the customers (operations) usually have most decision-making context anyway.
In my observation a lot of the homeless in the camps with mental health issues are on medication or have been through mental health facilities several times and it just made things worse for them

Source: working on the streets of Seattle a couple years ago every weekend.
I am a noob in programming. My impression is Python is easy language but only for day to day simple task. When you start to delve deeper, it is actually very big and complex language. Sometimes I feel like it is the C language which is actually a very small language and easier to learn (I know writing correct and complex C program is hard).
And over the course of life theres probably 1 in 1000 who try to commit life ending crime and have a deadly ending for themselves. I dont see an issue. This is 0.1% of the black community, the number isnt outrageous. Its probably similar to other races which happen to have much lower serious crime statistics and therefore less serious run-ins with the cops (so adjusted). Theres a small community of humans in general which are violent.

African Americans are 13% of the US population but commit over 50% of the homicides in the country. This is public info. So thats why the rate would be elevated but is still small.
I'd love for you to show me how many of these officers went to jail for murder: https://www.statista.com/statistics/585152/people-shot-to-de...
From your link:

> Our results show that people of color face a higher likelihood of being killed by police than do white men and women, that risk peaks in young adulthood, and that men of color face a nontrivial lifetime risk of being killed by police.

This is a problem. Whether you believe it is due to racial discrimination, societal pressures, or something else, the fact that BIPOC are being killed by police at a higher rate is a problem worth solving.
You can do both, and indeed they are both required. Fixing schools and the economy are the long term solution but we can’t let people be subjected to the inhumanity of our criminal justice system that exists today (especially if they’re part of a minority).
We're talking about different notions of ad-hoc polymorphism (as you point out, static vs dynamic).

For statically typed languages, implicit arguments (in some form or another) are really great at getting statically checked ad-hoc polymorphism.

But even in dynamically typed languages such as Clojure, ad-hoc polymorphism mechanisms bottom out at some form of implicitness at runtime. I assume you're referring to multimethods here (which generalize protocols, whose very existence is a performance hack akin to atoms vs volatile, so I'll focus just on multimethods)?

The entire lookup system based off of defmulti is really just the same thing as Scala's implicit system just at runtime rather than compile time, but even harder to understand IMO because it can change wildly at runtime. The same "spooky action at a distance" problems can result here.

The reason this isn't an issue in Clojure is that multimethods are very rarely used and instead a lot of code just specializes on vectors or maps (again going back to my point that you usually don't need ad-hoc polymorphism).
When most people can't afford to go to trial (both financially, and because they'd be insane to not take a plea), the checks and balances of the judiciary are, in practice, only available to a privileged few.

When you piss off a cop, get arrested, and are released a few days later, without any charges, you also have exactly zero recourse through those checks and balances.

When you piss off a cop, and he brutalizes you, you may get some recourse (through a lawsuit, unlikely as your case may be), but it does not serve as a deterrent to subsequent police misbehaviour. (As we have seen over the past summer.)
>No one is talking about the very big risk associated with this, that mental health professionals can commit you against your will with no trial

So it's better to be suffocated on the sidewalk for the crime of selling single cigarettes?
People need to remember that perfection is the enemy. Better to step forward in the right direction now than be paralysed by the fear it will never come to pass — obviously, the latter is a self fulfilling prophecy.
I'd love for you to first show me how many of those shootings were justified.
do you have any sense for how this would integrate with rust? as someone who isn't familiar with how it works, it's not clear whether that would be as easy as normal C ffi interop or more involved.
It shouldn't be that hard for a dark mode implementation to determine which images are diagrams and which are photos, and switch the colors for one class of images and not the other.
To be fair, he only snuck a golf club head aboard. He used the lunar soil sampler as the makeshift club.
Because idle gossip is toxic?

If the concern is something criminal, by all means voice it to the police. If the concern is with the maintenance of your building voice it to your landlord.

If your concern is you dont like the style of clothes your neighbour wears, please go back to high school.
The JVM is definitely memory hungry (excluding cherry-picked examples such as 'set top deployments' or the Java Ring from the 90s), moreso than any other language runtime referenced in this discussion.
Which existed even when cops were the ones making the arrests.
The obvious use case is on an airplane (or bus or train).
This article has goods stats. https://quillette.com/2020/06/11/racist-police-violence-reco...

TL;DR: looking at numbers killed by police in absolute is meaningless. You also need to consider how many of these deaths occurred while the person who was killed by cops was also armed with a gun or deadly weapon. Hint: most of the people who get shot and killed by cops were trying to harm those same cops.
So you use the hashtag on a public tweet etc and say DM me for a proxy.
Andrea Wulf also co-authored an illustrated account of Humboldt's South American expedition [0].

[0] https://www.amazon.com/Adventures-Alexander-Humboldt-Pantheo...
Interesting, is the plastic link meant to make it escapable by animals larger than a coyote?
Yea they even mention that traditional policing didn't go away, they are just now focused on crime
In my city for a while there it was 3-4x as many people reporting *found* pets compared to lost pets; "Dang people, stop discarding your pets."

Probably the hot topic these days is lawn/porch theft.
There would be no Company that owns everything
They’re professionals. I think they’re aware that there are risks involved on this job.

The brutal truth is that social services for the dysfunctional elements of society will almost certainly involve more risk than what “regular” people will face. I hope that they’re compensation reflects that additional risk.
Why the Parler CEO was fired
Okay so if Nextdoor serves content to local communities which have cultural norms varying from the bay area to so called fly over states how should they monitor their moderators?

If this is such an issue for you please describe how you think a platform which you describe as "fine." should moderate posts across a country as diverse as the US?
> especially if you don't live there

I do live in the neighborhood NextDoor area where I speak of, and my experience is not uncommon. I have seen the online NextDoor and have in-person physically walked the lived reality as well.

"In Other News", where I live has an outdated reputation. That outdated reputation lives on despite reality and my personal efforts to tell and demonstrate otherwise. Folks on NextDoor tend to be those of long life and//or long memory. Psychohistorical math [albeit perhaps Asimov-in-Reverse a bit here] comes in to play.

Over the long run, the folks who really want to be listened to -- and have a legit and right to that -- have clocks in their perspectives to adjust. Their voice needs similar.
> How many people have you met who were happy doing nothing, living with nothing, AND who made good employees doing anything at all?

Several members of my partner's family meet this description. They fit the welfare queen stereotype to a T. That's just immediate family. I've met plenty. Maybe you just don't have contact with people who would?

> Almost certainly more than offset by the ambitious who can now take risks they otherwise couldn't, knowing that if they fail they at least aren't going to end up hungry and homeless.

This is a completely unsubstantiated claim. How are you measuring this and where's the evidence? Yeah, it sounds great and is something people want to believe is true, but where's the hard evidence?
This trend will be interesting. We mainly abandoned the practice in the late 1960’s and turned more towards policing by the 1980’s. Mental institutions got a really bad reputation and some of it justified as we were committing people for things like being gay. Lobotomies became unbelievably common. The whole concept was scary.

So today there’s a general distaste for policing tactics which although very effective, people seem to be souring on the costs - high prison populations, a feeling of profiling, and suspected unfair treatment of certain demographics. Criminal justice is in a crisis right now and people demand change.

So things like this have been becoming popular. I wonder how long it will be before it’s widespread and prison budgets are rerouted to mental health facilities?

I’m most curious about what will be considered a mental health issue and how politicized that will be.

I’m very cautiously optimistic that it could be a change for the better if administrated well.
They call the police.
I’m of the opinion that:

1. If it can be efficiently done in the database, that’s where your business logic actually is.

2. Treating the database as some external foreign thing is generally a bad idea. Your application doesn’t (generally) exist without it.

3. Tools should first-class data stores in general so this distinction is more about federation than network/socket boundaries.
I'm thinking ReasonML or OCaml might be able to take on this role.

I was sad to hear about the change to ReScript though. ReasonML targeting the browser and native seemed nice to me, although I do agree the documentation situation and DX wasn't ideal.
No one would claim that the existing system is perfect, but there is a great deal of difference between the assessment of a physician or magistrate and trial by a jury of one's peers. A jury of twelve is standard; I know of no requirement that twelve physicians deem someone a threat to himself or others. Furthermore, there are stronger protections for habeas corpus than there are for people involuntarily committed. Those who are accused are guaranteed a lawyer; those who are committed have no right to an advocate, which is doubly bad considering that they are often drugged in ways that dull their mental faculties.
Just wait until one of these workers gets attacked and seriously injured or worse...
Fwiw I use this a couple hours a day a few times a week for coding. It’s great for focus and completely comfortable/readable as long as the text size isn’t tiny.
Any data on violence against the health professionals on duty?

Don't know about Denver, but there are areas where even firefighters refuse to go without police escort.
That's why most programs like this send both a social worker and police officer. The social worker initially takes the lead but if things escalate past the point that the social worker is able to de-escalate the police are there to intervene.
There are a large number of people who take a plea just because they can't afford the bail and it would take a year or two to get to trial. Or because lawyers are expensive and it's cheaper to plead guilty than to defend your innocence.

I've recently had an issue with an incompetent trooper (1 successful complaint and one pending) and incompetent magistrate (complaint pending). It will cost between $100 (win) and $650 (lose) to go through the legal process and defend our innocence. It's been more than 6 months too. All this is over "leash law" violation. But it's great to see both the trooper and magistrate commit civil rights violations, and have the civil rights lawyer tell you that they are violations but that the system doesn't care unless you suffer serious financial damages. So much for a justice system.
Google adds ability to measure heart rate and respiratory rate to Google Fit
>Back at the Base I was furious to hear of discussions of the possibility that the atmosphere might be detonated. This possibility had been discussed at Los Alamos and had been quashed by intensive studies of all possibilities by Hans Bethe and others. It was thoughtless bravado to bring up the subject as a table and barracks topic before soldiers unacquainted with nuclear physics and with the results of Bethe's studies.

This part is interesting. I had always heard that there was some concern about the Bomb literally lighting the sky on fire, but it sounds like they did their due diligence.
So Apple (known maker of Galaxy phones) is going to be using DLSS for their Oculus Quest?
The Road to Utopia: A manifesto for reclaiming a humanist future (2020)
Whitespace helps too! And I think using `sorted(key=)` is more Pythonic than a generator expression ;)

from operator import itemgetter

def maxWidthOfVerticalArea(self, points: List[List[int]]) -> int:
xs = sorted(points, key=itemgetter(0))
x_pairs = zip(xs, xs[1:])

widths = (right-left for left, right in x_pairs)

return max(widths)

NumPy also has stuff to solve this sort of thing built-in:

from numpy import diff

def maxWidthOfVerticalArea(self, points: List[List[int]]) -> int:
xs = sorted(points, key=itemgetter(0))
widths = diff(xs)

return widths.max()
That can't happen. Any program that runs on fairies and rainbows is an automatic winner.
The white van has the right and ability to call the police to make an arrest.

In the past, these 750 incidents, which did not require police intervention would have likely led to a police squad wasting time on these 750 incidents as opposed to spending time on other real crime issues.

The problem is that such white vans don’t exist in other police forces.
So moving your head a lot? You would look like a giant weirdo, right?
Is Firechat still around? What other chat solutions allow for local meshnet?
I'm confused why you are comparing risk of death to police action versus other causes. The linked research shows that of all deaths attributed to police action, people of color are extremely over-represented for their proportion of the population subject to police action. What does risk of death from other causes have to do with this conversation, and why do you think the research contradicts the results presented in the article?
Yes, my first test is always running pyflakes, which finds the most egregious bugs quickly.
From the article: A young program that puts troubled nonviolent people in the hands of health care workers instead of police officers [emphasis added]

I wonder what the metrics are for police officers when dealing with non-violent people (with mental disturbances)
Does anyone have any real information on this STAR program? I can't find anything around their protocol. Everything is PR stuff.

The Denver PD Operations Manual does not mention them https://www.denvergov.org/content/dam/denvergov/Portals/720/...
> People need to remember that perfection is the enemy.

Yeah I'm getting real sick of the stance that if something only fixes 80% of a problem and doesn't perfectly resolve every issue every person might ever encounter, it is a failure and should never be implemented.

If it is not causing more harm, and especially if there is a way to address unforeseen harm that might arise, awesome! Let's give it a go.

Because sending armed officers out to deal with any little thing that happens is demonstrably not working well right now.
This reminds me of the time I went into a Melbourne boutique art shop and noticed an artist had painted a cow, with one of its legs backwards as if it were an emu leg.
> Is it just me or is this a severe case of "if you only have a database, everything looks like a SQL query"?

Honestly I’m starting to feel like if it looks like tool flexibility is a hammer, all you see is a tool belt. Databases should be able to do search. If you need to pipe tools (and likely duplicate storage), probably one of your tools is dropping the ball or you’re being reflexive about your tools.
Just for the record, setting all the client quality settings to the maximum solved it for me as well. No more transcoding. Thanks again!
Depending where you live contact information may be required to be permanently attached to the trap. Glad to hear your dog is okay.