Re: [rust-dev] Please simplify the syntax for Great Justice

2013-11-19 Thread Liigo Zhuang
+1 在 2013年11月19日 下午8:27,Gaetan gae...@xeberon.net写道: The most common use case for owned boxes is creating recursive data structures like a binary search tree. I don't think this is the most common use of owned boxes: string management, ... I don't think it a good idea to place binary

Re: [rust-dev] Please simplify the syntax for Great Justice

2013-11-19 Thread Liigo Zhuang
在 2013年11月19日 下午8:35,spir denis.s...@gmail.com写道: On 11/19/2013 12:51 PM, Daniel Micay wrote: So in your opinion, what's wrong with the `Boxes` section? http://static.rust-lang.org/doc/master/tutorial.html#boxes I happen to think it does a pretty good job of explaining why `~` is required

Re: [rust-dev] Please simplify the syntax for Great Justice

2013-11-19 Thread Liigo Zhuang
在 2013年11月19日 下午8:41,Gaetan gae...@xeberon.net写道: I think this is precisely one of the bigest issue, from a newbee point of view. And I agree with spir on this point. It's not that important, but you end up placing them everywhere to make the compiler happy. ~str should be a ~T. If it is not,

Re: [rust-dev] Please simplify the syntax for Great Justice

2013-11-19 Thread Liigo Zhuang
在 2013年11月19日 下午8:44,Daniel Micay danielmi...@gmail.com写道: On Tue, Nov 19, 2013 at 7:35 AM, spir denis.s...@gmail.com wrote: If this is all true, that recursive structures are the main, almost the only use case of ~ pointers, then the tutorial is in my view rather ok on this point. But

Re: [rust-dev] This Week in Rust

