14 comments

  • reocha19 minutes ago
    Three things stick out to me on <a href="https:&#x2F;&#x2F;gossamer-lang.org&#x2F;docs&#x2F;migration&#x2F;rust&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gossamer-lang.org&#x2F;docs&#x2F;migration&#x2F;rust&#x2F;</a><p>* No user macros at all. Six fixed format! &#x2F; println!-family macros expand at parse time. - Meta programming is incredibly important in rust.<p>* (unsafe is) Forbidden at the language level. No unsafe keyword in Gossamer source. std is safe-Rust too. - No low level programming then.<p>* No move semantics. Non-trivial values are heap-allocated, reference-counted, and shared by reference; primitives are copied the same as Rust. - Again, no low level programming.<p>Calling this rust flavored (or even a systems programming language) seems a bit bold.
  • Jtsummers1 hour ago
    I can&#x27;t figure out the point of having both go and spawn. `spawn` seems to be an ordinary thread spawning mechanism, generating a handle that you can join with (but not cancel? can&#x27;t find that for certain, it&#x27;s not actually in the tour but is in the SPEC.md). `go` inherits all the problems of go routines. You can&#x27;t join with it, you can&#x27;t cancel it, you have to build other infrastructure on top of it to achieve those effects. As neat as golang was 17 years ago when it came out, this was and still is a major weakness of the language which has resulted in the community developing conventions (now standardized in the go standard library and particular usage patterns) around how to deal with it. I don&#x27;t get why you&#x27;d half fix it (by introducing spawn) but then leave it in anyways. Just let the handle from spawn be ignored and you remove that particular footgun (it becomes a choice to ignore it, which still causes problems but at least the programmer chose to shoot towards their own foot).
  • rsyring2 hours ago
    If you are interested in Gossamer, you may also be interested in Lis, which is Rust flavored and compiles to go: <a href="https:&#x2F;&#x2F;github.com&#x2F;ivov&#x2F;lisette" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ivov&#x2F;lisette</a><p>From their readme:<p><pre><code> Safe and expressive: - Hindley-Milner type system - Algebraic data types, pattern matching - Expression-oriented, immutable by default - Rust-like syntax plus |&gt; operator and try blocks - Go-style interfaces, channels, goroutines Quietly practical: - Interop with Go ecosystem (WIP) - Linter, formatter, 250+ diagnostics - Fast incremental compiler, readable Go - LSP for VSCode, Neovim, Zed, Helix, GoLand</code></pre>
    • etaioinshrdlu2 hours ago
      I would also like to toss my project into the ring, which also allows mixing most real-world Rust &amp; Go packages together, on runtime &amp; syntax compatible level. <a href="https:&#x2F;&#x2F;github.com&#x2F;deepai-org&#x2F;omnivm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;deepai-org&#x2F;omnivm</a><p>Pardon the sloppy readme - it actually does work :)
  • sdicker18 minutes ago
    This post reminded me of Swift– a modern high-performance language that uses automatic reference counting. Its got a REPL and compiles via LLVM. It does trade goroutines for something with a little more safety built in.
  • pantsforbirds2 hours ago
    I&#x27;m fairly sure the code snippets aren&#x27;t equal in the last python example:<p>```python names = sorted({name.lower() for name in users if name}) ```<p>vs.<p>```gossamer let names = users |&gt; iter::filter(|n: String| n.len() &gt; 0) |&gt; iter::map(|n: String| n.to_lower()) |&gt; iter::sort_by_key(|n: String| n.len()) ```<p>Python is sorting a set (unique values only), but I&#x27;m not seeing a unique or set approach for gossamer.
  • throwrioawfo3 hours ago
    There was once a time when I&#x27;d see a page like this and think &quot;wow, must be a great project with such a polished website&quot;.<p>Now, it&#x27;s just a neutral or perhaps even very slightly negative signal (especially the em-dash in the very first line of the page).<p>Anyone able to tell me if this is a project actually worth paying attention to, or just another raindrop in the current monsoon of slop?
    • klardotsh3 hours ago
      Somewhat with you on this. I got slightly excited for a brief moment, but then the site starts to scream &quot;an LLM threw this together super quickly&quot; which doesn&#x27;t spark joy at all.<p>I then started digging into the code examples and quickly determined that nothing about this project is for me, even as a fan of Rust and some of its influences it has on recent languages. That web routing example is absolutely gross to my eye, for example.<p>Different strokes for different folks - my own thoughts on language design (I&#x27;m hacking on one in private over the past several years, maybe one day it&#x27;ll be shareable) would probably make some folks have a similar reaction, despite taking a wildly different approach than here. But it does suck to see Yet Another Vibe Looking Site hosting a language that feels like Yet Another Flavor Of Similar Stuff. Really looking forward to a language that wildly shakes things up in a usable way, and has a lot of care put into the DX... this one did not check that box <i>for me</i>.
      • mattkrause2 hours ago
        The web-routing thing is especially gross because a different example shows off pattern-matching.
      • charlieflowers2 hours ago
        The language choices demonstrate excellent taste though.
    • Zak2 hours ago
      A card grid with rounded corners as the second section and a dark blue or purple theme just scream &quot;designed by Claude&quot;.<p>It&#x27;s decent design, but not a useful quality signal.
    • sesteel1 hour ago
      Looks like we may be going to go back to the geocities days of primitive websites. I use still use hugo to generate my personal site automatically from markdown upon PR approval.
    • bscphil3 hours ago
      It&#x27;s clearly vibecoded if you look at the commit history.
    • felixgallo2 hours ago
      you know what&#x27;s even worse than slop? Zero-effort &#x27;is this maybe slop can someone tell me&#x27; posting.
      • cure_4221 minutes ago
        No.<p>A site for an entirely new programming language being slop is atrocious.<p>An entirely unimportant one minute comment on social media being low effort? Normal and expected and appropriate.<p>What on earth are you on?
  • samuell3 hours ago
    Glad to see more languages adopt true goroutines [edit: lightweight threads or fibers] with M:N scheduling. Surprised more haven&#x27;t. Among compiled language I&#x27;m only aware of Go and Crystal off the top of my mind.
    • kccqzy3 hours ago
      Haskell does too. And it predates Go by a large margin, such that calling it goroutine is weird. And within Google, the C++ implementation fiber also predated goroutines. It really shows that this is more of a library feature rather than a language feature.
      • Balinares2 hours ago
        In fairness, goroutine is far catchier than &gt;&gt;=&lt;%&gt;.
    • gf0002 hours ago
      Haskell, Java
      • jeremyjh1 hour ago
        Java and Crystal are not equivalent - neither have preemptible threads. Lots of other languages have co-routines or other cooperative systems - async&#x2F;await are really just variants of that.<p>I didn&#x27;t check if Gossamer is actually preemptible.<p>I believe the short list of production languages with preemptible M:N schedulers are limited to:<p>Erlang&#x2F;Elixir<p>Haskell<p>Go
  • IshKebab1 hour ago
    It&#x27;s only 2 months old. Clearly vibe coded. Still, kind of crazy what you can vibe code now.<p>Also the actual language design seems quite nice. I&#x27;d love something like this that was embeddable (and not vibe coded). There are basically no good easily embeddable languages. Everyone used Lua but it sucks.
    • cure_4219 minutes ago
      Why not embedded rust?
  • quotemstr3 hours ago
    Gossamer has a cycle collector and eager reference counting. Good luck dropping the last reference to a 10,000-node graph, especially if cyclic. That means it doesn&#x27;t have &quot;pause free&quot; memory. If you want pause freedom, go use ZGC or another modern GC on a modern VM.<p>I just can&#x27;t take seriously this spate of languages that ignore the past 30 years of research into automatic memory management. We have multiple open-source pauseless miracles GCs right there before our eyes, yet it&#x27;s the trendy thing in language design to foist memory management on users.<p>You don&#x27;t even have to use a big VM if you want good GC. Go use MPS. Lots of options out there, even if you want to implement your own VM.
    • platinumrad3 hours ago
      &gt; We have multiple open-source pauseleses miracles right there before our eyes<p>Is this meaningfully true in a practical sense? I&#x27;ve been writing code with soft real-time requirements and I don&#x27;t think your notion of &quot;pauseless&quot; suffices. And if these miracles are open-source and right before our eyes, why do languages like Crystal and D still use Boehm?
      • nu11ptr17 minutes ago
        &gt; why do languages like Crystal and D still use Boehm?<p>Languages use Boehm for exactly one reason: it is easy to shim into an otherwise manual memory system (it was designed for use in C&#x2F;C++). I mean no respect to its authors, but using Boehm in production is the worst of all worlds: slow allocations (free list allocator), poor cache locality, and not precise (so you can expect memory leaks). If you are going to do a GC language you want: 1) precise 2) bump allocator 3) compacting collector 4) generations. Essentially you want to allocate fast, only touch live objects (most objects die young), compact them for locality, and only process objects each cycle of similar age. There is a huge amount of engineering that goes into a state of the art collector, but those are the basics.
      • gomoboo2 hours ago
        D uses a homegrown GC not Boehm: - <a href="https:&#x2F;&#x2F;dlang.org&#x2F;spec&#x2F;garbage.html" rel="nofollow">https:&#x2F;&#x2F;dlang.org&#x2F;spec&#x2F;garbage.html</a> - <a href="https:&#x2F;&#x2F;dlang.org&#x2F;blog&#x2F;2017&#x2F;03&#x2F;20&#x2F;dont-fear-the-reaper&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dlang.org&#x2F;blog&#x2F;2017&#x2F;03&#x2F;20&#x2F;dont-fear-the-reaper&#x2F;</a>
      • quotemstr3 hours ago
        The charitable explanation is the authors lack the time to rebase onto something more modern.
        • platinumrad3 hours ago
          You seem to have a very low opinion of other people. If these miraculous collectors are so generally applicable, why are very smart people putting effort into things like Perseus?
          • quotemstr3 hours ago
            Smart, honest people can have sincere and earnest disagreements. I believe the manual-memory-management people are mistaken. That&#x27;s not to say they&#x27;re stupid: it means I believe they&#x27;re going down the wrong path, as smart people have done since time immemorial. I wish them all the best. That said, I must wonder what other innovations they reject if they insist that GC is unacceptable.
            • lstodd2 hours ago
              We insist that GC is unacceptable only because we insist that uncontrollable latency is unacceptable.
              • LoganDark2 hours ago
                The entire concept of a pauseless GC is that you have no uncontrollable latency. The GC can run on a background thread with zero stop-the-world.<p>Of course, this assumes you&#x27;re in a preemptive environment with access to other threads, etc.
    • smj-edison2 hours ago
      The one plus I&#x27;ll give reference counting is it still takes the cake for interoperability with C. Which is only important if you need good interoperability, but when you do, tracing GCs don&#x27;t play nice.
    • iyn3 hours ago
      &gt; We have multiple open-source pauseless miracles GCs right there in front of us<p>Can you share some links&#x2F;references?
      • elitepleb3 hours ago
        <a href="https:&#x2F;&#x2F;github.com&#x2F;pizlonator&#x2F;fil-c&#x2F;blob&#x2F;deluge&#x2F;libpas&#x2F;src&#x2F;libpas&#x2F;fugc.c#L41" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pizlonator&#x2F;fil-c&#x2F;blob&#x2F;deluge&#x2F;libpas&#x2F;src&#x2F;l...</a>
      • quotemstr3 hours ago
        ZGC is extremely good work.<p><a href="https:&#x2F;&#x2F;wiki.openjdk.org&#x2F;spaces&#x2F;zgc&#x2F;pages&#x2F;34668579&#x2F;Main" rel="nofollow">https:&#x2F;&#x2F;wiki.openjdk.org&#x2F;spaces&#x2F;zgc&#x2F;pages&#x2F;34668579&#x2F;Main</a><p>&gt; ZGC performs all expensive work concurrently, without stopping the execution of application threads for more than a millisecond. It is suitable for applications which require low latency. Pause times are independent of the heap size that is being used. ZGC works well with heap sizes from a few hundred megabytes to 16TB.<p>Go&#x27;s GC is also very good: <a href="https:&#x2F;&#x2F;go.dev&#x2F;blog&#x2F;greenteagc" rel="nofollow">https:&#x2F;&#x2F;go.dev&#x2F;blog&#x2F;greenteagc</a>.<p>V8&#x27;s Orinoco is also pretty good now. It&#x27;s improved a lot over the past decade and is now mostly-parallel. (A decade is about how long one of these things takes: high-performance GC is <i>hard</i>.)<p>I&#x27;m also a fan of MPS: it&#x27;s a big of dark horse because it&#x27;s more a GC construction kit than a ready-to-go GC, but it&#x27;s fast and flexible, and I&#x27;d start with it any day over Boehm if I were making a VM from scratch.
        • platinumrad3 hours ago
          If I were writing this language, I&#x27;d probably just compile it to Go, although that means Rust extensions would either incur cgo costs or have to be replaced with Go extensions.
          • phplovesong3 hours ago
            You just described <a href="http:&#x2F;&#x2F;www.lisette.run" rel="nofollow">http:&#x2F;&#x2F;www.lisette.run</a>
        • RedComet1 hour ago
          Are any of those actually pauseless like he asked for?
        • adastra223 hours ago
          A millisecond is an eternity. It is 1&#x2F;3 of the entire time allocated to a frame update in a modern game.
          • treyd2 hours ago
            Game GCs are interesting because you know that the execution is structured like this and you know how much time you have left before you have to switch back to application code for the next frame&#x2F;time step. There&#x27;s interesting optimizations you can make around this and could almost completely avoid user-observable GC pauses.
          • quotemstr3 hours ago
            Various GCs can go faster now too. JEP 376 talks about hundreds-of-microsecond work done in pause now that GC no longer has to scan the whole stack.<p>That said: 1ms? 1ms is getting into the sorts of latency the OS and hardware impose on your program no matter what it does. For example, on x86, a SMI can take 300us, or 1000us if you&#x27;re unlucky. I&#x27;ve seen softirqs for shitty wifi chips take a <i>hundred</i> milliseconds! And God help you if you take a hard page fault:<p>You&#x27;re worried about 1ms latencies, right? So you&#x27;re mlock()ing all memory? Running RT threads pinned to cores? Carefully using PI and static priorities to avoid inversions? Avoiding blocking IO everywhere, not even for graphics page-flipping? Managing thermal headroom to avoid involuntary clock collapses? And it should go without saying, but I have to ask: you&#x27;re running a PREEMPT_RT kernel, right?<p>No? You&#x27;re not doing any of these things? Then why are you worried about 1ms in GC?
          • kelseyfrog2 hours ago
            Exactly. This is why Minecraft Java edition was such a disastrous flop.
  • poulpy1233 hours ago
    Sorry but the name means bitterkid in french, I can&#x27;t get over it :D
    • ambicapter3 hours ago
      I&#x27;m french and had to think about it for a little bit.
  • rohitsriram3 hours ago
    [flagged]
  • veegee1 hour ago
    [dead]
  • lstodd3 hours ago
    IDK what&#x27;s the fuss. m:n scheduled by io is .. 2000s-era. The implementation was so obvious in like 2005, that even I patched then Python 2.6 in, so we at my then company could get rid of Twisted.<p>Also let you remind that M:N scheduling was the FreeBSD&#x27;s pthread implementation for quite a bit too long. No, it didn&#x27;t play well with MySQL at the time.
  • jeremyjh1 hour ago
    This is exactly the language I&#x27;ve been yearning for - the exact motivations and intersection of features that would be the sweet spot for me.<p>Kotlin without the Java baggage. Rust but with automated memory management and without async bifurcation. Go with a modern type system. Swift but with green threads and a linux community. Haskell without the hair shirt. Elixir with a full type system and native performance.<p>But yes there are some flags others have mentioned, I won&#x27;t repeat them. &quot;goroutines&quot; ?<p>Even on the off chance this project is not entirely vibe coded how could it ever build an ecosystem? How can any new language? All the libraries would be suspect for the same reason this repo is. The agents won&#x27;t know anything about it, no one will believe it can get momentum so it won&#x27;t.
    • LunicLynx1 hour ago
      Just a comment: Rust does not have a garbage collector
      • jeremyjh1 hour ago
        Thanks - edited - I meant to say &quot;but with a&quot; garbage collector. I like Rust, but I don&#x27;t like thinking about ownership all the time. Although when I just make Codex do it its really not that bad.