Hacker GitHub

← All repos

dotnet/roslyn

View on GitHub ↗ ★ 20,760 C#

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.

143 mentions on Hacker News by 115 people: 18 stories, 125 comments · first 2015-01-14 · latest 2026-05-11

Mentions per year 143 mentions · busiest year 2015 (32)
20082026
  1. …else that VB 6 does better, other than COM integration, which .NET was always a bit lower level https://github.com/dotnet/roslyn Now I bet what you mean is the graphical part, and yes that is only partial open source.
  2. ▲ 3
    Unions merged into .NET 11 SDK Preview 3
    story by roflcopter69 · 2026-03-11 · 0 comments
  3. In C#, you would normally implement rules like this with a custom Roslyn Analyzer or with https://github.com/dotnet/roslyn/blob/main/src/RoslynAnalyze... . It’s fair to say C# projects tend to have smaller denylists than mature C++…
    comment by oldmanhorton · 2026-01-24 · in Banned C++ features in Chromium
  4. …making things much more costly. See the document on red-green trees I wrote here for more detail: https://github.com/dotnet/roslyn/blob/main/docs/compilers/De... • The problem domains are a bit different. In Roslyn the design is a highly…
    comment by Metasyntactic · 2026-01-23 · in Tree-sitter vs. Language Servers
  5. …very large files, even if the initial parse is milliseconds, we have an incremental parser design ( https://github.com/dotnet/roslyn/blob/main/docs/compilers/De... ) that makes 99.99+% of edits happen in microseconds, while reusing 99.99+…
    comment by Metasyntactic · 2026-01-22 · in Tree-sitter vs. Language Servers
  6. …time in an editor. Roslyn was designed from day one for IDE scenarios. We do incremental parsing ( https://github.com/dotnet/roslyn/blob/main/docs/compilers/De... ), but more importantly, we do incremental semantic analysis. When you…
    comment by Metasyntactic · 2026-01-22 · in Tree-sitter vs. Language Servers
  7. …features will almost always compile and work as before. breaking changes are for corner cases, e.g. https://github.com/dotnet/roslyn/blob/main/docs/compilers/CS...
    comment by SideburnsOfDoom · 2025-12-26 · in The Algebra of Loans in Rust
  8. Yes it is. you can fork the roslyn compiler and toolchain here: https://github.com/dotnet/roslyn It's even an mit license one of the most permissive.
  9. MIT license: https://github.com/dotnet/roslyn
  10. …cannot make modifications directly to user-supplied code. You can read about how they work here: https://github.com/dotnet/roslyn/blob/main/docs/features/inc... Basically they get the files (and ambient metadata) that are part of the…
  11. …Language Server, is plugin agnostic, it's MIT licensed and is essentially a part of the compiler: https://github.com/dotnet/roslyn/tree/main/src/LanguageServe... . Did you mean to say a debugger? That one has an open alternative…
    comment by neonsunset · 2025-05-08 · in Void: Open-source Cursor alternative
  12. Roslyn language server is OSS too: https://github.com/dotnet/roslyn/tree/main/src/LanguageServe... There was never an issue with Omnisharp OSS-ness itself nor what replaced it. It was always about debugger and then "Dev Kit" extension…
  13. C# has COMEFROM, too: https://github.com/dotnet/roslyn/blob/main/docs/features/int... they make it cumbersome to use by hand, but not impossible
    comment by harrison_clarke · 2025-03-08 · in Introducing command And commandfor In HTML
  14. …But it's also not easy to reproduce, which just proves how well tested compilers usually are. 0: https://github.com/dotnet/roslyn/issues/74872
    comment by nsoonhui · 2025-02-24 · in It is not a compiler error (2017)
  15. …uses. It, however, can be replaced with Samsung's 'NetCoreDbg' by using the extension fork[2]. [0]: https://github.com/dotnet/roslyn/tree/main/src/LanguageServe... [1]: https://github.com/dotnet/vscode-csharp [2]:…
  16. Also, the main languages: https://github.com/dotnet/roslyn
  17. Your wish is granted. https://github.com/dotnet/roslyn
    comment by chungy · 2024-08-18 · in The Vala Language (2017)
  18. …<https://www.hetzner.com/> - Roslyn (74%, 2%) – .NET compiler platform for code analysis. <https://github.com/dotnet/roslyn> - Tauri (74%, 2%) – Lightweight framework for building desktop apps with web technologies. <https://tauri.app/> -…
  19. I'd say it is pretty bad[1], but the F# REPL is decent at least. 1. https://github.com/dotnet/roslyn/issues/26934
    comment by Nuzzerino · 2024-06-23 · in LINQPad – The .NET Programmer's Playground
  20. …both pretty easy to embed. [1] https://learn.microsoft.com/en-us/dotnet/core/tutorials/netc... [2] https://github.com/dotnet/roslyn/blob/main/docs/wiki/Scripti...
  21. C# and VB compiler suite, MIT license: https://github.com/dotnet/roslyn .NET virtual machine, MIT license: https://github.com/dotnet/runtime SDK, MIT license: https://github.com/dotnet/sdk You were saying?
  22. The C# compiler has an MIT license and is available on GitHub, which is about as FOSS as it gets. https://github.com/dotnet/roslyn
  23. My understanding is that the .NET team is working toward this with Interceptors: https://github.com/dotnet/roslyn/blob/main/docs/features/int...
    comment by lfpeb8b45ez · 2024-04-30 · in Asynchronous Programming in C#
  24. .NET is a little smarter about switch code generation these days: https://github.com/dotnet/roslyn/pull/66081
  25. ▲ 2
    Still No REPL for .NET Core in Visual Studio
    story by flipchart · 2024-02-17 · 0 comments
  26. …happens in the open: https://github.com/dotnet/runtime https://github.com/dotnet/installer https://github.com/dotnet/roslyn https://github.com/dotnet/aspnetcore Could Microsoft do a better job at making it even more community-facing and…
    comment by neonsunset · 2023-09-17 · in Java 21 makes me like Java again
  27. ▲ 2
    Interceptors
    story by ingve · 2023-08-08 · 0 comments
  28. https://github.com/dotnet/roslyn/blob/main/docs/features/int... Without interceptors, source generators can only add new code, but cannot modify any existing code. Interceptors enable method call substitutions.
  29. …finding variable swaps of the form tmp = a; a = b; b = tmp; that can better be done using tuples: https://github.com/dotnet/roslyn/blob/main/src/Analyzers/CSh... And here is the code fix that automatically performs the substitution:…
    comment by kryptiskt · 2022-10-25 · in Ask HN: Examples of Top C# Code?
  30. …it is almost certain that new intellisense plugin by MS will also be built on top of Roslyn. [0] https://github.com/dotnet/roslyn [1] https://github.com/OmniSharp/omnisharp-vscode#the-c-extensio...
  31. …class files and whatnot so the final build could be done with the normal command line tools. [0] https://github.com/dotnet/roslyn
  32. …over 700: https://github.com/golang/go/issues . Or .net, over 5000 issues for the compiler alone: https://github.com/dotnet/roslyn . I'd guess stuff like Java, glibc would be similar if they used github
    comment by Macha · 2022-02-26 · in Announcing Actix Web v4.0
  33. …If you want legal advice, talk with a lawyer. Here is the license for the C# compiler (Roslyn): https://github.com/dotnet/roslyn/blob/master/License.txt The license is an MIT which means that you should be able to fork the language and do…
  34. .Net 5 and C# 9.0 are very much 100% open all the way down to the core. https://github.com/dotnet/roslyn (c#) https://github.com/dotnet/winforms (UI) https://github.com/dotnet/wpf (UI) https://github.com/dotnet/core (Foundation) I don't…
    comment by jarjoura · 2020-09-22 · in Swift on Windows
  35. …Rather than rewriting code they can only add code but that ensures some amount of predictability. https://github.com/dotnet/roslyn/blob/master/docs/features/s...
  36. …people trying to find it on GitHub - it's incredibly well supported, regularly updated, and lively: https://github.com/dotnet/roslyn
    comment by JoeMayoBot · 2020-06-02 · in Show HN: An introduction to Go for C# people
  37. I would point to https://github.com/dotnet/roslyn itself as an example of a modern codebase. We try to adopt and use all of the new language features there as we write them to try and determine if the ergonomics are good.
    comment by jmarolf · 2020-05-24 · in Welcome to C# 9.0
  38. …), both the compiler and the standard library. Likewise, the Microsoft C# compiler is also FOSS ( https://github.com/dotnet/roslyn ). You seem to enjoy closed-source platform libraries (WinForms, AppKit), and want to promote developing…
    comment by balnaphone · 2020-05-11 · in Being Slow to Criticise
  39. …reading it, here's an updated link to the CS file referenced in his blog post (the original moved): https://github.com/dotnet/roslyn/blob/master/src/Compilers/C...
    comment by rkagerer · 2020-03-29 · in New Grad vs. Senior Dev
  40. The VB compiler is written in VB: https://github.com/dotnet/roslyn/tree/master/src/Compilers/V...
    comment by contextfree · 2020-03-18 · in The chronic suffering of the VB.NET community
  41. …of how everything works. Compare with this, which is probably more in the style you're thinking of: https://github.com/dotnet/roslyn/blob/master/src/Compilers/C... There's so much "noise" that it's hard to see the "big picture", and the…
    comment by userbinator · 2020-02-18 · in C4: C in Four Functions (2014)
  42. …fixed in results. For example, here are the 230 tracked items done for the VS 16.4 public release: https://github.com/dotnet/roslyn/milestone/53?closed=1 You can also see that there are many more resolved issues in previews of that public…
  43. …a long time, but weren't being felt yet. The issue that's most directly related to this is here: https://github.com/dotnet/roslyn/issues/40300 However, immutable vs. mutable isn't related to the issue I linked. It's just about keeping more…
  44. C# records: https://github.com/dotnet/roslyn/blob/features/records/docs/... It's a struct or class but you only define the data members and the compiler auto-generates boiler plate like constructors, equality tests, etc.
    comment by buckminster · 2020-02-04 · in Java 14 Feature Spotlight: Records
  45. …was used for the TypeScript compiler. Anders Heljsberg has a great little lecture [2] about it. [1] https://github.com/dotnet/roslyn/wiki/Roslyn-Overview [2] https://www.youtube.com/watch?v=wSdV1M7n4gQ
  46. Roslyn? https://github.com/dotnet/roslyn
    comment by reikonomusha · 2019-05-21 · in Free Wolfram Engine for Developers
  47. https://github.com/dotnet/roslyn/issues has 5750 open and 12,407 closed
  48. Yup, that doesn't seem to be a real restriction. Here's a comment on a roslyn issue for dotnet: https://github.com/dotnet/roslyn/issues/2212#issuecomment-98... > Of course it could be implemented type-erased style, but that's an unpleasant…
  49. Symbols can be embedded in the assembly nowadays, though it is not the default option. https://github.com/dotnet/roslyn/issues/12390
    comment by sebazzz · 2019-04-01 · in C#88: The Original C# (2018)
  50. > Unlike C# How do you figure? The Csharp compiler is Apache licensed. https://github.com/dotnet/roslyn/blob/master/License.txt