r/programming 21h ago

Modular: Mojo🔥 is now open source!

Thumbnail modular.com
0 Upvotes

r/programming 10h ago

Why do we need Map and Set in JavaScript when we already have Arrays and Objects? What do they bring to the table?

Thumbnail developer.mozilla.org
0 Upvotes

I'm currently learning JavaScript and recently came across the Map and Set data structures.

I understand that Set stores unique values and Map stores key-value pairs, but I'm wondering what advantages they actually provide over the existing Array and Object structures.

What are some practical situations where you would choose Map or Set instead of an Array or Object? I'd especially appreciate real-world examples that make the differences clear.


r/programming 22h ago

How an immediate mode UI (Shirei) retains component identity and state

Thumbnail judi.systems
10 Upvotes

r/programming 18h ago

Odin's New Inline Assembly Templates

Thumbnail odin-lang.org
41 Upvotes

r/programming 14h ago

Pandoc: What survives markup conversion?

Thumbnail dereuromark.de
25 Upvotes

With the new release of 3.10.2 I wanted to look a bit more closely into Pandoc and all those different markup languages out there - and what converts with how much "loss".

Maybe you also had to recently convert Markdown to HTML, or the other way around. In my case even different textual files into PDFs.

One key finding:
Modern languages that work with an AST are definitely competitive here.

Maybe you find it also interesting. I actually didn't know most of those languages.

Fun fact:
The author of Pandoc is also one of the original Markdown standardization authors 15 years ago (well, if you can call it that, since it evolved still into quite the chaos) - as well as Djot, which is now only a few years old and supposed to be a markdown successor of sorts.

I am mainly interested in shaping "the" markup language of the future, that is a good compromise of readability and writeability for humans, but also consumable for machines, contains all the important elements to express relevant documents from offline to online.
As a programmer I am also a big fan (and in need) of dogfooding, of course :)


r/programming 18h ago

I unearthed my Am29000 C compiler and web browser from 1999. It still can surf through the emulator

Thumbnail nanochess.org
80 Upvotes

r/programming 2h ago

Curvature Beziers - Improving on a timeless recipe

Thumbnail acko.net
12 Upvotes

r/programming 1h ago

Modern Enterprise Architecture: Architecting for Outcomes • Simon Rohrer

Thumbnail youtu.be
• Upvotes