Reddit Programming
191 subscribers
1.22K photos
127K links
I will send you newest post from subreddit /r/programming
Download Telegram
Pony's Arena Allocator
https://www.reddit.com/r/programming/comments/1vq4rr0/ponys_arena_allocator/

<!-- SC_OFF -->I recently discovered that Pony (https://www.ponylang.io/)'s still alive. I had discovered Pony a few years ago while browsing tech forums. Its focus on memory safe & lock-free MT was interesting. I kept up with the weekly development for a brief period but then kind of forgot about the language until recently when I rediscovered it when I was chatting about Crystal's MT (https://crystal-lang.org/2026/07/16/1.21.0-released/). I just wanted to share the latest blog post here in case someone else remembers this language. Looks like the development has been progressing steadily. Which is impressive because the project lacks any big sponsors (https://opencollective.com/ponyc#backer). <!-- SC_ON --> submitted by /u/Bassfaceapollo (https://www.reddit.com/user/Bassfaceapollo)
[link] (https://www.ponylang.io/blog/2026/08/ponys-arena-allocator/) [comments] (https://www.reddit.com/r/programming/comments/1vq4rr0/ponys_arena_allocator/)
What if YOU Could Add Your Own Features to a Language?
https://www.reddit.com/r/programming/comments/1vrb433/what_if_you_could_add_your_own_features_to_a/

<!-- SC_OFF -->I made a video explaining a concept I love called macros, which allow you to add your own syntax to a language. Languages like Rust, Lean, and lisp have them. The goal with the video is to make you feel like you could've discovered macros yourself. I'm new at making educational content like this, but I'm planning on making many more programming language videos like this one on my channel. Any thoughts, constructive criticism, or advice is more than welcome! Hope you all enjoy <!-- SC_ON --> submitted by /u/quasar_tree (https://www.reddit.com/user/quasar_tree)
[link] (https://www.youtube.com/watch?v=LZO9Zs9w-tI) [comments] (https://www.reddit.com/r/programming/comments/1vrb433/what_if_you_could_add_your_own_features_to_a/)
Pandoc: What survives markup conversion?
https://www.reddit.com/r/programming/comments/1vs61br/pandoc_what_survives_markup_conversion/

<!-- SC_OFF -->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 :) <!-- SC_ON --> submitted by /u/dereuromark (https://www.reddit.com/user/dereuromark)
[link] (https://www.dereuromark.de/2026/08/19/pandoc-what-survives-a-conversion/) [comments] (https://www.reddit.com/r/programming/comments/1vs61br/pandoc_what_survives_markup_conversion/)
Why do we need Map and Set in JavaScript when we already have Arrays and Objects? What do they bring to the table?
https://www.reddit.com/r/programming/comments/1vsbdb9/why_do_we_need_map_and_set_in_javascript_when_we/

<!-- SC_OFF -->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. <!-- SC_ON --> submitted by /u/hamzafullstack (https://www.reddit.com/user/hamzafullstack)
[link] (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) [comments] (https://www.reddit.com/r/programming/comments/1vsbdb9/why_do_we_need_map_and_set_in_javascript_when_we/)
flex: 1 and flex: 1 1 auto are not interchangeable when the parent has no definite height
https://www.reddit.com/r/programming/comments/1vtbrzy/flex_1_and_flex_1_1_auto_are_not_interchangeable/

<!-- SC_OFF -->Short version, so you do not have to click: flex: 1 expands to flex: 1 1 0%. That 0% is a percentage basis and resolves against the parent's height. A panel that is height: auto under a max-height cap has no definite height, so the percentage has nothing to resolve against and the child contributes zero. flex: 1 1 auto fixes it, because the basis becomes the content's own height. The reason it took me an evening: Chromium quietly does what you meant, and the engine that broke it was WKWebView. Every test was green because Playwright ships its own WebKit build rather than the system one. I have not worked out whether the spec requires that collapse or merely permits it, so I cannot say which engine is wrong. If you know which reading applies to a max-height-capped auto-height parent, I would like to hear it. <!-- SC_ON --> submitted by /u/HolidayChard9706 (https://www.reddit.com/user/HolidayChard9706)
[link] (https://nodreview.com/blog/wkwebview-flex-collapse/) [comments] (https://www.reddit.com/r/programming/comments/1vtbrzy/flex_1_and_flex_1_1_auto_are_not_interchangeable/)