HNHacker News
TopNewBestAskShowJobs

tczMUFlmoNk

715 karma · joined March 5, 2022

submissionscomments
tczMUFlmoNk··on Idiomatic Go (2016)
That makes sense. I just about figured it would. :-)
tczMUFlmoNk··on Idiomatic Go (2016)
> > Avoid unused method receiver names

> That's just "don't create a non-static method if you don't use 'this'" in other languages with classes.

I don't think that's what's meant. It means to write `func (Receiver) Method()` rather than `func (r Receiver) Method()` when you don't use `r`. Sometimes you need this to implement an interface like `error` or `Stringer` and you just don't need instance data.

(I'm no Go apologist but I think "receiver" is a great term. It's clear, it's applies to other languages and paradigms, and it doesn't really have an alternative that I'm aware of.)

tczMUFlmoNk··on There Was a Texas Lottery Arbitrage
MEV still applies with proof-of-stake. Whoever proposes the blocks can make those arbs. It used to be the miners; now it's the block proposers as selected by the beacon chain.

(Some people call it "maximal extractable value" now, to keep the initialism and help it make more sense.)

tczMUFlmoNk··on I Went to SQL Injection Court
You can always `SELECT table_name, column_name, data_type FROM information_schema.columns`, which is part of the SQL standard. https://www.postgresql.org/docs/current/infoschema-columns.h...

Plus, generally if you have SQL injection, you have multiple tries. You're not going to be locked out after one shot. And there's only so many combinations of `SELECT {id,userid,user_id,uid} FROM {user,users,login,logins,customer,customer}` before you find something useful.

tczMUFlmoNk··on YouTube asks channel owner to verify phone, permanently overwrites personal info
Even old.reddit.com blocks all logged-out users over my VPN (Mullvad), and I'm not going to disable that, so I just can't view Reddit anymore.
tczMUFlmoNk··on Why Does Integer Addition Approximate Float Multiplication?
But sqrt · square = 1, where "sqrt: R⁺ → R⁺" is the square root operation, "square: R⁺ → R⁺" is the squaring operation, "1: R⁺ → R⁺" is the identity operation, and (·) is function composition: i.e., working in the monoid of functions R⁺ → R⁺. So x² and sqrt(x), as elements of R, are not inverses, but sqrt and square, as elements of R⁺ → R⁺, are.

It depends on how you parse the phrase "fast inverse square root".

tczMUFlmoNk··on Don't make fun of renowned author Dan Brown (2013)
> "Thanks, John," he thanked

will always be my favorite part of this. It makes me laugh like a babbling brook.

tczMUFlmoNk··on Over 90% of U.S. airport towers are understaffed, data shows
The set of active controllers isn't static: people come and people go. If you raise pay right now, current, skilled controllers will be more inclined to stay, while new controllers who've been training for the last 2.9 years join. Raising pay helps combat attrition, which increases the population.
tczMUFlmoNk··on Show HN: An innovative flag-guessing game that identify regions by fragments
I got a flag that was identical to France's flag but was 6k km west of France and 4k km east of Mexico. Judging from the filename of the final image (MF.png), I guess it was the "Collectivity of Saint Martin"? but the game never told me what it is, which feels particularly bad given that my first guess was "France" and no amount of revealing more tiles could give me a hint based on the flag.
tczMUFlmoNk··on I deleted all of my email filters
I don't think that these reports are false in any sense. The emails being flagged are unsolicited messages sent in bulk. That's spam.
tczMUFlmoNk··on How Unix spell ran in 64kb RAM
I may be wrong, but from "external memory" in the description I think the idea is that each of those steps can be done on disk, not RAM. An external merge sort is a pretty standard database primitive, and the other two only require purely sequential access, so are friendly to spinning disks and the like.
tczMUFlmoNk··on I deleted all of my email filters
I do something similar, but: if I buy something and get a "why not buy something else?" email, I don't just unsubscribe; I mark it as spam. I am careful to never opt in to messages like that, so if I am receiving them then they are my address beyond the consent that I provided, so I want Gmail to downrank their trust.

I agree that either of these approaches pays dividends. I feel great about it.

tczMUFlmoNk··on Obvious things C should do
The article is literally talking about `_Static_assert`, yes. It's used in the code examples and described in the text.
tczMUFlmoNk··on You need 4 colors
Your comma is spliced.
tczMUFlmoNk··on Title drops in movies
I think it's quite interesting to include. Apparently Barbie says "Barbie" more than It says "it", which is fascinating!
tczMUFlmoNk··on Sorry, Gas Companies – Parody Isn't Infringement (Even If It Creeps You Out)
> —even though this was never a DMCA claim. (The DMCA is copyright law, not trademark, and TotalEnergies didn’t even meet the notice requirements that Netlify claims to follow.)
tczMUFlmoNk··on Calculating the norm of a complex number
For a real number `x`, does computing `-x` require "taking apart the real number and fiddling with the sign bit"? I think of negation as a real operation in R, namely a reflection about the origin, and conjugation a a real operation in C, namely a reflection about the real axis.
tczMUFlmoNk··on Creating a Git Commit: The Hard Way
Alternately:

    git add file
    git reset -p file
tczMUFlmoNk··on Greppability is an underrated code metric
A search term here is "Uniform Function Call Syntax", as present in (e.g.) D:

https://en.wikipedia.org/wiki/Uniform_Function_Call_Syntax

tczMUFlmoNk··on Crows are even smarter than we thought
"If you see a corvid and think, 'ooh, is that a raven?', then it's a crow. If you instead think, 'dear lord that's the biggest bird I've ever seen', then it's a raven."
tczMUFlmoNk··on A dishwasher can make or break a restaurant (2017)
Searching for "rinse aid epithelial lining" tends to turn up a bunch of relevant results and research.
tczMUFlmoNk··on Australia starts peanut allergy treatment for babies
A wheat allergy, though, is fairly common: order of 1% per [1], similar to celiac. And if you're allergic to wheat, then it's suffices to avoid gluten, since wheat contains gluten.

(Also, there are forms of gluten intolerance that are neither a wheat allergy nor celiac.)

[1]: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10097276/

tczMUFlmoNk··on How did Facebook intercept their competitor's encrypted mobile app traffic?
> But some things will never change

> Try to show another way, but you stayin' in the dope game

> Now tell me, what's a mother to do?

> Bein' real don't appeal to the brother in you

> You gotta operate the easy way

> "I made a G today" But you made it in a sleazy way

> Sellin' crack to the kids.

> "I gotta get paid," well hey—

> but that's the way it is.

(Tupac - Changes)

tczMUFlmoNk··on The Linux Kernel Module Programming Guide
AI-generated text doesn't just make my eyes bleed; it makes my blood boil. I haven't read much of your English specifically, so I can't say for sure, but generally non-native speakers get a ton of leeway in my book. I do not speak your language anywhere near as well as you speak mine, and your words will not make me feel frustrated even if I occasionally have to pause to figure out the intended meaning.

(Also, IMHO, your comment history is perfectly readable without being distracting.)

tczMUFlmoNk··on Stop Microsoft users sending 'reactions' to email by adding a postfix header
I use this, though I find that many folks, including many technical folks, interpret it as an exclamation of distaste (as in, "agh! ach! ack!"), so it may pay to be judicious.
tczMUFlmoNk··on Xkcd 2957: A Crossword Puzzle
Fantastic puzzle! I've got them all except "string whose SHA-256 hash ends in '…689510285e212385'". How am I ever supposed to guess that? What does Randall think I am, a supercomputer?
tczMUFlmoNk··on YouTube embeds are heavy and it’s fixable
GP says "proxied thumbnails", so it sounds like yes.
tczMUFlmoNk··on Reformatting 100k Files at Google in 2011
Black supports ignoring sections with a `# fmt: off` directive, and a hand-formatted constant table is a common use for that:

https://black.readthedocs.io/en/stable/usage_and_configurati...

Other formatters have similar functionality; e.g.:

- /* prettier-ignore */: https://prettier.io/docs/en/ignore.html#javascript

- #[rustfmt::skip]: https://github.com/rust-lang/rustfmt?tab=readme-ov-file#tips

tczMUFlmoNk··on Grokked Transformers Are Implicit Reasoners
> Since Mary is older than someone who is younger than Donya, we can conclude that Mary is older than Donya.

Unfortunately, though, this reasoning is just wrong. If Mary is 30, Kristin is 20, and Donya is 40, then Mary is older than Kristin and Kristin is younger than Donya, but Mary is not older than Donya.

tczMUFlmoNk··on Linus Torvalds adds arbitrary tabs to kernel code
A special case of (2) that is easy to do is to use tabs* for indentation and not do column alignment at all. To be clear, by "column alignment" I think we are both referring to patterns like this:

    myVars = {
        first:     123,
        second:    234,
        afterward: 345,
        also:      456,
    }   //~~~~~~~~ <- alignment

    // or:
    def my_long_function(arg1, arg2,
                         more_args,
                         and_some_more)
    //~~~~~~~~~~~~~~~~~~ <- alignment
This is, e.g., what Go uses for struct fields, and what some Python style guides use for hanging function definitions. Regardless of tabs/spaces preference, both of these are independently bad because they churn diffs unnecessarily: if you change `afterward` to `afterward2` then you need to change all the nearby lines, and likewise if you change `my_long_function` to `my_longer_function`. Some formatters, like Black, Prettier, and (mostly) Rustfmt, avoid this pattern entirely, and they are better for it.

* You can do this and still use spaces if you prefer, too.

← PreviousPage 3 of 5Next →