News for hackers. Stuff that matters.
Re:Bend: a high-level language that runs on GPUs (via HVM2) by phkahler on Friday May 17, 2024 @10:51PM (#40396160)
>> Bend has no tail-call optimization yet.

I've never understood the fascination with tail calls and recursion among computer science folks. Just write a loop, it's what it optimises to anyway.

Re:Bend: a high-level language that runs on GPUs (via HVM2) by fulafel on Saturday May 18, 2024 @02:03AM (#40396773)
Computer science traditionally focuses on algorithms. Divide-and-conquer algorithms are frequently much more clearly expressed as recursion. Quicksort is the classic example, also various tree operations.
Re:Bend: a high-level language that runs on GPUs (via HVM2) by runeks on Sunday May 19, 2024 @12:57PM (#40408194)
I've never understood the fascination with programming languages among computer science folks. Just write machine code directly, it's what it compiles to anyway.