Opens profile photo
Follow
Click to Follow chimeracoder
@chimeracoder@mastodon.social🦦 🏳️‍🌈
@chimeracoder
“Aditya is a cross between a gopher and an otter, and I'm sure the gay community will find a label for him eventually”
New York, NYmastodon.social/@chimeracoderJoined August 2010

@chimeracoder@mastodon.social🦦 🏳️‍🌈’s Tweets

Body cameras are not the answer. They were not the answer in 2014, and they are not the answer today. We do not need to give the police any more power to shape the narrative, which inevitably results in more police violence. #DefundThePolice
1
8
Show this thread
“To photograph is to appropriate the thing photographed. It means putting oneself into a certain relation to the world that feels like knowledge – and, therefore, like power” - Susan Sontag
Quote Tweet
"Body cameras are not going to save us or give us a deeper truth about the world of violence that police inhabit and produce. We hide behind empty hopes that a little training, oversight and accountability will somehow transform an institution rooted in the use of violence."
Show this thread
2
6
Show this thread
"Body cameras, mounted on the bodies of the police, ensure that police remain in the position of power: the allegedly infallible narrator. They reinforce the same imbalance in power structures that they are purported to keep in check." (2014)
Quote Tweet
"The police know they are being filmed, but can use the cameras to establish a false narrative. In this case, even though they had Nichols restrained, officers continued to yell out “give me your hands” to justify for the cameras the beating they were giving him."
Show this thread
1
8
Show this thread
This is exactly what I was saying 8+ years ago: body cameras will not provide accountability, because they exist as tools to reinforce the perspective of police officers - and therefore reinforce their power.
Quote Tweet
My latest on the failure of body cameras. msnbc.com/opinion/msnbc-
Show this thread
1
40
Show this thread
the official trailer for The Sims 4 shows the player drowning an entire party of sims by building a wall around the pool, with the grim reaper throwing confetti to celebrate, all set to upbeat music so of course, conservatives are freaking out about a "binder" clothing option
Quote Tweet
I continue to advocate my latest theory, which is that conservatives have fully lost the plot
Show this thread
Nick Adams: The Sims has gone woke. You know what that means.
2
104
This leaves... not a lot of uses cases where the global math/rand RNG is the right answer. If performance is a pressing issue, you'll use the local RNG. Otherwise, you'll use crypto/rand. twitter.com/chimeracoder/s #golang
Quote Tweet
It's much easier to give general advice: always use cryptographically-secure RNGs unless you *know* you need reproducibility (e.g. scientific simulation, map generation in video games). That strategy will avoid 100% of security vulnerabilities from non-secure RNGs.
Show this thread
1
Show this thread
It's much easier to give general advice: always use cryptographically-secure RNGs unless you *know* you need reproducibility (e.g. scientific simulation, map generation in video games). That strategy will avoid 100% of security vulnerabilities from non-secure RNGs.
2
Show this thread
Most developers know that you shouldn't use a non-cryptographically secure RNG for things which "feel" sensitive (e.g. nonce generation for auth). But there are a lot of other ways that non-secure RNGs can be used as the basis for exploits by an adversary.
1
Show this thread
At that point, crypto/rand uses a getrandom(2) under the hood, so you're doing the same thing as a mutex but at the kernel level. But I'd much rather have my programs relying on kernel-provided, threadsafe, cryptographically-secure randomness vs. userland-coordinated, insecure.
1
1
Show this thread
But at scale, the performance challenges of generating random numbers come not from the method used, but from the *concurrency* overhead. The global RNG in math/rand has a mutex, and if you're generating random numbers at scale, it will bite you *hard* (as me how I know!)
1
Show this thread
As for the performance of crypto/rand: it's a little slower than the global math/rand RNG, but not by a lot. And in practice, if you need to generate random numbers quickly, you don't want to use the global RNG anyway, because that's guarded by a mutex, which makes it slow too!
1
1
Show this thread
crypto/rand has two disadvantages: - the interface is clunkier - the performance is slower than the math/rand global RNG (which is in turn slower than user-instantiated "local" RNGs) But that first problem is fixable, and the second one is actually not as bad as it sounds.
1
Show this thread
I think this is a good change, because using a fixed sequence for the global RNG causes a lot of problems, but at the same time, it highlights the fact that there are very limited use cases for the global RNG in math/rand. IMO, it's almost always the wrong answer.
3
5
Show this thread
It's a really common sci-fi trope to have an entire alien species cast as evil, and the "happy" ending being their defeat - aka, destruction of the species, which is... the definition of genocide. The Animorphs books shine a light on that trope, portraying it with real depth.
5
Show this thread
do not do this! at best, you are training users to copy and paste their passwords from password managers, leaving their passwords in their clipboard where they can be accessed by malicious sites/apps, or accidentally pasted into other places.
Quote Tweet
there is a special place in hell for developers who disable paste in password fields
Show this thread
1
Induction is superior to gas, and it's not even close. People take the health risks of gas for granted, because gas is so ubiquitous, but it doesn't have to be this way!
Quote Tweet
NEW: An experiment by @weact4ej swapped gas stoves for induction in a NYCHA complex. Lots of measurable air quality improvements + residents loved their new stoves across the board. thecity.nyc/bronx/2023/1/3
Show this thread
7
That, and homeless people (who often have cell phones, and for whom Wi-Fi is an essential service)
Quote Tweet
You know who probably used this the most? Kids doing their homework because they did not have internet access at home. MTA cuts free Wi-Fi from NYC buses gothamist.com/news/mta-cuts-
56