Re: [rust-dev] Attributes

2012-10-19 Thread John Mija
On 19/10/12 07:49, Patrick Walton wrote: On 10/18/12 11:43 PM, John Mija wrote: Rust has attributes[1] at function-level but (1) the compilation could be faster if they were at file-level I don't think it'd be significantly faster. cfg'd off items are eliminated very early in compilation (rig

Re: [rust-dev] Should rustdoc include documentation from public imports?

2012-10-19 Thread Alex Rønne Petersen
On Thu, Oct 18, 2012 at 1:00 PM, Tony Young wrote: > I'm not sure where this should be posted so I hope I won't get yelled > at for putting it here. > > Looking at the documentation for f64 > (http://dl.rust-lang.org/doc/0.4/core/f64.html), there isn't any > mention of the imports from cmath > (ht

Re: [rust-dev] GPU programming

2012-10-19 Thread John Mija
On 17/10/12 20:09, John Mija wrote: Since Rust compiles down to LLVM and OpenCL is also built on LLVM compiler technology, could be used the GPU from Rust? Which would be perfect to build games and graphical applications in general that require a lot of processing. Does anybody could say if it c

Re: [rust-dev] GPU programming

2012-10-19 Thread Lucian Branescu
I think it might be even more interesting to be able to compile a subset of Rust to GLSL, similar to https://github.com/ztellman/penumbra/wiki/Shaders-and-GPGPU On 17 October 2012 20:09, Benjamin Striegel wrote: > (Hi folks, the mailing list has been having some trouble, so I'm forwarding > this

Re: [rust-dev] GPU programming

2012-10-19 Thread John Mija
El 19/10/12 09:05, Lucian Branescu escribió: I think it might be even more interesting to be able to compile a subset of Rust to GLSL, similar to https://github.com/ztellman/penumbra/wiki/Shaders-and-GPGPU Penumbra is an wrapper for OpenGL in Clojure; and whatever wrapper to C/C++ code could be

Re: [rust-dev] GPU programming

2012-10-19 Thread Lucian Branescu
Sure, but that's not the interesting bit. Penumbra compiles a subset of Clojure to GLSL, so you don't have to see that silly language so much. This is done with macros in Clojure, but I'm not sure if Rust's macros are as expressive. At the very least it should be doable as a compiler plugin. On 19

Re: [rust-dev] Attributes

2012-10-19 Thread Lucian Branescu
I've found first-class documentation to be very useful in Python, and much more reliable than javadoc-like things. I'd much rather have an attribute that is clearly linked to the function rather than a comment floating about. On 19 October 2012 07:43, John Mija wrote: > Rust has attributes[1] at

Re: [rust-dev] Attributes

2012-10-19 Thread Graydon Hoare
On 19/10/2012 12:23 AM, John Mija wrote: It would make sense to have an attribute at file-level in cases where you have a lot of tests or code for a specific system/architecture, or just because you want to have all more organized. This is already possible. Attribute the 'mod' item that links

Re: [rust-dev] Attributes

2012-10-19 Thread Graydon Hoare
On 19/10/2012 2:18 AM, Lucian Branescu wrote: I've found first-class documentation to be very useful in Python, and much more reliable than javadoc-like things. I'd much rather have an attribute that is clearly linked to the function rather than a comment floating about. This was my preference

Re: [rust-dev] GPU programming

2012-10-19 Thread Graydon Hoare
On 19/10/2012 1:03 AM, John Mija wrote: On 17/10/12 20:09, John Mija wrote: Since Rust compiles down to LLVM and OpenCL is also built on LLVM compiler technology, could be used the GPU from Rust? Which would be perfect to build games and graphical applications in general that require a lot of p

Re: [rust-dev] Announce: rustle, an api search tool

2012-10-19 Thread Brian Anderson
This is awesome. ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Should rustdoc include documentation from public imports?

2012-10-19 Thread Brian Anderson
- Original Message - > From: "Alex Rønne Petersen" > To: "Tony Young" > Cc: rust-dev@mozilla.org > Sent: Friday, October 19, 2012 12:37:30 AM > Subject: Re: [rust-dev] Should rustdoc include documentation from public > imports? > > On Thu, Oct 18, 2012 at 1:00 PM, Tony Young wrote

Re: [rust-dev] Announce: rustle, an api search tool

2012-10-19 Thread Graydon Hoare
On 12-10-18 06:05 PM, Daniel Patterson wrote: > To try it out, contribute, improve, file bugs, etc, go to > http://github.com/dbp/rustle . The readme > should explain how to get started with it. You can also try it out at > http://lab.dbpmail.net/rustle/. The > web frontend is currently very ba

[rust-dev] condition handling

2012-10-19 Thread Graydon Hoare
Hi, If you're going to respond to this email, please read it in full, don't just skim. I've been sketching a module in core::condition this week that implements a condition-handling system on top of the TLS feature (task::local_data) that Ben Blum added over the summer. This email is a very spec

Re: [rust-dev] condition handling

2012-10-19 Thread Erick Tryzelaar
On Fri, Oct 19, 2012 at 4:48 PM, Graydon Hoare wrote: > > 3. "Trap/in", a.k.a. "the system I like the look of best": this is the > version Patrick suggested yesterday. It sets up the handlers in the head > of a do-block and then invokes the protected code. It's order-inverted > from protect/handle