Skip to content

Instantly share code, notes, and snippets.

View lambdadog's full-sized avatar

Ashlynn Anderson lambdadog

View GitHub Profile
@c-u-l8er
c-u-l8er / zig-BEAM-vm.zig
Last active July 23, 2025 01:03
BEAM like VM in Zig
// https://claude.ai/chat/cedd3660-ee18-41f2-a965-27472a4eac38
const std = @import("std");
const print = std.debug.print;
const ArrayList = std.ArrayList;
const HashMap = std.HashMap;
const Allocator = std.mem.Allocator;
const Thread = std.Thread;
const Mutex = std.Thread.Mutex;
const Condition = std.Thread.Condition;
@Gabriella439
Gabriella439 / HasCal.hs
Last active May 5, 2022 09:47
First steps towards modeling PlusCal as a Haskell eDSL
{-# LANGUAGE ApplicativeDo #-}
{-# LANGUAGE BlockArguments #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE UndecidableInstances #-}
module HasCal where
import Control.Applicative (Alternative(..), liftA2)