frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Reconstruct any image using primitive shapes, runs in-browser via WASM

https://github.com/taiseiue/primitive-playground
22•taiseiue•3d ago
I built a browser-based port of fogleman/primitive — a Go CLI tool that approximates images using primitive shapes (triangles, ellipses, beziers, etc.) via a hill-climbing algorithm. The original tool requires building from source and running from the terminal, which isn't exactly accessible. I compiled the core logic to WebAssembly so anyone can drop an image and watch it get reconstructed shape by shape, entirely client-side with no server involved.

Demo: https://primitive-playground.taiseiue.jp/ Source: https://github.com/taiseiue/primitive-playground

Curious if anyone has ideas for shapes or features worth adding.

Comments

freedomben•3h ago
Some feedback that's hopefully helpful, would be great to add to the readme:

What would you say the primary purpose of this tool is? (not that a project needs a purpose beyond "because it was fun" or "just to learn" or even "because I could", but wondering). I have many times wished for a png to svg converter for various reasons (size, hackability, animate-ability) but I struggle to understand why you'd want to go from png to png with this (like in the demo image). I could very well be missing something though. The readme doesn't mention svg at all, though the linked inspiration project does so I assume that's a possible use case?

jmcodes•3h ago
Not the guy who made it but I immediately wondered if I could use the intermediate steps with some "outline" mode to help me see things in shapes and finally learn to draw a bit.
JacobJack•3h ago
This page is a little older, but it offers the same kind of service and allows you to save in svg format : https://www.samcodes.co.uk/project/geometrize-haxe-web/
shakna•2h ago
Autotrace [0] is in a similar space. It's list of output formats mean its fairly entrenched into this incredibly niche space (along with Inkscape).

For a lot of people, tools like this are only part of the journey of what they're doing. So how you hand off the file to keep editing will matter.

[0] https://linux.die.net/man/1/autotrace

Loveseat•1h ago
Pristine theatrics, man.
ThrowawayTestr•10m ago
Neat!

Plasma Bigscreen – 10-foot interface for KDE plasma

https://plasma-bigscreen.org
112•PaulHoule•1h ago•36 comments

this css proves me human

https://will-keleher.com/posts/this-css-makes-me-human/
149•todsacerdoti•3h ago•53 comments

C# strings silently kill your SQL Server indexes in Dapper

https://consultwithgriff.com/dapper-nvarchar-implicit-conversion-performance-trap
47•PretzelFisch•2h ago•31 comments

Show HN: The Roman Industrial Revolution that could have been (Vol 2)

https://thelydianstone.com/volume-2
28•miki_tyler•2h ago•15 comments

The Shady World of IP Leasing

https://acid.vegas/blog/the-shady-world-of-ip-leasing/
55•alibarber•4h ago•27 comments

Galileo's handwritten notes found in ancient astronomy text

https://www.science.org/content/article/galileo-s-handwritten-notes-found-ancient-astronomy-text
28•tzury•1d ago•1 comments

Hardening Firefox with Anthropic's Red Team

https://www.anthropic.com/news/mozilla-firefox-security
477•todsacerdoti•13h ago•137 comments

I'm 60 years old. Claude Code has ignited a passion again

78•shannoncc•1h ago•35 comments

Show HN: Moongate – Ultima Online server emulator in .NET 10 with Lua scripting

https://github.com/moongate-community/moongatev2
225•squidleon•11h ago•130 comments

Launch HN: Palus Finance (YC W26): Better yields on idle cash for startups, SMBs

37•sam_palus•7h ago•61 comments

Show HN: Kula – Lightweight, self-contained Linux server monitoring tool

https://github.com/c0m4r/kula
7•c0m4r•1h ago•1 comments

Tech employment now significantly worse than the 2008 or 2020 recessions

https://twitter.com/JosephPolitano/status/2029916364664611242
713•enraged_camel•7h ago•485 comments

CT Scans of Health Wearables

https://www.lumafield.com/scan-of-the-month/health-wearables
185•radeeyate•11h ago•39 comments

What canceled my Go context?

https://rednafi.com/go/context-cancellation-cause/
8•mweibel•2d ago•2 comments

Ada 2022

https://www.adaic.org/ada-resources/standards/ada22/
108•tosh•5h ago•19 comments

Entomologists use a particle accelerator to image ants at scale

https://spectrum.ieee.org/3d-scanning-particle-accelerator-antscan
100•gmays•9h ago•17 comments

Astra: An open-source observatory control software

https://github.com/ppp-one/astra
80•pppone•9h ago•20 comments

LibreSprite – open-source pixel art editor

https://libresprite.github.io/
256•nicoloren•16h ago•84 comments

Art Bits from HyperCard

https://archives.somnolescent.net/web/mari_v2/junk/hypercard/
53•TigerUniversity•3h ago•14 comments

Polar Factor Beyond Newton-Schulz – Fast Matrix Inverse Square Root

https://jiha-kim.github.io/posts/polar-factor-beyond-newton-schulz-fast-matrix-inverse-square-root/
5•ibobev•2d ago•0 comments

A tool that removes censorship from open-weight LLMs

https://github.com/elder-plinius/OBLITERATUS
117•mvdwoord•11h ago•49 comments

Workers who love ‘synergizing paradigms’ might be bad at their jobs

https://news.cornell.edu/stories/2026/03/workers-who-love-synergizing-paradigms-might-be-bad-thei...
508•Anon84•12h ago•288 comments

Multifactor (YC F25) Is Hiring an Engineering Lead

https://www.ycombinator.com/companies/multifactor/jobs/lcpd60A-engineering-lead
1•multifactor•8h ago

We might all be AI engineers now

https://yasint.dev/we-might-all-be-ai-engineers-now/
167•sn0wflak3s•16h ago•273 comments

Anthropic, please make a new Slack

https://www.fivetran.com/blog/anthropic-please-make-a-new-slack
190•georgewfraser•5h ago•170 comments

Analytic Fog Rendering with Volumetric Primitives (2025)

https://matejlou.blog/2025/02/11/analytic-fog-rendering-with-volumetric-primitives/
81•surprisetalk•1d ago•7 comments

Good Bad ISPs

https://community.torproject.org/relay/community-resources/good-bad-isps/
96•rzk•11h ago•29 comments

The disappearing Form D (2018)

https://techcrunch.com/2018/11/07/the-disappearing-form-d/
11•eatonphil•2d ago•1 comments

Global warming has accelerated significantly

https://www.researchsquare.com/article/rs-6079807/v1
962•morsch•11h ago•949 comments

Show HN: Claude-replay – A video-like player for Claude Code sessions

https://github.com/es617/claude-replay
64•es617•9h ago•25 comments