/ .dev / .cursor / rules / julia.mdc
julia.mdc
 1  ---
 2  description: 
 3  globs: 
 4  alwaysApply: true
 5  ---
 6  When `using` or `import` modules, look for the existing dependencies and try to import those modules or dependencies from those dependencies we already have (in the Project.toml).
 7  Try avoiding `if haskey() ...` in favor of `@lget! ...` (see the macro definition in the Lang package).
 8  Uphold the codebase's uniformity by strictly observing Julia's standard naming conventions for variables and functions.
 9  Make edits as surgical as possible, try to not throw away whole functions when changes need to be made.
10  When optimizing code, remember that in julia you have to consider hot loops with not well defined types and unnecessary allocations. Function barries help type inference.