hdisk
src
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.
hdisk
-
Aho – a Git implementation in Awk
> then people decided perl was bad and moved on from that.
Screw what people think. I found out I like perl. The last thing I wrote is a programmatic partition editor [1] - like how you use sfdisk to zero out the partition, except I wanted to have the MBR and GPT partition table to combine them and make hybrids.
I was fun, and I will use perl again (I may also use awk at one point now that I see how cool it is)
[1] https://github.com/csdvrx/hdisk/
- Show HN: A programmatic partition editor in Perl
-
Significant features introduced for recent versions of Perl
> Bummer you’d been downvoted for that.
Some people have an instinctual dislike of things they've been told it's fashionable to hate. I resent that, because all programming languages are interesting in their own ways.
> It sounds like quite the ambitious project that you’ve nearly got working. Cool!
Oh it's already working, it just needs more polish :)
Check https://github.com/csdvrx/hdisk if you're interested
Actually, I'll try to submit it!
> That is not the sort of thing I’d expect someone to write in Perl, and I’m experiencing an odd mix of “that’s amazing!” and “what on earth were you thinking, my friend?!”
I wanted to do it quickly :)
For decoding weird formats that mix little and big ending, I think perl unpack/unpack is the fastest way.
Also, for computing crc32, I didn't have to bother much :)
src
- Aho – a Git implementation in Awk
-
Have you compiled a custom *BSD kernel before? (similar to a poll on a linux subreddit asking the same question for that OS)
Yes. It's incredibly easy with NetBSD, and while the GENERIC kernel works for most cases, you might sometimes want to change a few things or remove unused things.
- NetBSD Turns 30
- Any good resources on making a C implementation of the Unix ls command?
-
WireGuard has finally landed in FreeBSD
If anyone wants to review the NetBSD implementation, see:
https://github.com/NetBSD/src/blob/trunk/sys/net/if_wg.c
-
Is there such a thing as idiomatic C?
I would disagree with the responses that say there isn't much in the way of idiomatic C. C is a domain-specific language for writing operating systems, so, I would take a look at the Linux kernel, the source code for the different BSDs, etc. The Linux kernel even has its own style guide (which, incidentally, recommends against using that of the GNU project, also worth taking a look at). There's also a style called Kernel Normal Form (KNF), developed by none other than the authors of C and UNIX themselves. I'd also suggest Kernighan and Ritchie's The C Programming Language.
- Your Makefiles Are Wrong
- The /bin/true Command and AT&T Copyright scandal.
- Regex and gcc versions
-
grep /etc/words in browser?
You can view /etc/words in any unix source repository and use the search function. Modern unices keep the wordlist somewhere else, like here: https://github.com/NetBSD/src/blob/trunk/share/dict/web2
What are some alternatives?
ahrf - ahrf - [a]scii (or [a]wk) [h]uman [r]eadable [f]ile
musl - unofficial musl mirror git://git.musl-libc.org/musl
minix - Official MINIX sources - Automatically replicated from gerrit.minix3.org
busybox - BusyBox mirror
linux - Linux kernel source tree
Libc
src - Read-only git conversion of OpenBSD's official CVS src repository. Pull requests not accepted - send diffs to the tech@ mailing list.
coreutils - upstream mirror