Broken codegen
Open
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 95
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
From https://discord.com/channels/654415002224295940/1387196923881984023/1387200070558027876, we have an issue with codegen.
recursive1Arg n =
if n then
recursive1Arg (not n)
else
False
var $author$project$Elm$Review$Main$recursive1Arg = function (n) {
recursive1Arg:
while (true) {
if (n) {
var $temp$n = !n;
n = $temp$n;
} else {
return false;
}
}
};
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Elm recursive1Arg example and inspecting the generated JavaScript shown in the issue. Trace the compiler's code-generation path for this recursive tail call; done means the generated JavaScript correctly represents the Elm behavior without the broken recursive reference.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elm, haskell
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100