Skip to content

feat: add kernel mode and lock host language contract - #69

Merged
esrrhs merged 2 commits into
masterfrom
feat/kernel-language-contract
Dec 2, 2026
Merged

esrrhs merged 2 commits into
masterfrom
feat/kernel-language-contract

Conversation

@esrrhs

@esrrhs esrrhs commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • add --mode=kernel / CompileMode::Kernel
  • reject floating-point literals and / at compile time in kernel mode while preserving default JIT behavior
  • document the language contract and why host CVar / c_runtime_header.h are not a bare-metal backend
  • add regression coverage for existing language semantics, Lua escapes, and kernel mode

Verification

  • ./unit_tests --gtest_filter='language_contract.*:flua_host.kernel_mode*'
  • 15 tests passed

Kernel mode rejects floating-point literals and '/' at compile time without changing the default JIT or the 16-byte CVar. Document why the host C runtime is not a bare-metal backend, and keep Lua decimal and hex string escapes.

Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov-commenter

codecov-commenter commented Dec 1, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.56%. Comparing base (358697f) to head (41b7d2f).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #69      +/-   ##
==========================================
+ Coverage   94.55%   94.56%   +0.01%     
==========================================
  Files         130      130              
  Lines       32425    32460      +35     
==========================================
+ Hits        30659    30696      +37     
+ Misses       1766     1764       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Co-authored-by: Cursor <cursoragent@cursor.com>
@esrrhs
esrrhs merged commit c7dcd8f into master Dec 2, 2026
9 checks passed
@esrrhs
esrrhs deleted the feat/kernel-language-contract branch December 2, 2026 02:13
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.

2 participants