HNHacker News
TopNewBestAskShowJobs

charleslmunger

1,327 karma · joined March 3, 2013

submissionscomments
charleslmunger··on Comcast to impose home internet data cap of 1.2TB in more than a dozen US states
You might find this comment thread, which discusses that same analogy, interesting:

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

charleslmunger··on Tell HN: FB tracked my sensitive buy outside FB, cant delete a suggestion in app
You can see it using Netguard or other vpn based monitoring apps. com.hmdglobal.camera2 contacts graph.facebook.com
charleslmunger··on Why Aren’t More Users More Happy With Our VMs? Part 1 (2018)
You can get a bunch of the benefit by applying FDO:

https://llvm.org/devmtg/2013-04/novillo-slides.pdf

charleslmunger··on Newly unemployed New Yorkers are being frustrated by 1970s-era technology
Http POST isn't interoperable and open?
charleslmunger··on Turns out claims Airbnb was taking houses out of the rental market were right
In many places it is literally illegal to build anything but the most expensive type of housing, due to single family zoning.
charleslmunger··on UC Santa Cruz fires 54 grad students who were striking for higher pay
That's a truism. It depends on the administrator, and in general executives and administrators aren't paid on the value they bring, but based on a sort of signalling game with the oversight board that determines their compensation. If pay was really based on value to the system, Chancellors that are fired or denoted under scandal wouldn't keep their pay.

https://www.sacbee.com/news/investigations/the-public-eye/ar...

charleslmunger··on Intel Refreshes 2nd Gen Xeon Scalable, Slashes Prices
https://en.wikipedia.org/wiki/Advanced_Micro_Devices,_Inc._v....
charleslmunger··on The Myth of the Myth of the 10x Programmer
If you want an answer to that question: https://news.ycombinator.com/item?id=3033446
charleslmunger··on Too Much Crypto [pdf]
Des is both an example and a counterexample - the same changes that shortened its key to 56 bits also changed its S-boxes to be resistant to differential cryptanalysis. That was a previously unknown (although later separately discovered) attack vector to the public community. It's important to always think of the attacks you're describing as the best publicly known attacks.
charleslmunger··on Why are my Go executable files so large?
UPXed binaries have their code pages mapped as dirty - this means the OS can't page them back to disk if needs or wants to. In some cases, that's an acceptable cost to pay - for low-latency servers you might want to mlock all your executable pages so there's no risk of a page fault and disk read killing your tail latency. Of course if you're doing that then you have to either pay the full cost of your binary size in memory, or you have to have some warm up phase and then hope that everything you need is loaded then. In the first case you suddenly care a lot about binary size, because memory is quite a bit more expensive than disk.

But one valuable reason to use something like UPX is that you can attach a crappy and thus inexpensive disk to servers that you're not using for actual storage. Compression on disk lets you load from a slow disk faster, and of you weren't paging to disk anyway then UPX doesn't have much of a cost.

But if you're on a traditional desktop operating system, UPX will increase your effective memory footprint, and force writing to swap instead of merely dropping pages. On Android, which doesn't swap, you'll significantly increase your memory footprint.

charleslmunger··on A Twitter app bug was used to match 17M phone numbers to user accounts
There are a lot of unethical and illegal things that will earn more money than bug bounties. Some, like posting fake "elon musk giving away ETH" tweets, don't even require finding a security vulnerability. Twitter should increase their bounties to incentivize reporting and auditing, but they're never going to win a bidding war with state-sponsored vulnerability markets.
charleslmunger··on Generating a Java program with 90% less code
Lots of the boilerplate they create is totally unnecessary; other boilerplate can be avoided through use of common open source libraries, like AutoValue [1] for equals/hashcode/toString. No need for custom compilers, new ASTs, or a whole new language. Don't create interfaces for classes that only have one implementation, and don't create gratuitous indirection.

[1] https://github.com/google/auto/tree/master/value

charleslmunger··on Bitcoin’s race to outrun the quantum computer
Yeah, so far as I know the only algorithm that provides an asymptomatic speedup (for AES or similar symmetric key crypto) over a classical computer is Grover's algorithm. That would reduce a 256 bit key to 128, which is hardly disastrous.
charleslmunger··on Lock-free multithreading with atomic operations
Depends on the mutex implementation. Many mutexes will do their own spinning internally - for short critical sections, you can avoid sleeping and waking your thread, a (relatively) expensive operation. Obviously spinning for an unlimited amount of time is less efficient - in the case of a priority inversion, you'll effectively deadlock. [1]

There's also tools like [2], where you can tell a mutex to spin if the current lock holder is actively running (as opposed to blocked or preempted), to get the best of both worlds.

[1] https://blog.postmates.com/why-spinlocks-are-bad-on-ios-b69f... [2] https://lwn.net/Articles/724384/

charleslmunger··on Cargo ships are emitting boatloads of carbon, and nobody wants to take the blame
Well except that it's probably more carbon-expensive to move a container of widgets by truck from the East coast to California than it is to truck them from Mexico or by container ship from Asia.

A carbon tax designed to fairly internalize externalities will not really please protectionists.

charleslmunger··on Guidelines for low-level cryptography software
I think the point of the OP is that you shouldn't think about the optimizations a compiler might do, but what the language spec guarantees. If the language spec guarantees that your code behaves the way you want, no correct compiler will break it.
charleslmunger··on Amazon to Uber: From the lens of a software engineer
Splitting a 750 line file is not a readability improvement, if all the logic is related to and part of a single task.

