HNHacker News
TopNewBestAskShowJobs

talaketu

375 karma · joined May 1, 2011

submissionscomments
talaketu··on Modeling a Wealth Tax
> Second, taxes don't disappear into nothingness - they pay for civilization.

Modern monetary theory disputes this commonly held idea that governments need to collect tax before they can spend it on public works. On the contrary, government creates money to pay for public works, which leads to money in circulation, and in turn allows tax to be paid. The purpose of tax is to redistribute wealth and lead to harmonious society.

talaketu··on Dependency
Would this be prevented if the fiscal flow followed the dependency graph?

On the other hand, in market capitalism, economy of scale is a powerful force for conglomeration that sometimes results in an anti-competitive reduction in consumer choice.

talaketu··on We Can Do Better Than SQL
> In EdgeQL every value is a set

This is trouble for the example for calculating the average number of reviews across movies:

   SELECT math::mean(
       Movie {
          description,
          number_of_reviews := count(.reviews)
      }.number_of_reviews
   );
Never mind, they are not sets:

> Strictly speaking, EdgeQL sets are multisets, as they do not require the elements to be unique.

The relational model is firmly based on the idea of a relation as a "set of tuples", and a major criticism of SQL has been that it views data as an ordered sequence of tuples.

So I'm skeptical of the claim that EdgeQL is really based on the relational model.

(Not clear whether multisets are ordered - wondering about window functions etc...)

talaketu··on One hour of slow breathing changed my life
Maybe there are more reliable ways to achieve the benefit for a greater number of people. Science offers an approach to discovering this, and the "why" - the theory - is what drives science.
talaketu··on One hour of slow breathing changed my life
Reminds me of the President's rhetorical "What do you have to lose?", that he apparently hadn't thought through.
talaketu··on Double Entry Accounting for Developers
more basic:

  Assets = Net Equities 
In other words, "all the assets are claimed". Owners equity is the the balance of the assets once other claims are discharged.
talaketu··on Japan top court tells Twitter to disclose retweeters' info
> So Twitter likely has nothing to hold against the photographer.

Nothing in the article suggests any agreement between the photographer and Twitter.

talaketu··on Systems Design for Advanced Beginners
I'd say the count of believable English tweets would be many orders of magnitude greater the count of 16 byte hashes, so in general we can't just find a believable tweet and declare that we found the plaintext. There would be many possible collision.

The phrase you mentioned is notable (with a slight edit) - so I suppose you mean you could index phrases by notability, then it may be tractable find tweets of notable phrases, since the number of notable phrases is relatively low.

talaketu··on Hackers take over prominent Twitter accounts in simultaneous attack
That's an amazing stack of assertions you have there.
talaketu··on You've only added two lines – why did that take two days?
I know this behavior.
talaketu··on San Francisco apartment rent prices are dropping fast
You would know that landlords often seek to increase rent, without adding value to the home, while the fittings in the home age, as the amenity and wealth of the surrounding community increase.
talaketu··on Old box, dumb code, few thousand connections, no big deal
Well I don't - maybe you do. I think more along the lines of "ingenuity" as described here: https://interestingengineering.com/the-origin-of-the-word-en...
talaketu··on I’ve Consed Every Pair
With apologies to Geoff Mack, here's a performance by Lucky Starr: https://www.youtube.com/watch?v=dpRvAnhHfmc
talaketu··on Recovered virus patients retest positive due to 'dead' virus fragments: experts
Your argument is invalid.
talaketu··on Recovered virus patients retest positive due to 'dead' virus fragments: experts
So? I haven't read any of this studies either, but I'd expect seralogical studies to likewise indicate that positive flu test results are a small fraction of the total number of cases, and likely the most severe subset.
talaketu··on Null Values in SQL Queries
If your SQL query tells you the most popular name is "nmn" or that that a whole lot of people died before they were born (DOD = 1111-11-11) then yes, I think there has been a loss of integrity.
talaketu··on Null Values in SQL Queries
Yes absolutely a data schema question. And yes, you can set whatever arbitrary policy you want. eg "nmn" for no-middle-name. Or require that a horse's birthday is recorded as 1st August.

But SQL and the relational model is meant to be a logical system, and I'm interested in preserving some conceptual integrity in the domain modelling.

