Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Everything I Was Lied to About Node.js Came True with Elixir (d-gate.io)
33 points by mike1o1 5 months ago | hide | past | favorite | 6 comments


Wonder what the author thinks about https://effect.website/


Thanks for this! I didn’t know this library existed. I’ve used a couple of other small libraries to get rust-like error handling and patterns into my Typescript projects. But this is way more comprehensive.

I’m going to give it a try.


I like ideas from effect, I use my custom result type all over my application as well as my custom tryCatch & promise.allSettled wrappers.

Issue comes down to you need to wrap all of your code in effect/results. Something like rust has that built in so you're not really 'jamming' it in there.

It adds a bunch of boilerplate. Still better than the mess that is exception throwing.


Does Effect prevent workers that have uncaught exceptions from crashing the main thread in Node? Does it reduce the amount of memory workers use?


I’d assume effect would increase how much memory JS uses, you’re creating a bunch of memory junk.

In theory it should make you able to contain errors with exception handing.





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

Search: