<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/alice-v0-6-0-c0hknjkop" -->

---
title: Alice v0.6.0 | daily.dev
description: Alice v0.6.0 adds config scripts, C code support, and a bytecode build backend to the experimental OCaml build system. Packages can now access excluded...
canonical: https://daily.dev/posts/alice-v0-6-0-c0hknjkop
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Alice v0.6.0 | daily.dev
og:description: Alice v0.6.0 adds config scripts, C code support, and a bytecode build backend to the experimental OCaml build system. Packages can now access excluded...
og:url: https://daily.dev/posts/alice-v0-6-0-c0hknjkop
og:image: https://api.daily.dev/og/posts/c0HKnJKop.png
og:image:alt: Alice v0.6.0
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Alice v0.6.0

**[Lobsters](https://daily.dev/sources/lobsters)** · 4 min read · 2 upvotes · 0 comments

## Summary

Alice v0.6.0 adds config scripts, C code support, and a bytecode build backend to the experimental OCaml build system. Packages can now access excluded standard library modules like Unix and Str via a new builtins section in Alice.kdl. A config.ml script can run before building to print messages or add C linker args via alice:print_endline and alice:add_c_linker_args directives. Packages can also include and link .c files from the src directory, and a new --backend flag lets alice build and alice run use the bytecode compiler instead of native.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.alicecaml.org/blog/alice-v0-6-0>

## Questions this post answers

### How do I add custom C linker arguments when building an OCaml package with Alice?

Alice supports a config script named config.ml placed in a package's root directory next to Alice.kdl. It's compiled and run before the package builds, and any stdout line prefixed with 'alice:' is read as a directive. The 'alice:add_c_linker_args' directive adds linker arguments, and 'alice:print_endline' prints a message during the build.

_Teams wiring C dependencies into OCaml builds can track Alice's config script features via daily.dev._

### Can Alice build OCaml packages with the bytecode compiler instead of native?

Yes, Alice v0.6.0 adds a --backend argument accepting 'native' or 'bytecode' for commands like alice build and alice run, with native as the default. The bytecode backend compiles faster but produces executables that run slower than native-compiled ones.

_Developers tuning OCaml build speed versus runtime performance can follow Alice's backend options on daily.dev._

### How do I access Unix or Str modules from OCaml's standard library in an Alice project?

Alice packages list excluded standard library modules, such as Unix and Str, in a new 'builtins' section inside Alice.kdl. New projects created with Alice specify unix and str there by default, making those modules available even though they're excluded from the default prelude.

_OCaml developers configuring standard library access can keep up with Alice manifest changes on daily.dev._

## Similar posts on daily.dev

- [Alice the Caml](https://daily.dev/posts/alice-the-caml-hjyq6eotg) · Lobsters · 0 upvotes · 0 comments
- [Neocaml 0.9: A Better REPL, Completion, and More Robustness](https://daily.dev/posts/neocaml-0-9-a-better-repl-completion-and-more-robustness-uqdamws86) · Bozhidar Batsov · 0 upvotes · 0 comments
- [davidgiven/ack: The Amsterdam Compiler Kit](https://daily.dev/posts/davidgiven-ack-the-amsterdam-compiler-kit-g5lqqadzv) · Hacker News · 0 upvotes · 0 comments
- [GHC 10.0.1-alpha1 is now available — The Glasgow Haskell Compiler](https://daily.dev/posts/ghc-10-0-1-alpha1-is-now-available-the-glasgow-haskell-compiler-p2iivjbpd) · Planet Haskell · 0 upvotes · 0 comments

---

Tags: [#build-systems](https://daily.dev/tags/build-systems), [#ocaml](https://daily.dev/tags/ocaml)

[View this post on daily.dev](https://daily.dev/posts/alice-v0-6-0-c0hknjkop)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Alice v0.6.0","url":"https://daily.dev/posts/alice-v0-6-0-c0hknjkop","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/alice-v0-6-0-c0hknjkop"},"datePublished":"2026-11-22T08:49:38.914Z","dateModified":"2026-11-22T08:51:27.981Z","description":"Alice v0.6.0 adds config scripts, C code support, and a bytecode build backend to the experimental OCaml build system. Packages can now access excluded...","image":"https://media.daily.dev/image/upload/s--HRgLpUt6--/f_auto/v1722860399/public/Placeholder%2003","thumbnailUrl":"https://media.daily.dev/image/upload/s--HRgLpUt6--/f_auto/v1722860399/public/Placeholder%2003","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/alice-v0-6-0-c0hknjkop","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"build-systems,ocaml","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"Alice v0.6.0"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/alice-v0-6-0-c0hknjkop#faq","mainEntity":[{"@type":"Question","name":"How do I add custom C linker arguments when building an OCaml package with Alice?","acceptedAnswer":{"@type":"Answer","text":"Alice supports a config script named config.ml placed in a package's root directory next to Alice.kdl. It's compiled and run before the package builds, and any stdout line prefixed with 'alice:' is read as a directive. The 'alice:add_c_linker_args' directive adds linker arguments, and 'alice:print_endline' prints a message during the build. Teams wiring C dependencies into OCaml builds can track Alice's config script features via daily.dev."}},{"@type":"Question","name":"Can Alice build OCaml packages with the bytecode compiler instead of native?","acceptedAnswer":{"@type":"Answer","text":"Yes, Alice v0.6.0 adds a --backend argument accepting 'native' or 'bytecode' for commands like alice build and alice run, with native as the default. The bytecode backend compiles faster but produces executables that run slower than native-compiled ones. Developers tuning OCaml build speed versus runtime performance can follow Alice's backend options on daily.dev."}},{"@type":"Question","name":"How do I access Unix or Str modules from OCaml's standard library in an Alice project?","acceptedAnswer":{"@type":"Answer","text":"Alice packages list excluded standard library modules, such as Unix and Str, in a new 'builtins' section inside Alice.kdl. New projects created with Alice specify unix and str there by default, making those modules available even though they're excluded from the default prelude. OCaml developers configuring standard library access can keep up with Alice manifest changes on daily.dev."}}]}
```

