How to send a String to 2 other clients through Lwt and get the answer?
Hello, this will be a big post but its mainly due to the socket code. What i want to know how to do is in the main function. I am trying to create a function called send_msg that will send a question...
View ArticleHow to use "env" stanza?
I am creating a web application on dune (with opium). I want to change the value to connect to the database for dev, test and production. I think for that can use env stanza. like this… (env (dev...
View ArticleDune meeting notes
Hi everyone, I just wanted to publicise that we are now publishing the notes from our Dune meetings on the wiki: https://github.com/ocaml/dune/wiki These meetings happen via video-conference every two...
View ArticleHow to compile OCaml and C/C++ code that depend on each other?
I’m having problems defining the signature of a C void function that accepts an uint64_t and a char*. I tried int64 -> string -> _ . I also don’t know how to compile my C++ file (with C...
View ArticleCustom toplevels and dune
I want to build a bytecode executable (as it embed an OCaml toplevel) that uses some C libraries, such as linenoise. However, the description of a normal executable with (modes native) and (flags...
View ArticleCargo/Opam packaging of a Rust/OCaml project
It is currently unclear how to package and distribute an OCaml package that binds a piece of Rust code. Rust is a popular language, especially for cryptography, and it’s safer than C, making it an...
View ArticleHannes Mehnert interview about MirageOS and OCaml by Evrone
evrone.com Hannes Mehnert interview by Evrone Evrone spoke with Hannes Mehnert, the co-author of MirageOS about the library operating system that constructs unikernels, OCaml and functional...
View ArticleDune: depending on local module "Library not found"
Under my project root I have two folders, one for library code and one for the final binary built from main.ml. Unfortunately I’m missing something since dune can’t seem to find the library code File...
View ArticleTests in a separate directory with dune; using Base as an example
Hi everyone, I’m new to OCaml and trying to get oriented with dune so that I can build projects and run tests automatically. Using python as an example, I would usually write tests within separate...
View ArticleDune - How To Export All Modules In Folder
I have a project where I want to access all the modules in a directory from different packages. Currently, the directory in question is like: dir |- a.ml |- b.ml |- c.ml |- lib.ml Instead, of writing...
View ArticleHow do I specify an Ocaml to Coq dependency across dune files?
Hi all, I have a Coq file set up to create an OCaml file through extraction. The Coq file (extraction.v) is built with dune: (coq.theory (name test) (modules Extraction)) Extraction.v has just this:...
View ArticleDune: How to add a dependency on one executable to another?
Hi everyone. I have a Dune project consisting of two executables, each defined with the executable stanza in their own subdirectories. One of the executables uses the Bos library to invoke the other...
View ArticleCompilation failure upon running `opam install mechaml`
I used to have XCode on my Mac but removed it cause it took so much storage. Installed OCaml(via brew install ocaml) and Opam successfully but failed on opam install mechaml. This is the error log: I...
View ArticleA new build system API in Dune: please send thoughts, ideas and wishes
Do you have ideas about what a good build API should look like? Are there functionalities you always wished a build system API would give you? If yes, please write your thoughts, ideas or wishes on...
View ArticleDune error - Ppx dependency on a non-ppx library
I’m getting a strange dune error from trying to compile a project with pre-4.07 OCaml, Dune 2.6 and ppxes that are built with jbuilder: File "bin/dune", line 6, characters 7-14: 6 | (pps ppx_let)))...
View ArticleDune name resolution
I’ve been having issues with using vendored packages with dune. Specifically I have two packages which I have cloned into the home directory of my dune project: / |- foo |- bar |- src |- dune-project...
View ArticleDune dependency computing
Hi, I try to move a project from dune 1.6.3 to dune 1.7. This dune is used to build some embedded cmis files: (rule (targets embedded_grading_cmis.ml) (deps (:compiler-cmis...
View ArticleDune Local Install Not Appearing in Opam
Hi Everyone, I have been working on getting Cucumber ML ready to be published on opam. In the course of this, I got the C library that it depends on to compile with Dune rather than needing to do it...
View ArticleDune aliasing one executable over another
I’m working on testing within https://github.com/Cjen1/OcamlPaxos/tree/paxos_core. The issue is that for that version if I run dune exec test/paxos_core.exe it actually runs test/log.ml. Investigating...
View ArticleDune-release: version 1.4.0 released
This post is about dune-release, a tool that helps users release their packages to Opam in a fast and organized manner. You can install it via opam install dune-release. On behalf of the dune-release...
View Article