Logo
Explore Help
Register Sign In
tomoaki/hakorune
1
0
Fork 0
You've already forked hakorune
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
020990463d125ff860879b59a9244e2fe27b3b93
hakorune/examples/jit_string_length_policy_demo.nyash

14 lines
292 B
Plaintext
Raw Normal View History

feat(jit): JIT Strictモード実装とプラグイン経路の安定化 - InvokePolicy/Observe導入でLowererの分岐をスリム化 - ArrayBox/MapBox/StringBoxのプラグイン経路統一 - 特殊コメント機能(@jit-debug, @plugin-builtins, @jit-strict)実装 - 型ヒント伝搬パス(TypeHintPass)を独立モジュール化 - VM→Plugin引数整合の安定化(I64統一、IntegerBox自動プリミティブ化) - StringBoxのpost-birth初期化(空文字列セグフォルト修正) - JIT観測サンプル追加(Array/Map/String) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 21:39:47 +09:00
// @jit-debug
// @plugin-builtins
static box Main {
main() {
local s
s = new StringBox("") // empty string
// In a real case we'd set content; plugin StringBox.length() is RO path demo
// For observable behavior, length() on empty should be 0
return s.length()
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 26ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API