bjourne/c-examples
View on GitHub ↗ ★ 4 C
Example C code
8 mentions on Hacker News by 1 person: 0 stories, 8 comments · first 2016-12-04 · latest 2024-01-04
20082026
-
…may be difficult for the compiler to optimize. For comparison, my own matrix multiplication code ( https://github.com/bjourne/c-examples/blob/master/libraries/... ) run in single-threaded mode takes 0.89 seconds. Which actually beats…
comment by bjourne · 2024-01-04 · in Benchmarking 20 programming languages on N-queens and matrix multiplication -
…this was up I wrote a single-threaded version in C which I'm pretty sure beats both Julia and Mojo: https://github.com/bjourne/c-examples/blob/master/programs/m...
comment by bjourne · 2023-09-09 · in Julia and Mojo Mandelbrot Benchmark -
…being advanced. My mark & sweep implementation is only about 50 lines and that includes comments: https://github.com/bjourne/c-examples/blob/master/libraries/... A copying collector isn't much more complicated. Neither is beyond the reach…
comment by bjourne · 2022-07-30 · in Reference count, don't garbage collect -
…tracing garbage collection collects garbage, so they are both garbage collectors) a few years ago: https://github.com/bjourne/c-examples Run ./waf configure build && ./build/tests/collectors/collectors and it will spit out benchmark…
comment by bjourne · 2022-07-30 · in Reference count, don't garbage collect -
Here is the code if anyone is interested: https://github.com/bjourne/c-examples/blob/master/programs/s... With a few tweaks, g++ beats nim both in the multi-threaded and single-threaded setups.
comment by bjourne · 2020-07-02 · in Ray Tracing in Nim -
Here is my fast io "library": https://github.com/bjourne/c-examples/blob/master/libraries/... It is very (very!) limited, but also very fast. :) Think I got about 20-50x compared to scanf.
comment by bjourne · 2020-05-26 · in I/O library 6x faster than fmt, 10x faster than stdio.h and iostream -
Benchmarks are always worth revisits. Mine is here https://github.com/bjourne/c-examples/blob/master/programs/s...
comment by bjourne · 2019-08-27 · in Why is strlen so complex in C? -
That's interesting! I also implemented that algorithm for cycle collection ( https://github.com/bjourne/c-examples/blob/master/libraries/... ) and I found that like the GP states that it wasn't worth it. The problem was that there so many…
comment by bjourne · 2016-12-04 · in Golang’s Real-Time GC in Theory and Practice