Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kbolino
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
241.
▲
by
kbolino
1y ago
We really need some sort of vaguely apples-to-apples comparison. Looking only at CDs ca. 2005, which sold at about $15 each, an album that went platinum (1 million sales) would gross $15 million in retail, probably $10 million in wholesale,
242.
▲
by
kbolino
1y ago
It is a weird mix. Kingdom at least has some connection to historical places/people so it kind of makes sense. Thunderbolt Fantasy on the other hand is completely original/fictional in setting and characters, and yet still use
243.
▲
by
kbolino
1y ago
Home users generally don't pay for Windows. It comes with their computers and the major version upgrades are free and have been for quite some time; 7→8 (2012) was the last time it wasn't free but 7→10 (2015) was a valid, free u
244.
▲
by
kbolino
1y ago
How much of this is actually new to the streaming era? Radio stations may have paid better per play/listener, but they had finite airtime and so fewer songs got played and fewer artists got paid. Physical media may have paid better com
245.
▲
by
kbolino
1y ago
They used to get money from selling products, like Windows. That we are in this situation where they choose to give the OS away for free but then have to scramble to find money in obnoxious ways afterward is bizarre to me. It's not lik
246.
▲
by
kbolino
1y ago
Ideally we'd have both benefits: many platforms each with (more or less) all the content, where they compete on consumer-focused streaming features rather than on their (transient) licensed content libraries. But right now we have plen
247.
▲
by
kbolino
1y ago
I'd rather have one good streaming service with everything on it than the dozens of crappy streaming services with their ever-shifting patchwork of available licensed content we have now. Rightsholders seem like a bigger problem than l
248.
▲
by
kbolino
1y ago
> For instance, I'm pretty happy with the current state of Age of Empires 2. Terrible example IMO. Microsoft has both disabled new purchases of "traditional" Age of Empires 2 on Steam and also spitefully patched out offlin
249.
▲
by
kbolino
1y ago
Option<U8ButNotThreeForSomeReason> would have a size of 2 bytes (1 for the discriminant, 1 for the value) whereas Option<NonZeroU8> has a size of only 1 byte, thanks to some special sauce in the compiler that you can't use
250.
▲
by
kbolino
1y ago
Neither Go nor Rust define an ABI for themselves . They can use dynamically linked C code just fine but cannot link their own language with all (or even a reasonably broad subset) of its own features. This is not as bad in Rust, where you
251.
▲
by
kbolino
1y ago
(can't respond directly and don't have the rep to vouch) > Span bounds are guaranteed to be correct at all times and compiler explicitly trusts this (unless constructed with unsafe), because span is larger than a single pointer
252.
▲
by
kbolino
1y ago
> What Go can't do is create a single-element slice out of a variable or pointer to it. var x int s := unsafe.Slice(&x, 1) fmt.Println(&x == &s[0]) // Output: true
253.
▲
by
kbolino
1y ago
This is wrong. Slices in Go are not restricted to GC memory. They can also point to stack memory (simply slice a stack-allocated array; though this often fails escape analysis and spills onto the heap anyway), global memory, and non-Go memo
254.
▲
by
kbolino
1y ago
Eric Lippert describes the difference between immutability and what he calls "persistence" and explains why C#/.NET copies the string contents to make a substring: https://stackoverflow.com/a/6750591/
255.
▲
by
kbolino
1y ago
I don't follow. If it's in ssh_config, then it's client-side. Either that's the client initiating the request, in which case it's not server-controlled like HTTP virtual hosts, or else it's the "client&quo
256.
▲
by
kbolino
1y ago
Is there a way to configure the jump (hop) server to reroute the request based on the value of %h and/or %p? Otherwise, it's going to be quite difficult to configure something like HTTP virtual hosts. EDIT: Looking at the relevant
257.
▲
by
kbolino
1y ago
Most sublicing is just the 2-arg kind so it would not be safe to truncate the allocation even if the subslice is the only living slice because the capacity still allows indirect access to the trailing elements of the original slice. This op
258.
▲
by
kbolino
1y ago
Fair enough. I did not know about these. It's hard to find reliable MSRP for them today, though. Given the era, market segment, and the competition, I'd estimate $1500-2000. It's not clear to me they were on consumer store sh
259.
▲
by
kbolino
1y ago
The only consumer GPUs ten years ago that offered decent FP64 performance were the GTX TITAN series. And they were beasts! It's a shame nothing quite like them exists anymore. But they were the highest of high-end cards, certainly not
260.
▲
by
kbolino
1y ago
IMO <em> is a terrible example. For ca. ten years, the advice was to pointlessly "replace <i> with <em> and <b> with <strong>" and it utterly screwed over most new web developers' understanding o
261.
▲
by
kbolino
1y ago
ThingDoer.doThing was often just functional programming squeezed into an object-oriented straightjacket. Java 8 added first-class functions and lambdas over a decade ago, eliminating a lot of the need to turn simple behavior into full-blown
262.
▲
by
kbolino
1y ago
Spotlight indexing (mediaanalysisd, mds_stores) has a bad habit of running so aggressively when I'm not using the computer (I have an M1 mini and an M4 MBP) that it noticeably heats up the case. I've had to shut it off out of conc
263.
▲
by
kbolino
1y ago
Yep, you're right. Those two bytes are forbidden to prevent overlong encodings. A number of multibyte sequences are forbidden for the same reason too. A true flaw of UTF-8 in the long run. They should have biased the values of multibyt
264.
▲
by
kbolino
1y ago
Assuming your count is accurate, then 9 (edit: corrected from 11) of those 13 are also UTF-16's fault. The only bytes that were impossible in UTF-8's original design were 0b11111110 and 0b11111111. Remember that UTF-8 could handle
265.
▲
by
kbolino
1y ago
Thanks to UTF-16, which came out after UTF-8, there are 2048 wasted 3-byte sequences in UTF-8. And unlike the short-sighted authors of the first version of Unicode, who thought the whole world's writing systems could fit in just 65,5
266.
▲
by
kbolino
1y ago
Notably, it is mentioned that the 7-bit code is developed "in anticipation of" ISO requesting such a code, and we see in the addenda attached at the end of the document that ISO began to develop 8-bit codes extending the base 7-bi
267.
▲
by
kbolino
1y ago
In my experience, most code that operates on integers does not anticipate overflow or wraparound. So it is almost always guaranteed to produce wrong results when these conditions occur, and is only saved by the fact that usually they does
268.
▲
by
kbolino
1y ago
The problem with double-precision in video games is that the GPU hardware does not support it. So you are plagued with tedious conversions and tricks like "global vs. local coordinates" etc.
269.
▲
by
kbolino
1y ago
What is "Rice" referring to?
270.
▲
by
kbolino
1y ago
Without any major changes, struct tags cannot solve the majority of the problems, because they do not propagate. The v1 MarshalJSON/UnmarshalJSON interfaces are too simplistic. At the very least, an alternative pair of interfaces shoul
More ›