Code Monkey home page Code Monkey logo

ocaml-fsq's Introduction

Build Status

FSQ: Functional Fixed-size Search Queues

FSQ is an OCaml implementation of functional fixed-size search queues, where old elements get popped from the queue when pushing to a queue that reached its maximum size.

This implementation is based on Priority Search Queues.

FSQ is distributed under the MPL-2.0 license.

Installation

fsq can be installed via opam:

opam install fsq

Building

To build from source, generate documentation, and run tests, use dune:

dune build
dune build @doc
dune runtest -f

In addition, the following Makefile targets are available as a shorthand for the above:

make all
make build
make doc
make test

Documentation

The documentation and API reference is generated from the source interfaces. It can be consulted online or via odig:

odig doc fsq

ocaml-fsq's People

Contributors

tg-x avatar

Stargazers

José A. Ramos avatar Seb Mondet avatar Thomas Gazagnaire avatar

Watchers

 avatar James Cloos avatar

Forkers

s-vaes

ocaml-fsq's Issues

Update the psq library

I've tried building the project, but it fails with this log

error: builder for '/nix/store/gj22iyvsikagh72v02790h0cv27l5fl6-ocaml4.12.0-fsq-unstable-2019-09-17.drv' failed with exit code 1;
       last 10 log lines:
       > 76 |                 psq = PsqK.adjust (fun p -> p - d) k t.psq;
       >                                        ^^^^^^^^^^^^^^^^
       > Error: This expression should not be a function, the expected type is PsqK.k
       >     ocamlopt lib/.fsq.objs/native/fsq.{cmx,o} (exit 2)
       > (cd _build/default && /nix/store/28nfnd70f17y2vd3rdihxx8ws3p6i1p2-ocaml-4.12.0/bin/ocamlopt.opt -w -40 -g -I lib/.fsq.objs/byte -I lib/.fsq.objs/native -I /nix/store/vbvl3ggqx588kwdwf380648almyp4wfq-ocaml4.12.0-psq-0.2.0/lib/ocaml/4.12.0/site-lib/psq -I /nix/store/vn9cb3m87klnrw8j1ax12dgxi10gdd16-ocaml4.12.0-seq-0.1/lib/ocaml/4.12.0/site-lib/seq -intf-suffix .ml -no-alias-deps -o lib/.fsq.objs/native/fsq.cmx -c -impl lib/fsq.ml)
       > File "lib/fsq.ml", line 76, characters 34-50:
       > 76 |                 psq = PsqK.adjust (fun p -> p - d) k t.psq;
       >                                        ^^^^^^^^^^^^^^^^
       > Error: This expression should not be a function, the expected type is PsqK.k

What I get from that is that some types have changed over time and the new lib expects other calls.

I'm not sure if #1 refers to the usage of the psq library or the fsq one, if it's the latter please let me know. I'm trying to package this library for Nix as with the other repos in this org, but if it's obsolete there's no point.

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.