Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cogman10
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
811.
▲
by
cogman10
7mo ago
Yeah, really impressive to see that you can take a 13 and turn it into a 13 pro with just a few new parts. I've just ordered my own 13 pro. I've been waiting for a laptop and this ticks all the boxes. I'd previously ordered
812.
▲
by
cogman10
7mo ago
I'd say that this is premature optimization. It doesn't take long for hash or tree lookups to start outperforming linear search and, for small datasets, it's not frequently the case that the search itself is a performance bot
813.
▲
by
cogman10
7mo ago
> I suppose there is a fundamental tradeoff somewhere, but that doesn't mean you're actually at the Pareto frontier, or anywhere close to it. In many cases, simpler code is faster, and fast code makes for simpler systems. Just
814.
▲
by
cogman10
7mo ago
Completely agreed here [1]. And as I point out, what Knuth was talking about in terms of optimization was things like loop unrolling and function inlining. Not picking the right datastructure or algorithm for the problem. I mean, FFS, his
815.
▲
by
cogman10
7mo ago
Uhh, I knew I wasn't going to like this one when I read it. > Premature Optimization (Knuth's Optimization Principle) > Another example is prematurely choosing a complex data structure for theoretical efficiency (say, a cust
816.
▲
by
cogman10
7mo ago
Yeah, ubiquitous slow charging stations more than anything else is really what's needed to make EVs practical for everyone. They can be ubiquitous for anyone that owns a home which takes a large load off the need for public infrastruct
817.
▲
by
cogman10
7mo ago
The main thing that makes all this hard to do is the form factor. Give these phone batteries a standard geometry and interface and pretty much all these problems immediately go away. 3 prongs on the battery (ground, positive, data). A sta
818.
▲
by
cogman10
7mo ago
I find both interesting but have been working in software for over a decade now. Honestly, the thing that pushed me into software dev was the fact that hardware tools were absolutely garbage. Verilog felt like a joke of a language designed
819.
▲
by
cogman10
7mo ago
Well, and aspect of hardware dev that lacks in software dev is testing. A mistake in hardware is much harder to correct once it leaves the factory vs a mistake in software. A large portion of hardware budget is ultimately spent on QA. I h
820.
▲
by
cogman10
7mo ago
I'm in a HW3 vehicle, so this may be different as it appears Tesla is done trying to develop for HW3. But, my observation is that 99% of the time, it does just as you say. It will fairly reliably take you from point A to B. However,
821.
▲
by
cogman10
7mo ago
There's already a clock dependency. The test fails because of that.
822.
▲
by
cogman10
7mo ago
It seems weird that they couldn't simply ship a software update to support kfx. Is kfx decoded in hardware?
823.
▲
by
cogman10
7mo ago
I don't disagree. I think she's about the perfect person to be involved in writing those new laws in some fashion.
824.
▲
by
cogman10
7mo ago
Yeah, really does not help that the internet seems to be built from the ground up to reward shilling. Click on a shill video in youtube and you'll have 20 identical videos on the same topic. But also, advertisers are smart and you have
825.
▲
by
cogman10
7mo ago
I'd be in favor of giving Lina Khan a lifetime appointment to heading the FTC along with 10x their current budget to tackle exactly this problem. A major part of the problem isn't even that we don't have laws on the books, it
826.
▲
by
cogman10
7mo ago
It's hard to express, but it seems the best way to sus-out who is a shill and who's authentic is by comparing across reviews for a product. It's almost a bit like AI speak. The shills will all have very similar sounding cont
827.
▲
by
cogman10
7mo ago
I disagree with that refinement. The nature of farming is speculation. It's inescapable. In a completely free market there's no way to guarantee success. Even with the best planning and saving you can't know what the rest
828.
▲
by
cogman10
7mo ago
I grew up on a farm and lived around farmers. This is my lived experience. I saw first hand farmers tear up a barley fields to plant wheat when the price got high enough. Farming is a game of speculation. Planting last year's cash cr
829.
▲
by
cogman10
7mo ago
Yup. The regulations on food in the US is exactly to make sure the shelves stay stocked no matter what. Without such regulations, you'd experience random items being unavailable and price shocks. One thing people often don't fig
830.
▲
by
cogman10
7mo ago
Yup, that's exactly the youtube problem. It's really terrible for finding new interesting things. If you don't already know exactly what you want to watch, you'll never discover something new you might like.
831.
▲
by
cogman10
7mo ago
It's not. If 90% of party A supporters support the issue, and 70% of party B supporters support and issue and the election is close to 50/50 with B in power. B putting forward the issue can make them lose the next election because
832.
▲
by
cogman10
7mo ago
For our DBs (which are often unsharded), we've found the best performance using the user account ID as the first part of the cluster key and then a sequential id for whatever the record is as the second. It's not as good as just a
833.
▲
by
cogman10
7mo ago
The article does say what it expects you to know before reading. However, it has a dead link to the knowledge it wants you to know.
834.
▲
by
cogman10
7mo ago
It got through via a ballot initiative. It wouldn't have been passed by the legislators in UT without that. That's why the guy in my state, C. Scott Grow, has also been fighting to make ballot initiatives harder. He's terri
835.
▲
by
cogman10
7mo ago
A lot of stuff does have interstate implications. Especially now that most corporations operate in an interstate fashion. That said, I agree that it's overused. I personally think that the 9th amendment should be used in a lot of cas
836.
▲
by
cogman10
7mo ago
I think the issue is this isn't seen by politicians as a motivating vote driver. It is, however, a motivation for someone to go out and vote against a politician. That's ultimately what keeps things like MJ illegal. There are ju
837.
▲
by
cogman10
7mo ago
No problem. The GC strategy for Java works best when the JVM has a lot of memory to play with. That's a big reason why a lot of companies use it for the backends. However, Java suffers when you start talking about small heaps. This h
838.
▲
by
cogman10
7mo ago
It's mixed. Several people ended up moving back as some of the older population died off. One new resident retired there and is running a mini-grocery store now as both a hobby and for some of the hunters that come through the town.
839.
▲
by
cogman10
7mo ago
> I still don't get why Java is the only language that needs the heap to be carefully tuned. Only tuning you should be doing is setting the heap size and algorithm (Though, size is likely enough). > Like it hogs some memory at st
840.
▲
by
cogman10
7mo ago
Modern JVMs actually have a solution to the shell buffer problem :D You can shove all those options into a file and instruct the JVM to load them up using `@`. java @all-options.txt -jar my.jar
More ›