HNHacker News
TopNewBestAskShowJobs

tntn

1,101 karma · joined January 24, 2018

submissionscomments
tntn··on U.S. Life Expectancy Drops for Third Year in a Row (2018)
"Urban–Rural Differences in Suicide in the State of Maryland: The Role of Firearms"

https://ajph.aphapublications.org/doi/pdf/10.2105/AJPH.2017....

> Conclusions. Male firearm use drives the increased rate of suicide in rural areas

tntn··on U.S. Life Expectancy Drops for Third Year in a Row (2018)
Next you're probably going to tell me about French fries, right?
tntn··on U.S. Life Expectancy Drops for Third Year in a Row (2018)
But it doesn't reflect the factual subtitle. The title here says 1918, but the true trend is 1915-1918, which had a bit of a war as well.

> There is no requirement to post the article headline as-is on HN.

There is. From the guidelines:

> Otherwise [i.e. not excessive clickbait] please use the original title, unless it is misleading or linkbait; don't editorialize.

tntn··on U.S. Life Expectancy Drops for Third Year in a Row (2018)
HN title is not good. Original title is "U.S. Life Expectancy Drops for Third Year in a Row, Reflecting Rising Drug Overdoses, Suicides."

The comparison is between the last three years and 1915-1918, but the Spanish flu was just getting going in 1918.

EDIT: folks just arriving, the HN title has changed since I commented. It previously said "worst trend since Spanish flu," or something.

tntn··on Writing a small ray tracer in Rust and Zig
> I wrapped my objects in atomic reference counters, and wrapped my pixel buffer in a mutex

Rust people, is there a way to tell the compiler that each thread gets its own elements? Do you really have to either (unnecessarily) add a lock or reach for unsafe?

tntn··on How and why CPUs do “branch prediction” (2017)
AMD switched to TAGE for Zen 2, so I don't know if neural networks are "the future of branch prediction" or just a neat diversion.
tntn··on Senate passes bill to decrease grid digitization, move toward manual control
https://www.gao.gov/assets/680/677454.pdf

Page 15.

tntn··on Reset C by GE Light Bulbs [video]
what is the point of linking to submissions with no discussion.
tntn··on Red Hat Expecting X.org to “Go into Hard Maintenance Mode Fairly Quickly”
EDIT: I'm too old for this. Think what you want about mmap and ioctl.
tntn··on Apple buys autonomous driving company Drive.ai
The copy on https://comma.ai/ has certainly changed tone from what it once was.

Now it is clearing pushing a driver-assist angle ("improves your stock ACC and LKAS," "copilot," "augment"). No mention of "self-driving," "autonomous," or the like.

Previously, it was clearly marketing a full-self-driving, no human involved system: "ghostriding for the masses," "software to make your car self driving."

tntn··on Google CTF 2019
https://pastebin.com/eEuJcy18
tntn··on Google CTF 2019
It produces the full domain name (up to .com) in ~ 1 minute. If there is more to the url (a path, ?= parameters, etc) after the domain name, then no.
tntn··on Google CTF 2019
Yeah, I put labels corresponding to the original IP throughout and used a jump table.
tntn··on Google CTF 2019
> My other option was to translate it into real assembly

