Replies: 8 comments
-
I wonder if anyone from Metalama/PostSharp community would be against Metalama.Compiler going open-source. I wouldn't. |
Beta Was this translation helpful? Give feedback.
-
I'm interested to hear the potential motivations and use cases. |
Beta Was this translation helpful? Give feedback.
-
I, for one, am quite curious what it looks like, so I'd vote yes. At the same time though, I'm not entirely sure if I have a practical use case just yet of how else I'd use or extend the idea. Should I think of one though, I'd be happy to circle back to the thread and share it. |
Beta Was this translation helpful? Give feedback.
-
Yeah, definitely you should open source it :) I was talking to some guys in Roslyn community on Discord, and asked them what they think about Metalama, and they said that it looks very interesting, but they hated, that it's not free and open source :D |
Beta Was this translation helpful? Give feedback.
-
I am rarely digging into the roslyn compiler, and never considered contributing, but every now and again I find myself looking at the code to understand some small detail, be that a compiler error or just a curiosity. That is only possible if the code is available. Not sure that qualifies as sufficient insentive, but even for projects without any sizable communities or little to no interactions and contributions, it is still really beneficial to the consumers/users to see the code when there is something "weird" going on :) |
Beta Was this translation helpful? Give feedback.
-
Soo, will you open source it? |
Beta Was this translation helpful? Give feedback.
-
I don't know. The idea was to get some interest from the Roslyn community but we didn't get any. The benefits for the Metalama community are very limited. |
Beta Was this translation helpful? Give feedback.
-
Well, you got some interest, that post in that Roslyn thread received few upvotes :) |
Beta Was this translation helpful? Give feedback.
-
Metalama is a high-level meta-programming framework for C#. It uses most Roslyn extension points: analyzers, suppressors, source generators, code fix providers, and refactoring providers -- plus other VSX extension points.
However, one extension point is missing in Roslyn: source transformers, the ability to perform arbitrary transformations on the AST between parsing and compiling the code. This is why we forked Roslyn into a project named Metalama.Compiler, which can be extended thanks to Metalama.Compiler.Sdk. The only package that uses this extensibility point is Metalama.Framework.
Metalama.Compiler
is currently a closed-source project. We are considering contributing backMetalama.Compiler
to its original MIT license.What do you guys think about this idea? Would you have any use of it?
Beta Was this translation helpful? Give feedback.
All reactions