2013-12-02 Thread Liigo Zhuang
great work 2013/12/1 Corey Richardson co...@octayn.net Welcome to another issue of *This Week in Rust*, a weekly newsletter summarizing Rust's progress and community activity. As always, if you have something you'd like to be featured, just [send me an

Re: [rust-dev] Rust forum

2013-12-03 Thread Liigo Zhuang
+1 在 2013年12月4日 上午5:58,Gaetan gae...@xeberon.net写道: Sorry but that is a pretty bad answer. You cannot tell people to change their favorite email client just for rust-dev. You cannot do the same with you client, just because each one will have to set its own set of rules to tag, ... Gmail

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

2013-12-06 Thread Liigo Zhuang
Is do-notation in Haskell similar as: try{ block } ? 2013/12/7 Huon Wilson dbau...@gmail.com On 07/12/13 12:08, Jordi Boggiano wrote: On Sat, Dec 7, 2013 at 2:01 AM, spir denis.s...@gmail.com wrote: On 12/07/2013 01:12 AM, Gaetan wrote: I am in favor of two version of the api: from_str

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

2013-12-13 Thread Liigo Zhuang
package and module, we only need one. Most other language only have one. The more, the more complicate. libstd.so: What we call it? library package crate?? other language usually call it library. std::io::fs: We call it module, other language usually call it package or module. So, whatever we

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

2013-12-13 Thread Liigo Zhuang
02:14 AM, Liigo Zhuang wrote: What is the distinction of package and crate in Rust? Crate is the compilation unit. Package is what you say it is, the Rust manual does not mention that word. There is an official tool called rustpkg, and there is a attribute call pkgid, so you cann't just

[rust-dev] [whoami] crate, package and module confused me!

2013-12-15 Thread Liigo Zhuang
Rust compiler compiles crates, rustpkg manages packages. When develope a library for rust, I write these code in lib.rs: ``` #[pkgid = whoami]; #[crate_type = lib]; ``` Note, I set its package id, and set its crate type, and it is compiled to an .so library. Now please tell me, what it is? A

Re: [rust-dev] [whoami] crate, package and module confused me!

2013-12-17 Thread Liigo Zhuang
/Meeting-weekly-2013-12-17 On 12/16/2013 06:41 PM, Liigo Zhuang wrote: 2013/12/16 Brian Anderson bander...@mozilla.com My feeling is that it is a crate, since that's the name we've historically used. There's already been agreement to remove extern mod in favor of crate. IMO, package

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

2013-12-21 Thread Liigo Zhuang
I like Iter suffix, short, and say what it is. 在 2013年12月21日 下午12:51,Palmer Cox palmer...@gmail.com写道: I noticed recently that there seem to be 3 distinct Iterator naming conventions currently in use: 1. Use the Iterator suffix. Examples of this are SplitIterator and DoubleEndedIterator. 2.

Re: [rust-dev] See pull request #11129 (was: Re: Let’s avoid having both foo() and foo_opt())

2013-12-23 Thread Liigo Zhuang
Code full of .unwrap() is not good smell I think. 在 2013年12月24日 上午4:42,Simon Sapin simon.sa...@exyr.org写道: FYI, made a pull request according to this proposal: https://github.com/mozilla/rust/pull/11129 -- Simon Sapin ___ Rust-dev mailing list

Re: [rust-dev] Rust 0.9 released

2014-01-09 Thread Liigo Zhuang
Great work, thanks. 在 2014年1月10日 上午5:04,Brian Anderson bander...@mozilla.com写道: Mozilla and the Rust community are pleased to announce version 0.9 of the Rust compiler and tools. Rust is a systems programming language with a focus on safety, performance and concurrency. This was another

Re: [rust-dev] user input

2014-02-08 Thread Liigo Zhuang
2014年2月9日 上午7:35于 Alex Crichton a...@crichton.co写道: We do indeed want to make common tasks like this fairly lightweight, but we also strive to require that the program handle possible error cases. Currently, the code you have shows well what one would expect when reading a line of input. On

[rust-dev] Help: type `std::comm::ChanA` does not implement any method in scope named `clone`

2014-02-13 Thread Liigo Zhuang
Hi Rusties, When try to compile tmp.rs, I got the error: ``` tmp.rs:8:10: 8:19 error: type `std::comm::ChanA` does not implement any method in scope named `clone` tmp.rs:8 let _ = c.clone(); ^ ``` But I don't know how to do. Please help me. Thank you. tmp.rs: ```

Re: [rust-dev] Help: type `std::comm::ChanA` does not implement any method in scope named `clone`

2014-02-13 Thread Liigo Zhuang
, Liigo Zhuang com.li...@gmail.com wrote: Hi Rusties, When try to compile tmp.rs, I got the error: ``` tmp.rs:8:10: 8:19 error: type `std::comm::ChanA` does not implement any method in scope named `clone` tmp.rs:8 let _ = c.clone(); ^ ``` But I don't know

Re: [rust-dev] Help: type `std::comm::ChanA` does not implement any method in scope named `clone`

2014-02-13 Thread Liigo Zhuang
I'm very sorry. I forgot `make install`. Now it works OK. 2014-02-14 11:58 GMT+08:00 Liigo Zhuang com.li...@gmail.com: rustc -v: ``` rustc 0.10-pre (a102aef 2014-02-12 08:41:19 +0800) host: x86_64-unknown-linux-gnu ``` The most recent rustc, i just recompiled from mozilla/rust/master

[rust-dev] Help, what's the meaning of `unknown` in `x86_64-unknown-linux-gnu`?

2014-02-14 Thread Liigo Zhuang
Hello Rusties: I'm using Debian 7.4 Linux, not unknown linux obviously. And I don't know the meaning of `-gnu`. On Windows, that it `x86-pc-mingw32`, which is quite meaningful to understand. Thank you. -- by *Liigo*, http://blog.csdn.net/liigo/ Google+

Re: [rust-dev] Help, what's the meaning of `unknown` in `x86_64-unknown-linux-gnu`?

2014-02-14 Thread Liigo Zhuang
2014-02-15 9:26 GMT+08:00 Lee Braiden leebr...@gmail.com: Unknown-linux presumably means generic linux, and GNU you should probably learn about, fir your own good, at gnu.org especially gnu.org/philosophy. Hint: much of what people think of as Linux is actually part of GNU, or using GNU. If

Re: [rust-dev] Help, what's the meaning of `unknown` in `x86_64-unknown-linux-gnu`?

2014-02-14 Thread Liigo Zhuang
by dashes) have a specific order and meaning, so they can't just be randomly rephrased on a per-combination basis. They're not meant to be pretty English, but to encode information in a semi-readable format. On 15 Feb 2014 01:31, Liigo Zhuang com.li...@gmail.com wrote: 2014-02-15 9:26 GMT+08

