The best Hacker News stories from Show from the past day
Latest posts:
Show HN: I used Fable to make an open source 80s-style Skyrim browser game
Inspired by both Skyrim and the old Sierra games like King's Quest<p>Features:<p>- Playable in the browser on desktop and mobile<p>- Play by clicking, tapping, number keys, or typing<p>- Original code-drawn pixel art and synthesised music<p>- Day and night, snow, and a thaw<p>- Real-time combat with timed parries<p>- Six skills that rise by use, with perks<p>- Five spells and four runewords<p>- Trading, a forge, and repeatable paid work<p>- Weight limit for what you carry, and a storage chest<p>- Map, journal, character sheet, and deeds list<p>- Two-part main story with two endings<p>- Eleven side stories<p>- Valley with eight fable-made places and interiors<p>- Endlessly generated open country beyond the valley<p>- Eighteen fable-written scenes to find in the wild<p>- Three far landmarks<p>- Walls of rock with passes guarded by enemies<p>- Vaults under ruined towers<p>- Autosave plus three manual slots<p>- No runtime dependencies<p>Limitations:<p>- Story inconsistencies<p>- Mismatches between story/description and visual state<p>- I'm sure plenty more
Show HN: Hearth 64 – A cozy fireplace screensaver ROM for real N64 hardware
Show HN: Type-C – variants, options, generics and pattern matching for C
I love C, but often using it for parsing, tree walking or complex error handling leads to spaghetti code.<p>Of course there is Swift, Ocaml or Rust for situations like that, but then you are either forced to convert the entire codebase, or add a runtime library or go through the pain of bridging C to the new language. Sometimes there are no compilers for the target architecture too when you are working on embedded stuff.<p>This is where Type-C comes in. It works as a preprocessor like TypeScript and calls the original C driver behind the scenes. Your code stays normal C for the most part, so you can predict how the code will be laid out. TypeC is a full superset of C11, so any C11 code compiles as is.<p>Want to use TypeC just for one file? Rename to .tc and use the features you want, the rest of the codebase stays the same. This works for kernel or baremetal code too as there is no runtime or extra libararies.<p>There are examples of TypeC code as well as real-world tests of converting existing code to TypeC on the GitHub page.<p>This is how the code looks like for an expression evaluator:
type expr =
| Num(int value)
| Add(const expr <i>l, const expr </i>r)
| Mul(const expr <i>l, const expr </i>r)
| Div(const expr <i>l, const expr </i>r);<p><pre><code> static result(int, eval_error)
eval(const expr *e)
{
int d;
match (*e) {
case Num(value):
return (Ok(value));
case Add(l, r):
return (fit((long long)try eval(l) + try eval(r)));
case Mul(l, r):
return (fit((long long)try eval(l) * try eval(r)));
case Div(l, r):
d = try eval(r);
if (d == 0)
return (Err(DivByZero));
return (fit((long long)try eval(l) / d));
}
}
% typec -std=c11 -Wall -Wextra eval.tc
$ ./a.out
14
division by zero
</code></pre>
Would love to hear your thoughts and feedback!
Show HN: News Blocklist – a DNS blocklist of 14k news and current-affairs sites
A little while ago I built (vibed) a tiny Mac app to block websites via the hosts file. By default it imported some fairly popular adult filtering lists as well as social media etc.<p>It has been very effective; it would only take a few moments to switch off but it is enough of an interruption to often make me re-evaluate and proceed on.<p>I have a particular distain for current affairs and have found "the news" addictive for years, clearly at the detriment to my own mental health and sanity.<p>So, in a similar vein to the other lists I found, I have created a fairly comprehensive list of news sites that can be imported/used as you see fit.<p>To state the obvious, the absolute vast majority of the work was done via Claude and a small army of sub-agents.
Show HN: Hermit CRM – Free open-source CRM for solopreneurs
I was about to keep track of my clients and prospecting in Google Sheets for my solopreneur business, when I remembered that's exactly what I advise my clients not to do.<p>Created Hermit CRM, an open source CRM for 1 person. Hermit helps to keep track of deals and prospecting. The platform is built for AI by storing the data in Markdown files in git, stored locally and can be accessed with a web app, CLI or MCP. No telemetry on the app. Building in public, even the website stats are public as well.<p>It’s macOS first. Linux is less tested, and Windows isn’t supported.<p>Features I'm proud of:
- import somebody from LinkedIn into to the CRM with 1 click
- adding a LinkedIn convo to the CRM with 1 click.
Both work without LinkedIn or CRM subs.<p>Don't like what you see? Fork the Hermit with your AI.<p>Would love to learn how you're using Hermit and where it doesn't fit your workflows.
Show HN: Drive around my village in 3D
So this started out just over a week ago, could I drive around my village in my old car on the web, and its expanded into a massive map, with races, events, different cars and multiplayer.<p>I'm a web/app guy, backend guy, and yes I build it with Claude.<p>I know I shouldn't be astounded by what these Ai agents can do as of today, but here I am still amazed.<p>I've even got support from a Sim racing guy and built a web driver so he gets full force feedback for his rig, and it works.<p>Anyway, just a bit of fun!<p>Uses LIDAR data from the UK Gov + OpenStreetMap data to build the world. Technically, I could do the whole of England/Wales...but the data storage would be huge!
Show HN: Compile the same source for GPUs and CPUs
I'm writing a language called xc and its compiler, xcc for the last 6 months or so (full disclosure: with a lot of help from Claude). I've finally got version 1 (actually v1.0.1) out, for Linux (x86-64 and arm64, including the Pi 5), macOS and Windows.<p>The idea: you write an ordinary loop, the compiler works out whether it can run in parallel, and it emits both a multi-core CPU version and GPU kernels (MSL, PTX, SPIR-V or WGSL, all generated by xcc itself without needing an SDK installed).<p>At run time the program measures each block on that machine and keeps the faster placement.<p>Examples:<p>- On an M3 Max a Mandelbrot block takes 13.7 ms on all 16 cores and 1.3 ms on the GPU<p>- On a Ryzen 9955HX's 2-CU integrated Radeon the GPU loses to the 32 CPU threads, so it stays on the CPU.<p>The compiler also reads plain old C via clang's front end and does the same thing to C loops, with no pragmas. Comparing xcc to OpenMP for both gcc and clang (with the helping hand of "#pragma omp parallel for" gives (times in ms):<p><pre><code> xcc gcc+omp clang+omp
mandel_deep 371 2170 2231
mandelbrot 2.45 12.2 12.8
md5 9.39 16.1 13.4
md5_mask 8.17 12.1 13.4
nbody 0.45 1.29 9.92
perlin 5.87 4.38 7.05
saxpy 2.26 2.18 2.32
</code></pre>
Geometric mean: xcc is 2.1x faster than GCC+OpenMP and 3.0x faster than clang+OpenMP.<p>All the builds are checked to make sure they give the same result - no point having a benchmark that doesn't produce the same result! xcc has a notable win for nbody, because its vectorisation is better (across bodies) but perlin has been a bit of a bugbear throughout the leading-up-to-v1 timespan.<p>Platform-specific binary tarballs, the sources, OpenMP versions and method are on the site (linked from github), and there are Phoronix Test Suite profiles if you'd like to run them yourself.<p>It's only just made v1 so there's a few rough edges: C++ through clang is in-progress (but not official yet), and the Pi 5's GPU is slow. Not sure if that's the Pi or the code yet...<p>There's more to the language but I don't want this to be an essay! The real, honest-to-$deity cool thing is the <i>automatic</i> parallelising of standard C/xc loops and being able to run that code on the GPU with <i>no boilerplate</i> - "ARC for Algorithms" (what Objective-C's ARC did for memory management), it "just works".<p>Very keen to get feedback and fix any gaps. I think it's generally useful right now, but it is "v1" - Bug reports welcome as GitHub issues...
Show HN: The Riemann Proof Handbook
Show HN: I built a game where you are an LLM's subagent
Show HN: I built a game where you are an LLM's subagent
Show HN: LZ0 -An asymmetric LZ compressor with ultra minimal, 0-alloc decoder
Show HN: I made a PS1 style racing game
Hey folks, was bored with work this week so with the help of chatgpt I built a ps1 style retro racing game.<p>Let me know what you think!
Show HN: I made a PS1 style racing game
Hey folks, was bored with work this week so with the help of chatgpt I built a ps1 style retro racing game.<p>Let me know what you think!
Show HN: An ASCII cell aquarium for your terminal
I made a virtual microscope slide for your terminal (inspired by asciiquarium and cbonsai). Cells divide, immune cells chase bacteria, and bacteriophages occasionally cause trouble. You can try it with:<p>$ pipx install terminal-cells<p>$ cells<p>I'd appreciate any suggestions for additional animations to add, especially entities or events that would be visually distinct given the graphical limitations. Any cell biologists in the house?
Show HN: An ASCII cell aquarium for your terminal
I made a virtual microscope slide for your terminal (inspired by asciiquarium and cbonsai). Cells divide, immune cells chase bacteria, and bacteriophages occasionally cause trouble. You can try it with:<p>$ pipx install terminal-cells<p>$ cells<p>I'd appreciate any suggestions for additional animations to add, especially entities or events that would be visually distinct given the graphical limitations. Any cell biologists in the house?
Show HN: An ASCII cell aquarium for your terminal
I made a virtual microscope slide for your terminal (inspired by asciiquarium and cbonsai). Cells divide, immune cells chase bacteria, and bacteriophages occasionally cause trouble. You can try it with:<p>$ pipx install terminal-cells<p>$ cells<p>I'd appreciate any suggestions for additional animations to add, especially entities or events that would be visually distinct given the graphical limitations. Any cell biologists in the house?
Show HN: An API for word timestamps from speech, 75% within 20ms
Hey HN, we're Yarn (W24) and we make a video editing app for startups, and we built Quebec (<a href="https://quebec.yarn.so">https://quebec.yarn.so</a>), an API that gives you accurate word timestamps from speech. We needed it because cutting a word even 50ms off from its true timing can ruin talking head footage (examples in the write up).<p>Accurate word timestamps usually come from a forced aligner, which takes the speech audio and a transcript and works out exactly when each word starts and ends. We weren't satisfied with the accuracy of Montreal Forced Aligner (MFA) or new models like ElevenLabs Cue (<a href="https://elevenlabs.io/blog/cue-aligner" rel="nofollow">https://elevenlabs.io/blog/cue-aligner</a>). Giving LLMs access to a waveform/spectrogram didn't help much either.<p>So we built our own. There are two particularly interesting parts:
- We wrote our own decoder around MFA's acoustic model that only lets each word land within 200ms of the rough timings. That made search small enough to solve exactly, so we don't need to use MFA's beam search.
- We added a small CNN, built on the first two layers of Whisper Tiny, that nudges each word boundary by up to 50ms. We couldn't find enough hand-labelled speech that allowed for commercial use, so we had Gemini label our own (17k word boundaries). It took a couple of hours and cost under $200. A net trained on Gemini's labels scored the same as one trained on human labels (73.9% vs. 74%).<p>One way to measure accuracy is % of word boundaries within 20ms of hand labels. Here are the results on Buckeye (hand-labelled American speech that we didn't train on):<p>- Quebec 75%<p>- MFA 61%<p>- ElevenLabs Cue 30%<p>If you want to try it, it's free until tomorrow night.
You can point your agent at our docs at <a href="https://quebec.yarn.so">https://quebec.yarn.so</a>, and send audio on its own or with your own transcript. After that, it costs $0.32 per hour with no signup (minimum $10 top-up). We serve it at cost. Caveats: only tested in English and slower than ElevenLabs.<p>Let us know if Quebec works well for you, and send us any samples that work badly (you can email support at yarn dot so). Also let us know if you've built or found a better aligner. In theory we would just switch to a better aligner, although we would probably just push a bit harder to make ours better.<p>Thanks!<p>Jasper
Show HN: OpenComputer – an open source alternative to Devin
Hi HN!<p>Utpal here, I'm one of the founders of OpenComputer.<p>OpenComputer is an open source cloud coding agent for teams that can run in your own cloud account (AWS, GCP, Azure).<p>We run the agent harness and the sandbox on the same durable VM (architecture in the docs [1]). First commit lands in 24s; the alternatives we benchmarked took 53-72s (benchmarks below [2]).<p>Two other choices:<p>- One VM per team, scalable horizontally. Sessions are isolated in git worktrees.
- Session files are backed up to a repo after every turn, so any session can resume on another VM.<p>We noticed that past ~640 session-hours a month, one always-on 4 vCPU VM is cheaper than per-session E2B sandboxes, for example. So at scale, this setup would not only be faster than current SOTA coding agents, but also more cost-efficient.<p>Feel free to try via cloud for free [4] or self host. We would love any and all feedback, and happy to answer any questions! Full demo below [3].<p>[1]: <a href="https://docs.opencomputer.dev/getting-started/architecture" rel="nofollow">https://docs.opencomputer.dev/getting-started/architecture</a>
[2]: <a href="https://opencomputer.dev/blog/cloud-agents-as-fast-as-local/" rel="nofollow">https://opencomputer.dev/blog/cloud-agents-as-fast-as-local/</a>
[3]: <a href="https://x.com/IgorZIJ/status/2121309785882591711" rel="nofollow">https://x.com/IgorZIJ/status/2121309785882591711</a>
[4]: <a href="https://app.opencomputer.dev" rel="nofollow">https://app.opencomputer.dev</a>
Show HN: OpenComputer – an open source alternative to Devin
Hi HN!<p>Utpal here, I'm one of the founders of OpenComputer.<p>OpenComputer is an open source cloud coding agent for teams that can run in your own cloud account (AWS, GCP, Azure).<p>We run the agent harness and the sandbox on the same durable VM (architecture in the docs [1]). First commit lands in 24s; the alternatives we benchmarked took 53-72s (benchmarks below [2]).<p>Two other choices:<p>- One VM per team, scalable horizontally. Sessions are isolated in git worktrees.
- Session files are backed up to a repo after every turn, so any session can resume on another VM.<p>We noticed that past ~640 session-hours a month, one always-on 4 vCPU VM is cheaper than per-session E2B sandboxes, for example. So at scale, this setup would not only be faster than current SOTA coding agents, but also more cost-efficient.<p>Feel free to try via cloud for free [4] or self host. We would love any and all feedback, and happy to answer any questions! Full demo below [3].<p>[1]: <a href="https://docs.opencomputer.dev/getting-started/architecture" rel="nofollow">https://docs.opencomputer.dev/getting-started/architecture</a>
[2]: <a href="https://opencomputer.dev/blog/cloud-agents-as-fast-as-local/" rel="nofollow">https://opencomputer.dev/blog/cloud-agents-as-fast-as-local/</a>
[3]: <a href="https://x.com/IgorZIJ/status/2121309785882591711" rel="nofollow">https://x.com/IgorZIJ/status/2121309785882591711</a>
[4]: <a href="https://app.opencomputer.dev" rel="nofollow">https://app.opencomputer.dev</a>
Show HN: Zero C# – C# without a runtime or GC