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

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] (FFI) Compile a dylib to x86 from a x86_64 machine and rust toolchain

2014-12-28 Thread Corey Richardson
You need at least a 32-bit stdlib, but you can build with `cargo build --target i686-unknown-linux-gnu` and it will Just Work assuming you have the proper libs in $PREFIX/lib/rustlib/i686-unknown-linux-gnu. http://doc.rust-lang.org/src/rustc_back/target/mod.rs.html#330 has a list of the built-in

Re: [rust-dev] target json documentation

2014-12-09 Thread Corey Richardson
the contents of the json file that is passed. Corey Richardson can help you with that. -- Valerii -- http://octayn.net/ ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Crosscompiling rust with non-blessed compiler prefixes

2014-10-17 Thread Corey Richardson
The target specs that rustc will use won't be relevant to the build system. Adding things to platform.mk is how the build system is extended, right now, and I don't foresee that changing. On Fri, Oct 17, 2014 at 5:19 PM, Cody P Schafer d...@codyps.com wrote: On Fri, Oct 17, 2014 at 4:41 PM, Ben

Re: [rust-dev] Rust Research Project Query

2014-10-08 Thread Corey Richardson
LLVM already has support for instrumenting code to generate gcov data, I believe Luqman and Huon have looked into this, at least slightly. On Wed, Oct 8, 2014 at 9:09 PM, Sean McArthur smcart...@mozilla.com wrote: A project I'd love to see (either separate, or eventually baked into the test

Re: [rust-dev] Is there a PNG lib?

2014-09-08 Thread Corey Richardson
https://github.com/PistonDevelopers/rust-image On Mon, Sep 8, 2014 at 9:44 AM, Oldřich Vetešník oldrich.vetes...@gmail.com wrote: Hello, I’m curious - is there a PNG processing lib for Rust? I’d like to write a tiny client tool for processing a directory of images into HTML and I’ll need

Re: [rust-dev] rust and cuda

2014-09-06 Thread Corey Richardson
See http://www.cs.indiana.edu/~eholk/papers/hips2013.pdf and http://blog.theincredibleholk.org/blog/2012/12/05/compiling-rust-for-gpus/ for prior work. On Sat, Sep 6, 2014 at 1:09 PM, Madhu Srinivasan smadhuea...@outlook.com wrote: Hello fellow Rustians, I am wondering (before attempting

Re: [rust-dev] Important typo in Rust Guide

2014-08-30 Thread Corey Richardson
In the future, all issues related to Rust should go on the issue tracker: https://github.com/rust-lang/rust/issues Or, you can just open a pull request :) https://github.com/rust-lang/rust/pull/16881 On Sat, Aug 30, 2014 at 9:25 AM, Charlie Flowers cflow...@gmail.com wrote: There's a

[rust-dev] Please help me test flexible target specification!

2014-08-01 Thread Corey Richardson
Patch here: https://github.com/rust-lang/rust/pull/16156 If you cross compile, or can test on perhaps-lesser-used setups, I would very much appreciate a `make check`. This is touching all the fiddly bits of linking, so it's not very easy to test. Thanks! -- http://octayn.net/

Re: [rust-dev] This Week in Rust

2014-07-28 Thread Corey Richardson
Atom feed is in the same place it always has been: http://blog.octayn.net/atom.xml and On Mon, Jul 28, 2014 at 1:20 AM, Diggory Hardy diggory.ha...@unibas.ch wrote: Any chance you can add RSS feeds on the new blog? On Sunday 27 Jul 2014 11:52:52 Corey Richardson wrote: Been super busy

Re: [rust-dev] This Week in Rust

2014-07-27 Thread Corey Richardson
Been super busy, but there's some good stuff in store: http://blog.octayn.net/blog/2014/06/09/future-of-twir/ On Sun, Jul 27, 2014 at 9:46 AM, Nathan Typanski ntypan...@gmail.com wrote: It's moved here http://blog.octayn.net/, although there hasn't been an update since 15 July. Nathan

Re: [rust-dev] Conflicting implementations of a trait

2014-07-22 Thread Corey Richardson
Not right now. Extending the language to allow this is the subject of RFC 24: https://github.com/rust-lang/rfcs/blob/master/active/0024-traits.md On Tue, Jul 22, 2014 at 9:50 AM, Allen Welkie allen.wel...@gmail.com wrote: Can there be two simultaneous implementations of a generic trait? I ask

Re: [rust-dev] Implementation of traits in Rust: could it be dynamic?

2014-07-22 Thread Corey Richardson
You can avoid monomorphization by using trait objects, which erase the precise implementing type through a vtable + pointer. http://doc.rust-lang.org/tutorial.html#trait-objects-and-dynamic-method-dispatch has some documentation. On Tue, Jul 22, 2014 at 10:16 AM, Lionel Parreaux

Re: [rust-dev] moving out few odd libraries from the main tree

