18 comments

  • borland2 hours ago
    Yuck. I like both Go and C# a lot, and use them both professionally.<p>In my experience the strengths of Go are mostly - Deployability via single-file static binaries - Simple syntax that anyone can learn (no exceptions, no classes or inheritance) - Wicked fast compile times<p>And the strengths of C# are - Powerful language with null-safety and lots of syntax sugar - Runtime-level coroutines so you don&#x27;t need `async&#x2F;await` everywhere<p>G# seems like it has the _worst_ of both worlds, not the best. It&#x27;s fun to write compilers, and good on them for doing it, but no thank you for real use
    • rmuratov48 minutes ago
      C# has single-file static binaries
      • littlecranky6713 minutes ago
        Exactly. To add to this, is called ahead-of-time compilation, and bundles required parts of the .net runtime into the single-binary. Deployment targets thus don&#x27;t need to ship any .net environment or libraries.
  • gwbas1c3 hours ago
    How is this different than C#? What new concepts does this bring that C# doesn&#x27;t?<p>20 years ago there was some momentum behind Visual Basic .Net; but the language was so similar to C# that it just wasn&#x27;t worth using. There was a joke that .Net was a &quot;skinnable language.&quot;<p>BTW, there&#x27;s a whole nitpicky&#x2F;semantic argument that C# isn&#x27;t null safe because of the null forgiving operator. That will probably come into play with G# if the null forgiving operator can be used from C# to pass null into G# code that doesn&#x27;t expect it.
    • AdieuToLogic3 hours ago
      &gt; 20 years ago there was some momentum behind Visual Basic .Net; but the language was so similar to C# that it just wasn&#x27;t worth using.<p>IronPython[0] and IronRuby[1] would like a word... Largely so they could be remembered.<p>0 - <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;IronPython" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;IronPython</a><p>1 - <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;IronRuby" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;IronRuby</a>
    • fulafel9 minutes ago
      I think it would be more valuable if it had less concepts than C# but it doesn&#x27;t seem clear if they succeeded in that.
    • userbinator3 hours ago
      <i>There was a joke that .Net was a &quot;skinnable language.&quot;</i><p>I remember the MS documentation had sample code in all the variants of .NET languages they created (C#, F#, VB.NET), and of course there were decompilers that let you choose which one to target, with many other translation tools available between them.
    • Foobar85681 hour ago
      The momentum behind VB.NET was mainly because most enterprises using VB6 assumed it was the natural replacement.
      • gnabgib1 hour ago
        Your humble opinion? Nobody likes giving up what they know.. Perl, Python, Ruby, VB6 (can be moved to c#), Pascal (still relevant)
  • truncate3 hours ago
    I wish README is clear whether they are using AI or not, and if so what the guidelines are. Not that anything wrong with using it, but given anyone with $$$ for tokens can do it, its nice to know what their process is etc etc. Gives me more confidence that its worth checking out.
    • Bnjoroge3 hours ago
      It’s a pretty safe assumption that most recent projects use AI in some capacity. Models have gotten pretty good
    • afavour3 hours ago
      Agreed... the commit log looks very much AI generated to me. And the project was started on May 22 so it&#x27;s just under two months old.<p>Not that either of these things is disqualifying but AI really has make it difficult to know how established a project actually is.
    • hbcdbff1 hour ago
      It’s slop
  • vivzkestrel1 hour ago
    - stupid question: how do you make a programming language like this from scratch?<p>- what is the thought process that goes into making a programming language<p>- what is this field of study or discipline called?<p>- why do we have so many programming languages? what purpose do they intend to solve and how do we know what purpose a programming language was made for?<p>- for example, why was swift made if objective c exists and why was objective c made if c++ exists?
    • stevekemp12 minutes ago
      Making new programming languages is something a lot of people do for fun, and it&#x27;s also covered in most CS degrees too, albeit briefly.<p>We have so many programming languages because they tend to have a particular niche in which they&#x27;re useful. Many languages are still in use even though they&#x27;re very old (C, FORTRAN, COBOL), and others just keep getting updated over time and have a large userbase (Java, Perl, Ruby, Python).<p>99.99% of all new programming languages never get a critical mass of users. People create a new language to learn something, and they&#x27;re the only user. e.g. I&#x27;ve written a few FORTHs, have spent the past few weeks on writing a lisp compiler, and in the past wrote BASIC interpeters for fun.<p>If you want to make your own &quot;crafting interpreters&quot; is a good read:<p><a href="https:&#x2F;&#x2F;craftinginterpreters.com&#x2F;contents.html" rel="nofollow">https:&#x2F;&#x2F;craftinginterpreters.com&#x2F;contents.html</a><p>But there are a million other tutorials on writing a simple lexer&#x2F;parser&#x2F;interpreter&#x2F;compiler, and a lot of academic literature (e.g. The Dragon Book).
    • tinco35 minutes ago
      When I was in university the course was called compiler construction. Making a language like G# is very simple and about the level that the final project of the course would be if the team was working together really well and went for maximum bonus points.<p>We have so many programming languages because it&#x27;s a fun and relatively easy thing to start, and lots of people have differing opinions of how it should be done. Also making a programming language seems like a difficult thing from the outside so it has a certain allure.<p>Swift exists because objective c has archaic language design that modern developers reject. Objective C exists because as far as I know at the time smalltalk style object oriented programming was hip and C++ made the wrong decisions in their eyes. It could also be that C++ wasn&#x27;t popular enough yet at that point for Apple to commit to it. In that period basically all major operating systems went different ways. The Unix derivatives went all in on plain C, Microsoft went C++ and Apple objective c, though I think OSX itself is plain C for the most part.
    • Deukhoofd15 minutes ago
      For your first two questions, I can&#x27;t recommend Crafting Interpreters enough, it&#x27;s probably one of the best entry-level books that goes into that entire process.<p><a href="https:&#x2F;&#x2F;craftinginterpreters.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;craftinginterpreters.com&#x2F;</a>
    • Scaevolus34 minutes ago
      - it&#x27;s easy to prompt an LLM to do it for you, especially if you&#x27;re targeting a pre-existing runtime like CLR or transpiling to another language. previously you&#x27;d have to grind out the parser and compiler for a new language, but a lot of that work is mechanical<p>- &quot;I want a language that works a little differently&quot;<p>- programming language theory (PLT), generally<p>- languages are tools. the authors should explain what their languages are best suited for<p>- Obj C and C++ were both developed around the same time as extensions of C. Obj C was focused on message passing and Smalltalk&#x27;s object system, while C++ was focused on adding as many abstractions as possible to C. Neither language has good support for avoiding null pointer dereferences, one of the primary things Swift addresses with its richer type system and Optionals.
  • achr24 hours ago
    What is it bringing from those languages? The FAQ reads like it is just altered syntax for C#, no difference in semantics or function.
  • seabrookmx3 hours ago
    Here I am wanting the opposite. I want C# compiled into a static binary like with the GoLang toolchain!<p>Maybe .NET AOT will get there one day..
    • borland2 hours ago
      I used it recently to write a useful utility related to OpenTelemetry file processing. .NET AOT produced a single-file static binary which is similar in size to what Go would produce, and can be dropped into any target system and run without dependencies, just like Go does.<p>It was nice. Feel free to take a look<p><a href="https:&#x2F;&#x2F;github.com&#x2F;OctopusDeploy&#x2F;OtelImporter" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;OctopusDeploy&#x2F;OtelImporter</a>
    • sedatk3 hours ago
      What&#x27;s missing in .NET AOT?
      • dotschnet2 hours ago
        That’s a dishonest question, take any code base &gt;10000 slices, it will not work with aot ootb.<p>Read the docs of what’s missing, if you are honestly interested in what’s missing.<p><a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;dotnet&#x2F;core&#x2F;deploying&#x2F;native-aot&#x2F;fixing-warnings" rel="nofollow">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;dotnet&#x2F;core&#x2F;deploying&#x2F;nati...</a><p>Reflection, is one thing. Of course some runtime stuff are missing, but the problem is that no one is using source generators before trying out aot, so as soon you try aot you just meet a wall of compilation errors. Most people just want to be able parse a json file without jumping through hoops. Bad DX
  • hbcdbff1 hour ago
    “Width-bearing”, wow, Claude really loves that “bearing” suffix doesn’t he
  • onlyrealcuzzo4 hours ago
    Just trying to offer some help here, not an attack:<p>``` G# brings Go-, Kotlin-, and Swift-style ergonomics — packages, func, data class, nullable handling with if let, structured concurrency with scope — to the .NET runtime. Source compiles directly to managed assemblies. ```<p>This is a decent description - but as someone also building a language in a similar space - who isn&#x27;t super familiar with the .NET runtime... My first question is... Why not C#?<p>I&#x27;m by no means a C# expert, but I thought <i>most</i> of this was supposed to be in C#. C# is not terribly un-ergonomic, and Go is simple, but not really ergonomic except for Goroutines...<p>`packages` and `func` being the first two selling points is alarming. Sure, people probably prefer `fn foo() -&gt; Dog` over `Dog foo()`. No one&#x27;s picking a language for that. C# has namespaces... C# has `record` and `record struct`. C# has not-ideal nil handling, but it still has it. I&#x27;m not convinced `if let` is better enough to be a selling point - a lot of people <i>don&#x27;t</i> like that!<p>Your main selling point seems like `scope` and your concurrency model vs C#, but C#&#x27;s is not exactly terrible...<p>Rich Hickey has a joke about semi-colons in language design, and your main pitch seems to sell yourself short.<p>Btw, I think your GitHub page does your language a lot better justice.
    • Syzygies4 hours ago
      &gt; Rich Hickey has a joke about semi-colons in language design<p>I didn&#x27;t see semicolons, but I saw plenty of {} braces, and I can&#x27;t explain why they&#x27;re needed.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;Syzygies&#x2F;Compare" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Syzygies&#x2F;Compare</a><p>&quot;I&#x27;m already quite sure how I will die: I&#x27;ll read another article on Hacker News about a new programming language where I see nothing new, and I&#x27;ll read that they included {}; to make C programmers comfortable. I&#x27;ll have a massive stroke.&quot;
      • AdieuToLogic3 hours ago
        &gt; I didn&#x27;t see semicolons, but I saw plenty of {} braces, and I can&#x27;t explain why they&#x27;re needed.<p>&quot;Curly braces&quot; (a.k.a. &quot;{}&quot;) make lexicographical scope simpler to manage for lexers and parsers. Alternate grammars increase compiler complexity, excluding trivial token replacement.<p>As for semicolons, they are only a linguistic requirement for supporting multiple executable statements on the same source-code line.
    • narnarpapadaddy3 hours ago
      It’s probably too little too late in the age of Claude…<p>C# grew all those features over time. It had to leave syntax to support old patterns to preserve backwards compatibility. Thus, the syntax has grown a bit noisy over time to support all those features. This is reboot keeping the newer ergonomics and streamlining the syntax.<p>I probably wouldn’t adopt it for existing projects or use .Net for any future project, but it looks really nice for what it is.
  • raphinou58 minutes ago
    Is the familiar syntax so important? I learnt f# being used to algol syntax, and the syntax was not a hurdle.
  • Kuyawa4 hours ago
    I like it. I consider myself picky with regards to weird syntax in new languages and this is terse and very readable. Approved!
  • andyferris1 hour ago
    I was hoping from the tagline it would have sum types (rust-like payloads on enums, like Swift).
  • Kitajima1 hour ago
    I lived long enough to see a programming language called G#.<p>What a great era.
  • HeavyStorm5 hours ago
    Looks nice, congratulations.<p>I feel like we&#x27;ve done full circle. Languages are back to being (mostly) procedural. I&#x27;m not sure I like it, but it seems that this is what people prefer.<p>Personally, I&#x27;d rather see something like dependant types on a dotnet language. An addition, not just a simplification.
    • demosthanos4 hours ago
      &gt; I feel like we&#x27;ve done full circle. Languages are back to being (mostly) procedural. I&#x27;m not sure I like it, but it seems that this is what people prefer.<p>Is this an actual shift, or is this just what happens when LLMs make it possible for anyone to build a language quickly?<p>This one feels less like someone thought carefully about what semantics they wanted to have and more like someone without a lot of familiarity with the design space of programming languages decided to build one that had all their favorite features from the languages that they already know:<p>&gt; G# brings Go-, Kotlin-, and Swift-style ergonomics — packages, func, data class, nullable handling with if let, structured concurrency with scope — to the .NET runtime.<p>Nothing wrong with that at all, I love to see the increased interest in language design, but I wouldn&#x27;t read a shift in preferences into this wave of PLs. It&#x27;s a shift in <i>who</i> is writing PLs, not a shift in preferences.
  • captainbland2 hours ago
    I&#x27;m less familiar with Swift but from a design point of view Go and Kotlin have really different ergonomics. Kotlin leans in really hard to creating DSLs etc. whereas Go avoids all that stuff like the plague. To me this makes the tag line a little confusing, like what does this imply for the design of this language?
  • jdw642 hours ago
    Looks pretty good to me.
  • aryehof2 hours ago
    Does this support new programming abstractions, or just another remix of existing ones?
  • chews5 hours ago
    dupe: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48876506">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48876506</a>
    • gnabgib1 hour ago
      You&#x27;ve been tricked by the SCP, this is the dupe - check the IDs (it&#x27;s older than the one you linked to.. although there&#x27;s also the one 31 days ago &#x2F;w 9 points&#x2F;2 comments from the OP)
  • Areading3143 hours ago
    New programming languages? Doesn&#x27;t seem needed anymore
    • stevekemp9 minutes ago
      Things like Zig, D, Odin, Rust, etc, are outliers. Most new programming languages are used only by their creators.<p>It&#x27;s hard for a new language to find its feet, and make a name for itself. Unless its created by a big company with a lot of clout and internal users. (e.g. Rust, Go).<p>People keep creating new languages because it&#x27;s educational, interesting, and sometimes even fun. Doesn&#x27;t mean they&#x27;ll get used, and it doesn&#x27;t mean they&#x27;re pointless.<p>Of course you learn very little if you make an LLM write the damn thing. But that&#x27;s a different story.