Repository activity
40458 results across all weeks
ephemeron.mli: clarify promotion of data of keys that die young
Recently at LexiFi we observed an issue where the use of ephemerons resulted in excessive GC work penalizing the running time of the program. It turned out to be related to the fact that in OCaml 5 (unlike in OCaml 4), the data of ephemerons whose key dies while still in the minor heap is still promoted (as garbage) to the major heap, delaying the moment whe…
Nicolás Ojeda Bär (@nojb)fix 15185 (a pattern-matching miscompilation on certain integer ranges)
My understanding of #15185 is that it comes from an old bug in the pattern-matching compiler, in the function as_interval_canfail. My proposed fix first tries to guess and document the intended behavior of as_interval_{canfail,nofail} functions (which makes the bug rather apparent), and then (in a separate commit) fixes the bug.
Gabriel Scherer (@gasche)non-exhaustive integer match crashes instead of raising Match_failure
Alperen Keleş (@alpaylan)pattern-matching: fix 15171 (obscure compile-time assert failure on redundant guarded or-patterns)
This is a proposed fix for #15171 reported by @smuenzel. Most of the commits involve fixing some aspects of the -dmatchcomp output (look at the commit messages to see before/after examples), and then a few-lines refactoring and a one-line fix.
Gabriel Scherer (@gasche)trunk/5.6 gets stuck compiling large classes
The diffast-core package from opam-repository now takes hours to compile on 5.6 vs. 5.5 and older.
Kate (@kit-ty-kate)typechecker: no more "rigid variants" mode for unification
This PR proposes to remove the rigid variants mode for unification that was added as a fix in order to handle better conjunctive types within type constraints in classes:
Florian Angeletti (@Octachron)New ocamllsp/completePrefixAtPos request
New ocamllsp/completePrefixAtPos custom request.
Sean Whitton (@spwhitton)(data) academic-testimonials: fix swapped titles and publications
The first two entries on /academic-users had their titles and publications swapped:
Makerprism Bot (@makerprism-bot)(data) industrial-users: update Tarides entry
Describe who Tarides works with, the services teams need to adopt OCaml, Tarides' part in maintaining the OCaml Platform tools, and its main open-source projects (MirageOS, Irmin, Ortac).
sabine (@sabine)(data) papers: link archived CUFP 2008 slides for Xen and the Art of OCaml
cufp.org/archive no longer serves the slides for Anil Madhavapeddy's CUFP 2008 talk. This links the Wayback Machine copy (8-page PDF, checked).
Makerprism Bot (@makerprism-bot)(docs) CONTRIBUTING: fix Ahrefs success story link
The example link used the slug peta-byte-scale-..., which is a 404. The live slug is petabyte-scale-web-crawling-and-data-processing (as linked from /industrial-users). Also "Ahref's" → "Ahrefs'".
Makerprism Bot (@makerprism-bot)Bound the per-version status and search-index caches
Backend memory grows with the number of distinct package versions served. On production it went from about 2 GB per backend three hours after a restart to 3.5 GB after eight hours, during which 23,472 distinct package versions were requested.
Mark Elvers (@mtelvers)Doc-page render downloads full odoc search index for a digest → OOM (awso 371 MB index)
Summary
Cuihtlauac Alvarado (@cuihtlauac)Evaluate a faster wire format (csexp / BSON / Cap'n Proto) for docs-backend artifacts to cut JSON parse cost
Summary
Cuihtlauac Alvarado (@cuihtlauac)Evaluate how much of ocaml.org can be pre-rendered/static vs. dynamic
Background
Cuihtlauac Alvarado (@cuihtlauac)Extract shared Bounded_cache lib and de-duplicate the two cache copies
Follow-up to #3861 (the cache-bounding fix). Stacked on #3861 — it branches off that PR's head, so until #3861 merges the diff here also shows its two commits. Review only the top commit (Extract shared Bounded_cache lib …); I'll rebase onto main once #3861 lands.
Cuihtlauac Alvarado (@cuihtlauac)Memoise the rendered doc sidebar (navmap) per package version
Status: draft / sketch
Cuihtlauac Alvarado (@cuihtlauac)OCaml 5.5.2 release pages
This PR adds the release page for the upcoming 5.5.2 release.
Florian Angeletti (@Octachron)Serve the doc sidebar as a cacheable fragment instead of inlining it
Every documentation page used to render the package's whole module tree into its left sidebar. The tree is the same for every page of a package version, and for large packages it is megabytes of HTML. On a sample of real doc URLs it was a median 97% of the page. Rendering, copying and compressing it on every request is where the backend's CPU and memory chur…
Mark Elvers (@mtelvers)Truncate the package "Used by" list, full list behind ?used-by=all
Status: draft / sketch
Cuihtlauac Alvarado (@cuihtlauac)