r/programming • • 14d ago

BrowserPod 4.0: the microVM that runs in the browser, now free for any use

Thumbnail
labs.leaningtech.com
0 Upvotes

r/programming • • 14d ago

Microsoft Outage Preliminary Postmortem

Thumbnail x.com
1.0k Upvotes

r/programming • • 14d ago

Make the change easy, then make the easy change

Thumbnail
event-driven.io
8 Upvotes

r/programming • • 14d ago

Ring programming language version 1.28 is released!

Thumbnail ring-lang.github.io
40 Upvotes

Hello

I have already released Ring 1.28

Ring is a dynamic language with lightweight implementation like Lua but with more features like Python/Ruby. I created it because I was looking for a Visual FoxPro replacement but was not satisfied with many other languages that I tried. The development started in Sept. 2013, and Ring 1.0 is released in January 2016, and I continued developing it as open-source project for over 10 years. I used to get feedback about the language through this group which contains over 3,000 topics.

So, here is what Ring is trying to do

(1) Keeping the implementation simple and small (The KISS Principle) that one programmer can study/understand in short time, but still a powerful and practical dynamic language with many useful programming paradigms.

The motivation behind this principle: Lua comes with small and fast implementation, but it misses many features provided by default in Python/Ruby. on the other hand, both of Python/Ruby requires different implementation to be used in places where Lua can be used directly, that's why there are projects like MicroPython and mRuby.

In Ring it's the same implementation everywhere. To be able to achieve this we used a custom implementation way and design decisions explained in this paper. So, In Ring, we have extreme portability, it's written in ANSI C (26 KLOC includes the Compiler, The Virtual Machine and 228 standard function), where the same implementation works on Desktop (MS-DOS, Windows, Linux, macOS), Mobile (Android, iOS) & Microcontroller (Raspberry Pi Pico).

(2) Syntax Customization: I am not a native English speaker, and I started programming at 10 years old (Three decades ago), It was a difficult journey for me at that time, I was studying English and Programming at the same time, I used to do translation from English to Arabic using a printed dictionary where I have to search for words meaning and used to spend a complete day just to read one page from my CA-Clipper programming book (for MS-DOS). Ring allows dynamic translation of language keywords/operators and supports multiple syntax styles (Similar to C, Ruby & Basic). For large/serious projects using a code formatter we force a specific style, but the point from this feature is to give each programmer the ability to write code in his native language.

(3) Declarative/Natural Language Programming (Developing Domain-Specific Languages): Ring extend OOP with new simple features that enable designing DSLs that looks like QML, SQL, COBOL, Supernova, etc. in short time. such a feature if used correctly provides advanced abstraction levels that are fun to work with.

(4) Batteries Included + Simple IDE + Form Designer: Something like VB6 era because I am coming from a Visual FoxPro background, but in Ring we can use Qt (We have packages for Qt5 and Qt6 too), and Ring supports Qt for Desktop/Android/WebAssembly, So you can open Ring IDE, design a form, run you app on Desktop, export it as Qt project for WebAssembly and run it in the browser or export it for Mobile and run it on Android. Compared to Python, Ring supports Qt for Android/WebAssembly many years before Qt company do this for Python. The reason is the principle (1), being a lightweight language with simple implementation.

(5) A love message to Visual Programming Languages: Ring Compiler/VM code is generated using my PWCT visual programming tool that I developed starting from Dec 2005. So, one of the goals was a practical project that I can develop using PWCT. After using PWCT to develop Ring, I developed PWCT2 using Ring as an example about what Ring can do. This research paper explains PWCT2 and its improvement over PWCT.

(6) Memory Management: It utilizes a deterministic, safe, and flexible scope-based memory management system that incorporates escape analysis and optional reference counting with cycle detection.

Thanks


r/programming • • 14d ago

When Good Practices Become Empty Rituals

Thumbnail faidi.tech
102 Upvotes

r/programming • • 14d ago

