# Why\_sandbox 1.9 support

**URL:** <https://www.ruby-forum.com/t/why-sandbox-1-9-support/179683>\
**Category:** Ruby\
**Created:** [December 1, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/why-sandbox-1-9-support/179683 "2009-12-01T21:18:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew\_mcelroy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/9fc29f/32.png) [@andrew\_mcelroy](https://www.ruby-forum.com/u/andrew_mcelroy)\
**Post date:** [December 1, 2009, 9:18pm UTC](https://www.ruby-forum.com/t/why-sandbox-1-9-support/179683/1 "2009-12-01T21:18:20Z")

</div>

Greetings,

I have begun the process of taking why’s freaky freaky sandbox code  
and updating the c extensions in it to compile for ruby 1.9.1.  
It appears, looking through Google cache that why apparently had  
started working on a 1.9.1 version of the freaky freaky sandbox.

Does anyone have this code locally by any remote chance?

If not, then my questions all revolve around how threading works in  
ruby 1.9.1-p243.

Specifically, I understand that threading is different in 1.9 than it  
is in 1.8.6.  
Maybe I just need to rewrite the entire sand\_table.c file, but what is  
the 1.9.1  
analog to rb\_thread\_t \*thread;

Here is a gist of the failure I am running into:

> <https://gist.github.com/Sophrinix/246568>

I will push my changes back into my git repo in the near future.  
I have sand\_hacks.c converted over to the 1.9 way of doing things  
already.

My repo is a fork of parolkar’s.

> **[GitHub - Sophrinix/why\_sandbox: Mirror of \_why's sandbox , which is NOT part...](https://github.com/Sophrinix/why_sandbox)**
>
> Mirror of \_why's sandbox , which is NOT part of tryruby yet. consider this ultra experimental - GitHub - Sophrinix/why\_sandbox: Mirror of \_why's sandbox , which is NOT part of tryruby yet. ...

Not to get too off topic, but I have also be considering that maybe I  
should be using fibers in the 1.9.1 version of this sandbox rather  
than threads.

Is this an idiotic idea in the context of creating a sandbox?  
In other words, while fibers appear to be lighter weight memory wise  
than threads, is there a security reason for using threads instead?

Thanks in advanced.

Respectfully,  
Andrew McElroy
