Hacker GitHub

← All repos

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

Mentions per year 8 mentions · busiest year 2020 (2)
20082026
  1. …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…
  2. …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
  3. …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
  4. …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
  5. 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
  6. 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.
  7. 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?
  8. 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…