160 karma · joined December 5, 2022
fn do_stuff(offset: int) -> (string, int) { x = read_guess(offset) y = read_name("what's your name: ", offset + len(x)) z = read_guess(offset+len(x)+len(y)) new_offset = offset+len(x)+len(y)+len(z) return ("name is: {y}, guess is: {x}", new_offset) }
x = read_guess(); y = io.read_int("what's your name: "); z = read_guess();
How would your system ensure x and z are the same?
The worst case is actually worse than when types are mandatory, since you can get an error in the wrong place. For example, if a function has the wrong type inferred then you get an error when you use it even though the actual location of the error is at the declaration site. Type inference is good but there should be some places (ex. function declarations) where annotations are required.
[1] https://koka-lang.github.io/koka/doc/book.html#sec-return
const count = (amount: number) => {
if (amount > 0) {
return [...count(amount - 1), amount]
} else {
return []
};
} const todo = <DoMoreStuff args={...}><DoEvenMoreStuff args={...}/></DoMoreStuff>;
<DoStuff args={...}>{todo}</DoStuff>I'm a little more cynical, I think the cycle is: a new financial invention comes out, greed causes people to people to pump money into it, eventually the bubble pops or regulators step in. We've seen it time and time again: the dot com bubble, the subprime mortgage bubble, SPACs, and now/soon (IMO) with PE. My question is how many times this has to happen before we stop viewing it as an isolated with specific product and start to see it as a system issue with our financial system.
So many people. Look no further than the activists who are continuing to protest against Cop City in Atlanta despite the fact that the cops have already murdered one person [1] and arrested many more on trumped up charges [2].
[1] https://theintercept.com/2023/04/20/atlanta-cop-city-protest... [2] https://theintercept.com/2023/06/21/cop-city-georgia-attorne...
[1] https://en.wikipedia.org/wiki/Schenck_v._United_States (Note: this case has been overturned, but it took 50 years)
[1] https://en.wikipedia.org/wiki/Killing_of_Andre_Hill#Incident
[1] https://www.npr.org/2021/07/15/1016431004/a-woman-is-facing-...
These policies aren't enforced
> Change management practices, so officer abuses are punished
"Less than 10% of officers in most police forces get investigated for misconduct. Yet some officers are consistently under investigation. Nearly 2,500 have been investigated on 10 or more charges. Twenty faced 100 or more allegations yet kept their badge for years." [1]
> Change management practices, so officers with multiple incidents of abuse of power are not allowed to serve
"Officers like Wiley Willis, who was caught on video manhandling a handcuffed woman in an interview room until she lay injured in a pool of blood. He got his firing reversed because an expert didn’t record a polygraph ... Among the officers who benefited from it: a Shreveport officer accused of raping a woman at police headquarters; a Baton Rouge officer who shot at a fleeing motorist and was fired for dishonesty; a Eunice officer disciplined for choking and tackling a motorist; and a Hammond officer who took part in a beating that a policing expert hired by the city said was one of the “most abusive uses of force” he ever reviewed." [2] all of these cops got their jobs back
[1] https://www.usatoday.com/in-depth/news/investigations/2019/0... [2] https://www.nola.com/news/crime_police/louisiana-shields-pol...
I recommend you trying that in a high stress situation involving an number of people in close proximity and lots of environmental noise. And then trying to see how that footage would be interpreted by a hostile lawyer in court
> I wouldn't be surprised if cops find it very uncomfortable to have bystanders that close when any kind of violent encounter is in progress
These are not violent encounters, the only violence that is going on is from the police. While I do care about the comfort of the police while arresting people, I am more concerned about not being assaulted or killed.
This is a inaccurate comparison. She didn't destroy any else's property
There are plenty of other professions that have tough jobs that I absolutely wouldn't want to do. But that doesn't mean I'm going to start letting garbage collectors get away with murder
89% of Americans think that changes need to made to make policing better and 50% of Americans think that major changes need to be made [1].
> People whining about cops being mean to them, and their general dispositions, tends to think that their police interaction is a super special customer service experience and that the system is faulty when it falls short of their expectations.
If those expectations are the cops not shooting or assaulting innocent people I think those are pretty reasonable expectation and if the system is falling short of them it is absolutely faulty.
[1] https://news.gallup.com/poll/393119/americans-remain-steadfa...
These are special protections afforded only to police officers. Normal people are protected from hate speech about their race or gender but cops are protected from "hate speech" about their race, gender, or profession. It's not hate speech to say "Fuck Lawyers" but it is to say "Fuck the Police".
The 25 ft buffer means that while people aren't prevented from recording an arrest, they are prevented from making a recording that would actually show anything. Like the article says "They create a visual and auditory buffer likely to produce reasonable doubt in the courtroom. Is the officer’s knee on the suspect’s shoulder, or on his windpipe? Is the suspect fighting, or flailing? From 25 feet, with officers blocking visibility, phone cameras can’t capture crucial details. From 25 feet, they can’t capture choking sounds or someone crying “I can’t breathe.”"
[1] https://www.theguardian.com/books/2015/jun/01/true-or-false-...
[2] https://www.bbc.com/news/blogs-china-blog-25621324
[3] https://www.dw.com/en/north-korea-fake-news-on-both-sides-is...
[4] https://www.channelnewsasia.com/commentary/fake-news-north-k...
[1]: https://www.dw.com/en/north-korea-fake-news-on-both-sides-is...
[2]: https://www.bbc.com/news/blogs-china-blog-25621324
[3]: https://www.youngpioneertours.com/top-five-best-fake-north-k...
Other sources: https://en.wikipedia.org/wiki/Media_coverage_of_North_Korea#...
https://www.theguardian.com/books/2015/jun/01/true-or-false-...
[1] https://www.washingtonpost.com/politics/2022/04/07/americas-...
[1] https://www.mayoclinic.org/diseases-conditions/gender-dyspho...