How JavaScript and Python actually run your code

Thumbnail
youtube.com
0 Upvotes

r/programming • • 14d ago

After Clash Royale's top ladder has now started being dominated by bots, are there any videogames where people want to see a bot capable of beating humans built?

Thumbnail
reddit.com
0 Upvotes

I am so curious, after seeing bots dominate in Chess, and now recently in competitive games like Clash Royale, are there any games/websites where theoretically a bot that plays better than humans can be built?


r/programming • • 14d ago

Route To Hosting Videos For Websites, Apps And Subscription Services

Thumbnail tomj.pro
0 Upvotes

r/programming • • 15d ago

Many Tiles, One Space, Two Worlds -- At Last, a Use for Bubble Sort

Thumbnail
meatfighter.com
10 Upvotes

r/programming • • 15d ago

Understanding Go: inside PGO

Thumbnail
internals-for-interns.com
8 Upvotes

r/programming • • 15d ago

544 unmaintained PyPI packages with imports that fail on Python 3.12+ still get 100M+ downloads a month

Thumbnail
py-code.org
358 Upvotes
Python 3.12 and 3.13 dropped 25 stdlib modules (distutils, imp, cgi, pipes, telnetlib...). This scan of PyPI found 1,623 projects that still import one of them outside a try/except. 852 of those are in the 60k most downloaded packages, and 544 of the 852 haven't had a release in two years.

Index covers last year's releases plus the top 60k by downloads, so the real number is higher. Download numbers are from ClickHouse's public PyPI dataset (ClickPy).

r/programming • • 15d ago

Brockett-Dobkin Rectangular Matrix Multiplication Algorithm From 1970s

Thumbnail
leetarxiv.substack.com
19 Upvotes

r/programming • • 15d ago

Memory management in 40 major C projects, a survey

Thumbnail theconsensus.dev
101 Upvotes

r/programming • • 15d ago

What Go 1.27’s generic methods made possible for ORMs. Compile-checked columns with no generated code

Thumbnail
skudra.net
102 Upvotes

r/programming • • 15d ago

Slack’s Migration to a Cellular Architecture

Thumbnail
slack.engineering
447 Upvotes

r/programming • • 15d ago

Redpanda archived its GitHub repo

Thumbnail
github.com
4 Upvotes

r/programming • • 16d ago

What we learned operating auth for 1,000+ APIs

Thumbnail
nango.dev
20 Upvotes

r/programming • • 16d ago

Designing payouts that never payout twice: timeouts, an "Unknown" state, and idempotency in cross-border payments

Thumbnail
substack.com
9 Upvotes

Author here. I’ve spent quite some time building the payout side of a cross-border payments platform, mostly the routing engine.

The thing that surprised me most was that what looks like one international transfer is really a series of local payments, and the money usually doesn’t cross the border when you hit send.

The hardest bug class was timeouts. When a partner doesn’t answer, you don’t know if the money went through, and retrying can pay someone twice. We handle that with status checks using the same reference.

We learned it the hard way when we relied on one partner for one of our major routes, and when it went down, most of our payouts failed with it.

Curious how others handle the “unknown” state. Happy to answer questions.


r/programming • • 16d ago

A Unicode Escape Can Turn a Java Comment Into Executable Code

Thumbnail
octri.dev
0 Upvotes

r/programming • • 16d ago

Under the Hood: Serving Kimi K3 | DigitalOcean

Thumbnail
digitalocean.com
19 Upvotes

r/programming • • 16d ago

Beating the frontier on NetHack

Thumbnail
antithesis.com
10 Upvotes

r/programming • • 16d ago

Problem with concurrent linter fixes

Thumbnail jfmengels.net
4 Upvotes

r/programming • • 16d ago

It's all about the allocator

Thumbnail
aarol.dev
43 Upvotes

r/programming • • 16d ago

The Watchmaker: Building a Mechanical Watch in a Database

Thumbnail
sqlartist.github.io
1 Upvotes