Extensible abstract factory pattern, c++
This post introduces extensible abstract factory pattern. It is assumed that you know the basic factory pattern and CRTP pattern. The sample code is written by c++14. The main disadvantage...
Calling Rust functions from C++
Let’s talk about FFI(foreign function interface) on rust. FFI provides the way of creating a C-friendly API. +-----------------------------+ | hello() | +-----------+ | | main() => | hello() {}| |...
The serde with no_std
This post is about sample code about serde_json_core. Previous post about serde is here. Serde with no_std In order to use Serde in a no_std context default-features needs to be...
Rust procedural macro (function-like)
In this post, we will write rust source code using proc macro. Procedural Macros Procedural macros allow creating syntax extensions at compile time. This means it allow you to run...
Rust macro system and declarative macro
In this post, it is about to use declarative macros to make DSL and variadic interface. Rust Macros Fundamentally, macros are a way of writing code that writes other code,...