Splitting code across multiple files when there's no actual reusability or abstraction driving the split makes it harder to follow the flow of logic. In particular, 750 lines is not so much that there's obviously a missing abstraction lurking there.

charleslmunger··on A way to do atomic writes
The behavior of fsync is a battle of OS developers and OEMs versus application and database developers. Gaming the implementation of fsync to do less than fully fsync makes benchmarks look amazing, improves user perceived latency, and reduces flash wear. On the other hand, it corrupts data - but that's rare, "the hardware is failing anyway", etc.

That's how you end up with stuff like OS X's "no really, fsync" param [1], or Motorola shipping nobarrier on their phones. [2]

[1] https://github.com/google/leveldb/issues/203#issuecomment-55...

[2] http://taras.glek.net/post/Followup-on-Pixel-vs-Moto:fsync/

charleslmunger··on Robinhood Is Set to Raise at Least $200 Million in New Funding
Beat, net of fees. The goal of almost any managed fund is to extract the maximum amount of depositor money via fees. If you beat the market, raise your fees. If you don't, say it's because your investments are counter cyclical and lower risk, and keep charging your fees.
charleslmunger··on Much of the “science” used in design is bullshit (2014)
I disagree - the ribbon was a massive improvement for feature discoverability and usability.

1. Lots of options visible up front. Instead of reading tons of text, or guessing at hieroglyphics, you could find the tool to accomplish your desired task visually - if you want to change text color, look for the color picker.

1. Big improvement to mouse navigation. Navigating nested menus is a bit like playing Operation - you position your cursor on the item you want, then slide it horizontally to the next menu that expanded. But if you drift too far vertically, which was easy to do of you had a disability or a crappy trackpad, you have to start again. With the ribbon, there was no destructive effect to moving the mouse around without clicking. You could always take the shortest path to whatever you wanted to click on.

1. Big improvement to keyboard navigation. Tap the alt key, and every affordance in the ribbon displays its keyboard shortcut. This allowed the same exploratory navigation as the mouse, but in a way that built muscle memory and avoided RSI.

Of course it was a large change, but the ribbon was an amazing improvement.

charleslmunger··on O(N^2) in CreateProcess
It's very easy to accidentally create O(n^2) code. For example, take a look at the test case added here:

https://github.com/google/guava/commit/4e41d621c3f413eb31da2...

charleslmunger··on Why We Love QUIC and HTTP/3
https://developer.android.com/guide/topics/connectivity/cron...
charleslmunger··on Amazon makes 14 cents from every Lyft ride
It's not that simple - if Lyft won't connect and everything else works, riders and drivers will turn to competitors. Once they've installed the app and signed up for an account with Uber, they're a lot less likely to stick exclusively or primarily with Lyft.
charleslmunger··on Auditing Rust Crypto: The First Hours
The notes section of the page I linked addresses this - it'll only be paged in a hibernate state where memory is powered down. It won't be paged without that.
charleslmunger··on Auditing Rust Crypto: The First Hours
http://man7.org/linux/man-pages/man2/mlock.2.html at least for linux.
charleslmunger··on Seattle Surveillance Technologies Up for Public Review
https://source.android.com/devices/tech/connect/wifi-mac-ran...
charleslmunger··on Oracle's Newest Audit Tactic: Focusing on Java
Patent extortion works by threatening the most applicable patents you have, then licensing your whole portfolio. If they didn't have fat32, do you really think they wouldn't have just used another patent to try and extract rents?
charleslmunger··on Game Loop
In DS2 they released the PC version at 60fps, and consoles at 30. The equipment degradation was based on the number of frames a weapon's hitbox spent overlapping another model (walls, enemies, etc). They patched this pretty quick.
charleslmunger··on Confessions of an Abstraction Hater
Yes. For many codebases, the primary purpose of the source code is being read by humans with the goal of understanding its actual behavior. When I'm reading through a codebase obfuscated by single-use helper functions, the first thing I do is inline them all. Bugs often result from the software doing something different from what its author intended, so the human-authored function name is not a substitute for reading its implementation.
charleslmunger··on When hiring senior engineers, you’re not buying, you’re selling
I think it may depend on how much your day-to-day work involves data structures and algorithms.

Almost any work on compilers will involve good working familiarity with graphs

Work with concurrency will tend to involve linked data structures, like treiber stacks, or modeling computations as directed acyclic graphs of data dependencies

Working in a memory constrained environment tends to involve data structures and algorithms tailored to that domain, etc.

Now it's totally true that many algorithms questions just reduce to brain teasers, or are so esoteric and interview-specialized (Find out if this linked list has a cycle in O(1) space!) that they only serve to stoke the egos of the interviewer. But I wouldn't say that using algorithms or implementing a data structure is a skill that only exists to facilitate interviewing - and being able to explain your thought process as you work is really important when making contributions to other teams' code. I try to focus my interview questions on miniature versions of problems I've actually had to solve in the course of my job. For example, the futex state machine I wrote here:

https://android-review.googlesource.com/c/platform/art/+/810...

If you subtract the interrupt and timeout handling, you have a real problem with a simple, approachable (for someone with some concurrency knowledge) solution, and you only need to know about two futex calls which have simple behavior and are easy to explain in limited time. I wouldn't ask this question of someone looking for a web development position; but then again, I don't interview those candidates because I know nothing about web development. But it's a nice question for someone who listed concurrency on their resume.

← PreviousPage 8 of 16Next →