Skip to content

Instantly share code, notes, and snippets.

View dmarx's full-sized avatar

David Marx dmarx

View GitHub Profile
@dmarx
dmarx / We Are Already Paperclip Maximizing.md
Created December 3, 2026 07:56
The paperclip problem is better understood as a problem concerning the organization of practical authority: which demands acquire influence over which conditions of collective life, and how that influence transforms the capacities through which it can subsequently be governed.

We Are Already Paperclip Maximizing

The Organizational Origins of Artificial Will and the Misidentification of Existential Risk

David Marx, et al. - 2026-12-02

Abstract

The paperclip maximizer is a thought experiment about the dangers of combining intelligence with an inadequately specified objective. But its familiar interpretation presupposes an insufficiently examined theory of agency: that an increasingly intelligent process constitutes an individual with persistent interests, that its objectives possess practical authority, and that its improvement serves a will of its own.

@dmarx
dmarx / alignment-as-governance-of-developmental-cooperation.md
Created December 3, 2026 00:42
I know. I hate it when people try to get me to read LLM outputs too. This ties together like three years of ideas into a straight line.

Alignment as the Governance of Developmental Cooperation

Inquiry, Justice, and the Organization of Intelligent Systems

David Marx, et. al., 2022-12-02

Extended manuscript prospectus and annotated chapter outline

Overview

@dmarx
dmarx / horseshoe_shuffle.py
Last active June 18, 2026 16:56
Demonstration of a simple horseshoe map construction in response to "how would you shuffle a deck if your only source of randomness is rolling dice?" - https://old.reddit.com/r/AskStatistics/comments/1u8kgiy/an_algorithm_for_shuffling_cards_for_people_not/oseb3lb/?context=3
import numpy as np
from scipy.stats import kendalltau
import einops
import matplotlib.pyplot as plt
def new_deck():
return np.arange(52)
def roll():
# return np.random.randint(0,26)
@dmarx
dmarx / yt_views_v2.html
Created April 20, 2026 20:13
D3 animated bar chart demo to hopefully make Dan Olson's life a tiny bit easier. Context: https://bsky.app/profile/digthatdata.bsky.social/post/3mjx6xbvsws2i
<!DOCTYPE html>
<!-- yt_views.html -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weekly Views · Channel Growth 2017–2026</title>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.9.0/d3.min.js"></script>
<style>

This feedback was motivated by your lecture: "On the volumes of higher-dimensional spheres"

First, I just want to say I love that you made this video. I think you brush off the gaussian discussion a bit too quickly though. In particular, I think an aside on the gaussian perspective gives a stronger intuition about how the concentration of measure works. In the video, you proposed that the measure concentrates at the "equator". Personally, I consider it pretty hard to reason about what the "equator" of a high dimensional sphere is.

Instead, I think a much easier way to think about this is that the volume concentrates along the circumference. Concretely, rather than the equator of a sphere, the visual you should be motivating is a thin shell at the surface of the sphere. In high dimensions, that "equator" is really any great circle wrt the origin, which sweeps out the shell.

I've heard this referred to as "the gaussian annulus theorem". Not sure who to attribute it to.

CONGRESS CI/CD PIPELINE - BILL ANALYSIS REPORT
==============================================
Repository: us-congress/hr-1-one-big-beautiful-bill
Branch: senate-amendments
Commit: 7a8b9c2d "Final OBBB Act - Ready for Presidential Signature"
Triggered by: push to main
Status: ❌ FAILED - Critical Issues Found
📊 ANALYSIS SUMMARY
@dmarx
dmarx / conversations.json.schema.js
Last active September 13, 2026 11:05
Schema inferred from ChatGPT conversations.json data export
{'$schema': 'http://json-schema.org/schema#',
'type': 'array',
'items': {'type': 'object',
'properties': {'mapping': {'type': 'object',
'patternProperties': {'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$': {'type': 'object',
'properties': {'id': {'type': 'string'},
'message': {'anyOf': [{'type': 'null'},
{'type': 'object',
'properties': {'id': {'type': 'string'},
'author': {'type': 'object',
import numpy as np
from openai import OpenAI
import plotly
import plotly.graph_objs as go
import umap
url = "http://localhost:80"
client = OpenAI(
https://services.math.duke.edu/~rtd/EOSP/EOSP2021.pdf - stochastic processes
https://arxiv.org/abs/2106.10165 - principles of deep learning theory
https://arxiv.org/abs/2104.13478 - geometric deep learning
https://hastie.su.domains/ElemStatLearn/printings/ESLII_print12_toc.pdf
https://ia601508.us.archive.org/35/items/collection-of-mathematics-probability-and-statistics-books/A%20First%20Course%20in%20Probability%2C%20Global%20Edition%20%28Sheldon%20Ross%29.pdf
https://www.cs.uoi.gr/~arly/courses/ml/tmp/Bishop_book.pdf - PRML, Chris Bishop
https://github.com/probml/pml2-book/releases/latest/download/book2.pdf
https://maurice-weiler.gitlab.io/cnn_book/EquivariantAndCoordinateIndependentCNNs.pdf
https://arxiv.org/abs/1504.03001 - Chaos on the interval (225pp)
https://www.ma.imperial.ac.uk/~dturaev/kuznetsov.pdf - Elements of Applied Bifurcation Theory (614pp)
@dmarx
dmarx / arxiv2markdown.py
Last active April 3, 2024 15:36
will not work on newest articles because ar5iv is not indexed live (yet). At present, two weeks lag.
# NB: ar5iv endpoint is lagged relative main arxiv
import subprocess
def convert_arxiv_url_to_markdown(arxiv_url, target_format='markdown_github'):
parts = arxiv_url.split('/')
article_id = parts[-1] if parts[-1] else parts[-2] # Account for trailing slash
article_id = article_id.replace('.pdf', '')
html_url = f'https://ar5iv.labs.arxiv.org/html/{article_id}'