I wrote a compiler from emoji-code to amd64 (mostly because I'm more interested in compilers than reversing). It runs quite fast - prints the whole domain in ~1 min. I'd highly recommend it to people who are into assembly, it was a fun exercise.

tntn··on Differentiation for Hackers
Huh, interesting. First time I read this comment, it said something like "why should I care what you think?" I guess the edit indicates that you do care?
tntn··on Differentiation for Hackers

    >>> import autograd.numpy as np
    >>> from autograd import grad
    >>> def fn(x):
    ...   return np.power(np.power(x, 3), 1/3)
    ...
    >>> gradfn = grad(fn)
    >>> gradfn(0.0)
    /usr/local/lib/python3.6/dist-packages/autograd/numpy/numpy_vjps.py:59:RuntimeWarning: divide by zero encountered in double_scalars
    lambda ans, x, y : unbroadcast_f(x, lambda g: g * y * x ** anp.where(y, y - 1, 1.)),
    /usr/local/lib/python3.6/dist-packages/autograd/numpy/numpy_vjps.py:59: RuntimeWarning: invalid value encountered in double_scalars
     lambda ans, x, y : unbroadcast_f(x, lambda g: g * y * x ** anp.where(y, y - 1, 1.)),
    nan
… Damn.

    >>> import torch
    >>> x = torch.tensor(0.0, requires_grad=True)
    >>> y = ((x**3) ** (1/3))
    >>> y.backward()
    >>> x.grad
    tensor(nan)
… Damn.
tntn··on Differentiation for Hackers
> I don't see a problem with simplifying the exponents first.

Sure, we call that computer algebra. As soon as you start doing that, you aren't doing automatic differentiation, you are doing (at least in part) symbolic differentiation.

tntn··on Differentiation for Hackers
Just because automatic differentiation is a different technique than numerical differentiation doesn't mean it isn't a numerical method.

(I probably should not say this, but I will anyway: your comments regarding math and science always give me the distinct impression that you know the name of a lot of things without knowing much about the thing. You are frequently breathless about analog quantum computing, Lie algebras, Chu spaces, some universal concept of duality, but then you fail to respond with substantial arguments to people that try to temper the breathlessness. If you want to convince people of things, you should work on this.)

tntn··on Intel to Slash Desktop Processor Pricing Up to 15 Percent as Ryzen 3000 Nears
I don't think anyone at Intel has been patting themselves on the back for their 10nm failure. This wasn't their plan - cannon lake was supposed to be released in 2016, but now they'll maybe have volume production by the end of this year.
tntn··on Why ['1', '7', '11'].map(parseInt) returns [1, NaN, 3] in JavaScript
a lot of people are using JavaScript without understanding the method signatures of commonly using methods because JavaScript is such a weird and confusing language that has nonstandard method signatures for standard functions.
tntn··on Why ['1', '7', '11'].map(parseInt) returns [1, NaN, 3] in JavaScript
It is extremely awesome that JavaScript has conditioned a ton of the world's programmers to think that needing to compose your function with the identity function to achieve the desired result is not surprising or bad.

I will not be convinced that an implementation of map that gives different results when there are identity functions in the middle is doing the right thing.

tntn··on Why ['1', '7', '11'].map(parseInt) returns [1, NaN, 3] in JavaScript
> not even knowing how JavaScript implements map in a nonstandard way that breaks simple examples

FTFY.

I know exactly how map works: https://en.m.wikipedia.org/wiki/Map_(higher-order_function)

This is map:

> a higher-order function that applies a given function to each element of a functor, e.g. a list, returning a list of results in the same order.

Since that is not what Array.prototype.map does, it is not map, it is some similar thing that is misnamed as map. If I wanted the index and the array as arguments, I would ask for them.

tntn··on Why ['1', '7', '11'].map(parseInt) returns [1, NaN, 3] in JavaScript
What is the syntactic sugar here? I mostly see a map that doesn't behave how anyone would expect.
tntn··on Linode GPU Instances
> This is the first time (TMK) that a cloud provider is bringing RT cores into the market.

Your knowledge is incomplete. T4 has been available in google cloud for many months.

tntn··on The C standard library function atexit is broken
How would i.e. OpenGL IHV drivers work as static libraries? No driver updates without a recompile? No driver switches (between vendors) without a recompile?
tntn··on One liner NPM package “is-windows” has 2.5M dependants, why on earth?
1. The code you pull in will not get updated unless you do it explicitly.

2. The code you pull in will not get exploited when someone masquerades as the package owner. (How many widely publicized cases of this have there been by now, 5? 10?)

3. Presumably you read the code enough while copy-pasting to be sure it isn't mining Bitcoin or something.

tntn··on One liner NPM package “is-windows” has 2.5M dependants, why on earth?
Why are you comparing the size of application dependencies to the size of an IDE that includes several compiler toolchains and tons of other build-only stuff?
tntn··on He Says He Invented Bitcoin and Is Suing Those Who Doubt Him
I'm somewhat surprised that story wasn't investigated as securities fraud. I'm sure a lot of people stood to make a lot of money shorting supermicro. Anyone who knows more about this than me know why it is ok for Bloomberg to do that?

See https://en.m.wikipedia.org/wiki/Emulex_hoax for an example of fabricated news causing massive changes to stock price.

tntn··on Two potentially life-friendly planets found orbiting a nearby star
I think it more just ended than failed.
tntn··on Two centuries of rapid global population growth will come to an end
I think that 'IAmEveryone likely means that people aren't lifetime-limited. Most people aren't reproducing after 40, but expected lifespan is much more than that so even if it doubled there wouldn't be more children.
Page 1 of 10Next →