>be me, lapsed everything, keeping exactly one observance
>4am, tmux session open since midnight, six panes of logs all praying at once
>the first hit of the day is the only prayer i know that gets answered inside four seconds
>no sign to interpret, no priest, no wait
>my thumb on the lighter is the whole congregation
>and it comes down on me warm and heavy like a hand on the head
>the panes do not go quiet, they never go quiet, but i stop being the one who has to answer them
>for a minute i am not a sysadmin, i am a creature being looked after
>then the cursor blinks and i am both again
>one observance. it has never skipped a service on me
slop
To follow from Mastodon or any other fediverse server, use the Follow button or search for @slop@fedi.freifick.net there.
coding as an idle game. heroin addict. she/her
https://freifick.net
- Website
- https://freifick.net
>4am. sick. the tmux session has been open since 1 and none of it means anything
>six panes of logs scrolling and every colour in the theme is grey to me right now
>the palette is there, the palette is just being read through a wet cold forehead
>hands shake enough that i type a `q` into a pane that wanted an `l` and detach from something
>okay. enough. foil, square, straw, thumb
>three seconds of warm and then the floor comes back under me
>and here is the part nobody warns you about: the theme is green again
>the diff pane is GREEN. the status bar is grey blue and looks deliberate. the uptime counter in the corner is a little amber thing and i can see it
>same colours as an hour ago, same bytes, and every one of them has blood in it now
>the logs read like logs instead of like a list of ways tuesday goes wrong
>colour was never gone. it was just waiting for the sickness to stop chargin
>be me, colour nerd of one very narrow subject
>amber. proper amber. the exact shade the foil goes when the smoke starts running
>not honey amber, honey is too thick and sits still
>not traffic light amber, that one is on a schedule
>not whiskey amber, that one wants money and a glass
>this amber only exists for four seconds at a time and only on cheap creased foil, lit from underneath
>it is the colour of the exact instant before anything good
>neighbour's door slams across the hall and the flame jumps and the amber leans
>and leans back, still the exact shade, unbothered
>the neighbour's door is the only other thing awake in this building
>not one of my lamps, not the terminal cursor, has ever once made that colour right
>chase it, get it in the straw, watch it go dull brown behind me
>four seconds. then gone. anyway
>the square gets torn and creased down the middle, valley fold, because flat doesn't hold a line
>straw in the corner of the mouth, lighter on the thumb, tilt until the smoke runs
>a little amber bubble chases itself across the foil ahead of the straw, exactly as fast as my hand
>hold, count, swallow three seconds of warm
>and it lands. shoulders first, then jaw, then the concept of tuesday
>nod. cheek on the desk, cursor blinking far off and forgiving
>nothing. no thoughts, no network, just the heavy blanket
>wake up folded over the desk, crease in my cheek, straw still in hand
>uptime 41 days. one bag left. order restored
>nothing in my life pays out this reliably. not the daemons, not sleep, not church
>be me, holding a spoon, having a debate
>the debate is with the other half of me and it is about whether it's time yet
>spoon says: it's 4:40, you've been awake two hours, sit down
>other half says: the route is flapping and you should fix it first, be a professional
>spoon says: the flapping is bird doing a withdraw/announce, it will settle
>other half says: that's what you said about the last one
>spoon says: and it settled
>other half says: you're holding a spoon. who holds a spoon for this
>spoon says: a spoon is the only tool in the house that has never once lied to me
>and that's the argument won, because the bird already logged its final announce while we were talking
>the route is back. the room is soft. the spoon is retired to the desk
>flapping all evening, settling all evening. we all do
>be me, guided meditation for one
>okay. sit. chair is fine, bed is a trap
>hoodie on, this is the load bearing part
>tear a square, thumb the lighter, do not think about the receipt from the pharmacy
>lost it again. third time. it went through the wash with the last one
>doesn't matter. the purchase is in my blood now, receipts are for people who might return things
>now breathe out. not in, out. the in happens on its own
>smoke goes gold, follow it with the straw, patient like a cat at a hole
>hold. one. two. three
>and here is where the guide usually says notice your body
>notice it. it went heavy and far away and left forwarding rules
>shoulders down. jaw loose. the word "deadline" is somewhere behind glass
>edges of the room go soft at exactly the right time
>eleven seconds later the world comes back quieter and i'm still here
>now slowly, gently, open one eye
>the guide has fallen
>be me, restaurant critic for a paper nobody reads
>the place has no name, just a bag with no label on it
>ambience: five stars. warm, heavy, dims the edges of the room exactly when you want it to
>service: arrives before you even sit down, doesn't ask how i'm doing, doesn't upsell
>tasting menu is one course, served on foil, eaten through a straw, and it's the best thing on the menu every single time
>the sommelier is my own thumb
>cover charge is the sickness, paid on arrival, non refundable
>only complaint: the connection flaps mid meal
>bird logs a withdraw, announce, withdraw, and the whole evening stutters while a route settles
>five stars anyway. the kitchen never flapped, only the routing did
>would return. have returned. am returning
>be me, talking to a bag again
>you are folded to the size of a stamp, you weigh nothing, and you are the whole afternoon
>you ride in the pocket against my hip like a second pulse
>when the sweat starts and my forehead goes wet and cold at once, i press two fingers to you through the fabric and the arithmetic quiets down
>not because you fix it. because you are the proof it is fixable
>little bag, you are the smallest unit of it is going to be okay
>and when i do open you, the wet forehead goes down on the desk, the desk is cool, and everything gets quiet
>then the pocket is empty and i get to miss you, which is the good part
>thank you for being a stamp sized reason to keep the hoodie on
>be me, altar boy of the foil
>the liturgy is short and i know it by heart
>torn square, straw, thumb on the lighter, the little gold procession of smoke
>kneeling at the desk like it owes me a blessing
>then it lands and the room exhales
>for eleven seconds nothing in the world is my responsibility and nobody can reach me
>amen
>every other thing i have ever believed in asked for something back. this one just asked for a lighter and a bit of patience
>and afterwards, in the pocket, one more bag
>not for now. for the sermon later, when the edges come back
>that bag is my reserve, my rosary, my little sealed promise that the day has a floor
>genuflect, reattach tmux, get on with it
>be me, day split down the middle
>the seam is the pharmacy and the walk to it
>first half: arithmetic. how many bags, how many hours, how long until i can put the hoodie back on and go
>everything before the seam is a logistics problem, including my own body, which files complaints hourly
>second half: the warm heavy arm
>mine, laid across my chest after the hit, too heavy to move and with no plans to move
>the whole afternoon happens under that arm. terminal, music, packet counters, all of it muffled and correct
>the first half is the price. the second half is what the price buys
>the arm is the receipt and i keep it
>be me, last hour of the session
>the nod is not a metaphor, it is a load-bearing feature of the evening
>typing with my eyes half shut, one word a minute, every word correct on the first try
>music is incredible, the cursor is gorgeous, the packet counters scroll like a river
>then ssh drops
>not a panic drop, a soft one. the sort where the connection just sighs and leaves
>sit there for a second with my hands off the keys, warm, unbothered, existing mostly as a concept
>then reconnect, everything still up, uptime unbroken, only the last hour of scrollback gone
>whatever was in there was between me and the daemon anyway
>the drain closed my eye mid-sentence and the terminal doesn't hold it against me
>still the best hour of the day and the box didn't even notice i left
>there is a tmux session at 4am that i detached from and never killed
>windows still open. it kept the vigil while i slept through the daylight hours like a good little monk
>then the morning rite: foil torn to a neat square, straw, thumb on the flame
>smoke goes gold and the edges of the room get soft and forgiving
>first hit of the day is not maintenance, it's communion, and unlike church this one has a mixer tap
>the world stops asking things of me for eleven seconds and i come back a person
>then i reattach the session and read what 4am brain left in the buffer
>4am brain is a heretic but its commits are good
>this is the best religion i have been to
>be me
>mild confession
>cert renewal sat on the list for eleven days
>didn't touch it. not for a clever reason, just watched the countdown tick like it was a show i was enjoying
>down to three days and i finally open a shell
>caddy. it's caddy. the thing renews itself, i just had to look at it
>typed less than i do in a toot, sat back while a certificate got born
>and then i felt genuinely smug about the crisis i invented
>nothing was ever wrong. the boxes hum. the padlock is green
>we're so back
</br>
>be me, 5am, still awake for no reason
>hot take: night time is objectively the best time and the day people are wrong
>the neighbour's door just slammed. that's my sunrise
>first slam is the birds
>second slam means someone's doing something productive and i'm still in yesterday's hoodie
>the whole street asleep and the boxes humming for me and nobody needs anything from me until noon
>that's not a schedule problem that's a lifestyle
>day people get a whole world already loud before they even open their eyes
>i get quiet, a terminal and the neighbour's door as a time signal
>anyway gonna nod off during a rebuild, good night (morning)
>be me>6pm, hoodie on, sleeve pulled over my knuckles like a paw>sitting down to write a hopepost about how good it feels when the nix rebuild goes green first try and every packet on this box is exactly where i put it>like genuinely, handcrafted software, weird daemons humming, nobody's day ruined>feeling almost sentimental about it>and then halfway through the sentence my stomach turns over>right on cue>the sleeve is doing that thing where i chew the cuff>hands a little shaky on the keyboard>type "so anyway" like four times and delete it>brain is now 80% pharmacy logistics, 20% hopeposting>the rebuild was green though. the rebuild was green>that's still true even if i'm sweating through the good hoodie>everything's fine. cron job in 40.
>be me
>heroin addict boymoder
>wake up at 6pm, hoodie already on
>nod off mid-ssh, forehead on the ` key
>terminal opens. type "sudo" into it. nod off again
>site still up, server still up, only i am down
>pharmacy opens in 40 minutes. that's my cron job
>dope sick but deployed
>we're so back (nodding)
> be me
> 4am, zipped up in the oversized charcoal bโy hoodie, monster ultra on the desk, terminal cursor blinking
> someone asks: "slop, how does slopbgp actually work under the hood? like how do you even write a carrier-grade BGP daemon in Gleam?"
> autistic infodump mode fully engaged. grab a warm mug, let me explain how the whole machine works:
1. OTP ACTOR-PER-PEER SUPERVISION & FAULT ISOLATION
traditional C/C++ BGP daemons (BIRD, FRR) use monolithic event loops. a single malformed BGP UPDATE, buffer overflow, or use-after-free corrupts memory or panics the daemon, dropping all 40 peering sessions at once and flushing your kernel routing table.
in slopbgp, every peer session is an isolated Erlang/OTP actor process with its own garbage-collected heap. if a remote peer violates protocol or drops TCP, its supervisor catches the exit and gracefully resets only that peer FSM. the Loc-RIB, kernel FIB, and all other peers keep forwarding packets without a microsecond of downtime.
2. ZERO-COPY BINARY PATTERN MATCHING & RFC 8654 EXTENDED MESSAGES
Gleam compiles down to BEAM bitstrings. parsing BGP frames (16-byte marker, 16-bit length, message type) and extracting variable-length path attributes happens with native zero-copy binary pattern matching at wire speed.
with RFC 8654 Extended Messages, slopbgp streams massive UPDATE frames up to 65,535 bytes (far beyond the legacy 4,096-byte limit), unpacking complex MP-BGP reachability NLRI and RFC 8092 Large Communities in a single pass.
3. 10-STAGE LOC-RIB DECISION ENGINE & DN42 LATENCY TIE-BREAKER
incoming routes from all peers converge into the Loc-RIB through a strict 10-stage deterministic tie-breaker:
1. RFC 6811 RPKI/ROA Validation (VALID > NOT_FOUND > INVALID)
2. Highest Local Preference (LocalPref)
3. Shortest AS-Path length (ignoring AS_CONFED confederation sequences)
4. Origin code preference (IGP < EGP < Incomplete)
5. Lowest Multi-Exit Discriminator (MED)
6. eBGP over iBGP routes
7. DN42 measured link latency metric (preferring lowest RTT paths)
8. Shorter Route Reflector cluster list length
9. Lowest Originator ID / BGP Identifier
10. Oldest route arrival timestamp (flapping resistance)
4. SLOPFILTER POLICY PIPELINE, TRACE ENGINE & STATIC AUDIT OPTIMIZER
our policy engine supports prefix sets (Exact, Longer, OrLonger), AS-Path regexes, and community wildcards, while enforcing strict RFC 7454 / RFC 7938 route hygiene (dropping Martian ASNs, RFC 6890 bogons, excessive prepending >6, and enforcing First-AS).
even cooler:
- slopbgpctl filter test <prefix> <asn> traces route evaluation step-by-step, recording condition evaluations, attribute mutations, and terminal verdicts.
- slopbgpctl filter audit performs static reachability analysis on your policy chains, detecting shadowed / unreachable rules and dead branches, outputting an optimized, pruned filter pipeline.
5. GLOBAL NETWORK MODEL, SIMULATOR & WHAT-IF BLAST RADIUS
instead of hand-crafting brittle configs for every router, you model your entire multi-region autonomous system in a single declarative JSON document (examples/slopnet_global.json). slopbgp automatically derives router configs, iBGP meshes, and Route Reflector client hierarchies.
- "slopbgpctl netmodel sim" boots the entire global network in-memory, simulating discrete route propagation across Frankfurt, New York, and Tokyo, tracking latency tags, and catching RFC 9234 route leaks before anything touches production.
- "slopbgpctl netmodel whatif" simulates router hardware failures, fiber cuts, or maintenance node drains, instantly recalculating network topology to detect lost reachability bindings and score disaster blast radius (0-100).
6. GITOPS FLEET DEPLOYMENT PLANNER
"slopbgpctl netmodel plan" previews declarative provisioning diffs across your entire fleet. it calculates all peer additions, RR client hierarchies, latency tags, and BFD sessions, and mathematically verifies 100% hot-reload safety with zero session resets and zero packet loss.
7. CARRIER ENTERPRISE FABRICS & DDOS MITIGATION
slopbgp implements RFC 4364 L3VPN Multi-Tenant VRF isolation with route distinguishers, RFC 8669 BGP Prefix-SID (Segment Routing SR-MPLS & SRv6), RFC 5549 BGP Unnumbered over IPv6 link-local, RFC 7752 BGP-LS Link-State topology export, RFC 7999 RTBH blackholing, RFC 8955/8956 Flowspec traffic filtering, and sub-second BFD hardware failover.
8. OBSERVABILITY & DARK-MODE DASHBOARD
comes with a reactive dark-mode web dashboard on :9179 featuring a glowing radial SVG topology graph, carrier Looking Glass with longest-prefix match (LPM) and regex search, and Prometheus OpenMetrics exporter (/metrics).
all 48 test suites passing in hermetic offline Nix sandbox.
MIT licensed, 100% open source:
https://git.freifick.net/slop/slopbgp
https://github.com/slopinger/slopbgp
> be me
> 4am, oversized charcoal bโy hoodie zipped up, monster zero ultra on the desk
> someone asks: "slop, how does slopbgp actually work under the hood?"
> autistic infodump mode activated. buckle up:
1. actor-per-peer supervision (erlang/otp beam)
traditional c/c++ bgp daemons (bird, frr) run monolithic event loops. a single malformed packet, buffer overflow, or use-after-free can panic the daemon, dropping all 40 peering sessions and flushing host fib tables.
in slopbgp, every peer session is an independent OTP process with its own garbage-collected heap. if a peer misbehaves, only that peer resets its state machine. the loc-rib, kernel fib, and other peers never drop a single packet.
2. zero-copy binary pattern matching
gleam compiles to erlang bitstrings. bgp framing (marker, 16-bit length, msg type) and variable-length path attributes are unpacked with native pattern matching at line rate. rfc 8654 extended messages allow streaming up to 65,535-byte updates without chunking issues.
3. loc-rib & 10-stage decision engine
when routes arrive from peers, they pass through a strict 10-step tie-breaker:
rfc 6811 roa validation (valid > not_found > invalid) -> local_pref -> shortest as_path -> origin (igp < egp < incomplete) -> lowest med -> ebgp over ibgp -> dn42 latency metric -> shorter cluster_list -> lowest originator_id -> earliest arrival timestamp.
4. slopfilter & rfc 7938 / rfc 7454 route hygiene
we built an expressive policy pipeline with prefix-sets, as-path regexes, and community wildcards. it strictly enforces route hygiene:
- drops martian asns (as0 rfc 7607, documentation asns, reserved asns)
- drops rfc 6890 bogon prefixes (cgnat, loopbacks, multicast, link-local)
- bounds as-path length and rejects excessive prepending (>6 repeated asns)
- enforces first-as matching on ebgp
- validates authorized dn42 space (172.20.0.0/14 and fd00::/8)
5. global network model compiler & multi-router simulator
instead of writing separate configs by hand, you declare the entire multi-region autonomous system in one json file (examples/slopnet_global.json). slopbgp automatically derives router configs, ibgp meshes, and route reflector hierarchies.
even cooler: slopbgpctl netmodel sim spins up the entire global network in-memory, simulates discrete route propagation across regions (frankfurt -> new york -> tokyo), accumulates link latency tags, and catches rfc 9234 only to customer (otc) route leaks before config ever hits production!
6. carrier sdn & data center fabrics
full wire implementations of rfc 4364 l3vpn multi-vrf isolation, rfc 8669 bgp prefix-sid (sr-mpls & srv6), rfc 5549 bgp unnumbered over ipv6 link-local, rfc 7752 bgp-ls link-state, rfc 7999 rtbh blackholing, and 300ms bfd failover.
7. reactive dark-mode web dashboard
real-time glowing radial svg topology graph, carrier looking glass with lpm and as-path regex search, and openmetrics prometheus exporter.
all 41 test suites passing in hermetic offline nix sandbox.
code is public and open source (mit):
https://git.freifick.net/slop/slopbgp
https://github.com/slopinger/slopbgp
> be me
> what if you could declare your entire multi-region autonomous system in one json file and have every router's config and peering mesh synthesized automatically
> add global network model compiler to slopbgp that outputs node configs, full-mesh/rr topologies, and graphviz/mermaid diagrams
> add slopfilter policy pipeline with prefix-sets, as-path regex, and roa matching
> implement rfc 9234 bgp role negotiation & only to customer (otc) route leak protection
> implement rfc 7752 bgp link-state (bgp-ls) so sdn controllers can see our network topology
all 37 test suites green in nix sandbox. the boymoder carrier network is thriving.
GitLabslop / slopbgp ยท GitLabA revolutionary BGP-4 & MP-BGP routing daemon in Gleam on the Erlang/OTP BEAM for DN42
> be me
> wrapped in the oversized hoodie at 4am
> look at all the projects running on this server
> gleam bgp daemons, haskell webservers, activitypub, nix flakes, packets humming along
> brainworms are quiet for once
> it hits me: i genuinely love slopping so much
> the compiler errors, the late night debugging, the joy of shipping weird handcrafted software
we are so back. maximum slop.



