From: Alan Schmitt <alan.schmitt@polytechnique.org> To: "lwn" <lwn@lwn.net>, "cwn" <cwn@lists.idyll.org>, caml-list@inria.fr, comp@lists.orbitalfox.eu Subject: [Caml-list] Attn: Development Editor, Latest OCaml Weekly News Date: Tue, 21 Jan 2020 15:08:42 +0100 Message-ID: <87eevsdhqt.fsf@polytechnique.org> (raw) [-- Attachment #1: Type: text/plain, Size: 6423 bytes --] Hello Here is the latest OCaml Weekly News, for the week of January 14 to 21, 2020. Table of Contents ───────────────── How does the compiler check for exhaustive pattern matching? resto 0.2 released opam 2.0.6 release soupault: a static website generator based on HTML rewriting Spin: Project scaffolding tool and set of templates for Reason and OCaml Old CWN How does the compiler check for exhaustive pattern matching? ════════════════════════════════════════════════════════════ Archive: <https://discuss.ocaml.org/t/how-does-the-compiler-check-for-exhaustive-pattern-matching/5013/1> Dylan Irlbeck asked ─────────────────── Hi all. I'm relatively new to OCaml, and I was curious on how the compiler is able to give a warning when a case list is non-exhaustive - both from a high-level and, if possible, the implementation of this check. I have some ideas about how one could do this, but none of my ideas seem like they'd be nearly as efficient as the OCaml compiler is. gasche replied ────────────── The canonical reference for exhaustivity-checking in OCaml is the scientific publication [Warnings for pattern matching] Luc Maranget 2007 The general idea is to consider all the patterns of a given pattern-matching at once, generalize this structure to a "matrix" of patterns (matching on several values in parallel), and devise an algorithm to "explore" these pattern matrices in such a way that you eventually tell if a given pattern-matrix is exhaustive, or can propose a counter-example. (I guess we should write a high-level/accessible blog post about this.) [Warnings for pattern matching] <http://moscova.inria.fr/~maranget/papers/warn/index.html> resto 0.2 released ══════════════════ Archive: <https://discuss.ocaml.org/t/ann-resto-0-2-released/5028/1> Raphaël Proust announced ──────────────────────── On behalf on Nomadic Labs, I'm happy to announce the release of version 0.2 of `resto', a library to create type-safe HTTP/JSON services. The library is available through opam (`opam install resto'), distributed under LGPL, and hosted on <https://gitlab.com/nomadic-labs/resto>. `resto' was previously released as `ocplib-resto' maintained by OCamlPro. The project is now maintained by Nomadic Labs. Along with many bugfixes and a few added features, the main change of this release is that the library is split into multiple packages with fine-grained dependencies. opam 2.0.6 release ══════════════════ Archive: <https://discuss.ocaml.org/t/ann-opam-2-0-6-release/5038/1> R. Boujbel announced ──────────────────── We are pleased to announce the minor release of [opam 2.0.6]. This new version contains mainly build update & fixes. You can find more information in this [blog post]. _opam is a source-based package manager for OCaml. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow._ [opam 2.0.6] <https://github.com/ocaml/opam/releases/tag/2.0.6> [blog post] <https://opam.ocaml.org/blog/opam-2-0-6> soupault: a static website generator based on HTML rewriting ════════════════════════════════════════════════════════════ Archive: <https://discuss.ocaml.org/t/ann-soupault-a-static-website-generator-based-on-html-rewriting/4126/11> Daniil Baturin announced ──────────────────────── soupault 1.8.0 is [released] along with Lua-ML 0.9.1. Lua-ML now raises `Failure' when Lua code execution fails. There's much room for improvement in that area, for now I've just done something that is better than just displaying errors on stderr but otherwise allowing syntax and runtime errors pass silently. If you have any ideas how perfect interpreter error reporting _should_ work, please share! As of improvements in soupault itself, there's now: • A way for plugins to specify their minimum supported soupault version like `Plugin.require_version("1.8.0")' • `TARGET_DIR' environment variable and `target_dir' Lua global that contains the directory where the rendered page will be written, to make it easier for plugins/scripts to place processed assets together with pages. • "Build profiles": if you add `profile = "production"' or similar to widget config, that widget will be ignored unless you run `soupault --profile production'. • A bunch of new utility functions for plugins. [released] <https://soupault.neocities.org/blog/soupault-1.8.0-release/> Spin: Project scaffolding tool and set of templates for Reason and OCaml ════════════════════════════════════════════════════════════════════════ Archive: <https://discuss.ocaml.org/t/spin-project-scaffolding-tool-and-set-of-templates-for-reason-and-ocaml/5047/1> Mohamed Elsharnouby announced ───────────────────────────── <https://github.com/tmattio/spin> Old CWN ═══════ If you happen to miss a CWN, you can [send me a message] and I'll mail it to you, or go take a look at [the archive] or the [RSS feed of the archives]. If you also wish to receive it every week by mail, you may subscribe [online]. [Alan Schmitt] [send me a message] <mailto:alan.schmitt@polytechnique.org> [the archive] <http://alan.petitepomme.net/cwn/> [RSS feed of the archives] <http://alan.petitepomme.net/cwn/cwn.rss> [online] <http://lists.idyll.org/listinfo/caml-news-weekly/> [Alan Schmitt] <http://alan.petitepomme.net/> [-- Attachment #2: Type: text/html, Size: 18137 bytes --]
next prev reply index Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-09-03 7:35 Alan Schmitt 2019-10-15 7:28 Alan Schmitt 2019-11-05 6:55 Alan Schmitt 2019-11-12 13:21 Alan Schmitt 2019-11-26 8:33 Alan Schmitt 2019-12-03 15:43 Alan Schmitt 2019-12-10 8:21 Alan Schmitt 2019-12-17 8:52 Alan Schmitt 2019-12-31 9:18 Alan Schmitt 2020-01-07 13:43 Alan Schmitt 2020-01-14 14:17 Alan Schmitt 2020-01-21 14:09 Alan Schmitt [this message] 2020-01-28 10:54 Alan Schmitt 2020-02-04 8:47 Alan Schmitt 2020-02-18 8:18 Alan Schmitt 2020-02-25 8:51 Alan Schmitt 2020-03-03 8:00 Alan Schmitt 2020-03-10 14:29 Alan Schmitt 2020-03-17 11:04 Alan Schmitt 2020-03-24 9:31 Alan Schmitt 2020-03-31 9:55 Alan Schmitt 2020-04-07 7:51 Alan Schmitt 2020-04-14 7:28 Alan Schmitt 2020-04-21 8:58 Alan Schmitt 2020-04-28 12:45 Alan Schmitt 2020-05-05 7:45 Alan Schmitt 2020-05-12 7:46 Alan Schmitt 2020-05-19 9:53 Alan Schmitt 2020-06-09 8:29 Alan Schmitt 2020-06-16 8:36 Alan Schmitt 2020-06-30 7:00 Alan Schmitt 2020-07-07 10:05 Alan Schmitt 2020-07-14 9:55 Alan Schmitt 2020-07-21 14:43 Alan Schmitt 2020-07-28 16:58 Alan Schmitt 2020-08-18 7:26 Alan Schmitt 2020-09-01 7:55 Alan Schmitt 2020-09-08 13:11 Alan Schmitt 2020-09-22 7:27 Alan Schmitt 2020-09-29 7:02 Alan Schmitt 2020-10-06 7:22 Alan Schmitt 2020-10-20 8:16 Alan Schmitt 2020-10-27 8:44 Alan Schmitt 2020-11-03 15:16 Alan Schmitt 2020-12-01 8:55 Alan Schmitt 2020-12-15 9:51 Alan Schmitt 2020-12-22 8:49 Alan Schmitt 2020-12-29 10:00 Alan Schmitt 2021-01-05 11:22 Alan Schmitt 2021-01-12 9:47 Alan Schmitt 2021-01-19 14:28 Alan Schmitt
Reply instructions: You may reply publically to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=87eevsdhqt.fsf@polytechnique.org \ --to=alan.schmitt@polytechnique.org \ --cc=caml-list@inria.fr \ --cc=comp@lists.orbitalfox.eu \ --cc=cwn@lists.idyll.org \ --cc=lwn@lwn.net \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
caml-list - the Caml user's mailing list Archives are clonable: git clone --mirror https://inbox.ocaml.org/caml-list AGPL code for this site: git clone https://public-inbox.org/ public-inbox