HackerTrans
TopNewTrendsCommentsPastAskShowJobs

moodguy

no profile record

Submissions

Edbrowse, a Command Line Editor Browser

edbrowse.org
55 points·by moodguy·3 years ago·19 comments

Edit: Vi and Acme

c9x.me
4 points·by moodguy·3 years ago·0 comments

Turning Suckless into Suckmore

unixsheikh.com
6 points·by moodguy·3 years ago·5 comments

Why OpenBSD Rocks

why-openbsd.rocks
3 points·by moodguy·3 years ago·0 comments

Programming Style Influences (2022)

tratt.net
14 points·by moodguy·3 years ago·1 comments

C Needs Better Syntax and Macros (2020)

andreyor.st
3 points·by moodguy·3 years ago·0 comments

Metadesk – An Ergonomic Parser Library

dion.systems
3 points·by moodguy·3 years ago·0 comments

Lisp C Compiler, Lisp-like syntax for writing C code

github.com
2 points·by moodguy·3 years ago·2 comments

One Big Header File

wiki.c2.com
1 points·by moodguy·3 years ago·1 comments

Expert Beginners

daedtech.com
33 points·by moodguy·3 years ago·10 comments

C for All

cforall.uwaterloo.ca
7 points·by moodguy·3 years ago·2 comments

We don’t need no stinking expression templates

gieseanw.wordpress.com
1 points·by moodguy·3 years ago·0 comments

Coma Editor – my personal editor

github.com
1 points·by moodguy·3 years ago·0 comments

comments

moodguy
·3 years ago·discuss
For my hobby projects i do the following.

I adopted the style of writing all macros in lower case with the prefix "macro_", so i can grep through all macros. So macro_ becomes like a keyword. Same with enum.

I use almost the same naming scheme for i32,f32, etc., but i typedef for example size_t const to usz, and size_t to usz_ (or use macro mut(x) x ## _) . So all shorter type names are const by default. I use a single header of 35 sloc to do that.

I see that this way of coding can be confusing for other people, so i avoid it when writing code that other people have to work with. But for personal code its really enjoyable for me.
moodguy
·3 years ago·discuss
Oh wow! Didn't know that. Thanks for the link!
moodguy
·3 years ago·discuss
can you give an example for the function like macro?