Better HN
topnewbestaskshowjobs
Log inSign up

moodguy

61 karma · joined Oct 13, 2021 (5y ago) · 21 submissions

Submissions

1.

Edbrowse, a Command Line Editor Browser(edbrowse.org ↗)

55 points · by moodguy · 2y ago · 19 comments

2.

Edit: Vi and Acme(c9x.me ↗)

4 points · by moodguy · 3y ago · discuss

3.

Turning Suckless into Suckmore(unixsheikh.com ↗)

6 points · by moodguy · 3y ago · 5 comments

4.

Why OpenBSD Rocks(why-openbsd.rocks ↗)

3 points · by moodguy · 3y ago · discuss

5.

Programming Style Influences (2022)(tratt.net ↗)

14 points · by moodguy · 3y ago · 1 comment

comment 3y ago · link · parent

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.

7.

C Needs Better Syntax and Macros (2020)(andreyor.st ↗)

3 points · by moodguy · 3y ago · discuss

8.

Metadesk – An Ergonomic Parser Library(dion.systems ↗)

3 points · by moodguy · 3y ago · discuss

comment 3y ago · link · parent

Oh wow! Didn't know that. Thanks for the link!

10.

Lisp C Compiler, Lisp-like syntax for writing C code(github.com ↗)

2 points · by moodguy · 3y ago · 2 comments

11.

One Big Header File(wiki.c2.com ↗)

1 points · by moodguy · 3y ago · 1 comment

12.

Expert Beginners(daedtech.com ↗)

33 points · by moodguy · 3y ago · 10 comments

13.

C for All(cforall.uwaterloo.ca ↗)

7 points · by moodguy · 3y ago · 2 comments

14.

We don’t need no stinking expression templates(gieseanw.wordpress.com ↗)

1 points · by moodguy · 3y ago · discuss

comment 3y ago · link · parent

can you give an example for the function like macro?

16.

Coma Editor – my personal editor(github.com ↗)

1 points · by moodguy · 3y ago · discuss

comment 4y ago · link · parent

C,P,T are also operators that act on states | ψ>.

18.

Creating a Compiler with Raku(andrewshitov.com ↗)

5 points · by moodguy · 4y ago · discuss

19.

What minimum set of actions make Vim Turing complete?(github.com ↗)

9 points · by moodguy · 4y ago · discuss