frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

OpenCiv3: Open-source, cross-platform reimagining of Civilization III

https://openciv3.org/
553•klaussilveira•10h ago•157 comments

The Waymo World Model

https://waymo.com/blog/2026/02/the-waymo-world-model-a-new-frontier-for-autonomous-driving-simula...
876•xnx•15h ago•532 comments

How we made geo joins 400× faster with H3 indexes

https://floedb.ai/blog/how-we-made-geo-joins-400-faster-with-h3-indexes
79•matheusalmeida•1d ago•18 comments

What Is Ruliology?

https://writings.stephenwolfram.com/2026/01/what-is-ruliology/
8•helloplanets•4d ago•3 comments

Unseen Footage of Atari Battlezone Arcade Cabinet Production

https://arcadeblogger.com/2026/02/02/unseen-footage-of-atari-battlezone-cabinet-production/
13•videotopia•3d ago•0 comments

Show HN: Look Ma, No Linux: Shell, App Installer, Vi, Cc on ESP32-S3 / BreezyBox

https://github.com/valdanylchuk/breezydemo
191•isitcontent•10h ago•24 comments

Monty: A minimal, secure Python interpreter written in Rust for use by AI

https://github.com/pydantic/monty
190•dmpetrov•10h ago•84 comments

Show HN: I spent 4 years building a UI design tool with only the features I use

https://vecti.com
303•vecti•12h ago•133 comments

Microsoft open-sources LiteBox, a security-focused library OS

https://github.com/microsoft/litebox
347•aktau•16h ago•169 comments

Sheldon Brown's Bicycle Technical Info

https://www.sheldonbrown.com/
347•ostacke•16h ago•90 comments

Dark Alley Mathematics

https://blog.szczepan.org/blog/three-points/
75•quibono•4d ago•16 comments

Hackers (1995) Animated Experience

https://hackers-1995.vercel.app/
444•todsacerdoti•18h ago•226 comments

Show HN: If you lose your memory, how to regain access to your computer?

https://eljojo.github.io/rememory/
242•eljojo•13h ago•148 comments

PC Floppy Copy Protection: Vault Prolok

https://martypc.blogspot.com/2024/09/pc-floppy-copy-protection-vault-prolok.html
46•kmm•4d ago•3 comments

Delimited Continuations vs. Lwt for Threads

https://mirageos.org/blog/delimcc-vs-lwt
17•romes•4d ago•2 comments

An Update on Heroku

https://www.heroku.com/blog/an-update-on-heroku/
379•lstoll•16h ago•258 comments

How to effectively write quality code with AI

https://heidenstedt.org/posts/2026/how-to-effectively-write-quality-code-with-ai/
225•i5heu•13h ago•171 comments

Why I Joined OpenAI

https://www.brendangregg.com/blog/2026-02-07/why-i-joined-openai.html
103•SerCe•6h ago•84 comments

Learning from context is harder than we thought

https://hy.tencent.com/research/100025?langVersion=en
162•limoce•3d ago•85 comments

I spent 5 years in DevOps – Solutions engineering gave me what I was missing

https://infisical.com/blog/devops-to-solutions-engineering
131•vmatsiiako•15h ago•56 comments

Introducing the Developer Knowledge API and MCP Server

https://developers.googleblog.com/introducing-the-developer-knowledge-api-and-mcp-server/
41•gfortaine•8h ago•11 comments

Show HN: R3forth, a ColorForth-inspired language with a tiny VM

https://github.com/phreda4/r3
63•phreda4•9h ago•11 comments

Female Asian Elephant Calf Born at the Smithsonian National Zoo

https://www.si.edu/newsdesk/releases/female-asian-elephant-calf-born-smithsonians-national-zoo-an...
20•gmays•5h ago•3 comments

Show HN: ARM64 Android Dev Kit

https://github.com/denuoweb/ARM64-ADK
14•denuoweb•1d ago•2 comments

Understanding Neural Network, Visually

https://visualrambling.space/neural-network/
262•surprisetalk•3d ago•35 comments

