Results 1 to 1 of 1

Thread: Mozilla re-invents the browser: Project "SERVO"

  1. #1
    Banned

    Join Date
    Feb 2012
    Posts
    2,361
    Thanks
    166
    Thanked 1,206 Times in 607 Posts
    Rep Power
    0
    Reputation
    16631

    Default Mozilla re-invents the browser: Project "SERVO"

    Reportedly Mozilla Foundatin has started to re-write the source code of their brower using the new programming language RUST, invented and developed by themselves.
    It is a plan the non-profit foundation wants to prevent the majority of security vulnerabilities in the future with. Mozilla is not alone with the security gaps, the problem affects all modern Web browsers, including Chrome, Safari and Internet Explorer.

    That was the reason the company now works on a new browser with the name SERVO.




    For the programmers around here:

    This is a small functional code written in RUST

    Code:
    fn main() {
        // A simple integer calculator:
        // `+` or `-` means add or subtract by 1
        // `*` or `/` means multiply or divide by 2
    
        let program = "+ + * - /";
        let mut accumulator = 0;
    
        for token in program.chars() {
            match token {
                '+' => accumulator += 1,
                '-' => accumulator -= 1,
                '*' => accumulator *= 2,
                '/' => accumulator /= 2,
                _ => { /* ignore everything else */ }
            }
        }
    
        println!("The program \"{}\" calculates the value {}",
                  program, accumulator);
    }
    which delivers the output


    The program "+ + * - /" calculates the value 1

  2. The Following 3 Users Say Thank You to jwoegerbauer For This Useful Post:

    allover (21-06-15),Landytrack (22-06-15),tristen (21-06-15)



Look Here ->

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •