News for hackers. Stuff that matters.
Re:Servo – A parallel browser engine in Rust by Mozilla by agumonkey on Saturday August 24, 2013 @07:56AM (#6268393)
Re:Servo – A parallel browser engine in Rust by Mozilla by dbaupp on Saturday August 24, 2013 @09:47AM (#6268625)
Note that the master branch is actually still 1 patch from passing: https://github.com/mozilla/servo/pull/764.
Re:Servo – A parallel browser engine in Rust by Mozilla by doe88 on Saturday August 24, 2013 @11:30AM (#6268896)
I would be interested in knowing how they accomplish such a huge undertaking given the fact Rust seems [1] to be a language in constant evolution right now. Do they target a fixed subset of Rust (is it even possible) or do they make continual updates to their code? (disclaimer I know nothing about Rust other than having read some of the previous posts linked from HN)

[1] as others HN readers have commented in related threads about Rust

Re:Servo – A parallel browser engine in Rust by Mozilla by Cowen on Saturday August 24, 2013 @12:14PM (#6269010)
Servo right now is more of a Rust reference project than a serious engine. They use the most up-to-date features of Rust and don't worry about having to rewrite the code with the next version because they know they're working with a somewhat unstable language spec.

The real value of Servo right now isn't really as a browser engine, but instead its value as the largest software project currently written in Rust. When you're creating a programming language, you always want to know what it will be like to build large projects in that language, and that's exactly the experience being gained right now with Servo.

Re:Servo – A parallel browser engine in Rust by Mozilla by tbe on Saturday August 24, 2013 @12:22PM (#6269030)
Knowing what it's like to write an HTML rendering engine in Rust is especially useful since the purpose of this language in the first place is to write the next generation Mozilla engine.
Re:Servo – A parallel browser engine in Rust by Mozilla by bjz_ on Saturday August 24, 2013 @12:19PM (#6269020)
I believe Servo uses a particular version of Rust for 1-2 weeks, then updates to the new version. But somebody closer to the project would have to confirm that.

Servo is extremely important to the language's development because it is such a huge undertaking. Along with the self-hosting compiler, it allows the core devs to get invaluable feedback on how their language is performing practically.

Re:Servo – A parallel browser engine in Rust by Mozilla by doe88 on Saturday August 24, 2013 @12:38PM (#6269067)
Thanks for your replies guys. I think it's interesting to develop a massive piece of software at the same time than its language it must certainly contribute quick valuable feedbacks to the language's designers based this concrete application. Added to the fact that Rust is now developed in Rust!
Re:Servo – A parallel browser engine in Rust by Mozilla by saidajigumi on Saturday August 24, 2013 @06:32PM (#6270072)
That same principle really applies to just about all major software projects: using high-quality feedback loops as early as possible can be a huge win. Whether that's having (carefully selected) pre-alpha customers for your product or in Rust's case, co-development with a serious target application (i.e. Servo).
Re:Servo – A parallel browser engine in Rust by Mozilla by teraflop on Saturday August 24, 2013 @09:09PM (#6270461)
Servo's name is fitting, then.
Re:Servo – A parallel browser engine in Rust by Mozilla by jacques_chester on Sunday August 25, 2013 @01:05AM (#6270975)
The historical parallel is C and Unix.
Re:Servo – A parallel browser engine in Rust by Mozilla by bjz_ on Saturday August 24, 2013 @12:50PM (#6269093)
> Added to the fact that Rust is now developed in Rust!

It has been for a good long while! :)

Re:Servo – A parallel browser engine in Rust by Mozilla by azakai on Saturday August 24, 2013 @12:13PM (#6269006)
> Do they target a fixed subset of Rust (is it even possible) or do they make continual updates to their code?

Updates when necessary. As the language gets more stable, that gets easier.

Re:Servo – A parallel browser engine in Rust by Mozilla by cpeterso on Saturday August 24, 2013 @01:41PM (#6269234)
It helps that many of the Rust developers are also working on Servo. :)
Re:Servo – A parallel browser engine in Rust by Mozilla by illektr1k on Saturday August 24, 2013 @10:24AM (#6268722)
I will be the first to admit to having a soft-spot for any program that will quote H.P. Lovecraft on abort/error.

https://github.com/mozilla/rust/blob/master/src/libstd/rt/ut...

Re:Servo – A parallel browser engine in Rust by Mozilla by bjz_ on Saturday August 24, 2013 @10:30AM (#6268736)
brson likes scatter those around. Rust's new runtime has gave me a few of when it first landed. Unfortunately I haven't seen any in quite a while. :(

(I really hope some spoil-sport doesn't get rid of them)

Re:Servo – A parallel browser engine in Rust by Mozilla by steveklabnik on Saturday August 24, 2013 @04:12PM (#6269643)
You can click and shift-click on the line numbers to get a URL like this: https://github.com/mozilla/rust/blob/master/src/libstd/rt/ut...
Re:Servo – A parallel browser engine in Rust by Mozilla by sinkasapa on Saturday August 24, 2013 @03:00PM (#6269441)
Yeah, as long as it isn't a quote of his cat's name.
Re:Servo – A parallel browser engine in Rust by Mozilla by erikpukinskis on Saturday August 24, 2013 @01:47PM (#6269253)
It's funny to take a moment and notice that a cutting edge new project comes with build instructions for Mac first and then Debian. It wasn't so long ago that if you weren't on Windows or RedHat you were going have to figure it out yourself.
Re:Servo – A parallel browser engine in Rust by Mozilla by bjz_ on Saturday August 24, 2013 @02:03PM (#6269306)
And unfortunately Windows support is one of Rust's weak spots. Which will be sorted in the future of course, but it needs some tenacious souls to donate some time if it's going to happen any sooner. Game devs will need this in particular, and they are probably going to be one of Rust's primary groups of users. (in fact, anecdotally it feels like they already are)
Re:Servo – A parallel browser engine in Rust by Mozilla by weavie on Saturday August 24, 2013 @03:52PM (#6269600)
How is it weaker? I've just started running it on windows this week. Needs to run under MinGw, but other than that I'm not aware of any probs. Am just starting on it though, so it would be interesting to know.
Re:Servo – A parallel browser engine in Rust by Mozilla by eslaught on Saturday August 24, 2013 @06:23PM (#6270042)
I don't know if this is still true, but at one point in time you needed to have installed the exact same version of MinGW that Rust itself was compiled with. That meant, for example, that you couldn't rebuild Rust with a newer version of MinGW.

Also, and this isn't really a Rust problem so much as an LLVM one, I believe exception handling was broken on Windows for some time. Presumably this is fixed now, but I haven't actually checked recently.

Re:Servo – A parallel browser engine in Rust by Mozilla by bjz_ on Saturday August 24, 2013 @07:52PM (#6270277)
Oh really? That's great! To be honest I don't follow the Windows situation too closely, as I work on OSX. So things might have improved.
Re:Servo – A parallel browser engine in Rust by Mozilla by __--__ on Saturday August 24, 2013 @08:15PM (#6270326)
I'm curious, how do you envision game devs using this? Most games are currently done in a plugin of one type or another. Do you think the parallel-ism of Servo is going to finally push html5 gaming to where it needs to be, performance wise?
Re:Servo – A parallel browser engine in Rust by Mozilla by tinco on Saturday August 24, 2013 @08:50PM (#6270414)
He means games written in Rust, not in html5. If someone would work on windows support for Rust, then both Servo and other rust projects, like games potentially could run on Windows.
Re:Servo – A parallel browser engine in Rust by Mozilla by pohl on Saturday August 24, 2013 @01:51PM (#6269269)
This probably has more to do with the relative maturity of LLVM (used for Rust's compiler's back end) on each target.
Re:Servo – A parallel browser engine in Rust by Mozilla by Avshalom on Saturday August 24, 2013 @10:22AM (#6268716)
Is there a good high level post any where about the architecture of servo (particularly compared to gecko)? All I ever hear is "parallel-er" with out any detail about which bits can/can't/aren't-but-could-be or anything.
Re:Servo – A parallel browser engine in Rust by Mozilla by bjz_ on Saturday August 24, 2013 @10:26AM (#6268726)
Re:Servo – A parallel browser engine in Rust by Mozilla by ciupicri on Saturday August 24, 2013 @03:08PM (#6269470)
> Servo builds its own copy of Rust, so there is no need to provide a Rust compiler.

That's because it downloads and compiles it when compiling Servo. I wish they'd mention this.

Re:Servo – A parallel browser engine in Rust by Mozilla by ics on Saturday August 24, 2013 @05:13PM (#6269805)
I was a little surprised when I caught that in my terminal as well. About to enter hour two of building...
Re:Servo – A parallel browser engine in Rust by Mozilla by santialbo on Saturday August 24, 2013 @08:44AM (#6268498)
Is this supposed to replace Gecko in the future? or is it just a "toy" project?
Re:Servo – A parallel browser engine in Rust by Mozilla by pcwalton on Saturday August 24, 2013 @08:57AM (#6268521)
It's a research project. There are no product plans at this time.
Re:Servo – A parallel browser engine in Rust by Mozilla by iopq on Saturday August 24, 2013 @03:40PM (#6269565)
if early benchmarks find that it scales better on more cores, it will probably be pushed to replace Gecko

if it doesn't seem like the gains are great, they'll probably have to prove that the added safety is worth it

Re:Servo – A parallel browser engine in Rust by Mozilla by nawitus on Saturday August 24, 2013 @10:18AM (#6268705)
What is specifically a "browser engine"?
Re:Servo – A parallel browser engine in Rust by Mozilla by agumonkey on Saturday August 24, 2013 @12:38PM (#6269069)
AFAIK Servo is mostly a DOM layout parallel renderer. I mistook it for a full browser but the dev corrected me saying it's "just" rendering engine. Right now they're using separate css lib, js interpreter, etc. Servo deals with the layout.
Re:Servo – A parallel browser engine in Rust by Mozilla by sanxiyn on Sunday August 25, 2013 @02:36AM (#6271162)
There is a plan to replace the separate CSS library with its own.
Re:Servo – A parallel browser engine in Rust by Mozilla by agumonkey on Sunday August 25, 2013 @03:22AM (#6271238)
Yeah they were saying it was probably causing performance issues, so the sooner the better.
Re:Servo – A parallel browser engine in Rust by Mozilla by lillycat on Sunday August 25, 2013 @04:15PM (#6273512)
It is a (long, hard) work in progress. One dev started this huge task about 3 weeks ago :-)
Re:Servo – A parallel browser engine in Rust by Mozilla by agumonkey on Sunday August 25, 2013 @05:18PM (#6273770)
I hope this didn't come across like an impatient rant. I just wish them a quick path toward advancing state of the art ideas about DOM rendering and parallelism.
Re:Servo – A parallel browser engine in Rust by Mozilla by Millennium on Saturday August 24, 2013 @11:09AM (#6268829)
The definition is a little fluid. At the absolute minimum you'd need an HTML renderer and Internet access, but this wouldn't get you so far on the modern Web. Most people would expect some level of CSS and JavaScript support too.