ls-annotations
Experimental Boost.DI
ls-annotations | Experimental Boost.DI | |
---|---|---|
2 | 8 | |
7 | 1,103 | |
- | 1.5% | |
0.0 | 3.5 | |
about 1 year ago | 20 days ago | |
Java | C++ | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ls-annotations
-
Jodd – The Unbearable Lightness of Java
I remember the days, when the Spring framework was advertised as a lightweight alternative to Enterprise java beans (ejb); now Spring outgrew the pretence of being lightweight, don't know when that happened. last year i got back to working with java and spring boot, and i was overwhelmed by the prevalence of annotations in the tool.
To cope with all this, i wrote this little project: https://github.com/MoserMichael/ls-annotations
It's a decompiler that is listing all annotations, so it becomes easier to grep a text file in order to detect the dependencies between annotations.
-
Ask HN: What Are You Working On?
https://github.com/MoserMichael/ls-annotations wrote a tool that decompiles jdk byte code files and lists declarations (classes, functions, variables) with annotations only. You can also use it to find all classes/interfaces derived from a given class/inerface - and all the classes/interfaces derived from a given class/interface.
The tool uses the asm library to scan class files and to extract annotations. it can detect annotations with retention policy CLASS and RUNTIME. It can't detect annotations with retention policy SOURCE that are not put into bytecode, for example @Override is one of these.
Experimental Boost.DI
-
What are some cool modern libraries you enjoy using?
I love: https://github.com/boost-ext/di for dependency injection
-
[C++20] New way of meta-programming?
https://github.com/boost-ext/di (To detect constructor parameters and inject dependencies without runtime dispatch)
-
Dependency injection
I was looking to try boost.di for some time, looks nice. https://boost-ext.github.io/di/
- Dependency injection with c++
-
Architecture of a Qt application
Things like Dependency Injection/Inversion are a little more cumbersome in C++ but certainly can be done, and I believe there's libraries for that as well (found a couple searching around, like fruit and boost-ext di ).
-
Jodd – The Unbearable Lightness of Java
Dependency injection does not have to be dynamic, it can totally be done at compile time. Boost DI is an example: https://boost-ext.github.io/di/
- DI in c++ hurt by lack of good libraries?
-
Top five C/C++ things/tips/tricks you wish you had known earlier and are now used very often
Funny you mention dependency injection, proposed Boost.DI shall be up for Boost peer review probably in March. https://boost-ext.github.io/di/
What are some alternatives?
nanohttpd - Tiny, easily embeddable HTTP server in Java.
kangaru - 🦘 A dependency injection container for C++11, C++14 and later
spring-data-relational - Spring Data Relational. Home of Spring Data JDBC and Spring Data R2DBC.
American Fuzzy Lop - american fuzzy lop - a security-oriented fuzzer
jodd-json - JSON Java serializer and parser.
c-smart-pointers - Smart pointers for the (GNU) C programming language
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project
gcc-poison - gcc-poison
netty-websocket-broadcast-example - An example WebSocket broadcast server using Netty
outcome - Provides very lightweight outcome<T> and result<T> (non-Boost edition)
maplibre-gl-js - MapLibre GL JS - Interactive vector tile maps in WebGL2
stb - stb single-file public domain libraries for C/C++