Skip to content

Instantly share code, notes, and snippets.

View MichaelBelousov's full-sized avatar

Michael Belousov MichaelBelousov

View GitHub Profile
@DanB91
DanB91 / gist:490f85ec0e5b7828a01fd13569240fd0
Last active July 26, 2025 03:31
EM_ASM and EM_ASM_INT in Zig
//A Zig version of emscipten's EM_ASM and EM_ASM_INT
//WARNING: I've only tested 32-bit and 64-bit ints and floats for arguments. Haven't tested other types e.g. bool
//Example:
//em_asm(.{"World!"},
// \\const world = UTF8ToString($0);
// \\console.log(`Hello ${world}`);
// );
pub inline fn em_asm(args: anytype, comptime script: anytype) void {
@BrianWill
BrianWill / Go overview.md
Last active August 5, 2025 21:37
Go language overview for experienced programmers

The Go language for experienced programmers

Why use Go?

  • Like C, but with garbage collection, memory safety, and special mechanisms for concurrency
  • Pointers but no pointer arithmetic
  • No header files
  • Simple, clean syntax
  • Very fast native compilation (about as quick to edit code and restart as a dynamic language)
  • Easy-to-distribute executables