KC Sivaramakrishnan
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # OCaml Reviewing Ideas ###### tags: `OCaml5.0` ## Context Tarides has contributed significant amount of new code to OCaml with the Multicore OCaml project. While Tarides continues to develop and maintain this code, we have also gained significant expertise on several parts of the OCaml compiler. Not just on the code that we contributed. Recently, the OCaml compiler core team announced that they are facing a [maintenance bottleneck](https://discuss.ocaml.org/t/maintenance-bottlenecks-in-the-compiler-distribution/11045). Given that our engineers have lots of expertise in many parts of the compiler, we encourage our engineers to spend up to 20% of their time with general OCaml maintenance. This can include reviewing PRs, triaging issues, improving documentation, etc. Below is a curated list of issues that we (KC, David, Jon, Jan) think Tarides has the expertise to work on. This list will be kept updated with reviewing ideas. If you pick one of these items, add your name to the item so that the work isn't duplicated. Some work does require multiple eyes, and use this note as a way to sync with others. Please report any OCaml maintenance work under the KR "Comp65: General maintenance of OCaml". If you want to propose to add an item, please ping one of us (KC, David, Jon, Jan) on #multicore-dev. This is just to ensure we can prioritise and only work on items that are relevant to the expertise in the teams. -- KC, David, Jon, Jan ## Stack (Newer items are added to the top) ### 11/07/23 * Performance improvements for sequential code running on OCaml 5 * Easycrypt: https://github.com/EasyCrypt/easycrypt/issues/390 * Frama-C: https://github.com/ocaml/ocaml/issues/11662 * Frama-C: https://github.com/ocaml/ocaml/issues/11733 * Pyre: https://github.com/ocaml/ocaml/issues/11913 * Infer: https://discuss.ocaml.org/t/ocaml-5-gc-releasing-memory-back-to-the-os/11293/16 ### 02/06/23 * Power support for OCaml 5!! --https://github.com/ocaml/ocaml/pull/12276 + Last of the tier 1 supported architectures. Still the fastest cores that you can buy. We have a 192 3+ Ghz core behemoth on which we can run OCaml once this PR is merged. * Macros to describe layout of OCaml stacks -- https://github.com/ocaml/ocaml/pull/12275 + Simple addition. KC has had a look. Fabrice may be having a look too. * Refactor the computation of stack frame parameters -- https://github.com/ocaml/ocaml/pull/12242 + One more for the backend experts. This is more extensive and more eyes the better. * Compaction -- https://github.com/ocaml/ocaml/pull/12193 + From our team but our own reviews also matter here. This is a blocker for Meta and JS to switch to OCaml 5. Please review, even if it is only bits and pieces. * Async signals work (from gadmm) -- https://github.com/ocaml/ocaml/pull/11307 + Difficult one to review, but gains are high since it fixes a bug with eio https://github.com/ocaml/ocaml/issues/12253 * domain_create: deliver an Out_of_memory exception if malloc fails -- https://github.com/ocaml/ocaml/pull/12268 + Easy one to review. ### 04/04/23 ### 28/02/23 * Fix idle domain gc: https://github.com/ocaml/ocaml/pull/11903 + We have severe performance regressions when a domain is idle. This is due to the fact that major GC speed is calculated per domain and the idle domain is very infrequent to perform its own domain local slices. This PR aims to fix that. * OOM with idle domain: https://github.com/ocaml/ocaml/issues/12042 + This one is related to #11903. But it turns out that even with #11903, which aims to fix idle domain GC, the problem is still there. * Domain.DLS: document that creating a high number of DLS keys may not be a good idea: https://github.com/ocaml/ocaml/issues/11920 + Documentation work. But a good one if you are keen to understand how things work and have a penchant for good docs. * Restoring the unloadable runtime / memory clean-up at exit code (`OCAMLRUNPARAM=c=1`): https://github.com/ocaml/ocaml/issues/10865 + Restoration of a 4.x feature broken by the multicore merge + Good PR for exploring the memory subsystem parts of the C runtime + Previously, the other-configs job on Inria's CI tested this ### Added earlier * Mention in Gc documentation that compaction is currently not implemented: https://github.com/ocaml/ocaml/pull/11816 * Let's push this through to completion. Perhaps others can help review. * Simplifications and fixes to multicore systhreads implementation: https://github.com/ocaml/ocaml/pull/11386 * This is pretty old. First, we should look at aim of the PR is still relevant. * Atomic.modify, Atomic.modify_get: https://github.com/ocaml/ocaml/pull/10798 * This is interesting and useful. Perhaps Vesa? ### Taken * Ephemerons and weak references performance: https://github.com/ocaml-bench/sandmark/pull/442#issuecomment-1447991017 * @fabbing, ... * More volatile casts might be needed for OCaml 5.0: https://github.com/ocaml/ocaml/issues/11426 * This is for someone who understands the C memory model a bit and wants to get into the rabbit hole of cross-language memory models. But the actual task is more of an audit and simple fixes. * @OlivierNicole, … ### Completed * GC alarm leads to non-termination if the callback causes a major GC: https://github.com/ocaml/ocaml/issues/12002 * @fabbing * Random failure in `intext_par.ml`: https://github.com/ocaml/ocaml/issues/12056 + This seems to only happen in the CI. It would be useful to first recreate the failure locally. * Finaliser called before value is unreachable: https://github.com/ocaml/ocaml/issues/11995 * @engil, @kayceesrk * Crash on parallel usage of Weak Hash Set: https://github.com/ocaml/ocaml/issues/11934 + @engil has self-assigned this. If you like to understand how to debug these sort of issues, please talk to @engil. He has a number of tricks for parallel debugging, all of which are not written down. + @NickBarnes has a fix * Big array does not free memory in OCaml 5: https://github.com/ocaml/ocaml/issues/12161 + covered by https://github.com/ocaml/ocaml/issues/10865 - to be done by us

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully