[MacRuby-devel] iokit again

2011-02-25 Thread Joel Reymont
I'm chomping at the bit to have IOKit support in MacRuby. 

Can you tell me what needs to be done for IOKit support [1]?

I may be able to do the work and submit a patch.

Thanks in advance, Joel

[1] http://www.macruby.org/trac/ticket/1126

--
- mac osx device driver ninja, kernel extensions and user-land usb drivers
-++---
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
-++---

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] MacRuby 0.9 release notes

2011-02-25 Thread Laurent Sansonetti
Here are the release notes for MacRuby 0.9! An e-mail announcing the release 
will be following.

Highlights:

- Lots of stability fixes (crashers, memory leaks and race conditions), and a 
few performance improvements.
- The internal representation of Strings changed from a dual binary / UTF-16 
model to a pure binary one, principally to avoid problems in multithreaded 
applications. Performance should remain the same in most cases.
- The macruby_deploy program has been enhanced to embed RubyGems (with 
dependencies) and BridgeSupport files. See the new respective --gem and --bs 
options.
- The libmacruby-static.a library is not built by default anymore, because 
static compilation is still a work in progress.
- Upgraded to RubyGems 1.4.2.

Changes:

- Fix a bug in IO.open() where numeric file descriptors could not be passed as 
the first argument.
- Fix an assertion that could happen when calling #methods & friends on a class 
that contains a method name larger than 100 characters.
- Fix a bug in IO.open() where the given path would not be handled as a path 
(calling #to_path if necessary).
- Fix a bug in the YAML extension where yajl_free() would be called on a NULL 
pointer.
- Fix a bug in the OpenSSL extension, when calling ossl_pkey_sign().
- Fix a bug where calling a method defined with #define_method with a block 
accepting a splat argument (arity -2) would crash.
- Fix Ruby warnings in the YAML extension.
- Fix a bug when some splat methods defined with #define_method() would 
segfault at dispatch time.
- Improve the internal rb_eql() routine for performance, makes faster hash 
lookup / keys comparison operations.
- Improve the hashing function for Arrays.
- Move the conformsToProtocol: and performSelector: default logic on direct 
pure-Ruby subclasses.
- Fix a bug in IO#close_write where IOError would not be thrown if the stream 
was readable and non-duplex.
- Fix a bug in IO#write where an exception would be raised if the stream was 
read-only when writing 0 bytes of data.
- Fix a bug in Kernel.require where a file path starting with '~' would not be 
loaded.
- Fix a bug in String#gsub! where we would segfault during string concatenation.
- Fix a bug in the compilation of scopes where the current_block_arg state 
variable wouldn't be re-entrant (this fixes the compilation of the mechanize 
library).
- Fix bugs in String#inspect when called on a string that contains invalid and 
non-BMP characters.
- Fix a potential memory crasher in String#sub and String#gsub where free'd 
memory would be reused.
- Fix a bug where $FILENAME, $* and $-W could be changed.
- Fix a bunch of bugs in Array methods where SecurityError would not be raised 
when $SAFE is 4.
- Fix a bug in Kernel#untrust where an exception would not be raised on a 
frozen object.
- Fix a bug in Kernel#trust where an exception would not be raised on a frozen 
object.
- Fix a bug in Kernel#trust where an exception would not be raised if $SAFE is 
equal or greater than 3.
- Fix a crash in Rational#rationalize due to registering the method with a 
wrong arity.
- Fix a bug when we would free outer memory but still keep outers pointing to 
that memory location, causing crashes later during const lookup (this fixes 
rspec).
- Fix a bug in Struct#hash when called on recursive structs.
- Fix a bug in Array#== when called with recursive arrays.
- Fix a bug in StringIO#puts when called with recursive arrays.
- Fix a bug in Exception#== when an infinite loop would be entered when 
comparing exceptions from different classes.
- Fix a bug when #initialize_copy would not raise an exception when called on 
Object or BasicObject.
- Add support for encodings ISO8859_{2..16}.
- Fix a bug in String#search_codepoint where breaks were ignored.
- Fix a bug in OpenSSL::BN#to_s.
- Fix a bug in OpenSSL::PKey::DH#compute_key.
- Fix a bug in OpenSSL::X509::Attribute#to_der.
- Fix a bug in OpenSSL::PKCS5.pbkdf2_hmac(_sha1).
- Fix a bug in OpenSSL::PKey::DSA#syssign.
- Fix a bug in OpenSSL's ossl_x509store_initialize() function where an internal 
value would not properly be initialized.
- Fix a bunch of bugs in Array methods where an exception would not be raised 
when passing very large indexes or ranges.
- Fix a bug in Array#inspect where an untrusted string would not be returned.
- Fix a bug in String#unpack when called with a block.
- Add support for variadic objc method dispatch in the parser.
- Fix a bug in Socket.pair where the sockets would not be yielded when passing 
a block.
- Fix a bug in Socket.pair(domain, type, protocol) and Socket.new(domain, type, 
protocol) where protocol would not be an optional argument.
- Fix a bug in Socket.getservbyport(port) where a port outside the uint16 range 
would be accepted.
- Fix a bug in Socket.getservbyport where the network byte order value would 
not be passed to the underlying API.
- Fix a memory leak and potential crasher in Regexp's internal 
rb_reg_matcher_new() function.
- Fix various memory leaks and potential