2014-07-21 Thread Corey Richardson
I believe it has long been the goal that once we have a robust package manager, we would start moving everything we could get away with out of the tree. Cargo is pretty awesome now, and I think we could get away with moving those out, with the caveat that cargo depends on semver.. On Mon, Jul 21,

Re: [rust-dev] Mutable files

2014-07-20 Thread Corey Richardson
That's right. `BufferedReader` takes the `Reader` it wraps by-value, but the `read` method takes `mut self`. Moving something doesn't require it to be stored in a mutable variable, but taking a `mut` to it does. On Sun, Jul 20, 2014 at 6:29 PM, David Henningsson di...@ubuntu.com wrote: Hi,

Re: [rust-dev] [ANN] zmq.rs - native stack of ØMQ in Rus

2014-07-02 Thread Corey Richardson
Complaining about something I don't like: Due to the choice of MPLv2, this won't be usable in the wider Rust ecosystem, which is MIT/ASL2 focused. In particular, section 3.2(a) requires that any distribution in Executable Form carry a notice about how to acquire the source code of zmq.rs. This is

Re: [rust-dev] [ANN] zmq.rs - native stack of ØMQ in Rus

2014-07-02 Thread Corey Richardson
: On 07/02/2014 03:16 AM, Corey Richardson wrote: Complaining about something I don't like: Due to the choice of MPLv2, this won't be usable in the wider Rust ecosystem, which is MIT/ASL2 focused. In particular, section 3.2(a) requires that any distribution in Executable Form carry a notice

Re: [rust-dev] box syntax question

2014-07-02 Thread Corey Richardson
The full syntax is: box [( EXPR )] EXPR The first expression is the boxer, or where the result of the second expression will be stored. GC and HEAP are special cased right now as the only boxers, but the goal is to use a trait such that you can use Rc, arenas, vectors, or any other arbitrary type

Re: [rust-dev] [ANN] Initial Alpha of Cargo

2014-06-23 Thread Corey Richardson
There is an Ubuntu PPA available at https://launchpad.net/~cmrx64/+archive/cargo, for use on travis or otherwise. On Mon, Jun 23, 2014 at 10:50 PM, Yehuda Katz wyc...@gmail.com wrote: Folks, I'm happy to announce that Cargo is now ready to try out! The Cargo repository is now at

Re: [rust-dev] Compiling Rust programs with the Meson build system

2014-06-18 Thread Corey Richardson
Hey Jussi, Very cool! Always happy to see tools with Rust support :) As to file names, do you know about `rustc --crate-file-name`? On Wed, Jun 18, 2014 at 3:17 PM, Jussi Pakkanen jpakk...@gmail.com wrote: Hi I'm working on a build system called Meson (https://jpakkane.github.io/meson/) and

Re: [rust-dev] self/mut self in traits considered harmful(?)

2014-06-12 Thread Corey Richardson
Or bound by Copy. On Thu, Jun 12, 2014 at 10:17 AM, Patrick Walton pwal...@mozilla.com wrote: You could just clone the value to get around that error. On June 12, 2014 10:03:40 AM PDT, Tommi rusty.ga...@icloud.com wrote: On 2014-06-12, at 19:08, Patrick Walton pcwal...@mozilla.com wrote:

Re: [rust-dev] self/mut self in traits considered harmful(?)

2014-06-12 Thread Corey Richardson
It's called Copy. `trait Foo: Copy { ... }`. On Thu, Jun 12, 2014 at 10:26 AM, Tommi rusty.ga...@icloud.com wrote: I think a new keyword, something like `stable`, is needed for specifying that an argument passed to a trait function is guaranteed to be logically unchanged after the function

Re: [rust-dev] self/mut self in traits considered harmful(?)

2014-06-12 Thread Corey Richardson
to a discussion about adding to Rust the C++ like optimization of moving rvalues (of non-Copy types) when they're passed to certain functions. On 2014-06-12, at 20:30, Corey Richardson co...@octayn.net wrote: It's called Copy. `trait Foo: Copy { ... }`. On Thu, Jun 12, 2014 at 10:26 AM, Tommi

Re: [rust-dev] Is there a Parsec equivalent in Rust?

2014-06-12 Thread Corey Richardson
We have a ragel backend. https://github.com/erickt/ragel On Thu, Jun 12, 2014 at 3:28 PM, richo ri...@psych0tik.net wrote: On 11/06/14 15:43 +0900, Akira Hayakawa wrote: Hi, Haskell's Parsec is really a good tool to parse languages. Scala also has the equivalent. What about Rust?

Re: [rust-dev] self/mut self in traits considered harmful(?)

2014-06-11 Thread Corey Richardson
Keeping in mind that the `self` value here can be a reference. Ie, implementing the traits also for references to a type. On Wed, Jun 11, 2014 at 11:47 AM, Tommi rusty.ga...@icloud.com wrote: On 2014-06-11, at 21:33, Daniel Micay danielmi...@gmail.com wrote: Cloning big integers, rationals

Re: [rust-dev] how is Rust bootstrapped?

