The best Hacker News stories from Show from the past day
Latest posts:
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: 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 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
Show HN: Zero C# – C# without a runtime or GC
Show HN: Fast deterministic natural language search for OpenStreetMap data
I want to show you HippoMaps. It is a fully featured map and navigation app built on OpenStreetMap with a custom Overpass API engine for really fast search of POIs, areas and ways.<p>My aim with HippoMaps is to get to a level where I don't need Google Maps anymore. The biggest hurdle IMHO with OSM based apps is the lack of nice and fast search (where GMaps excels at). To get there I started working on a deterministic (as in no LLMs used) parser of queries that translates them to the Overpass QL.<p>Search queries are split into tokens and the algorithm tries to guess "what" you want to search and "where". The former comes from a word list (known brands, sports, OSM tags) and the latter from the geocoder service (Photon).<p>You can get quite creative like "cafes in Zurich by the Limmat", "peaks over 4000 m in Valais", "pharmacies open now in Bern". It's good for discovering hiking trails, e.g. "hiking trails from Arth-Goldau to Rigi Kulm". It knows how to find stuff between two places, next to a place, near a place and so on. You can stack those as well like "bridges over the danube in serbia 50 km from novi sad".<p>Except the search it has almost all of the features you would expect from a map like turn-by-turn navigation (Valhalla) with voice (Piper), public transport navigation in Europe (MOTIS), live traffic (only a few countries so far).<p>The app is GPL-3.0: <a href="https://github.com/cdutsov/hippomaps" rel="nofollow">https://github.com/cdutsov/hippomaps</a><p>I'm looking forward to feedback on searches that work or don't work for you + overall comments.
Show HN: Fast deterministic natural language search for OpenStreetMap data
I want to show you HippoMaps. It is a fully featured map and navigation app built on OpenStreetMap with a custom Overpass API engine for really fast search of POIs, areas and ways.<p>My aim with HippoMaps is to get to a level where I don't need Google Maps anymore. The biggest hurdle IMHO with OSM based apps is the lack of nice and fast search (where GMaps excels at). To get there I started working on a deterministic (as in no LLMs used) parser of queries that translates them to the Overpass QL.<p>Search queries are split into tokens and the algorithm tries to guess "what" you want to search and "where". The former comes from a word list (known brands, sports, OSM tags) and the latter from the geocoder service (Photon).<p>You can get quite creative like "cafes in Zurich by the Limmat", "peaks over 4000 m in Valais", "pharmacies open now in Bern". It's good for discovering hiking trails, e.g. "hiking trails from Arth-Goldau to Rigi Kulm". It knows how to find stuff between two places, next to a place, near a place and so on. You can stack those as well like "bridges over the danube in serbia 50 km from novi sad".<p>Except the search it has almost all of the features you would expect from a map like turn-by-turn navigation (Valhalla) with voice (Piper), public transport navigation in Europe (MOTIS), live traffic (only a few countries so far).<p>The app is GPL-3.0: <a href="https://github.com/cdutsov/hippomaps" rel="nofollow">https://github.com/cdutsov/hippomaps</a><p>I'm looking forward to feedback on searches that work or don't work for you + overall comments.
Show HN: Tinnitus frequency finder and audio notch tool
I've had tinnitus for about a year and a half. There's no cure, so I'm trying anything that looks promising. One idea people are researching is listening to sound with a notch cut out right at your tinnitus frequency.<p>The frequency finder will help you zero in on your tinnitus pitch. The method write-up is here: <a href="https://trynotched.com/how-pitch-matching-works" rel="nofollow">https://trynotched.com/how-pitch-matching-works</a><p>Once you have a pitch, there's a free web app that plays background sounds (stream, rain, wind and so on) with a notch at your frequency: <a href="https://trynotched.com/tools" rel="nofollow">https://trynotched.com/tools</a>.<p>I built it as a PWA so you can save to your phone's home screen and it works offline. No account or time limit.
Show HN: Tinnitus frequency finder and audio notch tool
I've had tinnitus for about a year and a half. There's no cure, so I'm trying anything that looks promising. One idea people are researching is listening to sound with a notch cut out right at your tinnitus frequency.<p>The frequency finder will help you zero in on your tinnitus pitch. The method write-up is here: <a href="https://trynotched.com/how-pitch-matching-works" rel="nofollow">https://trynotched.com/how-pitch-matching-works</a><p>Once you have a pitch, there's a free web app that plays background sounds (stream, rain, wind and so on) with a notch at your frequency: <a href="https://trynotched.com/tools" rel="nofollow">https://trynotched.com/tools</a>.<p>I built it as a PWA so you can save to your phone's home screen and it works offline. No account or time limit.
Show HN: Tinnitus frequency finder and audio notch tool
I've had tinnitus for about a year and a half. There's no cure, so I'm trying anything that looks promising. One idea people are researching is listening to sound with a notch cut out right at your tinnitus frequency.<p>The frequency finder will help you zero in on your tinnitus pitch. The method write-up is here: <a href="https://trynotched.com/how-pitch-matching-works" rel="nofollow">https://trynotched.com/how-pitch-matching-works</a><p>Once you have a pitch, there's a free web app that plays background sounds (stream, rain, wind and so on) with a notch at your frequency: <a href="https://trynotched.com/tools" rel="nofollow">https://trynotched.com/tools</a>.<p>I built it as a PWA so you can save to your phone's home screen and it works offline. No account or time limit.
Show HN: I made an audio-to-MIDI model 60x more efficient
I released dettato, my open weight audio to midi transcription model. It beats muscriptor 1.3b on every set and is roughly 60x smaller, without training on copyrighted recordings. Feel free to ask questions
Show HN: I made an audio-to-MIDI model 60x more efficient
I released dettato, my open weight audio to midi transcription model. It beats muscriptor 1.3b on every set and is roughly 60x smaller, without training on copyrighted recordings. Feel free to ask questions