Skip to content

Instantly share code, notes, and snippets.

View sabine's full-sized avatar

sabine sabine

View GitHub Profile
@sabine
sabine / main.ml
Created August 5, 2023 10:40
Run 25 tasks at a time with Eio at maximum concurrency while capturing errors
open Eio
let process item = if Random.int 4 = 0 then Error (`Item item) else Ok ()
let () =
Eio_main.run @@ fun env ->
let clock = Eio.Stdenv.clock env in
(* stream with capacity of 25 limits concurrent execution *)
let stream = Eio.Stream.create 25 in
let errors = ref [] in
@sabine
sabine / rfc.md
Created March 13, 2025 15:25
RFC: Terminal Coffee Shop Integration with Dune Build System

RFC: Terminal Coffee Shop Integration with Dune Build System

  • Feature Name: terminal-coffee-integration
  • Start Date: 2025-03-13
  • RFC PR: (leave blank until submitted)
  • Implementation PR: (leave blank until implemented)

Summary

This RFC proposes integrating the 'terminal' coffee shop (an online shop accessible via SSH) with the Dune build system. This integration will allow developers to order coffee directly from their build environment, improving developer experience and productivity by streamlining the coffee procurement process.