HNHacker News
TopNewBestAskShowJobs

jasonhansel

9,140 karma · joined February 2, 2015

Website: https://jasonhansel.com
submissionscomments
jasonhansel··on What was wrong with SML?
IMHO Haskell's lazy evaluation has some significant disadvantages compared to SML's strict evaluation. In particular, lazy evaluation makes it difficult to find the performance bottlenecks in a particular piece of code or to determine the time complexity of an algorithm just by reading it.

Furthermore, subtle changes in how a function is written (for instance, making a multiplication function not evaluate the right operand if the left operand is zero) can cause wildly unexpected performance changes in that function's callers. In effect, the performance of a function is no longer just determined by that function's structure and by the function calls it contains; performance of one function now depends heavily on the implementation details of others and the context in which that function is used.

Granted, any optimizing compiler can have this effect, but it's rarely noticeable in strictly-evaluated languages, where at least to some extent the order of evaluation must correspond to the structure of the code.

jasonhansel··on I can't let go of “The Dunning-Kruger Effect is Autocorrelation”
> it functions as a highbrow and socially acceptable way of calling someone else stupid

I think it's even worse that that: it's also a socially acceptable way of enforcing credentialism and looking down on others for not having a sufficiently elite education.

jasonhansel··on I can't let go of “The Dunning-Kruger Effect is Autocorrelation”
> Is there an answer to that humility gained by being an expert in one field being translated to better self-assessment in other fields?

I think that often the opposite is true: people who become experts in one domain often assume that they are automatically experts in completely unrelated fields. I suspect that this is the cause of "Nobel disease": https://en.wikipedia.org/wiki/Nobel_disease

jasonhansel··on I can't let go of “The Dunning-Kruger Effect is Autocorrelation”
I think that most people who talk a lot about DK believe that they are the experts in one field or another.

It serves mostly as a way of reassuring themselves of their own superiority. The message (for them) basically amounts to "other people's claim to knowledge is just further proof that they don't know anything."

jasonhansel··on The money I saved as a child would buy one picogram of gold today
IMHO the saving you do as an adult is a very different kind of activity from the saving you learn to do as a child. Saving as a child is more about delaying gratification by not acting on one's desires; saving well as an adult is more about taking action by making prudent financial decisions. I'm not sure if learning the former really helps you much with learning the latter, though it is a useful lesson in its own right.
jasonhansel··on List Of Adhesive Tapes
To clarify: I'm not claiming that the phrase "duck tape" in its original sense was derived from the branded product "Duck Tape"; as you point out, the phrase "duck tape" came first, and was derived from cotton duck.

However, if you use the phrase "duck tape" not in its original sense, but as (effectively) a new word--as a genericization of "Duck Tape"--then you would (IMHO) be quite correct to call duct tape "duck tape."

I guess this depends on whether you think that this use of "duck tape" is actually a new sense of the phrase, or just a continued misusage of the preexisting sense.

I would argue for the former, since IIRC the phrase "duck tape" actually fell out of popular usage for a while before the time when the Duck brand emerged.

This suggests that the phrase "duck tape" was effectively resurrected with a new meaning--that of a genericized trademark derived from the "Duck Tape" brand.

Google Ngram Viewer seems to partially back this up--note that "duck tape" declined in popularity from 1943 to 1963, slightly reemerged around when the Duck Tape brand got its name in 1975, but only really took off between 1987 and 2007: https://books.google.com/ngrams/graph?content=duck+tape&year...

I can't explain why usage increased slightly between 1963 and 1975, though. Hmm...

jasonhansel··on List Of Adhesive Tapes
To be really technical about it: there's a reasonably popular brand of tape called "Duck" (https://www.duckbrand.com/). They refer to their main product, which is a kind of duct tape, as "Duck Tape." To clarify that the term "Duck Tape" refers only to their company's product, they refer to it as "Duck Tape® Brand Duct Tape."

So the phrase "Duck tape" is fine, if you capitalize the first word and use it to refer to tape made by the Duck brand. Likewise, "Duck Tape" is fine, if you capitalize both words, since it is the name of the specific product line made by Duck.

In fact, if you call store-brand adhesive bandages "Band-Aids," and you call store-brand acetaminophen "Tylenol," you could argue that it makes sense to call store-brand duct tape "Duck Tape." And if you don't always capitalize "Band-Aids," you could argue that it makes sense not to capitalize "Duck Tape" either.

So I would argue that using the phrase "duck tape" to refer to duct tape is fine, provided you accept that it is effectively a genericized trademark.

jasonhansel··on List Of Adhesive Tapes
I recommend checking out 3M VHB tape. It's essentially an extremely strong, pressure-sensitive double-sided tape.

You can use it to affix (pretty much) anything to anything, without the mess and general annoyance associated with superglue--just put the VHB tape between two surfaces and squeeze them together until they stick.

jasonhansel··on Elon Musk makes $43B unsolicited bid to take Twitter private
> There's no reason to assume Twitter shares can't reach the same levels ever again

If there was a strong reason to think that Twitter shares would soon be worth $70 again, wouldn't they already be trading at that price?

jasonhansel··on Elon Musk makes $43B unsolicited bid to take Twitter private
And if there's anything Elon Musk is known for, it's being completely transparent and unbiased! /s
jasonhansel··on New Covid nasal spray outperforms current antibody treatments in mice
Giving a mouse a nasal spray must require an incredibly steady hand (unless there's some nonobvious trick to it).
jasonhansel··on Xor swap trick and add/sub swap trick (2010)
It's a bit more common in C when swapping pointers, since it can help you ensure that there's only one pointer to a given structure at any time, and it can simplify memory management in certain cases by letting you repurpose an existing allocation.
jasonhansel··on Newly Measured Particle Seems Heavy Enough to Break Known Physics
The only way to settle this question is to build the next particle accelerator on the US-Canada border.
jasonhansel··on We don’t use a staging environment
Agreed. And stay away from proprietary cloud services that lock you into a specific cloud provider. Otherwise, you'll end up like one of those companies that still does everything on MS SQL Server and various Oracle byproducts despite rising costs because of decisions made many years ago.
jasonhansel··on We don’t use a staging environment
The answer (IMHO) is to not use services that make it impossible to develop locally, unless you can trivially mock them; the benefits of such services aren't worth it if they result in a system that is inherently untestable with an environment that's inherently unreproducible.

(I can go on a rant about AWS Lambda, and how if they'd used a standardized interface like FastCGI it would make local testing trivial, but they won't do that because they need vendor lock-in...)

jasonhansel··on We don’t use a staging environment
But you don't need to have a single staging env shared by all QA testers. Why not create individual QA environments on an as-needed basis for testing specific features? Of course this requires you to invest in making it easy to create new environments, but it allows QA teams to test different things without interfering with each other.
jasonhansel··on We don’t use a staging environment
This is good insofar as it forces you to make local development possible. In my experience: it's a big red flag if your systems are so complex or interdependent that it's impossible to run or test any of them locally.

That leads to people only testing in staging envs, causing staging to constantly break and discouraging automated tests that prevent regression bugs. It also leads to increasing complexity and interconnectedness over time, since people are never encouraged to get code running in isolation.

jasonhansel··on The Uselessness of Phenylephrine
> This post could have easily been written about alcohol in the prohibition era. We've since learned that criminalizing alcohol makes its impact on society worse rather than better.

It's worth remembering that Prohibition was, in fact, quite successful: https://www.vox.com/the-highlight/2019/6/5/18518005/prohibit...

To quote that article:

> Across the Hudson River, in Manhattan, the number of patients treated in Bellevue Hospital’s alcohol wards dropped from fifteen thousand a year before Prohibition to under six thousand in 1924. Nationally, cirrhosis deaths fell by more than a third between 1916 and 1929. In Detroit, arrests for drunkenness declined 90 percent during Prohibition’s first year. Domestic violence complaints fell by half.

Of course, one can still find Prohibition objectionable, or think that the costs outweighed the benefits. But there is strong evidence that Prohibition succeeded in reducing some of the negative impacts of alcohol use.

jasonhansel··on Applebee’s exec urges using high gas prices to push lower wages, sparks walkout
At least he was being honest.

I think that many corporate executives have thoughts along these lines: they want employees to be so desperate that they'll accept low wages and bad working conditions. That is, of course, why they tend to campaign against e.g. minimum wages, food stamps, and reforms that would make it easier to unionize.

The only difference is that other execs have the good sense not to put such thoughts in writing.

jasonhansel··on Applebee’s exec urges using high gas prices to push lower wages, sparks walkout
It will also force employees to look for higher-paying jobs, potentially causing them to leave if Applebees doesn't raise its pay. Normally inflation is associated with higher wages, not lower ones.
jasonhansel··on An update on recent service disruptions
My guess is that part of the issue could be lock contention creating unexpected interactions between multiple simultaneous transactions. Issues like that can be really hard to pin down since there isn't a single transaction causing the problem; instead the load is the result of idiosyncratic interactions between multiple different transactions.
jasonhansel··on Mine USDT for Ukraine
Finally, a good use for botnets!
jasonhansel··on Ask HN: Any weird tips for weight loss?
Methamphetamine is FDA-approved "as a short-term (i.e., a few weeks) adjunct in a regimen of weight reduction based on caloric restriction, for patients in whom obesity is refractory to alternative therapy, e.g., repeated diets, group programs, and other drugs."

Source: https://www.accessdata.fda.gov/drugsatfda_docs/label/2007/00...

(Sarcasm, obviously. Do not do this.)

jasonhansel··on Ask HN: Any weird tips for weight loss?
> our environment is much more conducive to obesity than it was in the past.

What specific aspects of our environment are you considering? To some extent one can change one's environment.

jasonhansel··on Ask HN: Any weird tips for weight loss?
Remember that calorie counts on nutrition labels are often inaccurate (by as much as 20-30%). In particular, they are systematically biased against unprocessed food, meaning that highly processed foods look better by comparison.

Some sources for this:

- https://www.bbc.com/future/article/20160201-why-the-calorie-...

- https://www.scientificamerican.com/article/science-reveals-w...

- https://www.washingtonpost.com/posteverything/wp/2015/01/06/...

- https://www.nationalgeographic.com/culture/article/140307-ca...

- https://www.businessinsider.com/calorie-counts-arent-accurat...

- https://www.health.harvard.edu/staying-healthy/stop-counting...

jasonhansel··on Japan’s ‘killing stone’ splits in two
https://news.usni.org/2022/02/16/japanese-mod-voices-concern...
jasonhansel··on Yandex Provides Update on Impact of Current Developments
"current geopolitical developments"
jasonhansel··on Moral injury can occur in many contexts and populations, including the workplace
This applies to ordinary employees, but not to the executives that the article describes; those executives can, without much risk of harm to themselves, choose to resign and change jobs rather than agree to do something wrong.

When executives agree to do immoral things, they aren't suffering a "moral injury," they're complicit in inflicting one.

jasonhansel··on Data races in Python, despite the Global Interpreter Lock
In general, "+=" probably needs to be non-atomic to support "__add__" overloading; Python wouldn't be able to call arbitrary "__add__" methods in a way that could guarantee atomicity.
jasonhansel··on Data races in Python, despite the Global Interpreter Lock
That's a logical race, not a data race, right? Technically, "counter = counter + 1" accesses counter twice (once to read and once to write).

The fact that "counter" gets modified between the read and the write doesn't imply that multiple accesses were happening simultaneously; it just means that accesses from different threads were getting interleaved. The GIL would only prevent the former but not the latter, since a thread can give up the GIL at any point between operations.

← PreviousPage 15 of 34Next →