Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
uryga
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
331.
▲
by
uryga
7y ago
> > Because you have to be human and mortal to understand it to credibly contribute and share the story of what that means to be. > Aside from directors, authors, artists, etc, who have demonstrated this to be false [...] probably
332.
▲
by
uryga
7y ago
you can change the way permission modals display to make them a pop-up window w/o the fullscreen! makes them much less jarring
333.
▲
by
uryga
7y ago
and some of the groupings are so weird! (looking at you, "Update & Security".) i mostly just give up and text-search for the setting i want
334.
▲
by
uryga
7y ago
what do you mean by pattern matching in python 3? the only thing that sounds similar is (nested) iterable unpacking: (a, (b, c)) = foo() (fst, *middle, last) = foo() which is nice but i wouldn't really call it pattern matchin
335.
▲
by
uryga
7y ago
i had no idea rust supported laziness! how does that work?
336.
▲
by
uryga
7y ago
what benefits do you see in URLs being unique? not necessarily disagreeing, just curious
337.
▲
by
uryga
7y ago
> Also, it would contradict the term Unique Resource Locator. wikipedia defines URL as " Uniform Resource Locator", and i don't think i've ever heard "unique" in there
338.
▲
by
uryga
7y ago
[ edit: see ~gleinstein's sibling comment – it's what i was trying to say, but articulated much better ] > I’ll equate this to being critical of any early technology as if no further development will happen. i read it as saying
339.
▲
by
uryga
7y ago
> private ownership of roads and automated pricing i'd love to have a full tank of gas but not be able to drive somewhere because my card's maxed out! fun end-of-month times > Right now, you don't really pay to use road
340.
▲
by
uryga
7y ago
not sure what happened, but your code example is almost all tofu (unicode [X]) to me. looks like it's using characters like "mathematical monospace lowercase letter 'm'" etc edit: unidecoded: my-router m
341.
▲
by
uryga
7y ago
thanks!
342.
▲
by
uryga
7y ago
> The law is to protect students against anti-religious teachers who punish students for making religious statements idk, it seems more aligned with protecting the weird thing some USA¹ Christians do where they take the Bible as histor
343.
▲
by
uryga
7y ago
could you recommend any articles/tutorials that describe this approach some more?
344.
▲
by
uryga
7y ago
the coroutines are run sequentially by an "event loop"/"coroutine runner" that wakes them up and lets them run for a bit when appropriate, kind of like an OS's scheduler (on a single core machine). if the runne
345.
▲
by
uryga
7y ago
> arrays-that-are-arrays-sometimes-but-maps-other-times god, the time i spent going paranoid debugging a stray "undefined array index 0" just to find out array_filter( is_uppercase, ['a', 'B', &#
346.
▲
by
uryga
7y ago
so isn't it like PHP, which doesn't have lists, only maps with integer keys?
347.
▲
by
uryga
7y ago
i think that's just a matter of naming – afaik PHP "arrays" are what you'd call a map/dict/hash in other languages
348.
▲
by
uryga
7y ago
> Is it like coroutines in lua? idk about Lua, but afaik python's async is pretty much implemented on top of coroutines ("generators"). `await` is basically `yield` > I like coroutines but thats mostly because they are
349.
▲
by
uryga
7y ago
> On the original recording the voice sounds soft, but after separation it sounds like it is synthesized or passed through a vocoder funny, the original recording seemed kind of robotic to me! maybe not robotic, but like it's been f
350.
▲
by
uryga
7y ago
> the totality of the individual, the consciousness, is gone why is it gone? not necessarily disgreeing, but i'm curious
351.
▲
by
uryga
7y ago
you could always do an S-expression-esque DSL in JSON ;) ['book', {'id': '...'}, ['title', {}, ...], ['chapter', {'id': 0}, ['title', {}, 'Chapter
352.
▲
by
uryga
7y ago
actually no, i can't! it just shows "U N" in a bold blue capital letters, which explains some of the confusion i guess. (Android 7.0)
353.
▲
by
uryga
7y ago
i was referring to the fact that last time i checked, HN stripped emoji. hold on let me check: edit: yeah, my cat got removed :/ I guess they're distinguished by unicode block: the regional indicator letters are "Enclosed Alp
354.
▲
by
uryga
7y ago
you're right of course! i should've used a more generic term like "indirection" or "reference", didn't mean to put emphasis on Box
355.
▲
by
uryga
7y ago
my best guess is that you can't do recursive enums without explicit boxing [edit: or other forms of indirection, like &T]¹. so you can't do this: enum List<T> { Nil, Cons(T, List<T>) } instead,
356.
▲
by
uryga
7y ago
offtopic, but how'd you get an emoji in a HN comment?? (maybe it doesn't get stripped bc the flag is encoded as [U][K], two "letterlike symbols" but still it's the first time i've seen one!)
357.
▲
by
uryga
7y ago
had to check to make sure isinstance wasn't doing some magic, but yes. the whole issue is that as far as python is concerned, the pre- and post-reload Foo classes aren't related in any way except by name and module, which aren
358.
▲
by
uryga
7y ago
yeah, importlib.reload caused mine as well! i'm wondering if there's a way to avoid that... maybe a @reloadable class decorator that saves a reference to each object you instantiate and switches out their .__class__ upon reload? o
359.
▲
by
uryga
7y ago
i wrote something similar a while ago, and it gave rise to a pretty head-scratching bug... my code was doing something like if type(x) is Foo: and mysteriously failed for some data around the reload. turns out that Foo objects from b
360.
▲
by
uryga
7y ago
the title seems to be an unfortunate pun. from a quick look at the article, it's mostly cogsci stuff, where "proposition" has a very different meaning from the one "Propositions as types" normally refers to: "
More ›