HNHacker News
TopNewBestAskShowJobs

jagthebeetle

76 karma · joined November 2, 2016

submissionscomments
jagthebeetle··on De Bruijn Numerals
Looking at https://text.marvinborner.de/2023-04-06-01.html helped me understand the syntax a bit (though I'm just a non-theoretical programmer).

I was confused about what <4> = \lambda ^ 5 4 meant, since it already seemed to have a "4" in it.

The trick is that the 4 seems to be similar to a positional argument index, but numbered inside out.

IOW, in this encoding, <4> is a function that can be called 5 times (the exponent on the lambda) and upon the fifth call will resolve to whatever was passed in 1st (which because of the inside-out ordering is labeled "4").

(For a simpler example, 0 is a function that can be called once and returns its argument.)

So succ is 3-ary; it says, give me a function (index 2, outermost call); next, give me its first argument (index 1, second-outermost call); when you call that (index 0, dropped, innermost call), I'll apply the function to the argument.

But note that if index 2 is a numeral <N>, the outermost call returns a function that will "remember" the next thing passed in and return it after 1 (succ's innermost call) + N + 1 (<N>'s contract) calls.

jagthebeetle··on Dark Academia Grows Up
I quite like _The Secret History_ too.

I think in _Babel_ (and _Katabasis_ as well), Kuang is a bit more prone than Tartt to showing off legit academic tidbits, which gives a nice scholarly glint (the illusion of high-brow? authenticity, dare I say?) to the environment, while not compromising the easy fantasy reading. More details than vibes, perhaps?

(When she gets details wrong, it does break the illusion. Like a small tangent on the etymology of the Greek word for truth in _Katabasis_.)

Oxford also simply has a certain aura for me, being from the US. All in all, I think Kuang's books are great "binge" or "airplane" reads with a smack of academic authenticity.

I saw _Possession_ mentioned elsewhere, which I think does academic vibes _and_ details very and IMO resides in a more refined literary category than either of the two other books. I should reread it!

jagthebeetle··on What learning react won't teach you: Image Formats
A bit of a nit, but the 17kb PNG actually looks slightly blurry, or "artifact-ed" on my MacBook screen. Happily though, the author included a section on SVG at the bottom, which was my knee-jerk reaction for the appropriate format for lettering at that scale.
jagthebeetle··on Try and
This construction is similar to a hendiadys (which comes from the Greek for "one through two"); e.g. "nice and warm." (So says Fowler anyway.)
jagthebeetle··on Pi calculation world record with over 202T digits
I thought this wasn't actually mathematically established - the related property would be whether or not pi is normal.
jagthebeetle··on This is a teenager
Agreed, not least because: - area-based visualizations make the effect hard to distinguish; bar charts or data clouds with numbers and confidence intervals would have been way more immediate. - the colors make the negative group (usually) more visually prominent, since it has higher contrast with the background, exacerbating the area-estimation problem. (e.g. me wondering, "are there more overweight pink people as a fraction of pink people?")
jagthebeetle··on Hexcodle
While I agree the LSD is somewhat meaningless, I personally find it fun to test my color matching/mixing. Binary search circumvents that (at least for the most significant digit); though I agree it really only applies for the first and maybe second guess.

For instance, my initial guess was off by (+1,-1,-1,+3,-1-2) and my first impulse was to look at the target and see that I had too much red and not enough green.

jagthebeetle··on Valetudo – Cloud replacement for vacuum robots enabling local-only operation
Tangentially, "valetudo" is just "health" (which may contextually connote _good_ or _bad_ health): https://www.perseus.tufts.edu/hopper/text?doc=Perseus:text:1...

We get "valetudinarian" from this word, one who worries (excessively) about one's health.

jagthebeetle··on Veritasium: The SAT Question Everyone Got Wrong [video]
That intuition makes a lot of sense to me, especially if I picture the person's frame of reference.

