3 ms·
Do you have any documentation? > Dark also doesn't have nulls or exceptions because they're hard to reason about. How do you handle OutOfMemory errors?
by tomp 7y ago
Do you have any documentation?
> Dark also doesn't have nulls or exceptions because they're hard to reason about.
How do you handle OutOfMemory errors?
- pbiggar 7y agoNo documentation just yet, but we do have an introductory design doc: https://medium.com/darklang/the-design-of-dark-59f5d38e52d2 https://medium.com/darklang/the-design-of-dark-59f5d38e52d2. I'm working on an essay about this particular thing (email/twitter me for an early draft). In the longer term, OutOfMemory errors will be handled by automatically rerunning the request with more memory enabled. (Or even longer term, requests will be split and parallelized and checkpointed, etc, automatically). But yeah, if you run out of memory, it will probably simple return a 500.