stan-dev / stan-dev/stanc3

Represent distributions in MIR, refactor backend

Open
#324 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cleanup cpp-codegen
Dominant language
OCaml
Stars
160
Forks
59
Avg merge
21h 45m
Merged PRs (30d)
26

Description

The backend is getting pretty complicated and in many places we're still relying on function name string suffices to determine things like which arguments need to be passed to which, and the logic is getting kinda crazy. I'd like to see some separate variants made that line up more closely with the platonic ideal of distributions (with their various grouped functions like _rng, _lpdf, _ccdf, etc).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the backend code that represents distributions in MIR and the logic that uses function-name suffixes such as _rng, _lpdf, and _ccdf. Define the separate distribution variants and update the affected backend paths so argument selection no longer depends on suffix-based logic.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
backend, compilers
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.