Reddit Programming – Telegram
Reddit Programming
210 subscribers
1.22K photos
125K links
I will send you newest post from subreddit /r/programming
Download Telegram
Gene — a homoiconic, general-purpose language built around a generic “Gene” data type
https://www.reddit.com/r/programming/comments/1q1e75u/gene_a_homoiconic_generalpurpose_language_built/

<!-- SC_OFF -->Hi, I’ve been working on Gene, a general-purpose, homoiconic language with a Lisp-like surface syntax, but with a core data model that’s intentionally not just “lists all the way down”. What’s unique: the Gene data type Gene’s central idea is a single unified structure that always carries (1) a type, (2) key/value properties, and (3) positional children: (type ^prop1 value1 ^prop2 value2 child1 child2 ...) The key point is that the type, each property value, and each child can themselves be any Gene data. Everything composes uniformly. In practice this is powerful and liberating: you can build rich, self-describing structures without escaping to a different “meta” representation, and the AST and runtime values share the same shape. This isn’t JSON, and it isn’t plain S-expressions: type + properties + children are first-class in one representation, so you can attach structured metadata without wrapper nodes, and build DSLs / transforms without inventing a separate annotation system. Dynamic + general-purpose (FP and OOP) Gene aims to be usable for “regular programming,” not only DSLs: FP-style basics: fn, expression-oriented code, and an AST-friendly representation OOP support: class, new, nested classes, namespaces (still expanding coverage) Runtime/tooling: bytecode compiler + stack VM in Nim, plus CLI tooling (run, eval, repl, parse, compile) Macro-like capability: unevaluated args + caller-context evaluation Gene supports unevaluated arguments and caller-context evaluation (macro-like behavior). You can pass expressions through without evaluating them, and then explicitly evaluate them later in the caller’s context when needed (e.g., via primitives such as caller_eval / fn! for macro-style forms). This is intended to make it easier to write DSL-ish control forms without hardcoding evaluation rules into the core language. I also added an optional local LLM backend: Gene has a genex/llm namespace that can call local GGUF models through llama.cpp via FFI (primarily because I wanted local inference without external services). Repo: https://github.com/gene-lang/gene I’d love feedback on: whether the “type/props/children” core structure feels compelling vs plain s-exprs, the macro/unevaluated-args ergonomics (does it feel coherent?), and what would make the project most useful next (stdlib, interop, docs, performance, etc.). <!-- SC_ON --> submitted by /u/gcao99 (https://www.reddit.com/user/gcao99)
[link] (https://github.com/gene-lang/gene) [comments] (https://www.reddit.com/r/programming/comments/1q1e75u/gene_a_homoiconic_generalpurpose_language_built/)
Article: Why Big Tech Turns Everything Into a Knife Fight
https://www.reddit.com/r/programming/comments/1q1j104/article_why_big_tech_turns_everything_into_a/

<!-- SC_OFF -->An unhinged but honest read for anyone exhausted by big tech politics, performative collaboration, and endless internal knife fights. I wrote it partly to make sense of my own experience, partly to see if there’s a way to make corporate environments less hostile — or at least to entertain bored engineers who’ve seen this movie before. Thinking about extending it into a full-fledged Tech Bro Saga. Would love feedback, character ideas, or stories you’d want to see folded in. <!-- SC_ON --> submitted by /u/NoVibeCoding (https://www.reddit.com/user/NoVibeCoding)
[link] (https://medium.com/@dmitrytrifonov/why-big-tech-turns-everything-into-a-knife-fight-42e221944ec8) [comments] (https://www.reddit.com/r/programming/comments/1q1j104/article_why_big_tech_turns_everything_into_a/)
coco: a simple stackless, single-threaded, and header-only C++20 coroutine library
https://www.reddit.com/r/programming/comments/1q1nrd8/coco_a_simple_stackless_singlethreaded_and/

<!-- SC_OFF -->Hi all, I have rewritten my coroutine library, coco (https://github.com/kingluo/coco), using the C++20 coroutine API. <!-- SC_ON --> submitted by /u/Ill_Excuse_4291 (https://www.reddit.com/user/Ill_Excuse_4291)
[link] (http://luajit.io/posts/coco-cpp20-coroutine/) [comments] (https://www.reddit.com/r/programming/comments/1q1nrd8/coco_a_simple_stackless_singlethreaded_and/)