Toy Autograd Engine in OCaml with Apple Accelerate Backend
I have been venturing to learn a new language and I landed on OCaml after hearing a few interesting talks from Jane Street. I just made public a toy autograd engine in OCaml with an Apple Accelerate...
View Article[BLOG] Frustrating Interactions with the OCaml Ecosystem while developing a...
gridbugs – 5 Sep 24 Frustrating Interactions with the OCaml Ecosystem while developing a... Last year I made a synthesizer library in OCaml and had some struggles using Dune and Opam, and also ran...
View ArticleProblem with linking the `ssl` lib on macos
Hi, I’m trying to use the ocaml-ssl lib (GitHub - savonet/ocaml-ssl: OCaml SSL bindings.) in a project on macos. I installed it with opam install ssl (no problem during installation). However, I...
View ArticleFirst experience with new dune
I have been test driving new dune. Here is the workflow I came up with. $ dune init proj hello # Edit dune-project depends (depends ocaml dune ocaml-lsp-server ocamlformat) $ dune pkg lock # Run these...
View ArticleMy first experience with OCaml
Hey, I’ve been playing with OCaml for the past few days and decided to share my first impressions while the memory is still fresh. You can find the full source code of the program I wrote here. I’d be...
View ArticleTrying js_of_ocaml with dune, unable to find module
Dear Ocaml Discourse, Context I am a hobbiest programmer who is an Ocaml novice but quite familier using dune to build Coq projects. Whilst I mostly use Coq for theorem proving, I do sometimes want to...
View ArticleHow does Dune search libraires during the build process of itself?
Question Could somebody tell me how libraries (such as pp) are searched during the build process of Dune itself? When I attempt to build Dune as a system-wide binary on Gentoo, I encounter an internal...
View ArticleWhat is 'map_workspace_root' used for?
As per the doc page: map_workspace_root — Dune documentation with (map_workspace_root true) , dune rewrites references to the workspace root to /workspace_root. However, it doesn’t explain what that...
View ArticleGitHub - gridbugs/dune-completion-scripts: Shell completion scripts for Dune
github.com GitHub - gridbugs/dune-completion-scripts: Shell completion scripts for Dune Shell completion scripts for Dune 9 posts - 6 participants Read full topic
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 ArticleDune, virtual libraries and their implementation
Hi, I’m playing with the dune virtual library feature. So far, I succeeded in defining a virtual library vLib and two implementations (impl_lib1 and 'impl_lib2, with a field (implements vLib)) for it....
View ArticlePlugin loading when executing without dune
Hi there, I followed the tutorial How to Load Additional Files at Runtime — Dune documentation to dynload plugins with dune. Everything work well. However, when I want to execute app.exe without dune...
View ArticleWildcard expansion on Windows
While implementing a small CLI tool, I ran into a somehow undocumented feature of the Ocaml compiler: it automatically expands wildcards before doing anything else. Which proved to be a problem. This...
View Article"dunelongcmd" Linking Error on Windows using ocamlopt
Hello everyone, Because Opam now supports Windows I have experimented with moving my Ocaml-Workspaces from WSL into Windows proper. This was successful and on my laptop there was a noticeable...
View ArticleDune preview install new package
Hi there, I’m quite new to OCaml and I’m rooting for https://preview.dune.build/ Knowing very little about anything really I cannot figure out how to install and actual dependency. I think I’m looking...
View ArticleDune promotions in ocamllsp (via dune rpc)
Hey everyone, I’m currently implementing some custom integration for ocaml in neovim. As part of this I’m integrating ocamllsp into neovim beyond the basic lspconfig. I’ve come across the dune/promote...
View ArticleShell Completions in Dune Developer Preview
Support for dune shell completions for bash and zsh has just landed in the Dune Developer Preview! Running the installer adds a snippet to your shell config (e.g. ~/.bashrc) that installs a completion...
View ArticleUsing Janestreet `core` with `riot` with dune
I have a number of libraries which make use of Janestreet’s core. Separately, I have an executable which makes use of these libraries and minttea. minttea is itself build on top of riot which has a...
View ArticleHow to specify flags in dune that is conditional on c compilers and platforms?
It may be a trivial question, but I can’t figure out how to write it, after reading a dune document and trial and error for a while. e.g. I have a dune like this (simplified from...
View Article[ANN] dune 3.16
We’re happy to announce the release of Dune 3.16.0. Among the list of chances, this release contains improvements to melange support and a way to look for references in a whole project using merlin...
View Article