Hacker News with Generative AI: Code

CodeMic: A new way to talk about code (codemic.io)
Multilspy: Building a common LSP client handtuned for all Language servers (github.com/microsoft)
This repository hosts multilspy, a library developed as part of research conducted for NeruIPS 2023 paper titled "Monitor-Guided Decoding of Code LMs with Static Analysis of Repository Context" ("Guiding Language Models of Code with Global Context using Monitors" on Arxiv).
In C some things aren't what they seem – The Craft of Coding (wordpress.com)
In C it is possible to make up things that don’t exist. For example this can lead to operators being created when they don’t exist, at least in the eyes of the programmer. Take the “–>” operator. This operator doesn’t exist, but can function as if it does. Here is an example program:
Preferring throwaway code over design docs (softwaredoug.com)
Dissecting M8trix (tilde.town)
m8trix by HellMood is one of my favorite demos. It packs a pretty cool Matrix-style effect in only 8 bytes:
ChibiHash: Small, Fast 64 bit hash function (nrk.neocities.org)
If you need a small and fast 64 bit hash function that can be copy-pasted easily, then here's one that I cooked up in an hour or so: chibihash64.h.
What does f(x) mean in C++? (biowpn.github.io)
It is universally agreed that C++ is a complex language. One reason is that its syntax is highly overloaded, meaning that the same code could mean many different things. Let’s do a simple mental exersice by considering the following code:
OpenCoder: A True Open-Source Approach to Code LLMs (medium.com)
OpenCoder is an open and reproducible code LLM.
The Art of Manually Editing Hunks (kennyballou.com)
There's a certain art to editing hunks, seemingly arcane. Hunks are blocks of changes typically found in unified diff patch files, or, more commonly today, found in Git patches.
Show HN: Super Simple CRC32 Implementation (github.com/dch82)
super simple crc32 calculator written by dch82
Ask HN: Any AI tools that help you make sense of a large repo? (ycombinator.com)
I'm trying to understand some large codebases. Current LLMs can understand code snippets but not large repositories with their complex structures.
Smallest Self Reproducing Program (ioccc-src.github.io)
Nearly every year, one or more people would submit what they claimed was the world’s smallest self reproducing program. While the sizes of these submissions varied, a quick glance would reveal that they were too big, until this entry came along.
Why does ++[[]][+[]]+[+[]] return the string "10"? (stackoverflow.com)
This is valid and returns the string "10" in JavaScript (more examples here):
Should I Use a Framework to Build an Agent? Code vs. LangGraph vs. Workflows (ycombinator.com)
LangGraph and LlamaIndex Workflows are generating a lot of buzz right now, and we wanted to see how they measure up in practice versus just writing the code.
HTTP: , FTP:, and Dict:? (shkspr.mobi)
I went for a spelunk0 through an ancient codebase a few weeks ago which contained a curious regex that I just couldn't grok1.
Show HN: Codebased, an AI Search Engine for Code (codebased.sh)
Synthetic Open Schema: code-first approach to Synthetic Monitoring (github.com/checksdev)
Code Crafters Cafe (ycombinator.com)
Pygments, a Generic Syntax Highlighter (pygments.org)
Code as Art (awwsmm.com)
Research AI model unexpectedly modified its own code (arstechnica.com)
RAG architecture for SaaS – Learnings from building an AI code assistant (thenile.dev)
Archive of Interesting Code (keithschwarz.com)
Self Documenting Code Is Bullshit (v01.io)
Four lines of code it was four lines of code (conman.org)
Ask HN: What is the best code base you ever worked on? (ycombinator.com)
Show HN: Revideo – Create Videos with Code (github.com/redotvideo)
AlphaFold3 – why did Nature publish it without its code? (nature.com)
40-Year old BASICA utility code for teaching (github.com/norton120)
We created the first open source implementation of Meta's TestGen–LLM (codium.ai)