- Fixed deadlock in FileBox plugin copyFrom implementation (single lock) - Added TLV Handle (tag=8) parsing in calls.rs for returned BoxRefs - Improved plugin loader with config path consistency and detailed logging - Fixed loader routing for proper Handle type_id/fini_method_id resolution - Added detailed logging for TLV encoding/decoding in plugin_loader_v2 Test docs/examples/plugin_boxref_return.nyash now works correctly: - cloneSelf() returns FileBox Handle properly - copyFrom(Box) accepts plugin Box arguments - Both FileBox instances close and fini correctly 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
59 lines
1.8 KiB
Plaintext
59 lines
1.8 KiB
Plaintext
現代的プログラミング言語の依存関係システムについて深い相談です。
|
||
|
||
【#include地獄からの脱却】
|
||
C/C++の#includeシステムの問題:
|
||
- 循環参照が頻発
|
||
- Makefileが複雑すぎる
|
||
- 重複インクルード問題
|
||
- 依存関係の把握が困難
|
||
|
||
【現代言語の革新的解決策調査】
|
||
Rust: Cargo.toml + use文
|
||
Go: go.mod + import文
|
||
TypeScript: package.json + import/export
|
||
Python: pyproject.toml + import文
|
||
C#: .csproj + using文
|
||
|
||
【共通する革新ポイント】
|
||
1. パッケージマネージャー統合
|
||
2. 明示的依存宣言ファイル
|
||
3. モジュール/パッケージ単位管理
|
||
4. ビルドツール統合
|
||
5. 循環依存の静的検出
|
||
|
||
【Nyash独自アプローチ提案:nyash.link】
|
||
# nyash.link - 依存管理専用ファイル
|
||
project:
|
||
name: "my-app"
|
||
version: "1.0.0"
|
||
|
||
dependencies:
|
||
nyashstd: "builtin"
|
||
nyash-http: "^2.1.0"
|
||
"./utils": "local"
|
||
|
||
modules:
|
||
main: []
|
||
utils: ["data"]
|
||
data: []
|
||
# 循環依存自動検出・エラー
|
||
|
||
build:
|
||
target: "wasm"
|
||
optimize: true
|
||
|
||
【設計哲学の問い】
|
||
1. #includeを完全に捨てて、宣言的依存管理にすべきか?
|
||
2. nyash.linkのような専用ファイルは過剰か、必要か?
|
||
3. 循環依存を言語レベルで禁止すべきか?
|
||
4. パッケージマネージャーとビルドシステムの統合度は?
|
||
5. 既存言語と差別化できる革新的な仕組みは?
|
||
|
||
【技術的課題】
|
||
- 依存解決アルゴリズムの効率性
|
||
- バージョン管理との統合
|
||
- IDE/Language Serverとの連携
|
||
- インクリメンタルビルドとの相性
|
||
- WebAssemblyターゲットでの最適化
|
||
|
||
現代のソフトウェア開発における依存関係管理のベストプラクティスと、Nyash言語に最適な革新的依存システムをご提案ください。 |