Re: [rust-dev] Optimization removes checks

2019-10-03 Thread Matthieu Monrocq
Hello Kamlesh, This mailing list is more-or-less dead; please consider asking your questions on https://users.rust-lang.org/. Regards On Thu, Oct 3, 2019 at 5:37 AM kamlesh kumar wrote: > why does optimization removes overflow checks? > consider below testcase > $cat test.rs > fn fibonacci(n:

[rust-dev] Optimization removes checks

2019-10-02 Thread kamlesh kumar
why does optimization removes overflow checks? consider below testcase $cat test.rs fn fibonacci(n: u32) -> u32 { let mut f:u32 = 0; let mut s:u32 = 1; let mut next: u32 =f+s; for _ in 1..n { f = s; s= next; next=f+s; } next }

Re: [rust-dev] conditional compiling in rust

2019-08-12 Thread Emil Oppeln-Bronikowski
> Wow, I thought this mailing list died a long time ago. It was "decomissioned" but it never was dropped. I guess someone should just pull a lever and let it go. Otherwise other people will be as dissapointed as I was. ;-) -- "I went to the woods because I wished to live deliberately, to front

Re: [rust-dev] conditional compiling in rust

2019-08-12 Thread Diggory Hardy
Wow, I thought this mailing list died a long time ago. Try https://users.rust-lang.org/ or Stack Overflow for this type of question, or just look for examples. #ifdef is definitely not Rust. Your other example is fine. On Mon, 2019-08-12 at 15:44 -0400, Matt Zand wrote: > I am working on

[rust-dev] conditional compiling in rust

2019-08-12 Thread Matt Zand
I am working on conditional compiling in rust #[cfg(feature = "foo")] I wonder what is right way to call conditional statement: #ifdef ENABLE_FOO fn ... { } #endif or #[cfg(feature = "foo")] fn ... { } Also, are there situation where above

Re: [rust-dev] Extending struct and trait

2019-04-26 Thread Corey Richardson
Hi Nadav, This list is defunct. You should use users.rust-lang.org. See https://www.rust-lang.org/community for other places to communicate. On Fri, Apr 26, 2019, at 07:03, Nadav Vinik wrote: > Hello > > I don't know why you don't want to implement heritage of classes but it > will be easier

[rust-dev] Extending struct and trait

2019-04-26 Thread Nadav Vinik
Hello I don't know why you don't want to implement heritage of classes but it will be easier if will be a macro like: implement_trait_on object(trait, self.c, except_methods)! for example: fn get_homogeneous() -> bool { self.c.get_homogeneous() } Rust complain about missing 1 parameter

Re: [rust-dev] Is there a way to disable struct to integer?

2018-01-22 Thread Malte Schuetze
Hi Mark, this list has been dead for a while now. You are probably looking for https://users.rust-lang.org/ or https://internals.rust-lang.org/ - µ Am 22/01/2018 um 21:42 schrieb Mark S. Baranowski: > Hello, > > I am working on a verifier for Rust, based on the generated LLVM code. I > am

[rust-dev] Is there a way to disable struct to integer?

