Giter VIP home page Giter VIP logo

bazqux-urweb's Introduction

bazqux-urweb

Ur/Web part of BazQux Reader sources.

This is NOT the complete sources.

BazQux Reader is written in Ur/Web (client side and a part of web server) and Haskell (major part of web server and feeds fetcher). Only Ur/Web part, Ur/Web<=>Haskell interface and Riak utility functions are presented here. You can even compile Ur/Web sources but it will fail trying to compile missing Haskell sources.

Code is ugly (quick and dirty hacks, experiments, legacy, Russian comments or no comments at all). But it's a working code used everyday by thousands of people.

If you like to make mixed Ur/Web+Haskell app look into lib, gcc and crawler/Gen.hs.

lib contains Ur/Web implementation of Haskell Binary package (Haskell function arguments and results are serialized using Binary). gcc is a substitute for the real GNU gcc which is called from urweb compiler and calls GHC internally. crawler/Gen.hs contains description of data types from which both Ur/Web and Haskell data types and serialization functions are generated. It also generates helper Riak funtions for data types stored in Riak and FFI bindings for Haskell functions called from Ur/Web part. It's not a ready to use library but rather the script you must edit.

crawler/Riak.hs is a library used for interfacing with Riak. It has caches, utility functions and few optimizations (like decoding Binary values right while reading many keys to minimize latency). crawler/Lib/riak-0.7.0.1 is a slightly modified riak package. It works with latest riak and adds small random delays while resolving conflicting values (to fight race conditions when two threads modify same value simultaneously).

bazqux-urweb's People

Contributors

vshabanov avatar

Watchers

James Cloos avatar Arthur avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.