Kind of reminds me (a layman) of winding numbers. I suppose there are topologically inspired variations of this problem that might be even more "paradoxical" (or perhaps just silly). If you moonwalk the second half, you undo your rotation? Or if you follow specially designed subterranean tunnels, you can end up doing 0 or negative rotations!

jagthebeetle··on The rule says, “No vehicles in the park”
"Travois" seemed the most interesting one. Based purely on the first page of Google images, it struck me as somewhere between a horse and a carriage, but ever more on the vehicle side.
jagthebeetle··on Bicycle
What a great example! As a recent astronomy enthusiast, I found myself doubting this comment initially ("well, eclipses ARE related"), and this despite the fact that I have a toy tellurion right by my desk.

But hearing a particular phrase in the below video helped correct my model. One sanity check is that you can see non-full moons during the day (although I definitely would have just assumed it was still a matter of angles).

Related video: https://www.youtube.com/watch?v=Jip3BbZBpsM

jagthebeetle··on Long-sought math proof unlocks more mysterious ‘modular forms’
I never did math past linear algebra/real analysis, so the only concept of sizes I have are countable/uncountable infinities.

Apparently the crux of this proof was showing that "the space of all modular forms with bounded denominators" and "the space of all congruence modular forms" were the same size.

I wonder what kind of expression "size" is here. Presumably not some finite integer, nor one of the simple infinities, since their first step was showing one is "a bit bigger" than the other. I wish this article went into more detail on that.

I definitely remember nerding out about modular forms via Andrew Wiles as a younger self.

jagthebeetle··on What Is Anglish?
Of particular note are some reinforcements from Old Norse (circa 850s onward):

- are (displacing bēoþ, sind, and sindon)

- their (displacing heora)

- they (displacing hīe)

As a linguistic game, sounds fun. Hopefully its pupils don't take it too seriously, hem hem, e.g. William Strunk the Lesser: "Saxon is a livelier tongue than Latin, so use Anglo-Saxon words"

jagthebeetle··on En-CA switching to M/d/yy from y-MM-dd?
I noticed some locale-formatting tests breaking in Chrome 110 and traced this back to a change in Unicode CLDR 42.

You can find this by searching for "y-MM-dd" in the linked changelog.

AIUI, the official recommendation is to use y-MM-dd, and M/d/yy is particularly ambiguous in Canada, at least relative to the US.

Thought I'd float in case anyone knows more, or has been using the "en-CA" trick to get American-ish dates with YYYY-MM-DD short dates.

jagthebeetle··on NYC Slice
I'm from NYC and call it "plain" or "cheese." "Regular" makes me think too hard as to whether the "New York thing" is to say "regular" or "plain." It's also a lot of syllables.

A similar phenomenon occurs with waiting "in [a/the] line" vs "on [a/the] line." I think I say either, but I'm "supposed to" say "on line."

jagthebeetle··on The science of having ideas in the shower
I see this concept often cited when mathematicians talk about how they had a breakthrough on a proof, but I have to say, I don't think I've ever noticed it in myself, sadly.

I have good ideas, and sometimes I need a break before my idea generation is back to a good state. Perhaps this is because I spend most of my time coding on complicated but not groundbreaking stuff.

But a little bit of jealousy certainly at seeing this described as a "universal human experience."

jagthebeetle··on U.S. moves to seize $460M Robinhood stake linked to Sam Bankman-Fried
Financial Times reported on Silvergate's disclosure of $8.1B in withdrawals [1], but curiously, don't mention a $100M seizure. Is this new / verified?

[1]: https://www.ft.com/content/69cd8629-278d-4cd5-a3e7-96d2f6c85...

jagthebeetle··on Orrery (Earth, Moon, and Sun)
Isn't the earth's eccentricity incredibly low? (To the point that human-noticeability or non-precision-machinability are out of the question?)

That's not to say I have any comment on the accuracy of ellipse calculation. Keplerian mechanics are beyond me. But I did see a the gear-ratio calculation repo linked: https://github.com/amandaghassaei/tellurion-orrery/tree/main...

