2 hours ago · 5 min read1053 words · Tech · hide · 0 comments

Solod is a subset of Go that translates to regular C — with zero runtime, manual memory management, and source-level interop. It's designed for two main audiences: Go developers who want low-level control without having to learn another language. C developers who like Go's style. The new Solod release provides an easy way to call third-party C libraries, makes a large part of the standard library freestanding, and impoves the tooling. Automatic bindings • Freestanding packages • Type assertions • C interop • Multi-package testing • Checks and targets • Windows • Wrapping up Automatic binding generator Sobind generates bindings — stubs for calling third-party C libraries from Solod. It parses .h files and emits a Solod source file with necessary structs, unions, constants, variables, function pointer typedefs, and function declarations. You can then use the generated types and functions in regular Solod code: package main import ( "solod.dev/raylib/libraylib" "solod.dev/so/c" ) func…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.