k0b0's record.

Computer Engineering, Arts and Books

Ruby developer Matz's new language Streem

 Recently, I learned that Ruby developer Matz is developing a programming language called Streem. Streem is a language specialized for stream processing. I think people like sed and awk will like this language. I like stream processing, so I hope that this language will popular.

streem sample program(FizzBuzz)

seq(100) | {x ->
  if x % 15 == 0 {
    "FizzBuzz"
  }
  else if x % 3 == 0 {
    "Fizz"
  }
  else if x % 5 == 0 {
    "Buzz"
  }
  else {
    x
  }
} | stdout

 
github.com