incremental-compiler

SBT plugin: How to list files output by incremental recompilation

冷暖自知 提交于 2019-12-02 04:14:15
I am writing a plugin for SBT that requires a list of the class files generated by the last run of the Scala compiler. This list of class files is then passed into a program that performs some bytecode transformations. Since this transformation process can be slow, I only want the class files written by the last run of the Scala compiler (i.e. those that there modified), not all class files in the output directory. How can I obtain a list of the files last generated by the compile task? I think you cannot get this information directly from the Analysis object returned by the compile task.

Learning incremental compilation design

帅比萌擦擦* 提交于 2019-11-30 12:44:39
问题 There are a lot of books and articles about creating compilers which do all the compilation job at a time. And what about design of incremental compilers/parsers, which are used by IDEs? I'm familiar with first class of compilers, but I have never work with the second one. I tried to read some articles about Eclipse Java Development Tools, but they describe how to use complete infrastructure(i.e. APIs) instead of describing internal design(i.e. how it works internally). My goal is to

how could someone make a c# incremental compiler like Java?

谁都会走 提交于 2019-11-28 23:54:46
问题 Years ago someone asked why c# doesn't allow incremental compilation like Java. El Skeet said it is to do with Java outputting .class files rather than assemblies. Now that its 2011 and groovy things like the Mono compiler-as-a-service have been released, what would need to be done to make an incremental compiler for c#? edit: to everyone banging on about how this isn't a problem, here's a quote from Jon Skeet from the thread I linked to : Are you suggesting you never find yourself waiting