2014-06-09 Thread Corey Richardson
I currently have 4246 builds of rustc, going back to a little bit before bors started being used. On Mon, Jun 9, 2014 at 10:16 AM, Steve Klabnik st...@steveklabnik.com wrote: I have this pipe dream of compiling every Rust version ever and GPG signing them though heh.

Re: [rust-dev] Rust (Servo) Cross-Compile to ARM

2014-06-08 Thread Corey Richardson
You need to change the target, not just the target-cpu. `rustc --target arm-unknown-linux-gnueabihf ...` On Sun, Jun 8, 2014 at 2:57 PM, Skirmantas Kligys skirmantas.kli...@gmail.com wrote: Luqman Aden laden@... writes: Building a Rust cross compiler that can target arm isn't too hard. You

Re: [rust-dev] Building rustc @ 1GB RAM?

2014-06-05 Thread Corey Richardson
1.4GB peak, consumed by rustc and every child process. The bencher is currently running after being down for a while, so it will fill in today. There are no real workarounds. On Thu, Jun 5, 2014 at 11:13 AM, Ian Daniher explodingm...@gmail.com wrote: 1GB is close-ish to the 1.4GB last reported

Re: [rust-dev] Patterns that'll never match

2014-06-01 Thread Corey Richardson
We already *do* do this, but not for guards because that's not possible. On Sun, Jun 1, 2014 at 12:02 AM, Tommi rusty.ga...@icloud.com wrote: Would it be possible to get a compile-time error for a `match` branch that can never be reached due to a previous branch encompassing it. For example,

Re: [rust-dev] The meaning of 'box ref foo' ?

2014-05-27 Thread Corey Richardson
As with most things in Rust, in a pattern, a keyword means the *opposite* of its normal meaning. So where `box e` in an expression will box up the result of `e`, `box p` in a pattern will unbox `p`. On Tue, May 27, 2014 at 9:50 AM, Tommi rusty.ga...@icloud.com wrote: What is the meaning of this

Re: [rust-dev] Qt5 Rust bindings and general C++ to Rust bindings feedback

2014-05-22 Thread Corey Richardson
Given the size of the binaries it looks like you may not have been passing -O, which often gives the best code size. On Thu, May 22, 2014 at 1:27 PM, Alexander Tsvyashchenko n...@endl.ch wrote: Hi All, Recently I was playing with bindings generator from C++ to Rust. I managed to make things

Re: [rust-dev] dynamic memory allocations

2014-05-21 Thread Corey Richardson
No, there are no task-specific heaps. An old concept from the manual is the exchange heap, which is where ~ boxes lived (ie, the normal heap) and that @-boxes were some magic task-local heap. But you can always send BoxT between tasks. There's been mention of wanting a task-local box in IRC.

Re: [rust-dev] owned pointer vs. owning pointer vs. owned box

2014-05-20 Thread Corey Richardson
See https://github.com/mozilla/rust/wiki/The-Rusticon for an up-to-date glossary and syntax reference. On Tue, May 20, 2014 at 3:59 PM, Daniel Micay danielmi...@gmail.com wrote: On 20/05/14 06:45 PM, Masanori Ogino wrote: Hello. I found that the Reference Manual uses the term owning pointer,

Re: [rust-dev] morestack prologue contains broken machine code

2014-04-22 Thread Corey Richardson
Sending it upstream is far better. Ping someone (probably Alex) to upgrade our LLVM once it's merged. On Tue, Apr 22, 2014 at 3:43 AM, Vladimir Pouzanov farcal...@gmail.com wrote: The problem is that mrc is generated unless target is thumb1, but cortex-m3 is thumb2 that still doesn't support

Re: [rust-dev] Removing ~foo

2014-04-15 Thread Corey Richardson
`box foo` would create a SomeBox'static str, as outlined in the meeting notes: box foo - Heap'static Str foo.to_owned() - HeapStr (or ~Str) Heap::from(foo) - HeapStr (or ~Str) Rc::from(foo) - RcStr On Tue, Apr 15, 2014 at 2:06 PM, SiegeLord slab...@aim.com wrote: On 04/15/2014 01:12 PM, Patrick

[rust-dev] Large Collection of rustc builds

2014-04-13 Thread Corey Richardson
Hello all, I now have on a disk here every merge into master that builds on my machine, built. That is, 3733 copies, using 560GB of disk, of rustc going back to the first run of bors on February 1, 2013. If there's anything interesting you want to do with them, let me know! --

Re: [rust-dev] Debugging with Rust 0.11 nightly

2014-04-10 Thread Corey Richardson
-g, or --debuginfo (0|1|2) will generate debuginfo. -g means --debuginfo 2. see rustc --help for more details. On Thu, Apr 10, 2014 at 8:13 AM, Artella Coding artella.cod...@googlemail.com wrote: Previously I would have debugged using the command rustc -Z debug-info example.rs. However with

Re: [rust-dev] impl num::Zero and std::ops::Add error