Re: [rust-dev] Help, what's the meaning of `unknown` in `x86_64-unknown-linux-gnu`?

2014-02-14 Thread Liigo Zhuang
in linux triples, though `x86_64-pc-linux-gnu` is also common; -gnu probably means the target has a GNU userspace. On 02/14/2014 05:16 PM, Liigo Zhuang wrote: Hello Rusties: I'm using Debian 7.4 Linux, not unknown linux obviously. And I don't know the meaning of `-gnu`. On Windows

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

2014-03-01 Thread Liigo Zhuang
I like this 2014年3月2日 上午4:07于 Niko Matsakis n...@alum.mit.edu写道: On Fri, Feb 28, 2014 at 11:23:23PM -0800, Kevin Ballard wrote: I'm also slightly concerned that #[deriving(Data)] gives the impression that there's a trait Data, so maybe that should be lowercased as in #[deriving(data)], or

Re: [rust-dev] Language to replace C

2014-03-04 Thread Liigo Zhuang
If I select Rust as my main language, I don't think I have any reason to write new code in Go. Go away! 2014年3月5日 上午3:44于 John Mija jon...@proinbox.com写道: Every time there is a new language, developers have to start to developing from scratch the same algorithms. The alternative has been to

Re: [rust-dev] Language to replace C

2014-03-05 Thread Liigo Zhuang
the usage of Lua for scripting El 05/03/14 04:40, Liigo Zhuang escribió: If I select Rust as my main language, I don't think I have any reason to write new code in Go. Go away! 2014年3月5日 上午3:44于 John Mija jon...@proinbox.com mailto:jon...@proinbox.com写道: Every time there is a new language

Re: [rust-dev] Language to replace C

2014-03-05 Thread Liigo Zhuang
can't be civil, then ignore the thread and move on. On Tue, Mar 4, 2014 at 11:40 PM, Liigo Zhuang com.li...@gmail.com wrote: If I select Rust as my main language, I don't think I have any reason to write new code in Go. Go away! 2014年3月5日 上午3:44于 John Mija jon...@proinbox.com写道: Every time

Re: [rust-dev] Language to replace C

2014-03-05 Thread Liigo Zhuang
explaining about the extended usage of two languages, one like main language and the other one like scripting. El 05/03/14 11:17, Liigo Zhuang escribió: I do known what I need. You are not me, please not tell me what need to do. 2014年3月5日 下午4:59于 John Mija jon...@proinbox.com mailto:jon

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

2014-03-05 Thread Liigo Zhuang
*((int*)0): In theory, this is memory unsafe; In practical, this has been exist for about thirty years, making many software system crash. But I know, most C++ programmers don't consider it a big deal. 2014-03-06 13:06 GMT+08:00 comex com...@gmail.com: On Wed, Mar 5, 2014 at 11:42 PM, Patrick

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

2014-03-05 Thread Liigo Zhuang
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+ https://plus.google.com/105597640837742873343/ ___ Rust-dev mailing list

[rust-dev] Why duplicate `libstd-31b43f22-0.10-pre.so` both in `/usr/local/lib` and `/usr/local/lib/rustlib/xxx/lib`?

2014-03-07 Thread Liigo Zhuang
Hey Rusties: Could we remove the one in `rustlib`, and let `rustc` reuse the one in '/usr/local/lib'? If we could do this, the distribution package will be much smaller. `rustc` is run only in host environment, right? (Another option, static link rustc, and remove all *.so in rustlib.) Liigo.

[rust-dev] Why we don't like glob use (use std::vec::*)?

2014-03-12 Thread Liigo Zhuang
glob use just make compiler loading more types, but make programmers a lot easy (to write, to remember). perhaps I'm wrong? thank you! -- by *Liigo*, http://blog.csdn.net/liigo/ Google+ https://plus.google.com/105597640837742873343/ ___ Rust-dev

Re: [rust-dev] Shutting down rust-commits

