Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S server
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mTask
  • server
  • Issues
  • #22
Closed
Open
Issue created Apr 20, 2021 by Mart Lubbers@mlubbersOwner

mTask's sequence operators sometimes lead to stack overflows.

Steps are lazy but sequences are not. While compiling, it should be checked whether it is safe to use a strict sequence and if not, fall back to a regular step.

For example, the following program leads to a stack overflow because the sequence is strictly evaluated.

declarePin D4 PMOutput \d4->
fun \blink=(\st->
         writeD d3 st
    >>|. delay (lit 500)
    >>|. blink (not st)
) In {main = blink (lit True)}
Assignee
Assign to
Time tracking