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 557476
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: this language is fugly
by panzi on Wed 3rd Apr 2013 20:45 UTC in reply to "this language is fugly"
panzi
Member since:
2006-01-22

I don't understand why people use that Ruby syntax. I think this is better (more concise, less of a finger twister on German keyboards and more readable):


for name in ["Alice", "Bob", "Carol"]
..Thread.new( name ) do | name |
....for number in [1,2,3].shuffle
.......puts "%s says: '%d'" % name, number
....end
..end
end


But then I also think that one of Rubys biggest problems is it's redundancies (in syntax and interfaces). It causes strange syntax errors (the crappy parser errors aren't any help either) and lower readability/consistency (one team member uses variant A, the other variant B - then they have to read and understand each other's code).

I like the philosophy behind Python much much more, even though a way to inline declare and pass a multiline anonymous function to another function would be nice (-> Ruby's blocks). But many things for which blocks are used in Ruby can be done with the with statement in Python and Python's generators are more powerful than anything in Ruby.

Reply Parent Score: 3

RE[2]: this language is fugly
by kristoph on Thu 4th Apr 2013 02:37 in reply to "RE: this language is fugly"
kristoph Member since:
2006-01-01

I was not really making a comment about the benefit/advantage of Ruby. I was just pointing out that it was much cleaner syntactically. Python is fine too (and even less verbose). Heck, even Objective C is nicer then Rust to my eye.

All I am saying is if your trying to build a new language make it VERY readable, do away with addition keywords and constructs that don't add tangible meaning, try to maintain consistency in syntax and not require arbitrary 'grammar' or abbreviations.

Reply Parent Score: 2