Skip to content

Conversation

@smaillet
Copy link
Member

Added support to indicate if function redifitinion is supported.

  • For LazyJIT re-definition is NOT supported.
    • If it is possible to do, the solution , using only LLVM-C API, is far from obvious.
      • The asynchronous nature of resolution makes it a VERY complex problem. Fortunately, redefinition is a feature of dynamic runtimes that don't normally use lazy code execution so it's mostly an acedemic excercise. This implementation deals with it as an error at the AST generation with an error. The DynamicRuntimeState is used to indicate if the runtime supports re-definitions.
  • Minor doc comment updates

* For LazyJIT re-definition is NOT supported.
    - If it is possible to do, the solution , using only LLVM-C API is far from obvious. The asynchronous nature of resolution makes it a VERY complex problem. Fortunately, redefinition is a feature of dynamic runtimes that don't normally use lazy code execution so it's mostly an acedemic excercise. This implementation deals with it as an error at the AST generation with an error. The `DynamicRuntimeState` is used to indicate if the runtime supports re-definitions.
* Minor doc comment updates
@github-actions
Copy link

Test Results

311 tests  +1   198 ✅ +1   11s ⏱️ ±0s
  8 suites ±0   113 💤 ±0 
  8 files   ±0     0 ❌ ±0 

Results for commit 2927e5a. ± Comparison against base commit 4838941.

@smaillet smaillet merged commit b378657 into UbiquityDotNET:develop Oct 29, 2025
4 checks passed
@smaillet smaillet deleted the RedefFlag branch October 29, 2025 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant