GitHub Hot Board

GitHub Hot Board · Archivio repository

matz/streem

prototype of stream based programming language (Questa descrizione proviene dal repository.)

C

Dati al October 28matz

Miglior posizione

#487

Storico · C per lingua

4.6K

Stelle totali

235

Fork totali

0

Giorni in classifica (30 g)

Licenza: MITUltimo push: January 3Issue aperte (PR incl.): 24Raccolto dal 2026-10-25; sconosciuto = non ancora raccolto

Documentazione del progetto

Streem

Build Status Gitter

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.

Note: Streem is still in the design stage. It's not working yet. Stay tuned.

Compiling

Installing dependencies

  • bison
  • flex
  • gcc / clang

Run make

make

Examples

In Streem, a simple cat program looks like this:

stdin | stdout

You can try it out by (firstly cd to streem top directory):

$ bin/streem -e 'stdin | stdout'

or

$ bin/streem examples/01cat.strm

Streem is a (sort of) DSL for data flows. Above code means building data-flow connection between stdin and stdout. Actual data processing will be done in the event loop invoked after program execution.

For another example, a simple FizzBuzz will look like this:

# seq(100) returns a stream of numbers from 1 to 100.
# A function object in pipeline works as a map function.
# stdout is an output destination.
seq(100) | map{x->
  if (x % 15 == 0)     "FizzBuzz"
  else if (x % 3 == 0) "Fizz"
  else if (x % 5 == 0) "Buzz"
  else                 x
} | stdout

The second part in the pipeline ({x ->...}) is a function object. If a function object is connected in the pipeline, it will be invoked for each element in the stream.

There are more examples under folder examples/. Just play with them!

Contributing

Send a pull request to https://github.com/matz/streem. We consider you have granted non-exclusive right to your contributed code under MIT license. Use https://github.com/matz/streem/issues for discussion.

License

MIT license (© 2015-2016 Yukihiro Matsumoto)

Classifiche attuali

  • 487

    Campioni di sempre · C

    4.6K stelle · 235 fork · Star totali

    Storico · C →

Andamento degli ultimi 30 giorni

Nessun record negli ultimi 30 giorni.

Metti il badge nel tuo README · matz/streem[![Metti il badge nel tuo README](https://git.vaiox.xyz/api/badge/matz/streem.svg)](https://git.vaiox.xyz/it/repo/matz/streem)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/it/repo/matz/streem"><img src="https://git.vaiox.xyz/api/badge/matz/streem.svg" alt="Metti il badge nel tuo README" height="20"></a>

← Torna alle classifiche

GitHub Hot BoardMacchina del tempoScopri联系我们 · Contact