I now assume that all ads on Apple news are scams

https://kirkville.com/i-now-assume-that-all-ads-on-apple-news-are-scams/
1035•cdrnsf•19h ago•428 comments

Zlob.h 100% POSIX and glibc compatible globbing lib that is faste and better

https://github.com/dmtrKovalenko/zlob
6•neogoose•2h ago•3 comments

FORTH? Really!?

https://rescrv.net/w/2026/02/06/associative
56•rescrv•18h ago•19 comments

Show HN: Smooth CLI – Token-efficient browser for AI agents

https://docs.smooth.sh/cli/overview
85•antves•1d ago•63 comments

WebView performance significantly slower than PWA

https://issues.chromium.org/issues/40817676
20•denysonique•6h ago•3 comments
Open in hackernews

D2 (text to diagram tool) now supports ASCII renders

https://d2lang.com/blog/ascii/
441•alixanderwang•5mo ago

Comments

robertlagrant•5mo ago
This looks cool. And I saw the previous post you got C4 support! I'm just about to do some C4 things; I'll check it out.
alixanderwang•5mo ago
Hello fellow devs. Just wanted to share a new feature we added this morning, though it's very alpha stage (already someone's filed a github issue for it hah)

If you want to skip the blog post and poke around directly: https://play.d2lang.com/?script=qlDQtVOotFLIyFTwSEzOTi1S8Est...

For a bigger example: https://play.d2lang.com/?script=rJJBjtswDEX3OgWBrm2kzU4Feoru...

rng-concern•5mo ago
I thought your playground wasn't working as it renders black text on black background. Maybe I have darkmode enabled or something. Other renderers work, but ascii is invisible.
alixanderwang•5mo ago
Ah right, forgot to test the update with dark mode. Thanks for letting me know!

edit: fixed

mmastrac•5mo ago
Does the SVG renderer support custom IDs and/or attributes on nodes? If so I'll add support for this to Stylus (https://github.com/mmastrac/stylus)
alixanderwang•5mo ago
Yeah I think what you're looking for is the note at the end of this section: https://d2lang.com/tour/exports/#svg

Feel free to make a PR to d2/d2-docs to include it in our list of community tools/plugins if you do!

aidenn0•5mo ago
So from TFA it just downscales from ELK? Do I have to specify ELK for this to work, or will it automagically enable if I try to output a .txt? (Really I'm just curious becasue I use ELK already for most of my d2 diagrams).
alixanderwang•5mo ago
It switches to ELK: https://github.com/terrastruct/d2/blob/master/d2cli/main.go#...
hiyer•5mo ago
Just wanted to thank you for a great tool :-). I love d2 and ever since I discovered it a couple of years back I've been using it for all my diagramming needs.

Thanks again and keep up the good work!

reactordev•5mo ago
The vim extension is such a flex...
Graziano_M•5mo ago
Yeah, but weird/unfortunate that it's written in vimscript.
gsinclair•5mo ago
How on earth can it be weird that a vim extension is written in vimscript?!
stavros•5mo ago
Well imagine a Java extension being written in Javascript...
groutlloyd•5mo ago
It's rad man, someone should do this.
cess11•5mo ago
Don't have to imagine, it's been a thing since Java 8.

https://www.baeldung.com/java-nashorn

reactordev•5mo ago
Sunsetted in Java 14. Now it’s Graal.
Graziano_M•5mo ago
Vim is basically dead. Most new plugins are written in Lue (for Neovim). I don’t like Lue much but it’s 1000x better than vim script. I occasionally tweak my Neovim plugins but don’t bother with those written in Vimscript.
JSR_FDED•5mo ago
1. Vim is extremely alive

2. “Lue” is actually Lua

3. It’s very possible to use both Vimscript and Lua in the same Neovim setup, so transition (or don’t) at your leisure.

4. New plugins tend to be written in Lua (for Neovim).

Graziano_M•5mo ago
Yes, new plugins are written in Lua, and this one wasn't. That is what is too bad.

