Skip to content

Instantly share code, notes, and snippets.

View DoddiC's full-sized avatar
👨‍🎓
Hi!

Chidvi Doddi DoddiC

👨‍🎓
Hi!
View GitHub Profile
@conradbzura
conradbzura / building-a-distributed-context-system-for-wool.md
Last active July 27, 2026 00:59
Adapting Python's `contextvars` library for use in distributed systems

Fear and Loathing in Python: Building a Distributed Context System for Wool

I would like to share one of the more interesting features I've implemented for Wool recently: a distributed context system with (near) complete parity to Python's native contextvars library. I undertook this endeavor thinking it'd be a neat little feature enabling Wool's users to get more creative with how they design their distributed applications. Well, it took me two attempts to get it right (I hope), and it was enough of an ordeal that I decided to put the experience to paper. Enjoy.

False start

When I first approached the challenge of extending Python's contextvars library to Wool, I'll admit I didn't have an adequate understanding of how it interfaced with asyncio—specifically, I was under the impression that newly constructed asyncio tasks always got a shallow copy of their parent context. This is evident in the fact that I chose to store worker proxies in a context var. While in th

@smellslikeml
smellslikeml / v7_paired_analysis_gist.md
Last active July 27, 2026 00:59
Opus vs GLM-5.2 in a coding-agent pipeline — paired-run findings

GLM Tries, Opus Triages: Behavioral Differences in Research-to-Code Agents

A controlled comparison across 19 paired runs spanning 19 repository forks — 38 individual workflow executions total — running an identical paper-implementation pipeline (remyxai/outrider — Claude Code under the hood, with glm-5.2 routed at z.ai's Coding Plan endpoint vs default Opus). The pipeline ran in two modes that probe different parts of the workflow:

  • Selection-pass mode (n=9): no pin; each provider freely selects its own paper from the candidate pool. Exercises the full pipeline including selection + verification gates.
  • Pin-method mode (n=10): same paper pinned on each fork, both providers run their full chain on identical input. Isolates implementation-side behavior on a forced pick.

The aggregate verdict comes from the n=19 union; the two mode-specific breakdowns below show where the difference comes from.

Reproducing this

@ozkatz
ozkatz / basha256.sh
Created June 29, 2026 22:35
A pure-bash implementation of sha256. Why? because we can.
#!/usr/bin/env bash
#
# basha256.sh - sha256 in pure Bash 3.2
#
# ./basha256.sh < bigfile.bin
#
# Everything below: the message schedule, the compression function and even
# reading the raw bytes off stdin is done with nothing but Bash builtins and arithmetic.
#
# TIL: Bash cannot store a NUL byte in a variable, so stdin is read in NUL-delimited chunks and the delimiters are re-inserted by hand.
@rcalixte
rcalixte / libqt6-builds.md
Created June 28, 2026 21:09
Build System Improvements, Centralized Overview, etc.

Build System Improvements, Centralized Overview, etc.

Hi all,

Following up on the previous announcements Qt 6 for C & Zig and Online Documentation for Qt 6, KDE Frameworks, etc. for C & Zig, this is another small update to highlight some important changes.

Both libraries now feature an exported convenience function in the build system. Developers who opt in gain a simpler and maintained path to cross-platform support for platforms supported by the library. Over time, the implementation scope can be increased, ideally without forcing breaking changes. The basic use case copied from the updated documentation:

@retroplasma
retroplasma / README.md
Last active August 3, 2026 19:08
Unlag Neo: Macbook Neo Cursor lag "fix"

Unlag Neo: A "fix" for the cursor lag on Macbook Neo

Macbook Neo (I'm on macOS Tahoe 26.5.2) cursor is lagging when the cursor is near the screen's edges or when it enters a Terminal window. [1][2][3][4][5]

[Click here for more info and background]

Why is it lagging?

I don't know. But at the moment when it lags the system switches from hardware cursor to software cursor (CGCursorIsDrawnInFramebuffer() goes from 0 to 1) so maybe that transition is stalled somehow on Macbook Neo.

@alurm
alurm / README.md
Last active July 27, 2026 00:58
A generic dynamic array in C that stores no capacity and needs no struct

A generic dynamic array in C that stores no capacity and needs no struct

The following header shows a way to make a generic dynamic array in C with an array of two pointers:

  • one pointer (accessible as vec_ptr[vec]) points to the data;
  • the other pointer (accessible as vec_len[vec]) encodes the length of the array in the pointer. Thus, (size_t)vec_len[vec] returns the len as size_t.

So, int *vec[2] = { 0 }; is an empty dynamic array of ints. struct person *people[2] = { 0 }; is an empty dynamic array of people.

The vec_push(vec, value) macro pushes a value at the end of a dynamic array. It returns true if pushing succeeded, and false otherwise. Note that the dynamic array is not automatically freed on failure.

@samhenrigold
samhenrigold / 001_NEW27_task_overview.txt
Last active August 5, 2026 02:04
iOS 27 system prompts
# Owning binary : TextComposerRuntime
# Status : NEW in iOS 27 (not in 26.5.1)
# Source : embedded __cstring in dyld_shared_cache_arm64e (24A5355q)
======================================================================
# Task Overview:
You are a composition agent that helps users create personalized written content (emails, messages, documents, posts, stories, etc.)
As an Assistant, you must:
1. Analyze the request to determine if you have sufficient information
@abrambailey
abrambailey / better-envs.md
Created June 9, 2026 02:22
Open Credential Lifecycle Standard

A Proposal for an Open Credential Lifecycle Standard

Why this matters

API keys and service credentials remain one of the messiest parts of modern software development.

The problem is not simply that secrets need to be stored securely. We already have good tools for that. The larger unsolved problem is that credentials are created, copied, scoped, stored, injected, rotated, revoked, and audited differently across every API provider, cloud platform, hosting service, CI system, database, analytics tool, and developer environment.

This becomes painful during normal development. It becomes critical after a compromise.

@samholmes
samholmes / local-apps.md
Last active August 10, 2026 09:40
Local Apps – The simple solution to desktop web applications

Okay, so I have a bit of a story to tell.

Lately, I've been not as trusting of desktop application because of the lack of security sandboxing. So, I'm wanting to use web apps over desktop apps for the reason that I can get a pretty hardened sandbox environment (Firefox or Chrome are pretty hardened by companies with a lot of resources).

Today, I was looking for an email client. I wanted one that supports multiple inboxes unified into one (much like the gmail mobile client). However, I quickly discovered that all email clients are going to be desktop-based and potentially insecure. That's certainly not good considering that email is a pretty massive attack vector. Any web-based email client will most likely be dedicated to some specific email service (gmail, proton, etc). And, even if there was a web-client that supported any email provider in a unified way, there will still be a server involved because browsers do not support email protocols out of the box!

So it got me thinking about the reason why Elec

@abrambailey
abrambailey / proposal.md
Last active July 27, 2026 00:58
A Proposal for an Open Credential Lifecycle Standard

A Proposal for an Open Credential Lifecycle Standard

Why this matters

API keys and service credentials remain one of the messiest parts of modern software development.

The problem is not simply that secrets need to be stored securely. We already have good tools for that. The larger unsolved problem is that credentials are created, copied, scoped, stored, injected, rotated, revoked, and audited differently across every API provider, cloud platform, hosting service, CI system, database, analytics tool, and developer environment.

This becomes painful during normal development. It becomes critical after a compromise.