[MacRuby-devel] [ANN] MacRuby 0.9

2011-02-25 Thread Laurent Sansonetti
Hi,

After about 2 months of development since the last release, MacRuby 0.9 is
now available. Get it here while it's still hot!

MacRuby is an implementation of Ruby 1.9 directly on top of Mac OS X
core technologies such as the Objective-C runtime and garbage
collector, the LLVM compiler infrastructure and the Foundation and ICU
frameworks. It is the goal of MacRuby to enable the creation of
full-fledged Mac OS X applications which do not sacrifice performance
in order to enjoy the benefits of using Ruby.

You can learn more about MacRuby, and download a binary installer,
from the website:

http://macruby.org

Or about this release more specifically, on our blog:

http://www.macruby.org/blog/2011/02/24/macruby09.html

Enjoy,

Laurent
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [ANN] MacRuby 0.9

2011-02-25 Thread Emil Tin
congrats! well done!


On 25/02/2011, at 23.35, Laurent Sansonetti wrote:

> Hi,
> 
> After about 2 months of development since the last release, MacRuby 0.9 is
> now available. Get it here while it's still hot!
> 
> MacRuby is an implementation of Ruby 1.9 directly on top of Mac OS X
> core technologies such as the Objective-C runtime and garbage
> collector, the LLVM compiler infrastructure and the Foundation and ICU
> frameworks. It is the goal of MacRuby to enable the creation of
> full-fledged Mac OS X applications which do not sacrifice performance
> in order to enjoy the benefits of using Ruby.
> 
> You can learn more about MacRuby, and download a binary installer,
> from the website:
> 
> http://macruby.org
> 
> Or about this release more specifically, on our blog:
> 
> http://www.macruby.org/blog/2011/02/24/macruby09.html
> 
> Enjoy,
> 
> Laurent
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



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] iokit again

2011-02-25 Thread Laurent Sansonetti
Hi Joel,

Support is almost complete, be patient a bit more. Also, please follow up on 
the ticket (that's what they are meant to be used for).

Laurent

On Feb 23, 2011, at 12:20 PM, Joel Reymont wrote:

> I'm chomping at the bit to have IOKit support in MacRuby. 
> 
> Can you tell me what needs to be done for IOKit support [1]?
> 
> I may be able to do the work and submit a patch.
> 
>   Thanks in advance, Joel
> 
> [1] http://www.macruby.org/trac/ticket/1126
> 
> --
> - mac osx device driver ninja, kernel extensions and user-land usb drivers
> -++---
> http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
> -++---
> 
> ___
> 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] stopping to build for i386

2011-02-25 Thread Laurent Sansonetti
Hi Eric,

On Feb 24, 2011, at 2:19 PM, Eric Christopherson wrote:

> On Tue, Feb 22, 2011 at 8:31 PM, Laurent Sansonetti
>  wrote:
>> Hi,
>> As of r5239 in trunk, the default build process will no longer build for
>> both i386 and x86_64, but just x86_64. This is an attempt at accelerating
>> the build process and reducing the framework objects size.
>> We are however not removing any i386-related code from the project, and one
>> will still be able to build a 32-bit version of MacRuby by passing
>> archs=i386 to rake. We will also consider fixing i386 bugs. But we want to
>> start discouraging people to target i386 hardware for MacRuby apps, for
>> several reasons (codebase not well tested, runtime / exception handling
>> differences, floating point precision loss, etc.). The i386-related code
>> could eventually be removed from MacRuby after 0.10.
>> This is not an irrevocable decision, though. If people complain we will
>> revert the change. But I want to give it a try.
>> Laurent
> 
> How hard do you imagine it would be for other developers to keep the
> 386 code going after 0.10?

It wouldn't be very easy, I'm afraid. But we can keep the code is there is a 
demand.

Laurent___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel