Recent submissions

Comment · 3 months ago
Agreed, it is a flaw of the article, but I think their point is still correct (that we should all stand for something beyond what is easiest for us and not use incentives as a free pass for everything).
Comment · 3 months ago
It is true that privileged people can sacrifice more to do the right thing simply because they have much more than they need to survive. But most people of all levels of privilege can do better, and it's not a competition where you are only a success if you do the most good. Good is good even in small quantities regardless of if you ever have a statue made after you.
Comment · 1 year ago
unhook chrome/brave plugin, you can disable youtube from showing you everything expect specific video you searched for
Comment · 2 years ago
Comment · 2 years ago
One thing I hate about Musk saying things like "They have fewer accidents than people" is that it is only able to be engaged in the easiest of scenarios. So per mile, self driving on the easiest roads barely has less accidents than a human in adverse conditions?

That doesn't seem to actually be better than people yet.

Comment · 4 years ago
Cool, I had heard of defunctionalizing CPS before but never dared to try it.

I tried to follow along defunctionalizing map, but it is a bit different since it has a return value, whereas in the video it is a void. What I ended up with was equivalent to building a list and then reversing it. So it did infact work (all functions were tail callable). This was mentioned in the article as inferior to the author's final product though. So I think it is a bit different to a special case of CPS defunctionalization optimization.

Although there may have been other ways to deal with the return value in continuations...

Comment · 4 years ago
This kind of feels like using continuations, here is a Haskell demo of the concept:

    myMap = myMapHelper id
    
    myMapHelper cont f [] = cont []
    myMapHelper cont f (x:xs) = myMapHelper (cont . (f x :)) f xs
Of course this actually makes things slower in Haskell, either due to the growing continuation or existing optimizations in Haskell
Comment · 4 years ago
According to the article, PHP can handle other encodings by just treating sequences of strings as byte sequences and not caring what the encoding is. There example:

$string = "漢字";

But if you are using say UTF-8 and one of those Chinese characters has one of its bytes have a value of 34 (the ascii value of "), then wouldn't the string terminate prematurely?

Edit: to answer my own question, quote from wikipedia: ASCII bytes do not occur when encoding non-ASCII code points into UTF-8

Comment · 6 years ago
I couldn't find any reference to the lawsuit last year, could you provide some more information / link about it?
Comment · 6 years ago
Meat industry cruelty does no make this cruelty ok, nor does this cruelty make the meat industry cruelty ok.

Does anyone know the name for this type of fallacy? Not False Dichotomy but similar?

Comment · 6 years ago
I was under the impression it was already being flagged and ignored. Could you explain how that would help?

BTW I cannot view that link... "This site can’t be reached" :)

Comment · 6 years ago
These channels are immoral and against YT's TOS. YT should take them down, but they haven't (yet).

Something I could do about it is personally is stop using YT until they do. I've seen other instances of the negatives of YT that are making me think this is what it must come to (i.e. https://news.ycombinator.com/item?id=24571038).

The ironic thing is that I'm tempted not to ban YT because there's so much content that I like (pbs spacetime, veritasium, etc). However this type of reasoning is how atrocities in the past have been allowed to happen. Essentially youtube is Google's real monopoly and this is just another example of the problem of monopolies.

So I'm going to block myself from youtube (since habit is too hard to break, I'll do it by adding these lines to /etc/hosts)

127.0.0.1 youtube.com

127.0.0.1 www.youtube.com

Could someone please post here when these channels are deleted?

Comment · 6 years ago
There's an equally annoying problem in software engineering at large corporations (aka Google), where hundreds of services you need to know about are named with some cute name that gives you no idea what the thing actually is.
Comment · 6 years ago
Link to source? Current data on cdc is 1,920,904 cases and 109,901 deaths which is 5.7% (and it doesn't appear to be changing much). That's about 20 times higher than your figure of 0.3%.
Comment · 6 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton