Which project should I work on?

Maybe. The point was to do this at runtime, in the VM. I don't think all Ruby
code can be easily converted to C, nor would I want to (I like having 'eval'
work). But looking at the AST, or even the bytecode representation, this kind
of thing should be possible to figure out.

Other ideas would be to do clever runtime optimizations, or to do
optimizations that wouldn't be sane at compile time -- for instance, unroll
this:

x = 0
foo = lambda { x += 5 }
5.times do
  foo.call
end

into something more like this:

x = 25

Of course, that optimization only makes sense if no one's making changes to
the Proc class, or to the scope in which that's run -- or maybe we're actually
storing 'foo' deep in some object, where it probably won't be touched, but it
might.

All of these are dangerous assumptions to make at compile time, but at
runtime, it might be reasonable to say "If any of these assumptions change,
drop the optimized version and do it the slow way."

But I am in a bit over my head, here -- I only know in theory how compilers
and VMs work; I've never actually contributed to one.

···

On Saturday 11 July 2009 08:17:54 pm Roger Pack wrote:

> if (a[0] == '3' && a[1] == NULL)
>
> I'm assuming C strings, Ruby strings might work differently, but you get
> the
> idea.

That's a great idea. Avoid ruby calls totally :slight_smile: [NB that ruby2cext
already does this for a few things, so...maybe I can just use that].

Well, in your example, you used threads, and I'm not entirely sure how it's
possible. Pretty much by definition, processes don't share state, threads do.
There are exceptions -- shared memory, the filesystem, and other well-defined
interfaces -- but languages generally don't make these things obvious.

If you're wanting something like your example, you're wanting threads, and
you're getting all of the concurrency issues that threads have that processes
generally don't.

···

On Sunday 12 July 2009 05:41:05 pm Roger Pack wrote:

