adbb0201a9
chore(fmt): add legacy stubs and strip trailing whitespace to unblock cargo fmt
2025-09-17 07:43:07 +09:00
faf79c5d52
🔧 Fix all unused_mut warnings: 16 instances cleaned up
...
- Remove unnecessary 'mut' from variable declarations
- Clean up code in boxes/, interpreter/, mir/, backend/, and runtime/
- No functional changes, just cleaner code
2025-09-11 16:34:22 +09:00
ff14d489d3
feat: Enhance VM with dynamic type conversion and comprehensive method support
...
- Add dynamic bool conversion for BoxRef(BoolBox)→bool and BoxRef(VoidBox)→false
- Implement String concatenation with Bool and BoxRef types via toString()
- Add Void/Bool comparison support (Eq/Ne only) to prevent VM crashes
- Implement comprehensive ArrayBox methods in VM:
- push/pop/length/get/set/remove
- contains/indexOf/clear/join/sort/reverse/slice
- Implement comprehensive MapBox methods in VM:
- set/get/has/delete/keys/values/size/clear
- Add SocketBox timeout methods (acceptTimeout/recvTimeout)
- Update VM documentation with all new operations
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-08-23 18:37:38 +09:00
327ad37c3e
🛠️ Phase C: SocketBox Arc<RwLock> + syntax fixes for multiple Box types
...
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com >
2025-08-15 04:48:10 +00:00
cdcfa98dd1
🔧 Phase A: Add share_box() method to NyashBox trait and all Box implementations
...
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com >
2025-08-15 04:29:41 +00:00
0d7e6adfa1
Fix: Resolve 39 compilation errors - DebugBox, SocketBox, HTTPServerBox, IntentBox RwLock conversion
...
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com >
2025-08-15 03:08:09 +00:00
e8c718c78c
Phase 9.75-C: COMPLETE - All 10 Box types converted from Arc<Mutex> to RwLock
...
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com >
2025-08-15 01:21:37 +00:00
b013162a5d
Identified clone state sharing issue - different Arc data pointers
...
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com >
2025-08-14 13:07:45 +00:00
06694296a7
Fix SocketBox deadlock: Remove double-mutex lock in clone debug code
...
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com >
2025-08-14 12:26:46 +00:00
80c911d3c8
🚨 Critical Issue #76 : SocketBox Method Call Deadlock Investigation
...
## 🎯 Problem Identification Complete
- SocketBox method calls (bind, isServer, toString) cause infinite blocking
- Root cause: Method resolution pipeline deadlock before execute_socket_method
- Other Box types (ArrayBox, StringBox, MapBox) work normally
- Arc<Mutex> reference sharing confirmed working (Arc addresses match = true)
## 🔧 Debug Infrastructure Added
- Comprehensive debug logging in socket_box.rs (bind, isServer, clone, toString)
- Method call tracing in http_methods.rs
- Deadlock detection points identified at interpreter expressions.rs:462-464
## 📋 Issue #76 Created for Copilot Investigation
- Systematic root cause analysis requirements (Architecture→Parser→Runtime levels)
- Comprehensive test cases: minimal/comprehensive/comparison scenarios
- Strict prohibition of band-aid fixes - architectural analysis required
- Hypothesis: Multiple Arc<Mutex> combinations causing circular deadlock
## 🧪 Test Suite Added
- test_socket_deadlock_minimal.nyash: Minimal reproduction case
- test_socket_methods_comprehensive.nyash: All methods deadlock verification
- test_other_boxes_working.nyash: Normal Box operation confirmation
- SOCKETBOX_ISSUE_REPRODUCTION.md: Complete reproduction guide
## 📊 Impact Assessment
- Phase 9 HTTP server implementation completely blocked
- SocketBox functionality entirely non-functional
- Critical blocker for production readiness
- Requires immediate systematic investigation
🔥 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-08-14 20:55:33 +09:00
9572d0f321
Implement targeted SocketBox Clone fix for shared mutable state
...
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com >
2025-08-14 10:14:35 +00:00
d5fae25dc9
Fixed SocketBox state consistency bug - isServer() now works correctly after bind()
...
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com >
2025-08-14 08:17:04 +00:00
4548d5acbd
SocketBox state sharing partially fixed - isServer works, listener Arc issue remains
...
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com >
2025-08-14 08:12:30 +00:00
e3be02db47
Diagnosed Arc sharing issue in SocketBox cloning - complex race condition
...
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com >
2025-08-14 08:03:48 +00:00
5730d2fa0f
Identified root cause of SocketBox bug - local variable clone issue
...
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com >
2025-08-14 07:51:06 +00:00
85a5ce053d
Fix WASM Jump/Branch implementation and HTTPServer listen() functionality
...
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com >
2025-08-14 07:14:45 +00:00
212b46825f
Implement HTTP server infrastructure: SocketBox, HTTPServerBox, HTTPRequestBox, HTTPResponseBox
...
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com >
2025-08-14 06:10:52 +00:00