2014-04-09 Thread Corey Richardson
range doesn't return a forward iterator. RangeA also implements DoubleEndedIterator. On Thu, Apr 10, 2014 at 12:53 AM, Kevin Ballard ke...@sb.org wrote: On Apr 9, 2014, at 9:50 PM, Tommi Tissari rusty.ga...@icloud.com wrote: On 10 Apr 2014, at 00:22, Kevin Ballard ke...@sb.org wrote: FWIW,

Re: [rust-dev] Porting some nesC features to rust?

2014-04-08 Thread Corey Richardson
You don't use bounds in the struct, you put them in the impl. So you would instead say struct LCDS { spi: S, ... } and then: implS: SPI LCDS { ... } On Tue, Apr 8, 2014 at 1:23 PM, Vladimir Pouzanov farcal...@gmail.com wrote: I might have found an unsupported case. Consider the

Re: [rust-dev] Porting some nesC features to rust?

2014-04-08 Thread Corey Richardson
, Corey Richardson co...@octayn.net wrote: You don't use bounds in the struct, you put them in the impl. So you would instead say struct LCDS { spi: S, ... } and then: implS: SPI LCDS { ... } On Tue, Apr 8, 2014 at 1:23 PM, Vladimir Pouzanov farcal...@gmail.com wrote: I

Re: [rust-dev] Building a static array of pointers

2014-04-05 Thread Corey Richardson
A C-style array is written `*T`, much like in C (note: I'm not saying `T*` and `T[]` are the same type, I know they aren't) On Sat, Apr 5, 2014 at 6:53 AM, Simon Sapin simon.sa...@exyr.org wrote: On 05/04/2014 11:39, Vladimir Pouzanov wrote: The problem is that [extern unsafe fn()] results in

Re: [rust-dev] Tagged integral floating-point types

2014-04-03 Thread Corey Richardson
Language suggestions should go through our new RFC process: https://github.com/rust-lang/rfcs/blob/master/active/0001-rfc-process.md On Thu, Apr 3, 2014 at 8:26 PM, Tommi rusty.ga...@icloud.com wrote: I forgot to mention that this same space-optimization could be done for Optionbool already.

Re: [rust-dev] 0.10 prerelease testing

2014-04-02 Thread Corey Richardson
On Wed, Apr 2, 2014 at 1:34 PM, Steve Klabnik st...@steveklabnik.com wrote: I compiled from source just yesterday, but everything's been going swimmingly! I just have one comment on 0.10: It seems like println was removed from the prelude. While I can totally appreciate that most people will

Re: [rust-dev] Porting some nesC features to rust?

2014-03-31 Thread Corey Richardson
See our new RFC process for proposing changes to the language: https://github.com/rust-lang/rfcs/blob/master/active/0001-rfc-process.md On Mon, Mar 31, 2014 at 10:01 AM, Vladimir Pouzanov farcal...@gmail.com wrote: I'd like to propose to extend the language with some concepts from nesC, which

Re: [rust-dev] Compiling with no bounds checking for vectors?

2014-03-27 Thread Corey Richardson
Alternatively, in this future where people are deploying Rust applications to hundreds of thousands of servers, we could be using Intel's Memory Protection Extensions for much cheaper bounds checking etc. Which surely other applications will be using once bounds checks are nearly free. Rust will

Re: [rust-dev] Compiling with no bounds checking for vectors?

2014-03-27 Thread Corey Richardson
It's not about debugging, it's about memory safety. It'd be ridiculous to disable bounds checking just because you've done QA. How many security exploits are over- or under-flows? On Thu, Mar 27, 2014 at 7:16 PM, Lee Braiden leebr...@gmail.com wrote: I think the point is that the compiler should

Re: [rust-dev] Sandboxed compilation (browser playground)

2014-03-27 Thread Corey Richardson
Daniel Micay (strcat) already has a sandbox. It drives the rusti bot in IRC, and has a web frontend sometimes available at http://strcat.zapto.org:8000/. The source is at https://github.com/thestinger/rust-playpen. There are plans to have a VM run a similar thing on rust-lang.org On Fri, Mar 28,

Re: [rust-dev] How do I pass -march down to llvm from rustc?

2014-03-23 Thread Corey Richardson
No. See https://github.com/mozilla/rust/pull/8955 and https://github.com/mozilla/rust/issues/11871 for discussion. You can stub out morestack but that won't remove the stack size checks. It's sanest to just compile the IR yourself (the stack checking is a target-specific machine pass, which is why

Re: [rust-dev] Goto statement missing

2014-03-23 Thread Corey Richardson
Note that there's Rust support for Ragel (https://github.com/erickt/ragel), so you can just use that. It's much easier than writing out your state machines by hand. On Sun, Mar 23, 2014 at 1:18 PM, Patrick Walton pcwal...@mozilla.com wrote: On 3/23/14 9:04 AM, Clark Gaebel wrote: I think the

Re: [rust-dev] Was there a weekly meeting on 2014-3-4?

