The best Hacker News stories from Show from the past day

Go back

Latest posts:

Show HN: Simulating a 1975 dungeon board game to fix its class balance

Show HN: HyScribe – A drop-in replacement for WordPress, written in Rust

Show HN: Nixorium – NixOS fleet management, in daily use in my school's labs

Show HN: ArchLang – floor plans as code, compiled to SVG/DXF/PDF

Show HN: misa77 – Up to 3x faster decompression than zstd, with better ratios

Show HN: Code like a Viking (Hávamál programming language)

A puzzle programming language where programs look like Hávamál, in the specific metre with alliteration required. Designed as a fun way to do Advent of Code style puzzles. Make it work, make it a poem, make it beautiful.

Show HN: Open-source guitar practice studio with stem extraction and NAM rigs

Show HN: Warpspec – TLA+ model checking on a GPU, 4,600× faster than TLC

Show HN: Warpspec – TLA+ model checking on a GPU, 4,600× faster than TLC

Show HN: Pryzmera – Fast PDF viewer, over 1200x faster rendering than Acrobat

In September of 2021, my father told me he was struggling to open PDFs. As part of his job, he had to view many PDFs with millions of vector paths that were generated by CAD software, and we could not find any PDF viewer that would render them at more than a few frames per second.<p>I thought that if we simply converted those paths into triangles the GPU could just blast through them. Today, after more than 5 years and 3 iterations in 3 different languages, I would like to share with you the 3rd iteration of my PDF viewer: Named "Pryzmera", I wrote it by hand with the goal to render those CAD PDFs at interactive frame rates, and with the intention to make every feature as fast as I could possibly imagine it to be.<p>When Pryzmera opens a document, it first starts by interpreting each page. As a page is interpreted, it generates small clipping & tessellation jobs that run in parallel. Clipping & tessellation is performed by Pryzmera's own tessellator and produces the initial geometry for the page. This geometry is then collected and jointly optimized to produce a final GPU representation that mostly consists of colored/textured triangles. The representation is completely static, which in turn makes rendering performance (FPS) almost static, even when the view changes (e.g. panning/zooming/rotating). Once the representation is uploaded to the GPU, rendering a page typically requires only 3-4 draw calls.<p>On my machine (GTX1080/i7-5820k), Pryzmera can render my father's CAD PDFs at hundreds (and sometimes thousands) of frames per second. Compared to Adobe Acrobat:<p>- Loading is about 2-10x faster (depending on how Acrobat is feeling on the day)<p>- Rendering is about 1200-5700x faster (depending on Pryzmera's graphics settings)<p>- Text search is about 100x faster (although it's hard to measure Acrobat's performance here)<p>- And this trend continues...<p>If you would like to test the performance yourself, you can press F8 to bring up the render stats, including FPS and VRAM usage breakdown; You can try this stress-test file I made that is rather representative of the PDFs generated by CAD software: <a href="https://pryzmera.com/stress_test.pdf" rel="nofollow">https://pryzmera.com/stress_test.pdf</a><p>And if you are curious about any of the technical details, or anything else, ask away!

Show HN: Pryzmera – Fast PDF viewer, over 1200x faster rendering than Acrobat

In September of 2021, my father told me he was struggling to open PDFs. As part of his job, he had to view many PDFs with millions of vector paths that were generated by CAD software, and we could not find any PDF viewer that would render them at more than a few frames per second.<p>I thought that if we simply converted those paths into triangles the GPU could just blast through them. Today, after more than 5 years and 3 iterations in 3 different languages, I would like to share with you the 3rd iteration of my PDF viewer: Named "Pryzmera", I wrote it by hand with the goal to render those CAD PDFs at interactive frame rates, and with the intention to make every feature as fast as I could possibly imagine it to be.<p>When Pryzmera opens a document, it first starts by interpreting each page. As a page is interpreted, it generates small clipping & tessellation jobs that run in parallel. Clipping & tessellation is performed by Pryzmera's own tessellator and produces the initial geometry for the page. This geometry is then collected and jointly optimized to produce a final GPU representation that mostly consists of colored/textured triangles. The representation is completely static, which in turn makes rendering performance (FPS) almost static, even when the view changes (e.g. panning/zooming/rotating). Once the representation is uploaded to the GPU, rendering a page typically requires only 3-4 draw calls.<p>On my machine (GTX1080/i7-5820k), Pryzmera can render my father's CAD PDFs at hundreds (and sometimes thousands) of frames per second. Compared to Adobe Acrobat:<p>- Loading is about 2-10x faster (depending on how Acrobat is feeling on the day)<p>- Rendering is about 1200-5700x faster (depending on Pryzmera's graphics settings)<p>- Text search is about 100x faster (although it's hard to measure Acrobat's performance here)<p>- And this trend continues...<p>If you would like to test the performance yourself, you can press F8 to bring up the render stats, including FPS and VRAM usage breakdown; You can try this stress-test file I made that is rather representative of the PDFs generated by CAD software: <a href="https://pryzmera.com/stress_test.pdf" rel="nofollow">https://pryzmera.com/stress_test.pdf</a><p>And if you are curious about any of the technical details, or anything else, ask away!

Show HN: Gully Cricket

Show HN: Gully Cricket

Show HN: Learn Japanese kanji by understanding their parts

Hi!<p>Since I was traveling to Japan, I wanted to learn the basics. I started with hiragana and katakana with an app-for-one <a href="https://github.com/stared/vibe-japanese" rel="nofollow">https://github.com/stared/vibe-japanese</a> (beware, some mnemonics are idiosyncratic, or refer to my native Polish).<p>I struggled to find online materials for kanji that would resonate with me... so I created one (standing on the shoulders of giants of other projects).<p>I love Hanly with their logical way of showing how Chinese characters are composed. So, I adapted the idea for kanji and polished it to my visual preferences.<p>While I created it for myself, to my surprise, it is helpful for my girlfriend, who speaks Japanese well. I created an adaptive way to adjust to your knowledge. Since it works at various levels, I am sharing it here.<p>No account, progress is in your browser. You can download it if needed. It's a PWA, so you can install it on your phone as well.<p>Interactive: <a href="https://p.migdal.pl/kanly/" rel="nofollow">https://p.migdal.pl/kanly/</a><p>Code: <a href="https://github.com/stared/kanly" rel="nofollow">https://github.com/stared/kanly</a><p>If you want it on an e-ink display: <a href="https://github.com/stared/kanly-inkplate" rel="nofollow">https://github.com/stared/kanly-inkplate</a>

Show HN: Learn Japanese kanji by understanding their parts

Hi!<p>Since I was traveling to Japan, I wanted to learn the basics. I started with hiragana and katakana with an app-for-one <a href="https://github.com/stared/vibe-japanese" rel="nofollow">https://github.com/stared/vibe-japanese</a> (beware, some mnemonics are idiosyncratic, or refer to my native Polish).<p>I struggled to find online materials for kanji that would resonate with me... so I created one (standing on the shoulders of giants of other projects).<p>I love Hanly with their logical way of showing how Chinese characters are composed. So, I adapted the idea for kanji and polished it to my visual preferences.<p>While I created it for myself, to my surprise, it is helpful for my girlfriend, who speaks Japanese well. I created an adaptive way to adjust to your knowledge. Since it works at various levels, I am sharing it here.<p>No account, progress is in your browser. You can download it if needed. It's a PWA, so you can install it on your phone as well.<p>Interactive: <a href="https://p.migdal.pl/kanly/" rel="nofollow">https://p.migdal.pl/kanly/</a><p>Code: <a href="https://github.com/stared/kanly" rel="nofollow">https://github.com/stared/kanly</a><p>If you want it on an e-ink display: <a href="https://github.com/stared/kanly-inkplate" rel="nofollow">https://github.com/stared/kanly-inkplate</a>

Show HN: 15,000 HN-recommended books, 100 AI insights per book

Show HN: Dictate, an iPhone dictation keyboard that cleans up text on-device

Show HN: Symphony – sandboxed coding agents you manage like tickets

Show HN: ZAR – A new archive format with history, deduplication, encryption

Show HN: Web app to practice piano from a MIDI file

While learning to play piano, I have tried a few apps that allow connecting it to get live feedback. This is fun but most apps have subscriptions involved with a limited song list + inconsistent features.<p>I wanted to build one of these for a long time but never had the time, I tried AI to see how far I can go and I'm very happy with the result.<p>This works by selecting a MIDI file as input, showing falling notes over a piano (like Synthesia but on the web).<p>The most helpful feature is looping over a section which can be controlled by the piano itself (to restart the loop). This has been super helpful that I'm planning to add more shortcuts.<p>The app includes a few experiments like a sight-reading practice mode, and a song library that reads a local folder of MIDI files and cover images.<p>The main limitation is that Web MIDI needs Chrome. The UI also has too many controls.<p>Links:<p>- 90s Demo video: <a href="https://youtu.be/PszlmVDgZvo" rel="nofollow">https://youtu.be/PszlmVDgZvo</a><p>- Source: <a href="https://github.com/AlexITC/piano-practice-app" rel="nofollow">https://github.com/AlexITC/piano-practice-app</a><p>Feedback welcome.<p>Edit:<p><pre><code> - Since I posted I got extra shortcuts not shown in the demo to deal with loops (UI now shows these). - I got great MIDI files for trying from https://www.mutopiaproject.org/ like the demo'ed "Rondo Alla Turca by Mozart", also tested "Moonlight Sonata 1st movement by Beethoven"</code></pre>

1 2 3 ... 1081 1082 1083 >