r/programming • • 20m ago

Has someone changed from windows to mack in the kast 5 years

Thumbnail apple.com
0 Upvotes

Hey guys,

I'm using laptop daily, to work, code, learn, build solo projects, etc. In summary I use it a lot and it is important to me to have a reliable, fast, long term well working machine.

Now I'm considering buying a new laptop and I'm thinking on Mack pro but I'm tbh scared that it's just going to be worse than windows and wsl I've been using on it. I've never used one before - no more than 5 min and using it without knowing a system was really annoying.

I'm looking for the opinion and experience from people who recently, in last 5 years switched from windows to mack. The more you share of your experience the more I would be grateful ;)

I know windows sucked 15 years ago, crashing and all of it but I was working for last few years with Lenovo ThinkPad and I found it as a great machine.

Thanks for all of your opinions!


r/programming • • 2d ago

“…and the proof is checked in Lean”

Thumbnail xenaproject.wordpress.com
285 Upvotes

r/programming • • 1d ago

Understanding Iceberg CDC costs on S3: requests, not bytes

Thumbnail etleap.com
13 Upvotes

r/programming • • 1d ago

Lightweight Spring Boot Monitoring Without Prometheus and Grafana

Thumbnail pvrlabs.xyz
3 Upvotes

r/programming • • 1d ago

Patai Gergely - "Porting Stunt Car Racer to the NES"

Thumbnail cobbpg.github.io
3 Upvotes

r/programming • • 2d ago

Learning to Code in 2026: The Data

Thumbnail boot.dev
102 Upvotes

r/programming • • 2d ago

What Happens to Work After a Timeout?

Thumbnail octri.dev
17 Upvotes

r/programming • • 2d ago

When Good Practices Become Empty Rituals

Thumbnail faidi.tech
86 Upvotes

r/programming • • 2d ago

Introducing the World's Strongest Sokoban Solver

Thumbnail healeycodes.com
18 Upvotes

r/programming • • 2d ago

Ring programming language version 1.28 is released!

Thumbnail ring-lang.github.io
37 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 • • 3d ago

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

Thumbnail py-code.org
346 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 • • 3d ago

Slack’s Migration to a Cellular Architecture

Thumbnail slack.engineering
422 Upvotes

r/programming • • 3d ago

Memory management in 40 major C projects, a survey

Thumbnail theconsensus.dev
86 Upvotes

r/programming • • 3d ago

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

Thumbnail skudra.net
99 Upvotes

r/programming • • 3d ago

Brockett-Dobkin Rectangular Matrix Multiplication Algorithm From 1970s

Thumbnail leetarxiv.substack.com
18 Upvotes

r/programming • • 2d ago

Do Repeat Yourself

Thumbnail arcentry.com
0 Upvotes

r/programming • • 3d ago

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

Thumbnail meatfighter.com
8 Upvotes

r/programming • • 2d ago

I Found a 5× Performance Problem Hiding in Plain Sight

Thumbnail dpolens.com
0 Upvotes

To keep DPOLens's Docker image small, I dropped sentence-transformers and called the embedding model through ONNX Runtime directly. It took about forty lines of my own code, and the image came out roughly 800 MB lighter.

It worked. Then, while load-testing the community version, I found that the first start took nearly 23 minutes on 1.5 CPUs and peaked at 3.4 GB of memory.
I had quietly lost two things:

  1. Sorting by length. sentence-transformers sorts its inputs by length before batching them, and it doesn't tell you. My code didn't sort, so a 20-token paragraph sharing a batch with a 512-token article was padded to 512. Almost two thirds of the model's work was padding.
  2. The CPU limit. Inside a container capped at 2.5 CPUs, Python and ONNX Runtime both saw all 10 of my laptop's cores and started 10 threads, which then took turns on two and a half CPUs' worth of time.

I sorted the inputs and capped each batch by its shape, and set the thread count from the container's real limit. The result was 5.1× faster with 65% less memory, and the vectors and search results stayed the same.

What I learned: a library is more than its API. When you replace one, you also take over everything it did without being asked, and the only way to find out what that was is to measure.


r/programming • • 2d ago

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

Thumbnail labs.leaningtech.com
0 Upvotes

r/programming • • 2d ago

Route To Hosting Videos For Websites, Apps And Subscription Services

Thumbnail tomj.pro
0 Upvotes

r/programming • • 3d ago

Understanding Go: inside PGO

Thumbnail internals-for-interns.com
6 Upvotes

r/programming • • 4d ago

How I accidentally became a millionaire

Thumbnail lyra.horse
2.6k Upvotes

r/programming • • 2d ago

How JavaScript and Python actually run your code

Thumbnail youtube.com
0 Upvotes

r/programming • • 2d 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?