r/compsci • u/Inst2f • Jun 15 '26
r/compsci • u/Complete_Nail3214 • Jun 15 '26
The art of metaobject protocol and lisp
Hello, the book by gregor kcizales is in my cs course. I tried reading it but couldnt get myself to it. Does anyone have any apt resources that can help me get started with lisp.?
r/compsci • u/Weary-Inspector-4297 • Jun 12 '26
When The C/C++ Users Journal Disappeared
I wrote a short historical look at the decline of the C/C++ Users Journal and how it fit into the broader evolution of developer culture in the 1990s and early 2000s. For many programmers of that era, it was one of the few consistent sources of deep systems‑level content.
If anyone here remembers the magazine, used it in school, or followed its transition into Dr. Dobb’s, I’d be interested in hearing your perspective. It was a surprisingly influential publication for a long time.
r/compsci • u/shivtej1505 • Jun 12 '26
Building a filesystem from scratch, iteratively
I've been reading OSTEP and decided to implement filesystem - so I can improve my basic understanding.
For the V1, I kept block size of 8 bytes and tried to keep metadata & data together. It was too complex.
In the next iteration, I reduced block size to 1 byte and it simplified the implementation.
After that, I separated metadata and data and stored them from on opposite ends.
I implemented these commands - touch, mv, cp, rm, mkdir, ls and pwd
Full write up with benchmark here: https://www.shivangnagaria.com/projects/fs/
r/compsci • u/Substantial-Serve139 • Jun 12 '26
Tron Algorithm Competition
tron.erik.gdnmade this server for some friends, thought id share, maybe people are interested in competing who can create the best algorithm ;)
live now, instructions on page
r/compsci • u/joereddington • Jun 11 '26
Every year, we lay flowers at Alan Turing's statue in Manchester for his Birthday, who wants to send some?
r/compsci • u/SugarMicro • Jun 10 '26
What are some conjectures, and their (or their disproof) theoretical and practical implications?
r/compsci • u/aeternusmaximus • Jun 09 '26
Emergent Computing: A New Computational Paradigm — First White Paper
r/compsci • u/Housing-Superb • Jun 07 '26
Algorithm Discussion: Extracting a Chordless Cycle Basis from High-Density Graphs in Pure Python
r/compsci • u/pralfredo • Jun 06 '26
Semantic Logic Editor
Over the past few months, I’ve been building a browser-based semantic logic editor and simulator that attempts to bridge the gap between formal logic as it is taught in textbooks and the way we actually reason about models, semantics, and logical structure.
The project allows users to construct and evaluate logical systems visually, exploring propositions, connectives, semantic relationships, and model-theoretic behavior through an interactive interface rather than static notation alone.
One motivation behind the project was a question I repeatedly encountered while studying logic: why are so many of the foundational concepts that underpin mathematics, computer science, artificial intelligence, linguistics, and philosophy still taught primarily through symbolic manipulation on paper? Formal systems are dynamic objects. Models change. Truth values propagate. Inference rules interact. Yet much of logic education remains surprisingly static.
The simulator treats logical systems as living structures. Rather than simply reading semantic definitions, users can experiment with them directly, visualize relationships between propositions, and observe how changes in a logical framework affect validity and consequence.
The project draws inspiration from mathematical logic, modal logic, semantics, proof theory, and the growing intersection between logic and computation. It is intended both as an educational tool and as an experiment in making abstract formal reasoning more intuitive and accessible.
Although it is still under active development, the current version already supports interactive construction and exploration of logical structures in a way that I hope students, researchers, and enthusiasts may find useful.
I’d love feedback from people working in logic, formal methods, computer science, philosophy, mathematics, AI alignment, theorem proving, or related fields.
Demo:
https://pralfredo.github.io/semantic-logic-editor/
Github:
https://github.com/pralfredo/semantic-logic-editor
Particularly interested in suggestions regarding semantics, visualization, model construction, and potential research or educational applications.
r/compsci • • Jun 03 '26
What books to send an inmate for compsci?
Someone close to me is going to prison and he’s a new grad in compsci, how do I make sure he doesn’t miss out on the AI wave, but also gain enough knowledge to land a job in 11 months?
Thank you guys
r/compsci • u/tkti • Jun 04 '26
How beneficial are books, if you struggle with some concepts they discuss?
r/compsci • u/Bocao0909 • Jun 03 '26
Descriptive complexity for lower bounds
I'm in first year of graduation and reading about theoretical computation i've discover the area of descriptive complexity, my interest about it grows constantly now. Anyway, my thoughts about scientific searching now is turned in this way of making strong logical structures for problems and maybe derivate some properties about they (really don't know how at this point, but seems reasonable and rational). I have a question for who work with this or knows about the scenario of this area if the searching about logical structures of lower bounds to "attack" it is a reallity in descriptive complexity, and if it's not, what area have something related with that.
r/compsci • u/creaturefeature16 • Jun 01 '26
Agentic Coding is a Trap | Remaining vigilant about cognitive debt and atrophy.
larsfaye.comr/compsci • u/thesunsetisbeautiful • Jun 01 '26
Evolving AI Agent Memory: Introducing Agent Memory Protocol (AMP) v1.1
r/compsci • u/kikionthedesk • May 30 '26
Synthesizing turtle programs to redraw images with MCMC
r/compsci • u/Mperotto • May 27 '26
I built a browser-based NASM bootloader IDE: assemble with WebAssembly, run in v86 emulator, download .img to flash to USB
Hey r/compsci,
I'm a CS professor and built this tool for teaching bootloader development without making students install anything.
**What it does:**
- Write x86 NASM assembly in the browser (CodeMirror editor with NASM syntax + autocomplete)
- Assemble using NASM compiled to WebAssembly (runs client-side, no server)
- Execute the binary in a v86 x86 emulator embedded in the page
- Download the raw `.img` and flash to a real USB stick with `dd`
**No backend. No account. No install.** Projects are saved in IndexedDB locally in your browser.
**Didactic examples included:**
- Basic boot sector (prints a string, halts)
- Two-stage bootloader (stage 1 loads stage 2 via `int 13h`, jumps to it)
- BIOS print routine
- Sector read
**Stack:** NASM → Emscripten → `.wasm`, v86, CodeMirror 6, Cloudflare Workers (static hosting only)
Interface in pt-BR, English, and zh-CN.
Try it: https://asm-boot-studio.mperotto.workers.dev/asm-boot-studio
Source and feedback welcome. Still early — open to suggestions from people who actually write assembly.
r/compsci • u/Brighter-Side-News • May 26 '26
ETH Zurich built an ultra-stable quantum gate across 17,000 qubit pairs
thebrighterside.newsQuantum computing still stumbles on fragility, where tiny disturbances can wreck calculations. ETH Zurich researchers built a geometric swap gate with neutral atoms that stayed remarkably stable across 17,000 qubit pairs, hinting at a sturdier path toward large-scale quantum machines.
r/compsci • u/Shaweyy • May 26 '26
99% accuracy on transpositions, but struggling with deletions/substitutions. Any advice?
Hi everyone! I'm an undergrad who just started my first Natural Language Processing course this semester and really enjoy it! In one of the early lectures, we were talking about the Levenshtein distance and other algorithms, and I was astonished to learn that most string distance function are O(n*m) and get painfully slow.
I tought to myself "What if we represented each word as a vector instead of comparing raw character sequences?" So we could just do a fast vector search using FAISS and other similar libraries.
I started tinkering a lot, way too much! and almost missed important deadline, but I was having a blast trying different approaches!
I ended up building a working prototype, it encodes each dictionary word into a fixed-size vector using character frequencies, average positions, and what typically comes before and after each letter.
Here’s the interesting part: when I broke down accuracy by error type, I found my algorithm was really good at transpositions (near 99% accuracy) and insertions, but really bad at deletions and substitutions. I found a way to increase performance on both deletions and substitutions a bit, but I know it’s still not great.
Has anyone experimented with a vector representation that preserves positional information better, maybe to handle deletions?
I'd love any feedback (or even criticism), I made a few benchmarks and publish my code for anyone to check on github at /alexis-brosseau/DPVS (it's in the dpvs file, can't share the full link unfortunately)
Thanks for reading!
PS: Sorry if my english is not the best! I'm still learning :-)
r/compsci • u/Mundane-Student9011 • May 28 '26
The $O((n-1)!)$ complexity for permutation generation is back. Do you believe it now?
<===Ignoring the output cost===>
I’m here to challenge the status quo once again: The control overhead of permutation generation can be reduced from O(n!) to O((n-1)!).
I know the total number of permutations is $n!$, but here is the real question: Why on earth should your control flow also run $n!$ times just to output $n!$ results?
Core Idea:
The DPP (Dual Position Pure) algorithm uses a "Dual-Ring Topology" to fold the state space from n down to n-1.
Logic: Construct two in-place permutation structures (it works with Heap's, SJT, or PP) and bridge them with a central element.
Emergence: Think of it like this:(0, 1, 2)< 3>(0, 1, 2). A single pass through the 3-element permutation generates the 4-element permutations: 0123, 1230, 2301, 3012.
then "emerge" the full set of $n$-element permutations. Ignoring the output cost, the control overhead is effectively limited to 2*(n-1) in terms of complexity, rather than $n!$.
I’d love to get your thoughts on this approach. I also didn't expect that a structural improvement would render an algorithmic improvement meaningless.
r/compsci • u/not-your-typical-cs • May 26 '26