Writing Load Balancer From Scratch In 250 Line of Code - Beginner Friendly
https://www.reddit.com/r/programming/comments/1lbt3wb/writing_load_balancer_from_scratch_in_250_line_of/
submitted by /u/Sushant098123 (https://www.reddit.com/user/Sushant098123)
[link] (https://beyondthesyntax.substack.com/p/writing-load-balancer-from-scratch) [comments] (https://www.reddit.com/r/programming/comments/1lbt3wb/writing_load_balancer_from_scratch_in_250_line_of/)
https://www.reddit.com/r/programming/comments/1lbt3wb/writing_load_balancer_from_scratch_in_250_line_of/
submitted by /u/Sushant098123 (https://www.reddit.com/user/Sushant098123)
[link] (https://beyondthesyntax.substack.com/p/writing-load-balancer-from-scratch) [comments] (https://www.reddit.com/r/programming/comments/1lbt3wb/writing_load_balancer_from_scratch_in_250_line_of/)
Lessons From 9 More Years of Tricky Bugs
https://www.reddit.com/r/programming/comments/1lbvoph/lessons_from_9_more_years_of_tricky_bugs/
submitted by /u/henrik_w (https://www.reddit.com/user/henrik_w)
[link] (https://henrikwarne.com/2025/06/15/lessons-from-9-more-years-of-tricky-bugs/) [comments] (https://www.reddit.com/r/programming/comments/1lbvoph/lessons_from_9_more_years_of_tricky_bugs/)
https://www.reddit.com/r/programming/comments/1lbvoph/lessons_from_9_more_years_of_tricky_bugs/
submitted by /u/henrik_w (https://www.reddit.com/user/henrik_w)
[link] (https://henrikwarne.com/2025/06/15/lessons-from-9-more-years-of-tricky-bugs/) [comments] (https://www.reddit.com/r/programming/comments/1lbvoph/lessons_from_9_more_years_of_tricky_bugs/)
[Package Release] Progressive JSON Streamer for PHP — inspired by Dan Abramov’s Progressive JSON → Laravel ready
https://www.reddit.com/r/programming/comments/1lbwi4g/package_release_progressive_json_streamer_for_php/
<!-- SC_OFF -->Hey everyone, I just released a small open-source package I built after watching Dan Abramov’s Progressive JSON video.
👉 youtube.com/watch/MaMQLNBZz64 (https://www.youtube.com/watch?v=MaMQLNBZz64&ab_channel=DanAbramov) The idea is to send a base JSON skeleton immediately, and stream placeholders progressively as your app resolves slower data (DB/API/etc).
→ Works great with React Suspense / Vue Suspense / dashboards / large APIs. ✅ Laravel ready → works with response()->stream()
✅ Vue / React friendly → tested with simple JS client
✅ Supports nested placeholders → root.nested style
✅ Breadth-first streaming (vs depth-first) GitHub repo:
👉 https://github.com/egyjs/progressive-json-php Would love to get your feedback — and especially curious if anyone sees other cool use cases inside Laravel apps. Happy to answer any questions — cheers 🚀. <!-- SC_ON --> submitted by /u/Ok-Standard-5778 (https://www.reddit.com/user/Ok-Standard-5778)
[link] (https://github.com/egyjs/progressive-json-php) [comments] (https://www.reddit.com/r/programming/comments/1lbwi4g/package_release_progressive_json_streamer_for_php/)
https://www.reddit.com/r/programming/comments/1lbwi4g/package_release_progressive_json_streamer_for_php/
<!-- SC_OFF -->Hey everyone, I just released a small open-source package I built after watching Dan Abramov’s Progressive JSON video.
👉 youtube.com/watch/MaMQLNBZz64 (https://www.youtube.com/watch?v=MaMQLNBZz64&ab_channel=DanAbramov) The idea is to send a base JSON skeleton immediately, and stream placeholders progressively as your app resolves slower data (DB/API/etc).
→ Works great with React Suspense / Vue Suspense / dashboards / large APIs. ✅ Laravel ready → works with response()->stream()
✅ Vue / React friendly → tested with simple JS client
✅ Supports nested placeholders → root.nested style
✅ Breadth-first streaming (vs depth-first) GitHub repo:
👉 https://github.com/egyjs/progressive-json-php Would love to get your feedback — and especially curious if anyone sees other cool use cases inside Laravel apps. Happy to answer any questions — cheers 🚀. <!-- SC_ON --> submitted by /u/Ok-Standard-5778 (https://www.reddit.com/user/Ok-Standard-5778)
[link] (https://github.com/egyjs/progressive-json-php) [comments] (https://www.reddit.com/r/programming/comments/1lbwi4g/package_release_progressive_json_streamer_for_php/)
Supercharging DevX: Getting more from AI Coding
https://www.reddit.com/r/programming/comments/1lc0c06/supercharging_devx_getting_more_from_ai_coding/
submitted by /u/ShMcK (https://www.reddit.com/user/ShMcK)
[link] (https://open.substack.com/pub/shmck/p/devx-for-ai?r=28t2g7&utm_campaign=post&utm_medium=web) [comments] (https://www.reddit.com/r/programming/comments/1lc0c06/supercharging_devx_getting_more_from_ai_coding/)
https://www.reddit.com/r/programming/comments/1lc0c06/supercharging_devx_getting_more_from_ai_coding/
submitted by /u/ShMcK (https://www.reddit.com/user/ShMcK)
[link] (https://open.substack.com/pub/shmck/p/devx-for-ai?r=28t2g7&utm_campaign=post&utm_medium=web) [comments] (https://www.reddit.com/r/programming/comments/1lc0c06/supercharging_devx_getting_more_from_ai_coding/)
Mintkit - Dynamic Framework that allows you to adjust content in a more customizable way.
https://www.reddit.com/r/programming/comments/1lc169a/mintkit_dynamic_framework_that_allows_you_to/
<!-- SC_OFF -->Mintkit is a comprehensive JavaScript framework designed to streamline web development by providing dynamic content management capabilities in a single, unified solution.
It simplifies the website creation process while maintaining flexibility and performance, allowing you to focus on creating innovative web applications. 🌐✨ Github Repository Peakk2011/Mintkit: Dynamic Framework that allows you to adjust content in a more customizable way. (https://github.com/Peakk2011/Mintkit) <!-- SC_ON --> submitted by /u/PracticalSource8942 (https://www.reddit.com/user/PracticalSource8942)
[link] (https://github.com/Peakk2011/Mintkit) [comments] (https://www.reddit.com/r/programming/comments/1lc169a/mintkit_dynamic_framework_that_allows_you_to/)
https://www.reddit.com/r/programming/comments/1lc169a/mintkit_dynamic_framework_that_allows_you_to/
<!-- SC_OFF -->Mintkit is a comprehensive JavaScript framework designed to streamline web development by providing dynamic content management capabilities in a single, unified solution.
It simplifies the website creation process while maintaining flexibility and performance, allowing you to focus on creating innovative web applications. 🌐✨ Github Repository Peakk2011/Mintkit: Dynamic Framework that allows you to adjust content in a more customizable way. (https://github.com/Peakk2011/Mintkit) <!-- SC_ON --> submitted by /u/PracticalSource8942 (https://www.reddit.com/user/PracticalSource8942)
[link] (https://github.com/Peakk2011/Mintkit) [comments] (https://www.reddit.com/r/programming/comments/1lc169a/mintkit_dynamic_framework_that_allows_you_to/)
Help noob just wanting to host a game made by AI (Google AI Studio > GitHub Pages issue)
https://www.reddit.com/r/programming/comments/1lc1785/help_noob_just_wanting_to_host_a_game_made_by_ai/
<!-- SC_OFF -->I'm completely new to web dev and hosting. I made a browser game using Google AI Studio — it runs perfectly within the Google AI Studio platform. But when I export the project files and try to host the game on GitHub Pages, it just shows a blank page. The index.html loads (URL works), but nothing appears — no visuals, no content, no errors in the console either. From what I understand: The project is a basic HTML/JS/CSS structure The files are split into multiple scripts and folders (I told the AI to make like this because it works better in the Studio) It seems like Google AI Studio may be referencing things in a way that doesn’t translate well to static hosting Has anyone successfully exported a Google AI Studio project and hosted it on GitHub Pages? If someone can help me, thanks in advance. This is the repository : https://github.com/Piobox10/ovoclicker
This is the url: https://piobox10.github.io/ovoclicker/ <!-- SC_ON --> submitted by /u/Fantastic-Dare-9564 (https://www.reddit.com/user/Fantastic-Dare-9564)
[link] (https://github.com/Piobox10/ovoclicker) [comments] (https://www.reddit.com/r/programming/comments/1lc1785/help_noob_just_wanting_to_host_a_game_made_by_ai/)
https://www.reddit.com/r/programming/comments/1lc1785/help_noob_just_wanting_to_host_a_game_made_by_ai/
<!-- SC_OFF -->I'm completely new to web dev and hosting. I made a browser game using Google AI Studio — it runs perfectly within the Google AI Studio platform. But when I export the project files and try to host the game on GitHub Pages, it just shows a blank page. The index.html loads (URL works), but nothing appears — no visuals, no content, no errors in the console either. From what I understand: The project is a basic HTML/JS/CSS structure The files are split into multiple scripts and folders (I told the AI to make like this because it works better in the Studio) It seems like Google AI Studio may be referencing things in a way that doesn’t translate well to static hosting Has anyone successfully exported a Google AI Studio project and hosted it on GitHub Pages? If someone can help me, thanks in advance. This is the repository : https://github.com/Piobox10/ovoclicker
This is the url: https://piobox10.github.io/ovoclicker/ <!-- SC_ON --> submitted by /u/Fantastic-Dare-9564 (https://www.reddit.com/user/Fantastic-Dare-9564)
[link] (https://github.com/Piobox10/ovoclicker) [comments] (https://www.reddit.com/r/programming/comments/1lc1785/help_noob_just_wanting_to_host_a_game_made_by_ai/)
Nuke-KV : We made a Key-Value Store that's like Redis, but... faster. Way faster ⚡
https://www.reddit.com/r/programming/comments/1lc19pc/nukekv_we_made_a_keyvalue_store_thats_like_redis/
<!-- SC_OFF -->We've built Nuke-KV , a high-performance key-value store that achieves 200K-800K operations per second using Node.js . The performance gains come from several key optimizations : command pipelining to reduce network overhead, LRU cache with efficient memory management, worker thread parallelization, and batched persistence with dirty tracking. This represents a 18,000x improvement over baseline Node.js performance and demonstrates competitive throughput with Redis while maintaining a lightweight, customizable architecture. Current release ( v1.0 ) prioritizes performance over feature completeness, with rapid feature development planned for subsequent versions . Stay Tuned and support guys ⚡☢️ . Here is the Direct Github Link : https://github.com/Akshat-Diwedi/nuke-kv . <!-- SC_ON --> submitted by /u/Firm_Mission_7143 (https://www.reddit.com/user/Firm_Mission_7143)
[link] (https://github.com/Akshat-Diwedi/nuke-kv) [comments] (https://www.reddit.com/r/programming/comments/1lc19pc/nukekv_we_made_a_keyvalue_store_thats_like_redis/)
https://www.reddit.com/r/programming/comments/1lc19pc/nukekv_we_made_a_keyvalue_store_thats_like_redis/
<!-- SC_OFF -->We've built Nuke-KV , a high-performance key-value store that achieves 200K-800K operations per second using Node.js . The performance gains come from several key optimizations : command pipelining to reduce network overhead, LRU cache with efficient memory management, worker thread parallelization, and batched persistence with dirty tracking. This represents a 18,000x improvement over baseline Node.js performance and demonstrates competitive throughput with Redis while maintaining a lightweight, customizable architecture. Current release ( v1.0 ) prioritizes performance over feature completeness, with rapid feature development planned for subsequent versions . Stay Tuned and support guys ⚡☢️ . Here is the Direct Github Link : https://github.com/Akshat-Diwedi/nuke-kv . <!-- SC_ON --> submitted by /u/Firm_Mission_7143 (https://www.reddit.com/user/Firm_Mission_7143)
[link] (https://github.com/Akshat-Diwedi/nuke-kv) [comments] (https://www.reddit.com/r/programming/comments/1lc19pc/nukekv_we_made_a_keyvalue_store_thats_like_redis/)
gRPC vs REST | Performance, Benchmarks & Real-World Guide
https://www.reddit.com/r/programming/comments/1lc1mcn/grpc_vs_rest_performance_benchmarks_realworld/
<!-- SC_OFF -->🔥 In this video, we dive deep into gRPC vs REST — two of the most popular API architectures. If you're a backend engineer, system architect, or developer wondering which one to use, this video is for you. We explore real benchmark results, architecture breakdowns, and when to use REST vs gRPC in production. ✅ Learn about performance differences
🚀 See real-world gRPC vs REST benchmarks
🛠 Understand use cases, tooling, streaming, developer experience
🔧 Make smarter API design decisions in 2025 and beyond <!-- SC_ON --> submitted by /u/integrationninjas (https://www.reddit.com/user/integrationninjas)
[link] (https://www.youtube.com/watch?v=w6H3uRTcKDg) [comments] (https://www.reddit.com/r/programming/comments/1lc1mcn/grpc_vs_rest_performance_benchmarks_realworld/)
https://www.reddit.com/r/programming/comments/1lc1mcn/grpc_vs_rest_performance_benchmarks_realworld/
<!-- SC_OFF -->🔥 In this video, we dive deep into gRPC vs REST — two of the most popular API architectures. If you're a backend engineer, system architect, or developer wondering which one to use, this video is for you. We explore real benchmark results, architecture breakdowns, and when to use REST vs gRPC in production. ✅ Learn about performance differences
🚀 See real-world gRPC vs REST benchmarks
🛠 Understand use cases, tooling, streaming, developer experience
🔧 Make smarter API design decisions in 2025 and beyond <!-- SC_ON --> submitted by /u/integrationninjas (https://www.reddit.com/user/integrationninjas)
[link] (https://www.youtube.com/watch?v=w6H3uRTcKDg) [comments] (https://www.reddit.com/r/programming/comments/1lc1mcn/grpc_vs_rest_performance_benchmarks_realworld/)
CMake support for ImGui
https://www.reddit.com/r/programming/comments/1lc1ocj/cmake_support_for_imgui/
submitted by /u/AltitudeZero_ (https://www.reddit.com/user/AltitudeZero_)
[link] (https://github.com/adembudak/CMakeForImGui) [comments] (https://www.reddit.com/r/programming/comments/1lc1ocj/cmake_support_for_imgui/)
https://www.reddit.com/r/programming/comments/1lc1ocj/cmake_support_for_imgui/
submitted by /u/AltitudeZero_ (https://www.reddit.com/user/AltitudeZero_)
[link] (https://github.com/adembudak/CMakeForImGui) [comments] (https://www.reddit.com/r/programming/comments/1lc1ocj/cmake_support_for_imgui/)
Software Engineering Talent is Gold Right Now (Because of o3)
https://www.reddit.com/r/programming/comments/1lc5pp2/software_engineering_talent_is_gold_right_now/
submitted by /u/gametorch (https://www.reddit.com/user/gametorch)
[link] (https://gametorch.app/blog/software-engineering-talent) [comments] (https://www.reddit.com/r/programming/comments/1lc5pp2/software_engineering_talent_is_gold_right_now/)
https://www.reddit.com/r/programming/comments/1lc5pp2/software_engineering_talent_is_gold_right_now/
submitted by /u/gametorch (https://www.reddit.com/user/gametorch)
[link] (https://gametorch.app/blog/software-engineering-talent) [comments] (https://www.reddit.com/r/programming/comments/1lc5pp2/software_engineering_talent_is_gold_right_now/)
I built a FastAPI reverse-proxy that adds runtime guardrails to any LLM API—here’s how it works
https://www.reddit.com/r/programming/comments/1lc5qzx/i_built_a_fastapi_reverseproxy_that_adds_runtime/
<!-- SC_OFF -->I kept gluing large-language models into apps, then scrambling after the fact to stop prompt injections, secret leaks, or the odd “spicy” completion. So I wrote a tiny network layer to do that up front. Pure Python stack – FastAPI + Uvicorn, no C extensions. Hot-reloaded policies – a YAML file describes each rule (PII detection with Presidio, profanity classifier, fuzzy match for internal keys, etc.). Actions – block, redact, observe, or retry; the proxy tags every response with a safety header so callers can decide what to do. Extensibility – drop a Validator subclass anywhere on the import path and the gateway picks it up at startup. A minimal benchmark (PII + profanity policies, local HF models, M2 laptop) shows ≈35 ms median overhead per request. If you’d like to skim code, poke holes in the security model, or suggest better perf tricks, I’d appreciate it. <!-- SC_ON --> submitted by /u/Consistent_Equal5327 (https://www.reddit.com/user/Consistent_Equal5327)
[link] (https://github.com/trylonai/gateway) [comments] (https://www.reddit.com/r/programming/comments/1lc5qzx/i_built_a_fastapi_reverseproxy_that_adds_runtime/)
https://www.reddit.com/r/programming/comments/1lc5qzx/i_built_a_fastapi_reverseproxy_that_adds_runtime/
<!-- SC_OFF -->I kept gluing large-language models into apps, then scrambling after the fact to stop prompt injections, secret leaks, or the odd “spicy” completion. So I wrote a tiny network layer to do that up front. Pure Python stack – FastAPI + Uvicorn, no C extensions. Hot-reloaded policies – a YAML file describes each rule (PII detection with Presidio, profanity classifier, fuzzy match for internal keys, etc.). Actions – block, redact, observe, or retry; the proxy tags every response with a safety header so callers can decide what to do. Extensibility – drop a Validator subclass anywhere on the import path and the gateway picks it up at startup. A minimal benchmark (PII + profanity policies, local HF models, M2 laptop) shows ≈35 ms median overhead per request. If you’d like to skim code, poke holes in the security model, or suggest better perf tricks, I’d appreciate it. <!-- SC_ON --> submitted by /u/Consistent_Equal5327 (https://www.reddit.com/user/Consistent_Equal5327)
[link] (https://github.com/trylonai/gateway) [comments] (https://www.reddit.com/r/programming/comments/1lc5qzx/i_built_a_fastapi_reverseproxy_that_adds_runtime/)
Improving my previous OpenRewrite recipe
https://www.reddit.com/r/programming/comments/1lc83lj/improving_my_previous_openrewrite_recipe/
submitted by /u/nfrankel (https://www.reddit.com/user/nfrankel)
[link] (https://blog.frankel.ch/openrewrite-recipes/2/) [comments] (https://www.reddit.com/r/programming/comments/1lc83lj/improving_my_previous_openrewrite_recipe/)
https://www.reddit.com/r/programming/comments/1lc83lj/improving_my_previous_openrewrite_recipe/
submitted by /u/nfrankel (https://www.reddit.com/user/nfrankel)
[link] (https://blog.frankel.ch/openrewrite-recipes/2/) [comments] (https://www.reddit.com/r/programming/comments/1lc83lj/improving_my_previous_openrewrite_recipe/)
The State of Engineering Leadership in 2025
https://www.reddit.com/r/programming/comments/1lc95pd/the_state_of_engineering_leadership_in_2025/
submitted by /u/gregorojstersek (https://www.reddit.com/user/gregorojstersek)
[link] (https://newsletter.eng-leadership.com/p/the-state-of-engineering-leadership) [comments] (https://www.reddit.com/r/programming/comments/1lc95pd/the_state_of_engineering_leadership_in_2025/)
https://www.reddit.com/r/programming/comments/1lc95pd/the_state_of_engineering_leadership_in_2025/
submitted by /u/gregorojstersek (https://www.reddit.com/user/gregorojstersek)
[link] (https://newsletter.eng-leadership.com/p/the-state-of-engineering-leadership) [comments] (https://www.reddit.com/r/programming/comments/1lc95pd/the_state_of_engineering_leadership_in_2025/)
A directory showcasing companies using Ruby on Rails
https://www.reddit.com/r/programming/comments/1lcbxti/a_directory_showcasing_companies_using_ruby_on/
submitted by /u/mehdifarsi (https://www.reddit.com/user/mehdifarsi)
[link] (https://www.rubycademy.com/companies) [comments] (https://www.reddit.com/r/programming/comments/1lcbxti/a_directory_showcasing_companies_using_ruby_on/)
https://www.reddit.com/r/programming/comments/1lcbxti/a_directory_showcasing_companies_using_ruby_on/
submitted by /u/mehdifarsi (https://www.reddit.com/user/mehdifarsi)
[link] (https://www.rubycademy.com/companies) [comments] (https://www.reddit.com/r/programming/comments/1lcbxti/a_directory_showcasing_companies_using_ruby_on/)
Just found this: Visual multi-agent AI platform in closed beta
https://www.reddit.com/r/programming/comments/1lck2vi/just_found_this_visual_multiagent_ai_platform_in/
<!-- SC_OFF -->Came across something called Neura Agent — a visual platform where you build workflows with multiple autonomous AI agents.
Each agent does a different task and they interact to complete more complex goals. It’s currently in closed beta. Looks like a mix between AI agents + no-code tools like Zapier.
Here's the beta announcement I found: <!-- SC_ON --> submitted by /u/Happy-Reputation-525 (https://www.reddit.com/user/Happy-Reputation-525)
[link] (https://www.linkedin.com/posts/neuraparse_closedbeta-neuraagent-aiinprogress-activity-7339524347868393472-cs0A/) [comments] (https://www.reddit.com/r/programming/comments/1lck2vi/just_found_this_visual_multiagent_ai_platform_in/)
https://www.reddit.com/r/programming/comments/1lck2vi/just_found_this_visual_multiagent_ai_platform_in/
<!-- SC_OFF -->Came across something called Neura Agent — a visual platform where you build workflows with multiple autonomous AI agents.
Each agent does a different task and they interact to complete more complex goals. It’s currently in closed beta. Looks like a mix between AI agents + no-code tools like Zapier.
Here's the beta announcement I found: <!-- SC_ON --> submitted by /u/Happy-Reputation-525 (https://www.reddit.com/user/Happy-Reputation-525)
[link] (https://www.linkedin.com/posts/neuraparse_closedbeta-neuraagent-aiinprogress-activity-7339524347868393472-cs0A/) [comments] (https://www.reddit.com/r/programming/comments/1lck2vi/just_found_this_visual_multiagent_ai_platform_in/)
Learning Programming, the wrong way Edition
https://www.reddit.com/r/programming/comments/1lcltky/learning_programming_the_wrong_way_edition/
<!-- SC_OFF -->In your experience and opinion, whats the worst amd most inefficient way someone could start Learning to program (or any programming language ) nowadays? <!-- SC_ON --> submitted by /u/merotatox (https://www.reddit.com/user/merotatox)
[link] (https://www.wikihow.com/Start-Learning-to-Program) [comments] (https://www.reddit.com/r/programming/comments/1lcltky/learning_programming_the_wrong_way_edition/)
https://www.reddit.com/r/programming/comments/1lcltky/learning_programming_the_wrong_way_edition/
<!-- SC_OFF -->In your experience and opinion, whats the worst amd most inefficient way someone could start Learning to program (or any programming language ) nowadays? <!-- SC_ON --> submitted by /u/merotatox (https://www.reddit.com/user/merotatox)
[link] (https://www.wikihow.com/Start-Learning-to-Program) [comments] (https://www.reddit.com/r/programming/comments/1lcltky/learning_programming_the_wrong_way_edition/)
I built a language that solves 400+ LeetCode problems and compiles to Python, Go, and TypeScript
https://www.reddit.com/r/programming/comments/1lcpd0r/i_built_a_language_that_solves_400_leetcode/
<!-- SC_OFF -->Hi all — I’ve been building Mochi (https://github.com/mochilang/mochi), a small statically typed language that compiles to Python, Go, and TypeScript. This week I hit a fun milestone: over 400 LeetCode problems solved in Mochi — and compiled to all three languages — in about 4 days. Mochi is designed to let you write a clean solution once, and run it anywhere. Here's what it looks like in practice: ✅ Compiled 232/implement-queue-using-stacks.mochi → go/py/ts in 2032 ms ✅ Compiled 233/number-of-digit-one.mochi → go/py/ts in 1975 ms ✅ Compiled 234/palindrome-linked-list.mochi → go/py/ts in 1975 ms ✅ Compiled 235/lowest-common-ancestor-bst.mochi → go/py/ts in 1914 ms ✅ Compiled 236/lowest-common-ancestor.mochi → go/py/ts in 2057 ms ✅ Compiled 237/delete-node-in-linked-list.mochi → go/py/ts in 1852 ms Each .mochi file contains the solution, inline tests, and can be compiled to idiomatic code in any of the targets. Example test output: 23/merge-k-sorted-lists.mochi test example 1 ... ok (264.0µs) test example 2 ... ok (11.0µs) test example 3 ... ok (19.0µs) 141/linked-list-cycle.mochi test example 1 ... ok (92.0µs) test example 2 ... ok (43.0µs) test example 3 ... ok (7.0µs) What’s cool (to me at least) is that Mochi isn’t just syntax sugar or a toy compiler — it actually typechecks, supports inline testing, and lets you call functions from Go, Python, or TypeScript directly. The goal is to solve the problem once, test it once, and let the compiler deal with the rest. You can check out all the LeetCode problems here:
👉 https://github.com/mochilang/mochi/tree/main/examples/leetcode Would love feedback if you’re into language design, compilers, or even just curious how a multi-target language like this works under the hood. Happy to answer anything if you're curious! <!-- SC_ON --> submitted by /u/Adept-Country4317 (https://www.reddit.com/user/Adept-Country4317)
[link] (https://github.com/mochilang/mochi/pull/1088) [comments] (https://www.reddit.com/r/programming/comments/1lcpd0r/i_built_a_language_that_solves_400_leetcode/)
https://www.reddit.com/r/programming/comments/1lcpd0r/i_built_a_language_that_solves_400_leetcode/
<!-- SC_OFF -->Hi all — I’ve been building Mochi (https://github.com/mochilang/mochi), a small statically typed language that compiles to Python, Go, and TypeScript. This week I hit a fun milestone: over 400 LeetCode problems solved in Mochi — and compiled to all three languages — in about 4 days. Mochi is designed to let you write a clean solution once, and run it anywhere. Here's what it looks like in practice: ✅ Compiled 232/implement-queue-using-stacks.mochi → go/py/ts in 2032 ms ✅ Compiled 233/number-of-digit-one.mochi → go/py/ts in 1975 ms ✅ Compiled 234/palindrome-linked-list.mochi → go/py/ts in 1975 ms ✅ Compiled 235/lowest-common-ancestor-bst.mochi → go/py/ts in 1914 ms ✅ Compiled 236/lowest-common-ancestor.mochi → go/py/ts in 2057 ms ✅ Compiled 237/delete-node-in-linked-list.mochi → go/py/ts in 1852 ms Each .mochi file contains the solution, inline tests, and can be compiled to idiomatic code in any of the targets. Example test output: 23/merge-k-sorted-lists.mochi test example 1 ... ok (264.0µs) test example 2 ... ok (11.0µs) test example 3 ... ok (19.0µs) 141/linked-list-cycle.mochi test example 1 ... ok (92.0µs) test example 2 ... ok (43.0µs) test example 3 ... ok (7.0µs) What’s cool (to me at least) is that Mochi isn’t just syntax sugar or a toy compiler — it actually typechecks, supports inline testing, and lets you call functions from Go, Python, or TypeScript directly. The goal is to solve the problem once, test it once, and let the compiler deal with the rest. You can check out all the LeetCode problems here:
👉 https://github.com/mochilang/mochi/tree/main/examples/leetcode Would love feedback if you’re into language design, compilers, or even just curious how a multi-target language like this works under the hood. Happy to answer anything if you're curious! <!-- SC_ON --> submitted by /u/Adept-Country4317 (https://www.reddit.com/user/Adept-Country4317)
[link] (https://github.com/mochilang/mochi/pull/1088) [comments] (https://www.reddit.com/r/programming/comments/1lcpd0r/i_built_a_language_that_solves_400_leetcode/)
Working on databases from prison: How I got here, part 2.
https://www.reddit.com/r/programming/comments/1lctynm/working_on_databases_from_prison_how_i_got_here/
submitted by /u/avinassh (https://www.reddit.com/user/avinassh)
[link] (https://turso.tech/blog/working-on-databases-from-prison) [comments] (https://www.reddit.com/r/programming/comments/1lctynm/working_on_databases_from_prison_how_i_got_here/)
https://www.reddit.com/r/programming/comments/1lctynm/working_on_databases_from_prison_how_i_got_here/
submitted by /u/avinassh (https://www.reddit.com/user/avinassh)
[link] (https://turso.tech/blog/working-on-databases-from-prison) [comments] (https://www.reddit.com/r/programming/comments/1lctynm/working_on_databases_from_prison_how_i_got_here/)
CI/CD Observability with OpenTelemetry - A Step by Step Guide
https://www.reddit.com/r/programming/comments/1lcus5l/cicd_observability_with_opentelemetry_a_step_by/
submitted by /u/elizObserves (https://www.reddit.com/user/elizObserves)
[link] (https://signoz.io/blog/cicd-observability-with-opentelemetry/) [comments] (https://www.reddit.com/r/programming/comments/1lcus5l/cicd_observability_with_opentelemetry_a_step_by/)
https://www.reddit.com/r/programming/comments/1lcus5l/cicd_observability_with_opentelemetry_a_step_by/
submitted by /u/elizObserves (https://www.reddit.com/user/elizObserves)
[link] (https://signoz.io/blog/cicd-observability-with-opentelemetry/) [comments] (https://www.reddit.com/r/programming/comments/1lcus5l/cicd_observability_with_opentelemetry_a_step_by/)
Programming's Greatest Mistakes • Mark Rendle
https://www.reddit.com/r/programming/comments/1lcwfql/programmings_greatest_mistakes_mark_rendle/
<!-- SC_OFF -->Most of the time when we make mistakes in our code, a message gets displayed wrong or an invoice doesn’t get sent. But sometimes when people make mistakes in code, things literally explode, or bankrupt companies, or make web development a living hell for millions of programmers for years to come. Join Mark on a tour through some of the worst mistakes in the history of programming. Learn what went wrong, why it went wrong, how much it cost, and how things are really funny when they’re not happening to you. <!-- SC_ON --> submitted by /u/goto-con (https://www.reddit.com/user/goto-con)
[link] (https://youtu.be/Y9clBHENy4Q) [comments] (https://www.reddit.com/r/programming/comments/1lcwfql/programmings_greatest_mistakes_mark_rendle/)
https://www.reddit.com/r/programming/comments/1lcwfql/programmings_greatest_mistakes_mark_rendle/
<!-- SC_OFF -->Most of the time when we make mistakes in our code, a message gets displayed wrong or an invoice doesn’t get sent. But sometimes when people make mistakes in code, things literally explode, or bankrupt companies, or make web development a living hell for millions of programmers for years to come. Join Mark on a tour through some of the worst mistakes in the history of programming. Learn what went wrong, why it went wrong, how much it cost, and how things are really funny when they’re not happening to you. <!-- SC_ON --> submitted by /u/goto-con (https://www.reddit.com/user/goto-con)
[link] (https://youtu.be/Y9clBHENy4Q) [comments] (https://www.reddit.com/r/programming/comments/1lcwfql/programmings_greatest_mistakes_mark_rendle/)