Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mitt_romney_12
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
mitt_romney_12
2y ago
The link to at the bottom update post should probably point here https://ochagavia.nl/blog/solving-the-jit-calculator-challen... instead of back to the article
2.
▲
by
mitt_romney_12
2y ago
But now every function that reads from stdin needs to pass around an offset of where to read from which is very unergonomical. It also isn't really pure since offset is now state that is changing whenever a function is called. fn do_st
3.
▲
by
mitt_romney_12
2y ago
What happens if you do: 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?
4.
▲
by
mitt_romney_12
2y ago
This is an interesting approach but it has some issues with more more advanced effects. For example if you have a function that uses mutable state you would need to have the state both as an input and an output (for the original and the upd
5.
▲
by
mitt_romney_12
2y ago
You're approaching this from a PL design standpoint where the distinction is important, but from a user perspective it doesn't matter if it's just "syntax sugar" or if it's a super complicated to implement all
6.
▲
by
mitt_romney_12
2y ago
> the situation is, in the worst case, as good as when types are mandatory 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 infer
7.
▲
by
mitt_romney_12
2y ago
I'm assuming `timeout_return_value` would be a user provided value that serves as the default. But most effect systems also support a `return` effect that lets change the return type of a function [1]. So you could make it return `Just
8.
▲
by
mitt_romney_12
3y ago
If you replace the ternary with an if then it's easy to understand for anyone who knows what ... means (which imo every JS developer should know) const count = (amount: number) => { if (amount > 0) { return [...coun
9.
▲
by
mitt_romney_12
3y ago
With JSX you can do const todo = <DoMoreStuff args={...}><DoEvenMoreStuff args={...}/></DoMoreStuff>; <DoStuff args={...}>{todo}</DoStuff>
10.
▲
by
mitt_romney_12
3y ago
> With any financial innovation, there's often a cycle: initial excitement, over-extension, contraction, and then matured understanding I'm a little more cynical, I think the cycle is: a new financial invention comes out, greed
11.
▲
by
mitt_romney_12
3y ago
> Who is doing that today? 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
12.
▲
by
mitt_romney_12
3y ago
Under this interpretation nothing can ever be revolutionary. There is absolutely and ideology that is dominant in society at large and trying to say that the ideology that runs 95% of world powers and one that opposes it are equally "r
13.
▲
by
mitt_romney_12
3y ago
They hopefully won't but the threat of arrest, even if they won't be indicted, is definitely enough to have a dampening effect on people exercising their rights. At the same time I wouldn't be confident in the courts protecti
14.
▲
by
mitt_romney_12
3y ago
I don't think that's what causes police killings unless you consider walking out of your friend's house with a cellphone in your hand making "10 of the worst decisions of your life in a row"[1] [1] https:/
15.
▲
by
mitt_romney_12
3y ago
You're right I meant to say hate crimes not hate speech. Although in the Utah case her actions where pretty clearly speech [1] [1] https://www.npr.org/2021/07/15/1016431004/a-woman-is-facing-...
16.
▲
by
mitt_romney_12
3y ago
> in that the policies in question aren't controversial and are already enforced These policies aren't enforced > Change management practices, so officer abuses are punished "Less than 10% of officers in most police for
17.
▲
by
mitt_romney_12
3y ago
A gun isn't going to protect you from police violence, it's just going to give them a reason to become even more militarized and an excuse after they shoot you
18.
▲
by
mitt_romney_12
3y ago
> If you really believe that, I recommend going outside and stepping off 25 feet and then trying some smartphone recordings. I recommend you trying that in a high stress situation involving an number of people in close proximity and lots
19.
▲
by
mitt_romney_12
3y ago
> The former. People have been over-charged for destroying the property of others, in the example given. But my point was comparative. This is a inaccurate comparison. She didn't destroy any else's property
20.
▲
by
mitt_romney_12
3y ago
> But by god, there are a load of good ones, and some of them spend all day, dealing with people at their absolute worst, taking crap you or I wouldn't be able to handle for 5 minutes. There are plenty of other professions that have
21.
▲
by
mitt_romney_12
3y ago
The issue is also the distance, because it makes it harder to get accurate footage of what's going on
22.
▲
by
mitt_romney_12
3y ago
> Most people respect and want cops 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
23.
▲
by
mitt_romney_12
3y ago
This isn't a problem with hate crimes this is a problem with the level of immunity cops are given. If hate crimes had never been "made up" (whatever that means) they would have just found another way to make it illegal to pis
24.
▲
by
mitt_romney_12
3y ago
> Why wouldn't police officers be subject to the same kinds of protections from microagressions afforded to others? These are special protections afforded only to police officers. Normal people are protected from hate speech about t
25.
▲
by
mitt_romney_12
3y ago
>25 feet isn't very far. In the other states mentioned I believe it's 10 feet, which is reasonable The 25 ft buffer means that while people aren't prevented from recording an arrest, they are prevented from making a record
26.
▲
by
mitt_romney_12
3y ago
News about North Korea should be taken with a very large grain of slat given the medias history of reporting fake news about them [1][2][3][4] (note: I am definitely not pro-North Korea and this story is obviously very bad, but I think peop
27.
▲
by
mitt_romney_12
3y ago
The media has a propensity to basically report anything people say about North Korea, no matter how ridiculous [1]. For example back in 2014 a bunch of news sources reported that Kim Jong Un fed his uncle to a pack of dogs, the only source
28.
▲
by
mitt_romney_12
3y ago
Why would it be linear? The reasons it's increasing is because people no longer feel as much pressure to hide their true identity. It's the same reason that the number of left handed people doubled from 1920 to 1960 [1], it's
29.
▲
by
mitt_romney_12
3y ago
Puberty blockers are not permanent [1] they're taken until people start hormone therapy at which point they go through normal puberty [1] https://www.mayoclinic.org/diseases-conditions/gender-dyspho...
30.
▲
by
mitt_romney_12
3y ago
To be fair given past experience I would expect victims of a breach to deny that it happened
More ›