Live data from Hacker News

Ask HN: What's the hardest problem you've ever solved?

news.ycombinator.com

331–340 of 441 posts

Re: Ask HN: What's the hardest problem you've ever solved?

#331

Getting well with a genetic disorder while the world harangues me and accuses me of making that up. Next up: Figuring out how to talk to the world about it effectively. I'm not sure that's solvable. "Curing CF" seems easier.

I don't understand. People try to tell you that cystic fibrosis isn't real?

They tell me I am making up the story about getting healthier. Or they say I don't really have it. Or both.

Re: Ask HN: What's the hardest problem you've ever solved?

#332

Earlier quoted context omitted.

I have to steal that idea next time someone talks about time delays and says "it's not a big deal!" Awesome!

This is 50ms. This is 200ms. doesn't quite work as well. Depending on the situation there has to be some theshhold of diminishing returns.

If the request you are talking about actually gets executed once (maybe it gets cached or something), then you shouldn't be pitching the time difference anyway.

If it gets executed 100s of times in a day per person, you can say this is 50 ms * 100 = 5s, 200 ms * 100 = 20s. And that's just per user.

Re: Ask HN: What's the hardest problem you've ever solved?

#333
post #319

When I was a CS prof, many, many years ago, our undergraduate lab had Macs with floppy disks. I asked the University to pay for installing 10MB Hard Drives in the Macs. I was asked to present my case to the deans council. At the meeting, I said that the students used the floppy to load their development environment. I said that, with a hard drive, it took 10 secs to load and be ready. With the floppy, I said it took…

I guess that trick would be harder to reproduce for my problem - bringing down compile times from 4 hours to 1 :)

[deleted]

Re: Ask HN: What's the hardest problem you've ever solved?

#334

Probably not hardest, but one that sticks in my mind was that I downloaded an old copy of Jedi Knight II onto my computer and was excited to play it again... but it crashed on launch. Or rather it would throw a modal dialog (complaining about graphics something-or-other) and go into a loop of system beeps. So I attached to it with gdb... and started going down a rabbit hole of stack traces and assembly code. I don't…

You reminded me of this: "How I Fixed a 10 Year Old Guitar Hero Bug Without the Source Code"

https://youtu.be/A9U5wK_boYM

Re: Ask HN: What's the hardest problem you've ever solved?

#335

A simplified universal parsing format (AST) that equally describes all languages. It needs to allow seamless switching between different languages in the same file and also allow recursively nesting of different languages within each other without resulting in a deviating from the simplified parse format. The solution is written and it appears correct and viable. As in all things related to parsers the devil's in the…

How do the switching happen? You just allow a node in one language to be some root of another, or is it more complicated?

The structure is defined using the begin and stack data fields of a given token. The begin points to the index of the current token's parent and the stack describes the structure contained by that parent. Items in the global space have no parent, so I assign a begin value of -1 and stack value of global. I use -1 because there is no such index in an array.

Re: Ask HN: What's the hardest problem you've ever solved?

#337
post #246

When I was 14 or so, my mom installed one of those "telephone locks" that blocked outgoing calls and only allowed incoming calls, she did this to limit my dial-up internet. I wanted to see if I could bypass it without my mom noticing. I noticed that the case for the lock could be pried open easily because it was just a plastic cover with 2 tabs. I examined the circuit and saw that if I could bridge the cables around…

That's pretty good. With the device is there some sort of emergency way to split the lock in case of emergency? It would be unfortunate to be unable to make outgoing calls if you needed to call 911.

Re: Ask HN: What's the hardest problem you've ever solved?

#338

Convincing a department to graduate me with an ABET accredited degree without finishing all coursework. It was significantly easier than deriving the time-dependent wave equation for hydrogen, writing a Java-to-MIPS compiler with two implementations, one in C++ and one in Java, and making an UNIX FORTRAN reactor simulator compile on Windows 95 (lol!)... all with crushingly, untreated depression. Also, survived the Lo…

what is an ASW account?

Re: Ask HN: What's the hardest problem you've ever solved?

#339

Dont know if this is the hardest, but it is one of the most impactful. During the 2010 recession I had a client that had about 700K in receivables past due and we were doing about 120K/month in additional work. I started reading their 10Q and 10K and decided that they were at risk for bankruptcy as their cash position was not great. I told my sales guy that we had to collect our money somehow. He was like they are a…

> To this day I try to get my finance team to send gifts to the AP team of our clients.

1. Many, many big companies require vendors to agree to codes of conduct that explicitly prohibit such gifts.

2. If the customer were to file for bankruptcy protection, the trustee (or debtor-in-possession) likely would characterize recent payments as "avoidable preference" payments and seek to claw them back — with claw-back being the presumption and the vendors having the burden of proving that they're entitled to keep the payments (which is somewhat of a PITA). [0]

3. If the recipient of such a gift happens to be a foreign "official," then the criminal penalties of the (U.S.) Foreign Corrupt Practices Act might become salient. [1]

[0] https://www.nolo.com/legal-encyclopedia/pre-bankruptcy-payme...

[1] https://en.wikipedia.org/wiki/Foreign_Corrupt_Practices_Act

Re: Ask HN: What's the hardest problem you've ever solved?

#340

Earlier quoted context omitted.

I have to steal that idea next time someone talks about time delays and says "it's not a big deal!" Awesome!

This is 50ms. This is 200ms. doesn't quite work as well. Depending on the situation there has to be some theshhold of diminishing returns.

Seinfeld describes the difference between first place and second place: https://youtu.be/xK9rbwM3omA?t=65
Post reply on HN