Linked by Thom Holwerda on Wed 3rd Apr 2013 15:41 UTC
Mozilla & Gecko clones Big news from Mozilla and Samsung today: the two have been working on a new browsing engine together, developed from the ground-up to be completely new, and it's written entirely in Rust, a new safe systems language developed by Mozilla. "Rust, which today reached v0.6, has been in development for several years and is rapidly approaching stability. It is intended to fill many of the same niches that C++ has over the past decades, with efficient high-level, multi-paradigm abstractions, and offers precise control over hardware resources. But beyond that, it is safe by default, preventing entire classes of memory management errors that lead to crashes and security vulnerabilities. Rust also features lightweight concurrency primitives that make it easy for programmers to leverage the power of the many CPU cores available on current and future computing platforms." The work is on-going, but of course, all code is out there right now.
Thread beginning with comment 557448
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: this language is fugly
by Thom_Holwerda on Wed 3rd Apr 2013 17:26 UTC in reply to "this language is fugly"
Thom_Holwerda
Member since:
2005-06-29

Does that matter? Genuine question - I'm no programmer - but isn't its functionality and benefits more important than how it looks?

Reply Parent Score: 2

RE[2]: this language is fugly
by M.Onty on Wed 3rd Apr 2013 18:06 in reply to "RE: this language is fugly"
M.Onty Member since:
2009-10-23

If you can reach everything you need to in a room, and its not got mold, lice, cockroaches or rats, then any further cleanliness is theoretically pointless. And yet, for some reason, a clear room makes for a clear mind.

So strictly speaking no, it doesn't matter, except that it makes it easier to type quickly and understand when reading, which you'll get the hang of in time in any case. But in our minds a clean aesthetic to the language implies a clean aesthetic to the architecture and methods. That's quite important, especially when a programmer spends more time staring at the text file than the actual resultant program.

Reply Parent Score: 6

project_2501 Member since:
2006-03-20

Readability, expressability, logical conistency, avoiding ambiguity, synactic ease .. are all incredibly important.

You can do all you want with assessmbly language but you wouldn't.

Human considerations of readability and understandability by someone who wasn't the original author is really really important when doing anything above a certain human scale.

And even if it was a small human scale - ie just you coding - the ability to easily translate human ideas into code .. and back... is really key.

Python was popular for minimising the leap between human mind and code... other languages are great for supreme consistency and architectural logic.

Reply Parent Score: 7

lucas_maximus Member since:
2009-08-18

Generally yes. Readability is important, since most of your day is spent reading code rather than writing it (Today I maybe spent a solid 30 minutes writing code out of my 9 hour shift).

Ruby and the Rust Syntax demonstrated has some familiarities with Visual Basic. Most programmers hate Visual Basic mainly due to its syntax and partly because a lot of awful code is written in it.

I find that Syntax hard to read especially since the characters in both examples mean completely different things in C like languages, VB and Python (not sure about others).

Reply Parent Score: 4

allanregistos Member since:
2011-02-10

Generally yes. Readability is important, since most of your day is spent reading code rather than writing it (Today I maybe spent a solid 30 minutes writing code out of my 9 hour shift).

Ruby and the Rust Syntax demonstrated has some familiarities with Visual Basic. Most programmers hate Visual Basic mainly due to its syntax and partly because a lot of awful code is written in it.

I find that Syntax hard to read especially since the characters in both examples mean completely different things in C like languages, VB and Python (not sure about others).


Readability, understandability, with all these clean code, I can't understand why most posts here don't mentioned Ada or Pascal?

Reply Parent Score: 1

RE[2]: this language is fugly
by renox on Thu 4th Apr 2013 08:26 in reply to "RE: this language is fugly"
renox Member since:
2005-07-06

but isn't its functionality and benefits more important than how it looks?


Not really, otherwise we would all be using Lisp..
Then again C++ syntax is not that good either..

Reply Parent Score: 2

RE[2]: this language is fugly
by darknexus on Thu 4th Apr 2013 09:41 in reply to "RE: this language is fugly"
darknexus Member since:
2008-07-15

Does that matter? Genuine question - I'm no programmer - but isn't its functionality and benefits more important than how it looks?

It's not looks so much as code readability. If you want to bring in new contributors eventually, you want your code to be as readable as possible with as little effort as possible especially when you're dealing with something as complex as a web rendering engine. A language can look like crap so long as it's readable but, if it's stuffed full of unnecessary syntactic elements as Rust is, it's counter-productive. It takes longer to read, longer to review, longer to code, and introduces a much greater chance for mis-typing a punctuation mark that really shouldn't be needed. The code snippet at the start of this thread is a perfect example: what in hell do you need with all those | and & signs when there are much simpler ways to express that concept? I shouldn't be surprised though. This is Mozilla at work, and these are probably the same people that thought the bloated beast known as XUL was a good idea for a cross-platform UI toolkit.

Reply Parent Score: 2