Commit Graph

9 Commits

Author SHA1 Message Date
11506cee3b Phase 11-12: LLVM backend initial, semantics layer, plugin unification
Major changes:
- LLVM backend initial implementation (compiler.rs, llvm mode)
- Semantics layer integration in interpreter (operators.rs)
- Phase 12 plugin architecture revision (3-layer system)
- Builtin box removal preparation
- MIR instruction set documentation (26→Core-15 migration)
- Cross-backend testing infrastructure
- Await/nowait syntax support

New features:
- LLVM AOT compilation support (--backend llvm)
- Semantics layer for interpreter→VM flow
- Tri-backend smoke tests
- Plugin-only registry mode

Bug fixes:
- Interpreter plugin box arithmetic operations
- Branch test returns incorrect values

Documentation:
- Phase 12 README.md updated with new plugin architecture
- Removed obsolete NYIR proposals
- Added LLVM test programs documentation

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-01 23:44:34 +09:00
8e58942726 feat: プラグインパスをOS非依存に更新(.so拡張子削除)
- nyash.tomlからすべての.so拡張子を削除
- plugin_loader_v2のresolve_library_pathが自動的に適切な拡張子を追加
  - Linux: .so
  - Windows: .dll
  - macOS: .dylib
- クロスプラットフォーム対応の準備完了
2025-08-29 23:11:21 +09:00
3d8ba3f3ec fix(jit): NewBoxのJIT安全化とDebugBox Phase 1実装
- NewBoxのJIT扱いを安全化(src/jit/lower/core.rs)
  - NYASH_USE_PLUGIN_BUILTINS=1 && args.is_empty() かつ StringBox/IntegerBox のみJIT許可
  - ArrayBox/MapBox等のプラグインBoxまたは引数ありはunsupportedとしてカウント
  - unsupported>0の関数はJIT対象外となりVM実行にフォールバック(Segfault回避)

- DebugBox Phase 1実装(JITトレース機能)
  - tracePluginCalls(bool)でJITシムトレースON/OFF
  - getJitEvents()で直近のJITイベント取得
  - src/jit/shim_trace.rs追加でトレース基盤実装

- Printのサポート
  - PrintはJIT非対応に戻しVM経路で確実に出力(出力消失解消)

- テストとサンプル追加
  - examples/jit_plugin_invoke_param_array.nyash: 最小JITスモークテスト
  - examples/py_result_*.nyash: Python plugin結果チェーン処理デモ

- PyRuntimeBox拡張
  - str()メソッドでPyObjectのstring表現を取得可能に
  - エラーハンドリング改善とResultチェーンサポート

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 13:46:18 +09:00
a9e82933cc docs: README更新 - 20日でネイティブEXE達成を反映
- 英語版・日本語版ともに最新の成果を反映
- 20日間の開発タイムラインを強調
- 5つの実行モード(インタープリター/VM/JIT/ネイティブ/WASM)を明記
- プラグインシステムとPython統合の実例を追加
- パフォーマンスベンチマーク結果を更新(最大27倍高速化)
2025-08-29 11:49:01 +09:00
25fbebd650 docs: AOT/ネイティブコンパイル情報をexecution-backends.mdに追加
- 4つ目の実行方式としてAOT(Ahead-of-Time)コンパイルを文書化
- MIR→WASM→.cwasm のコンパイルパイプラインを説明
- wasm-backend featureでのビルド方法を明記
- 現在の実装状況(完全なスタンドアロン実行ファイルはTODO)を記載
- CLAUDE.mdのWASM説明も3種類(Rust→WASM、Nyash→WASM、Nyash→AOT)に更新
- CURRENT_TASK.mdにPhase 10.9/10.10の完了項目を追加

ChatGPT5さんのAOT試行に対応した適切なドキュメント配置を実施

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 02:05:39 +09:00
5f3cdc3020 fix: Add README.ja.md to root directory for GitHub
- Fixes 404 error when accessing Japanese documentation on GitHub
- Copied from docs/archive/README.ja.md
- Now both English and Japanese READMEs are available at root level

🇯🇵 日本語版READMEをルートディレクトリに追加して404エラーを解消
2025-08-27 01:14:55 +09:00
621bf7cc3d docs: reorganize into 説明書/予定/archive; update docs/README.md and CLAUDE.md; move root .nyash to local_tests; consolidate native-plan notes into README + archive 2025-08-13 18:54:02 +09:00
a4d32b3c57 📝 docs: Windows版ビルド手順を全ドキュメントに追記
🪟 新機能追加:
• cargo-xwinクロスコンパイル手順
• Windows実行ファイル (916KB) 生成方法
• Linux/WSL/Windows/WebAssembly 4プラットフォーム対応

📚 更新ドキュメント:
• CLAUDE.md - 開発ガイド更新
• README.md - 英語版に Windows クロスコンパイル
• README.ja.md - 日本語版に Windows 手順

🎯 完全マルチプラットフォーム対応達成!
Linux + Windows + WebAssembly のトリプル展開可能

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-09 16:19:22 +09:00
5d4bae2402 🌍 feat: バイリンガル対応 - 英語・日本語README分離
 新機能:
• README.md - 英語版(国際標準)
• README.ja.md - 日本語版(完全翻訳)
• 相互リンクで行き来可能
• 各言語ユーザーに最適化

🎯 国際展開準備:
• GitHub自動言語認識対応
• メンテナンス効率化
• 世界中の開発者に対応

🌏 Global reach with localized experience!
2025-08-09 15:37:24 +09:00