Better HN
topnewbestaskshowjobs
Log inSign up

janselman

97 karma · joined Oct 17, 2020 (6y ago) · 10 submissions

Submissions

1.

Linux Memory Management FAQ(landley.net ↗)

188 points · by janselman · 5y ago · 71 comments

comment 5y ago · link · parent

Shrinking is not that necessary I believe. C++ and Java data structures do not shrink automatically either.

comment 5y ago · link · parent

Btw I'm not the author, author posted on reddit : https://www.reddit.com/r/C_Programming/comments/lh9irz/commo...

I don't know much about hashmaps but the disadvantage with tombstones is if you add/remove a lot, then you have to rehash your map at some point right?

I really like tiny libs anyway, yours looks good, very readable :)

comment 5y ago · link · parent

Great write up. It's common to add retry or reconnect mechanism to connections even there is no requirement. It's basically "restart your computer" to see if the issue disappears. So, it actually hides bugs for decades :)

5.

Common libraries and data structures for C(github.com ↗)

24 points · by janselman · 5y ago · 6 comments

6.

x86-64 Assembly Language Programming with Ubuntu [pdf](egr.unlv.edu ↗)

2 points · by janselman · 5y ago · discuss

7.

Beej's Guide to C Programming(beej.us ↗)

9 points · by janselman · 5y ago · 1 comment

comment 6y ago · link · parent

https://github.com/uraimo/run-on-arch-action

It's on qemu, not that fast but it works.

comment 6y ago · link · parent

Looks like easier than coordinates : https://www.bbc.com/news/uk-england-49319760

comment 6y ago · link · parent

Because C++ has almost all the possible features of the programming languages, so you find a subset to like in it. A language shines when it picks the correct subset of the features, not all.