v7unix
vectrig
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
v7unix
-
Realist thing I’ve ever seen
This is the source for grep. It's again only 1 file, and tiny. Only uses simple calls, etc. https://github.com/v7unix/v7unix/blob/master/v7/usr/src/cmd/grep.c
- Do you use a linter?
-
Implementing Cosine in C from Scratch
This takes me back in time, to c. 1982 when I got curious about how computers calculated trig functions. Luckily I was using one of the first OSS systems (modulo AT&T lawyers): Unix V7. So I pulled up the source and took a look. You can still see it here: https://github.com/v7unix/v7unix/blob/master/v7/usr/src/libm...
-
There Is No 'Printf'
It's what historic Unix did: https://github.com/v7unix/v7unix/blob/master/v7/usr/src/libc...
Why it did that? I'm not sure, but at the time C did not have 'void' functions: every function returned a value. They probably wanted to make the behavior of the stdlib functions deterministic, even if the return value was useless and undocumented.
-
what does (void*) -1 mean?
See the V7 Unix source for sbrk here.
vectrig
-
Implementing Cosine in C from Scratch
Thanks for explaining this. I actually wrote a SIMD implementation of trig functions years ago, using the techniques you describe.
You can check it out: https://github.com/jeremysalwen/vectrig
I compared several different methods of generating polynomials of different sizes for speed and precision (spoilers: taylor series were the worst and minimax polynomials (Remez algorithm) were the best).
Another (surprising) thing which I learned during the project was that the range reduction was just as (if not more) important to the accuracy of the implementation than the polynomial. If you think about it, you will realize that it's actually pretty difficult to quickly and accurately compute the sin of large numbers like 2^50.
I also tried to directly optimize the coefficients for the accuracy of the polynomial on the required range, but that experiment was unsuccessful.
It's all there in the repository, the implementations, notes about the different polynomials used, and the accuracy/speed statistics for the different methods.
What are some alternatives?
pure-data - Pure Data - a free real-time computer music system
musl - unofficial musl mirror git://git.musl-libc.org/musl
wefx - Basic WASM graphics package to draw to an HTML Canvas using C. In the style of the gfx library
scratch-www - Standalone web client for Scratch
supercollider - An audio server, programming language, and IDE for sound synthesis and algorithmic composition.
systemd - The systemd System and Service Manager
Standard - 🌟 JavaScript Style Guide, with linter & automatic code fixer