Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
foobazgt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
foobazgt
2y ago
Some context for others - 2015 is fairly early in Tesla's history. The model 3 didn't even exist until 2017. The overwhelming majority of Teslas on the road today are Y's and 3's. FWIW, I've personally owned three T
62.
▲
by
foobazgt
2y ago
Tesla literally has a massive (electrical) energy storage business alongside solar. There are huge battery installations that are helping regions like Hawaii and Australia pivot to renewables.
63.
▲
by
foobazgt
2y ago
Cinder's benchmarks don't seem "like Java" performance, given they aren't that far off cython. https://github.com/facebookincubator/cinder/blob/cinder/3.8/...
64.
▲
by
foobazgt
2y ago
A similar strategy is to serialize the object and store it in-process but off heap. This is useful when the values are private to the process, and/or they don't need to survive a crash, and/or you need to avoid the network ov
65.
▲
by
foobazgt
2y ago
One of the fun parts of compiler optimizations is that they can be competing forces, for example inlining for speed and outlining for size. You can see a similar pattern in garbage collectors (throughout vs latency). It can be easy to land
66.
▲
Scalable self-improvement for compiler optimization
(research.google)
2 points
by
foobazgt
2y ago
|
2 comments
67.
▲
by
foobazgt
2y ago
Yes, the drawback of unsafe is one single goof in just one unsafe block can blow your entire program wide open. The advantage is that your entire program isn't one gigantic unsafe block (like C). The magnitude matters.
68.
▲
by
foobazgt
2y ago
I have two reactions to this: - Complicated authorization systems bleed through everything else, adding exponential complexity. Maybe, as an industry, we should seek better tradeoffs? One example I can think of is preferring auditing over a
69.
▲
by
foobazgt
2y ago
It's definitely in a class above Toyota, but once you account for gas savings, the LR RWD costs about as much as the cheapest Corolla you can buy. People bagged on Tesla being too expensive when their $35K car was only available over t
70.
▲
by
foobazgt
2y ago
> in which case it's all monitorEnter and monitorExit, regardless. Oops, I need to correct myself! ReentrantLock doesn't depend upon monitorEnter/Exit, but rather AbstractQueuedSynchronizer and LockSupport, which ultimatel
71.
▲
by
foobazgt
2y ago
"every synchronized function" Right. Synchronized is the key word here. The vast majority of code doesn't involve synchronized, and therefore the vast majority of objects don't have locks associated with them. That'
72.
▲
by
foobazgt
2y ago
> because every object is its own mutex. Not true in any practical sense. > And you end up having to trade single core performance for multi core by deciding to speculatively calculate the object. What is the alternative you suggest?
73.
▲
by
foobazgt
2y ago
Every abstraction is about outsourcing the thing it's abstracting away. If using a queue solves your problem, you no longer have to deal with all the headaches that you can run into using a bare mutex.
74.
▲
by
foobazgt
2y ago
Composing locks isn't a Java problem - it's a fundamental abstraction problem with locks. This is one of the reasons why you usually reach for higher level abstractions than mutexes. > And computeIfAbsent can end up holding the
75.
▲
by
foobazgt
2y ago
Java's take on monitors was definitely not great, and people were emulating mutexes with them even in the language's earliest days. Still there are a lot of things that can go wrong with mutexes: forgetting to unlock in the case o
76.
▲
by
foobazgt
2y ago
Sadly, sometimes there's a perverse incentive for lawyers to intentionally delay lawsuits so that they can reap increased damages/penalties.
77.
▲
by
foobazgt
2y ago
You don't allow students to use calculators for operations they haven't personally mastered. If you don't learn how to add two numbers on your own, the rest of your learning is in serious jeopardy. This is the author's l
78.
▲
by
foobazgt
2y ago
He doesn't just say "why is this so hard?". He provides rationale for what he thinks is required and the effort it should take, posits some things he might have missed, and asks for more explanation. If you get a good-faith r
79.
▲
by
foobazgt
2y ago
Sadly, I can understand why Discord doesn't have a lot of incentive to do this. Maybe the community should popularize an open-source free/low-costing bot and hosting solution for exported chat? (I couldn't find one in a few m
80.
▲
by
foobazgt
2y ago
This blog post seems to blame GC heavily, but if you look back at their earlier blog post [0], it seems to be more shortcomings in either how they're using Cassandra or how Cassandra handles heavy deletes, or some combination: "It
81.
▲
by
foobazgt
2y ago
Perhaps a lifetime of watching my rear view mirror, scanning traffic up far ahead, keeping an eye on drivers next to me, etc, has made those tasks mechanically low-effort. I find them more engaging than exhausting. However, on long road tri
82.
▲
by
foobazgt
2y ago
I recently got 12.5.4, but haven't put it through the paces yet. My personal experience has been that I don't see very many (any?), critical interventions now. It seems to be handling the more complicated situations like unprotect
83.
▲
by
foobazgt
2y ago
FWIW, I spend a lot of my time writing low-level code, but more for desktop/server machines and less-so for mobile. > SoA requires unboxed arrays, otherwise it defeats the purpose. I may have been wrong about int[] being boxed Yeah,
84.
▲
by
foobazgt
2y ago
> If it's the only car you've driven for five years of course it doesn't feel sterile... I don't understand what you're trying to say here, but clearly we disagree. To each their own.
85.
▲
by
foobazgt
2y ago
The model 3 is a track car [0], literally with a tunable track mode. It weighs less than other track competitors like the M3 competition. It is fun in the bends. https://www.youtube.com/watch?v=oXqxiSZAevY
86.
▲
by
foobazgt
2y ago
> JVMs imposing an 8-24 byte overhead per object You want project Valhalla, or more specifically Value Objects, which are in preview [0]. If you really want the highest performance related to cache accesses, you want to arrange things as
87.
▲
by
foobazgt
2y ago
Model 3's didn't exist in 2012. Did you mean something else? I've driven an M3P for 5 years, and I wouldn't call it sterile. I haven't been cross shopping it with vehicles that cost 3x as much and get only 15% of th
88.
▲
by
foobazgt
2y ago
I drove stick for a couple of decades. They were fun at the time (except in traffic jams), but I'm no Luddite. I can enjoy being thrown back into my seat with roller coaster acceleration without the accompaniment of vroom vroom noises,
89.
▲
by
foobazgt
2y ago
Ditto
90.
▲
by
foobazgt
2y ago
I mean, if you're trying to embed one language in another, please don't be surprised when the quickstart guide has a couple of examples containing a few lines of code written for the embedding language and its package manager(s).
More ›