2018-01-22 Thread Mark S. Baranowski
Hello, I am working on a verifier for Rust, based on the generated LLVM code. I am having an issue with code generated similar to the following struct Point {   pub x: u32,   pub y: u32 } fn double_point(p: Point) -> Point {   Point { x: 2*p.x, y: 2*p.y } } fn main() {   let p = Point { x: 2,

[rust-dev] understanding conditional compiling

2017-12-20 Thread google
Hi folks, I'm currently trying to how conditional compiling in rust actually works. I was under the impression that #[cfg(feature = "foo")] behaves pretty much like an #ifdef, but for the subsequent syntactical block, so instead of #ifdef ENABLE_FOO fn ... { } #endif you

Re: [rust-dev] How does Rust's testsuite work?

2017-10-30 Thread Ronuk Raval
Hey Sébastien, The rust-dev mailing list has been abandoned since 2015. You'll likely get a much better response by posting your question on https://internals.rust-lang.org/ On Mon, Oct 30, 2017 at 11:34 AM, Sébastien Hinderer < sebastien.hinde...@inria.fr> wrote: > Dear all, > > I am a member

[rust-dev] How does Rust's testsuite work?

2017-10-30 Thread Sébastien Hinderer
Dear all, I am a member of OCaml's developement team. More specifically, I am working on a test-driver for the OCaml compiler, which will be part of OCaml's 4.06 release. I am currently writing an article to describe the tool and its principles. In this article, I would like to also talk about

Re: [rust-dev] How are negative int/float literals handled during lexing/parsing?

2016-01-27 Thread Starbuck Johnson
If you do make a post please post the link to the mailing list. I would like to know the answer to this question too. On Wed, Jan 27, 2016, 10:41 AM Kenneth Adam Miller < kennethadammil...@gmail.com> wrote: > Hey, > > Without answering your question, I think you might be better off posting >

[rust-dev] How are negative int/float literals handled during lexing/parsing?

2016-01-27 Thread Johan Tibell
Hi! I'm trying to read the compiler code (mostly because I'm curious) and right now I'm trying to understand the handling of negative integer/float literals. In token.rs we have: pub enum Lit { ... Integer(ast::Name), Float(ast::Name), ... } So at this

Re: [rust-dev] How are negative int/float literals handled during lexing/parsing?

2016-01-27 Thread Johan Tibell
Posted move to http://internals.rust-lang.org/t/how-are-negative-int-float-literals-handled-during-lexing-parsing/3120 as per this mailing list's auto reply instructions. On Wed, Jan 27, 2016 at 5:43 PM, Johan Tibell wrote: > I posted it to http://discuss.rust-lang.org/.

Re: [rust-dev] How are negative int/float literals handled during lexing/parsing?

2016-01-27 Thread Johan Tibell
I posted it to http://discuss.rust-lang.org/. Thanks! On Wed, Jan 27, 2016 at 5:41 PM, Kenneth Adam Miller < kennethadammil...@gmail.com> wrote: > Hey, > > Without answering your question, I think you might be better off posting > your question at reddit.com/r/rust because this mailing list has

Re: [rust-dev] Where to include "access" unix function in Rust API

2015-11-16 Thread Josh Stone
On 11/16/2015 12:56 PM, Josh Stone wrote: > On 11/14/2015 01:38 PM, Evan G wrote: >> Hey! Not sure how you got here, but this mailing list is shut down in >> favor of the rust forum . Feel free to ask >> your questions there! > > Why is the list even accepting new

Re: [rust-dev] Where to include "access" unix function in Rust API

2015-11-16 Thread Josh Stone
On 11/14/2015 01:38 PM, Evan G wrote: > Hey! Not sure how you got here, but this mailing list is shut down in > favor of the rust forum . Feel free to ask > your questions there! Why is the list even accepting new messages anymore? It should be a read-only archive,

[rust-dev] Where to include "access" unix function in Rust API

2015-11-14 Thread Jesús Espino
Hi, I need a function that check the permissions of the current user in a file (this is the unix access function). In rust i can use the unsafe function libc::access, but I think must more sense to have it on the File Metadata object or MetadataExt. I'm thinking about make a pull request to rust

Re: [rust-dev] Where to include "access" unix function in Rust API

2015-11-14 Thread Evan G
Hey! Not sure how you got here, but this mailing list is shut down in favor of the rust forum . Feel free to ask your questions there! it looks like you may be looking for https://doc.rust-lang.org/std/fs/struct.Permissions.html though. On Sat, Nov 14, 2015 at 4:29

[rust-dev] Rust compilation times with FastISel?

2015-09-30 Thread Hayden Livingston
Has anybody tried using FastISel instead of regular ISel provided by LLVM? I remember that previously we couldn't use FastISel. Maybe that has changed? What instructions were we using that requires ISel and not FastISel? ___ Rust-dev mailing list

Re: [rust-dev] Rust compilation times with FastISel?

2015-09-30 Thread Erick Tryzelaar
I believe this mailing list has been retired. Instead, I'd recommend asking this question on https://internals.rust-lang.org. On Wed, Sep 30, 2015 at 2:43 PM, Hayden Livingston wrote: > Has anybody tried using FastISel instead of regular ISel provided by LLVM? > > I

[rust-dev] Implementing an application in Rust for ‘C’ RTOS

2015-08-25 Thread Bangalore Ramaiah, Mk
Greetings..! I am relatively new to rust and planning on building an application in Rust for Contiki RTOS (implemented in C). As of now I am able to write a Rust lib containing code that will be called from other Contiki applications. But I am finding it bit tricky (with current Rust version)

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-17 Thread Simon Flynn
On Fri, Aug 14, 2015 at 09:33:34AM -0700, Aaron Turon wrote: As Diggory said, Mozilla has sponsored development but does not own the project. However, Mozilla does own the trademark for Rust on behalf of the core team. The core team has been actively hammering out some guidelines about exactly

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Emil Oppeln-Bronikowski
I hope that was in jest - rustaceans.com has only been live for 9 hours. Uh oh! I'm sorry, I didn't read the whole thread and that's what I get, being a fool! :) ___ Rust-dev mailing list Rust-dev@mozilla.org

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Sean McArthur
I'd be wary of some of the lists, such as rust-core, rust-bugs, rust-announce, etc, that some may think are official. On Tue, Aug 11, 2015 at 1:38 PM Simon Flynn simon.fl...@financejobs.co wrote: On Tue, Aug 11, 2015 at 10:11:10PM +0200, Simon Sapin wrote: On 11/08/15 16:12, Simon Flynn

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Emil Oppeln-Bronikowski
I'm sad this list is inactive, I like my mailing lists and don't really love web forums. I was very surprised when today I got first e-mail, I forgot I subscribed. :-) ___ Rust-dev mailing list Rust-dev@mozilla.org

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Tony Arcieri
On Tue, Aug 11, 2015 at 3:52 PM, Emil Oppeln-Bronikowski e...@fuse.pl wrote: I'm sad this list is inactive, I like my mailing lists and don't really love web forums. I was very surprised when today I got first e-mail, I forgot I subscribed. :-) If rustaceans.com were to host a general Rust

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Emil Oppeln-Bronikowski
W dniu 12.08.2015 o 00:57, Tony Arcieri pisze: If rustaceans.com http://rustaceans.com were to host a general Rust discussion email list (e.g. rust-talk), I'd subscribe I see they have rust-users, but the archives are empty. Well, I guess that's the world we're living. I might as well stick

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Douglas Campos
and where is this place you mention? On Tue, Aug 11, 2015 at 11:12 AM, Simon Flynn simon.fl...@financejobs.co wrote: Hi Rustaceans, With the rust-dev mailing list in a semi-abanandonded state, we have decided to create a new place where people can gather to talk all thing Rust, but in

[rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Simon Flynn
Hi Rustaceans, With the rust-dev mailing list in a semi-abanandonded state, we have decided to create a new place where people can gather to talk all thing Rust, but in particular to help organize local meetups and other gatherings (e.g. conferences, open days etc). Rust on, Simon -- Simon

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Manish Goregaokar
users.rust-lang.org is usually good enough for this. You can also email rust-commun...@googlegroups.com if you want to contact the community team (we may set up a separate forum for event organizers c) Thanks, -Manish Goregaokar On Tue, Aug 11, 2015 at 7:52 PM, Douglas Campos q...@qmx.me

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Evan G
I think what Douglas was trying to say is that Simon forgot to include whatever link he was going to put in the email. On Tue, Aug 11, 2015 at 1:18 PM Manish Goregaokar manishsm...@gmail.com wrote: users.rust-lang.org is usually good enough for this. You can also email

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Simon Flynn
On Tue, Aug 11, 2015 at 11:22:49AM -0300, Douglas Campos wrote: and where is this place you mention? Hi, Can't believe I forgot the link! https://www.rustaceans.com/ Simon On Tue, Aug 11, 2015 at 11:12 AM, Simon Flynn simon.fl...@financejobs.co wrote: Hi Rustaceans, With the

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Simon Sapin
On 11/08/15 16:12, Simon Flynn wrote: Hi Rustaceans, With the rust-dev mailing list in a semi-abanandonded state, Hi Simon, Are you aware of https://users.rust-lang.org/ ? we have decided Who is we? to create a new place where people can gather to talk all thing Rust, but in

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Simon Flynn
On Tue, Aug 11, 2015 at 10:11:10PM +0200, Simon Sapin wrote: On 11/08/15 16:12, Simon Flynn wrote: Are you aware of https://users.rust-lang.org/ ? Yes, I'm aware. However, the focus of rustaceans.com will be fostering small, tight knit communities akin to what Perl Mongers is to Perl, whereas

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Simon Flynn
Hi Sean, On Tue, Aug 11, 2015 at 10:50:12PM +, Sean McArthur wrote: I'd be wary of some of the lists, such as rust-core, rust-bugs, rust-announce, etc, that some may think are official. Mozilla having semi-closed their rust-dev mailing list was the motivation for hosting the rust-* lists.

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Tony Arcieri
On Tue, Aug 11, 2015 at 6:58 PM, Sean McArthur smcart...@mozilla.com wrote: Yes I know. Even just adding `Unofficial' in the description of those lists would help prevent confusion, I think. To me Rustaceans implies unofficial/community organized, all the way down to Ferris. -- Tony Arcieri

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Simon Flynn
Hi Emil, On Wed, Aug 12, 2015 at 01:00:33AM +0200, Emil Oppeln-Bronikowski wrote: W dniu 12.08.2015 o 00:57, Tony Arcieri pisze: If rustaceans.com http://rustaceans.com were to host a general Rust discussion email list (e.g. rust-talk), I'd subscribe I see they have rust-users, but the

Re: [rust-dev] Rustaceans - Rust User Groups

2015-08-11 Thread Sean McArthur
Yes I know. Even just adding `Unofficial' in the description of those lists would help prevent confusion, I think. The 'official' rust-core is https://internals.rust-lang.org On Tue, Aug 11, 2015 at 4:42 PM Simon Flynn simon.fl...@financejobs.co wrote: Mozilla having semi-closed their rust-dev

Re: [rust-dev] Rationale for closing this mailing list

2015-05-31 Thread Evan G
The mailing list is not closed, which is why you can still use it to ask this question. It is merely dead, as conversation split into the two forums, users.rust-lang.org and internal.rust-lang.org. There are configuration options you can set in Discourse to make it work more like a mailing list,

Re: [rust-dev] Rationale for closing this mailing list

2015-05-31 Thread Flavius Aspra
On Sun, May 31, 2015 at 5:27 PM, Evan G eg1...@gmail.com wrote: The mailing list is not closed, which is why you can still use it to ask this question. It is merely dead, as conversation split into the two forums, users.rust-lang.org and internal.rust-lang.org. There are configuration

Re: [rust-dev] Rationale for closing this mailing list

2015-05-31 Thread Andrew Gallant
So... why? https://mail.mozilla.org/pipermail/rust-dev/2015-January/011558.html ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Rust-dev Digest, Vol 58, Issue 3

2015-05-31 Thread Benjamin Dietze
Please unsubscribe me!!! Gesendet über Yahoo Mail für Android Von:rust-dev-requ...@mozilla.org rust-dev-requ...@mozilla.org Datum:So., 31. Mai 2015 um 14:00 Betreff:Rust-dev Digest, Vol 58, Issue 3 Send Rust-dev mailing list submissions to     rust-dev@mozilla.org To subscribe or unsubscribe

[rust-dev] Rationale for closing this mailing list

2015-05-31 Thread Flavius Aspra
Hi What are the rationale for closing this mailing list? Old rusty hackers are used to MLs. Could you please point me to the discussion where this has been decided? Regards Flavius Aspra ___ Rust-dev mailing list Rust-dev@mozilla.org

[rust-dev] Bare-metal Rust linking with C static library

2015-05-30 Thread Eric Stutzenberger
I'm working on building out a Rust interface to the nRF51x series parts. I have a bare metal system working quite well. The nRF51x has a bluetooth stack (called Softdevice). This stack requires the use of supervisor calls to request the stack to perform certain functions. My plan is to write a

Re: [rust-dev] Bare-metal Rust linking with C static library

2015-05-30 Thread Matthieu Monrocq
Hello Eric, Please note that the rust-dev list is (for better or worse) abandonned. You may ask questions on either IRC ( https://chat.mibbit.com/?server=irc.mozilla.orgchannel=%23rust), the users forum (https://users.rust-lang.org/) or StackOverflow. You may also ask on Reddit

Re: [rust-dev] rust-dev will be shut down soon

2015-05-20 Thread techabc
Is there a way(i.e. a robot) to mirror the contents in read only mode of reddit/r/rust to this mailling lists? 2015-01-24 4:39 GMT+08:00 Brian Anderson bander...@mozilla.com: Tomi, Once the new discourse instance is set up it will be publicized on the home page, and we may also decide then

Re: [rust-dev] rust-dev will be shut down soon

2015-05-20 Thread Damien Gérard
On 20 May 2015, at 10:05, techabc tech...@gmail.com wrote: Is there a way(i.e. a robot) to mirror the contents in read only mode of reddit/r/rust to this mailling lists? Reddit provides a RSS feed. https://www.reddit.com/r/rust/.rss 2015-01-24 4:39 GMT+08:00 Brian Anderson

Re: [rust-dev] rust-dev will be shut down soon

2015-05-20 Thread Manish Goregaokar
Should be simple as an IFTT recipe.. -Manish Goregaokar On Wed, May 20, 2015 at 1:35 PM, techabc tech...@gmail.com wrote: Is there a way(i.e. a robot) to mirror the contents in read only mode of reddit/r/rust to this mailling lists? 2015-01-24 4:39 GMT+08:00 Brian Anderson

Re: [rust-dev] rust-dev will be shut down soon

2015-05-20 Thread techabc
thanks a lot. I find https://blogtrottr.com, hope to figuer it out. ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

[rust-dev] Help for a RUST Release Party in Bangladesh

2015-05-19 Thread Mohi Us Sunnat
Hey all, I am a Mozillian from Bangladesh and a new contributor of Rust. I am learning RUST for last 1 week and already I have fallen in love. :) I want to organize a RUST release party (or something like this) in Bangladesh. I need a good plan to success this release party. In this event, We

Re: [rust-dev] Newcomer to Rust: my experience

2015-04-17 Thread Dave Smith
It's good to see the rust-dev list still alive! ;) D. On Thu, Apr 16, 2015 at 10:42 PM, Flavius Aspra flavius...@gmail.com wrote: I agree with the fact that, while the explanations in the tutorial are fine, they're way out of order. Even an experienced programmer needs time to digest the

Re: [rust-dev] Newcomer to Rust: my experience

2015-04-16 Thread Flavius Aspra
I agree with the fact that, while the explanations in the tutorial are fine, they're way out of order. Even an experienced programmer needs time to digest the material in its entirety. Rust would make a really good first-to-learn-language, unfortunately that material is not available yet. On

Re: [rust-dev] Newcomer to Rust: my experience

2015-04-06 Thread Oleg Eterevsky
Hi Wesley! That's a very cool analysis. This sounds very much like my thoughts about the tutorial. I think you'd better post it on http://users.rust-lang.org/, since it is the main place for Rust discussions now. The mailing list is almost dead. -- Oleg On Mon, Apr 6, 2015 at 4:23 PM Wesley W.

Re: [rust-dev] Newcomer to Rust: my experience

2015-04-06 Thread Wesley W. Terpstra
Yes, I discovered this, thanks. I signed up for http://internals.rust-lang.org/c/documentation and posted it there. On Mon, Apr 6, 2015 at 3:34 PM, Oleg Eterevsky o...@eterevsky.com wrote: Hi Wesley! That's a very cool analysis. This sounds very much like my thoughts about the tutorial. I

[rust-dev] Newcomer to Rust: my experience

2015-04-06 Thread Wesley W. Terpstra
Good afternoon and happy easter, I am a newcomer to Rust and recently finished working through your tutorial. Before I get too much further into reading the standard library, I wanted to share my experience as a complete Rust newbie starting out only with your documentation, before I forget it. I

Re: [rust-dev] Newcomer to Rust: my experience

2015-04-06 Thread Ryan Hiebert
Thanks Wesley, for your writeup. I’m still learning Rust, and I think your post here is likely to give me some direction as I learn about some of the unique features of Rust. On Apr 6, 2015, at 8:55 AM, Wesley W. Terpstra wes...@terpstra.ca wrote: Yes, I discovered this, thanks. I signed

[rust-dev] Rust tests are failing in Arch chrooted environment

2015-01-30 Thread Anatol Pomozov
Hi, I am trying to build rust package on my Linux Arch build computer. I use chrooted build environment that provides clean version of root filesystem with minimum build packages required. Some tests are failing. If I build the same package out of chroot environment then the tests are passed.

Re: [rust-dev] rust-dev will be shut down soon

2015-01-23 Thread Brian Anderson
Tomi, Once the new discourse instance is set up it will be publicized on the home page, and we may also decide then to put the internals forum there as well, since it's purpose will be less easily confused. On Thu, Jan 22, 2015 at 10:33 PM, Tomi Pieviläinen tomi.pievilai...@iki.fi wrote: My

Re: [rust-dev] rust-dev will be shut down soon

2015-01-23 Thread Manish Goregaokar
internals means compiler internals and all usually. (cf #rust-internals on IRC, the internals tag on Discourse, etc) AFAICT it will still be completely open for all to comment on -Manish Goregaokar On Fri, Jan 23, 2015 at 12:03 PM, Tomi Pieviläinen tomi.pievilai...@iki.fi wrote: My last

Re: [rust-dev] rust-dev will be shut down soon

2015-01-23 Thread Corey Richardson
Note that it *is* linked, through https://github.com/rust-lang/rust/wiki/Note-guide-for-new-contributors, just not the homepage. On Fri, Jan 23, 2015 at 10:59 AM, Steve Klabnik st...@steveklabnik.com wrote: The current discourse has not been linked because it's for compiler internals and

Re: [rust-dev] rust-dev will be shut down soon

2015-01-23 Thread Steve Klabnik
The current discourse has not been linked because it's for compiler internals and language development, not general users. A second instance is being set up for regular user discussion. It will get linked from the home page. And both are available for anyone to register in.

Re: [rust-dev] [OT] discourse bridge [was: rust-dev will be shut down soon]

2015-01-22 Thread Richo Healey
On 22/01/15 11:59 -0800, Brian Anderson wrote: You likely have already noticed, but traffic to rust-dev has decreased dramatically in recent months. This was a result of natural changes in project coordination at first, and then an intentional effort to phase out the list. For anyone else

Re: [rust-dev] [OT] discourse bridge [was: rust-dev will be shut down soon]

2015-01-22 Thread Bryan Bell
The best I found was to subscribe to watch the topics I'm interested in. I went to http://discuss.rust-lang.org/users/[username]/preferences and under Categories - Watched added the ones I was interested in. It'll email you whenever there's a new topic or reply in any of those categories. On

Re: [rust-dev] [OT] discourse bridge [was: rust-dev will be shut down soon]

2015-01-22 Thread Nicholas Allegra
On Thu, Jan 22, 2015 at 4:58 PM, Richo Healey ri...@psych0tik.net wrote: This comes up a lot (I found a lot of threads on meta.discourse.com about it) but the conclusion seems to be that reply-by-email is supported, but in general, email/nntp is not a particularly supported way to browse.

Re: [rust-dev] rust-dev will be shut down soon

2015-01-22 Thread Tomi Pieviläinen
My last comment about visibility of the discourse pretty much immediately side-tracked into the merits and flaws of mailing lists... But nobody really answered whether the absence of links from the Rust homepage to the discourse was intentional. Does internal use then mean that it is meant only

[rust-dev] rust-dev will be shut down soon

2015-01-22 Thread Brian Anderson
You likely have already noticed, but traffic to rust-dev has decreased dramatically in recent months. This was a result of natural changes in project coordination at first, and then an intentional effort to phase out the list. In the beginning of the project there were only two places to talk

[rust-dev] NYC Meetups (status report)

2015-01-21 Thread Rick Richardson
There are now not one, but three meetup groups for Rust in NYC (hurray communication! ... ahem) In addition to the meetup/hackfest that Steve K occasionally runs in Brooklyn, there are now two groups on meetup.com: http://meetup.com/RustNY and http://meetup.com/Rust-NYC I would like to get this

[rust-dev] Surpassing C in conditional compilation

2015-01-20 Thread Christopher Bergqvist
Hi Rust devs! First of all, thank you for putting so much effort into creating this promising language! I would be glad to hear your thoughts on some minor bikeshedding before the 1.0 release. From what I can see, the conditional compilation in Rust shares a weakness with the C preprocessor.

Re: [rust-dev] Generate Linux executable from rustc on mac

2015-01-18 Thread C K Kashyap
+rust-dev On Sun, Jan 18, 2015 at 1:53 PM, C K Kashyap ckkash...@gmail.com wrote: Luckily a workaround seems to work for me - I've updated the bug with the same - update in the bug--- For what it's worth I have a workaorund that works for me - On my mac machine, do the following 1.

[rust-dev] 2/19 Bay Area Rust Meetup: All about IO

2015-01-18 Thread Erick Tryzelaar
Greetings, Rustaceans! I'm pleased to announce the next Bay Area Rust Meetup on February, 19, 2015 at 7pm. This meetup will be focused on the blocking IO system part of the standard library, and asynchronous IO systems being built upon mio https://github.com/carllerche/mio. Here's the lineup: •

[rust-dev] Generate Linux executable from rustc on mac

2015-01-16 Thread C K Kashyap
Hi, I'd like to build executables that can run on Linux using rust on mac. What configuration do I need to build rustc (on mac) with? ./configure --target=x86_64-unknown-linux-gnu does not seem to work. Regards, Kashyap ___ Rust-dev mailing list

Re: [rust-dev] Rust discourse visibility [Was: Tail call compatibility]

2015-01-12 Thread Kevin McGuire
+1 ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Find first set

2015-01-12 Thread Peter Marheine
You can express ffs in terms of nlz, which is available as Int::leading_zeros and appears to be implemented with LLVM intrinsics for most types. On Mon, Jan 12, 2015 at 10:17 AM, Kevin McGuire kmcg3...@gmail.com wrote: On Mon, Jan 12, 2015 at 11:12 AM, Matthew Hammer ham...@cs.umd.edu wrote: Hi

Re: [rust-dev] is rust an 'oopl'?

2015-01-12 Thread Matthieu Monrocq
Hello, The main feature of OOP that Rust supports is polymorphism, though it is achieved via type-classes rather inheritance (*). It also features encapsulation, but it may have existed before OOP so it's hard to view it as an OOP-feature... Regarding the need to learn functional programming

Re: [rust-dev] Find first set

2015-01-12 Thread Kevin McGuire
On Mon, Jan 12, 2015 at 11:12 AM, Matthew Hammer ham...@cs.umd.edu wrote: Hi Rust Developers, I’m in need of this bit-level operation: http://en.wikipedia.org/wiki/Find_first_set I’m happy to implement it as a loop, but it seems like many architectures support it directly, as does libc.

[rust-dev] Find first set

2015-01-12 Thread Matthew Hammer
Hi Rust Developers, I’m in need of this bit-level operation: http://en.wikipedia.org/wiki/Find_first_set http://en.wikipedia.org/wiki/Find_first_set I’m happy to implement it as a loop, but it seems like many architectures support it directly, as does libc. Does anyone know if this is

Re: [rust-dev] is rust an 'oopl'?

2015-01-11 Thread Matthieu Monrocq
Hello Mayuresh, The problem with your question is dual: - OO itself is a fairly overloaded term, and it is unclear what definition you use for it: Alan Kay's original? The presence of inheritance? ... - Just because a language supports OO concepts does not mean that it ONLY supports OO

Re: [rust-dev] Rust discourse visibility [Was: Tail call compatibility]

2015-01-11 Thread Jonas Wielicki
Seconding the arguments of others arguing *for* a mailing list. On 29.12.2014 22:02, Kevin Cantu wrote: It had gotten pretty clear that having a catch-all mailing list wasn't going to scale. Python also uses mailing lists as the primary communication medium. The main three lists are:

Re: [rust-dev] is rust an 'oopl'?

2015-01-11 Thread Mayuresh Kathe
hello matthieu, thanks for responding. you mentioned that rust supports some object-oriented concepts. may i know which? also, deviating a bit off-topic, would a decent grasp of functional programming be a pre-requisite to learning rust? thanks, ~mayuresh On 2015-01-11 17:21, Matthieu

Re: [rust-dev] is rust an 'oopl'?

2015-01-11 Thread Mayuresh Kathe
whew, that was an exhaustive explanation, thanks for taking the efforts to write in the detailed response. i realised one thing, the best way to learn rust would be to not have any preconceived notions about it, as well as to take things a bit easy and learn the language as it is, one morsel

Re: [rust-dev] Rust discourse visibility [Was: Tail call compatibility]

2015-01-11 Thread Tom Browder
On Sun, Jan 11, 2015 at 6:00 AM, Jonas Wielicki j.wieli...@sotecware.net wrote: Seconding the arguments of others arguing *for* a mailing list. +1 -Tom ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Rust discourse visibility [Was: Tail call compatibility]

2015-01-11 Thread Paul Nathan
+1 for mailing lists. Can't stand discourse myself. On Jan 11, 2015 6:28 PM, Tom Browder tom.brow...@gmail.com wrote: On Sun, Jan 11, 2015 at 6:00 AM, Jonas Wielicki j.wieli...@sotecware.net wrote: Seconding the arguments of others arguing *for* a mailing list. +1 -Tom

[rust-dev] is rust an 'oopl'?

2015-01-10 Thread Mayuresh Kathe
hello, i am an absolute newbie to rust. is rust an object-oriented programming language? i ask because i detest 'oo', and am looking for something better than c. thanks, ~mayuresh ___ Rust-dev mailing list Rust-dev@mozilla.org

[rust-dev] Cross-compilation with plugins is effectively dead?

2015-01-10 Thread Vladimir Pouzanov
I have some concerns related to https://github.com/rust-lang/rust/issues/18699 and I'd like to get some advice from the team. Support for cross-compiling code with plugins was broken for a few months now for anything but linux. Finally it seems to be broken for linux as well halting all our

Re: [rust-dev] rustbyexample.com's failing example due to changes in nightly

2015-01-08 Thread Santiago Pastorino
Ok, with wycats point me out to the issue and got it working. You can see the diff here https://gist.github.com/spastorino/a286f296a850b8ea5d0f/revisions PR to rustbyexample sent ... https://github.com/rust-lang/rust-by-example/pull/374 On Thu, Jan 8, 2015 at 2:24 PM, Santiago Pastorino

[rust-dev] rustbyexample.com's failing example due to changes in nightly

2015-01-08 Thread Santiago Pastorino
Hi everyone, I was looking at rustbyexample and found that some examples are not working using the latest nighly Rust compiler. I've fixed one example https://github.com/rust-lang/rust-by-example/pull/371 already merged and now was looking at this one http://rustbyexample.com/bounds.html. I

Re: [rust-dev] About const

2015-01-04 Thread Manish Goregaokar
We have two types of floats, there is a Pi of both precision levels. I don't think it's anything more than that. You should be able to cast between the two, but that's it I guess. Rust tries to give explicit control over such things. There is a Float trait (might have been renamed) if you want to

[rust-dev] About const

2015-01-04 Thread Pim Schellart
Dear Rust Developers, here is another ignorant question so feel free to ignore. When reading the guide I came across std::f64::consts::PI” for pi. Now I was wondering why there are separate constants defined for 32 and 64 bit floats and how this will work with generics. Do you always have to

Re: [rust-dev] Declaring the API unsafe while keeping the internal safety checks

2015-01-02 Thread Vladimir Pouzanov
Well, strictly speaking it *is* memory safety, as it all gets down to an unsafe volatile store. Although I think I extend the 'unsafety' a bit by considering code that can cause CPU to halt as unsafe too. On Fri, Jan 2, 2015 at 2:11 AM, Kevin McGuire kmcg3...@gmail.com wrote: Yes unsafe is

Re: [rust-dev] Declaring the API unsafe while keeping the internal safety checks

2015-01-02 Thread David Henningsson
On 2015-01-01 12:17, Vladimir Pouzanov wrote: I had this idea for some time and I'd like to discuss it to see if it is something reasonable to be proposed for rust to implement or there are other ways around the problem. Let's say I have a low level function that manipulates the hardware

Re: [rust-dev] Problems cross-compiling to ARM9

2015-01-01 Thread Vladimir Pouzanov
FWIW, we're just disabling segmented stack in zinc for now exactly because of the same problem. I have a patch for llvm but I didn't really push it upstream hard enough. On Tue, Dec 30, 2014 at 11:23 AM, Valerii Hiora valerii.hi...@gmail.com wrote: Hi Tomi, Anyone have any idea if that's a

[rust-dev] Why .iter() for looping over arrays

2015-01-01 Thread Pim Schellart
Dear Rust developers, I have just started using rust so this is obviously a stupid question but I was wondering why .iter() is needed when looping over the elements of an array? In the following example: let a = [1i, 2i, 3i]; for e in a.iter() { println!({}, e); } why

Re: [rust-dev] Declaring the API unsafe while keeping the internal safety checks

2015-01-01 Thread David Henningsson
On 2015-01-01 12:17, Vladimir Pouzanov wrote: I had this idea for some time and I'd like to discuss it to see if it is something reasonable to be proposed for rust to implement or there are other ways around the problem. Let's say I have a low level function that manipulates the hardware

Re: [rust-dev] Problems cross-compiling to ARM9

2014-12-31 Thread Tomi Pieviläinen
- Rust - can be relatively easy fixed by providing (or patching) a target and marking it as a target which doesn't support segmented stacks, see example [1] - LLVM - as I remember some time ago LLVM generated a function prologue which uses the same instruction for any ARM device The

Re: [rust-dev] Problems cross-compiling to ARM9

2014-12-30 Thread Tomi Pieviläinen
So far my best guess is that the problem is the Assmebly line mrc 15, 0, r4, cr13, cr0, {3} in main, which means that it's trying to read from coprocessor 15, register 13, part 3. According to http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0360e/CACEAIHG.html that's a thread

Re: [rust-dev] Problems cross-compiling to ARM9

2014-12-30 Thread Valerii Hiora
Hi Tomi, Anyone have any idea if that's a larger problem, or simply something nobody has written the small handcoded ASMs needed for ARMv5 or v4? If latter, I might be able to wrap my head around this. The problem you've got is related to segmented stack support. It need fix on 2 levels:

Re: [rust-dev] Rust discourse visibility [Was: Tail call compatibility]

2014-12-30 Thread Tuncer Ayaz
On Tue, Dec 30, 2014 at 12:09 AM, Tony Arcieri basc...@gmail.com wrote: On Mon, Dec 29, 2014 at 1:02 PM, Kevin Cantu m...@kevincantu.org wrote: It's easy to set up discuss to email you all the time, too: give it a try. I've set up Discourse this way. As a Gmail user, this is mostly fine

Re: [rust-dev] Rust discourse visibility [Was: Tail call compatibility]

2014-12-30 Thread Tuncer Ayaz
On Sat, Dec 27, 2014 at 7:42 PM, Bardur Arantsson wrote: On 2014-12-27 19:13, Evan G wrote: A little hyperbolic, considering we're all the same rust community. And as far as I know you can set discourse up to work like a mailing list (i.e. email me for every post, email me even if

  1   2   3   4   5   6   7   8   9   10   >