Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Indeed. Many, lacking compiler research know-how, just make it a graph-encoding language, which is really not the point of dataflow. Any language trivially mapping to SSA semantics is already a dataflow language, essentially.

SISAL isn't all that bad, ignoring the 80's syntax:

  function BottlesOfBeer(i : integer returns array[string])
    let
      s,bottles,preface,n,nextbottles :=
        if i = 1 then
          "1"," bottle","If that bottle","No more"," bottles"
         elseif i = 2 then
           itoa(2)," bottles","If one of those bottles",itoa(1)," bottle"
         else
           itoa(i)," bottles","If one of those bottles",itoa(i-1)," bottles"
         end if;
    in
      array[1:
        s || bottles || " of beer on the wall", 
        s || bottles || " of beer!",
        preface || " should happen to fall... ",
        n || nextbottles || " of beer on the wall!",
        ""
      ]
    end let
  end function


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: