Repository activity
40458 results across all weeks
Handling of bigarray subarrays in Gc.Memprof
Török Edwin (@edwintorok)Implement Dynarray.sort
This PR adds new standard library functions : Dynarray.stable_sort_sub, Dynarray.stable_sort and Dynarray.sort.
JeannalyseImprove `CAMLthread_local` definition for C/C++ interoperability
For symbols with external linkage, care must be taken for C++ interoperability.
Antonin Décimo (@MisterDA)Inline the full-application part of caml_apply
Similar to #198, but we structure the code so that the argument loading is not repeated for the caml_apply and full application call, in order to not increase code size too much. This is especially important for functions with many arguments.
Stefan Muenzel (@smuenzel)Manual: describe what needs to be installed by a library
Hello,
Daniel Bünzli (@dbuenzli)Merge `Dynlink` into a single module
This is an extraction of the first four commits of #13745, following on from https://github.com/ocaml/ocaml/pull/13745#pullrequestreview-2603386477.
David Allsopp (@dra27)Move systhreads into the runtime (proof of concept).
This is a draft PR to explore moving the systhreads implementation into the runtime. The division has been ~fictional for a while. Natural next steps (not yet taken) would be:
Nick Barnes (@NickBarnes)New implementation for Hashtbl
This PR proposes a new implementation of the module Hashtbl. The main change it brings is a deterministic order for iterations on a table, whether it was created with a random seed or not.
JeannalyseRe-implement weak hashsets using open-addressing with linear probing.
The Weak.Make module of the standard library provides "weak hashsets", sets of elements that are only kept alive if something else in the program keeps them alive. The typical use-case is to implement hash-consing: whenever building a new term, look for an equivalent term that would already be in the hashset and use it instead, increasing memory sharing. Has…
Gabriel Scherer (@gasche)Reoptimize `ocamlc -g`
The lambda-code generated when using ocamlc -g differs from the code generated by ocamlc -no-g or ocamlopt, for two orthogonal reasons:
Gabriel Scherer (@gasche)Result.all, Option.all for collapsing lists of values
These are two functions which are helpful for "transposing" lists of optional/possibly-erroring values into optional/possibly-erroring lists, e.g., turning a 'a option list into a 'a list option. They differ from something like List.filter in that they are all-or-nothing, either all the values are on the happy path and you get back a list, or you get back No…
Brian Ward (@WardBrian)Revert "Temporarily disable warning C5387 on MSVC"
TODO item following up #14102 to be merged as-and-when:
David Allsopp (@dra27)Sanitize the build environment
A further extension of the quick fix in #14914 ~~(which this PR sits on top of)~~.
David Allsopp (@dra27)Stdlib oversights around iarray
While converting some of my code to iarray, I ran into a couple of oversights in the std library:
Andreas Rossberg (@rossberg)Stdlib: Make `Sys.file_exists` raise `Sys_error` in error cases, instead of returning `false`
The semantics of Sys.file_exists returning false in error cases is imprecise and impractical to deal with. It would be helpful if an appropriate Sys_error was raised in error cases.
sabine (@sabine)Stdlib: make the Hashtbl per default seeded, unless OCAMLRUNPARAM includes "R=0"
The compiler requires deterministic hashtable; Consistbl passes ~random:false
Hannes Mehnert (@hannesm)Structured diagnostics for the compiler
See also https://github.com/ocaml/RFCs/pull/45 and https://icfp24.sigplan.org/details/ocaml-2024-papers/16/Structured-diagnostics-for-the-OCaml-compiler for previous discussions .
Florian Angeletti (@Octachron)Support for trunk compilers in ocaml-system in opam
Re-work of the proposal in https://github.com/ocaml/opam-source-archives/pull/52.
David Allsopp (@dra27)Support frame pointers on POWER architecture
This builds on the now-merged POWER CFI support (#14482) to add frame pointers on POWER. I've tested on the Ubuntu 24.04 ppc64le platform I've access to, it should work on ppc64 big endian but I don't have access to a test machine for that. I haven't tested the TSAN support as I think there are other PRs like https://github.com/ocaml/ocaml/pull/14302 that ne…
Tim McGilchrist (@tmcgilchrist)Support relocatable cross compilers
This PR make it possible to build relocatable cross compilers. In particular, it allows the call configure --with-relative-libdir TARGET_LIBDIR=... which was explicitly forbidden as setting (a merged host and target) libdir twice.
shym