camel-cdr/cauldron
View on GitHub ↗ ★ 145 C
A collection of single-file C libraries. (generic containers, random number generation, argument parsing and other functionalities)
9 mentions on Hacker News by 2 people: 2 stories, 7 comments · first 2021-01-31 · latest 2025-07-26
20082026
-
Here is my version of this concept, I tried to keep it as simple as possible: https://github.com/camel-cdr/cauldron/blob/main/cauldron/str...
comment by camel-cdr · 2025-07-26 · in Generic Containers in C: Vec -
…learns how IEEE 754 works. [1] http://mumble.net/~campbell/2014/04/28/uniform-random-float [2] https://github.com/camel-cdr/cauldron/blob/a673553dd7925b0f1...
comment by glkindlmann · 2025-06-02 · in Show HN: Fast Random Library for C++17 -
…floating-point value with a probability proportional to the covered real number range*: https://github.com/camel-cdr/cauldron/blob/main/cauldron/ran... * Well, almost. I messed up the probability around subnormals slightly and haven't…
comment by camel-cdr · 2025-05-07 · in Perfect Random Floating-Point Numbers -
…but it doesn't handle subnormals correctly. I've yet to find the time to revisit the problem. [0] https://github.com/camel-cdr/cauldron/blob/main/cauldron/ran...
comment by camel-cdr · 2023-10-18 · in Higher quality random floats -
…subnormals, with the proper probability, and does so quickly for any choice of a and b. [0] [0] https://github.com/camel-cdr/cauldron/blob/main/cauldron/ran...
comment by camel-cdr · 2023-04-15 · in How many floating-point numbers are in the interval [0,1]? (2017) -
…I did all I could think of to test it [2] [1] https://youtube.com/watch?v=VHJUlRiRDCY&t=2774s [2] https://github.com/camel-cdr/cauldron/blob/main/cauldron/ran...
comment by camel-cdr · 2023-02-17 · in A Brief History of Random Numbers -
…you would need to register all print functions in a global macro. This is just a proof of concept: https://github.com/camel-cdr/cauldron/blob/main/ideas/fmt.c
comment by camel-cdr · 2023-02-13 · in Let's implement buffered, formatted output -
▲ 81
C Posix-compliant argument parsing in 42 LoC, inspired by Duff's devicestory by camel-cdr · 2023-01-04 · 52 comments
-
▲ 3
A guided (literate) implementation of a random number librarystory by camel-cdr · 2021-01-31 · 1 comment