Skip to content

Instantly share code, notes, and snippets.

View appcypher's full-sized avatar
:octocat:
What's up?

Stephen Akinyemi appcypher

:octocat:
What's up?
View GitHub Profile
@appcypher
appcypher / zql.md
Last active December 28, 2023 08:02
ZQL Ideas

Database Operations

Create

zql! {
    dbs::create(#app_db, {
        namespace: "bf91cccb-81ca-4ebe-9687-a79d7d3debb2"
    })
}
@appcypher
appcypher / Cargo.toml
Created March 20, 2024 00:06 — forked from s3rius/Cargo.toml
PyO3-asyncio async streams
[package]
name = "itertest"
version = "0.1.0"
edition = "2021"
[dependencies]
futures = "0.3.28"
pyo3 = "0.19.2"
pyo3-asyncio = { version = "0.19.0", features = ["tokio-runtime"] }
tokio = { version = "1.32.0", features = ["sync"] }
@appcypher
appcypher / comb.rs
Last active September 14, 2024 21:58
Slow Combinator lol
use crate::compiler::reversible::Reversible;
//--------------------------------------------------------------------------------------------------
// Types
//--------------------------------------------------------------------------------------------------
/// The result of a combinator expression.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum Combinator<T> {
/// A single `T` value.
@appcypher
appcypher / monocore_files.md
Last active November 9, 2024 08:50
Monocore Files

How monocore structurs files, configs it stores:

graph TD
    A[~/.monocore] --> B[monoimage/]
    B --> C[repo/]
    C --> D["[repo-name]__[tag].cid"]
    B --> E[layer/]
@appcypher
appcypher / explainer0.md
Last active December 19, 2024 21:44
Networking on macOS and Linux

Understanding Network Interfaces and Virtual Networking Concepts on Linux and macOS

In modern operating systems, networking is not limited to physical Ethernet interfaces (eth0, en0, etc.). There are a variety of virtual networking abstractions and constructs—like tun, tap, bridge, veth, subnet—that enable everything from virtual machines and containers to VPNs and complex local network simulations.

This document will break down how these components work, why they exist, and how they fit together. Examples will focus on Linux and macOS, with key differences noted.


Physical vs Virtual Interfaces

@appcypher
appcypher / explainer0.md
Last active December 20, 2024 11:13
Multi-RAFT

How to Achieve Synchronization Across Multiple RAFT Groups

Achieving synchronization across multiple RAFT groups, especially for operations that span different partitions and require atomicity, is a complex but critical aspect of building scalable, consistent distributed systems. Below, we revisit the challenges and strategies for atomic operations across RAFT groups.

In a multi-RAFT architecture, each RAFT group independently manages a subset of data. While this design enhances scalability and fault tolerance, it complicates operations that must be performed atomically across multiple partitions.


Key Challenges

@appcypher
appcypher / registries.md
Last active March 14, 2025 15:21
Programming Language Registries
Language Primary Registry / Manager Popularity Reason
C ❌ No official registry; OS package managers (apt, brew) Systems programming, legacy software, embedded devices
C++ vcpkg, Conan, CPM High-performance apps, game engines, system-level programming
C# NuGet .NET ecosystem, enterprise apps, game dev (Unity)
Clojure Clojars Functional programming on JVM, enterprise & web apps
Crystal Shards Ruby-like syntax, fast native c