Hands-On Graphics Without X11: A NetBSD wscons Deep Dive

2025-01-17
Hands-On Graphics Without X11: A NetBSD wscons Deep Dive

This article details how to perform low-level graphics programming on NetBSD without X11 or Wayland, leveraging the wscons framework. The author demonstrates accessing and manipulating the framebuffer to draw graphics directly on the terminal and handle keyboard input. This bypasses traditional graphics systems, allowing direct hardware interaction, ideal for resource-constrained environments like embedded systems, enabling faster boot times and reduced resource consumption.

Read more
Development framebuffer

Code Reviews: A Success Story

2025-01-15
Code Reviews: A Success Story

Engineer X at Google worked on two projects with vastly different code review processes. The first, with minimal review, resulted in a buggy release. The second, with a thorough and rigorous review process, although slower initially, yielded a bug-free release and significant learning for X, positively impacting his career. The article argues that code reviews aren't inherently antagonistic; it's the people involved and how the tool is utilized that matters for improving code quality and mentorship.

Read more
Development

Revisiting NetBSD's Build System: A Powerful, Yet Arcane Tool

2024-12-31
Revisiting NetBSD's Build System: A Powerful, Yet Arcane Tool

This blog post revisits NetBSD's build system, a powerful yet somewhat arcane system based on a combination of BSD make and shell scripts. It allows building a complete NetBSD system from scratch on virtually any POSIX platform, without root privileges, and supports cross-compilation to various architectures. The author details the build process, including toolchain generation, build structure, the destdir mechanism, unprivileged builds, and distribution media creation. While acknowledging shortcomings like inefficient incremental builds and imperfect dependency management, the author highlights the system's strengths and design philosophy. The author concludes by mentioning a current embedded project utilizing NetBSD and explores the possibility of migrating the build system to Bazel for enhanced efficiency.

Read more
Development build system

Synology DS923+ vs. Home-Built FreeBSD NAS: A Head-to-Head Comparison

2024-12-19
Synology DS923+ vs. Home-Built FreeBSD NAS: A Head-to-Head Comparison

Julio Merino compares a Synology DS923+ against his home-built NAS running FreeBSD 14 with ZFS. His custom NAS utilizes a powerful ThinkStation workstation with ample CPU and RAM, while the DS923+ is a compact, dedicated NAS appliance with Synology's DSM and btrfs. Both offer comparable IOPS and network performance, but the DS923+ excels in noise and power consumption. DSM provides a user-friendly experience and robust backup solutions, while FreeBSD/ZFS requires more manual configuration and maintenance. Ultimately, the author prefers the DS923+ for its increased peace of mind regarding data security and management.

Read more
Hardware