Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eridius
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
37 ms
·
301.
▲
by
eridius
7y ago
In a normal lottery, if the pot gets large enough, even with the normal rules the "expected payout" of a ticket becomes higher than its list price. It's just that the chances of actually winning are so astronomically low that
302.
▲
by
eridius
7y ago
I'd buy a $1500 Apple monitor if for no other reason than the fact that Apple would actually put a decent set of speakers on it¹, like they did with the Apple Cinema Display. ¹It's not clear to me if the Pro Display XDR actually h
303.
▲
by
eridius
7y ago
Re-randomizing the email wouldn't make sense, as it's not the user identifier. It's literally just an email address, unique to the combination of your app and the user. If it could be re-randomized that wouldn't affect y
304.
▲
by
eridius
7y ago
That "formula" allows the service to identify you the user because it's your domain (or group you into a subset of users if you share the domain with other people). Apple's relay service right now gives the application z
305.
▲
by
eridius
7y ago
The email address isn't the user identifier. If you don't want email, don't ask for email . When you make the request, you can ask for email and/or full name, or ask for neither if all you want is the opaque token that
306.
▲
by
eridius
7y ago
> Where's this confidence coming from? Probably from the fact that disabling these email addresses would be a distinctly user-hostile move. If Apple determines that the developer is actually a malicious entity who slipped malware
307.
▲
by
eridius
7y ago
They remind you to disable the ringer before putting it in the bag.
308.
▲
by
eridius
7y ago
They're really useful for specifying indentation settings, or overriding the filetype if the extension is auto-detected as a different filetype than desired.
309.
▲
by
eridius
7y ago
The Linux kernel is GPLv2. Apple still ships GPLv2 code, but they're highly allergic to GPLv3 (as are most big companies).
310.
▲
by
eridius
7y ago
The version of /bin/zsh on macOS 10.14.5 is a little over 2 years old. This means they have already been shipping updates to it. Now that it's the default shell they'll probably ship updates a little more frequently (I d
311.
▲
by
eridius
7y ago
That API lets you say "don't suspend me yet, give me some time to finish my work before I go to sleep", but it's tied directly to an active session; once the app suspends, it doesn't wake up again until the user rev
312.
▲
by
eridius
7y ago
There were multiple potential solutions to drug use/crime. The chosen solution was the one that took away the freedom of millions of POC without actually solving the problem. And when it failed, they just doubled down even harder, beca
313.
▲
by
eridius
7y ago
What projects currently use Amethyst? I can't find any information on the site about current users.
314.
▲
by
eridius
7y ago
What does "data-driven" mean in this context? And why are companies like DigitalOcean and Sentry sponsoring a game engine?
315.
▲
by
eridius
7y ago
What's the likelihood that a mode like this will lead to sites starting to change their design to encourage more scrolling/tapping/clicking, simply so they get a larger resource budget? "Oh we could just show this inform
316.
▲
by
eridius
7y ago
I don’t. I think the iPad doesn’t have to replace 100% of laptop uses.
317.
▲
by
eridius
7y ago
I call them "developers".
318.
▲
by
eridius
7y ago
If you right-click any local song¹ there's an option in the context menu to show the song in the Finder. ¹Music available in iCloud Music Library but not explicitly downloaded locally doesn't offer this of course.
319.
▲
by
eridius
7y ago
Looks like you're right. I don't have experience with languages like this one. I was thinking more of things like é (e followed by U+301), or 🇦🇧 (which is two regional indicator symbols that don't map to any current flag), or
320.
▲
by
eridius
7y ago
Up until Swift 5, Swift's String type was backed by UTF-16 (except for all-ASCII native strings, which just stored ASCII). Even with Swift 5, it's sometimes backed by UTF-16 (namely, when it contains an NSString bridged from Obj-C
321.
▲
by
eridius
7y ago
macOS and iOS delete the entire grapheme cluster on backspace, not just the combining mark (which is to say, backspace with no selection is identical to shift-left to select the previous character and then hitting backspace).
322.
▲
by
eridius
7y ago
I'm glad that Swift has first-class support for grapheme clusters. It's just very irritating that they made it the default way to interact with strings.
323.
▲
by
eridius
7y ago
Iterating grapheme clusters is OK, as long as you know that iterating grapheme clusters is not the same as iterating unicode scalars (code points) aka the fundamental unit of textual parsing grammars. This is something that really bugs me a
324.
▲
by
eridius
7y ago
That's covered under the whole "erasing the notion of blocking on an operation". And besides, conceptually that's no different than yielding back to the OS thread scheduler.
325.
▲
by
eridius
7y ago
It's impossible for some other reason. Namely, await isn't a matter of just inserting some compiler-defined behavior at a specific point. It requires rewriting the control flow of the surrounding function. The await! macro did thi
326.
▲
by
eridius
7y ago
Ah, but isn't the whole point of an `async` function that it syntactically erases the notion of blocking on an operation? If you ignore the fact that it blocks the async function (and yields control back to the executor), then `foo.awa
327.
▲
by
eridius
7y ago
One of the interesting things you could do with XHTML was ditch the HTML entirely and write an XML document expressing the semantic content, and then couple that with an XSLT stylesheet to convert it into XHTML for display. This way the exa
328.
▲
by
eridius
7y ago
> At least there is precedence for functions to have magical compiler-ness for 'doing stuff', instead of overloading field access which is one of the simplest operations you can have. Except we don't actually have preced
329.
▲
by
eridius
7y ago
This just then boils down to saying "the await keyword should have required parens after it", which is a different argument than saying "it should be a lang item".
330.
▲
by
eridius
7y ago
I have to say, I don't consider "{} + {}".format!("foo", "bar") to be better than format!("{} + {}", "foo", "bar") Similarly with `result.try!()`, that does not
More ›