Re: [MacRuby-devel] [MacRuby] #159: "%d" with large integer argument gives conversion error

2009-12-25 Thread MacRuby
#159: "%d" with large integer argument gives conversion error
-+--
 Reporter:  ja...@…  |   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  major|   Milestone:   
Component:  MacRuby  |Keywords:   
-+--

Comment(by e...@…):

 I believe I managed to maintain the optimizations, even under DEBUG_IR
 (though there is additional overhead with new GlobalVariables, but not
 unlike the output of the AOT compiler).  At least those that stem from
 unbox_ruby_constant().  If there are other optimizations I missed, I can
 certainly take a look.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #521: Float problem with 8.1 and 9.1

2009-12-25 Thread MacRuby
#521: Float problem with 8.1 and 9.1
+---
 Reporter:  macr...@…   |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  major   |   Milestone:  MacRuby 0.5  
Component:  MacRuby |Keywords:   
+---

Comment(by e...@…):

 Actually, this should be fixed with the float changes in #159.  This
 problem stems from the last two bits of the floating point number being
 used as flags, so there is a lose in precision.  Worse is that in 32-bit
 mode, floating point is done with 32-bit floats, so the two bit lose in
 precision is even worse:

 {{{
 % macruby -e 'puts 8.1'
 8.09
 % arch -i386 macruby -e 'puts 8.1'
 8.0847412109
 }}}

 With the changes in #159:

 {{{
 % miniruby -e 'puts 8.1'
 8.1
 % arch -i386 miniruby -e 'puts 8.1'
 8.1
 }}}

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] [MacRuby] #522: URI.parse insecure operation

2009-12-25 Thread MacRuby
#522: URI.parse  insecure operation
-+--
 Reporter:  mattaimone...@…  |   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  major|   Milestone:  MacRuby 0.5  
Component:  MacRuby  |Keywords:   
-+--
 {{{
 $ macirb
 >> require 'uri'
 => true
 >> url = URI.parse('http://mobile.lemonde.fr/culture/article/2009/12/14
 /johnny-halliday-est-sorti-du-coma-
 artificiel_1280634_3246.html#xtor=RSS-3208')
 => #http://mobile.lemonde.fr/culture/article/2009/12/14/johnny-halliday-
 est-sorti-du-coma-artificiel_1280634_3246.html#xtor=RSS-3208>
 >> url.path
 core:in `push:': Insecure operation: -r (SecurityError)
 from core:in `gets'
 }}}


 {{{
 $ irb1.9
 >> require 'uri'
 => true
 >> url = URI.parse('http://mobile.lemonde.fr/culture/article/2009/12/14
 /johnny-halliday-est-sorti-du-coma-
 artificiel_1280634_3246.html#xtor=RSS-3208')
 => #http://mobile.lemonde.fr/culture/article/2009/12/14/johnny-halliday-
 est-sorti-du-coma-artificiel_1280634_3246.html#xtor=RSS-3208>
 >> url.path
 => "/culture/article/2009/12/14/johnny-halliday-est-sorti-du-coma-
 artificiel_1280634_3246.html"
 >>

 }}}

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel