Re: [MacRuby-devel] Size of the apps
Laurent, Thanks! That is awesome! Will this reduce the footprint of HotCocoa apps as well? Thanks, Gary On Apr 9, 2010, at 8:27 PM, Laurent Sansonetti wrote: > Hi Daniel, > > As Matt said, it is possible to trim out your .app bundle to only ship what's > really needed. If you do not need the standard library and extensions, > removing them might free some memory. I believe the min. size is about 20MB > then (I'm not exactly certain though), for both 32-bit and 64-bit Intel > architectures. Of course removing 32-bit will free another 10MB. > > There is an effort for the next release (0.7) to prepare a (much) smaller > runtime used during static AOT compilation. The resulted binary would not > contain LLVM code, and some Ruby features would also not be available. I > estimate the binary size to then be a couple of MBs (maybe less), but this is > an estimation :-) > > Laurent > > On Apr 7, 2010, at 8:50 AM, Daniel Lopes wrote: > >> Hello, this is my first post here and I am new in the Apple Dev/MacRuby. I >> don't know if this the right mailing list, I don't found any other in the >> MacRuby site related to questions about development. So, if this mail isn't >> appropriate here please let me know. >> >> Some days ago, in a sample app, I tried to embed the MacRuby Framework to >> distribute the app as a standalone package but the size of the app became >> huge. >> >> There is some effort to make the embedded framework smaller or any >> tip/tricks that I should do to get small apps? Or all my apps will have >> 34mb? (It's not a big problem, just to know). >> >> Thanks. >> >> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >> Daniel Lopes - Area Criações >> Design, Websites e Sistemas Web >> >> http://www.areacriacoes.com.br/ >> http://www.cifrascash.com/ >> http://pomodo.areacriacoes.com.br/ >> http://egenial.com.br/cursorails >> >> twitter: @danielvlopes >> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >> 55 (31) 3077-4560 / 55 (31) 8808-8748 / 55 (31) 8737-7501 >> ___ >> MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Size of the apps
Thanks Laurent, but I also think the size of apps in Mac dev is a big issue. On Wed, Apr 14, 2010 at 10:35 AM, Gary Weaver wrote: > Laurent, > > Thanks! That is awesome! > > Will this reduce the footprint of HotCocoa apps as well? > > Thanks, > > Gary > > > On Apr 9, 2010, at 8:27 PM, Laurent Sansonetti wrote: > > Hi Daniel, > > As Matt said, it is possible to trim out your .app bundle to only ship > what's really needed. If you do not need the standard library and > extensions, removing them might free some memory. I believe the min. size is > about 20MB then (I'm not exactly certain though), for both 32-bit and 64-bit > Intel architectures. Of course removing 32-bit will free another 10MB. > > There is an effort for the next release (0.7) to prepare a (much) smaller > runtime used during static AOT compilation. The resulted binary would not > contain LLVM code, and some Ruby features would also not be available. I > estimate the binary size to then be a couple of MBs (maybe less), but this > is an estimation :-) > > Laurent > > On Apr 7, 2010, at 8:50 AM, Daniel Lopes wrote: > > Hello, this is my first post here and I am new in the Apple Dev/MacRuby. I > don't know if this the right mailing list, I don't found any other in the > MacRuby site related to questions about development. So, if this mail isn't > appropriate here please let me know. Some days ago, in a sample app, I tried > to embed the MacRuby Framework to distribute the app as a standalone package > but the size of the app became huge. There is some effort to make the > embedded framework smaller or any tip/tricks that I should do to get small > apps? Or all my apps will have 34mb? (It's not a big problem, just to know). > > Thanks. > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > Daniel Lopes - Area Criações > Design, Websites e Sistemas Web > > http://www.areacriacoes.com.br/ > http://www.cifrascash.com/ > http://pomodo.areacriacoes.com.br/ > http://egenial.com.br/cursorails > > twitter: @danielvlopes > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > 55 (31) 3077-4560 / 55 (31) 8808-8748 / 55 (31) 8737-7501 > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] Iconv and MacRoman
Hey all,
I've downloaded and installed the latest and get an error when attempting to
convert from UTF-8 to MacRoman, here is the error message :
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/1.9.0/iconv.rb:40:in
`ns_encoding:': unrecognized encoding `' (RuntimeError)
from
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/1.9.0/iconv.rb:17:in
`initialize:'
from /Users/yt/dev/Signature/./change_signature_macruby.rb:199:in
`block'
from /Users/yt/dev/Signature/./change_signature_macruby.rb:192:in
`change_signature:'
from /Users/yt/dev/Signature/./change_signature_macruby.rb:65:in
`parse_option:'
from /Users/yt/dev/Signature/./change_signature_macruby.rb:4:in `'
the faulty script being :
utf8_2_macroman = Iconv.new('MacRoman', 'UTF-8')
la[i] = utf8_2_macroman.iconv(signature.split(/#{LF}/).join(CR))
it seems MacRuby isn't using the same iconv as ruby 1.9 because a similar
sript, running well with Ruby 1.9, uses :
la[i] = Iconv.conv('MacRoman', 'UTF-8',
signature.split(/#{LF}/).join(CR))
however, with that line i get :
/Users/yt/dev/Signature/./change_signature_macruby.rb:199:in `block':
undefined method `conv' for Iconv:Class (NoMethodError)
best,
Yvon
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Size of the apps
Daniel, can you explain why you think it's a big issue? Maybe we can help with some temporary solutions. - Matt On Wed, Apr 14, 2010 at 7:13 AM, Daniel Lopes wrote: > Thanks Laurent, but I also think the size of apps in Mac dev is a big > issue. > > On Wed, Apr 14, 2010 at 10:35 AM, Gary Weaver wrote: > >> Laurent, >> >> Thanks! That is awesome! >> >> Will this reduce the footprint of HotCocoa apps as well? >> >> Thanks, >> >> Gary >> >> >> On Apr 9, 2010, at 8:27 PM, Laurent Sansonetti wrote: >> >> Hi Daniel, >> >> As Matt said, it is possible to trim out your .app bundle to only ship >> what's really needed. If you do not need the standard library and >> extensions, removing them might free some memory. I believe the min. size is >> about 20MB then (I'm not exactly certain though), for both 32-bit and 64-bit >> Intel architectures. Of course removing 32-bit will free another 10MB. >> >> There is an effort for the next release (0.7) to prepare a (much) smaller >> runtime used during static AOT compilation. The resulted binary would not >> contain LLVM code, and some Ruby features would also not be available. I >> estimate the binary size to then be a couple of MBs (maybe less), but this >> is an estimation :-) >> >> Laurent >> >> On Apr 7, 2010, at 8:50 AM, Daniel Lopes wrote: >> >> Hello, this is my first post here and I am new in the Apple Dev/MacRuby. I >> don't know if this the right mailing list, I don't found any other in the >> MacRuby site related to questions about development. So, if this mail isn't >> appropriate here please let me know. Some days ago, in a sample app, I tried >> to embed the MacRuby Framework to distribute the app as a standalone package >> but the size of the app became huge. There is some effort to make the >> embedded framework smaller or any tip/tricks that I should do to get small >> apps? Or all my apps will have 34mb? (It's not a big problem, just to know). >> >> Thanks. >> >> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >> Daniel Lopes - Area Criações >> Design, Websites e Sistemas Web >> >> http://www.areacriacoes.com.br/ >> http://www.cifrascash.com/ >> http://pomodo.areacriacoes.com.br/ >> http://egenial.com.br/cursorails >> >> twitter: @danielvlopes >> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >> 55 (31) 3077-4560 / 55 (31) 8808-8748 / 55 (31) 8737-7501 >> ___ >> MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> >> >> ___ >> MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> >> >> >> ___ >> MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> >> > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Size of the apps
Ops, sorry... small typo == isn't a big issue. Nobody cares for 10mb or 30mb today. On Wed, Apr 14, 2010 at 3:45 PM, Matt Aimonetti wrote: > Daniel, can you explain why you think it's a big issue? Maybe we can help > with some temporary solutions. > > - Matt > > > On Wed, Apr 14, 2010 at 7:13 AM, Daniel Lopes wrote: > >> Thanks Laurent, but I also think the size of apps in Mac dev is a big >> issue. >> >> On Wed, Apr 14, 2010 at 10:35 AM, Gary Weaver wrote: >> >>> Laurent, >>> >>> Thanks! That is awesome! >>> >>> Will this reduce the footprint of HotCocoa apps as well? >>> >>> Thanks, >>> >>> Gary >>> >>> >>> On Apr 9, 2010, at 8:27 PM, Laurent Sansonetti wrote: >>> >>> Hi Daniel, >>> >>> As Matt said, it is possible to trim out your .app bundle to only ship >>> what's really needed. If you do not need the standard library and >>> extensions, removing them might free some memory. I believe the min. size is >>> about 20MB then (I'm not exactly certain though), for both 32-bit and 64-bit >>> Intel architectures. Of course removing 32-bit will free another 10MB. >>> >>> There is an effort for the next release (0.7) to prepare a (much) smaller >>> runtime used during static AOT compilation. The resulted binary would not >>> contain LLVM code, and some Ruby features would also not be available. I >>> estimate the binary size to then be a couple of MBs (maybe less), but this >>> is an estimation :-) >>> >>> Laurent >>> >>> On Apr 7, 2010, at 8:50 AM, Daniel Lopes wrote: >>> >>> Hello, this is my first post here and I am new in the Apple Dev/MacRuby. >>> I don't know if this the right mailing list, I don't found any other in the >>> MacRuby site related to questions about development. So, if this mail isn't >>> appropriate here please let me know. Some days ago, in a sample app, I tried >>> to embed the MacRuby Framework to distribute the app as a standalone package >>> but the size of the app became huge. There is some effort to make the >>> embedded framework smaller or any tip/tricks that I should do to get small >>> apps? Or all my apps will have 34mb? (It's not a big problem, just to know). >>> >>> Thanks. >>> >>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >>> Daniel Lopes - Area Criações >>> Design, Websites e Sistemas Web >>> >>> http://www.areacriacoes.com.br/ >>> http://www.cifrascash.com/ >>> http://pomodo.areacriacoes.com.br/ >>> http://egenial.com.br/cursorails >>> >>> twitter: @danielvlopes >>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >>> 55 (31) 3077-4560 / 55 (31) 8808-8748 / 55 (31) 8737-7501 >>> ___ >>> MacRuby-devel mailing list >>> [email protected] >>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>> >>> >>> ___ >>> MacRuby-devel mailing list >>> [email protected] >>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>> >>> >>> >>> ___ >>> MacRuby-devel mailing list >>> [email protected] >>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>> >>> >> >> ___ >> MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> >> > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Size of the apps
Agreed, especially if you dmg your app when you ship it :) On Wed, Apr 14, 2010 at 11:47 AM, Daniel Lopes wrote: > Ops, sorry... small typo == isn't a big issue. Nobody cares for 10mb or > 30mb today. > > On Wed, Apr 14, 2010 at 3:45 PM, Matt Aimonetti > wrote: > >> Daniel, can you explain why you think it's a big issue? Maybe we can help >> with some temporary solutions. >> >> - Matt >> >> >> On Wed, Apr 14, 2010 at 7:13 AM, Daniel Lopes wrote: >> >>> Thanks Laurent, but I also think the size of apps in Mac dev is a big >>> issue. >>> >>> On Wed, Apr 14, 2010 at 10:35 AM, Gary Weaver wrote: >>> Laurent, Thanks! That is awesome! Will this reduce the footprint of HotCocoa apps as well? Thanks, Gary On Apr 9, 2010, at 8:27 PM, Laurent Sansonetti wrote: Hi Daniel, As Matt said, it is possible to trim out your .app bundle to only ship what's really needed. If you do not need the standard library and extensions, removing them might free some memory. I believe the min. size is about 20MB then (I'm not exactly certain though), for both 32-bit and 64-bit Intel architectures. Of course removing 32-bit will free another 10MB. There is an effort for the next release (0.7) to prepare a (much) smaller runtime used during static AOT compilation. The resulted binary would not contain LLVM code, and some Ruby features would also not be available. I estimate the binary size to then be a couple of MBs (maybe less), but this is an estimation :-) Laurent On Apr 7, 2010, at 8:50 AM, Daniel Lopes wrote: Hello, this is my first post here and I am new in the Apple Dev/MacRuby. I don't know if this the right mailing list, I don't found any other in the MacRuby site related to questions about development. So, if this mail isn't appropriate here please let me know. Some days ago, in a sample app, I tried to embed the MacRuby Framework to distribute the app as a standalone package but the size of the app became huge. There is some effort to make the embedded framework smaller or any tip/tricks that I should do to get small apps? Or all my apps will have 34mb? (It's not a big problem, just to know). Thanks. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Daniel Lopes - Area Criações Design, Websites e Sistemas Web http://www.areacriacoes.com.br/ http://www.cifrascash.com/ http://pomodo.areacriacoes.com.br/ http://egenial.com.br/cursorails twitter: @danielvlopes * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 55 (31) 3077-4560 / 55 (31) 8808-8748 / 55 (31) 8737-7501 ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>> >>> ___ >>> MacRuby-devel mailing list >>> [email protected] >>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>> >>> >> >> ___ >> MacRuby-devel mailing list >> [email protected] >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> >> > > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] Sinatra / RACK / HAML helpppp?
Just started to play with macruby and would love to start working in 1.9 vs 1.8 more and esp the cocoa stuff vs. objc but... can someone give me the secret recipe to get some of the simple stuff to work... like macgem install sinatra I get this: unknown: warning: ignoring alias unknown: warning: ignoring alias unknown: warning: ignoring alias unknown: warning: ignoring alias unknown: warning: ignoring alias unknown: warning: ignoring alias unknown: warning: ignoring alias ERROR: While executing gem ... (NoMethodError) undefined method `as_list' for nil:NilClass maybe? Thanks smime.p7s Description: S/MIME cryptographic signature ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] Sinatra / RACK / HAML helpppp?
Hi Robert, Could you let us know what version of MacRuby you are using? Thanks, - Matt On Wed, Apr 14, 2010 at 9:26 PM, Robert Boyer wrote: > Just started to play with macruby and would love to start working in 1.9 vs > 1.8 more and esp the cocoa stuff vs. objc but... > > can someone give me the secret recipe to get some of the simple stuff to > work... > > like > > macgem install sinatra > > I get this: > > unknown: warning: ignoring alias > unknown: warning: ignoring alias > unknown: warning: ignoring alias > unknown: warning: ignoring alias > unknown: warning: ignoring alias > unknown: warning: ignoring alias > unknown: warning: ignoring alias > ERROR: While executing gem ... (NoMethodError) >undefined method `as_list' for nil:NilClass > > maybe? > > Thanks > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
