JuliaLang / JuliaLang/AllocCheck.jl

design of `@check_allocs` for static compilation

Open
#63 0 comments 5 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
255
Forks
14
PR merge metrics
No merged PRs in 30d

Description

The way `@check_allocs` currently works is unintuitive, since it is a static analysis but requires you to actually call the function. Of course we need that to pick up actual argument types, and it works ok for running tests, but we will need something that is compatible with a static compilation workflow. For example, a macro that records the method in a list somewhere, and then if you compile the code with PackageCompiler or StaticCompiler it calls check_allocs on all specializations to report errors before generating the output. We can use this issue to hash out exactly how it should work.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the current @check_allocs entry point and how it is used during tests. Compare that behavior with the static compilation workflows of PackageCompiler and StaticCompiler. Done means the issue has an agreed design for recording methods, checking their specializations during compilation, and reporting allocation errors before output generation.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
compilers, performance
Issue type
Feature
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.