Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: intf Clear Filter

SDS: Simple Dynamic Strings library for C

Simple Dynamic Strings Notes about version 2: this is an updated version of SDS in an attempt to finally unify Redis, Disque, Hiredis, and the stand alone SDS versions. This version is NOT binary compatible* with SDS verison 1, but the API is 99% compatible so switching to the new lib should be trivial. Note that this version of SDS may be a slower with certain workloads, but uses less memory compared to V1 since header size is dynamic and depends to the string to alloc. Moreover it includes

Antirez/sds: Simple Dynamic Strings library for C

Simple Dynamic Strings Notes about version 2: this is an updated version of SDS in an attempt to finally unify Redis, Disque, Hiredis, and the stand alone SDS versions. This version is NOT binary compatible* with SDS verison 1, but the API is 99% compatible so switching to the new lib should be trivial. Note that this version of SDS may be a slower with certain workloads, but uses less memory compared to V1 since header size is dynamic and depends to the string to alloc. Moreover it includes

How to Use Snprintf

The sprintf family of functions ( sprintf , snprintf , vsnprintf , …) have this little-known feature to what size your buffer should be. In cases where you don’t have a fixed upper bound, this is really useful. For example: int size = snprintf ( /*str=*/ NULL , /*size=*/ 0 , "%d: %s" , some_int , some_c_str ); if ( size < 0 ) abort (); int size_with_nul = size + 1 ; char * buf = malloc ( size_with_nul ); if ( buf == NULL ) abort (); int result = snprintf ( /*str=*/ buf , /*size=*/ size_with_nu

Show HN: Dlg – Zero-cost printf-style debugging for Go

dlg delog - /diːˈlɑːɡ/ Printf-Style Debugging with Zero-Cost in Production Builds dlg provides a minimal API for printf-style debugging - a lightweight logger that completely vanishes from production builds while providing rich debugging capabilities during development. When built without the dlg tag, all logging calls disappear entirely from your binary, resulting in no runtime overhead. Why dlg? 🚀 True zero-cost abstraction - Logging calls completely disappear from production binaries - L

Using Sun Ray thin clients in 2025

using Sun Ray thin clients in 2025 setting up 20 year old hardware is bound to work first try, right? ... right? i’ve used thin clients at home for quite a while - both for their intended use (remotely accessing a desktop of another system); and in the sense of “modern thin clients are x86 boxes that are wildly overpowered for what they run, so they make good mini servers.” recently, i saw a bulk lot of Sun Ray thin clients pop up on Trade Me (NZ’s eBay-like auction site) - and with very littl

Topics: intf opt ray sun sunwut