Re: [rust-dev] Today's Rust contribution ideas

2014-01-27 Thread Sebastian Sylvan
On Mon, Jan 27, 2014 at 9:33 AM, Matthieu Monrocq matthieu.monr...@gmail.com wrote: On Mon, Jan 27, 2014 at 3:39 AM, Brian Anderson bander...@mozilla.comwrote: Consensus is that the `do` keyword is no longer pulling its weight. Remove all uses of it, then remove support from the

Re: [rust-dev] More on stack safety

2013-10-31 Thread Sebastian Sylvan
into the same area of eating up virtual address space by having more OS threads than HW threads, each of which has a dedicated large stack to run non-blocking tasks on)! -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https

Re: [rust-dev] More on stack safety

2013-10-30 Thread Sebastian Sylvan
On Mon, Oct 28, 2013 at 10:23 PM, Corey Richardson co...@octayn.net wrote: I've written up more thoughts on stack safety at http://cmr.github.io/blog/2013/10/28/more-on-stack-safety/. If no one objects to it (meeting tomorrow!) or has any better ideas, I'll start implementing it. Consider

Re: [rust-dev] RFC: Syntax for raw string literals

2013-09-24 Thread Sebastian Sylvan
with various formatting functions anyway, so I wouldn't think it would be a big deal in practice. Throwing in a call to fmt isn't a big burden, imo. -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] RFC: Syntax for raw string literals

2013-09-22 Thread Sebastian Sylvan
. -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Dynamic in Rust

2013-08-25 Thread Sebastian Sylvan
On Sat, Aug 24, 2013 at 9:50 PM, Lindsey Kuper lind...@composition.alwrote: On Fri, Aug 23, 2013 at 8:30 PM, Sebastian Sylvan sebastian.syl...@gmail.com wrote: I'm sure you've all seen it, but C# has something similar but a lot more powerful. Basically, it has support for allowing runtime

Re: [rust-dev] Augmented assignment

2013-08-23 Thread Sebastian Sylvan
://www.haskell.org/ghc/docs/latest/html/users_guide/rewrite-rules.html -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Dynamic in Rust

2013-08-23 Thread Sebastian Sylvan
/vstudio/system.dynamic.dynamicobject.aspx -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Avoiding borrow check assertions with @mut

2013-08-20 Thread Sebastian Sylvan
looping you apply them all. You're not running arbitrary code at this point, just adding stuff to the stack. -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] The future of iterators in Rust

2013-06-06 Thread Sebastian Sylvan
On Thu, Jun 6, 2013 at 7:22 PM, Bill Myers bill_my...@outlook.com wrote: Scala has a similar design, with the following traits: - TraversableOnce: can be internally iterated once (has a foreach() method that takes a closure) - Traversable: can be internally iterated unlimited times (has a

Re: [rust-dev] The future of iterators in Rust

2013-06-06 Thread Sebastian Sylvan
...@gmail.com wrote: On Thu, Jun 6, 2013 at 11:01 PM, Sebastian Sylvan sebastian.syl...@gmail.com wrote: On Thu, Jun 6, 2013 at 7:22 PM, Bill Myers bill_my...@outlook.com wrote: Scala has a similar design, with the following traits: - TraversableOnce: can be internally iterated once (has

Re: [rust-dev] Please tell me about making rustc faster

2013-05-31 Thread Sebastian Sylvan
Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Rust philosophy and OOP

2012-10-10 Thread Sebastian Sylvan
On Wed, Oct 10, 2012 at 3:49 PM, Eddy Cizeron eddycize...@gmail.com wrote: 2012/10/9 Sebastian Sylvan sebastian.syl...@gmail.com I think there are two other benefits. The first is intellisense/code completion. Type foo. and get a list of all methods in scope with a matching self type. This can

Re: [rust-dev] Rust philosophy and OOP

2012-10-08 Thread Sebastian Sylvan
on it as opposed to a value and a random grab bag of operations that happen to have matching types but could be written by any old schmuck and not necessarily part of the object). -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https

Re: [rust-dev] Rust 0.4 call for testing

2012-10-03 Thread Sebastian Sylvan
in the dynamic link library D:\Programming\rust\helloworld.exe. --- OK --- -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Rust lightning talk at JavaZone 2012

2012-08-23 Thread Sebastian Sylvan
pointer crashes. In fact, I'm kinda ambivalent about calling a language where any reference may blow up memory safe. IME the vast majority of runtime crashes in Java/C# are null pointer exceptions, so eliminating those are not an insigificant benefit. -- Sebastian Sylvan

Re: [rust-dev] Bikeshed proposal to simplify syntax

2012-07-17 Thread Sebastian Sylvan
of descriptive names. If it's unsafe and should stick out like a sore thumb, avoid short names. For library stuff that's essentially just shy of being a built-in language feature (like vec, cmp, ptr, etc.) shorter names make sense IMO. -- Sebastian Sylvan

[rust-dev] Bikeshed proposal to simplify syntax

2012-07-13 Thread Sebastian Sylvan
it for consideration. Thanks for your time! -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Bikeshed proposal to simplify syntax

2012-07-13 Thread Sebastian Sylvan
a good idea. Seb -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Release candidates

2012-07-11 Thread Sebastian Sylvan
of the ampersand because it would fail to compile with a deprecated vec expr error. -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Traits proposal

2012-07-10 Thread Sebastian Sylvan
those methods. -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Concurrency and synchronous blocking

2012-07-10 Thread Sebastian Sylvan
an overprovisioned set of worker threads onto the actual CPU threads). See e.g. this page for some example code (though it also shows some parallel for_each and stuff like that): http://msdn.microsoft.com/en-us/library/dd492427(v=vs.110).aspx -- Sebastian Sylvan

