Re: [rust-dev] Crossplatform compatibility

2013-04-11 Thread Brian Anderson
On 04/11/2013 06:51 PM, Jarred Nicholls wrote: On Thu, Apr 11, 2013 at 2:58 PM, Alexander Stavonin mailto:a.stavo...@gmail.com>> wrote: Hi! I'm going to create Rust installation package for Mac OS X. Right now you can find the installer there: http://www.sysdev.me/public/RustIns

Re: [rust-dev] Crossplatform compatibility

2013-04-11 Thread Jarred Nicholls
On Thu, Apr 11, 2013 at 2:58 PM, Alexander Stavonin wrote: > Hi! > I'm going to create Rust installation package for Mac OS X. Right now you > can find the installer there: > http://www.sysdev.me/public/RustInstaller.pkg.zip > But... I've build the installer on 10.8 and when I'm running it on 10.7

Re: [rust-dev] Scheduling for blocking foreign calls

2013-04-11 Thread Patrick Walton
On 4/11/13 2:36 PM, Jeremy Huffman wrote: Hi, I am considering Rust for a particular use case in which I would be doing lots of concurrent requests that would spend most of their time blocked on network I/O in foreign C calls. I may be mistaken but I think a task that blocks like this would blo

[rust-dev] Scheduling for blocking foreign calls

2013-04-11 Thread Jeremy Huffman
Hi, I am considering Rust for a particular use case in which I would be doing lots of concurrent requests that would spend most of their time blocked on network I/O in foreign C calls. I may be mistaken but I think a task that blocks like this would block any other tasks on the same scheduler - i

Re: [rust-dev] String encode/decode

2013-04-11 Thread Fredrik Håård
2013/4/11 Simon Sapin > Le 11/04/2013 16:30, Fredrik Håård a écrit : > > So, I take it no-one is working on codecs, is anyone interested in codecs? >> > > Hi, > > A while ago I started implementing in Rust the WHATWG Encoding > specification: > > http://encoding.spec.whatwg.**org/

Re: [rust-dev] String encode/decode

2013-04-11 Thread Fredrik Håård
2013/4/11 Kang Seonghoon > I do. See also the issue #4837 for my initial ad-hoc attempt. > > The inevitable problem here is, of course, whether we should reuse the > existing iconv library or make our own. iconv is dependent on locales on Unix / mingw on Windows I believe? This is also deeply

Re: [rust-dev] Crossplatform compatibility

2013-04-11 Thread Steve Klabnik
> Is it possible to build Rust on 10.8 and run it on other 10.x systems? OSX :( I don't know about Rust's specifics, but I have dealt with this kind of thing before, and it's safest to do the builds on the oldest version of OSX you support and then share upwards, rather than downwards... it's pos

[rust-dev] Crossplatform compatibility

2013-04-11 Thread Alexander Stavonin
Hi! I'm going to create Rust installation package for Mac OS X. Right now you can find the installer there: http://www.sysdev.me/public/RustInstaller.pkg.zip But... I've build the installer on 10.8 and when I'm running it on 10.7 result is: Segmentation fault: 11 Is it possible to build Rust on

Re: [rust-dev] String encode/decode

2013-04-11 Thread Simon Sapin
Le 11/04/2013 16:30, Fredrik Håård a écrit : So, I take it no-one is working on codecs, is anyone interested in codecs? Hi, A while ago I started implementing in Rust the WHATWG Encoding specification: http://encoding.spec.whatwg.org/ In addition to the actual algorithms (and precise error

Re: [rust-dev] String encode/decode

2013-04-11 Thread Kang Seonghoon
I do. See also the issue #4837 for my initial ad-hoc attempt. The inevitable problem here is, of course, whether we should reuse the existing iconv library or make our own. This is also deeply connected to the assumption that `str` only contains a valid UTF-8 string (which some standard modules br

Re: [rust-dev] String encode/decode

2013-04-11 Thread Fredrik Håård
So, I take it no-one is working on codecs, is anyone interested in codecs? I've started prototyping a solution patterned on Python (i.e. a tool to generate specific codec modules from the specs). /fredrik 2013/4/9 Fredrik Håård > Hi all, > > is anyone working on generic (i.e. iso-*, cp*) strin