9 comments

  • CharlieDigital5 hours ago
    I started my career doing ~20 years of C# from pretty much the very beginning (JavaScript even before then!).<p>Around 2020, I switched into the startup space and quickly picked up TypeScript since that&#x27;s &quot;what the kids use&quot;. It wasn&#x27;t without struggles, but once I wrapped my head around TypeScript as &quot;shapes for JavaScript&quot;, it clicked.<p>At the time, the startup was undertaking a new product built on Nest.js[0] which looked awfully similar to ASP.NET web APIs which had the benefit of being much more mature, complete, and with one of the best ORMs (EF Core). I suggested it to the team and was a bit shocked by the pushback.<p>It ultimately inspired me to do a bunch of writing [1][2] on just how similar these two languages are and how they&#x27;ve converged on syntax (no doubt owing to Anders at the helm). Of course, they ultimately still have quite a bit of a gap, but for teams that are working in TS and finding that they are outgrowing it, C# is a very natural choice.<p>I left that startup after a short stint, but boomeranged almost 3 years later. Company went from seed to series C in that time. End of last year, we started the migration from TypeScript on the backend to C# on the backend and haven&#x27;t looked back. The toolchain is far simpler and stable, the &quot;default&quot; ORM is far more flexible and powerful, the more rigorous type chain seems more conducive for agent-driven coding. Team adapted relatively quickly within ~4 weeks.<p>[0] <a href="https:&#x2F;&#x2F;nestjs.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nestjs.com&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;typescript-is-like-csharp.chrlschn.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;typescript-is-like-csharp.chrlschn.dev&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;itnext.io&#x2F;getting-functional-with-c-6c74bf279616" rel="nofollow">https:&#x2F;&#x2F;itnext.io&#x2F;getting-functional-with-c-6c74bf279616</a>
    • rafaelmn2 hours ago
      I can&#x27;t say for sure because I don&#x27;t know the full situation, but I&#x27;ve heard a similar story a few times and IMNSHO looking at it as &quot;they made the wrong choice initially&quot; is off because it assumes that a C# team could have delivered the initial version in the timeline required to get to the the next level of project.<p>If they had a team that knows nest and can iterate fast with it that&#x27;s the perfect choice. I&#x27;ve worked at multiple agencies over the years and was mostly in C# teams. Whenever a C# team got on greenfield&#x2F;startup projects it ended up being a shit-show of self inflicted slowdowns&#x2F;over-complications. I&#x27;ve seen 3 projects where in large part due to slow development of the MVP the project missed investment window or ran out of funds.<p>From my experience Node&#x2F;Rails teams were much more capable of delivering shit that works. It would eventually have a bunch of problems that would be non issues by default on a different stack like ASP.NET, but the difficulty of getting to that point and realizing that just being in that situation is a win is what most engineers miss.
      • ngruhn1 hour ago
        Same experience here. C# might have superior tooling, performance, whatever but the OOP baggage is too heavy. In theory you can write something else than a giant over-complicated, over-abstracted pile of OOP nonsense in C#, but every team I&#x27;ve seen <i>has</i>.
    • wbobeirne1 hour ago
      I assume the startup wasn&#x27;t also leveraging typescript heavily on the frontend, that tends to shift the weight in its favor. Having one set of tools to use across everything, being able to share logic and types without needing to go through lossy translation layers, and giving (especially small) teams better flexibility to move people around is a huge benefit.
    • hirvi7420 minutes ago
      &gt; <i>the &quot;default&quot; ORM is far more flexible and powerful</i><p>I have never used any ORM that is as capable. Entity Framework Core with Linq is what keeps me on .NET.
  • m1328 hours ago
    Surprising to me that (in the context of TypeScript) ECMAScript 4, ActionScript, and Google Closure were not mentioned! Especially the first two; Macromedia&#x2F;Adobe and Netscape&#x2F;Mozilla have been working on baking TypeScript into JavaScript proper for a whole decade before HTML5, the mobile boom, and the associated problems have emerged. ES4&#x2F;AS3 even had a nearly identical syntax.<p>What&#x27;s even more interesting is that Microsoft and Google were part of TC-39 at the time, and were the main opponents of ES4. While they had some rightful reasons to take this position, there&#x27;s no way ES4 hasn&#x27;t shaped TS in the end. Perhaps the lack of mention of any of this is due to that TypeScript might have been handed to Anders&#x27; team after the project vision and original design have developed (in the video, it is introduced as a continuation of &quot;SharpScript&quot;), but the interview still left me rather insatiated.
    • pier253 hours ago
      &gt; <i>ES4&#x2F;AS3 even had a nearly identical syntax.</i><p>Yeah. As someone who lived that era it was so frustrating that they abandoned ES4. I used AS3 daily for almost a decade until Adobe abandoned ActionScript4 and Flash Next around 2015.
    • epolanski8 hours ago
      Out of the big 4 involved in typescript, only one was involved with the tc39
  • pdevr9 hours ago
    I watched this last week.<p>The part about veering constantly to navigate the maze of internal politics is fascinating. The compromises he had to make, like not being able to put in on Github initially. The easy victories, like making TypeScript open source.<p>The long road to success. The obligatory advice for people writing new programming languages (Hint: Mostly, don&#x27;t.). His opinion about creating a new language for AI (I agree with his insight, but still think it is possible).<p>Overall, well worth watching.
  • nozzlegear41 minutes ago
    I used to dream about a TypeScript that targeted dotnet. These days I&#x27;m not so sure I&#x27;d use it, only because I have a tendency to get caught in the weeds &quot;big braining&quot; the type system to make the perfect type for every situation. F# is my happy medium for the backend.
    • gavmor29 minutes ago
      What&#x27;s missing from C#?
      • hirvi7425 minutes ago
        Discriminated Unions is one thing I would like.
  • lateforwork3 hours ago
    The real history of C# is that it is a rip off of Java. Anders &#x2F; Microsoft understandably doesn&#x27;t want to acknowledge that, but the rest of us can. C# today has diverged from Java, but the original release was Java with a few features added, such as properties, delegates, structs and unchecked exceptions.<p>That last one was a mistake, see <a href="https:&#x2F;&#x2F;mckoder.medium.com&#x2F;the-achilles-heel-of-c-why-its-exception-handling-falls-short-f7f932488aba" rel="nofollow">https:&#x2F;&#x2F;mckoder.medium.com&#x2F;the-achilles-heel-of-c-why-its-ex...</a>
    • HumblyTossed1 hour ago
      MS poached him (and was even sued for it - that&#x27;s how egregious it was) to create a Java killer because they had issues with Java.
    • jodrellblank32 minutes ago
      &gt; &quot;Hejlsberg: First of all, C# is not a Java clone. ... we looked at lots of languages, we looked at Java&quot;<p>- <a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20100109195800&#x2F;http:&#x2F;&#x2F;windowsdevcenter.com&#x2F;pub&#x2F;a&#x2F;oreilly&#x2F;windows&#x2F;news&#x2F;hejlsberg_0800.html" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20100109195800&#x2F;http:&#x2F;&#x2F;windowsdev...</a><p>You can just state the author of the language is lying and you somehow know better. You don&#x27;t even justify <i>why</i> &quot;they don&#x27;t want to acknoweldge it&quot; - even with Hejlsberg there acknowledging taking ideas from Java - or explain why C# had those differences mentioned in the rest of that interview, or why Microsoft separately wrote their own Java implementation like Visual J++ if C# was just &quot;their Java&quot;.
    • jolux3 hours ago
      Checked exceptions are bad because people just catch them and rethrow RuntimeException. Proper errors as data would be much preferable.
      • vips7L1 hour ago
        Checked exceptions are proper errors as data. There is no difference between Result[T, E] and T throws E. The same people that just rethrow as RuntimeException would call unwrap() on Result and panic. The main problem with _Java_&#x27;s implementation of checked exceptions is that they&#x27;re not fully in the type system because of Java&#x27;s weak type system. That is solvable with a strong type system though, like in Scala or Swift.
      • lateforwork3 hours ago
        &gt; <i>people just catch them and rethrow</i><p>People don&#x27;t have to. There is a lot of misinformation out there about checked exceptions, and people are responding to the misinformation.
  • socalgal210 hours ago
    I don&#x27;t know that many languages but, having been writing lots of typescript in the last 3 years there are so many things I love about it.<p>It infers types. If I do<p><pre><code> const data = [ { name: &#x27;bob&#x27;, age: 35, state: &#x27;CA&#x27; }, { name: &#x27;jill&#x27;, age: 37, state: &#x27;MA&#x27; }, { name: &#x27;sam&#x27;, age: 23, state: &#x27;NY&#x27; }, ]; </code></pre> Typescript knows data is an array of { name: string, age: number, state: string }. I don&#x27;t have to tell it.<p>Further, if I use any field, example<p><pre><code> const avg = data.reduce((acc, { age }) =&gt; acc + age, 0) &#x2F; data.length; </code></pre> It knows that `age` is a number. If I go change data and add an age that is not a number it will complain immediately. I didn&#x27;t have to first define a type for data, it inferred it in a helpful way.<p>Further, if I add `as const` at the end of data, then it will know &#x27;state&#x27; can only be one of `CA`, `MA`, `NY` and complain if I try to check it against any other value. Maybe in this case &#x27;state&#x27; was a bad choice of example but there are plenty of cases where this has been super useful both for type safety and for code completion.<p>There&#x27;s insane levels of depth you can build with this.<p>Another simple example<p><pre><code> const kColors = { red: &#x27;#FF0000&#x27;, green: &#x27;#00FF00&#x27;, blue: &#x27;#0000FF&#x27;, } as const; function keysOf&lt;T extends string&gt;(obj: { [k in T]?: unknown }): readonly T[] { return Object.keys(obj) as unknown[] as T[]; } type Color = keyof typeof kColors; const kAllColors = keysOf(kColors); </code></pre> Above, Color is effectively an enum of only &#x27;red&#x27;, &#x27;green&#x27;, &#x27;blue&#x27;. I can use it in any function and it will complain if I don&#x27;t pass something provably &#x27;red&#x27;, &#x27;green&#x27;, or &#x27;blue&#x27;. kAllColors is something I can iterate over all colors. And I can safely index `kColors` only by a Color<p>In most other languages I&#x27;ve used I&#x27;d have to first declare a separate enum for the type, then associate each of the &quot;keys&quot; with a value. Then separately make an array of enum values by hand for iteration, easy to get out of sync with the enum declaration.
    • grumpyprole9 hours ago
      What you are describing is structural types. It is indeed a mystery that these are so under used, especially as they are a cornerstone of type theory. Structural types are so useful that they creep into most languages in some way. Even in Java, the Kingdom of the Nouns, where the rulers refused to merge a pair class, functions essentially take tuple arguments and these tuples don&#x27;t have to be named and defined. You can&#x27;t return a tuple though, so there is an unfortunate asymmetry. In Haskell and OCaml, we like to describe functions in a structural way, so com.google.android.Predicate would be just &quot;a -&gt; Bool&quot;. You wouldn&#x27;t have to convert your com.google.guava.Predicate. But even these languages lack structural records and variants and suffer for it.
      • ngruhn1 hour ago
        By now I&#x27;m also convinced that structural typing is a better default. Nominal types are still useful to assign properties that are hard or impossible to encode with structure alone (e.g. string that is a valid email address) . But I haven&#x27;t encountered any other examples yet, where I&#x27;m missing nominal types.
    • jeroenhd2 hours ago
      Type inference is part of every modern language. Structural typing not so much, though.<p>Java has it through a compiler extension (<a href="https:&#x2F;&#x2F;github.com&#x2F;manifold-systems&#x2F;manifold&#x2F;tree&#x2F;master&#x2F;manifold-deps-parent&#x2F;manifold-ext#structural-interfaces-via-structural" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;manifold-systems&#x2F;manifold&#x2F;tree&#x2F;master&#x2F;man...</a>) but I don&#x27;t know many other languages that support this feature.<p>As much as I dislike the entire Javascript runtime environment, I find TypeScript to be the best typing system out there for any imperative language.
      • matt_kantor2 hours ago
        &gt; I don&#x27;t know many other languages that support this feature<p>The other widely-used one is Go with its structurally-typed interfaces.
    • fuzzy29 hours ago
      Inferred types are really great, but I feel they do not scale. Inside a method&#x2F;function? Generally fine, but the signature, including the return type, had better be explicit.<p>Also, I think there was some performance issue with too much inference? Could be wrong, could also be fixed.
      • g947o7 hours ago
        This. As soon as you need to use the type in another function (e.g. function parameter), you&#x27;ll discover that it&#x27;s better to just write it out.
      • epolanski7 hours ago
        They do scale, but explicit types have two bonuses in my eyes:<p>1. can be read without a compiler, useful when reading PRs<p>2. They make the compiler work less, it&#x27;s easier to check than infer
    • raw_anon_11114 hours ago
      Not surprisingly, C# worlds the same way with the only exception that you have to declare the variables as “var” but they are still strongly typed
      • recursive1 hour ago
        Technically you&#x27;re also allowed to use anonymously typed objects as inferred generic typed parameters in method calls.
    • g947o7 hours ago
      Even though that works reasonably well, you may still want to explicitly define your types&#x2F;interfaces. In this example, if I do need to hardcode the data instead of fetching it somewhere, I would define the interface with &quot;state&quot; being a union of values, because there is nothing that stops you from using `state: &#x27;ABC&#x27;` which would be hard to discover.
    • sfn4210 hours ago
      Lots of languages can infer types. And your last example with the colors is just a dictionary.
      • grumpyprole9 hours ago
        Most languages have poor support for structural types though. If you try and join two records together (like a SQL join), what will your favourite language infer then?
        • sfn429 hours ago
          C# has anonymous types which is pretty much the same thing. Though I prefer to declare actual types for most usecases, I&#x27;ll only use anonymous types for intermediate results and such.
          • grumpyprole8 hours ago
            I certainly don&#x27;t mean to knock nominal types. But I think structural types are more fundamental. A language would only need a single &quot;newtype&quot; or &quot;nominal&quot; keyword to create nominal types from structural types.
            • lock15 hours ago
              Why structural is more fundamental?<p>C#&#x27;s anonymous type shares some flexibility of structural type system even though it still a nominal type.<p><pre><code> &gt; A language would only need a single &quot;newtype&quot; or &quot;nominal&quot; keyword to create nominal types from structural types. </code></pre> I think you also can add `structural` keyword &amp; apply structural type system in generally nominal type system as well if we&#x27;re talking about adding feature.
          • KellyCriterion2 hours ago
            Claude is &quot;very good&quot; in applying &gt;var&lt; continuously :-D
      • sheept9 hours ago
        dictionaries generally aren&#x27;t guaranteed to contain an entry for every possible value of the key type. while you could implement the colors example with a dictionary, ideally you&#x27;d want the type system to assure that given a Color, there will be a string associated with it
        • vips7L9 hours ago
          Sounds like enums with extra steps.
          • epolanski7 hours ago
            Enums aren&#x27;t type safe in typescript
            • vips7L2 hours ago
              Sounds like a major flaw.
          • socalgal26 hours ago
            it’s Enuma associated with data without having to repeat yourself<p>If you have to define the Enums in one place and then repeat them all in another just to associate data with each one you’ve failed
            • vips7L2 hours ago
              Maybe you can elaborate but enums in Java or Kotlin easily have data associated with them.<p><pre><code> enum class Color(val rgb: Int) { RED(0xFF0000), GREEN(0x00FF00), BLUE(0x0000FF) }</code></pre>
      • fuzzy29 hours ago
        It&#x27;s not a dictionary (type-wise). &quot;as const&quot; is the magic ingredient.
  • andrewstuart11 hours ago
    We need Anders to make one final language.<p>A <i>MINIMAL</i> memory safe language. The less it has the better.<p>Rust without the crazy town complexity.<p>The distilled wisdom from C# and Delphi and TypeScript.<p>A programming language that has less instead of more.
    • bonesss7 hours ago
      On the .Net VM you’re describing F#, mostly by virtue of being based on OCaml.<p>Contrasted with TypeScript and C#, F# is smaller, more expressive, stricter, with mature pattern matching and type resolution baked in from the ground up. F# was years ahead of the major languages on what are increasingly looking like ‘the basics’ around ADTs and immutability in modern distributed computing. OCaml and F# capture the linguistic high points of VB, Delphi, and C# with a broad spectrum of OOP(-lite) approaches, and have led those languages by decades on functional constructs that result in meaningfully tighter code. With the benefit of hindsight some approaches clearly map better to cloud computing and system verification.<p>F# also sits parallel to lots of living C#, objectively we see ‘less is more’. Less code per line, fewer lines per solution, terser and more LLM-efficient language. Error rates and refactoring costs are also meaningfully better IME, but harder to quantify in general terms.
      • christophilus5 hours ago
        It’s a great language. I just wish its compilation speed matched that of OCaml.
    • blackoil10 hours ago
      I want something that will bring productivity of Delphi to Web. May be I am old now, but I could have built applications in a weekend in Access or Visual Basic that will take weeks now in latest web stack.
      • NetMageSCW22 minutes ago
        ASP.Net Web Forms still exists, though it is deprecated.
      • rr8081 hour ago
        Right? I was hoping webassembly would bring back some proper gui tools like this to avoid the whole JS&#x2F;DOM but no luck so far.
      • pjmlp3 hours ago
        OutSystems, but it isn&#x27;t cheap.
    • pjmlp3 hours ago
      Hardly, even Turbo Pascal 7 for MS-DOS is more advanced than Go&#x27;s type system.
    • tester7569 hours ago
      C# is way to go then
    • aloha243610 hours ago
      &gt; Rust without the crazy town complexity.<p>To be clear, the language has a GC then?
      • jayd162 hours ago
        I suppose it could have some kind of ARC. In theory some future languages could even have some hybrid approach? A high perf default but you can fallback to a GC allocation for hard things?
        • AndrewDucker2 hours ago
          I&#x27;m pretty sure that there are multiple GC crates for Rust out there. But using them mixed in with non-GC variables presumably makes things more complex.
    • HumblyTossed59 minutes ago
      You don&#x27;t have to use all the features of C#. I make my living at it and don&#x27;t touch a lot of them. The issue with C# is culture. They went full in on blog driven development so there&#x27;s way too many people who will shave the C# yak and yell this is the way to do things this week.
    • tonyedgecombe9 hours ago
      &gt;We need Anders to make one final language.<p>I do feel like there is a gap for a modern compiled, functional and garbage collected language.<p>Go isn&#x27;t it because it lacks the functional constructs.<p>C# and Java aren&#x27;t it because they depend on a VM.<p>Rust isn&#x27;t it because of its difficult memory management.<p>Swift isn&#x27;t it because it is so tied to Apple and their platforms.
      • metaltyphoon4 hours ago
        C#, with default tooling, can compile without needing a VM, for windows, macOS, linux and some other platforms.
        • zigzag3123 hours ago
          I wish that Nuget would show which packages are NativeAOT compatible.
          • metaltyphoon3 hours ago
            It will probably get there one day since all BCL is annotated. Perhaps this is not done because you can have parts of the library be completely safe to use in AOT while another part not be.
      • rednb8 hours ago
        What you are looking for is called F#. You get native interop with C# and access to all .NET&#x2F;C# libraries as a bonus. We use it as a daily driver for a complex B2B2C cloud platform.
        • Sammi7 hours ago
          Does it not run in a VM?
          • NetMageSCW19 minutes ago
            You can embed the framework into the application so it is a single distributable.
          • rednb5 hours ago
            Yes you are right, it does not properly support NativeAOT yet.<p>But it isn&#x27;t a need for most use cases, unless you want to do mobile development and meet app store policies. But even then, mature F# frameworks like Fable transpile your F# code to React &amp; Cie.
          • christophilus5 hours ago
            It can be compiled, but that’s not the use case it was originally designed around, so it’s not quite as first class an experience as with Go or Rust.
      • HumblyTossed57 minutes ago
        That&#x27;s the problem though. People want one language to be The One (tm) and that&#x27;s just not possible. Your The One (tm) isn&#x27;t mine.
      • kryptiskt8 hours ago
        C# doesn&#x27;t depend on a VM these days when it is AOT compiled. Same for Java, though C# is rather more user friendly in how it goes about it.
      • jorams7 hours ago
        There are plenty of languages in that niche you could be using. OCaml, Haskell, F#...
      • fpsvogel5 hours ago
        Roc might be that language one day. Not yet because it&#x27;s pre-0.1.
      • EddieRingle8 hours ago
        Kotlin has a LLVM backend, among others.
    • LarsKrimi10 hours ago
      Oberon 07?
    • Sharlin7 hours ago
      The minimal memory-safe language is Go. Turns out it&#x27;s too minimal for most.
      • andrewstuart7 hours ago
        It’s not memory safe.
        • Findecanor2 hours ago
          Please elaborate. I&#x27;ve heard that you could break Go&#x27;s memory safety through a race condition, but that&#x27;s as far as my knowledge goes.
    • gucci-on-fleek10 hours ago
      What about Lua? The language is very minimal, memory safe, and has Pascal-like syntax just like Delphi.
      • ptx9 hours ago
        Lua&#x27;s variables being global by default seems somewhat error-prone.
        • gucci-on-fleek9 hours ago
          Agreed, but the recently-released v5.5 fixes that [0], and it&#x27;s fairly easy to fix this in older versions with the following snippet<p><pre><code> setmetatable(_G, { __newindex = false, __index = false }) </code></pre> [0]: <a href="https:&#x2F;&#x2F;www.lua.org&#x2F;manual&#x2F;5.5&#x2F;manual.html#2.2" rel="nofollow">https:&#x2F;&#x2F;www.lua.org&#x2F;manual&#x2F;5.5&#x2F;manual.html#2.2</a>
      • andrewstuart7 hours ago
        verything is an off by one error in Lua.
        • gucci-on-fleek7 hours ago
          Or conversely, everything is an off-by-one error in every other language :)
    • appsoftware10 hours ago
      What would you take out of C# etc?
      • wvenable49 minutes ago
        All non-generic container classes and nullable reference types.
      • littlecranky679 hours ago
        (not OP) I would take out mostly historic stuff, that is in there for backwards compat, that has been superseeded. But this could be achieved using linters.
    • pmkary6 hours ago
      Yeah exactly.
    • vaylian10 hours ago
      Sounds like golang to me
      • andrewstuart10 hours ago
        Without the features I identified,yes, you’re right!
      • steve19778 hours ago
        Considering they used Go for the native compiler he might actually agree with you.
  • theusus7 hours ago
    Wasn’t he fired by MS?
    • algorithmsRcool3 hours ago
      No. He is a Microsoft Technical Fellow and still a core contributor to the TypeScript compiler.
  • rixtox9 hours ago
    If you feel that TypeScript, or hell even JavaScript, is becoming more alike C#, it&#x27;s actually deliberately done by Microsoft in benefiting their ecosystem. In this interview they mentioned they had internal demands to convert&#x2F;transpile C# into JavaScript or TypeScript. So by making these target languages more like C#, it directly benefits their need. But I don&#x27;t think this should be the driving force in designing ECMAScript. When they are pushing a language feature, they have an unspoken internal goal, and every choice they make is to make JS&#x2F;TS look more like C#, and they are more likely to dismiss proposals that preventing them from deliverying that goal. There&#x27;s likely a bit of conflict of interest there.
    • oaiey8 hours ago
      As a long term observer: definitely not a goal. But you have to be clear here: JavaScript and C# both are OO languages, both are having origins stories in Java&#x2F;C++, both are facing the same niche (system development), same challenges (processor counts, ...) and so on. And then, you put teams on it which look left and right when they face a problem and then you wonder that they reuse what they like?<p>C# language team is also really good. They did not do a lot of mistakes in the 25+ years. They are a very valid source of OO and OO-hybrid concepts. It is not only TS&#x2F;JS but also Java and C++ who often look to C#.<p>The story was not to transform C# code to JS but to use C# to write the code in the first place and transpile it. Not for the sake of having .NET usage but for the sake of having a good IDE.
      • m1327 hours ago
        &gt; They did not do a lot of mistakes in the 25+ years<p>If my memory serves, .NET and WinFS were the two major forces that sunk Longhorn, and both have been given their walking papers after the reset [1].<p>.NET and C# have grown to be mature and well-engineered projects, but the road there was certainly not without bumps. It&#x27;s just that a lot of the bad parts haven&#x27;t spilled outside of Microsoft, thankfully.<p>[1] <a href="https:&#x2F;&#x2F;www.theregister.com&#x2F;2005&#x2F;05&#x2F;26&#x2F;dotnet_longhorn&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.theregister.com&#x2F;2005&#x2F;05&#x2F;26&#x2F;dotnet_longhorn&#x2F;</a>
        • Sammi6 hours ago
          Are we mixing the language and the runtime here? C# the language seems weirdly free of weirdness and footguns.
          • jayd162 hours ago
            Not only that, they went as deep as mixing in project issues with language design. A massive rewrite mixed with massive feature changes is always a tricky thing no matter the language.
        • pjmlp3 hours ago
          Nope, what sunk Longhorn was politics.<p>Windows team is a C++ kingdom, and those devs will not adopt .NET even at gun point.<p>They redid Longhorn with COM and called it WinRT, irony of ironies, WinRT applications run slower than .NET with COM reference counting all over the place.<p>Google has showed those folks what happens when everyone plays on the same team, and now it owns the mobile phone market, a managed userspace with 70% world market.
        • moron4hire6 hours ago
          .NET was already a going concern before Longhorn even started. What sank Longhorn was the fact that writing an OS from scratch is hard and maintaining compatibility with existing OSes in the process is even harder, especially when you&#x27;re adopting a completely new architecture. Longhorn would have been a microkernel running 100% on the .NET runtime, mainline Windows is a monolithic kernel written in C++. I don&#x27;t know how it would have ever worked, whether .NET was &quot;perfect&quot; or not.
          • pjmlp3 hours ago
            See Android, or Meadows for alternative reality.
            • moron4hire2 hours ago
              Android still runs on a monolithic kernel written in a memory-unsafe language. I&#x27;m finding it suprisingly difficult to find information on Meadow, other than it runs .NET DLLs as user-space applications, but nothing about the structure of the kernel.<p>Longhorn was going to be more than that. Microsoft did have Singularity&#x2F;Midori projects, started around the middle of Longhorn&#x2F;Vista, and continued much longer after Vista released to build out the managed microkernel concept. It&#x27;s been about a decade since they&#x27;ve put any work into it, though.
              • pjmlp1 hour ago
                Microsoft wasn&#x27;t even able to deliver that, which was my whole point.<p>Joe Duffy mentions on a talk, that even with Midori running production workloads, Windows team could not be changed their mind.<p>Meadow uses a C++ based microkernel, the whole userspace is based on .NET, by the way.
    • pmkary6 hours ago
      Not at all. Before the use of TypeScript exploded, they had two features brought into it from C# which were namespaces and enums (both of which are amazingly good features. For the first one, no one knew what was the right choice back then. We had almost a dozen different module systems and TypeScript had gone their way to support all of them and namespaces were their own solution to the mess (remember they were trying to solve their own problems at first, it wasn&#x27;t to dominate anything). I personally used namespaces and I could have only the TypeScript compiler running and producing a single JS file for rapid development without the burden of --- then very slow --- webpack.<p>And for enums, using strings as enums was not a very efficient idea. I think JavaScript introduced Symbols for locked&#x2F;hidden properties but also meant to use them as enums. It never worked either and then the sum type, union type feature of TypeScript made the whole community to keep using strings as enums. This is still a very bad idea, it is not ergonomic, it is prone to many problems, and very inefficient to compare strings instead of integers. But hey TypeScript tried to fix the problem and almost everyone rejected it. And so enum is now discontinued.<p>Rest of the changes to TypeScript came from almost any other language but C#, probably the biggest changes ever to happen to JavaScript came directly from CoffeeScript. And then I personally saw how each of these new changes --- one by one --- arrived at C#. For what I have seen firsthand by reading the TC39 proposals, each feature came from a different community and different programming languages, (think about null operators !&#x2F;?, the nullish coalescing ??, the incoming pipes, fat arrows and lambdas, mixings) as JavaScript is the only language everyone has to use, and it has benefited everyone to have a language that has all the great things from all other languages.
    • steve19778 hours ago
      Well, for one, benefiting Microsoft&#x27;s ecosystem does not imply being detrimental to other ecosystems per se.<p>Furthermore, couldn&#x27;t the convergence of TypeScript towards C# be simply a result of shared goals and values of the two languages, especially considering they have the same principal designer?
    • epolanski7 hours ago
      C# is inherently OOP oriented and it&#x27;s type system works completely differently.
    • tester7569 hours ago
      It sounds like conspiracy theory that they design TS&#x2F;JS to convert from C# easier, huh.<p>The truth is that C# is probably the best designed mainstream language out there.<p>C# was known as a language with lowest amount of WTF per LoC
    • froh9 hours ago
      that&#x27;s the &quot;evil MS&quot; perspective<p>The sequence of turbo pascal &#x2F; delphi &#x2F; c# &#x2F; typescript which brought us LSP as a sidekick (!) IMHO has benefitted the whole industry at least as much as &quot;transpile c# to ecma script via typescript&quot; . no. much much much more.<p>I do not see a problem with MS also having an internal use case .<p>you know I wouldn&#x27;t stop using python &quot;because&quot; Guido now works at MS ...
      • ptx7 hours ago
        Python has an elected steering council and core team. The governance process explicitly tries to avoid conflict of interest by disallowing more than two steering council members working for the same employer. See PEP 13 [1].<p>By contrast, .NET is controlled by Microsoft (with veto over board decisions [2] and code changes [3]), integrates Microsoft&#x27;s telemetry to send your data to Microsoft by default [4] and deliberately hobbles features to benefit Microsoft [5].<p>[1] <a href="https:&#x2F;&#x2F;peps.python.org&#x2F;pep-0013&#x2F;" rel="nofollow">https:&#x2F;&#x2F;peps.python.org&#x2F;pep-0013&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;dotnetfoundation.org&#x2F;about&#x2F;policies&#x2F;.net-foundation-bylaws" rel="nofollow">https:&#x2F;&#x2F;dotnetfoundation.org&#x2F;about&#x2F;policies&#x2F;.net-foundation-...</a><p>[3] <a href="https:&#x2F;&#x2F;github.com&#x2F;dotnet&#x2F;runtime&#x2F;blob&#x2F;main&#x2F;CONTRIBUTING.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dotnet&#x2F;runtime&#x2F;blob&#x2F;main&#x2F;CONTRIBUTING.md</a><p>[4] <a href="https:&#x2F;&#x2F;github.com&#x2F;dotnet&#x2F;sdk&#x2F;issues&#x2F;6145" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dotnet&#x2F;sdk&#x2F;issues&#x2F;6145</a><p>[5] <a href="https:&#x2F;&#x2F;github.com&#x2F;dotnet&#x2F;sdk&#x2F;issues&#x2F;22247" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dotnet&#x2F;sdk&#x2F;issues&#x2F;22247</a>
      • oaiey8 hours ago
        Spot on.