HNHacker News
TopNewBestAskShowJobs

flqn

123 karma · joined August 14, 2018

submissionscomments
flqn··on C++26: The Oxford Variadic Comma
This is a good change. Potentially ambiguous to read syntax is being made clearer in a way that harms no previous code substantially.

I sometimes wonder if the comments that say nothing more than "C++ is too complicated" are from people who use it regularly, much less people who are even commenting on TFA

flqn··on Don't post generated/AI-edited comments. HN is for conversation between humans
What is a teapot?

I cannot make one of those.

Refrigerator.

flqn··on Parse, Don't Validate (2019)
Can't pass a PhoneNumber to a function expecting an EmailAddress, for one, or mix up the order of arguments in a function that may otherwise just take two or more strings
flqn··on Parse, Don't Validate (2019)
Dates are unfortunate in that you can only really parse them reliably with a TZDB.
flqn··on If you put Apple icons in reverse it looks like someone getting good at design
Nitpick: icons are about signifiers, not affordances. A button affords being pressed, an icon on the button signifies what pressing it will do.
flqn··on Scientists Uncover the Universal Geometry of Geology (2020)
In context, binary breakup and binary fracture apppear to mean a splitting ofa whole into two parts along a given line or plane
flqn··on You can't fool the optimizer
Since the optimiser is allowed to assume you're not invoking UB, and strlen of null is UB, I don't believe that it would consider that case when optimising this function.
flqn··on I write type-safe generic data structures in C
You mean the same problem that the article is trying to solve in C? Generic data structures?
flqn··on Researcher proposes model replacing dark energy/matter to explain universe
"Just FYI I have a PhD in cosmology" is the credentials for the poster being an expert.
flqn··on Just Write a Test for It
That would certainly catch nearly all migration issues, but it doesn't provide a helpful error message like a test for a specific mistake like this does.

Ideally both approaches would be used, with the general case being used to detect and inform more targeted tests.

flqn··on Why Is It Lovely
And the Greek mathematician is pronounced OY-clid ;)
flqn··on C++26: Deprecating or removing library features
I think the author misspoke and meant to say "easy-to-misuse" instead, which it definitely was.
flqn··on The success and failure of Ninja (2020)
The Ninja files being that huge is likely more to do with the Android build environment or the tool that generates them. The main advantages of Ninja as a build executor are that the language is simple and it processes the build graph very quickly.
flqn··on C++ String Conversion: Exploring std:from_chars in C++17 to C++26
They're locale independent, which the C stol, stof, etc functions are not.
flqn··on Earth has caught a 'second moon'
Is the moon not already tidally locked? The same hemisphere of it always faces the earth. Is there a different kind of tidal locking or orbital resonance it will settle into?
flqn··on Ask HN: Should we bring software dev in-house?
Depending on the area of logistics OP is in, it's not unlikely that he'd need on-call engineers for his logistics management system. Blockages in supply chain can be extremely expensive.
flqn··on Ruby's Timeout is dangerous and Thread.raise is terrifying (2015)
C++ also has stop_token, so although they're not natively interruptable a mechanism for implementing it exists in the standard.
flqn··on Is the Sun Conscious? (2021) [pdf]
It still can't communicate information faster than light and the sun god can't know your prayers earlier than 8min after you made them
flqn··on Kalman Filter Explained Simply
Mathematics doesn't usually deal with databases or http requests
flqn··on Some fish live beyond 100 and get healthier as they age
Perhaps the "rising tide" takes longer to reach some than others. I hope for a more equitable, fairer future, but it's likely my outlook is somewhat jaded.
flqn··on Some fish live beyond 100 and get healthier as they age
I disagree, it's more an argument that even though advancement of human capability can bring great gains (defeating the dragon) we need to pursue equitability in these gains or otherwise they are unethically allocated.

The rising tide should raise ALL boats, otherwise inequitability will lead to social instability as seen througout human history so far.

flqn··on Some fish live beyond 100 and get healthier as they age
A well written fable, but its moral would not be equitable in the world of today. It's inevitable that access to "defeating the dragon" would be available to only the most affluent in society, whom have also led the most comfortable lives. There is no fairness in allowing these people to enjoy extended or indefinite lifespans whilst countless others suffer inhumane conditions only to die early.
flqn··on CAP twelve years later: How the "rules" have changed (2012)
In this case you are assuming not to have P. The traditional idea of "pick 2 of 3" with respect to CAP is weirdly formulated because you either have a distributed system, in which case P is a given and you must trade C vs A, or you don't have a distributed system and can therefore have both C and A.
flqn··on TC39: Add Object.groupBy and Map.groupBy
Constructs an object from kv pairs, definitely assoctiated with the "Object" prototype. Groupby is more dubious
flqn··on What is the index of an empty string in an empty string?
Does every set contain the empty set? Arguably yes.

Does every sequence contain the empty sequence? If so, does it not contain the empty sequence at every position in itself? Harder to reason about.

flqn··on What is the index of an empty string in an empty string?
Not so much "error reporting" as "there is no meaningful return value" for a position in a string -- if it wasn't found, it doesn't have a position.

If you use either Optional or Result you don't need to choose a special value like -1 to be your "invalid string position" case which could be used incorrectly.

I'd argue it's largely stylistic for this example, especially so outside of functional programming niches.

flqn··on What is the index of an empty string in an empty string?
Depends on your string representation. It's not unreasonable for an empty string to have no internal buffer allocated meaning it wouldn't even have a NUL terminator!
flqn··on The Meaning of Monad in MonadTrans
Languages that include Option, Promise, and Result other than Haskell beg to differ
flqn··on fe: A tiny, embeddable language implemented in ANSI C
struct node_t* node

node->data

node->next

Zero "WTF"s

flqn··on GirlfriendGPT – OSS AI Companion
Empty sweetness, I'd guess? Tastes nice but it's not real sugar?
Page 1 of 4Next →