Daniel P. Clark
Daniel P. Clark
> Although why this happens in a Vec and not an array is still confusing to me. ¯\\\_(ツ)\_/¯ Maybe because Ruby does indeed store its objects on the heap and...
There can be only one `VM::init()` running at any one time. You can look at this file and see a RwLock used for it https://github.com/danielpclark/rutie/blob/master/src/lib.rs#L61 which may be what you...
There are some key differences between your code and the code here: ``` #[cfg(test)] lazy_static! { pub static ref LOCK_FOR_TEST: RwLock = RwLock::new(0); } // ... let _guard = LOCK_FOR_TEST.write().unwrap();...
On these questions: > 1: Should I design lib that never use unwrap? (not sure if it possible design non-panic lib for ruby) Finding a way to write code without...
I really like this idea and I think the code sample you've provided a beautiful in illustrating how we can improve. Does the word `typed` accurately describe what is being...
I haven't used `wrappable_struct!` myself, the README that speaks of this is the original project ruru https://github.com/d-unseductable/ruru#wrapping-rust-data-to-ruby-objects . I'll need to refresh myself by reading the code again if I'm...
I'm not aware of any issues in doing it that way as long as `require` will call it. As long as it is initialized I believe that's all it needs.
It may be more efficient to use [Conditional Compilation](https://doc.rust-lang.org/book/conditional-compilation.html) ```rust #[cfg(all(windows))] #[cfg(all(not(windows)))] ```
Fixing this may fix #44
The Ruby programming language's source code decides which symbol names to export publicly and which ones remain private. Sometimes these are even OS specific as can be seen from #49...