Scala 3 introduced a new approach to macros along with other nice new features. Macros treat code as data, they allow to analyze its structure and generate new code on compile time.
In this post I’ll introduce Scala 3 macros with some additional features and show a simple use case that can be solved with help of macros — how to generate prepared statements checked on compile time with an external SQL schema. I refer frequently to the project and describe some features based on its code, so I encourage to download it, but is not indispensable.
The scope of…
Scala 3 stable version is finally released so it is high time to look at it deeper and find out how the new Scala can help in real life projects. In this post I’ll describe some of the new Scala 3 features from practical perspective and their usage in a simple web application. I created this project to practice Scala 3 in situations that will be encountered during the development of a “real” application, check which features are most useful and what problems can be encountered.
The features of Scala 3 that are included in the application:
This post will cover a method to have functional PyCharm autocomplete for a custom OpenCV built from sources. OpenCV regular building method allows programs to run properly, but prevents PyCharm to complete code and causes a lot of warnings about functions that IDE cannot find. This method is rather a workaround, but it is the only way I found it to work as of June 2021.
Although Anaconda comes with a prebuilt OpenCV package, there are situations that you may want to include special features that are not available in the general builds like non free algorithms or Qt/GTK support…