Re: [rust-dev] Traits proposal

2012-07-06 Thread Sebastian Sylvan
types using functions that are passed in by the importer of the module (the same module imported twice but parameterized differently would be treated as two independent modules)? -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https

Re: [rust-dev] Integer literal suffix inference

2012-07-02 Thread Sebastian Sylvan
On Mon, Jul 2, 2012 at 11:26 AM, Lindsey Kuper lind...@rockstargirl.org wrote: A couple of weeks ago, Rust gained suffix inference for integer literals. This makes me unreasonably happy. Funny how little things cause annoyance well past their actual impact. -- Sebastian Sylvan

Re: [rust-dev] RFC: Block lambda syntax tweak

2012-06-06 Thread Sebastian Sylvan
to a function without using do or for, and if so what does it look like? I'm guessing something like this, but I didn't see it spelled out: foo( |x| { let y = x+1; y+1 }); Seb -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https

[rust-dev] Interesting paper on RC vs GC

2012-05-01 Thread Sebastian Sylvan
://users.cecs.anu.edu.au/~steveb/downloads/pdf/rc-ismm-2012.pdf -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Interesting paper on RC vs GC

2012-05-01 Thread Sebastian Sylvan
retaining the efficiency of the LLVM backend to inline/optimize the calls. This means one can actually *test* the strategies, and perhaps even let the user *choose* which one better suits her needs. Of course coherency at the executable level might be necessary. -- Matthieu -- Sebastian

Re: [rust-dev] In favor of types of unknown size

2012-04-28 Thread Sebastian Sylvan
arrays in-place would be extremely frequent. Seb -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] hashmap benchmark

2012-04-08 Thread Sebastian Sylvan
hashing because it's just *so* damn simple. With my suggestion above you get one DWORD of overhead per element (for the cached hash value). No pointers. One cache miss per lookup, typically, and all the code is very simple logic and runs really fast. -- Sebastian Sylvan

[rust-dev] Performance optimization

2012-04-06 Thread Sebastian Sylvan
Hi, What do you guys use to profile rust programs? Just manual timers in the code, or do you have any tools to recommend? I saw that brson had updated my old Rust ray tracer to Rust 0.2 so I downloaded his version and started piling on new features. And while it's already many times faster than

Re: [rust-dev] How to write Rust code that blocks natively

2012-02-08 Thread Sebastian Sylvan
in to the system (or manually calls yield), the system switches to your scheduler instead of blocking the OS thread. -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

[rust-dev] Deca, a new language with goals that largely overlap those of Rust

2012-01-03 Thread Sebastian Sylvan
Saw this over at LtU and thought this might interest a few people here: http://code.google.com/p/decac/ And here's a paper describing it in more detail: http://decac.googlecode.com/files/Deca%20Thesis.pdf -- Sebastian Sylvan ___ Rust-dev mailing list

Re: [rust-dev] Typestate 2.0 ?

2011-12-28 Thread Sebastian Sylvan
of dependent types without the complexity of a general system. -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Fwd: minor things that annoy you about Rust?

2011-12-22 Thread Sebastian Sylvan
of inferring type. With that in place, I don't think that leaving off suffixes would be an issue for literals that fit. Seb -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] minor things that annoy you about Rust?

2011-12-20 Thread Sebastian Sylvan
. -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

[rust-dev] Rust experience report

2011-12-09 Thread Sebastian Sylvan
where it goes in the future! Regards, -- Sebastian Sylvan main.rs Description: Binary data math3d.rs Description: Binary data model.rs Description: Binary data raytracer.rc Description: Binary data raytracer.rs Description: Binary data ___ Rust

Re: [rust-dev] Renaming tag and log_err

2011-10-28 Thread Sebastian Sylvan
union? C/C++ programmers will instantly get the gist of it, while probably suspecting that it'll be a safer version of the union construct they're familiar with. -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org

Re: [rust-dev] Syntax changes

2011-05-17 Thread Sebastian Sylvan
is not or =, then the second token must've been the type). -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] cost/benefits of tasks

2011-04-15 Thread Sebastian Sylvan
if you try to actually communicate with two many threads. Should be a lot better in Windows 7 though. -- Sebastian Sylvan ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] statement-expressions and block-terminators

2010-11-26 Thread Sebastian Sylvan
On Fri, Nov 26, 2010 at 12:22 AM, Graydon Hoare gray...@mozilla.com wrote: On 10-11-25 02:47 PM, Sebastian Sylvan wrote: On Thu, Nov 25, 2010 at 6:54 PM, Graydon Hoaregray...@mozilla.com wrote: On 10-11-25 08:50 AM, Igor Bukanov wrote: My preference is the option 1. Aw man! We were