Previous comment was written on my phone and it decided to autocorrect Lua to Lue.

reactordev•5mo ago
There are far more vim users in the world than you realize. Every time I’m on ssh, I’m on vim. So daily, for the last 30 years.
jillesvangurp•5mo ago
Llm to text to diagram is the killer workflow these days.

The key challenge is making these things presentable. Optimizing them for human editability is a secondary concern at this point. This is where a lot of these tools fall apart.

billyp-rva•5mo ago
> Llm to text to diagram is the killer workflow these days.

It's useful, but I think only marginally. When using a diagrams-as-code tool, having an LLM write it for you gets you up and running faster, but long term you have more control (and no hallucinations) just writing the code yourself. It'll probably be fewer keystrokes in the end. Doubly so if your diagrams-as-code tool has decent autocomplete.

thejazzman•5mo ago
i think d2 looks sick , and i'm not op, but i do love just describing my system and telling the LLM to draw it. so having it "draw" d2 seems like a great new step?

when you want to make changes, you update your docs/design and repeat. think system design interview but you skip drawing it yourself at all and then sanity check your own work by interpreting the resulting graph etc

justonceokay•5mo ago
I use LLM to tell my children bedtime stories and to wish my wife goodnight. Saves me a lot of time and energy
eric-p7•5mo ago
Not to be confused with The D Programming Language, which has a similar domain (dlang.org), and is currently on version 2.
masfoobar•5mo ago
I will admit, I thought this was originally about D lang - I am still glad I clicked as I also have an interest in text-based diagrams.

I dont really using Dlang now - but still interested in the language. This click was a win-win either way!

bxpn77•5mo ago
Super cool!
sidewndr46•5mo ago
Does this mean a quine is possible?
cluckindan•5mo ago
Yes, but the only one I found on the playground is all newlines and spaces.

In escaped form:

    \x20\n\x20\n\x20\n\n
smusamashah•5mo ago
I maintain a list of browser based text to diagram tools (which I have shared a number of times here). I recently realised that the online version of D2 does NOT work solely in browser, diagram's are generated by backend servers.

Can D2 work in browser by itself? Does the extension mentioned in the post work offline? (lots of tools do)

alixanderwang•5mo ago
It does now! (As of a week ago)

Check out the network tab in the d2 playground. It's powered by d2.js, a wrapper around a wasm port of d2, which we've recently been working on. Not super officially ready yet but soon to be, and will be a separate announcement.

troyvit•5mo ago
This is awesome news! Thank you for the excellent tool. Getting it hosted places has been my biggest pain point.
rendall•5mo ago
~~May I see that list, please?~~

Edit: found it! Thanks.

sestep•5mo ago
https://xosh.org/text-to-diagram/
filcuk•5mo ago
Thanks for sharing. Looking at the first section- official mermaid playground supports both ui and text editing. It's been a life changer.
cess11•5mo ago
Clearly things have changed a bit recently but since a long time I use D2 exclusively locally. The binary has a watch mode that starts a web server and pushes changes on save so you can interactively develop your diagrams and e.g. share the web browser over a video conference or such.

I don't know about that Mermaid thing others are talking about in the thread so I can't compare but D2 is very easy to learn the basics of and get started with. Like a few minutes from install to your first diagram kind of easy.

Daedren•5mo ago
Yes, but why have all that effort in spinning a web server when I can just give a link to a place where I have embedded the chart? Or even embed it in whatever chat you have that presentation on? Don't need the binary anywhere, that's the strength of Mermaid

Until that D2 wasm port is officially released, I don't think it's even fair to call D2 competition to Mermaid, it's on a complete other level of useability. I'm glad to see that it's close to releasing.

cess11•5mo ago
Like I said, I know nothing of this Mermaid and did not make such a comparison, and I'm fine with it since all I want to produce is a SVG that I can then embed wherever and D2 is more than adequate for this purpose.
jiehong•5mo ago
I’ve been using d2 for sequences diagrams or migration diagrams and I like it!

