Live data from Hacker News

Bend: a high-level language that runs on GPUs (via HVM2)

github.com

1–10 of 269 posts

Re: Bend: a high-level language that runs on GPUs (via HVM2)

#5
I've made a benchmark of the current version of Bend running a simple counter program on CPU vs GPU, vs Haskell,Node,Python,C: https://docs.google.com/spreadsheets/d/1V_DZPpc7_BP3bmOR8Ees...

It's magical how the GPU version is basically flat (although with a high runtime init cost)

Re: Bend: a high-level language that runs on GPUs (via HVM2)

#9
I remember seeing HVM on here a year or two back when it came out and it looked intriguing. Exciting to see something being built on top of it!

I would say that the play on words that gives the language its name ("Bend") doesn't really make sense...

https://github.com/HigherOrderCO/bend/blob/main/GUIDE.md

> Bending is the opposite of folding. Whatever fold consumes, bend creates.

But in everyday language bending is not the opposite of folding, they are more or less the same thing. Why not "unfold", which also has a connotation of "the process of happening" as well as merely the opposite of folding?

I have a question about the example code and output for bending:

    type Tree:
      Node { ~lft, ~rgt }
      Leaf { val }

    def main():
      bend x = 0:
        when x 
Where does the initial "tree = fork(0)" come from?
Post reply on HN