Comments (2)
OCaml 5 was designed specifically to allow for running OCaml 4 and below code on the OCaml 5 compiler with minimal modifications and no change in behaviour, thus allowing for the migration to multiple cores as a separate step.
Therefore, it would be a real barrier to migration if parallel-unsafe code were disallowed via an upper bound to OCaml 5 in opam packages! The vast majority of code I run on OCaml 5 is still single-core, and that's completely ok.
There have been other approaches to documented the parallel safety of dependencies:
- documentation (e.g. ocaml/ocaml#11237)
- annotations for unsynchronized access (e.g. https://github.com/ocaml/ocaml/pull/11193/files)
- whole-program race detectors like TSAN (e.g. https://discuss.ocaml.org/t/ann-tsan-support-in-ocaml-5-1-and-blog-post/13306)
from opam-repository.
Thanks @avsm for your opinion. I'm myself not using OCaml 5 anywhere, and just want to gather some feedback / opinions about what a potential OCaml 5 user could expect of the opam-repository packages. I understand your perspective, while it may be frustrating for new users that find every 2 seconds a data race - but c'est la vie.
from opam-repository.
Related Issues (20)
- conf-gmp v4 doesn't install anymore HOT 1
- strange description of "host-system-other" HOT 1
- ERROR when building from source HOT 1
- Openbsd fails to build ocaml 5.20, 4.14.2 etc. on a fresh install HOT 2
- make conf-linux-kernel-version packages HOT 1
- [conf-libpcre] Installing conf-libpcre on Asahi Linux Fedora fails HOT 1
- Error building ocaml-base-compiler.5.2.0 on x86_64 windows HOT 2
- `opam switch create` with `static` option fails on Ubuntu aarch64 HOT 6
- warnings in windows ci logs
- odoc-parser is missing a dependency on result HOT 1
- curly is missing a dependency on result HOT 1
- `conf-libclang` on Ubuntu/Debian does not install all needed dependencies
- libcamlrun.a Error 1 HOT 5
- ld: archive member '/' not a mach-o file HOT 2
- Duplicate available fields
- Policy about adding multiple packages in a single PR ? HOT 2
- Use GitHub hooks to post a comment with error logs from CI jobs, for posterity HOT 6
- conf-python-3 + Cygwin(mingw64) + opam 2.2.x = "python3: command not found" HOT 3
- Error installing vscoq-language-server on Windows 11 HOT 1
- A failure in the middle of the build may be caused by build parallelism (enabled by default). HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opam-repository.