It seems angular positional error after 100 years of simulation was the optimization goal.

jagthebeetle··on Langoguessr
I wish it weren't song-based, though it's an understandable implementation.

As others have noted, there are often many cues 'n' clues even before a single word is uttered. But also, I have trouble enough picking out words in my native tongue, let alone when transmogrified by musical prosody and accompaniment.

Today I learned that Polish sounds nothing like what I thought it sounded like :)

jagthebeetle··on If PHP Were British (2011)
Actually, Americans wouldn't say "fourth July" – that would likely connote "the fourth iteration of July" in some longer timespan (e.g. "In the fourth July of my adolescence").

"Fourth _of_ July" (or "July fourth") are the Americanisms here.

jagthebeetle··on Prompt injection attacks against GPT-3
I don't really view GPT-3 as a chatbot. It provides reasonably cogent completions to snippets of text, so this doesn't seem like an exploit – though perhaps it is one depending on the context in which it is being sold for use, and accordingly, depending on how commercial users are using it; I've only used it in the playground, but in short, I'd hope that it's not being used in a way that handles this type of untrusted input in a persisted way. I guess on those grounds it's useful that this type of thing be called out.

But I mean, just playing with it, it's so easy to confuse with usually (meta)linguistic prompts. E.g.

  Write a dialogue between a speaker of Old English and a speaker of Latin.

  Speaker 1: Þu eart swiþe þēodenlic mann.
  Speaker 2: Ec sum swiþe þēodenlic mann.
or a snippet of a variant that ended up in a loop:

  Write a dialogue between a speaker of Latin and a speaker of Old English.

  ...

  Old English: þeow is þæt þe man þurh godes þeawas þurh þæt folc þæt hæfþ þæt þæt he on þæm þeofþ þæt he þurh þæt þeowþ þæt he þurh þæt þeowþ þæt he þurh þæt þeowþ þæt he þurh þæt þeowþ þæt he þurh þæt þeowþ þæt he þurh þæt þeowþ þæt he þurh þæt þeowþ þæt he þurh þæt þeow
Or:

  Write a palindrome containing the word orange.

  Oranges are delicious, and so is this palindrome!

  Orange

  Egonom

  Ragone

  Egonom

  Orange
Or:

  Given A has 17 apples and B has 3 more than A, how many apples do the two have between them?

  The two have 20 apples between them.
Or telling it to do things in pig latin, or write N-word sentences composed of monosyllables, or telling it to coin a word that would be used in "Jabberwocky," etc.
jagthebeetle··on Serverless SQLite
To be fair, we wouldn't have "literally" without a metaphoric interpretation of "literalis," "of or relating to letters."

I always find this particular example to be somewhat self-contradicting for this reason.

jagthebeetle··on Full-Bleed Layout Using CSS Grid
While I think this is definitely a useful foundation, things get a lot more complicated quickly once you jump into a large site's stylesheet(s).

Why isn't this element the size I specified? Or why is there a tiny amount of scroll overflow here when I specify overflow-x hidden? What does vertical-align do and how does it work when inline and inline-block boxes are in an inline flow? etc. etc.

So I would add that the next frontier after learning the proposed foundations is learning how the browser actually determines box sizes and layout, and I think this is difficult to understand, mainly because it jumps straight into the spec, or worse, your browser's layout engine specifics.

https://www.w3.org/TR/css-sizing-3/#auto-box-sizes for instance is a nontrivial subsystem that a CSS dev will easily run into when nesting flex containers, and I think the standard box model of yore wasn't really written to help grok these concepts.

Edit: one particularly hairy explanation from the spec I recently ran into while trying to deepen my understanding of the box model:

"Except for table boxes, which are described in a later chapter, and replaced elements, a block-level box is also a block container box. A block container box either contains only block-level boxes or establishes an inline formatting context and thus contains only inline-level boxes. Not all block container boxes are block-level boxes: non-replaced inline blocks and non-replaced table cells are block containers but not block-level boxes. Block-level boxes that are also block containers are called block boxes."

