a-gafiyatullin / coolc Goto Github PK
View Code? Open in Web Editor NEW🤓 Cool PL compiler
License: MIT License
🤓 Cool PL compiler
License: MIT License
Issue: The new coolc calls GC more times than it does the reference coolc.
Test: tests/codegen/end-to-end/bigexample.cl
Note: Maybe it is because the new coolc deletes slots of let expressions after going away from the scope.
Почему бы не вынести класс Scope в отдельный файл?
https://github.com/gafiyatullin-a/Compilers/blob/da6b673f9d5a7e72c02b19a6f744dab5ac503850/Compilers-Alex-Aiken/include/semant/Semant.h#L28
2.
Можем ли эту константу определить как constexpr и в .cpp файле и не светить её на уровне класса?
https://github.com/gafiyatullin-a/Compilers/blob/da6b673f9d5a7e72c02b19a6f744dab5ac503850/Compilers-Alex-Aiken/include/semant/Semant.h#L34
3.
Если нам больше потом этот vector не нужен, тогда может мы его mov'нем внутрь Semant?
https://github.com/gafiyatullin-a/Compilers/blob/da6b673f9d5a7e72c02b19a6f744dab5ac503850/Compilers-Alex-Aiken/include/semant/Semant.h#L157
4.
Не проше ли оставить один add который всегда возвращает ваш ADD_RESULT?
https://github.com/gafiyatullin-a/Compilers/blob/da6b673f9d5a7e72c02b19a6f744dab5ac503850/Compilers-Alex-Aiken/include/semant/Semant.h#L46
Optimize headers - reduce excessive headers.
https://github.com/xp10rd/coolc/blob/main/coolc/src/lexer/Lexer.cpp#L5
I tried llvm11 and llvm 15. The same crash
@xp10rd
Refactor logging code - rewrite to the upper case.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.