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
0ef032ccc8a25ba670615e1a000990767b1cf6b8
hakorune/examples/jit_map_policy_demo.hako

20 lines
336 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
// MapBox end-to-end via InvokePolicy/Observe
// - Exercises: size/get/has/set on plugin-builtins path
static box Main {
main() {
local m, ok, v, sz
m = new MapBox()
m.set(1, 100)
m.set(2, 200)
ok = m.has(1)
v = m.get(1)
sz = m.size()
return sz // expect: 2
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 66ms 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