Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tomsmeding
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
61.
▲
by
tomsmeding
1y ago
> Escape for some reason doesn't get sent as the escape key if it shows up next to any other keys??? Welcome to ANSI escape sequences. The left arrow key, for example, is really just <Esc>[D . You can see this stuff for yourse
62.
▲
by
tomsmeding
1y ago
True, but the article was first with that comic it ends with.
63.
▲
by
tomsmeding
1y ago
They do not; if you sort as unsigned ints then negative floats sort above positive ones, and if you sort as signed ints then the negative range is reversed. IEEE floats are sign-magnitude, not twos-complement.
64.
▲
by
tomsmeding
1y ago
Desync happens simply after a month of not using the PC client. Yes, it's that short.
65.
▲
by
tomsmeding
1y ago
Looks like callback hell, but in Java. Async/await would solve it, but it's Java.
66.
▲
by
tomsmeding
1y ago
That sounds like a good, easy to spot indicator that these people do not care about quality. :)
67.
▲
by
tomsmeding
1y ago
The OP notes at some point that the scrapers were generating lots of source tarballs individual commits. That takes server resources, and a small server can't sustain many of those requests per second. I wonder why you (apparently) don
68.
▲
by
tomsmeding
1y ago
This caught me by surprise: > Contrary to popular belief, unwrapping the IO constructor is deeply unsafe and can violate memory safety, even if State# tokens are never duplicated or dropped. Does ANYONE believe that unwrapping the IO con
69.
▲
by
tomsmeding
1y ago
To a certain extent, the line in Haskell is: don't use unsafePerformIO and unsafeCoerce. The tricky bit is that this line is not enforced by syntax or by the type system (unlike Rust, where you have a syntactic label `unsafe`). One gen
70.
▲
by
tomsmeding
1y ago
It does, but it would contribute more if said knowledge was published openly for others to learn from. Yes, I am aware of the irony of paywalled academic publications.
71.
▲
by
tomsmeding
1y ago
The same holds for Accelerate, and I'm fairly sure also SaC and APL. DaCe even gets a special mention in the paper in section 10.5 stating that they specifically _do_ use BLAS bindings.
72.
▲
by
tomsmeding
1y ago
> The routing will be much more powerful (with alternatives on by default) and faster if you enable an online routing service. What is the essential reason that online routing has an advantage over local routing, if the data is all ava
73.
▲
by
tomsmeding
1y ago
A difference between Wordpress and Organic Maps, though, is that Wordpress is a framework whereas Organic Maps is an application. Switching to a fork of Wordpress means a different extension marketplace, various config files that may need t
74.
▲
by
tomsmeding
1y ago
>>> 2**53/(1000*3600*24*365)+1970 287586.41472415626 There's a lot of milliseconds.
75.
▲
by
tomsmeding
1y ago
GP's complaint wasn't about the coloring, but about the fact that the basic async API is not enough for most tasks, so you don't only have colored functions, you're now also bound to an async runtime . The world would b
76.
▲
by
tomsmeding
1y ago
If your struct contains a field that is itself a struct, e.g. one containing three int32_t's, then that field has size 12, which is not a power of two.
77.
▲
by
tomsmeding
1y ago
It's not, they are different things. Diversity refers to people of various biological backgrounds, mental makeups and opinions, financial powers, etc. Individualism refers to the idea that everyone lives for their own benefit primarily
78.
▲
by
tomsmeding
1y ago
The 'et al.' is used for in-article citations, if done in author-year format; references in the reference list are, to the extent that I've seen, always written out in full. I guess Google just wanted to make the life of any
79.
▲
by
tomsmeding
1y ago
Oh for sure, I was talking about the internal representation on the heap. The user program sees none of this. :)
80.
▲
by
tomsmeding
1y ago
Not having to take the light off the bike and charge it and then forget to take it back to the bike, not to mention forgetting charging it and finding out when it's dark, is completely worth having a dynamo.
81.
▲
by
tomsmeding
1y ago
Interesting! My intuition was wrong. I neglected to fully appreciate that the list is memoised. What's happening, if I'm not mistaken, is that the unevaluated tail of the list is at all times a thunk that holds a reference to the
82.
▲
by
tomsmeding
1y ago
This is a common approach when the regex needs to match any character including newlines ; `.` often doesn't.
83.
▲
by
tomsmeding
1y ago
I know some people consider this fine. I do not. The fact that the world is not ideal does not mean that we cannot continue to improve things.
84.
▲
by
tomsmeding
1y ago
EDIT: Wrong, the Haskell code is linear. See child comments. The extra cost is not in the recursive calls, of which there is only one per returned number. The cost is in achieving a yielded value n by starting with 1 and adding 1 to it (n-1
85.
▲
by
tomsmeding
2y ago
That would be very nice. Who is going to pay for the teachers, of whom you're going to need many more with this (superior) teaching style?
86.
▲
by
tomsmeding
2y ago
Generative AI might be able to generate them, but it's still on you to understand the result and check that it indeed does what you want. And with the sometimes very nuance- or foot-gun-rich syntax of bash, that's rather a signifi
87.
▲
by
tomsmeding
2y ago
A lot here depends on how much you care about discoverability. If you want to earn money off your website, then sure, you care a lot about discoverability. But the post in question is about creating, about having your own space, about art.
88.
▲
by
tomsmeding
2y ago
For completeness: I also disable all autocorrect/autocomplete on mobile because it's more trouble than it's worth, but I leave auto-capitalisation on. This is a thing, they're independent settings.
89.
▲
by
tomsmeding
2y ago
You do have a point. However, if I'm allowed to move the goalposts a little: not all changes in semantics are equal. If you take a program that crashes for certain inputs and turn it into one that is semantically equivalent except th
90.
▲
by
tomsmeding
2y ago
Modern C compilers are able to transform something like this: for (int i = 0; i < n; i++) a += i; To: a += n * (n+1) / 2; Is this an optimisation or a change in program semantics? I've never heard anyone call it anything slse t
More ›