Giter Club home page Giter Club logo

norns's Issues

AOP静态编织

AOP静态编织 分为两条道路:

使用预处理器添加源代码, c#中即 代码生成
(c++等中存在类似宏的处理,可以真正得添加源代码,而c#暂不存在,c# 中对应讨论 https://github.com/dotnet/csharplang/issues/341)。
使用后处理器在编译后的二进制代码上添加指令, dotnet 里面可以叫做 IL 重写。
  1. 可以使用Roslyn 在编译时修改AST添加拦截的代码
    2.使用mono.cecli或者dnlib 在编译后进行IL重写

此外,还有另一种方案。
实现CLR Profiling API 在JIT编译时修改method body。实现真正无任何限制的运行时静态AOP

JIT Imporve

  • find way to clean roslyn memory
    i can't clean memory in .net core . Only way is use JIT to do AOT things to make jit not run with user code.
    But there is AOT base on source generator.
  • project structure
  • TypeSymbolInfo cache
  • skip generate type which already has generated code
  • do some test
  • doc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.