vdijkbas
Joined 12 years ago
Joined 12 years ago
{
services.postage = {
enable = true;
connections = {
"local" = "hostaddr=127.0.0.1 port=5432 dbname=postgres";
};
};
}
BTW the postage devs were very helpful in fixing packaging issues.However for our use case at LumiGuide (reading and writing registers of modbus devices) it wasn't simple enough. We just needed an abstraction for batching and did not need caching and the other features Haxl provides.
So I wrote monad-batcher which as the name implies only provides a batching abstraction (which can also be used to execute commands concurrently). All the other features can be build on top of monad-batcher as separate layers (separation of concerns).
The library is available on Hackage but needs a bit more documentation (a tutorial would be nice):
See the following for a story about a system we just deployed which uses NixOS:
As I mentioned in the reddit comments we're using Haskell for most parts of the system (frontend via GHCJS, web application servers, protocol implementations). For dev-ops we use the Nix ecosystem: NixOS & nixops.
We're currently not using the system for video surveillance. Images from the cameras are only stored in memory for a short period of time while being processed by our CV algorithm.
However, since bicycle theft is a common theme in the Netherlands, there's strong interest from municipalities for using our system for video surveillance. So we're now researching how to extend our system for doing that.
http://www.haskell.org/haskellwiki/ZuriHac2014#Talk_by_Simon...
Nix is Turing-complete. This was even sometimes considered a problem because it makes the language too powerful:
https://nixos.org/~eelco/talks/guix-feb-2018.pdf