logoalt Hacker News

01HNNWZ0MV43FFyesterday at 8:16 PM1 replyview on HN

Oof lol.

Sometimes I yearn for the Haskell or Idris style of programming where a dependency can do nothing harmful or stupid without me passing in permission.

Then I think about having to pass in thread handles and file handles to logging libraries. I don't know. It would be a cool option. There is probably a hack for `tracing` that would let me manage the logging thread myself.

Software is so complex these days. The funny solution of doing static-allocated C with no threads and no logging isn't gonna work for me. You aren't going to have WebRTC in from-scratch C.


Replies

tazjinyesterday at 10:30 PM

Haskell has exceptions, so dependencies can still do plenty of harmful stuff ;)