Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
larsnystrom
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
larsnystrom
3y ago
But in more traditional systems the GPU would use its own physical RAM, which should at least make it isolated?
62.
▲
by
larsnystrom
3y ago
So the problem is unified memory? CPU and GPU uses the same RAM but the GPU doesn’t have proper MMU protections in place, which lets an attacker write to RAM it shouldn’t be allowed to by doing it through the GPU instead of the CPU?
63.
▲
by
larsnystrom
3y ago
Swede here: This has almost nothing to do with Tesla workers in Sweden. They are free to join or not join a union, irrespective if Tesla signs a collective agreement. Wikipedia says that 87% of swedish employees work at workplaces which hav
64.
▲
by
larsnystrom
3y ago
I have zero insight into how Tesla workers are treated here in Sweden, but it’s important to note that Sweden doesn’t even have a minimum wage law (it has been directly opposing such rules on an EU-level as well) because this should be nego
65.
▲
by
larsnystrom
3y ago
I believe this is what will happen. The Swedish unions can’t budge, and Elon won’t budge, so there’s really no other solution to this conflict.
66.
▲
by
larsnystrom
3y ago
I know, so why produce all that MagSafe e-waste?
67.
▲
by
larsnystrom
3y ago
I have the 15" M2 with 24GB. It's fantastic. I'm mostly doing web dev, and was thinking I'd use GitHub Codespaces if local Docker didn't work out (either because of performance or because of arm vs intel issues), bu
68.
▲
by
larsnystrom
3y ago
First commit was 2011.
69.
▲
by
larsnystrom
3y ago
I’ve had the series 3 for almost six years now. It still works fine, and even though I’m very tempted to upgrade there is no immediate need. So the lifespan of these devices is actually pretty good. I like the Apple Watch a lot. There’s not
70.
▲
by
larsnystrom
3y ago
Capital gains taxes on your primary residence stops older people (who have large unrealized gains in the home they own) from selling their large, built-to-accommodate-a-family house to buy something smaller in a more convenient location. Th
71.
▲
by
larsnystrom
3y ago
This is one of those cases where I can’t tell if a comment is sarcastic or not.
72.
▲
by
larsnystrom
3y ago
Let’s say you need a feature in nginx. You can either pay for an nginx plus license, or fork the oss nginx and develop the feature in-house. Many people assume that developing it in-house is a one-time cost. However, in my experience, code
73.
▲
by
larsnystrom
3y ago
The author mentions this at the end of the article: > You need to benchmark, test and tweak in order to figure out what works best. Benchmarking is particularly important because, unless you're dealing with large data or very hot co
74.
▲
by
larsnystrom
3y ago
When the prosecutor brings forth the charges to a court, this information will be public. Until then it is probably covered by “förundersökningssekretess”, which just means that ongoing investigations are not public.[0] You can contact the
75.
▲
by
larsnystrom
3y ago
I skipped that part because you're talking about guessable passwords, but the threat the artice is talking about is someone watching you type in your passcode and then stealing your iPhone. The point I'm trying to make is that I d
76.
▲
by
larsnystrom
3y ago
I don't agree with much of what you're saying. Physical access is not game over, there should be additional layers of security (i.e. a passcode) to actually unlock the device. And even if you have unlocked one device, there shou
77.
▲
by
larsnystrom
3y ago
IMHO, the crazy part is that it is possible to create a new Recovery Key with just the iPhone passcode (and the iPhone). So basically, the iPhone passcode is mightier than the Recovery Key. The only purpose of the Recovery Key is to protect
78.
▲
by
larsnystrom
4y ago
Isn’t this what Apple is doing with their M-chips?
79.
▲
by
larsnystrom
4y ago
HN should really have a “Down HN” category, as this is the most reliable place to get this information.
80.
▲
by
larsnystrom
4y ago
Not 99.9% of components, but 99.9% of applications. Of course I haven’t actually done the numbers, but if your application fetches data or listens to browser events you will need useEffect. I’d estimate 99.9% of web apps using React do at
81.
▲
by
larsnystrom
4y ago
I think my gripe here is the casual use of “you might not need…”. It’s inspired by the “you might not need redux” article by Dan Abramov, but the difference here is that while you might not need Redux, you most likely will need useEffect. T
82.
▲
by
larsnystrom
4y ago
useEffect is absolutely core to doing to react development with hooks. Saying "you might not need an effect" is like saying "you might not need the + operator", like yeah, sure, if you're not trying to add two numbe
83.
▲
by
larsnystrom
4y ago
I have, like GP, been able to unlock a computer downstairs when I'm directly above it. So N=2.
84.
▲
by
larsnystrom
4y ago
I think your example was good, but I disagree with your conclusion. In your example, the hooks version renders the UI based on data/state. In the non-hooks version, the state of the rendered UI depends on ephemeral events and the order
85.
▲
by
larsnystrom
4y ago
You keep saying useEffect has problems but you never mention what those problems are.
86.
▲
by
larsnystrom
4y ago
I would say that useEffect is my favorite hook. It's neat. My least favorite hook would be useReducer. I've never used that one.
87.
▲
by
larsnystrom
4y ago
It'd be better to name them "Task 1" etc, instead of "Question 1" etc. Especially considering they are not really questions but tasks (i.e. "read all questions.", "do question 1 and 2", "dra
88.
▲
by
larsnystrom
4y ago
I don’t know who Nader is, but if he said in 1975 that plutonium, or really anything at all, could kill 8 billion people then he was lying. We can be certain of this because there were only 4 billion people alive back then, so it was litera
89.
▲
by
larsnystrom
4y ago
At first I was worried the overhead of a service call would slow things down, but my worries were put at rest when I saw it was implemented in a low level, high performance language such as Rust. Also, Elixir and the actor model is such an
90.
▲
by
larsnystrom
4y ago
To me, this article was less about letting something fail and more about letting people learn for themselves. And I agree: It’s very hard to explain a solution to people when they haven’t fully understood the pain points you’re trying to so
More ›