Wave Function Collapse library in pure C
github.com
Wave Function Collapse library in pure C
1–10 of 87 posts
Re: Wave Function Collapse library in pure C
#2Re: Wave Function Collapse library in pure C
#3I wonder why the implementation is all in a header.
Having the code in the header gives a bit more flexibility considering the file layout. IMHO this is an awkward consequence of the missing de-facto-standard in C/C++ build systems.
Re: Wave Function Collapse library in pure C
#4Re: Wave Function Collapse library in pure C
#5I feel like the algorithm is maybe poorly named. At first I thought this was a tool to help with computational quantum physics.
Re: Wave Function Collapse library in pure C
#6I feel like the algorithm is maybe poorly named. At first I thought this was a tool to help with computational quantum physics.
Re: Wave Function Collapse library in pure C
#7I feel like the algorithm is maybe poorly named. At first I thought this was a tool to help with computational quantum physics.
Very naive question but is it even possible to do quantum experiments with code on a regular computer? Anyone knows if it's been tried?
Re: Wave Function Collapse library in pure C
#8I wonder why the implementation is all in a header.
This is a typical idiom frequently seen in modern C and C++ codes. As https://github.com/krychu/wfc#how-to-use-the-library says, you need to define a macro in a C file in order to "expand" the actual code there. Having the code in the header gives a bit more flexibility considering the file layout. IMHO this is an awkward consequence of the missing de-facto-standard in C/C++ build systems.
I hate this idiom every time I come across it. I like to look at the header file to see the interface and important documentation, and this just obscures it. Depending on your compiler it can make debugging a huge pain as well.
Re: Wave Function Collapse library in pure C
#9Earlier quoted context omitted.
This is a typical idiom frequently seen in modern C and C++ codes. As https://github.com/krychu/wfc#how-to-use-the-library says, you need to define a macro in a C file in order to "expand" the actual code there. Having the code in the header gives a bit more flexibility considering the file layout. IMHO this is an awkward consequence of the missing de-facto-standard in C/C++ build systems.
How is it more flexible exactly? I hate this idiom every time I come across it. I like to look at the header file to see the interface and important documentation, and this just obscures it. Depending on your compiler it can make debugging a huge pain as well.
Re: Wave Function Collapse library in pure C
#10I feel like the algorithm is maybe poorly named. At first I thought this was a tool to help with computational quantum physics.