Thank you very much for inventing such an amazing programming language. However, when I programmed a quadtree using Bend, I found that this code did not work properly.
I really enjoy using this language and can’t wait to improve my algorithms, such as matrix multiplication. However, the implementation of quadtrees has been a persistent challenge for me.
My questions:
I don't know why this code fails to output results, even when the data size is small (n = 3). Is this because Quadtree has four member variables while MyTree has only two? These two pieces of code are really similar.
Does Bend support multi-parallelism? Like computing "return Quadtree/TreeNode{nw: gen(n - 1), ne: gen(n - 1), sw: gen(n - 1), se: gen(n - 1)}"?
If so, how should it be implemented?
Thank you very much for your time and help! I would greatly appreciate any help or guidance. Looking forward to hearing from you.
Reproducing the behavior
Thank you very much for inventing such an amazing programming language. However, when I programmed a quadtree using Bend, I found that this code did not work properly.
Running command:
bend run-cu quadtree.bend -s
With code:
Error:
The program fails to stop and no results are output.
Expected behavior:
Like:
System Settings
Additional context
I have tried:
I found the program runs correctly with “bend run quadtree.bend -s”:
And for another program, using a binary tree to accelerate computing, runs correctly with “bend run-cu binaryree.bend -s":
Bend is incredibly powerful, and I’m impressed by its remarkable speed:
I really enjoy using this language and can’t wait to improve my algorithms, such as matrix multiplication. However, the implementation of quadtrees has been a persistent challenge for me.
My questions:
Thank you very much for your time and help! I would greatly appreciate any help or guidance. Looking forward to hearing from you.
Best regards, Siyu Wang