Best of C ProgrammingJune 2025

  1. 1
    Video
    Avatar of codingwithsphereCoding with Sphere·51w

    Everyone should learn Bash

    Bash scripting is an essential skill for developers that can significantly streamline development workflows. The post demonstrates practical applications through a C project example, showing how to create build scripts that compile and run programs with single commands. It covers advanced features like command-line arguments, conditional logic, and aliases for faster development. Real-world examples include automating multi-command development environments, syncing files across devices, and code generation for languages lacking generics. The author recommends learning core utilities first, then gradually building scripting knowledge through practical projects rather than studying syntax extensively upfront.

  2. 2
    Article
    Avatar of steveklabnikSteve Klabnik·50w

    Is Rust faster than C?

    Comparing Rust and C performance is complex because 'all things being the same' is difficult to define. While both languages can achieve similar performance through inline assembly and compiler optimizations, they differ in default behaviors like struct field ordering, bounds checking, and safety guarantees. Rust's compile-time safety checks may lead developers to write different code patterns than in C, affecting runtime performance. Social factors also play a role, as developers may be more willing to write performance-oriented code in Rust due to its safety guarantees. Fundamentally, there's no inherent reason Rust cannot match C's performance capabilities.

  3. 3
    Article
    Avatar of hnHacker News·50w

    manaskamal/XenevaOS: The Xeneva Operating System

    XenevaOS is a custom operating system built from scratch supporting both x86_64 and ARM64 architectures. It features the Aurora hybrid kernel, a compositing window manager called Deodhai, graphics library Chitralekha, and includes networking, audio, USB3, and storage support. The OS comes with built-in applications like a file browser, calculator, terminal, and audio player, and welcomes open-source contributions from developers interested in low-level system development.

  4. 4
    Video
    Avatar of tsoding_dailyTsoding Daily·48w

    Tiny UI Library in C

    A developer explores Mikra, a tiny 1000-line immediate mode UI library written in C. The library requires users to implement their own renderer by handling drawing commands like rectangles and text. The exploration demonstrates integrating Mikra with Raylib instead of SDL, showing how the command-based architecture works where the UI library issues drawing commands that get processed by a custom renderer implementation.

  5. 5
    Article
    Avatar of hnHacker News·47w

    sirius-db/sirius

    Sirius is a GPU-native SQL engine that integrates with existing databases like DuckDB through the Substrait query format. It delivers approximately 10x performance improvements over CPU-based query engines on TPC-H benchmarks while maintaining the same hardware costs. The system supports NVIDIA GPUs with compute capability 7.0+ and CUDA 11.2+, offering deployment options through AWS AMIs, Docker images, or manual installation. Sirius handles common SQL operations including filtering, joins, aggregations, and ordering, though it currently has limitations around data size constraints, row count limits, and partial NULL column support.

  6. 6
    Article
    Avatar of c_communityC/C++ Community·50w

    You can literally build a beautiful terminal-based MP3 player with C

    A demonstration of building a terminal-based MP3 player using C programming language. The project combines PortAudio for audio output, libmpg123 for MP3 decoding, and ASCII art for creating a rainbow spectrum visualizer. The implementation showcases how to create multimedia applications in the terminal environment using low-level C libraries.

  7. 7
    Article
    Avatar of allthingsopenAll Things Open·49w

    Clean up your code with Indent

    The indent tool automatically reformats C code to match different coding styles like K&R, GNU, Linux kernel, and BSD. It offers around 90 command-line options for fine-grained control over indentation, spacing, brace placement, and comment alignment. Developers can use indent to convert their personal coding style to match project standards, making it easier to contribute to open source projects without learning specific formatting rules beforehand.