J
Joe Van Dyk
When is Ruby 2.0 due? Or estimated due date?
Where could I find info on this?
Thanks,
Joe
Where could I find info on this?
Thanks,
Joe
When is Ruby 2.0 due? Or estimated due date?
Where could I find info on this?
As has been hinted at: (It* will be done -- typo)
I will be done as soon as someone makes it. A number of projects are
on their way to that. YARV being one of them. I don't know if 1.9 will
ever become stable 2.0 in this case. It seems to just be a proving
ground for features.
This is all my speculation. Anyone else have any hard facts or plans?
Brian Mitchell
Brian Mitchell said:32.times{|y|print" "*(31-y);(y+1).times{|x|print" #{~y&x==0?"A":"."}"};puts}
William said:Excellent signature, Brian. Here's a shortened version:
32.times{|y|print" "*(31-y);(y+1).times{|x|print~y&x>0?" .":" A"};puts}
Yet shorter:
32.times{|y|print" "*(31-y),(0..y).map{|x|~y&x>0?" .":" A"},$/}
David said:Does this count as shorter?
ruby -le'32.times{|y|print" "*(31-y),(0..y).map{|x|~y&x>0?" .":" A"}}'
This doesn't run on my system....
C:\source\projects\wxruby\src>ruby -le '32.times{|y|print"
"*(31-y),(0..y).map{|x|~y&x>0?" .":" A"}}'
'y' is not recognized as an internal or external command,
operable program or batch file.
Zach
From: "Zach Dennis said:This doesn't run on my system....
C:\source\projects\wxruby\src>ruby -le '32.times{|y|print"
"*(31-y),(0..y).map{|x|~y&x>0?" .":" A"}}'
'y' is not recognized as an internal or external command,
operable program or batch file.
Brian Mitchell said:ruby -e ....
David said:Does this count as shorter?
ruby -le'32.times{|y|print" "*(31-y),(0..y).map{|x|~y&x>0?" .":" A"}}'
Giovanni said:This really is wonderful, but the most wonderful thing its that I
cannot understand it intuitively![]()
Yes.Is this an example of a Sierpinski Triangle?
Yes.
I am working on finding more cool one liners that are short enough for a sig.
I came up with a cellular automata simulator but the input and rule
set took up too much space. So I will have to find something else....
if not I will be sticking to my triangle signature. It is always fun
to try and push the limits of a language by doing things like this.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.