talaketu··on Null Values in SQL Queries
Should there be an empty date, as a corollary to empty string, for representing dates that are "collected but empty" eg date of death?
talaketu··on Null Values in SQL Queries
I do recognize (1) there is a logical difference between "missing because absent" and "missing because unknown", (2) empty string is not an element from the domain of personal names.

In a sense, empty string is available as a marker, just as NULL is available as a marker, to satisfy either scenario. I think the possibility of three-valued logic applies in either scenario.

I'm not at all convinced empty (non-null) string is appropriate for many real world applications, just as empty (non-null) date is appropriate for similar scenarios.

Eg. Date of death: unknown - NULL; not dead yet - NULL

talaketu··on Null Values in SQL Queries
I'm sceptical. Do you have examples?

Take the middle name example: "What was U.S President Theodore Roosevelt’s middle name?" when you know he didn't have a middle name.

Are you suggesting that a blank is the correct choice here?

I don't think it's accurate to say they have a blank middle name. I think it's better to say they don't have a middle name.

talaketu··on The Linux codebase has over 3k TODO comments, many from over a decade ago
> something you want to do in the future.. don't put it as a code comment. File it in a bugtracker...

Comment in situ has advantages:

- preserves context without duplicating it into an external system - promotes awareness of the issue when the surrounding code is changed in future, which can lead to serendipitous resolution. - particularly useful when the issue is one of internal quality (eg coupling, duplication, missing test case) that wouldn't ordinarily qualify as a bug or proposed functional enhancement.

In contrast, the bug tracker is a graveyard where such ideas go to die.

talaketu··on The Linux codebase has over 3k TODO comments, many from over a decade ago
I have completely the opposite opinion! Any bug in the bug tracker hanging around "in a few years" should* be closed. Comments should* persist while the source code issue to which they refer remains remarkable.

*it's fun issuing such rulings.

talaketu··on What happens when you add a new teller? (2008)
Community consultation is the right thing to do! I wonder if modelling might have predicted better service times for the majority gender with non-gendered bathrooms, and that might have swung the survey result.
talaketu··on Lines of code that changed everything
> The flaw isn't the null termination but the lack of encapsulation.

> Null-terminated strings are actually a very good choice of string representation that is to be directly manipulated by programs, instead of just through opaque handles via library functions.

You seem to be having it both ways.

As I see it, "NULL" is a valid ascii character, but not a valid element of a C string - except as a terminator external to the string of characters being represented. It's fundamentally broken as an abstraction for managing variable length strings of ASCII. It is incapable of representing all strings of ASCII characters.

talaketu··on My Favorite Programming Problem to Teach: Digit Length
No support for that in Sloane's. https://oeis.org/A000027
talaketu··on Algebraic Structures: Things I wish someone had explained about FP
Heck, even a turing machine could solve most of these problems.
talaketu··on Personal information and ads on Twitter
Twitter has put some effort into the "customer service" use case. https://www.forbes.com/sites/shephyken/2016/04/30/how-to-use...

At a basic level, you could think of it as providing the content for the audience - the inventory that is sold to advertisers. Twitter as we know it would not exist if all the users were tweet consumers, and none were tweet producers.

T-Mobile is great example of a business providing customer service over Twitter.

talaketu··on SQL queries don't start with SELECT
Oh yeah I agree - the forward reference to attributes before the source is stated does feel backwards when writing the expression.

Compare scala's for-comprehension that feels more natural: `for (x <- xs) yield x + 1;`

Perhaps there's an argument that the shape of the result is defined up front, so it might be easier to comprehend the result if not the implementation.

talaketu··on SQL queries don't start with SELECT
The foundation theory is the relational model of data, and the use of operators from relational algebra. So, we use relations to represent the data in the application domain, and use the operators of relational algebra to take relational inputs and produce relational outputs. It's an extensible and composable model.

When we solve problems using relations, we benefit by thinking in terms of relations.

We can ask: How well does SQL allow us to express an algorithm in relational terms? (Let's ignore that that SQL introduces some non-relational impurities that may have practical value - eg column order, row order, duplicate rows.)

When I examine an SQL expression, and then visualize the relational operators involved, I find a very poor correspondence between the SQL expression and the relational algebra. I need to basically read the entire statement to understand the parts. (Contast to the LINQ examples, or perhaps a shell pipline.) In a way, this is the substance of the original article.

This is one way in which I mean SQL is bad.

talaketu··on Proof emerges that a quantum computer can outperform a classical one
I love the teleological formulation "Proof emerges".
← PreviousPage 3 of 8Next →