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
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
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
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
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`
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.
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.
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.
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:
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
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,
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
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
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.
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
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 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.
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
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
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
- 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
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
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.
___
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 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
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
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?
27 matches
Mail list logo