| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
| |
* Fixing typos
|
| |
|
|
|
|
| |
Also add `Float.quiet_nan` and `Float.signaling_nan`
|
|
|
|
| |
Better documentation for [string_of_float] (and [Float.to_string])
with similar warnings for [print_float] and [prerr_float] in a similar way.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This PR (#11213) addresses issues pointed out in #11176 and #11178. It
makes the following changes:
* `Domain.at_exit` is now domain-local.
* `Domain.at_exit` also used to ignore exceptions. Now, these exceptions
are surfaced as the result of domain execution (similar to how
`Stdlib.at_exit` works).
* `Domain.at_startup` is renamed to `Domain.at_each_spawn`.
* `Domain.at_first_spawn` is renamed to `Domain.before_first_spawn`.
* `Domain.before_first_spawn` and `Domain.at_each_spawn` run the
callbacks in FIFO order (as requested in #11178).
The PR also adds tests to the test suite.
|
| |
|
| |
|
|
|
|
| |
Co-authored-by: Florian Angeletti <florian.angeletti@inria.fr>
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
ocaml-multicore/stdlib_effects
Move effect handlers to its own module in Stdlib
|
| | |
|
|/ |
|
|\ |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| | |
The core OCaml development team decided to remove the Stream and Genlex modules from the standard library, making them available in a separate library camlp-streams instead.
To ease the transition, this commit adds a "deprecated" alert to the Stream and Genlex stdlib modules. Actual removal will take place one or two major releases later.
|
|\ \
| |/
| |
| | |
parallel_minor_gc_4_13
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Added some missing C99 float operations
* Update float.template.mli
* Automatically enable shims on VS 2012 and earlier
* Refactor lib-float test
* Add autoconf test for runnable host exes
When building for Windows, configuring with --build and --host enables
cross-compilation mode but configuring with just --host doesn't (since
the resulting executables can be run on the build machine). Adds an
additional check to see whether executables from the C compiler can be
run _regardless_ of autoconf's cross-compilation mode.
* Workaround broken round on mingw-w64
* Generalise the fma test in configure
Co-authored-by: David Allsopp <david.allsopp@metastack.com>
|
|\ \
| |/
| |
| | |
parallel_minor_gc_4_13
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
The following functions raise Invalid_argument/Failure exceptions when
Sys.max_array_length/Sys.max_string_length gets exceeded:
- Stdlib.( ^ )
- Buffer.add_*
|
| | |
|
| |
| |
| |
| | |
systhreads
|
|\ \
| |/
| |
| | |
parallel_minor_gc_4_12
|
| | |
|
|\ \
| |/
| |
| | |
parallel_minor_gc_4_12
|
| |\
| | |
| | | |
Revised {in,out}_channel_length and seek_in for channels in text mode
|
| | |
| | |
| | |
| | | |
Add changes for 9872
|
|\ \ \
| |/ /
| | |
| | | |
parallel_minor_gc_4_12
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
```ocaml
val left : 'a -> ('a, 'b) t
val right : 'b -> ('a, 'b) t
val is_left : ('a, 'b) t -> bool
val is_right : ('a, 'b) t -> bool
val find_left : ('a, 'b) t -> 'a option
val find_right : ('a, 'b) t -> 'b option
val map_left : ('a1 -> 'a2) -> ('a1, 'b) t -> ('a2, 'b) t
val map_right : ('b1 -> 'b2) -> ('a, 'b1) t -> ('a, 'b2) t
val map : left:('a1 -> 'a2) -> right:('b1 -> 'b2) -> ('a1, 'b1) t -> ('a2, 'b2) t
val fold : left:('a -> 'c) -> right:('b -> 'c) -> ('a, 'b) t -> 'c
val equal :
left:('a -> 'a -> bool) -> right:('b -> 'b -> bool) ->
('a, 'b) t -> ('a, 'b) t -> bool
val compare :
left:('a -> 'a -> int) -> right:('b -> 'b -> int) ->
('a, 'b) t -> ('a, 'b) t -> int
```
Unlike [result], no [either] type is made available in Stdlib,
one needs to access [Either.t] explicitly:
- This type is less common in typical OCaml codebases,
which prefer domain-specific variant types whose constructors
carry more meaning.
- Adding this to Stdlib would raise warnings in existing codebases
that already use a constructor named Left or Right:
+ when opening a module that exports such a name,
warning 45 is raised
+ adding a second constructor of the same name in scope kicks
in the disambiguation mechanisms, and warning 41 may now
be raised by existing code.
If the use becomes more common in the future we can always
revisit this choice.
|
|\ \
| |/
| |
| | |
parallel_minor_gc_4_12
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This module provides a purely sequential implementation of the
concurrent atomic references provided by the Multicore OCaml
standard library:
https://github.com/ocaml-multicore/ocaml-multicore/blob/parallel_minor_gc/stdlib/atomic.mli
This sequential implementation is provided in the interest of
compatibility: when people will start writing code to run on
Multicore, it would be nice if their use of Atomic was
backward-compatible with older versions of OCaml without having to
import additional compatibility layers. *)
|
|\ \
| |/
| |
| | |
parallel_minor_gc_4_12
|
| | |
|
|\ \
| |/
| |
| | |
parallel_minor_gc_4_12
|
| |
| |
| |
| |
| |
| |
| | |
Fix documentation comment about NaN propagation
Closes: #7891
Co-authored-by: David Allsopp <david.allsopp@metastack.com>
|
| |
| |
| |
| |
| | |
Documentation: Stack_overflow is reliable, Out_of_memory is not.
(cherry picked from commit 84f62eee5d26efb936cde0e799b7aaa39e46c010)
|
| | |
|
|\ \
| | |
| | |
| | | |
parallel_minor_gc_4_10
|
| |/
| |
| |
| |
| |
| | |
Stack overflow detection is fixed in 4.10 at #8670.
No changes needed.
|
|\ \
| |/
| |
| | |
parallel_minor_gc_4_09
|
| | |
|