The laborantin-hs package
Laborantin is a framework and DSL to run and manage results from scientific experiments. Good targets for Laborantin are experiments that you can run offline such as benchmark and batch analytics.
Writing experiments with Laborantin has at least two advantages over rolling your own scripts. First, Laborantin standardizes the workflow of your experimentations. There is one way to describe what a project can do, what experiments were already run, how to delete files corresponding to a specific experiment, etc. Second, Laborantin builds on years of experience running experiments. Using Laborantin should alleviate common pain points such as querying for experiments, managing dependencies between results, etc.
Laborantin's DSL lets you express experiment parameters, setup, teardown, and recovery hooks in a systematic way. In addition, the DSL lets you express dependencies on your experiments so that you can run prior experiments or data analyses.
Laborantin comes with a default backend that stores experiment results in a filesystem-hierarchy. Laborantin also comes with a default command-line that let you specify which experiments to run, analyze, or delete.
ping :: ScenarioDescription EnvIO ping = scenario "ping" $ do describe "ping to a remote server" parameter "destination" $ do describe "a destination server (host or ip)" values [str "example.com", str "probecraft.net"] parameter "packet-size" $ do describe "packet size in bytes" values [num 50, num 1500] run $ do (StringParam srv) <- param "destination" (StringParam ps) <- param "packet-size" liftIO (executePingCommand srv ps) >>= writeResult "raw-result" where executePingCommand :: Text -> Rational -> IO (Text) executePingCommand host packetSize = ... main :: IO () main = defaultMain [ping]
[Skip to ReadMe]
|Versions||0.1.0.0, 0.1.1.0, 0.1.1.1, 0.1.1.2, 0.1.1.3, 0.1.2.0, 0.1.3.0, 0.1.4.0, 0.1.5.0, 0.1.5.2|
|Change log||None available|
|Dependencies||aeson (>=0.6 && <0.8), async (>=18.104.22.168), base (>=4.6 && <4.8), bytestring (==0.10.*), cmdlib (>=0.3.5), containers (==0.5.*), directory (==1.2.*), hslogger (==1.2.*), laborantin-hs (>=0.1.5.1), mtl (==2.1.*), old-locale (>=22.214.171.124), parsec (>=3.1.0), random (==1.0.*), split (>=0.2.2), text (>=0.11 && <1.2), time (>=126.96.36.199), transformers (==0.3.*), uuid (==1.2.*) [details]|
|Uploaded||Fri Apr 18 21:12:45 UTC 2014 by LucasDiCioccio|
|Downloads||1532 total (76 in last 30 days)|
|Status||Docs available [build log]|
Successful builds reported [all 1 reports]
- laborantin-hs-0.1.5.2.tar.gz [browse] (Cabal source package)
- Package description (included in the package)
For package maintainers and hackage trustees