Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
OskarS
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
421.
▲
by
OskarS
5y ago
> At the risk of repeating comments, welcome to Unicode Hell. And possibly to cross platform development :) As who has spent a huge amount of time the last few weeks due to an extremely obscure and hard to reproduce Unicode bug in Window
422.
▲
by
OskarS
5y ago
I was mistaken, mine was printed/painted as well.
423.
▲
by
OskarS
5y ago
This is a reasonably common technique in game engines, actually, usually referred to as an “uber shader”. The idea is to have one massive shader with a bunch of if’s that does everything, and then you don’t have to pay the cost of shader st
424.
▲
by
OskarS
5y ago
You’re right, I misremembered: the keys didn’t use stickers, they were painted on. But as you say, they were standard Lego pieces, just painted.
425.
▲
by
OskarS
5y ago
I just bought and built the relatively recent Lego typewriter set [1], and I had this exact same question: how much of it was going to be purpose built, and how much would be just generic pieces. The answer is: almost all pieces are just re
426.
▲
by
OskarS
5y ago
I dunno, this seems like a perfectly reasonable tool. Saying "what was the double angle formula for sin, again?" or "what was the error term in Stirling's approximation" doesn't mean that you don't underst
427.
▲
by
OskarS
5y ago
I'm sorry, but the final version is FAR AND AWAY the worst version of all the code examples on the page. This tiny class in the stack-allocated version is lightweight, takes up very little space, has great cache locality and performs f
428.
▲
by
OskarS
5y ago
Yes, git bisect is the way to go: in addition to the stuff you mentioned, his method only dives into one parent branch of merge commits. git bisect handles that correctly. A gem of a tool, git bisect.
429.
▲
by
OskarS
5y ago
> or a binary that runs on my phone is a deal breaker Phone numbers, fair enough, but TOTP is an open standard and there are plenty of open source implementations for the client side. It’s also available in most password managers (I use
430.
▲
by
OskarS
5y ago
APFS has CoW semantics, so I would assume it uses the APFS filesystem features.
431.
▲
by
OskarS
5y ago
So it doesn't have first class functions then?
432.
▲
by
OskarS
5y ago
> Starlark is a dialect of Python. Like Python, it is a dynamically typed language with high-level data types, first-class functions with lexical scope, and garbage collection. If it has first-class functions, how can you avoid infinite
433.
▲
by
OskarS
5y ago
Modern compilers have quite a deep understanding of memcpy, and they will recognize the pattern and put in optimal assembly (on x86, probably "rep movsb" or whatever), even if you don't literally call memcpy. This is why the
434.
▲
by
OskarS
5y ago
For a download folder in particular, this does sound like a great idea. You'd break the list in the browser or whatever, but who cares about that?
435.
▲
by
OskarS
5y ago
Overly aggresive is right! I don't know if this is genius or deranged! I'm leaning towards genius and stealing the idea. By the way: what's your beef with en dashes? I mean, if it was "everything should be 'HYPHEN-M
436.
▲
by
OskarS
5y ago
Robert Bringhurst in "The Elements of Typographic Style" (a bible for this kind of thing, and one of the most beautiful books ever made), has this to say on the topic: "Anything from 45 to 75 characters is widely regarded as
437.
▲
by
OskarS
5y ago
In the context of that sentence though, it doesn’t make any sense. PCG is a PRNG, not a library for generating distributions. In fact, the PCG documentation uses the distributions from <random>: [1]. If people want to use PCG, that’s
438.
▲
by
OskarS
5y ago
Interesting article, but one point: > Sadly, the C++11 <random> library is not portable, but the excellent PCG Random library is, so I used the latter. Yes it is. std::random_device will not give you a deterministic sequence (obvio
439.
▲
by
OskarS
5y ago
My point was that the second version is much easier to read, it’s a lot clearer.
440.
▲
by
OskarS
5y ago
For operators where it’s not obvious, sure, but are you really writing if (((2*x) + 3) == z) instead of if (2*x + 3 == z) If so, that’s pretty annoying.
441.
▲
by
OskarS
5y ago
This is much more confusing to me than just using a goto. From your example, it's not immediately clear at all to me if you're breaking out of outer, or if you're breaking TO outer. You can figure it out with this simple exam
442.
▲
by
OskarS
5y ago
An enormously useful list, I’ve used it several times, and it can often dig up some real nastiness if you haven’t been super careful. This entry, by the way, is a fantastic little easter egg in the list: https://github.com/m
443.
▲
by
OskarS
5y ago
At some point, you have to accept that on a technical site like this, there is going to be jargon used (including abbreviations) with furtjer explication of meaning. Would you complain about using DNS? Or HTTP?
444.
▲
by
OskarS
5y ago
Mozilla has to make money somehow. From reading the article, this seems like a reasonable way to do it.
445.
▲
by
OskarS
5y ago
I have really warm feelings about AWK, actually! It’s such a simple language that you can learn pretty much all of it in an afternoon, but it is still expressive enough to be really useful as a text processing language. I have an AWK script
446.
▲
by
OskarS
5y ago
Exactly what I think. This is the kind of code that doesn't have a platonic ideal, it has to get updated with time and experience and reports. There is no "non-hacky" way to do this, you just have to look at the reports that
447.
▲
by
OskarS
5y ago
Honestly, from a PR perspective, I’m not sure it’s so bad. Giving honest updates showing Facebook hard at work is certainly better PR for our kind of crowd than whatever actual Facebook PR is doing.
448.
▲
by
OskarS
5y ago
They've given it to organizations before (Doctors Without Borders won in 1999). Give it to Pfizer, Moderna and Oxford University then. Or "front line COVID-workers" or something. Exactly who gets it is not the main point, the
449.
▲
by
OskarS
5y ago
I don't think it's too early to say that the vaccines deserve it, given what they have already accomplished.
450.
▲
by
OskarS
5y ago
The Peace Prize has it’s fair share of whoppers (Henry Kissinger!), but the science ones are usually not quite that clueless. This oversight though, this one is pretty baffling to me.
More ›