simonmar / haxl-icfp14-sample-code

Sample code to accompany the paper "There is no Fork: an Abstraction for Efficient, Concurrent, and Concise Data Access", ICFP'14

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To run the sample code:

$ ghci blog.hs
GHCi, version 7.4.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
[1 of 5] Compiling Types            ( Types.hs, interpreted )
[2 of 5] Compiling MockData         ( MockData.hs, interpreted )
[3 of 5] Compiling DataCache        ( DataCache.hs, interpreted )
[4 of 5] Compiling Fetch            ( Fetch.hs, interpreted )
[5 of 5] Compiling Blog             ( blog.hs, interpreted )
Ok, modules loaded: Blog, Types, Fetch, MockData, DataCache.
*Blog> runFetch blog
Loading package array-0.4.0.0 ... linking ... done.
Loading package deepseq-1.3.0.0 ... linking ... done.
Loading package containers-0.4.2.1 ... linking ... done.
Loading package old-locale-1.0.0.4 ... linking ... done.
Loading package time-1.4 ... linking ... done.
Loading package bytestring-0.10.0.2 ... linking ... done.
Loading package text-0.11.2.3 ... linking ... done.
Loading package hashable-1.2.0.5 ... linking ... done.
Loading package unordered-containers-0.2.3.0 ... linking ... done.
==== fetch ====
FetchPosts
==== fetch ====
FetchPostViews (PostId 0)
FetchPostViews (PostId 1)
FetchPostViews (PostId 2)
FetchPostViews (PostId 3)
FetchPostViews (PostId 4)
FetchPostViews (PostId 5)
FetchPostInfo (PostId 0)
FetchPostInfo (PostId 1)
FetchPostInfo (PostId 2)
FetchPostInfo (PostId 3)
FetchPostInfo (PostId 4)
FetchPostInfo (PostId 5)
==== fetch ====
FetchPostContent (PostId 2)
FetchPostContent (PostId 5)
FetchPostContent (PostId 1)
FetchPostContent (PostId 4)
FetchPostContent (PostId 0)
FetchPostContent (PostId 3)
*Blog> 

About

Sample code to accompany the paper "There is no Fork: an Abstraction for Efficient, Concurrent, and Concise Data Access", ICFP'14


Languages

Language:Haskell 100.0%