Also, can windows actually do something like
a = 3
Thread.new { # other process }
b = 3

? like shared startup state? huh? is that even possible? (just thinking
about how Python's multi process does things--it seems to allow for
something like that and I'm not sure how).

ok, i just got hit by this one:

    make all gems/libs run in ruby1.9

Any in particular (besides ruby-debug) that aren't compat but we wish
they were? It seems to me like porting to 1.9 isn't too difficult.
=r

···

--
Posted via http://www.ruby-forum.com/\.

Are there any other requests for ruby documentation that people out
there still feel is lacking, anywhere?

Any other burning requests for things in Ruby, for me to work on?
-r

···

--
Posted via http://www.ruby-forum.com/\.

Roger Pack wrote:

11) One thing I would really, really like would be support for proxies
which require authentication, and more specifically the Microsoft ISA
Firewall. I'd like to be able to push to gemcutter from behind that
firewall, for instance, or install gems without resorting to NTLM APS

I did notice
NTLM authentication for Ruby with Typhoeus and libcurl - RubyFlow
with regard to NTLM

But since I don't have one to test with...

(n)curses!

"c:\scripts>gem install typhoeus
Building native extensions. This could take a while...
ERROR: Error installing typhoeus:
        ERROR: Failed to build gem native extension.

c:/ruby/bin/ruby.exe extconf.rb
checking for curl/curl.h in
/opt/local/include,/opt/local/include/curl,c:/ruby/include/curl,c:/ruby/include,/u
sr/include/curl,/usr/local/include/curl... no
need libcurl

... Well, it's WINDOWS... I guess I'll have to submit a patch or at
least tell them about this :slight_smile:

···

--
Posted via http://www.ruby-forum.com/\.

ah, vim is all I need... :wink:

···

2009/7/10 botp <botpena@gmail.com>

On Sat, Jul 11, 2009 at 12:36 AM, Roger Pack<rogerpack2005@gmail.com> > wrote:
> Also if anybody wants to vote for it, could hack on the redcar editor or
> arcadia in the *hopes* of someday creating an editor

+1
and make them 1.9 ready, pls :wink:

x = 0
foo = lambda { x += 5 }
5.times do
  foo.call
end

into something more like this:

x = 25

Of course, that optimization only makes sense if no one's making changes
to
the Proc class, or to the scope in which that's run -- or maybe we're
actually
storing 'foo' deep in some object, where it probably won't be touched,
but it
might.

Good point. If there aren't any class changes you'd think a number of
optimizations would be possible.
=r

···

--
Posted via http://www.ruby-forum.com/\.

Well, in your example, you used threads, and I'm not entirely sure how
it's
possible. Pretty much by definition, processes don't share state,
threads do.

There are exceptions -- shared memory, the filesystem, and other
well-defined
interfaces -- but languages generally don't make these things obvious.

Hmm. If that's the case than perhaps the python multi process gem
*only* shares memory among processes. I suppose I could dig into its
source if needed. Maybe even reuse it! :slight_smile:

Regardless, any +1's for my working on this one?, or am I right that it
isn't in strong demand?

=r

···

--
Posted via http://www.ruby-forum.com/\.

Roger Pack wrote:

ok, i just got hit by this one:

    make all gems/libs run in ruby1.9
    
Any in particular (besides ruby-debug) that aren't compat but we wish they were? It seems to me like porting to 1.9 isn't too difficult.
=r
  

ruby-debug would be really nice. I'd like webby too, but Tim P. is apparently held up by some other gem - I think it's hpricot, but I'm not sure,

t.

···

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< tc@tomcloyd.com >> (email)
<< TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Any in particular (besides ruby-debug) that aren't compat but we wish
they were?

just my current wish:
1 ruby-serialport
2 eventmachine
3 pg
4 fastri
5 rcov

It seems to me like porting to 1.9 isn't too difficult.

that is the good news :slight_smile:

thanks and best regards -botp

···

On Fri, Jul 17, 2009 at 12:41 PM, Roger Pack<rogerpack2005@gmail.com> wrote:

Roger Pack wrote:

Are there any other requests for ruby documentation that people out
there still feel is lacking, anywhere?

Any other burning requests for things in Ruby, for me to work on?
-r

Well, I can't really +1 my previous request for the proxy authentication
thing, so I'm going to +1 the documentation..
Like, for instance, :
http://ruby-doc.org/core/classes/Array.html#M002224

···

--
Posted via http://www.ruby-forum.com/\.

Any in particular (besides ruby-debug) that aren't compat but we wish
they were?

just my current wish:
1 ruby-serialport
2 eventmachine
3 pg
4 fastri

See here for fastri instructions + patch (it's still a WIP, send me bugs!): Tu fui, ego eris | :wq – blog

5 rcov

See here: GitHub - relevance/rcov: The new home of RCov on GitHub

thanks and best regards -botp

- Lee

···

On Jul 16, 2009, at 11:22 PM, botp wrote:

On Fri, Jul 17, 2009 at 12:41 PM, Roger > Pack<rogerpack2005@gmail.com> wrote:

> Any in particular (besides ruby-debug) that aren't compat but we wish
> they were?

just my current wish:
1 ruby-serialport
2 eventmachine

I believe eventmachine 0.12.8 works just fine under 1.9 - I know it works
for the limited amount I use it

3 pg

The version from here http://github.com/dseverin/pg/tree/master - works for
me just fine under 1.9

John

···

On Thu, Jul 16, 2009 at 10:22 PM, botp <botpena@gmail.com> wrote:

On Fri, Jul 17, 2009 at 12:41 PM, Roger Pack<rogerpack2005@gmail.com> > wrote:

botp wrote:

Any in particular (besides ruby-debug) that aren't compat but we wish
they were?

just my current wish:
1 ruby-serialport
2 eventmachine
3 pg
4 fastri
5 rcov

Appears the only ones not compat are ruby-serialport [unfortunately I'm
not sure if I have a serial device to test it with] and webby appears
also to install and work if you patch it [1]. hpricot does appear to
compile and work on 1.9.
For ruby-debug the only current option (at least we have options) is the
built in debugger [2] or unroller [3].

Not sure if there's much to do here. Move along now.

=r

[1]
http://webby.lighthouseapp.com/projects/17680-webby/tickets/19-multibyte-error-under-ruby-191#ticket-19-2
[2] http://beaver.net/rdebug/index-0.html
[3] http://allgems.ruby-forum.com/gems/unroller/0.1.3

···

On Fri, Jul 17, 2009 at 12:41 PM, Roger Pack<rogerpack2005@gmail.com> > wrote:

--
Posted via http://www.ruby-forum.com/\.

Any in particular (besides ruby-debug) that aren't compat with 1.9 but we wish
they were?

just my current wish:
1 ruby-serialport

Appears it's compatible for linux:
http://rubyforge.org/tracker/index.php?func=detail&aid=23788&group_id=61&atid=320

Are there any other gems that people use that they wish could become 1.9
compat?

-r

···

--
Posted via http://www.ruby-forum.com/\.

Are there any other gems that people use that they wish could become 1.9
compat?

Win32console
Ruby-snarl

···

On Sep 25, 2009, at 6:17 PM, Roger Pack <rogerpack2005@gmail.com> wrote:

-r
--
Posted via http://www.ruby-forum.com/\.

Gordon Thiesfeld wrote:

···

On Sep 25, 2009, at 6:17 PM, Roger Pack <rogerpack2005@gmail.com> wrote:

Are there any other gems that people use that they wish could become
1.9
compat?

Win32console
Ruby-snarl

All righty got ruby-snarl updated :slight_smile:

Can't seem to push it to gemcutter as of yet, so here it is.

http://github.com/rdp/ruby-snarl/downloads

Enjoy.

-r
--
Posted via http://www.ruby-forum.com/\.