Parution d'OCaml {{! get LATEST_OCAML_VERSION !}}
-24 février 2021
+1er octobre 2021
-
-
+
Release of OCaml {{! get LATEST_OCAML_VERSION !}}
-February 24, 2021
+October 1, 2021
diff --git a/site/releases/4.13.1.md b/site/releases/4.13.1.md new file mode 100644 index 000000000..41a11455d --- /dev/null +++ b/site/releases/4.13.1.md @@ -0,0 +1,60 @@ + + +# OCaml 4.13.1 + +This page describes OCaml **4.13.1**, released on Oct 1, 2021. +This is a bug-fix release of [OCaml 4.13.0](4.13.0.html). + + + +Configuration options +--------------------- + +The configuration of the installed opam switch can be tuned with the +following options: + +- ocaml-option-32bit: set OCaml to be compiled in 32-bit mode for 64-bit Linux and OS X hosts +- ocaml-option-afl: set OCaml to be compiled with afl-fuzz instrumentation +- ocaml-option-bytecode-only: compile OCaml without the native-code compiler +- ocaml-option-default-unsafe-string: set OCaml to be compiled without safe strings by default +- ocaml-option-flambda: set OCaml to be compiled with flambda activated +- ocaml-option-fp: set OCaml to be compiled with frame-pointers enabled +- ocaml-option-musl: set OCaml to be compiled with musl-gcc +- ocaml-option-nnp : set OCaml to be compiled with --disable-naked-pointers +- ocaml-option-nnpchecker: set OCaml to be compiled with --enable-naked-pointers-checker +- ocaml-option-no-flat-float-array: set OCaml to be compiled with --disable-flat-float-array +- ocaml-option-static :set OCaml to be compiled with musl-gcc -static + +For instance, one can install a switch with both `flambda` and the naked-pointer checker enabled with + +``` +opam switch create 4.13.1+flambda+nnpchecker --package=ocaml-variants.4.13.1+options,ocaml-option-flambda,ocaml-option-nnpchecker +``` + +or with opam 2.1: + +``` +opam switch create 4.13.1+flambda -ocaml-variants.4.13.1+options ocaml-option-flambda +``` + + +![](../img/source.gif "") Source distribution +--------------------------------------------- + +- [Source + tarball](https://github.com/ocaml/ocaml/archive/4.13.1.tar.gz) + (.tar.gz) for compilation under Unix (including Linux and macOS) + and Microsoft Windows (including Cygwin). +- Also available in + [.zip](https://github.com/ocaml/ocaml/archive/4.13.1.zip) + format. +- The official development repo is hosted on + [GitHub](https://github.com/ocaml/ocaml). + +Changes +------- + +### Regression fix + +- [#10661](https://github.com/ocaml/ocaml/issues/10661), [#10662](https://github.com/ocaml/ocaml/issues/10662): fix a bug with classes named "row" + (Gabriel Scherer, report by Nicolás Ojeda Bär) diff --git a/site/releases/index.fr.md b/site/releases/index.fr.md index 5f2f23d60..06527b398 100644 --- a/site/releases/index.fr.md +++ b/site/releases/index.fr.md @@ -10,6 +10,7 @@ instructions pour installer OCaml par d'autres moyens que la compilation des sources, comme par exemple le gestionnaire de paquets OPAM et les gestionnaire de paquets spécifiques à une plateforme. +* OCaml [4.13.1](4.13.1.html), [téléchargé](https://github.com/ocaml/ocaml/archive/4.13.1.tar.gz), publiée le 1er octobre, 2021. * OCaml [4.13.0](4.13.0.html), [téléchargé](https://github.com/ocaml/ocaml/archive/4.13.0.tar.gz), publiée le 24 septembre 2021. * OCaml [4.12.1](4.12.1.html), [téléchargé](https://github.com/ocaml/ocaml/archive/4.12.1.tar.gz), publiée le 24 septembre 2021. * OCaml [4.12.0](4.12.0.html), [téléchargé](https://github.com/ocaml/ocaml/archive/4.12.0.tar.gz), publiée le 24 février 2021. diff --git a/site/releases/index.md b/site/releases/index.md index 780adc1ad..8e0ebdcb7 100644 --- a/site/releases/index.md +++ b/site/releases/index.md @@ -9,6 +9,7 @@ See also the [install](/docs/install.html) page for instructions on installing OCaml by other means, such as the OPAM package manager and platform specific package managers. +* OCaml [4.13.1](4.13.1.html), [Download](https://github.com/ocaml/ocaml/archive/4.13.1.tar.gz), released Oct 1, 2021. * OCaml [4.13.0](4.13.0.html), [Download](https://github.com/ocaml/ocaml/archive/4.13.0.tar.gz), released Sep 24, 2021. * OCaml [4.12.1](4.12.1.html), [Download](https://github.com/ocaml/ocaml/archive/4.12.1.tar.gz), released Sep 24, 2021. * OCaml [4.12.0](4.12.0.html), [Download](https://github.com/ocaml/ocaml/archive/4.12.0.tar.gz), released Feb 24, 2021. From cd0eb7a1fc4c832ebc03f339e44a3491abd47a17 Mon Sep 17 00:00:00 2001 From: Florian Angeletti
Date: Wed, 13 Oct 2021 13:29:59 +0200 Subject: [PATCH 06/11] Update 4.13 changes --- site/releases/4.13/notes/Changes | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/site/releases/4.13/notes/Changes b/site/releases/4.13/notes/Changes index cf020c898..deb5c5344 100644 --- a/site/releases/4.13/notes/Changes +++ b/site/releases/4.13/notes/Changes @@ -1,3 +1,12 @@ +OCaml 4.13.1 (01 October 2021) +-------------------------------- + +### Bug fixes + +- #10661, #10662: fix a bug with classes named "row" + (Gabriel Scherer, report by Nicolás Ojeda Bär) + + OCaml 4.13.0 (24 September 2021) -------------------------------- From 2571310594f1efb826a16c91540a0757f2f426ec Mon Sep 17 00:00:00 2001 From: Florian Angeletti Date: Wed, 13 Oct 2021 13:39:05 +0200 Subject: [PATCH 07/11] Bump opam commit to last commit on 2021/10/13 --- Dockerfile | 2 +- Dockerfile.deploy | 2 +- Dockerfile.staging | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 519fea2de..f48ca68ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM ocaml/opam:debian-10-ocaml-4.10 -RUN git -C /home/opam/opam-repository pull origin master && git -C /home/opam/opam-repository checkout 1003e5965fbc38d98b88570ac280b519fdae302f && opam update -u -y +RUN git -C /home/opam/opam-repository pull origin master && git -C /home/opam/opam-repository checkout 3606210eb2472a23e8ef7960ce143026e43e507d && opam update -u -y WORKDIR /home/opam/src RUN sudo chown opam /home/opam/src COPY --chown=opam *.opam /home/opam/src diff --git a/Dockerfile.deploy b/Dockerfile.deploy index 0d3ca0dd1..ea7954736 100644 --- a/Dockerfile.deploy +++ b/Dockerfile.deploy @@ -1,5 +1,5 @@ FROM ocaml/opam:debian-10-ocaml-4.10 as build -RUN git -C /home/opam/opam-repository pull origin master && git -C /home/opam/opam-repository checkout 1003e5965fbc38d98b88570ac280b519fdae302f && opam update -u -y +RUN git -C /home/opam/opam-repository pull origin master && git -C /home/opam/opam-repository checkout 3606210eb2472a23e8ef7960ce143026e43e507d && opam update -u -y WORKDIR /home/opam/src RUN sudo chown opam /home/opam/src COPY --chown=opam *.opam /home/opam/src diff --git a/Dockerfile.staging b/Dockerfile.staging index 8c972fc43..43cafb028 100644 --- a/Dockerfile.staging +++ b/Dockerfile.staging @@ -1,5 +1,5 @@ FROM ocaml/opam:debian-10-ocaml-4.10 as build -RUN git -C /home/opam/opam-repository pull origin master && git -C /home/opam/opam-repository checkout 1003e5965fbc38d98b88570ac280b519fdae302f && opam update -u -y +RUN git -C /home/opam/opam-repository pull origin master && git -C /home/opam/opam-repository checkout 3606210eb2472a23e8ef7960ce143026e43e507d && opam update -u -y WORKDIR /home/opam/src RUN sudo chown opam /home/opam/src COPY --chown=opam *.opam /home/opam/src From 7ded0ff426a7735fea034780a126f0f8af1ab101 Mon Sep 17 00:00:00 2001 From: Dong An Date: Sun, 17 Oct 2021 09:49:54 +0300 Subject: [PATCH 08/11] Update site/learn/tutorials/functional_programming.zh.md Co-authored-by: Fangyi Zhou --- site/learn/tutorials/functional_programming.zh.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/learn/tutorials/functional_programming.zh.md b/site/learn/tutorials/functional_programming.zh.md index eecf001ba..b1ba3ae9a 100644 --- a/site/learn/tutorials/functional_programming.zh.md +++ b/site/learn/tutorials/functional_programming.zh.md @@ -32,7 +32,7 @@ List.map double [ 1; 2; 3 ] `map`被称为**高阶函数(higher-order function)** (HOF)。高阶函数是指接受函数作为参数的函数。 -如果你对C/C++熟悉的,可以把高级函数想象为一个接受函数指针作为参数的函数。 +如果你对C/C++熟悉的话,可以把高阶函数想象为一个接受函数指针作为参数的函数。 **闭包(Closure)** 是指那些带有它们被定义时的“环境”的函数。特别的,一个闭包可以引用它定义时存在的变量。让我们把上面那个函数变得更通用一些,以便我们可以对任何整数列表乘以一个任意值`n`: From 18c2f1a309f66bbd5e5ef3c2b6b11994e98c1f92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lavergne?= Date: Tue, 26 Oct 2021 11:17:52 -0400 Subject: [PATCH 09/11] Fix and clarify opam 2.1 switch creation --- site/releases/4.12.1.md | 2 +- site/releases/4.13.0.md | 2 +- site/releases/4.13.1.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/site/releases/4.12.1.md b/site/releases/4.12.1.md index 45701ad79..017ba262f 100644 --- a/site/releases/4.12.1.md +++ b/site/releases/4.12.1.md @@ -34,7 +34,7 @@ opam switch create 4.12.1+flambda+nnpchecker --package=ocaml-variants.4.12.1+opt or with opam 2.1: ``` -opam switch create 4.12.1+flambda -ocaml-variants.4.12.1+options ocaml-option-flambda +opam switch create 4.12.1+flambda+nnpchecker ocaml-variants.4.12.1+options ocaml-option-flambda ocaml-option-nnpchecker ``` diff --git a/site/releases/4.13.0.md b/site/releases/4.13.0.md index 1de78f19a..184b2b031 100644 --- a/site/releases/4.13.0.md +++ b/site/releases/4.13.0.md @@ -51,7 +51,7 @@ opam switch create 4.13.0+flambda+nnpchecker --package=ocaml-variants.4.13.0+opt or with opam 2.1: ``` -opam switch create 4.13.0+flambda -ocaml-variants.4.13.0+options ocaml-option-flambda +opam switch create 4.13.0+flambda+nnpchecker ocaml-variants.4.13.0+options ocaml-option-flambda ocaml-option-nnpchecker ``` diff --git a/site/releases/4.13.1.md b/site/releases/4.13.1.md index 41a11455d..bf50f77ed 100644 --- a/site/releases/4.13.1.md +++ b/site/releases/4.13.1.md @@ -34,7 +34,7 @@ opam switch create 4.13.1+flambda+nnpchecker --package=ocaml-variants.4.13.1+opt or with opam 2.1: ``` -opam switch create 4.13.1+flambda -ocaml-variants.4.13.1+options ocaml-option-flambda +opam switch create 4.13.1+flambda+nnpchecker ocaml-variants.4.13.1+options ocaml-option-flambda ocaml-option-nnpchecker ``` From 4fa4281867c528f62e83d9418255602b53ea27b7 Mon Sep 17 00:00:00 2001 From: Patrick Ferris Date: Wed, 27 Oct 2021 15:00:36 +0100 Subject: [PATCH 10/11] Update last10_updates to https --- Makefile.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index 5b928ca45..0dfd3d7f0 100644 --- a/Makefile.common +++ b/Makefile.common @@ -39,7 +39,7 @@ template/%_code_snippet.html:template/%_code_snippet.md $(OMD_PP) cat "$<" | $(OMD_PP) | ${OMD} -o $@ opam_update_list: script/generate_opam_update_list - curl -O http://opam.ocaml.org/json/last10_updates.json + curl -O https://opam.ocaml.org/json/last10_updates.json script/generate_opam_update_list script/generate_opam_update_list: script/generate_opam_update_list.ml From 0c5684e8e9807939e7e019fcdca0d612e358cef0 Mon Sep 17 00:00:00 2001 From: Teodor Heggelund Date: Mon, 13 Dec 2021 00:13:03 +0100 Subject: [PATCH 11/11] Fix cheatsheet links Source: https://ocamlpro.github.io/ocaml-cheat-sheets/ --- site/docs/cheat_sheets.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/docs/cheat_sheets.md b/site/docs/cheat_sheets.md index 83f6e0a85..4221abf1d 100644 --- a/site/docs/cheat_sheets.md +++ b/site/docs/cheat_sheets.md @@ -5,16 +5,16 @@ [OCamlPro](http://www.ocamlpro.com/) has published cheat sheets (one or two-page summaries) on OCaml: -* [The OCaml Language](http://www.ocamlpro.com/wp-content/uploads/2019/09/ocaml-lang.pdf) (PDF, September 2019) +* [The OCaml Language](https://ocamlpro.github.io/ocaml-cheat-sheets/ocaml-lang.pdf) (PDF, September 2019) General overview of the OCaml language: basic data types, basic concepts, functions, modules, etc. -* [OCaml Standard Tools](http://www.ocamlpro.com/files/ocaml-tools.pdf) (PDF, June 2011) +* [OCaml Standard Tools](https://ocamlpro.github.io/ocaml-cheat-sheets/ocaml-tools.pdf) (PDF, June 2011) Overview of OCaml compilers and their options, tools for lexing and parsing, Makefile rules, etc. -* [OCaml Standard Library](http://www.ocamlpro.com/wp-content/uploads/2019/09/ocaml-stdlib.pdf) (PDF, September 2019) +* [OCaml Standard Library](https://ocamlpro.github.io/ocaml-cheat-sheets/ocaml-stdlib.pdf) (PDF, September 2019) Overview of the standard library's most common modules. -* [OCaml Emacs Mode (Tuareg)](http://www.ocamlpro.com/files/tuareg-mode.pdf) (PDF, June 2011) +* [OCaml Emacs Mode (Tuareg)](https://ocamlpro.github.io/ocaml-cheat-sheets/tuareg-mode.pdf) (PDF, June 2011) Overview of the Emacs Tuareg mode keyboard shortcuts.