Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dahfizz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
541.
▲
by
dahfizz
4y ago
Doesn't America already have a corporate tax rate well above 15%? What would we have to do to "adopt" these rules?
542.
▲
by
dahfizz
4y ago
> exhibiting super-high capacity and ultra-long life at room temperature. Maybe this is just bad writing? The battery (at operating temp) has high capacity, and (at room temp) can be stored for a long time? The wikipedia page indicates t
543.
▲
by
dahfizz
4y ago
<during the day>. $1T doesn't buy nearly enough batteries for the storage we would need. We should be installing more solar & wind, but that alone is not a solution to our problems.
544.
▲
by
dahfizz
4y ago
> Even if the hashmap library knew that the only valid keys were 'a' .. 'z', it wouldn't be magically faster. The best it could do is use basically the same code as a hand-rolled implementation. This is known as
545.
▲
by
dahfizz
4y ago
We already have lasers which are an order of magnitude more efficient than the one the lab was using. This is about a proof of concept, not about being an actual power plant. Also, as I understand it, the whole thing scales up very well. No
546.
▲
by
dahfizz
4y ago
I don't think you are correct. Certainly not with a word size of 4. For very large word sizes, the early return will be a big win. But you are really under-rating how expensive the hashmap will be vs "bit munging". You could
547.
▲
by
dahfizz
4y ago
I doubt the hashmap would beat the XOR method from the article. Hashmaps means allocations, and it means hashing. Hashing is going to be at least as much work as XORing a couple values in the mask. Hashmaps also means chasing pointers all o
548.
▲
by
dahfizz
4y ago
The "stuff" assigns an integer value to the char. 'b' - 'a' = 1, for example. This assigns each char a unique integer value. By shifting 1 up that many times, you assign a unique bit position to each char.
549.
▲
by
dahfizz
4y ago
The point is that each character represents a single bit in the mask, so it's easy to count the whole number of characters using popcount. If you XOR in the characters directly you can no longer easily count which characters are in the
550.
▲
by
dahfizz
4y ago
This is science lab, not a power plant. The point is to create and prove new technologies. They could easily buy a newer, more efficient laser for example. That would increase the overall efficiency, but would ultimately be a waste of money
551.
▲
by
dahfizz
4y ago
I'm not saying fusion is necessarily the answer. I'm just tired of hearing "solar plus storage is the cheapest option" when the sources always rely on projected costs and a pathetically small amount of storage. We need a
552.
▲
by
dahfizz
4y ago
Construction still hasn't begun on that project, 3 years later. When is the last time LA had a large construction project come in under budget? I'll believe it when the batteries are actually installed and the bill is paid. Also,
553.
▲
by
dahfizz
4y ago
> I would argue that people just use their bank account for such large payments these days. Yup, and now they are _forced_ to. Its a single point of failure. One which the government conveniently has control over. I'm surprised the
554.
▲
by
dahfizz
4y ago
This new rule bans transactions over 10k, but it also places restrictions on transactions as small as 1k euro. And of course, once these rules are in place, they can lower the limit over time. Boiling the frog and all that.
555.
▲
by
dahfizz
4y ago
> If the panels don't point directly at the sun, then you lose much of the efficiency. This is true for a single panel. But the amount of sunlight which hits an acre of land is constant. If the land is 100% covered with panels, the
556.
▲
by
dahfizz
4y ago
Everyone is talking about maintenance ITT. Is it that big of a concern? My parents have had solar on their roof for almost 10 years now with zero issues. I imagine newer panels last longer. So what's the actual maintenance cost? I coul
557.
▲
by
dahfizz
4y ago
Yup! valgrind is an amazing tool. Just keep in mind that the program itself will be slower when run under valgrind. Its great for debugging, but your benchmarks should be run raw.
558.
▲
by
dahfizz
4y ago
An instruction account would be a decent first order approximation, but I don't think it will be very useful for optimization. The bottleneck of modern hardware (generally) is memory. You can get huge speedups by tweaking the way your
559.
▲
by
dahfizz
4y ago
> particulate emissions I think that's kind of obvious, as most tailpipe emissions are gaseous, not particulates. What really matters, instead of blindly counting particles, is health outcomes. Nox fumes are strongly associated wi
560.
▲
by
dahfizz
4y ago
Spinning the tires will obviously accelerate wear, but I don't think that's the source of most of the tire wear we see in the wild. Spinning the tires isn't all that common, but tires still wear down.
561.
▲
by
dahfizz
4y ago
I have a small, fun to drive car for regular trips. I also have an SUV for when I need it - trips to home depot, camping trips with friends, picking up appliances, etc. Homeowners will need a large vehicle with some regularity. Doubly so if
562.
▲
by
dahfizz
4y ago
With particulate sensors becoming a cool new toy, I think a lot of people have the misconception that all particulate matter is the same (because that is all they can measure, so they focus on that one number). They don't stop to think
563.
▲
by
dahfizz
4y ago
Something I've always wondered about compilers written in their own language.... What is your process for compiling a new compiler? Let's say you make a code change to the compiler. You have a compiled version of the previous comp
564.
▲
by
dahfizz
4y ago
V8 does JIT compile WASM[1]. I would also expect GC to be an advantage for WASM here, since it originated from a language without a GC. Having to run a GC is slower than not having to run a GC, and the WASM code from the article doesn'
565.
▲
by
dahfizz
4y ago
I don't agree at all. The JVM gets much much better performance than that, and it runs on a runtime that supports ~all platforms. Idiomatic Java and C code will be within ~25% of each other. [1] Being 4x slower is pretty abysmal, hones
566.
▲
by
dahfizz
4y ago
I'm interested to see that the rust code run as WASM takes 193ms, but natively runs in 56ms. That's some serious overhead from the runtime! I would have hoped running wasm was closer to native speed than that.
567.
▲
by
dahfizz
4y ago
I wonder how it will change the livestock industry. Not having to feed animals alleviates the environmental concerns about eating meat, and would make meat cheaper. Hell, I would buy myself some photosynthesizing cows and pigs if I can just
568.
▲
by
dahfizz
4y ago
We live in a universe where infinite computer memory is not (yet) possible. Your CPU registers can only be so big.
569.
▲
by
dahfizz
4y ago
What do you do when operating on the largest int type available?
570.
▲
by
dahfizz
4y ago
Apple obviously uses some conversation rate internally when creating and updating these pre-defined tables. They could use those same numbers, with the same update frequency, with an arbitrary input price.
More ›