基于流的并发脚本语言-Streem
2015-01-04 11:52:10 阿炯
Streem 是 Ruby 语言的开发者松本行弘(Matz,全名是Yukihiro Matsumoto)新开发的一种基于流的并发脚本语言,类似于shell,但语法更为丰富,主要受Ruby、Erlang和其他函数式语言的启发。采用MIT协议授权。
Streem is a stream based concurrent scripting language. It is based on a programming model similar to the shell, with influences from Ruby, Erlang, and other functional programming languages.
用Streem可以这么写一个简单的cat程序:
STDIN | STDOUT
seq(100) | {|x|
if x % 15 == 0 {
"FizzBuzz"
}
else if x % 3 == 0 {
"Fizz"
}
else if x % 5 == 0 {
"Buzz"
}
else {
x
}
} | STDOUT
编译要求:
bison
flex
gcc / clang
最新版本:
项目主页:https://github.com/matz/streem
Streem is a stream based concurrent scripting language. It is based on a programming model similar to the shell, with influences from Ruby, Erlang, and other functional programming languages.
用Streem可以这么写一个简单的cat程序:
STDIN | STDOUT
seq(100) | {|x|
if x % 15 == 0 {
"FizzBuzz"
}
else if x % 3 == 0 {
"Fizz"
}
else if x % 5 == 0 {
"Buzz"
}
else {
x
}
} | STDOUT
编译要求:
bison
flex
gcc / clang
最新版本:
项目主页:https://github.com/matz/streem