46 comments

  • jerf4 hours ago
    I love the ambition and the fact that this is not just another &quot;state of the art in 2015&quot; language like I see so often. It&#x27;s trying to do something genuinely different. The field of &quot;taking stuff out of academia and making it work&quot; is a rich and underharvested one.<p>However, your light is hidden under a basket, to use an old metaphor. I&#x27;m having to go digging to find the genuinely new things going on. I suggest recalibrating the entire documentation with a focus on the new stuff. People on HN often complain about not having syntax examples front and center but I would say for you, the very first thing I you should be hitting your new visitors with is the choreography idea.<p>Set up a simple example of doing something like a concurrent remote counter that is atomically safe by the construction of your language and immediately dive in to what that means. Forget even educating us on the rest of the mundane syntax of the language, immediately dive in to what that is and what that means. I see in the docs&#x2F; dir that it probably hurts your programmer mind to cover the choreography before covering sections 1-8, but you can safely assume that if you intrigue with the choreography that they&#x27;ll hang around to learn about the rest, whereas you can&#x27;t safely assume that a new reader will wade through all the rest of the relatively mundane details to get to the really interesting stuff.<p>A modern language with a modern take on compiling a &quot;program&quot; that takes a unified view of the world at the programming language level, and then emits a &quot;server&quot; and a &quot;client&quot; (and perhaps other roles) as separate executables is a pretty nifty idea. Hit it early and hit it hard.
    • bitwizeshift36 minutes ago
      Thank you for this comment. I had mostly shrugged off this project as “neat” but didn’t go digging until I read this.<p>The choreography stuff is actually really cool! Definitely agree this should be front and center
    • arcrevenant1 hour ago
      They did the right thing highlighting a working example front and center.<p>Nothing worse than PDFs full of theory and no working examples of the thing you’ll actually be doing all day.<p>I get that it’s important to show what abstractions and methodologies can arise out of using it, but with a good example that would be obvious. It’s the developer community using the language that will come up with the best abstractions (libraries) that - if it has an active community - helps shape what those novel developer experiences are.<p>A good analogy is the development of the skateboard - released first as a scooter - until someone knocked the handle off a started “surfing” down the street. Just show me the thing. I’ll tell you if it’s cool and how to use it
    • v0id_isgood3 hours ago
      This is hands down some of the most constructive feedback we’ve received. You hit the nail on the head.<p>We definitely fell into the author’s trap of structuring docs &quot;bottom-up&quot; (Prerequisites -&gt; Basic Syntax -&gt; Advanced Concepts) rather than leading with our actual core innovation: choreography.<p>We are restructuring the main README&#x2F;docs front page right now to lead immediately with a concrete example of choreographic execution (e.g., atomic multi-node orchestration &#x2F; client-server emitting) before getting into standard syntax.<p>Really appreciate you taking the time to dig into the docs&#x2F; dir to pull this out it’s a huge help for our presentation.
      • adastra222 hours ago
        You should avoid LLMs in your communications.
      • chime3 hours ago
        You should still keep doing the bottom-up approach for the rest of the docs. Just update the README first paragraph or two as the gp says.
        • jerf2 hours ago
          Yes, strong agree, normalcy resumes at some point. But you want the hook in first.<p>I mean, I&#x27;m phrasing that in marketing terms, but in this case it&#x27;s in harmony with what your users want anyhow. We want to know ASAP why we should care about this language. So it works for everyone. Of course when it comes time to deliver the promise, normal programming language documentation is the way it is for a reason.
      • bramadityaw3 hours ago
        you should really put some of the content in RESEARCH.md to the README.md. The language&#x27;s core idea shouldn&#x27;t just be known to contributors.
      • irq-11 hour ago
        &gt; linear&#x2F;affine types and a perceus reference counting<p>You should put these up front also.
      • valorzard1 hour ago
        this REALLY reads like claude responded to this comment, so I really hope that I&#x27;m just mistaken and you just naturally talk like this
      • Jabbles1 hour ago
        I think it&#x27;s quite rude to reply to a well thought out comment with AI slop
  • hyperhello6 hours ago
    First of all, the syntax is very generic and conservative. I’m extremely positive about that. It just looks like C or Typescript or Java to me and I don’t see mysterious diacritical marks.<p>The next thing is, I need more examples. Read me documents can scroll forever and that’s fine. Add examples for every concept your language wants to cover to it. This is your chance to think things through and make the read me and the language astonishing.<p>And your AI disclaimer (or your AI’s disclaimer) makes sense.
    • v0id_isgood6 hours ago
      i&#x27;m actively working on the documentation without AI because it has been an awful experience with it , i&#x27;ve also restricted AI from contributing to it in any way except for helping the developer write their commit messages (Refer to AGENTS.md) properly which is pretty much useless anyways, the language is in it&#x27;s early stages as well and things might change a lot
    • v0id_isgood5 hours ago
      also , yes i have an example i reprogrammed donut.c in my programming language and called it donut.wyz <a href="https:&#x2F;&#x2F;github.com&#x2F;rudywasfound&#x2F;donut.wyz" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rudywasfound&#x2F;donut.wyz</a> go check it out!
      • mightyham3 hours ago
        Please don&#x27;t take this personally, trying to offer this as constructive criticism. I don&#x27;t find this to be a very interesting example of the language. If the main feature is a unique approach to memory&#x2F;multithreading&#x2F;network safety, I would like to see an example of a multithreaded networking program that uses dynamic allocations, not a ~100 line a procedure that uses static buffers and terminal IO.
      • snek_case4 hours ago
        I would like to see an examples directory with a diverse set of example programs. What would be most interesting to me is programs with non-trivial memory usage and data structures, because that&#x27;s where differences in the memory model would matter. I want to know what&#x27;s possible and what&#x27;s not allowed in this language. What makes this different and better than Rust&#x27;s borrow checker.
  • vlovich1235 hours ago
    One thing I don’t understand is how you can guarantee the lack of a distributed deadlock. I’m sure it’s covered in the underlying research, but just conceptually it’s hard to picture.<p>What stops a choreography where Claire send a message to Bob but Bob is waiting for Alice and Alice is waiting for Claire?<p>Is it like Rust memory safety where not all valid programs are accepted but all invalid programs are rejected?<p>I think some examples of the distributed code in action on a trivial and non trivial distributed example is more compelling than a 3d donut render
    • minraws4 hours ago
      You can think about it as a protocol.<p>The protocol doesn&#x27;t describe &quot;Claire sends&quot; and &quot;Bob receives&quot; as two independent actions that wait for each other, it describes them as a single communication in the global program&#x2F;state.<p>When it gets executed into code, every send already has a corresponding receive by construction, so you can&#x27;t write something like &quot;Claire sends to Bob while Bob is actually waiting for Alice&quot; unless the protocol itself allowed that execution.<p>So the cycle you&#x27;re describing can&#x27;t just accidentally appear because of sync issues, because the assumption is a communication is represented correctly at each turn.<p>So yeah it kinda does limit the set of all possible programs since I would expect not everything can be encoded this way also seems hard to resolve this in practice without only allowing communication b&#x2F;w Wyzer systems.<p>I am not very familiar with this topic in practice so OP would be the best person to answer this, I am quite intrigued by how it works in practice as well.
    • pgt35 minutes ago
      hmm, I suspect distributed systems can be modelled with a form of probabilistic borrow-checking as long as you have control all the connected systems.
    • fmontesi39 minutes ago
      This question is in fact core to research in the paradigm. Let me first address how it works and then the expressivity question.<p>A choreographic programming language features programming abstractions for programming communication intent. For example, often they have a primitive like:<p>Alice.expr -&gt; Bob.x<p>read &#x27;Alice communicates the evaluation of expr to Bob, which stores the message in its local variable x&#x27;. (In fact, we discovered that we can extend any mainstream language to have this kind of high-level primitives by extending data types with locations, see choral-lang.org).<p>This makes it impossible to write mismatched communication actions, because you&#x27;re expressing both the send and receive actions in a single atomic instruction: they are well-matched by construction. You then build a compiler (typically called &#x27;projection&#x27;) that generates distributed programs for Alice and Bob -- the former doing the send to Bob and the latter doing the receive from Alice. We like making formal models of these compilers and mathematically proving them correct. A compiler that respects the choreography then automatically entails deadlock-freedom of the compiled code without the need for complex checks, because the source choreography cannot syntactically express deadlocked terms.<p>Consequently, there are no deadlocked distributed programs that we can compile from choreographies. It&#x27;s an application of the neat trick of designing high-level languages for &#x27;guiding&#x27; programming: instead of programming a distributed system with low-level primitives and then attempting the generally very hard task of checking for deadlocks, we use a high-level language where deadlocks cannot be written (or are at least easy to check against).<p>The above hopefully explains the intuition of how choreographic programming works. But then, as you did, one naturally asks: What can we express in choreographic programming languages? Are there fundamental limitations?<p>We do not know exactly yet; this is an area of very active exploration. Over the years, people have developed more and more clever choreographic programming languages that capture more and more interaction patterns.<p>What&#x27;s perhaps surprising is that, for some theories of distributed languages (or interaction patterns, if you like), we know that choreographic programming is <i>complete</i>, in the sense that it can capture all deadlock-free systems that can be modelled in those theories. The first result of this kind was about capturing all interaction behaviours that can be described in linear logic (in the Curry-Howard interpretation of it with process calculi), but there are also works that can deal with recursive behaviour and even process spawning (fork). That&#x27;s encouraging.<p>I think that investigating what the paradigm precisely can and cannot do is fascinating (but I&#x27;m very biased here..), not least because using a mathematically-modelled compiler lets us optimise the generated code aggressively (e.g., adding more asynchrony, as in Ozone). From the state of the art already out there, it looks like choreographic programming is &#x27;expressive enough&#x27; for many different purposes. Hopefully it&#x27;s gonna be the typical situation with high-level abstractions, whereby for most cases and most people the high-level language is gonna be good and low-level communication actions will be necessary only in niche scenarios. In the meantime, there are choreographic languages that can be integrated with middleware and foreign APIs to cover up for deficiencies (like Choral, HasChor, etc.).
  • fxj15 minutes ago
    wow it is great to see that there is still life in distributed programming languages. I would like to know what are the differences to MPI programming, chapel and PGAS languages like Co-Array Fortran and the rust extension ChoRus?<p>Can you you give a hello world example in each of them and show where your languages shines?
  • jitl6 hours ago
    Your README and docs don’t describe any of the interesting or unique things here. You cover `if` in README but not choreographic programming or perceus. Did i miss some big link?<p>Where’s the cool stuff?
    • v0id_isgood6 hours ago
      you did read RESEARCH.md didn&#x27;t you? :)
      • jitl5 hours ago
        i poked around in there, under choreographic programming there’s one example of <i>something not in the language</i> as a discarded idea.<p>if you claim X and Y make us cool and different, then you should document X and Y in your readme. don’t tell me something is the star, and then hide it away. this is baffling to me.
        • polymer85635 hours ago
          its speaking of discarded syntax for choreo, not that the feature was discarded
          • IsTom4 hours ago
            Still there&#x27;s not a single example.
      • andai5 hours ago
        GitHub hides RESEARCH.md for my convenience. I have to click &quot;Show All Files&quot; to see that it even exists.
      • derdi5 hours ago
        Why would they? The only thing the readme says about RESEARCH.md is &quot;if you want to contribute to the language please read RESEARCH.md&quot;. The OP doesn&#x27;t want to contribute, they want to see an example of choreographic programming. This shouldn&#x27;t be hard. What <i>is</i> hard is guessing which of the random markdown documents to click to find an example.
  • nicoburns49 minutes ago
    Huh, the Choreographic Programming (<a href="https:&#x2F;&#x2F;github.com&#x2F;Wyzer-Lang&#x2F;wyzer&#x2F;blob&#x2F;master&#x2F;docs&#x2F;08_choreography.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Wyzer-Lang&#x2F;wyzer&#x2F;blob&#x2F;master&#x2F;docs&#x2F;08_chor...</a>) looks very like &quot;server functions&quot; as implemented in Next.js &#x2F; Dioxus &#x2F; Leptos, but generalized as a language feature.<p>Definitely a cool idea. I guess time will tell whether lifting it into the language proves itself as worth it.
  • pron4 hours ago
    &gt; Go, Java, C#, and Python use garbage collectors. This makes them easier to use but slower and less predictable.<p>It does not. The term &quot;garbage collectors&quot; covers a whole spectrum of algorithms, some might slow you down (though not for the reason you may think) while others were invented to <i>speed up</i> memory management beyond that of C++, in exchange for other tradeoffs. Python&#x27;s (mostly) refcounting GC is actually closer to C in its memory management overhead than to either Go or Java. It&#x27;s also not what makes Python slow. Go uses a mark-and-sweep collector to find a balanace between speed, FFI, and footprint. Java uses moving collectors, which are faster - and some of which are even more predictable - than memory management in C++. That&#x27;s because Java aims to offer better performance than C++ in large concurrent software, where low-level languages tend to suffer from various overheads due to their requirement for low-level control (Java trades off some performance in smaller programs, but mostly it trades of startup time and footprint). Moving collectors (but not refcoting collectors or mark-and-sweep collectors) are an optimisation over free-list approaches, not a compromise for convenience.<p>So it is true that slow programming languages tend to use some kind of GC, but that&#x27;s not what makes them slow, nor does it make the super-fast languages that also use a GC (often of a very different kind) any slower. The range of languages that use GCs covers everything from the super slow to the super fast.
    • allknowingfrog1 hour ago
      The quoted text says &quot;slower&quot;. It does not claim that GC makes those languages slow overall.<p>Are you arguing that GC is not inherently slower than other memory management strategies (e.g. the Rust approach)? Or just that the cost is not worth optimizing away?
  • hmokiguess5 hours ago
    I saw this medium post from you <a href="https:&#x2F;&#x2F;medium.com&#x2F;@atixwasfound&#x2F;how-i-began-writing-my-own-programming-language-01a1672d3bd8" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@atixwasfound&#x2F;how-i-began-writing-my-own-...</a><p>In there it says you started this journey when you were 8 years old and that you are a 14 year old programmer<p>I&#x27;m not sure how I feel about this to be honest, I need to process that.
    • v0id_isgood5 hours ago
      time flies :) the grass was greener before though and i miss that!
  • onlyrealcuzzo1 hour ago
    As someone working on a language in this space, I think your README could be much better.<p>Most of the important stuff is in this section:<p>```3. What&#x27;s Actually New About It?```<p>But you don&#x27;t really go into any details about what&#x27;s actually happening, have any honest conversation about any trade-offs, mention anything about why this <i>is</i> memory safe &amp; correct now (highly skeptical), or why you have a clear path towards that in the near future.<p>From the <i>VERY</i> brief examples you show, it looks like it&#x27;s just Rust without a borrow checker. The borrow checker gives Rust a bad reputation, but it&#x27;s only a very small part of why Rust is hard. You didn&#x27;t give any insight into how you&#x27;re solving the rest of the problems.
  • rbr943 hours ago
    For anyone looking for an easily digestible primer on choreographies: <a href="https:&#x2F;&#x2F;decomposition.al&#x2F;zines&#x2F;communicating-chorrectly-zine.pdf" rel="nofollow">https:&#x2F;&#x2F;decomposition.al&#x2F;zines&#x2F;communicating-chorrectly-zine...</a><p>Too bad the github readme doesn&#x27;t explain how the choreographic side of Wyzer works, or even what it looks like (please correct me if I&#x27;m wrong, couldn&#x27;t find it after a quick skim).
    • tristanMatthias4 minutes ago
      This was a great introduction! Thanks for sharing
  • srean1 hour ago
    Could one compare choreography with this model<p><a href="https:&#x2F;&#x2F;felix-tutorial.readthedocs.io&#x2F;en&#x2F;latest&#x2F;intro_coroutines_termination.html" rel="nofollow">https:&#x2F;&#x2F;felix-tutorial.readthedocs.io&#x2F;en&#x2F;latest&#x2F;intro_corout...</a><p>Note this is for cooperative threading.
  • jnpnj2 hours ago
    It would be worth writing examples of the resource ownership model (especially network wise), this is the rare feature here it seems.<p>ps: were you looking at efforts such as clojure electric (<a href="https:&#x2F;&#x2F;github.com&#x2F;hyperfiddle&#x2F;electric" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hyperfiddle&#x2F;electric</a>) ? they aim to represent computation on different hosts as one expression.
  • steeleduncan5 hours ago
    <p><pre><code> const MAX: u32 = 100; &#x2F;&#x2F; Compile-time constant let x: u32 = 10; &#x2F;&#x2F; Cannot be changed </code></pre> If x cannot be changed, how does it differ (meaningfully) from a compile time constant in a safe language, ie in a case of no raw pointers
    • v0id_isgood4 hours ago
      const can be used in places that need a compile-time-known value (like a fixed array size). let can&#x27;t, even if it obviously holds a fixed number.
      • bramadityaw2 hours ago
        isn&#x27;t there a way to infer that from context? like if the variable is declared with the Comptime role. Some guy said that the const keyword was a mistake C made that is then blindly followed by its successors.
  • bckr4 hours ago
    I like the ideas a lot. The Readme needs some polish (I think it’s great that it reads as hand-written; an LLM could make suggestions that make it just 10% easier to read).<p>Is choreographic programming the same as session types?
  • adastra222 hours ago
    I skimmed so I may have missed it, but nowhere in the README do I actually see a description of what &quot;choreographic programming&quot; is, or an example of it.
  • rrook3 hours ago
    Would you say that &quot;choreographic programming&quot; is different from an architecturally-aware compiler?<p><a href="https:&#x2F;&#x2F;hale-lang.org&#x2F;articles&#x2F;claims-in-hale&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hale-lang.org&#x2F;articles&#x2F;claims-in-hale&#x2F;</a>
  • bryzaguy3 hours ago
    This looks cool! Memory safety beyond Rust with simpler code is a strong claim. Something I&#x27;d love to see is examples that mimic issues Rust borrow checker would catch as well as ones only wyzer would catch.
  • netniuq4 hours ago
    nice Rust-inspired syntax, although if the main selling point is choreography here, that isn&#x27;t featured enough on web page or README. Needs more examples&#x2F;explanation of how that works.<p>Promising insofar as all of the essentials seem to be right (for me): compiled, good type checker, no garbage checker etc.
  • pmkary3 hours ago
    The fact that the author is 14 years old makes my day. Nice work!
    • beckford56 minutes ago
      Awesome! How did you find that out?
      • pmkary44 minutes ago
        It was written in the GitHub bio.
  • lostbean2 hours ago
    This is very exciting! Curious to learn more about how the linear types fits into the picture here?
  • andai5 hours ago
    Very interesting. Maybe this would benefit from concrete examples, of things that are difficult or impossible in other languages, but well supported in Wyzer? I see there&#x27;s a few high level examples, but I&#x27;m thinking concrete scenarios with code snippets might be helpful.
  • reactordev4 hours ago
    <a href="https:&#x2F;&#x2F;github.com&#x2F;Wyzer-Lang&#x2F;wyzer#3-control-flow" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Wyzer-Lang&#x2F;wyzer#3-control-flow</a><p>Is <i>mut</i> a thing? looks like rust.
    • v0id_isgood3 hours ago
      examples aren&#x27;t updated yet some guy who mocked me earlier for the language on discord deleted his statements and walked away blocking me after giving me his hacker news credentials, now here i am answering to your questions
      • reactordev2 hours ago
        wait what? You&#x27;re joking. Some rando just picked a fight, walked it back, then gave you his HN account?
  • pmarreck5 hours ago
    &gt; prentensious quote<p>It&#x27;s &quot;pretentious.&quot;<p>(said pretentiously, lol)<p>Hey, at least we know AI didn&#x27;t write it, lol
    • tosti2 hours ago
      I&#x27;m guessing it refers to this paper:<p><a href="https:&#x2F;&#x2F;www.microsoft.com&#x2F;en-us&#x2F;research&#x2F;wp-content&#x2F;uploads&#x2F;2020&#x2F;11&#x2F;perceus-tr-v1.pdf" rel="nofollow">https:&#x2F;&#x2F;www.microsoft.com&#x2F;en-us&#x2F;research&#x2F;wp-content&#x2F;uploads&#x2F;...</a><p>(wait what is that WordPress?)
  • slifin4 hours ago
    Reminds me of <a href="https:&#x2F;&#x2F;github.com&#x2F;lovrosdu&#x2F;klor" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lovrosdu&#x2F;klor</a>
  • DauntingPear72 hours ago
    The website on mobile is basically unusable. I like the general theme though
  • taolson3 hours ago
    Since your language is very &quot;rust-like&quot;, what made you choose Ocaml as the implementation language?
    • v0id_isgood3 hours ago
      Ocaml was very simple to program in to be honest, and has very minimal rules as well so i can be productive with the development of the language, Rust also used ocaml in it&#x27;s early versions for bootstrapping
  • gokaygurcan4 hours ago
    &gt; see a new programing language &gt; look inside &gt; it&#x27;s rust<p>asking out of my own ignorance, what&#x27;s so hard with rust that you cannot convince people and contribute to that directly instead of going on your way? i remember so few of these projects survived over the years. do you think it&#x27;ll really become something other than your pet project?
    • 9999000009993 hours ago
      Rust is just hard.<p>It takes the fun out of this. I like JavaScript and Python. If I need to type system, there’s always type script and C#.<p>I don’t care about a bunch of memory management details, and if I ever want to I might as well use C++ and become a quant.<p>I learn a new programming language for one of two reasons, there’s a framework or engine that requires it. For example, Godot with GD script.<p>Or to make more money.<p>Python was a very happy mix of both, I learned it to work with ML libraries as a hobby and later found it pays a lot more.
  • bramadityaw2 hours ago
    question: how accurate is the intuition that role types are the location a computation happens?
  • manithree5 hours ago
    docs.wyzer-lang.org doesn&#x27;t resolve for me, and it&#x27;s prominently linked from <a href="https:&#x2F;&#x2F;wyzer-lang.vercel.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;wyzer-lang.vercel.app&#x2F;</a>. Since I&#x27;m not familiar with wyzer or perceus, how would one write, say, a doubly linked list in wyzer?
    • v0id_isgood5 hours ago
      docs are under development, you can check them out soon :)
      • thomasmg5 hours ago
        Great. I&#x27;m also writing a new language with the same memory management idea (Perceus-style reference counting &#x2F; ownership). My language [1] is not functional and currently lacks multi-threading and networking, so there are big differences. But I really like the moto &quot;easy to use memory safety without tracing GC&quot;.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;thomasmueller&#x2F;bau-lang&#x2F;tree&#x2F;main" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thomasmueller&#x2F;bau-lang&#x2F;tree&#x2F;main</a>
      • jitl5 hours ago
        maybe wait until you have something to share before Show HN? overall your work seems like a cool thing that i’d like to look at in a few months once there’s more substantial education stuff to read about it.
  • pjmlp4 hours ago
    No mention of the much more mature Chapel, with industry support, given the domain?
  • Myzel3943 hours ago
    Looks promising, let&#x27;s see into what this evolves
  • nirbendavid3 hours ago
    i wonder how agents would adopt a whole new programming language, as not much syntax examples &#x2F; references are out there.
  • REDA_MAH5 hours ago
    The syntax is soooo promising but still we need more documentation. Good job anyway for doing such an amazing work with no ai
  • mring336213 hours ago
    I love the website!
  • kazinator5 hours ago
    Compiler should be called Bud.<p>Made an error? Hold your beer, Bud&#x27;s got your back: the Bud Wyzer compiler!
  • phplovesong4 hours ago
    Ref counting IS a form of GC. It can be slow and have issues in high perf scenarios.
  • vsilent6 hours ago
    syntax reminds me rust labguage.
    • v0id_isgood6 hours ago
      this is a pretty common observation and yeah it sure is inspired by rust&#x27;s syntax a bit because i have been a rust dev since quite a long time so i&#x27;m much more in favor of it&#x27;s design philosophy as well
  • dwroberts3 hours ago
    The tests I could find for ‘choreographed programming’ were 1-2 lines long and demonstrated absolutely nothing, certainly nothing as elaborate as the research text is stating.<p>This is just slop
  • hna8hjbqzy2 hours ago
    Hot take but I kinda agree
  • xyzsparetimexyz2 hours ago
    Yawn
  • imthenitto3 hours ago
    The pitch is &quot;one ownership rule for memory, threads, and networks,&quot; but I think there are two rules in here and they pull against each other.<p>The resource rule as stated is linear: once you use a resource, you can&#x27;t use it again. Perceus is not that. Perceus exists precisely because values are shared — it inserts dup&#x2F;drop and then reuses the allocation in place when the count happens to be 1. If everything in the language were genuinely use-once, you wouldn&#x27;t need refcounting at all; a linear type system gives you the frees statically. The fact that Perceus is in the design implies aliasing is allowed, which means &quot;one owner&quot; is a description of the socket&#x2F;interrupt layer, not of memory.<p>That&#x27;s fine as a design — but then the elevator pitch is &quot;two rules that rhyme,&quot; and the FAQ&#x27;s central claim (&quot;you only need to learn one rule&quot;) is the thing I&#x27;d expect to break first under contact with real programs.<p>Related, and more concrete: Koka and Lean get away with RC partly because their data is overwhelmingly acyclic by construction. Your README shows var bindings and mutable struct fields. Mutation plus refcounting gives you cycles, and cycles leak. What&#x27;s the plan — a cycle collector, weak references, a type-level acyclicity restriction, or accepting the leak? DESIGN.md would be a good place to state it outright, because it&#x27;s the first question anyone with RC experience will ask.
  • grayrocks4 hours ago
    [dead]
  • thechao4 hours ago
    &gt; Wyzer supports standard if&#x2F;else, while, and for loops. Note that loops don&#x27;t need parentheses around the condition.<p>But <i>why</i>!? You know what&#x27;d be cool? If we started supporting control statements that were a bit more sophisticated!<p>``` do { } while (c) { if (x) break foo; } else { case foo : ...; default : ...; } ```
    • v0id_isgood3 hours ago
      open an issue we can discuss about it there :D
  • khat3 hours ago
    Simplicity in the tag line but uses Result&lt;T, E&gt;. Should&#x27;ve followed Zig&#x27;s direction for error handling. With that out of the way looks like a fun little language.
    • bramadityaw2 hours ago
      Zig&#x27;s way is &quot;simple&quot; but not elegant, specifically since it hard codes how error handling is done. Algebraic data types are more elegant, since it can be used not just for error handling, but also other kinds of data modeling.
    • v0id_isgood3 hours ago
      if you think so then open an issue or contribute to it :D we can discuss about it and decide which is the best option
  • tpoacher1 hour ago
    &quot;Choreographic programming&quot;?<p>Are we just straight up inventing buzzwords now?<p>Hey guess what, I&#x27;m more into symphonic opus programming, none of that backyard dance-club programming for me thanks.<p>&#x2F;s [no hate, just laffs]
    • jwolfe1 hour ago
      That is apparently the existing academic term. It&#x27;s got a Wikipedia page. But yes, all buzzwords were invented.
      • tpoacher1 hour ago
        This confirms to me it was indeed originally intended as a buzzword then. :D<p>Nothing like establishing a new buzzword in a field to get them citations rolling.
        • tonyg1 hour ago
          New? It stretches back industrially to the WS-* stuff in the early 00s (this is where the term originated), and on the academic side has roots in process calculi from the 90s and session types from the late 00s and early 10s.