4 ms·
I found the most interesting one to be compile time trees. Does anyone have any good use cases for it?
by etaioinshrdlu 7y ago
I found the most interesting one to be compile time trees.
Does anyone have any good use cases for it?
- saagarjha 7y agoA hardcoded trie for string matching, perhaps?
- lasagnaphil 7y agoMaybe for making a declarative GUI system in C? I’ve never seen this before, so I’m not sure it could be done.
- kccqzy 7y agoI don't like to think of it as compile-time trees. It basically only allows you to construct complicated structures but doesn't allow you to examine them at compile time (that would require constexpr functions in C++; can't be done in C). It's honestly not a very impressive feature.
- multun 7y agoI used it to describe neural network architectures.
- megous 7y agoLook at clk driver code for sunxi in mainline kernel. That uses it a lot. https://elixir.bootlin.com/linux/latest/source/drivers/clk/sunxi-ng/ccu_nkmp.h https://elixir.bootlin.com/linux/latest/source/drivers/clk/s...