HNHacker News
TopNewBestAskShowJobs

DerekL

1,049 karma · joined January 19, 2010

submissionscomments
DerekL··on Indie Game Removed from Switch After Dev Reveals It Has a Hidden Code Editor
> You can run Linux and play GTA and Mortal Kombat on other consoles.

I don't know what you mean here. You can play the latest Mortal Kombat on the Switch, too.

DerekL··on Don’t Touch My Code Examining the Effects of Ownership on Software Quality
The actual title has an exclamation point. By automatically removing it, Hacker News has turned the title into nonsense.
DerekL··on Indie Game Removed from Switch After Dev Reveals It Has a Hidden Code Editor
The Switch eShop also has the programming game Human Resource Machine.

http://www.nintendolife.com/reviews/switch-eshop/human_resou...

DerekL··on DRM Helmets: An Idea Whose Time Has Come (2002)
Link is broken.
DerekL··on Apple owes everyone an apology and it should start with me, specifically
Dupe: https://news.ycombinator.com/item?id=19697122
DerekL··on CA housing bill targeting wealthy cities could rezone nearly all of Palo Alto
> Greg Schmid, a 78-year-old retired economist, said the region should slow the expansion of large companies.

Slowing the expansion isn't good enough. Your city should have never allowed all of those offices if it wasn't going to allow a proportionate amount of housing.

DerekL··on Modern C++ Won't Save Us
> Dereferencing a nullptr gives a segfault (which is not a security issue, except in older kernels).

It’s a segfault on many C++ implementations, but it has undefined behavior, so there’s no guarantee.

DerekL··on Source code for classic Infocom games now on GitHub
Resubmitted later, with more votes and comments:

https://news.ycombinator.com/item?id=19672436

DerekL··on Scientists have put human brain genes in monkeys
“Planet of the Apes” is not part of the title.
DerekL··on Integer multiplication in time O(n log n)
Dupe: https://news.ycombinator.com/item?id=19474280
DerekL··on Hipsters mostly look alike. There’s math to prove it
Dupe: https://news.ycombinator.com/item?id=19368040
DerekL··on Cisco blacklists curl instead of fixing vulnerable code
> But even if device owners applied the January patch, all an attacker has to do now is to switch to a non-curl scanner/exploit tool.

Or the attacker can just keep using curl and use the option to change the User-Agent string.

DerekL··on Volcanoes Lightning and Radioactive Gas, Too
Actual title is “Volcanoes! Lightning! And Radioactive Gas, Too”. It becomes ungrammatical if you remove the exclamation points. If you feel you have to change it, I'd recommend “Volcanoes, Lightning, And Radioactive Gas, Too”.
DerekL··on  Apple TV+ | Apple's Netflix Competitor
Actual title is “Apple unveils its subscription streaming service, Apple TV+”. Also, you shouldn't use the Apple logo character (U+F8FF) in the title, because it's in a Unicode private use area, and it won't appear correctly unless it's displayed on an Apple device, or by use of a special fallback font.
DerekL··on You’ll access Google’s Stadia cloud gaming service
Actual title is “Here’s how you’ll access Google’s Stadia cloud gaming service”. Why was it changed?
DerekL··on Let’s Ban Car Alarms
(2002)
DerekL··on The Surprising Truth About Raising Your Seed Round from VCS
Title is misspelled: it should say “VCs”, not “VCS”. If you capitalize the s, it looks like part of the abbreviation. (Version control system? Video Computer System?)
DerekL··on The Great Tree-List Recursion Problem
Let me explain to everyone else how your function works. It's turning a tree into a list. The tree is rooted at “rest”, and the list starts at “pseudoRoot” and ends at “tail”.

If the root of the tree has no child on the left, it pops that node and adds it to the end of the list. If it does have a left child, then it does a right rotation on the tree, which makes the left side smaller. (See https://en.wikipedia.org/wiki/Tree_rotation .)

I was wondering if this really runs in linear time. Call a node in the tree good if it lies on the right-most part of the tree. In other words, a node is good if the path from the root to that node only goes right at each step. The root is always good. A node is bad if it is not good. Each right rotation turns a bad node into a good one, and the pruning removes one good node. So it is really O(n) time.

DerekL··on NSA has Open Sourced it's reverse engineering tool Ghidra
The title is misspelled. It should be “its”, not “it's”.
DerekL··on VFX, Amiga and Babylon 5
Dupe: https://news.ycombinator.com/item?id=19285052
DerekL··on Celebrating War Criminals at MITs Ethical College of Computing
Title is misspelled.
DerekL··on Linus Torvalds on Why ARM Won't Win the Server Space
Yes, cross-platform development is more work, but that example you gave is the wrong way to do it. It's better to abstract the differences using typedefs, functions, macros, etc., and keep the platform switches in a few isolated places in the code.
DerekL··on What's New in Java 12?
Yeah, they finally fixed the switch statement after more than twenty years!

One sad thing about Java is that they followed the syntax of C (and C++) even when it is obviously terrible. Falling through to the next case is occasionally useful, but it's so rare that it should never have been the default. Either there should have been a “fallthrough;” statement, or better yet, a “goto case 5;” syntax.

DerekL··on String Formatting with Python
d for decimal, o for octal, X and x for hexadecimal.
DerekL··on Elon Musk: Bitcoin Has ‘Quite Brilliant’ Structure, Paper Money Is Going Away
> “[...] paper money is going away, and crypto is a far better way to transfer value than pieces of paper, that's for sure."

I don't know why he's comparing cryptocurrencies to paper money. Government-issued money is mostly transferred and stored electronically, not with banknotes and coins, and I'm sure he knows this. Is he also including checks?

DerekL··on SIMD Instructions Considered Harmful (2017)
In your opinion, how does SIMD compare with “vector architectures” described in the article?
DerekL··on Apple's Planning a 16
Actual title is “Apple's Planning a 16" MacBook Pro, 31" Display”. I guess the double quotes in the HTML title element need to be encoded.
DerekL··on NYTimes and others cite a gender-blind hiring study that doesnt exist
*doesn't
DerekL··on Left to Their Own Devices, Pricing Algorithms Resort to Collusion
But if the sellers don't communicate about prices, then it's not illegal collusion, right?
DerekL··on Apple's March 25 keynote will be 'services focused'
The headline uses the term “keynote” incorrectly. A keynote is the most important speech or presentation during a longer event. A stand-alone presentation can’t be a keynote.
← PreviousPage 18 of 31Next →