Reddit Programming
208 subscribers
1.22K photos
124K links
I will send you newest post from subreddit /r/programming
Download Telegram
NATS on edge - A distributed industrial mesh- MQ Summit Session 2025
https://www.reddit.com/r/programming/comments/1metu9x/nats_on_edge_a_distributed_industrial_mesh_mq/

<!-- SC_OFF -->100+ plants, billions of daily messages, 50+ applications Schaeffler built a global NATS mesh that just works Schaeffler's Max Arndt and Jean-Noel Moyne from Synadia spill the secrets at MQSummit 2025 <!-- SC_ON --> submitted by /u/Code_Sync (https://www.reddit.com/user/Code_Sync)
[link] (https://mqsummit.com/talks/nats-on-edge/) [comments] (https://www.reddit.com/r/programming/comments/1metu9x/nats_on_edge_a_distributed_industrial_mesh_mq/)
If i want to work in a game dev company what topics i need to know ?
https://www.reddit.com/r/programming/comments/1mf08q9/if_i_want_to_work_in_a_game_dev_company_what/

<!-- SC_OFF -->In the future, I'd like to work as a game developer. I searched for information about Nintendo, and it says:
Game Program Development
Those with the following work experience and skills, and an interest in making games more interesting: Game development experience, game engine development experience Experience in developing graphics, dynamics, AI, game frameworks, UI, and sound Development experience in C/C++ (required) So, do I need to study C++ related to graphics? I know a little bit of C++ (arrays, structs, vectors, variables, and a little bit of OOP), but I don’t know where to start. If you have any advice, I’d really appreciate it. <!-- SC_ON --> submitted by /u/Comett257 (https://www.reddit.com/user/Comett257)
[link] (https://www.portal.e2r.jp/fixurl/nintendo_career_job/id/4/2?ki=job00149) [comments] (https://www.reddit.com/r/programming/comments/1mf08q9/if_i_want_to_work_in_a_game_dev_company_what/)
Seed7: a programming language I plan to work on for decades
https://www.reddit.com/r/programming/comments/1mfldk0/seed7_a_programming_language_i_plan_to_work_on/

<!-- SC_OFF -->Seed7 is based on ideas from my diploma and doctoral theses about an extensible programming language (1984 and 1986). In 1989 development began on an interpreter and in 2005 the project was released as open source. Since then it is improved on a regular basis. Seed7 is about readability (https://seed7.net/faq.htm#readability), portability (https://seed7.net/faq.htm#portable), performance (https://seed7.net/scrshots/s7c.htm) and memory safety (https://seed7.net/faq.htm#memory_safety). There is an automatic memory management (https://seed7.net/faq.htm#garbage_collection), but there is no garbage collection process, that interrupts normal processing. The templates (https://seed7.net/manual/tutorial.htm#Templates) and generics (https://seed7.net/manual/decls.htm#Abstract_data_types) of Seed7 don't need special syntax. They are just normal functions, which are executed at compile-time. Seed7 is an extensible (https://seed7.net/faq.htm#extensible_programming) programming language. The syntax and semantics of statements (https://seed7.net/manual/stats.htm) (and abstract data types (https://seed7.net/manual/decls.htm#Abstract_data_type), etc.) is defined in libraries. The whole language is defined in the library "seed7_05.s7i". You can extend the language syntactically (https://seed7.net/manual/syntax.htm) and semantically (introduce new loops (https://seed7.net/manual/tutorial.htm#Declare_a_statement), etc.). In other languages the syntax and semantics of the language is hard-coded in the compiler. Seed7 checks for integer overflow (https://seed7.net/faq.htm#integer_overflow). You either get the correct result or an OVERFLOW_ERROR (https://seed7.net/manual/errors.htm#OVERFLOW_ERROR) is raised. Unlike many JVM based languages Seed7 compiles to machine code ahead of time (GRAAL works ahead of time but it struggles with reflection). Unlike many systems languages (except Rust) Seed7 is a memory safe (https://seed7.net/faq.htm#memory_safety) language. The Seed7 homepage (https://seed7.net/) contains the language documentation. The source code is at GitHub (https://github.com/ThomasMertes/seed7). Questions that are not in the FAQ (https://seed7.net/faq.htm) can be asked at r/seed7 (https://www.reddit.com/r/seed7/). Some programs written in Seed7 are: make7 (https://seed7.net/scrshots/make7.htm): a make utility. bas7 (https://seed7.net/scrshots/bas7.htm): a BASIC interpreter. pv7 (https://seed7.net/scrshots/pv7.htm): a Picture Viewer for BMP, GIF, ICO, JPEG, PBM, PGM, PNG, PPM and TIFF files. tar7 (https://seed7.net/scrshots/tar7.htm): a tar archiving utility. ftp7 (https://seed7.net/scrshots/ftp7.htm): an FTP Internet file transfer program. comanche (https://seed7.net/scrshots/comanche.htm): a simple web server for static HTML pages and CGI programs. Screenshots of Seed7 programs can be found here (https://seed7.net/scrshots/index.htm) and there is a demo page (https://seed7.net/demo.htm) with Seed7 programs, which can be executed in the browser. These programs have been compiled to JavaScript / WebAssembly. I recently released a new version (https://www.reddit.com/r/seed7/comments/1mch5bu/seed7_version_20250729_released_on_github_and_sf/) which added support to read TGA (https://seed7.net/libraries/tga.htm) images, added documentation and improved code quality. Please let me know what you think, and consider starring the project on GitHub (https://github.com/ThomasMertes/seed7), thanks! <!-- SC_ON --> submitted by /u/ThomasMertes (https://www.reddit.com/user/ThomasMertes)
[link] (https://seed7.net/) [comments] (https://www.reddit.com/r/programming/comments/1mfldk0/seed7_a_programming_language_i_plan_to_work_on/)
[P] Implemented the research paper “Memorizing Transformers” from scratch with my own additional modifications in architecture and customized training pipeline .
https://www.reddit.com/r/programming/comments/1mfmxas/p_implemented_the_research_paper_memorizing/

submitted by /u/Remarkable-Ad3290 (https://www.reddit.com/user/Remarkable-Ad3290)
[link] (https://huggingface.co/abhinavv3/GPT_with_Modified_Memorizing_Transformer) [comments] (https://www.reddit.com/r/programming/comments/1mfmxas/p_implemented_the_research_paper_memorizing/)
PatchworkOS: A from-scratch NON-POSIX OS strictly adhering to the "everything is a file" philosophy that I've been working on for... a very long while.
https://www.reddit.com/r/programming/comments/1mfoxwc/patchworkos_a_fromscratch_nonposix_os_strictly/

<!-- SC_OFF -->Patchwork is based on ideas from many different places including UNIX, Plan9 and DOS. The strict adherence to "everything is a file" is inspired by Plan9 while straying from some of its weirder choices, for example Patchwork supports hard links, which Plan9 did not. Everything including pipes, sockets, shared memory, and much more is done via the file systems /dev, /proc and /net directories. For example creating a local socket can be done via opening the /net/local/seqpacket file. Sockets are discussed in detail in the README. One unique feature of Patchwork is its file flag system, It's intended to give more power to the shell (check the README for examples) and give better separation of concerns to the kernel, for example the kernel supports native recursive directory access via the :recur flag. Patchwork also focuses on performance with features like a preemptive and tickless kernel, SMP, constant-time scheduling, constant-time virtual memory management, and more. The README (https://github.com/KaiNorberg/PatchworkOS) has plenty more details, screenshots, examples and some (hopefully) simple build instructions. Would love to hear your thoughts, advice or answer questions! <!-- SC_ON --> submitted by /u/KN_9296 (https://www.reddit.com/user/KN_9296)
[link] (https://github.com/KaiNorberg/PatchworkOS) [comments] (https://www.reddit.com/r/programming/comments/1mfoxwc/patchworkos_a_fromscratch_nonposix_os_strictly/)
A one-week deep dive into building a dual-mode template engine (Runtime Parser vs. Build-time AST Compiler)
https://www.reddit.com/r/programming/comments/1mfthww/a_oneweek_deep_dive_into_building_a_dualmode/

<!-- SC_OFF -->Hey r/programming (https://www.reddit.com/r/programming), I just came out of a fascinating, intense week of development and wanted to share the architectural journey. The challenge was a classic one: how do you design a system that's incredibly easy to use in a development environment, but also ruthlessly optimized for production? The context is a UI templating engine for an open-source web framework I work on (Neo.mjs). Our goal was to offer an intuitive, HTML-like syntax that required zero build steps in development. This led to a dual-mode architecture with two completely different implementations for the same input. Mode 1: The Runtime Interpreter (For Development) The "easy" path. We used a standard language feature (JavaScript's Tagged Template Literals) so developers can just write html...`` and see it work instantly. Input: A template string with embedded dynamic values. Process: At runtime, a tag function intercepts the call. It dynamically imports a parser library (parse5), which converts the string into an AST. We then traverse that AST to produce our internal VDOM structure. Trade-off: It's a fantastic developer experience, but it requires shipping a ~176KB parser to the client. Unacceptable for production. Mode 2: The Build-Time Compiler (For Production) This is where it gets fun. The goal was to produce the exact same VDOM structure as the runtime mode, but with zero runtime overhead. Input: The developer's raw source code file. Process: We built a script that acts as a mini-compiler, using acorn to parse the JS source into its own AST. It traverses the AST, looking for our html tagged template nodes. It extracts the template's strings and expressions. A key challenge here is that expressions like ${this.name} have no meaning at build time, so we capture the raw code string "this.name" and wrap it in a special placeholder. It uses the same core parsing logic as the runtime mode to convert the template into a serializable VDOM object, now with placeholders instead of real values. It then converts that VDOM object back into a valid JavaScript AST ObjectExpression node. The placeholders are converted back into real expression nodes. Finally, it replaces the original template literal node in the source code's AST with this new, optimized object node. The modified AST is then written back to a file using astring. The result is that the code that ships to production has no trace of the original template string or the parser. It's as if the developer wrote the optimized VDOM by hand from the start. This whole system, from concept to completion across all build environments, was built in less than a week and just went live. We wrote a very detailed "Under the Hood" guide that explains the entire process. You can see the full release notes (with live demos) here: https://github.com/neomjs/neo/releases/tag/10.3.0 And the deep-dive guide into the architecture is here: https://github.com/neomjs/neo/blob/dev/learn/guides/uibuildingblocks/HtmlTemplatesUnderTheHood.md I'm fascinated by this "dev vs. prod" dichotomy in software design. I'd love to hear your thoughts on this dual-mode approach. Are there other patterns for solving this? What are the potential pitfalls of this kind of AST replacement that I might not have considered? <!-- SC_ON --> submitted by /u/TobiasUhlig (https://www.reddit.com/user/TobiasUhlig)
[link] (https://github.com/neomjs/neo/blob/dev/learn/guides/uibuildingblocks/HtmlTemplatesUnderTheHood.md) [comments] (https://www.reddit.com/r/programming/comments/1mfthww/a_oneweek_deep_dive_into_building_a_dualmode/)
Started sharing my daily coding timelapses — a little personal project turned public
https://www.reddit.com/r/programming/comments/1mg612k/started_sharing_my_daily_coding_timelapses_a/

<!-- SC_OFF -->Recording myself in timelapse while coding slowly turned into a hobby! something about watching the hours of work shrink into a few minutes feels oddly satisfying. I decided to start uploading these daily sessions on YouTube, mainly as a kind of personal gallery to look back on my journey as a programmer. If that sounds interesting to you, feel free to check it out: 👉 https://youtube.com/@pjcode Open to any thoughts, feedback, or even just a hello. Cheers! <!-- SC_ON --> submitted by /u/Weak-Anything-1882 (https://www.reddit.com/user/Weak-Anything-1882)
[link] (https://youtube.com/@pjcode) [comments] (https://www.reddit.com/r/programming/comments/1mg612k/started_sharing_my_daily_coding_timelapses_a/)