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

2014-06-09 Thread Sanghyeon Seo
Do you plan to create a cleaner full-bootstrap process? By cleaner I mean dividing stage-0 to more [sub-]stages, which would be well-defined and documented in terms of the set of language features it implements. Currently these sub-stages are defined by a team member's mood to instruct the

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

2014-03-28 Thread Sanghyeon Seo
Lee Braiden wrote: I'm sure it's more complicated than that, technically, but if it's MUCH more technically complicated, then the compiler probably has design issues. To defend rustc's honor: rustc has no such design issues. 1. Open src/librustc/middle/trans/expr.rs in the editor. 2. Search

Re: [rust-dev] on quality success

2014-01-01 Thread Sanghyeon Seo
Deciding to reuse wrong, but mainstream, design decisions in one's own language is deciding to intentionally make it of lower quality. !!! Funny (read: mad), isn't it? It is thus also intentionally deciding to make it not worth success. This, apparently, to make its actual chances of success

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

2013-11-21 Thread Sanghyeon Seo
Given the extreme lack of use of Unicode identifiers and the fact that we have much more pressing issues for 1.0, I propose putting support for identifiers that don't match /^(?:[A-Za-z][A-Za-z0-9]*|_[A-Za-z0-9]+)$/ behind a feature gate. +1. While I very much want Unicode identifiers

Re: [rust-dev] Removing some autoref magic

2013-11-20 Thread Sanghyeon Seo
First, I am speaking for myself and not my employer. The current proposal is to remove all autoref except for function invocations and indexing operations. The method of creating T from ~T would be `let foo: T = foo` or `*foo`. Vectors and strings can't currently benefit from the `*foo`

Re: [rust-dev] autotrace

2013-09-30 Thread Sanghyeon Seo
surely global_tracking_flag could be persuaded to live in a register, no? No. Although this is implemented in GCC, this is unimplemented in LLVM and upstream is not keen on implementing it. See Global Register Variables note at http://nondot.org/sabre/LLVMNotes/ and LLVM bug 16877.

Re: [rust-dev] HTML5 parser

2013-08-14 Thread Sanghyeon Seo
I though that Servo was using C files related to Nginx after of read the header of this one file: https://github.com/mozilla-servo/rust-http-client/blob/master/http_parser.c Based on src/http/ngx_http_parse.c from NGINX copyright Igor Sysoev You are confusing HTTP with HTML.

Re: [rust-dev] cross-file trait impls

2013-06-24 Thread Sanghyeon Seo
Can someone clarify what's going on here? You have multiple mod file2 statements in the crate. This is probably not what you want. If you have mod X in two files, X::Y in those two files DO NOT refer to the same thing, but to two different things. Use use statements instead.

Re: [rust-dev] Traits mod

2013-06-02 Thread Sanghyeon Seo
This is fixed by adding use some_mod::SomeTrait at the start of some_use.rs. It's as though traits need to be in the same scope as code that expects to make use of their behaviour (where I'd expect the behaviour would be associated with the implementation for the self type). My question is:

[rust-dev] Using new I/O error handling

2013-05-31 Thread Sanghyeon Seo
Is it actually possible to use new I/O error handling at the moment? It seems to me that it is not possible to get at std::rt::io::io_error at all, because conditions are private and do not work cross-crate. https://github.com/mozilla/rust/issues/5446 https://github.com/mozilla/rust/issues/6009

[rust-dev] Coding style for struct expression

2013-05-21 Thread Sanghyeon Seo
What is the preferred coding style for the struct expression? Given: struct Point { x: float, y: float } Point { x: 1.0, y: 1.0 } // (1) Point{x: 1.0, y: 1.0} // (2) Tutorial uses 1, pretty printer does 2. It seems to me that when an expression is on multiple lines, spaces are common,

[rust-dev] Dataflow and bit vector

2013-05-08 Thread Sanghyeon Seo
dataflow.rs in rustc seems to re-implement much of bit vector implemented in std::bitv. Is there any particular reason? Would it be a good idea to rewrite using std::bitv? ___ Rust-dev mailing list Rust-dev@mozilla.org

[rust-dev] bors feature requests

2013-05-07 Thread Sanghyeon Seo
Here are some feature requests to bors queue status page at http://buildbot.rust-lang.org/bors/bors.html 1. It seems to show no more than 30 pull requests. It used to be enough, but these days we often have more than 30 pull requests in the queue. 2. The page has last-updated timestamp. It would

Re: [rust-dev] Mobile Platforms programming

