# Monkey\_type: micro type system for Ruby

**URL:** <https://rubytalk.org/t/monkey-type-micro-type-system-for-ruby/73718>\
**Category:** ruby-talk\
**Created:** [25 July 2016 11:05 UTC](https://rubytalk.org/t/monkey-type-micro-type-system-for-ruby/73718 "2016-07-25T11:05:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felipe\_Tavares](https://avatars.discourse-cdn.com/v4/letter/f/c89c15/32.png) [@Felipe\_Tavares](https://rubytalk.org/u/Felipe_Tavares)\
**Post date:** [25 July 2016 11:05 UTC](https://rubytalk.org/t/monkey-type-micro-type-system-for-ruby/73718/1 "2016-07-25T11:05:18Z")

</div>

Hello fellow Rubyists, I'm a ruby Gsoc student. on the last weekend (as a  
personal project to learn more about metaprogramming) i developed  
"monkey\_type"

Monkey type is a micro gem (only 70 lines of code) that implements an  
optional type system based on runtime check of types (using ducktyping) and  
contracts.

I write this email because i think that this gem can be useful for the ruby  
community. The gem is really really simple to use so just read the README,  
install it, fire up an IRB and test it out.

more details here: [https://github.com/nemoNoboru/monkey\_type](https://github.com/nemoNoboru/monkey_type)  
RubyGems: [https://rubygems.org/gems/monkey\_type](https://rubygems.org/gems/monkey_type)

Please, keep in mind that i'm just a ruby student and not a professional  
programmer. So a lot of things can be wrong. Code can be messy, slow,  
etc...

\*Thanks for your time and attention, Nemo\*

---

<div class="post-metadata">

**Author:** ![Tom\_Copeland1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/tom_copeland1/32/1843_2.png) [@Tom\_Copeland1](https://rubytalk.org/u/Tom_Copeland1)\
**Post date:** [26 July 2016 10:45 UTC](https://rubytalk.org/t/monkey-type-micro-type-system-for-ruby/73718/2 "2016-07-26T10:45:20Z")

</div>

You might be interested in Tony’s article on this topic:

> **[An open letter to Matz on Ruby type systems • Tony Arcieri](https://tonyarcieri.com/an-open-letter-to-matz-on-ruby-type-systems)**
>
> Hi Matz, I really enjoyed your keynote at RubyConf 2014. The most interesting part of it to me was where you talked about how Ruby 3.0 might include some sort of type system. There are lots of directions you can go with type systems in Ruby. Your......

He has a few links to some existing projects as well (rtc, rubtype).

> **···**
>
> > On Jul 25, 2016, at 7:05 AM, Felipe Tavares \<felipetavres@gmail.com\> wrote:
> > 
> > Hello fellow Rubyists, I'm a ruby Gsoc student. on the last weekend (as a personal project to learn more about metaprogramming) i developed "monkey\_type"
> > 
> > Monkey type is a micro gem (only 70 lines of code) that implements an optional type system based on runtime check of types (using ducktyping) and contracts.
> > 
> > I write this email because i think that this gem can be useful for the ruby community. The gem is really really simple to use so just read the README, install it, fire up an IRB and test it out.
> > 
> > more details here: [GitHub - nemoNoboru/monkey\_type: microgem to add a micro type system to ruby](https://github.com/nemoNoboru/monkey_type)  
> > RubyGems: [monkey\_type | RubyGems.org | your community gem host](https://rubygems.org/gems/monkey_type)
> > 
> > Please, keep in mind that i'm just a ruby student and not a professional programmer. So a lot of things can be wrong. Code can be messy, slow, etc...
> > 
> > Thanks for your time and attention, Nemo
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);

---

<div class="post-metadata">

**Author:** ![Jeff\_Foster](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@Jeff\_Foster](https://rubytalk.org/u/Jeff_Foster)\
**Post date:** [27 July 2016 17:31 UTC](https://rubytalk.org/t/monkey-type-micro-type-system-for-ruby/73718/3 "2016-07-27T17:31:25Z")

</div>

Hi, all. I'd like to put in a quick plug for rdl (  
[https://github.com/plum-umd/rdl\](https://github.com/plum-umd/rdl%5C)), which is the successor to rtc, which Tom  
mentioned. The next release of rdl (which should come in the next couple of  
weeks) will support static-ish type checking...stay tuned!

Jeff

> **···**
>
> On Tue, Jul 26, 2016 at 6:45 AM, Tom Copeland \<tom@thomasleecopeland.com\> wrote:
> 
> > You might be interested in Tony’s article on this topic:
> > 
> > [An open letter to Matz on Ruby type systems](https://tonyarcieri.com/an-open-letter-to-matz-on-ruby-type-systems)
> > 
> > He has a few links to some existing projects as well (rtc, rubtype).
> > 
> > On Jul 25, 2016, at 7:05 AM, Felipe Tavares \<felipetavres@gmail.com\> \> wrote:
> > 
> > Hello fellow Rubyists, I'm a ruby Gsoc student. on the last weekend (as a  
> > personal project to learn more about metaprogramming) i developed  
> > "monkey\_type"
> > 
> > Monkey type is a micro gem (only 70 lines of code) that implements an  
> > optional type system based on runtime check of types (using ducktyping) and  
> > contracts.
> > 
> > I write this email because i think that this gem can be useful for the  
> > ruby community. The gem is really really simple to use so just read the  
> > README, install it, fire up an IRB and test it out.
> > 
> > more details here: [GitHub - nemoNoboru/monkey\_type: microgem to add a micro type system to ruby](https://github.com/nemoNoboru/monkey_type)  
> > RubyGems: [monkey\_type | RubyGems.org | your community gem host](https://rubygems.org/gems/monkey_type)
> > 
> > Please, keep in mind that i'm just a ruby student and not a professional  
> > programmer. So a lot of things can be wrong. Code can be messy, slow,  
> > etc...
> > 
> > \*Thanks for your time and attention, Nemo\*
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe  
> > \<ruby-talk-request@ruby-lang.org?subject=unsubscribe\>\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);

---

<div class="post-metadata">

**Author:** ![Tom\_Copeland1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/tom_copeland1/32/1843_2.png) [@Tom\_Copeland1](https://rubytalk.org/u/Tom_Copeland1)\
**Post date:** [28 July 2016 00:31 UTC](https://rubytalk.org/t/monkey-type-micro-type-system-for-ruby/73718/4 "2016-07-28T00:31:00Z")

</div>

Nice, I hadn’t seen that, thanks for the pointer Jeff!

> **···**
>
> > On Jul 27, 2016, at 1:31 PM, Jeff Foster \<jfoster@cs.umd.edu\> wrote:
> > 
> > Hi, all. I'd like to put in a quick plug for rdl ([https://github.com/plum-umd/rdl\](https://github.com/plum-umd/rdl%5C)), which is the successor to rtc, which Tom mentioned. The next release of rdl (which should come in the next couple of weeks) will support static-ish type checking...stay tuned!
> > 
> > Jeff
> > 
> > On Tue, Jul 26, 2016 at 6:45 AM, Tom Copeland \<tom@thomasleecopeland.com \<mailto:tom@thomasleecopeland.com\>\> wrote:  
> > You might be interested in Tony’s article on this topic:
> > 
> > [https://tonyarcieri.com/an-open-letter-to-matz-on-ruby-type-systems](https://tonyarcieri.com/an-open-letter-to-matz-on-ruby-type-systems)
> > 
> > He has a few links to some existing projects as well (rtc, rubtype).
> > 
> > > On Jul 25, 2016, at 7:05 AM, Felipe Tavares \<felipetavres@gmail.com \<mailto:felipetavres@gmail.com\>\> wrote:
> > > 
> > > Hello fellow Rubyists, I'm a ruby Gsoc student. on the last weekend (as a personal project to learn more about metaprogramming) i developed "monkey\_type"
> > > 
> > > Monkey type is a micro gem (only 70 lines of code) that implements an optional type system based on runtime check of types (using ducktyping) and contracts.
> > > 
> > > I write this email because i think that this gem can be useful for the ruby community. The gem is really really simple to use so just read the README, install it, fire up an IRB and test it out.
> > > 
> > > more details here: [GitHub - nemoNoboru/monkey\_type: microgem to add a micro type system to ruby](https://github.com/nemoNoboru/monkey_type)  
> > > RubyGems: [monkey\_type | RubyGems.org | your community gem host](https://rubygems.org/gems/monkey_type)
> > > 
> > > Please, keep in mind that i'm just a ruby student and not a professional programmer. So a lot of things can be wrong. Code can be messy, slow, etc...
> > > 
> > > Thanks for your time and attention, Nemo
> > > 
> > > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>\>  
> > > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org \<mailto:ruby-talk-request@ruby-lang.org\>?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);
> > 
> > Unsubscribe: \<mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe\>  
> > \<[http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt](http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt);
