Code Monkey home page Code Monkey logo

ocaml-radamsa's Introduction

OCaml bindings to radamsa

OCaml radamsa is a project to provide OCaml binding for radamsa.

Installation

Use opam to install radamsa package. This will automatically compile & install libradamsa in sandboxed environment.

opam install radamsa

Example

utop example

utop # #require "radamsa";;
utop # Radamsa.radamsa "(1+2)*3";;
- : string = "(1󠁈+1)*3"
utop # Radamsa.radamsa "(1+2)*3";;
- : string = "(1+18446744073709551616)*3"
utop # Radamsa.radamsa ~seed:8 "(1+2)*3";;
- : string = "(2147483649+2)*2"
utop # Radamsa.radamsa ~seed:10 "(1+2)*3";;
- : string = "(0+6135)*-1"

ocaml-radamsa's People

Contributors

jjh84 avatar

Watchers

 avatar

ocaml-radamsa's Issues

Memory leak 문제?

radamsa 함수 호출 시 seed가 0인 경우 Random 모듈을 활용하여 난수를 생성한다. 이 경우 메모리 사용량이 급격하게 증가하였다.
구체적인 원인은 아직 잘 모르겠다. 사실 seed가 0인 경우 libradamsa에서 난수를 사용하기 때문에 ocaml에서 또 난수를 생성 할 필요가
없을 것 같다. 그래서 이 부분은 지우는 게 좋겠다.

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.