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
20082026
-
…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.
comment by pjmlp · 2026-05-11 · in I'm writing a history of Visual Basic, Chapter 1 is up -
▲ 3
Unions merged into .NET 11 SDK Preview 3story by roflcopter69 · 2026-03-11 · 0 comments
-
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 -
…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 -
…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 -
…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 -
…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 -
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.
comment by zaphar · 2025-08-04 · in .NET 10 Preview 6 brings JIT improvements, one-shot tool execution -
MIT license: https://github.com/dotnet/roslyn
comment by dimaaan · 2025-07-30 · in .NET 10 Preview 6 brings JIT improvements, one-shot tool execution -
…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…
comment by poizan42 · 2025-06-02 · in The Princeton INTERCAL Compiler's source code -
…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 -
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…
comment by neonsunset · 2025-04-25 · in OpenVSX, which VSCode forks rely on for extensions, down for 24 hours -
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 -
…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) -
…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]:…
comment by neonsunset · 2024-09-30 · in Visual Studio Code is designed to fracture (2022) -
Also, the main languages: https://github.com/dotnet/roslyn
comment by WorldMaker · 2024-08-28 · in Microsoft donates the Mono Project to the Wine team -
Your wish is granted. https://github.com/dotnet/roslyn
comment by chungy · 2024-08-18 · in The Vala Language (2017) -
…<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/> -…
comment by quinncom · 2024-07-28 · in Dev tools that should be more popular according to the 2024 Developer Survey -
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 -
…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...
comment by jasomill · 2024-06-03 · in What I think about Lua after shipping a project with 60k lines of code -
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?
comment by naasking · 2024-05-08 · in The search for easier safe systems programming -
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
comment by raddan · 2024-05-08 · in The search for easier safe systems programming -
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# -
.NET is a little smarter about switch code generation these days: https://github.com/dotnet/roslyn/pull/66081
comment by zmj · 2024-04-22 · in The Performance Impact of C++'s `final` Keyword -
▲ 2
Still No REPL for .NET Core in Visual Studiostory by flipchart · 2024-02-17 · 0 comments
-
…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 -
▲ 2
Interceptorsstory by ingve · 2023-08-08 · 0 comments
-
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.
comment by zigzag312 · 2023-06-21 · in Interceptors (new C# metaprogramming feature) to fuel DapperAOT development -
…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? -
…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...
comment by lukebuehler · 2022-06-16 · in Despite best efforts .NET is still not an open platform -
…class files and whatnot so the final build could be done with the normal command line tools. [0] https://github.com/dotnet/roslyn
comment by smackeyacky · 2022-05-30 · in Lisp, Smalltalk, and the power of symmetry (2014) -
…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 -
…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…
comment by thesuperbigfrog · 2021-01-21 · in Ask HN: Can I legally fork C# and share my new version? -
.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 -
…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...
comment by voxic11 · 2020-09-11 · in Checked exceptions: Java’s biggest mistake (2014) -
…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 -
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 -
…), 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 -
…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 -
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 -
…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) -
…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…
comment by phillipcarter · 2020-02-12 · in How Microsoft rewrote its C# compiler in C# and made it open source (2017) -
…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…
comment by phillipcarter · 2020-02-11 · in How Microsoft rewrote its C# compiler in C# and made it open source (2017) -
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 -
…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
comment by atombender · 2020-02-02 · in Rust Moving Towards an IDE-Friendly Compiler with Rust Analyzer -
Roslyn? https://github.com/dotnet/roslyn
comment by reikonomusha · 2019-05-21 · in Free Wolfram Engine for Developers -
https://github.com/dotnet/roslyn/issues has 5750 open and 12,407 closed
comment by Someone1234 · 2019-05-15 · in Ask HN: Which GitHub repo has the most open issues? -
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…
comment by viraptor · 2019-05-04 · in What to Know Before Debating Type Systems (2008) -
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) -
> Unlike C# How do you figure? The Csharp compiler is Apache licensed. https://github.com/dotnet/roslyn/blob/master/License.txt
comment by bpicolo · 2019-02-03 · in Oracle's Newest Audit Tactic: Focusing on Java