Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
exyi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
exyi
1y ago
I intentionally stayed in the small integer range to avoid benchmarking the cache. 256 distinct values should fit into L1 just fine in both cases. I'm now thinking that the difference might be even larger if we instead avoid small inte
32.
▲
by
exyi
1y ago
It is! Although my test case is probably an unrealistically bad scenario: It's the classic, why is processing sorted array faster than unsorted one def f(arr): r = True for x in arr: if x > 128: r =
33.
▲
by
exyi
2y ago
I'd assume that the serializer is writing directly into the output buffer, so you'd have to shift everything left by one character if you overallocate. With the added checks for this, it might be faster to compute it precisely the
34.
▲
by
exyi
2y ago
Even if you are running it constantly, the per token power consumption is likely going to be in a similar range, not to mention you'd need 10+ macs for the throughput.
35.
▲
by
exyi
2y ago
It's apparently a monoclonal antibody ( https://en.wikipedia.org/wiki/Bimekizumab ). That's just a protein, so it might actually be easier to make in your garage than your average small molecule ;) ... not that
36.
▲
by
exyi
2y ago
Except that XPath and JSONPath are overpowered. I'd welcome a simple standard path syntax for JSON, for instance, I'd want to use for reporting schema errors in JSON document ($.users[10].name must be a string). I can use JSONPath
37.
▲
by
exyi
2y ago
If we have enough resources dedicated to this problem, why are we still burning coal/gas for power on sunny days? I'm definitely not against researching carbon capture, but it currently isn't the "the solution the planet
38.
▲
by
exyi
2y ago
> Preventing extraction is pointless because it has the same effect as the first one Yes, but it might raise oil prices, effectively making the carbon tax apply globally. Unless OPEC just compensates by increasing production. IMHO carbon
39.
▲
by
exyi
2y ago
Yes it's 2 years (if you are buying it as the consumer) [1]: https://www.eccnet.eu/consumer-rights/what-are-my-consumer-r...
40.
▲
by
exyi
2y ago
I think this is just transposed masonry, the wall looks ok if gravity is on the left. "Transposed" is redundant though, since I assume it will work in both grid-template-columns and grid-template-rows
41.
▲
by
exyi
2y ago
Nice :) Today it's possible to do a lot of it with vanilla Python (sortof): something(lambda x: [ x2 := x + 10, # define variables [ print(f"Number: {i}) for i in range(x) ], # loop [ 0 for i in ra
42.
▲
by
exyi
3y ago
This is only an issue with plain numbers, however. If you'd have the number in an object or array, you'd detect the truncation just as well. Since using jsonl for a plain list of numbers is... overkill, I'd say it's not
43.
▲
by
exyi
3y ago
Exactly, the AI chatbots is the perfect technology for autoscamming people.
44.
▲
by
exyi
3y ago
Yes, it's a downside of using them in b-tree indexes. However, the purpose of having an ID is usually to use it for lookup (from foreign keys, query string arguments, ...). If you create an index on two columns, you won't be able
45.
▲
by
exyi
4y ago
If it had 200 nucleotides you'd know for sure it's a contamination. RNA isn't very stable (in our conditions, I have no idea how it does at 3 Kelvin, blasted with radiation for a million years...)
46.
▲
by
exyi
4y ago
At least in GNOME, I can turn off the laptop screen without closing the lid ...you can't compare minimalism/configurability in this way
47.
▲
by
exyi
4y ago
Sure there is no silver bullet. However, I don't know about anything which would since this flathub problem as well as Nix: * Works on all (most) distros * Builds the packages from sources, binaries are only a cache to speed things up.
48.
▲
by
exyi
4y ago
Surely nobody is waking up 5 minutes ahead of class if they have to travel to school/work.
49.
▲
by
exyi
4y ago
You wouldn't want pirates capturing a nuclear reactor :| And protecting the ship at all times would be too expensive
50.
▲
by
exyi
4y ago
It seems ok to me, EVs have about 13kWh/100km efficiency while an older gasoline car would consume 10l/100km. And yes, it's quite plausible that the engine was running during loading and unloading
51.
▲
by
exyi
4y ago
It has to, if you want to be able to unlock the device with a fingerprint
52.
▲
by
exyi
4y ago
Sure. [hypothetically] After Microsoft makes new "Azure UI Test", it will surely kill Playwright in favor of the new thing. It wouldn't make sense to maintain two browser automation frameworks. The second one being bound to t
53.
▲
by
exyi
4y ago
So it took about 10 years to get into production. OP isn't claiming it's impossible, just that it's far from being practical. You could definitely say that about EUV 15y ago
54.
▲
by
exyi
4y ago
They don't claim that pure FP is the future. Immutable is better default IMHO, make it explicitly mutable if you need it and know what you are doing.
55.
▲
by
exyi
4y ago
Actually, implementing AVL tree in purely functional way is easy, I'd say it's easier than doing it in the mutable in-place way. It will allocate more, but will have the optimal O(something) complexity. Many other algorithms are m
56.
▲
by
exyi
4y ago
I think he counts academic computer scientists more as mathematicians than developers.
57.
▲
by
exyi
4y ago
Parsing JSON in powershell is not that bad either, `ConvertFrom-Json` pretty much does what you need. AFAIK there is nothing as convenient as nu's `parse`
58.
▲
by
exyi
4y ago
nushell seems to have better way of parsing the string-only outputs of other commands. https://www.nushell.sh/book/commands/parse.html I don't know how to do a similar thing in powershell. > To me interest
59.
▲
by
exyi
4y ago
Many tools have some switch which will make them output JSON, which is easy to process if you have jq. For example `docker something --format='{{json .}}'`.
60.
▲
by
exyi
4y ago
What do you mean by "agree on"? We never agreed the programming language, which means ... that I can choose whatever I like.
More ›