Quantcast
Channel: OCaml - Topics tagged dune
Browsing all 547 articles
Browse latest View live

Proposal: a new `exports` field in `findlib` META files

Proposal: exports field in findlib META files Note: in what follows I use, following dune terminology, the term library names for what is formally ocamlfind package names. Recently I have deprecated a...

View Article


Unable to instal zlib package

Hello, I set up a MSVC toolchain on a windows 11 system, it’s all running well with 4.14 and after the installation of some packages I ran into problem with the zlib package. It needs a rebuild and my...

View Article


Can't find import

Took an SML compilers class and I am trying to migrate my SML to OCaml. I have been struggling to get imports to work properly File Structure: lib ├── dune └── middle_end \ ├── absyn.ml \ ├──...

View Article

Using dune for umbrella libraries in mdx

I’m trying to use dune to build a collection of small libraries and an umbrella library that re-exports them. So I have this dune-project: (lang dune 3.18) (name dune-umbrella-repro) (version dev)...

View Article

Dune wish list for 2023

How about we all try a slightly less serious discussion about tooling for once. I invite you to respond with a list of most desired features, most hated bugs, and anything else you might like to see...

View Article


Error: Bigstringaf_blit_from_bytes not implemented

I’m experiencing similar issues to that of this post while building my dune project that depends on the angstrom library. node ./_build/default/bin/main.bc.wasm.js...

View Article

Image may be NSFW.
Clik here to view.

[BLOG] Using fixture files in OCaml tests with Dune

I have a couple of ongoing side-projects that I use to practice my OCaml every now and then, whenever I have some free time. The other day, I wanted to use fixtures for a test and it took me a while...

View Article

Alcotest does not run all my tests

I am using alcotest with dune and I am encountering a strange (buggy?) behavior where dune runs twice the same test and fails to run another test. I’m not sure if the problem comes from dune or...

View Article


Portable Lock Directories for Dune Package Management

We’ve recently made a change to how lock directories work in the Dune Developer Preview. Previously when Dune would solve dependencies for a project and generate a lock directory, the lock directory...

View Article


Dune looking for filenames with strange capital letters

Hello, I have the following dune file : (library (public_name OTP) (libraries cryptokit base32 unix qrc stdint) (name OTP)) (env (dev (flags (:standard -w +42 -warn-error -32 -warn-error -33) ))...

View Article

Dune: Update vs create target

I’d like for dune to Create the Menhir parser.messages file it it does not exist and Update the parser.messages file if it does and my parser.mly has changed. I defined two rules (rule (targets...

View Article

Image may be NSFW.
Clik here to view.

[ANN] Dune 3.19

The Dune team is happy to announce the release of dune 3.19.0 This release contains some important bug fixes along with some improvements for the foreign_library stanza. It introduces support for...

View Article

Image may be NSFW.
Clik here to view.

[Tutorial] Wrote a Record/Replay Debugging tutorial

I’ve written a tutorial on Record/Replay debugging. If you’re interested in reverse debugging please check it out here. The tutorial teaches you how to record/replay and debug a program using rr.soft...

View Article


Need feedback on my basic unit test

open Rezn.Frontend open Yojson.Basic let%expect_test "parsing a minimal pod" = let source = {| pod "x" { image = "nginx" } |} in let prog = parse_string source in let json =...

View Article

How to statically link archive files with dune?

How do I statically link some .a files with Dune? How do I write my OCaml bindings to them? Background I’m creating an OCaml libsql client. To interface with libsql, I’m taking the same approach as...

View Article


Expect magic in ppxlib tests

How does this magic in ppxlib tests work? How does the AST resulting from %stri, etc. make it to stdout? Better yet, how does the loc declaration at line 1 make it to stdout? 2 posts - 2 participants...

View Article

Image may be NSFW.
Clik here to view.

Sound on OCaml on Windows

gridbugs – 2 Jun 25 Sound on OCaml on Windows I got my OCaml music synthesizer working on Windows. Here's all the things that went wrong in the process. 1 post - 1 participant Read full topic

View Article


Portable External Dependencies for Dune Package Management

Dune lock directories record the names of any system packages needed to build projects or their dependencies. We’ve recently changed how this works in the interest of portability. Background on...

View Article

How to get a melange universal library to work?

Hi everyone, I am an OCaml beginner and I’m currently implementing a proof-of-concept full-stack web application with Melange. I’m using dune 3.18.0. The frontend (see lib/frontend) is an Elm-like...

View Article

My Introductory post

Hello everyone. I’m Matthew, and an outreachy intern with Dune, and I’ll be contributing this summer and beyond. This is my introductory blog post Medium . Looking forward to an amazing time with this...

View Article
Browsing all 547 articles
Browse latest View live