This new feature is interesting!

tombert•5mo ago
This is awesome.

I hadn't heard of D2, but I love the idea that I can create my charts directly in Neovim in the terminal to get a rough draft, and do a final render with a pretty picture.

I will be playing with this shortly.

mtillman•5mo ago
I typically use Moondraw for ASCII diagrams but this is pretty great for when you're already in Vim.
aidenn0•5mo ago
D2 already supports a live-updating HTTP server serving a live-updating .svg, so if you tile a browser with vim, you can already get live-updates.

I discovered D2 about a year ago, and I use it for all of my diagrams now.

tombert•5mo ago
Yeah but that doesn't feel nearly as nerdy and cool :)

There's a sort of elegance to ASCII rendering.

CuriouslyC•5mo ago
This will be super helpful for saving context feeding architecture diagrams to LLMs.
mielebauknecht•5mo ago
wow! Now d2 is turned into something that is acually useful!
heliophobicdude•5mo ago
This looks way better than mermaid. Is there support for this in GitHub PR code blocks like mermaid?
baby_souffle•5mo ago
No, sadly. That's still the biggest obstacle for a lot of my documentation. I push mermaid perhaps a little farther than it wants to go just so I don't have to spend the time setting up a CI pipe to compile the D2 into a PNG which is embedded in the documentation.
alixanderwang•5mo ago
Unfortunately not, I've tried reaching out to GH folks but no dice. However it should be noted that d2.js, which enables client-side renders, didn't really become usable until this month and still isn't really officially released (kind of hidden). So, we'll see if the official release (soon™) changes things. If any D2-enjoyers reading this knows anyone on the GH frontend team, plz bend their ear =)
Myrmornis•5mo ago
Good luck, it would be fantastic if you can get it accepted as a mermaid alternative; it's much, much niceer than mermaid, both the visual result, and the language. I've used D2 heavily for a couple of years or so now. It's really fantastic. I hope you're paid product is healthy. Sequence diagrams are my most common diagram type by some way I think. And I seem to always use the sketch rendering over the last year.

While you're here, can I mention a feature request? I'd like to be able to put clickable hyperlinks into sequence diagram arrow labels (e.g. so I can link the message to where in the code it occurs).

Also, I'd like more control over vertical spacing in sequence diagrams, and perhaps the ability to define groups of columns (just visually grouped).

alixanderwang•5mo ago
<3

The linking you can do already if I understand the request correctly: https://play.d2lang.com/?script=Ks5ILEi1UihOLSxNzUtOjU_JTEwv...

Okay, we'll put those sequence diagram improvements in our sprint for next release.

Myrmornis•5mo ago
Thanks!

> The linking you can do already if I understand the request correctly:

Perfect. Sorry I remembered there was an open ticket for it in the past but didn't check its status.

lidavidm•5mo ago
I always liked D2 more than mermaid, except IMO, this makes grid layouts essentially useless: https://github.com/terrastruct/d2/issues/1164

Having to figure out the exact pixel widths defeats the point of these tools, at least for me.

alixanderwang•5mo ago
Thanks! Good to know, we'll slot this for 0.7.2 (next release)
lidavidm•5mo ago
Oh that is awesome! I would really appreciate it!

Could you also get d2 into GitHub and Notion while you have it here :)

arunc•5mo ago
Conversion from ASCII is nice. How do we get the original D2 source if there's a need to update the diagram?!
peroids•5mo ago
Can you please establish an official python repository? I’ve been wanting to use this in notebooks but am forced to use databricks
hiAndrewQuinn•5mo ago
Oh, this is excellent! The syntax of D2 is very compelling but the tooling of Mermaid has unfortunately made it win out for me more times than not in the last few years. This, however, is a genuinely novel thing that I don't think I've seen Mermaid do. Bridges the gap to https://asciiflow.com/ quite nicely.
scrubs•5mo ago
Talk about awesome. This is awesome. I'm gonna use it. Super cool.
fzeindl•5mo ago
1. how does this add value over mermaid? I like how it looks and works, but is there any real reason to switch over.