2014-03-05 Thread Corey Richardson
No, due to the Rust Workweek that is this week. On Thu, Mar 6, 2014 at 1:13 AM, Liigo Zhuang com.li...@gmail.com wrote: Hi Rustist: I can't find any information for that in the wiki page: https://github.com/mozilla/rust/wiki/Meetings -- by Liigo, http://blog.csdn.net/liigo/ Google+

Re: [rust-dev] About RFC: A 30 minute introduction to Rust

2014-03-02 Thread Corey Richardson
Notice that there was a link to a two-month old thread on the list. His email is in that... On Sun, Mar 2, 2014 at 11:44 PM, Fernando Pelliccioni fpellicci...@gmail.com wrote: I don't have the Steve's email address. Please could someone provide it. Thanks. On Mon, Mar 3, 2014 at 1:41 AM,

[rust-dev] [Announcement] cargo-lite v.1.1.0

2014-03-01 Thread Corey Richardson
Hello all, I'm pleased to announce the 1.1.0 release of cargo-lite: https://github.com/cmr/cargo-lite/tree/v1.1.0. You can install it with `pip install cargo-lite`. See the readme for more details. A summary: cargo-lite is a very simple package manager, with no concept of versioning. It requires

Re: [rust-dev] RFC: Opt-in builtin traits

