xic VS dune

Compare xic vs dune and see what are their differences.

xic

A compiler for the Xi programming language (by ralphrecto)

dune

A composable build system for OCaml. (by ocaml)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
xic dune
2 27
7 1,536
- 2.1%
10.0 9.9
almost 8 years ago 2 days ago
OCaml OCaml
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

xic

Posts with mentions or reviews of xic. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-22.
  • How many lines of code does a compiler contain?
    4 projects | /r/ProgrammingLanguages | 22 Apr 2023
    I cloc'd two compilers for xic, compilers written by cornell students for a compilers class which compile a toy C-like language down to assembly, possibly with some extensions. One compiler was about 11k sloc, the other about 32k. Both compilers are written mainly in OCaml, which is a terse language that is pretty optimal for compiler development, but have some java code in them as well. I think these are good examples of mostly minimal compilers which compile a C-like down to asm, though they are very rudimentary compared to more serious projects. I want to emphasize that this is not very meaningful without more details about what you are looking to know.
  • What is an example of a good, modern OCaml codebase that I can learn from?
    4 projects | /r/ocaml | 2 Feb 2022
    Here's a compiler for a C-like language written in OCaml (note: I am not one of the authors though I did take the class). Despite it being a college project I think it shows very clean design and particularly good use of preprocessors. All of the details for the language and stuff is linked at the bottom. It's a relatively small codebase of course but I think this is good educationally.

dune

Posts with mentions or reviews of dune. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-21.
  • Tagging OCaml packages
    1 project | dev.to | 31 Dec 2023
    If you are using the dune build system, add the tag(s) to your dune-project file's package stanza. E.g.:
  • NextJS, the App Router and ReasonReact
    3 projects | dev.to | 21 Aug 2023
    One way to get around this is to modify the api/dune file with (include_subdirs qualified); this means that every subdirectory of api/ can be referenced by module namespacing and we don't have to write dune files for every route (or pages) folder. However, the OCaml LSP does not like it and red squiggles will show up in the editor (although the app with still compile without errors). Trying to develop the app knowing those red squiggles cannot be vanquished would drive me nuts, so instead of using (include_subdirs qualified) I just wrote dune files for every route (and page) which gets rid of the red squiggles.
  • Generating .ml test cases from a glob of text files in a directory using dune
    1 project | /r/ocaml | 15 Jun 2023
    2) Neither would having all source/targets specified, as that would entail listing them all in the dune file as wildcard rules is apparently still not a thing: https://github.com/ocaml/dune/issues/307
  • Dune build
    1 project | /r/ocaml | 23 May 2023
    There is a small example on the dune home page: https://dune.build/
  • The YAML Document from Hell
    19 projects | news.ycombinator.com | 12 Jan 2023
  • Ask HN: Programs that saved you 100 hours? (2022 edition)
    69 projects | news.ycombinator.com | 20 Dec 2022
    Dune (https://dune.build/) is the preeminent build tool for OCaml development. I don't love its input syntax (s-expressions), and I sometimes miss the ability to write high-level functions to reduce boilerplate (especially for unit tests), but it always gets the dependencies right, and it's fast. This is in stark contrast to some of my experiences with various other build systems, and I am super happy that the default option for OCaml build systems is so good.
  • Help getting started with Ocaml
    2 projects | /r/ocaml | 13 Oct 2022
  • Faster Incremental Builds with Dune 3
    1 project | /r/ocaml | 12 Jul 2022
    It's still weird because dune's own site only makes Jane Street references: https://dune.build/.
  • How to print anything in OCaml
    1 project | dev.to | 4 Jun 2022
    ONE of the big benefits of OCaml is its powerful REPL (also called the toplevel), the interactive command-line utility where you can load modules, type in and execute code, and see its results. The modern REPL, utop, has powerful auto-completion and integration with the build system dune, which enables productive workflows like loading an entire project's libraries in the REPL and interactively exploring them.
  • Dune 3.2.0
    1 project | /r/ocaml | 17 May 2022

What are some alternatives?

When comparing xic and dune you can also consider the following projects:

xic - CS 4120: A compiler for the Xi language in OCaml

statsd-filter-proxy-rs - A filter proxy for StatsD

opam - opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.

ocaml - The core OCaml system: compilers, runtime system, base libraries

CorrinoEngine - CorrinoEngine is an open-source project which will recreate the Emperor : Battle for Dune

domainslib - Parallel Programming over Domains

melange - A mixture of tooling combined to produce JavaScript from OCaml & Reason

codeworld - Educational computer programming environment using Haskell

plotkicadsch - This project aims at being able to export Kicad v5 Sch files to structured picture files

dune - A simple API Client built with flutter

bowling-game-kata-haskell

dune - A shell🐚 by the beach🏖️!