profile
viewpoint
Daniel P. Clark danielpclark 6ft Dan(TM) Winchester, VA http://www.6ftdan.com I really enjoy Ruby, Rust, and Linux. Blogger and educator on all things technical and personal development. I code for charity, fun, and income.

danielpclark/array_tool 48

Array helpers for Rust's Vector and String types

danielpclark/CardsLib 26

The "smartest" OO Card Game Library

danielpclark/abrute 20

Multi-threaded AES Brute Force File Decryption

danielpclark/acts_as_encryptable 17

Simple record encryption implemented with Rails existing encryption methods.

danielpclark/color_pound_spec_reporter 17

Beautiful Minitest Color Reporter

danielpclark/clock_window 6

Clock your own desktop activity! Open for feature requests and contributors!

danielpclark/assign 3

Add Kernel#assign for multiple assignment with method calls. Feature Request #11690 in Ruby.

danielpclark/algorithm_practice 2

Practicing examples from "Introduction to The Design & Analysis of Algorithms"

danielpclark/base_custom 2

Rust implementation of custom numeric base conversion.

issue commentdanielpclark/rutie

How to write tests with VM::init?

There are some key differences between your code and the code here:

#[cfg(test)]
lazy_static! {
    pub static ref LOCK_FOR_TEST: RwLock<i32> = RwLock::new(0);
}

// ...
        let _guard = LOCK_FOR_TEST.write().unwrap();
        VM::init();

You're using lock instead of write and you're using a Mutex instead of a RwLock.

ayanko

comment created time in 25 days

issue commentdanielpclark/rutie

How to write tests with VM::init?

Did you look at the two links I provided for RwLock usage?

ayanko

comment created time in 25 days

issue commentdanielpclark/rutie

fatal error LNK1181: cannot open input file 'x64-msvcrt-ruby270.lib'

Ruby 2.7 is not yet supported. Windows has limited support with some issues noted in others PRs. I plan to get RuTie updated for Ruby 2.7 this July.

prodprogramming

comment created time in 25 days

issue commentdanielpclark/rutie

How to write tests with VM::init?

There can be only one VM::init(). 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 want. If your code comments run test code then simply put a hashtag before VM::init() to have them not conflict # VM::init()

ayanko

comment created time in 25 days

issue commentdanielpclark/rutie

Mutable wrappable objects

Hey Zapotek, the wrappable structs is the one part of this code I've touched the least since inheriting this project. If you'd like to have a crack at implementing this feature yourself I'd welcome the PR.

Zapotek

comment created time in a month

startedsozu-proxy/lapin

started time in 2 months

issue commentdanielpclark/rutie

Ruby 2.7

I plan on getting to this when I get some free time. Ruby 2.7 is the next target to update this for and getting Integers ranges fixed #113 is part of that.

Hywan

comment created time in 2 months

issue commentdanielpclark/rutie

Mutable wrappable objects

Can you give more details and an example scenario?

Zapotek

comment created time in 2 months

more