2014-02-28 Thread Corey Richardson
(My idea for the lint was `#[allow_kind(Name)]` , which someone on IRC remarked as opt-out opt-in builtin traits On Fri, Feb 28, 2014 at 4:36 PM, Gábor Lehel glaebho...@gmail.com wrote: I think this is a really great idea. There's another potential compromise that would preserve most of its

Re: [rust-dev] Faster hashDoS-proof hashing

2014-02-26 Thread Corey Richardson
We already have this. You just need to implement Hasher. On Wed, Feb 26, 2014 at 7:14 PM, Tony Arcieri basc...@gmail.com wrote: On Wed, Feb 26, 2014 at 4:10 PM, Richard Gomes rgomes.i...@gmail.com wrote: I suggest that the user should have the ability to chose the hash algorithm to be

Re: [rust-dev] Faster hashDoS-proof hashing

2014-02-26 Thread Corey Richardson
? Is there something similar to #[deriving] ? Thanks Richard Gomes http://rgomes.info http://www.linkedin.com/in/rgomes mobile: +44(77)9955-6813 inum: +883(5100)0800-9804 sip:rgo...@ippi.fr On 27/02/14 00:21, Corey Richardson wrote: We already have this. You just need to implement Hasher

Re: [rust-dev] RFC: Importing/exporting macros

2014-02-25 Thread Corey Richardson
This is problematic because name resolutions happens far after macro expansion. I think this could be doable with an extremely limited macro module system, but I think it's not-very-good to have the same path syntax for two incredibly different systems. On Tue, Feb 25, 2014 at 4:39 PM, Sean

Re: [rust-dev] RFC: Stronger aliasing guarantees about mutable borrows

2014-02-25 Thread Corey Richardson
Is this not already expressible with swap/replace? Is there a big improvement here that I'm missing? On Tue, Feb 25, 2014 at 4:23 PM, Kevin Ballard ke...@sb.org wrote: I too was under the impression that you could not read from a mutably-borrowed location. I am looking forward to the ability

Re: [rust-dev] Linked libraries and exec size

2014-02-24 Thread Corey Richardson
The size comes from statically linking to the standard library and runtime. To keep size down, you can pass `-C prefer-dynamic` to rustc to link to them dynamically instead. On Mon, Feb 24, 2014 at 6:23 PM, S.A. qmt...@yahoo.com wrote: Hello, I am new to rust and have a question on what

Re: [rust-dev] reader.lines() swallows io errors

2014-02-19 Thread Corey Richardson
Keep in mind that end of file and would block are considered errors... On Wed, Feb 19, 2014 at 12:26 PM, Palmer Cox palmer...@gmail.com wrote: Why not just modify the Lines iterator to return values of IoResult~str? All the caller has to do to unwrap that is to use if_ok!() or try!() on the

Re: [rust-dev] Improving our patch review and approval process (Hopefully)

2014-02-19 Thread Corey Richardson
On Wed, Feb 19, 2014 at 3:12 PM, Flaper87 flape...@gmail.com wrote: Hi all, I'd like to share some thoughts with regard to our current test and approval process. Let me break this thoughts into 2 separate sections: 1. Testing: Currently, all patches are being tested after they are

Re: [rust-dev] Question regarding modules

2014-02-19 Thread Corey Richardson
You're assuming `use` loads code, but it only brings names into scope. `mod submodule;` is what loads `submodule` into the crate. See http://static.rust-lang.org/doc/master/tutorial.html#crates-and-the-module-system On Wed, Feb 19, 2014 at 11:37 PM, benjamin adamson adamson.benja...@gmail.com

Re: [rust-dev] issue numbers in commit messages

2014-02-17 Thread Corey Richardson
Bors already mentions the pull request that he merged, and any commits that close or work on issues usually mention that explicitly in their commit message. What more do you want? On Mon, Feb 17, 2014 at 6:40 PM, Nick Cameron n...@ncameron.org wrote: This is a nice solution, I like it. People

[rust-dev] Using Rust with LLVM's Sanitizers

2014-02-04 Thread Corey Richardson
Hey all, As you are probably aware, we use LLVM for code generation and optimization. It is a large project, and one of its cooler features is the variety of sanitizers it provides (http://clang.llvm.org/docs/index.html#using-clang-as-a-compiler). These are not clang-specific, but indeed can be

Re: [rust-dev] Using Rust with LLVM's Sanitizers

2014-02-04 Thread Corey Richardson
On Tue, Feb 4, 2014 at 12:23 PM, Daniel Micay danielmi...@gmail.com wrote: On Tue, Feb 4, 2014 at 3:45 AM, Corey Richardson co...@octayn.net wrote: Hey all, As you are probably aware, we use LLVM for code generation and optimization. It is a large project, and one of its cooler features

Re: [rust-dev] Proposal: Change Parametric Polymorphism Declaration Syntax

2014-02-02 Thread Corey Richardson
Also after sleeping on it I'm not as big of a fan of this proposal. But, I find the idea raised earlier of having generic blocks to group implementations etc that have the same implementation nice. Fully backwards compat though, so I'm not going to worry about it.

[rust-dev] Using Default Type Parameters

2014-02-02 Thread Corey Richardson
Default typarams are awesome, but they're gated, and there's some concern that they'll interact unpleasantly with extensions to the type system (most specifically, I've seen concern raised around HKT, where there is conflicting tension about whether to put the defaults at the start or end of the

[rust-dev] Proposal: Change Parametric Polymorphism Declaration Syntax

2014-02-01 Thread Corey Richardson
Hey all, bjz and I have worked out a nice proposal[0] for a slight syntax change, reproduced here. It is a breaking change to the syntax, but it is one that I think brings many benefits. Summary === Change the following syntax: ``` struct FooT, U { ... } implT, U TraitT for FooT, U { ... }

Re: [rust-dev] Proposal: Change Parametric Polymorphism Declaration Syntax

2014-02-01 Thread Corey Richardson
On Sat, Feb 1, 2014 at 5:54 PM, Kevin Ballard ke...@sb.org wrote: On Feb 1, 2014, at 2:39 PM, Corey Richardson co...@octayn.net wrote: The immediate, and most pragmatic, problem is that in today's Rust one cannot easily search for implementations of a trait. Why? `grep 'impl Clone'` is itself

Re: [rust-dev] Proposal: Change Parametric Polymorphism Declaration Syntax

2014-02-01 Thread Corey Richardson
On Sat, Feb 1, 2014 at 5:55 PM, Benjamin Striegel ben.strie...@gmail.com wrote: First of all, why a new keyword? Reusing `for` here would be totally unambiguous. :P And also save us from creating the precedent of multi-word keywords. I'd be equally happy with for instead of forall.

Re: [rust-dev] Proposal: Change Parametric Polymorphism Declaration Syntax

2014-02-01 Thread Corey Richardson
On Sat, Feb 1, 2014 at 6:12 PM, Vladimir Lushnikov vladi...@slate-project.org wrote: Also, reusing 'for' would be confusing as well, because you expect a loop there, not a generic type bound. How about 'any': any is a super useful identifier and is already used. I do not want to reserve it.

Re: [rust-dev] Proposal: Change Parametric Polymorphism Declaration Syntax

2014-02-01 Thread Corey Richardson
On Sat, Feb 1, 2014 at 6:24 PM, Eric Reed ecr...@cs.washington.edu wrote: Responses inlined. Hey all, bjz and I have worked out a nice proposal[0] for a slight syntax change, reproduced here. It is a breaking change to the syntax, but it is one that I think brings many benefits. Summary

Re: [rust-dev] Proposal: Change Parametric Polymorphism Declaration Syntax

2014-02-01 Thread Corey Richardson
On Sat, Feb 1, 2014 at 6:31 PM, Corey Richardson co...@octayn.net wrote: On Sat, Feb 1, 2014 at 6:24 PM, Eric Reed ecr...@cs.washington.edu wrote: Again, I strongly disagree here. There IS only one function foo. Some of it's arguments are types. foo's behavior *does not change* based

Re: [rust-dev] Deprecating rustpkg

2014-01-31 Thread Corey Richardson
I see where Tony is coming from for this one. Just because we *can* doesn't necessarily mean we should. If possible we should definitely prefer to find a common version that both libraries can be happy with. I myself don't have the answers to his questions, though. On Fri, Jan 31, 2014 at 6:24

Re: [rust-dev] let mut - var

2014-01-29 Thread Corey Richardson
Last I did a survey, `let mut` was less than half (and more around 30-40%) of the `lets` I found, though it wasn't exhaustive. It's also important to note that Rust is not a language suited for new programmers. Far too many concerns; it tackles hard problems and makes tradeoffs that new

Re: [rust-dev] Failure stacktraces

2014-01-19 Thread Corey Richardson
You're not actually seeing a stack entry, you're seeing the string that was given to `fail!()`. You can get a real backtrace with gdb, break on `rust_fail`. You can also get a super crappy backtrace using the backtrace function, see prototype https://gist.github.com/cmr/8192817. We used to use it,

Re: [rust-dev] sandboxing Rust?

2014-01-18 Thread Corey Richardson
On Sat, Jan 18, 2014 at 10:30 PM, Scott Lawrence byt...@gmail.com wrote: On Sat, 18 Jan 2014, Corey Richardson wrote: Rust's safety model is not intended to prevent untrusted code from doing evil things. Doesn't it succesfully do that, though? It might! But Graydon was very adamant

Re: [rust-dev] Rust docs for 0.8: No idea what this does

2014-01-13 Thread Corey Richardson
You realize you're using a 3 month old unsupported release of a pre-alpha language, right? Anyway I don't know how those got promoted to doc comments, they used to just be comments. On Mon, Jan 13, 2014 at 8:25 PM, Andrew Pennebaker andrew.penneba...@gmail.com wrote: Who wrote these 0.8 docs:

Re: [rust-dev] line params

2014-01-12 Thread Corey Richardson
I don't know what print_args is, but there's a getopt-alike in extra::getopts On Sun, Jan 12, 2014 at 11:48 AM, Renato Lenzi rex...@gmail.com wrote: If i want to access line command params i used code like this: fn main() { let args: ~[~str] = ::std::os::args(); println(args[0]); }

Re: [rust-dev] Questions from a newcomer

2014-01-12 Thread Corey Richardson
Hi Abraham, * Is there any built-in way to iterate over all values of a C-like enum? It's not hard to define an iterator method that implements this for any given type, but it's tedious boilerplate that seems better left to the compiler. Not really. What is your usecase? One

Re: [rust-dev] Failure

2014-01-11 Thread Corey Richardson
What type is `3`? There's know way to know. Use `3i` for int, `3u` for uint, etc. On Sat, Jan 11, 2014 at 12:17 PM, Renato Lenzi rex...@gmail.com wrote: The code is trivial: fn main() { let x = 3; println(x.to_str()); } the error is this (on Win7) d:\Rust09\binrustc 00025.rs

Re: [rust-dev] RFC: Future of the Build System

2014-01-10 Thread Corey Richardson
This RFC isn't about using a single build system for everything, it's the build system we use to build Rust itself. On Fri, Jan 10, 2014 at 10:06 AM, Diggory Hardy li...@dhardy.name wrote: A further point in favour of CMake is that it would make multi-language projects easier to manage, in

Re: [rust-dev] general onlookers questions on rust development

2014-01-10 Thread Corey Richardson
On Fri, Jan 10, 2014 at 5:38 PM, Don Question donquest...@rocketmail.com wrote: Congrats to 0.9! I'm coming from a C/C++/Python background and was loosely following the progress of Rust for quite a while now, but never tried it until yesterday. I must admit i'm quite pleased so far, but i

Re: [rust-dev] Appeal for CORRECT, capable, future-proof math, pre-1.0

2014-01-10 Thread Corey Richardson
The current consensus on this subject, afaik, is the rename int/uint to intptr/uintptr. They're awful names, but it frees up int for a *fast* bigint type. Fast here is key. We can't have a suboptimal numeric type be the recommended default. We need to perform at least as well as GMP for me to even

Re: [rust-dev] Appeal for CORRECT, capable, future-proof math, pre-1.0

2014-01-10 Thread Corey Richardson
, Corey Richardson co...@octayn.net wrote: We need to perform at least as well as GMP for me to even consider it. The only realistic way to accomplish this is using GMP. Lots of other big integer implementations exist with lots of work put into them and the performance is not even in the same

[rust-dev] RFC: Future of the Build System

2014-01-09 Thread Corey Richardson
Hey all, The build system has grown a fair bit of complexity, and is getting hard to understand. I've been thinking about what could replace it moving forward. Most of the complexity stems from having to self-host (ie, staging) and cross compilation (which target are we compiling for, and with

Re: [rust-dev] Emscripten for Rust?

2014-01-05 Thread Corey Richardson
Any such conversion is going to be lossy enough as to be worthless. It's only acceptable for emscripten because the web platform can't run native code. But any use of Rust is already going to be targetting something that can run C. On Sun, Jan 5, 2014 at 9:11 PM, Greg g...@kinostudios.com wrote:

Re: [rust-dev] Emscripten for Rust?

2014-01-05 Thread Corey Richardson
Much of it would be. But why? On Sun, Jan 5, 2014 at 9:25 PM, Huon Wilson dbau...@gmail.com wrote: On first glance it seems like C - Rust would be very feasible via a lot of `unsafe`, * and *mut. On 06/01/14 13:21, Corey Richardson wrote: Any such conversion is going to be lossy enough

Re: [rust-dev] Configuration files library for Rust

2014-01-04 Thread Corey Richardson
oslo.config looks decent. On some projects I've worked on, we started out using INI files but found them severely lacking once we wanted to extend the options. We ended up using libconfig[0], which I think is an excellent library. In multibuilder[1], we use extra::serialize to load a config

Re: [rust-dev] [ANN] rust-redis and rust-msgpack

2014-01-04 Thread Corey Richardson
If you slap a #[no_uv]; on the benchmark, it will use libnative, which is threads On Sat, Jan 4, 2014 at 11:16 AM, Michael Neumann mneum...@ntecs.de wrote: Am 04.01.2014 17:14, schrieb Michael Neumann: Hi all, rust-redis: A Redis client library written in pure Rust. Thanks to the new rust

Re: [rust-dev] Let’s avoid having both foo() and foo_opt()

2013-12-22 Thread Corey Richardson
, 2013, at 11:37 AM, Stefan Plantikow stefan.planti...@gmail.com wrote: Hi, Am 17.12.2013 um 20:10 schrieb Corey Richardson co...@octayn.net: On Tue, Dec 17, 2013 at 2:06 PM, Stefan Plantikow stefan.planti...@gmail.com wrote: Hi, Am 09.12.2013 um 16:53 schrieb Damien Radtke damienrad

Re: [rust-dev] RFC: Iterator naming convention

2013-12-21 Thread Corey Richardson
The reason the Iterator suffix was removed is because when when one is required to write the type signature it becomes hugely annoying to keep writing Iterator all the time. Personally I think Alex's idea is a good way forward. On Sat, Dec 21, 2013 at 4:35 PM, Kevin Cantu m...@kevincantu.org

[rust-dev] pkgid changes

2013-12-19 Thread Corey Richardson
Hey all, #11041 just landed, which changes the pkgid attribute to crate_id. It's a very straightforward transition, but probably inconvenient, especially for the rust-ci users. With it also landed the --crate-name, --crate-id, and --crate-file-name flags to rustc, which will print out those

Re: [rust-dev] Let’s avoid having both foo() and foo_opt()

2013-12-17 Thread Corey Richardson
On Tue, Dec 17, 2013 at 2:06 PM, Stefan Plantikow stefan.planti...@gmail.com wrote: Hi, Am 09.12.2013 um 16:53 schrieb Damien Radtke damienrad...@gmail.com: I have no idea if it would be feasible in the standard library, but wouldn't the ideal solution be having one function (e.g.

Re: [rust-dev] Rust crates and the module system

2013-12-13 Thread Corey Richardson
Packages don't really exist as a concept at all. Supposedly `rustpkg` deals with packages but in reality, it just deals with crates. And they're certainly not part of the module system. On Fri, Dec 13, 2013 at 8:14 PM, Liigo Zhuang com.li...@gmail.com wrote: What is the distinction of package

Re: [rust-dev] Let’s avoid having both foo() and foo_opt()

2013-12-06 Thread Corey Richardson
I'm in favor of this but it makes things less pretty. Is the choice really between pretty and fast? On Fri, Dec 6, 2013 at 3:41 PM, Simon Sapin simon.sa...@exyr.org wrote: We have some functions and methods such as

Re: [rust-dev] new compile errors in the master since a few days

2013-12-05 Thread Corey Richardson
No, since it isn't known which trait the method should come from. It could list *all* the traits that provide that method with that signature, but even that wouldn't be great if you had the signature off. On Thu, Dec 5, 2013 at 3:26 PM, Philippe Delrieu philippe.delr...@free.fr wrote: I found my

Re: [rust-dev] new compile errors in the master since a few days

2013-12-05 Thread Corey Richardson
How about method `foo` no found and no trait in scope provided one ? On Thu, Dec 5, 2013 at 4:29 PM, Philippe Delrieu philippe.delr...@free.fr wrote: Perhaps the error message can be more explicit like trait not found for method instead of method not found. Le 05/12/2013 21:57, Corey

Re: [rust-dev] Rust forum

2013-12-03 Thread Corey Richardson
Very well for the Python community, too; there's a python-tutor list whose sole focus is helping newbies effectively. On Tue, Dec 3, 2013 at 5:32 PM, Martin DeMello martindeme...@gmail.com wrote: In practice this has worked out well for the ocaml community - there's an ocaml-beginners mailing

Re: [rust-dev] RFC: Put Unicode identifiers behind a feature gate

2013-12-02 Thread Corey Richardson
The compiler still handles it, and there are still tests for it. I think it's more of a not 1.0 priority, than anything else. On Mon, Dec 2, 2013 at 11:31 PM, Kevin Cantu m...@kevincantu.org wrote: When I started my old Rust PPA (now superseded), the first user to email me was an engineer from

  1   2   3   >