Posts

Glaze, a Desktop WebView in Go Without CGO

#golang #purego #development

How Glaze stopped embedding a C++ library and started calling the operating system's WebView directly, in pure Go, using purego to keep cgo and native dependencies out of the …

singleflight in Go

#singleflight #golang

singleflight is not a cache. It just keeps simultaneous calls for the same key from doing the same expensive work several times. Once the call finishes, the entry is removed.

An encrypted vault in Go

#golang #grupo-estudos-golang #security #sqlite

Combining terminal password input, encryption at rest, and a SQLite snapshot into a vault that lives in RAM and exists on disk only as an encrypted blob.

Encryption at rest with Go's stdlib

#golang #grupo-estudos-golang #segurança

Encrypting data at rest with nothing but Go's standard library: PBKDF2 to derive the key from the password and AES-256-GCM to encrypt and authenticate.

GoScope: Exploring and Navigating Go Projects

#golang #grupo-estudos-golang #development

GoScope, command-line tools to explore Go projects and efficiently locate functions, variables, and types. Learn how to use them to navigate code interactively and boost your …

Fork Bomb: From Code to Defense

#security #bash #assembly

What a fork bomb is, how it works with examples in bash, C, and assembly, and the best practices to prevent this kind of DoS attack on modern systems.

Building a Bookmark System in Neovim with Lua

#cognitive complexity #neovim #lua #productivity

Learn how to build a bookmark system in Neovim using Lua to speed up your workflow. This article shows how to customize the editor to mark and quickly jump back to important spots …

A Virus in the Lab

#virus

How a VBA macro virus slowed down a pharmaceutical lab, and why it pays to analyze a problem before investing in complex solutions.

Programming as Art

#javascript #development #generative art

Exploring generative art with simple JavaScript programming, bringing creativity and code together to enrich the site experience.

Post-Apocalyptic Computing

#development

In this text I propose an interesting exercise: how to preserve some of humanity's knowledge after a catastrophe of apocalyptic proportions.

Go and Rounding Errors

#golang #grupo-estudos-golang

Errors when converting from floating point to integer are common, and this isn't a problem specific to Go. This is a classic example of that problem.