seanparsons / glue Goto Github PK
View Code? Open in Web Editor NEWBuilding Better Services And Clients
License: BSD 3-Clause "New" or "Revised" License
Building Better Services And Clients
License: BSD 3-Clause "New" or "Revised" License
It should probably take a function (MultiService m a b -> IO MultiGetResponse a b) or some such to trigger the actual running of the preloading.
Cool project, do you know of Netflix's Hystrix and Facebook's Haxl?
Some patterns that are useful (some that I've used before):
Also I'm thinking about how this would integrate with RPC frameworks like Cap'n Proto and promise pipelining feature.
Citing from http://hydra.cryp.to/build/945325/log/raw:
example/Glue/Example/BatcherExample.hs:33:7:
Non type-variable argument
in the constraint: Control.Monad.Base.MonadBase IO m
(Use FlexibleContexts to permit this)
When checking that ‘service’ has the inferred type
service :: forall (m :: * -> *) v.
(Eq v, Num v, hashable-1.2.3.2:Data.Hashable.Class.Hashable v,
Control.Monad.Base.MonadBase IO m) =>
S.HashSet v -> m (M.HashMap v v)
In the expression:
do { counter <- newIORef 0;
let listOfNums = ...;
let requests = ...;
let service request = ...;
.... }
In an equation for ‘runTest’:
runTest store name shouldBatch
= do { counter <- newIORef 0;
let listOfNums = ...;
let requests = ...;
.... }
Citing from http://hydra.cryp.to/build/947718/log/raw:
Preprocessing test suite 'tests' for glue-0.1.1.0...
test/Main.hs:4:18:
Could not find module ‘Spec’
Use -v to see a list of the files searched for.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.