2. in my opinion, what all these tools are missing is the ability to add a manual „corrective“ layer, meaning to be able to adjust the automatically created output by moving and resizing boxes by a certain x/y amount.

alixanderwang•5mo ago
1. It depends on what you value =). For some, those 2 you mentioned are enough. For others, it can be something like the our CLI doesn't require a chromium browser to render SVGs (https://news.ycombinator.com/item?id=31275754). It doesn't cover every difference, but we made a little comparison site if it helps: https://text-to-diagram.com

2. I'm not trying to advertise our paid product in this post about the open source product, but since you mentioned it, we make an IDE that adds the ability to lock in positions and dimensions: https://docs.terrastruct.com/tour/freehand

cpmsmith•5mo ago
By the way, it looks like the MermaidJS implementation of the WiiU example is broken due to subgraphs not creating namespaces. That is, the `rom` node in the `amd` subgraph is overwriting the one in the `ibm` subgraph.
alixanderwang•5mo ago
Thank you, made an issue: https://github.com/terrastruct/text-to-diagram-site/issues/6...
Myrmornis•5mo ago
It's a diagramming tool

> I like how it looks and works

Those are "real reasons".

arkh•5mo ago
> 2. in my opinion, what all these tools are missing is the ability to add a manual „corrective“ layer, meaning to be able to adjust the automatically created output by moving and resizing boxes by a certain x/y amount.

Something like Struturizr? https://structurizr.com/

bigfishrunning•5mo ago
I like that it seems to support inline latex formulas, which seems like a great feature
dragonwriter•5mo ago
> how does this add value over mermaid?

As a longtime Mermaid user that just started trying out D2 recently:

* D2's syntax is much less cumbersome to write and, from the features provided, I would expect maintain because of better abstractions.

* While D2 supports fewer canned diagram types out-of-the-box (a big advantage for Mermaid), D2 has better composition support (via layers and scenarios, particularly) than Mermaid, which is a killer feature for lots of use cases. If I need a Sankey diagram, obviously, Mermaid wins; if I want to do a leveled DFD, while I could in theory use either, D2 is much better.

* D2 has more freedom for mixing elements, because instead of being oriented around diagram types, it uses some special shapes within what amounts to a single universal diagram type ("sequence diagrams" work a bit like a diagram type, but the diagram itself is a shape that can be used like other shapes, and tables [as used in ERDs] and classes [as used in UML class diagrams] are also just shapes, not a construct available in particular diagram types.)

> in my opinion, what all these tools are missing is the ability to add a manual „corrective“ layer, meaning to be able to adjust the automatically created output by moving and resizing boxes by a certain x/y amount.

Technically, I think you can do that in Mermaid (by attaching CSS classes to the nodes that do the actual nudging) if you really want to.

HeartofCPU•5mo ago
Love it
masfoobar•5mo ago
I dont think I've come across this one.

I have experimented with other text-based diagrams - but this certainly looks interesting.

While I am always forced (at workplace) to use a GUI-based diagram like Visio... I see more merit to this one.

Definitely worth a play with my home-based or own business setups.

masfoobar•5mo ago
Further update -- I see an emacs plugin. :-)

I am happy. Something to play with tonight.

jhoechtl•5mo ago
Using it - better: used it. It's outdated, doesn't understand key words of recent D2 - versions and doesn't integrate well with emacs, i.e. default key bindings are IMHO not very emacsish.
masfoobar•5mo ago
Thanks for the heads up.
alixanderwang•5mo ago
Yeah that one's a community plugin vs an officially maintained one, which can have a range of activity from graveyard to some being maintained better than many of our official ones. That maintainer seems active on GitHub though and the d2-emacs plugin is his top pinned repo (https://github.com/andorsk), I think he'd be receptive if you let him know your interest!
mwexler•5mo ago
I appreciated the link to this helpful comparison site:

https://text-to-diagram.com/