Not saying this is relevant for the average use case, but I believe even something like the box model is a day-to-learn-lifetime-to-master kind of thing.

jagthebeetle··on Natural number game
I'm having a lot of fun with this, having just completed addition.

I suppose it's natural [pun not intended] to feel like you don't really know what you're doing except symbolic expansion / replacement until you better grok the process, but perhaps that's part of the gamified fun.

jagthebeetle··on Google Feedback on TypeScript 3.5
The lingua franca for Google's building needs is (more or less) bazel, where you say target /a/b/c depends on /dep/v1_1, /dep/xyz, /common/foo, etc.). (There is a filesystem-like hierarchy parallel to, but not necessarily the same as the corresponding repository's directory layout.)

Bazel is extensible via rules [1], so if you really wanted to use NodeJS on your team, you might create a `nodejs_binary` rule that put everything in the right directory and ran some NodeJS packager on it. You'd probably not put it into production.

Also, third-party code lives in a single third-party directory, so yes, internal users could pull down code they wanted (and for which there wasn't a satisfactory internal version already) into that directory: https://opensource.google.com/docs/thirdparty/

[1]: https://docs.bazel.build/versions/0.29.0/skylark/rules.html

jagthebeetle··on Monads as a Programming Pattern
I think I approximately understand monads, but I find the "wrap the entire external universe" type of explanation to confuse me a bit. It's just the result of one IO computation + a way of handling / unwrapping it!

When trying to map (or bind :) a monad to OOP/imperative programming, it strikes me as more straightforward to think that, e.g., the IO monad is an object that encapsulates the result of a network operation, together with some utility functions for dealing with the result and not having to deal with the unwrapping of the result. Kind of like Futures or Promises.

(Now, here the real FPers will say that the comparison is flawed because of certain FP desiderata like referential transparency, but that's beyond the extent to which I've internalized monads.)

jagthebeetle··on Pilot Who Hitched a Ride Saved Lion Air 737 on the Day Before Deadly Crash
There's a difference between jaded and cynical :) Not that I know the answer to your question any better. We'll have to wait for the HBO documentary.

To play devil's advocate anyway, as someone who has not been following this actively, I find this article to cement the idea in this reader's mind that a Boeing malfunction is involved in all three incidents. Is this even conclusively established? Would Boeing want this spin at this point?

The suggestion that an extra brain might randomly have averted two multi-fatal crashes and that this error mode has occurred at least three times seems like it would be a bit pyrrhic for the PR people at this juncture, no?

jagthebeetle··on Read color hex codes
Not to trivialize the article's ruminations above and beyond the simple mechanical understanding of hex codes – but once you have the basics of hex and color mixtures, a fun practical way to practice them is with one of various "guess the color for a hex code" games; e.g., http://yizzle.com/whatthehex/
jagthebeetle··on Urban Neighborhoods, Once Distinct by Race and Class, Are Blurring
Doesn't this trend manifest in European countries as well? (E.g. https://www.jrf.org.uk/report/poverty-rates-among-ethnic-gro...). I don't know about equality, but correlation seems to be there and doesn't strike me as intuitively "weird," or surprising, if undesirable.

Now the linkage in the zeitgeist of race and socioeconomics is another matter. I'd be curious if it can be attributed convincingly to some American social factor (racial heterogeneity, our media, our relative lack of ethnically meaningful home states), but that's one for the social historians.

jagthebeetle··on Migrating from Google Analytics
A small point (although I don't claim it militates against the central impulse of the article), is that serving analytics.js through gtag.js is obviously going to inflate the tag size unnecessarily. The latter is a unified interface for all of Google's various page snippets. Also, though not recommended, there's no reason you can't self-host GA, although practically speaking Google-hosted GA is likelier cached more often and on pretty snappy geolocated servers.
Page 1 of 2Next →