2013-05-07 Thread Sanghyeon Seo
Any idea whether Rust could be used for iOS programming? Not yet, but see #6170 for an issue. Is there an Objective-C interoperability layer? No. Rust works well with ARM MMU? I am not sure what you mean by MMU. Rust now works well on the ARM architecture.

Re: [rust-dev] RFC: Pattern matching binding operator

2013-05-03 Thread Sanghyeon Seo
I don't really have any preference at all; I just need to know what to implement. Opinions? I propose ident for pat for current ident @ pat syntax. ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] LLVM Clang and Cygwin happiness (not quite yet)

2013-04-29 Thread Sanghyeon Seo
I am still investigating why Clang 3.1 / LLVM from the Cygwin package are not correctly setup or working well with the Rust setup and configuration, Rust won't compile with LLVM 3.1. This is expected. https://mail.mozilla.org/pipermail/rust-dev/2013-April/003518.html

[rust-dev] LLVM versions

2013-04-09 Thread Sanghyeon Seo
Rust 0.6's configure script claims Rust needs =3.0svn. (Search for bad LLVM version for this.) In truth, Rust 0.6 includes inline assembly functionality https://github.com/mozilla/rust/pull/5317 which needs llvm::InlineAsm::AsmDialect enum type. This enum type was added to LLVM in September 2012.

Re: [rust-dev] ABI Opinion Poll

2013-03-13 Thread Sanghyeon Seo
Hmm, that's a very good point. For some reason I was under the impression `cdecl` was a cross-platform moniker for whatever the C compiler does. But even if that were true—and I think I was mistaken—there is the question about something like `stdcall`. cdecl and stdcall are definitely

Re: [rust-dev] Query Related to enum

2013-03-05 Thread Sanghyeon Seo
enum A { a = 0, b = 1, c = 2 } What I want is when I pass 2, I get c from it. Is there some built-in for this or some other way. This is issue #2132 and there is no completely satisfactory answer yet. https://github.com/mozilla/rust/issues/2132 You can use unsafe code

[rust-dev] minmax

2013-03-05 Thread Sanghyeon Seo
core::iter includes min and max, so I decided to implement minmax which does 1.5 comparisons per element instead of 2 comparisons. Here is the result: https://gist.github.com/sanxiyn/5092643 It seems to work, but I couldn't figure out how to put this in core::iter, using BaseIterT instead of

Re: [rust-dev] Warning: region syntax changes progressing

2013-02-26 Thread Sanghyeon Seo
- you can now use the 'foo lifetime notation, though you don't have to (emacs users, if you update your emacs-mode the syntax highlighter will recognize 'foo. vi users, you're on your own). Once we do a snapshot, the 'foo notation will become mandatory. (Note: within the compiler, you

[rust-dev] RFC: Bless mod.rs

2013-02-20 Thread Sanghyeon Seo
rustc.rc has: #[path = metadata/mod.rs] pub mod metadata; #[path = driver/mod.rs] pub mod driver; I think this should be the default. mod is a keyword anyway. What do you think? ___ Rust-dev mailing list Rust-dev@mozilla.org

Re: [rust-dev] bors

2013-02-07 Thread Sanghyeon Seo
Neat! I'm assuming this is based on how Mozilla works internally, yes? You may be interested in integrating it with the commit status API, like Travis has: https://github.com/blog/1227-commit-status-api In case you missed, it already does. ___

Re: [rust-dev] Tuples and to_str()

2013-01-31 Thread Sanghyeon Seo
I'm trying to convert tuple of uints to string using to_str() module like this: io::println((1,2).to_string()); Is it compiler error or I've missed something? Did you mean .to_str()? The following program works for me. fn main() { io::println((1, 2).to_str()); }

[rust-dev] Indenting match

2013-01-23 Thread Sanghyeon Seo
Rust compiler seems to use 4 spaces indentation, but indentation of match is mixed. Sometimes arms are indented 2 spaces, sometimes 4 spaces. Is there a hidden rule behind this, or is it a personal preference? ___ Rust-dev mailing list

Re: [rust-dev] Indenting match

2013-01-23 Thread Sanghyeon Seo
A long time ago, the Rust mode for Emacs would indent match arms by two spaces, so any two-space match arms are a remnant of that time. I believe the current convention is to use four spaces for match arms. After I sent the email I found that rustc --pretty normal indents match arms by 2

[rust-dev] Release Statistics

2013-01-09 Thread Sanghyeon Seo
Is some sort of download statistics for Rust releases available? I am interested in a ballpark figure. Things like the number of unique IP addresses who downloaded rust-0.5.tar.gz. static.rust-lang.org seems to be hosted on Amazon S3. Is web log available for analysis?