14 comments

  • phyzome32 minutes ago
    The elevator pitch needs work.<p>&quot;in any language&quot;, but then the page says &quot;We currently support C, C++, Python, TypeScript, and Rust.&quot;<p>&quot;Lingua Franca is a coordination language&quot; but then &quot;Not a New Programming Language&quot;.<p>I think I see what this is going for but the descriptions need a lot of improvement.
  • samuell6 hours ago
    I like that the code example seems to indicate they took the concept of &quot;ports&quot; from flow-based programming, which might be one of it&#x27;s absolute strongest points:<p><pre><code> player2.reveal -&gt; player1.observe player1.reveal -&gt; player2.observe </code></pre> That is, enabling data flow connections between individual inputs&#x2F;outputs, and not just between components, which otherwise is too limiting, and typically causes a lot of extra syntax to handle that routing otherwise.<p>Wrote about it in the context of workflow systems way back (<a href="https:&#x2F;&#x2F;livingsystems.cc&#x2F;posts&#x2F;workflows-dataflow-not-task-deps&#x2F;" rel="nofollow">https:&#x2F;&#x2F;livingsystems.cc&#x2F;posts&#x2F;workflows-dataflow-not-task-d...</a>)<p>---<p>Edit 11:12 CET: I realize that “named ports” better captures what I had in mind here, as elaborated in a comment below.
    • mpweiher6 hours ago
      Ports are a general feature of components in the software architecture literature (and corresponding systems).<p>In addition, connectors also become structured.<p>Objective-Smalltalk uses polymorphic connectors to adaptively and mostly automatically choose the level of granularity you want to operate at.<p><a href="https:&#x2F;&#x2F;dl.acm.org&#x2F;doi&#x2F;10.1145&#x2F;3689492.3690052" rel="nofollow">https:&#x2F;&#x2F;dl.acm.org&#x2F;doi&#x2F;10.1145&#x2F;3689492.3690052</a><p>---<p>That aside: really cool article! Dataflow just pops up everywhere as a really, really useful abstraction, and our languages don&#x27;t support it well as a <i>general</i> mechanism.<p>Instead we tend to have specialized dataflow-y tooling for <i>one</i> area of programming where the advantages are so significant that the impedance mismatch is worth it nonetheless.
      • samuell6 hours ago
        I think you are right, and I should have done a search on that before. Found now that FBP inventor cites someone Weinberg from 1975 about them (though FBP is supposed to be from around 69-70, so might be a somewhat parallel discovery):<p>&gt; Now what are &quot;IN&quot; and &quot;OUT&quot; that our pseudocode receives IPs from and sends them to? They are not the names of connections, as this would tie a component&#x27;s code to one place in the network, but are things called &quot;ports&quot;. &quot;Portae&quot; means &quot;gates&quot; in Latin, and ports (like seaports) can be thought of as specific places in a wall or boundary where things or people go in or out. Weinberg (1975) describes a port as<p>&quot;... a special place on the boundary through which input and output flow... Only within the location of the port can the dangerous processes of input and output take place, and by so localizing these processes, special mechanisms may be brought to bear on the special problems of input and output.&quot;<p><a href="https:&#x2F;&#x2F;www.jpaulmorrison.com&#x2F;fbp&#x2F;concepts_book.shtml" rel="nofollow">https:&#x2F;&#x2F;www.jpaulmorrison.com&#x2F;fbp&#x2F;concepts_book.shtml</a><p>Still, I&#x27;m amazed at how it took so long before they became mainstream in data flow oriented libraries and DSLs.<p>And it seems J.P. Morrison was also highlighting <i>Named</i> ports as particularly useful, which is also perhaps what I should have highlighted in my initial comment above.<p>It&#x27;s gotten better lately it seems, but a lot of tools skipped that part, which now requires tons of specialized syntax just for routing of multiple parallel streams.<p>---<p>Thank you for kind words!
    • chrisweekly1 hour ago
      it&#x27;s (it is) -&gt; its (belongs to it)<p>I&#x27;m not trying to be pedantic, but they&#x27;re different words, and (esp. considering how capable our community is when it comes to logic and precision with programming languages) I find it strange how often this &quot;it&#x27;s &#x2F; its&quot; error is repeated. Calling it out in hopes of helping others get it right.
      • anonymous9082131 hour ago
        There&#x27;s nothing strange about how often this error is repeated. It is a fault in the &quot;design&quot; of the English language, which violates its own rules, insofar as it has any. Apostrophes are used for both possessives and contractions, eg. &quot;That&#x27;s John&#x27;s ball&quot;. Indeed possessive &quot;it&#x27;s&quot; was historically written with the apostrophe. That the apostrophe was dropped to become possessive &quot;its&quot; is completely arbitrary special-case logic, and given that there is no logic behind which it was dropped from, it is easily subject to confusion because you cannot reason about which is which if you forget in the moment.
        • chrisweekly1 hour ago
          Thanks for your response. You raise an interesting point, but I take a different view. Contractions _always_ use an apostrophe, while possessives only sometimes do [they&#x27;re &#x2F; their, you&#x27;re &#x2F; your, he&#x27;s &#x2F; his, she&#x27;s &#x2F; her, it&#x27;s &#x2F; its, ...]. For &quot;it&quot;, the apostrophe alone serves to distinguish between the two words.
          • anonymous9082131 hour ago
            &gt; Contractions _always_ use an apostrophe<p>Are you really gonna say that? Are you sure you don&#x27;t wanna reconsider? That&#x27;s kinda sorta not true, I&#x27;ve gotta say, especially what with Halloween coming up soon.<p>&gt; For &quot;it&quot;, the apostrophe alone serves to distinguish between the two words.<p>Sure, but that doesn&#x27;t establish which to drop it from. English coulda just as well dropped it from the contraction.
        • RHSeeger1 hour ago
          Indeed, it&#x27;s pretty much the opposite of &quot;logic and precision&quot;
      • loofbanger-meis1 hour ago
        You’re wrong. It’s can mean either. Both are correct.<p>I’m trying to be pedantic and calling this out in the hopes of helping you get it right.
  • XCabbage7 hours ago
    I don&#x27;t really understand what problem this is meant to solve at first glance. It&#x27;d be nice to see a simple example program involving concurrency written in plain Python, then a discussion of the annoying bookkeeping involved in avoiding concurrency errors and what traps would be easy to fall into, and then an example of how the same thing would be implemented using Lingua Franca and an explanation of how eliminates the bookkeeping and traps.
    • tgv7 hours ago
      Here are Python examples, that you can test in the playground: <a href="https:&#x2F;&#x2F;github.com&#x2F;lf-lang&#x2F;playground-lingua-franca&#x2F;tree&#x2F;main&#x2F;examples&#x2F;Python" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lf-lang&#x2F;playground-lingua-franca&#x2F;tree&#x2F;mai...</a>
      • stefanha4 hours ago
        Can you explain what the examples are showcasing? I looked at the Audio and Webserver examples. They give the LF syntax for doing something that is easier to do directly in Python. I&#x27;m missing the advantages of LF and why you&#x27;d want to do this in the first place.
  • gbin1 hour ago
    If you like the idea and work in robotics try out copper-rs, it works on the same underpinning concept but at compile time in rust + a graph description. The latest addition to the kernel is a profile guided scheduling feature that allows you to optimize the concurrency of the graph still at compile time based on previous timing measurements from its deterministic logs.
  • arto5 hours ago
    Good to see flow-based programming (FBP) concepts spreading! Will add LF to the <a href="https:&#x2F;&#x2F;github.com&#x2F;flux-doctrine&#x2F;awesome-fbp" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;flux-doctrine&#x2F;awesome-fbp</a> list that I maintain
    • spankalee19 minutes ago
      Oh god, that repo links to Grokipedia.
  • Garlef6 hours ago
    I think the main example on the landing page is a bit counterintuitive?<p>Rock Paper Scissors but the graph presents the reveal as a reaction to the observation? In a loop? And somewhere there&#x27;s a min-delay of a magical 1 sec? Why 1 sec and not 0.1 sec? Can this build up and the players get out of sync? (A bit strange to &#x27;just wait, lol&#x27; if the language aims at solving problems in distributed systems).<p>Overall the example would be better if it separated the game from the players and also split out the repeat loop.<p>Maybe let both player reveal to a host and then receive a result (and the choices) ~ This way both players can be sure that the choice of the other player is independent of the observation.<p>(I know that the example is &#x27;correct&#x27; in that the choice is made independent of the observation but I think the example could be improved if it solved some of the coordination problems involved in the scenario more cleanly through code architecture).<p>Overall I quite like the idea of having this polyglot meta language!
    • tete4 hours ago
      &gt; I think the main example on the landing page is a bit counterintuitive?<p>Still a million times better than the current Go landing page, and I am saying that as a huge fan of Go.
  • Haven8804 hours ago
    Erlang can do these very well. Is there anything LF better? Just asking for opinion.
  • andvgal4 hours ago
    I wonder, if there is so long research, why you have not come to conclusion that the main problem is not reactor&#x2F;proactor&#x2F;event loop, but writing actual asynchronous business logic. The industry has gone mostly coroutine approach, requiring special technology support and usually with lack of fine predictable execution and stack control for mission-critical cases. That&#x27;s the reason why FutoIn AsyncSteps exists as concept and reference implementation in C++, Java and JS&#x2F;ECMAScript. It is compatible with foreign reactors by design via AsyncTool interface.
  • einpoklum3 hours ago
    Title is incorrect of course, it is: &quot;Intuitive concurrent programming in a separate language than the one you use for the actual work&quot;<p>... which is not to say it&#x27;s irrelevant, but still: Why is it worthwhile to have a separate language for this, rather than some library with bindings in various languages?
  • rramadass4 hours ago
    Interesting.<p>Your use of the word &quot;Reactor&quot; at first confused me since there is a &quot;Reactor Pattern&quot; for event handling (<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Reactor_pattern" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Reactor_pattern</a>) which is not what you mean.<p>How does your concurrency model differ from that of Erlang (the poster child for distributed concurrency)? Do you have a paper detailing your model and comparing with other languages?<p>I recently read Roman Obermaisser&#x27;s excellent book &quot;Event-Triggered and Time-Triggered Control Paradigms&quot; which seems applicable to your architecture. At the bottom most level you have a global communication network based on a synchronized global clock and &quot;Time-Triggered&quot;(TT) semantics which is deterministic. A &quot;Event-Triggered&quot;(ET) communication channel is then overlaid on top of it which is non-deterministic. That way the system provides both hard real-time (i.e. TT) and soft real-time (i.e. ET) semantics.
  • arbor-group1 hour ago
    [flagged]
  • chelseahermes1 hour ago
    [flagged]
  • threedroll1 hour ago
    [flagged]
  • tete4 hours ago
    The award for the worst name goes to...<p>Seriously, it&#x27;s long and still common, even in the context of computing, even in programming languages. Why would you choose a long name with two words and then not choose something somewhat unique? Such a horrible decision.<p>Really sad given that otherwise this seems like one of the more interesting new languages I&#x27;ve seen on HN.