2014-03-15 Thread Liigo Zhuang
Github has itself email notification which I'm using. 2014年3月15日 上午5:48于 Brian Anderson bander...@mozilla.com写道: I suspect this will not impact many, but I'm shutting down the rust-commits mailing list, which was just used to relay commits via the GitHub commit hook. I haven't been

Re: [rust-dev] Announcing the new Rust package manager, Cargo

2014-03-17 Thread Liigo Zhuang
Great news! 2014年3月18日 上午9:27于 Yehuda Katz wyc...@gmail.com写道: Hello Rustlers, I'll be writing here more with more details soon. For now, a few quick comments: - I'm really glad that Mozilla and the Rust team are prioritizing package management. An open source language ecosystem

Re: [rust-dev] Structural Typing

2014-03-23 Thread Liigo Zhuang
IMO, this is bad. 2014年3月23日 下午6:34于 Ziad Hatahet hata...@gmail.com写道: Hi all, Are there any plans to implement structural typing in Rust? Something like this Scala code: http://en.wikipedia.org/wiki/Duck_typing#In_Scala ___ Rust-dev mailing

Re: [rust-dev] Structural Typing

2014-03-23 Thread Liigo Zhuang
+1 2014年3月24日 上午5:46于 Patrick Walton pcwal...@mozilla.com写道: On 3/23/14 2:19 PM, Ziad Hatahet wrote: You wouldn't probably use this for each and every method, but what it gives you is Go-style duck typing. Sure you can define a trait, but what if the struct you to pass to your function

Re: [rust-dev] 0.10 prerelease testing

2014-04-03 Thread Liigo Zhuang
+1 for printf! and printfln! 2014年4月3日 下午1:14于 Daniel Micay danielmi...@gmail.com写道: Perhaps we should have `print` and `println` back in the prelude and call these `printf!` and `printfln!`. I think it would be a lot clearer, as people always ask how these are different from `print` and

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

2014-04-09 Thread Liigo Zhuang
Zero is a bad name here, it should be renamed or removed 2014年4月9日 上午1:20于 Kevin Ballard ke...@sb.org写道: On Apr 7, 2014, at 1:02 AM, Tommi Tissari rusty.ga...@icloud.com wrote: On 07 Apr 2014, at 08:44, Nicholas Radford nikradf...@googlemail.com wrote: I think the original question was, why

[rust-dev] master [run-pass]: most tests failed. mingw + windows 7.

2014-04-14 Thread Liigo Zhuang
test result: FAILED. 2 passed; 1387 failed; 50 ignored; 0 measured what happens? Most tests failed at 'explicit failure': [run-pass] run-pass/unwind-unique.rs stdout error: test run failed! command:

Re: [rust-dev] Call for a practical Rust guide

2014-04-22 Thread Liigo Zhuang
Along with the A 30-minute intro to Rust, we also need a 1-minute and/or 5-minute intro, in rust-lang.org website. 2014年4月22日 上午7:11于 Brian Anderson bander...@mozilla.com写道: Hi. I've been convinced recently that Rust is missing crucial documentation of a particular nature: using Rust in

Re: [rust-dev] Private trait items

2014-04-22 Thread Liigo Zhuang
It's easy to submit a pull request, for a git programmer. My difficulty is the weak of English level to write a so long rfc. 2014年4月23日 上午5:57于 Tommi rusty.ga...@icloud.com写道: On 2014-04-22, at 21:44, Brian Anderson bander...@mozilla.com wrote: I'm not sure what you are asking for here. Have

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

2014-05-20 Thread Liigo Zhuang
Could you show us the memory layout of BoxT? Thank you! 2014年5月21日 上午6:59于 Daniel Micay danielmi...@gmail.com写道: On 20/05/14 06:45 PM, Masanori Ogino wrote: Hello. I found that the Reference Manual uses the term owning pointer, the Pointer Guide and liballoc do owned pointer and

Re: [rust-dev] [ANN] rusty-tags: create tags for a cargo project and all of its dependencies

2014-12-07 Thread Liigo Zhuang
nice! 2014年12月8日 上午5:27于 Daniel Trstenjak daniel.trsten...@gmail.com写道: Hi all, https://github.com/dan-t/rusty-tags Have fun! Greetings, Daniel ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev