Hacker Newsnew | past | comments | ask | show | jobs | submit | zerocool2750's commentslogin

Went spelunking through the source. I think you absolutely could!

There's actually not a whole lot I found that's really http-library specific. It uses the traceback module in a decorator that ends up being manually wrapped around all of the functions of the specific libraries the author cared about.

https://github.com/cle-b/httpdbg/blob/main/httpdbg/hooks

Should be easy enough to extend this to other libraries.

Super cool tool thanks for sharing @dmurray!


I think you might have a typo in your FAQ.

"Does the server have to specify the client host? No!..... The server does need to have any unique prior knowledge about the client. "

Should that read, "The server does NOT need to have any unique...." ?


TIL chrome has a task manager. Thanks for posting the shortcut! +1


In the knapsack example they say...

> "No global variables should be modifed in the function"

Am I wrong or does the author immediately go on to modify the global variable 'dp'

p.s. @author typo in that sentence 'modifed'


Thanks for pointing out the typo! I'll fix that right away.

And in regards to the "global variable", my variable 'dp' is my cache array. It's where I'm storing my precomputed results.

If I don't modify it, it's not DP anymore, it's plain recursion. :)

I guess I should've mentioned that the actual memoization table is an exception.

Anyway, thanks for reading my article! :)


Totally makes sense I just think it's slightly confusing in that context. Anyway, awesome article I enjoyed the read!


Thank you! I'll make sure to go over some non-classical problems in my next article on DP to add more value :)


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: