Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jmax01
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
Building a Fast Lock-Free Queue in Modern C++ from Scratch
(jaysmito.dev)
1 points
by
jmax01
5mo ago
|
0 comments
2.
▲
Building a Hardware Accelerated Live TV Player from Scratch in C with Vulkan
(blog.jaysmito.dev)
4 points
by
jmax01
8mo ago
|
0 comments
3.
▲
Large Collection of Interactive(WASM) Creative Coding Demos C99 OpenGL/WebGL
(jaysmito101.github.io)
13 points
by
jmax01
2y ago
|
0 comments
4.
▲
Implementing Rust-like traits for C++ 20 (with no runtime overhead)
3 points
by
jmax01
2y ago
|
1 comments
5.
▲
by
jmax01
2y ago
Example Code: struct Shape { void draw(); int area(int x, int y); }; make_trait(Shape, draw, area); int main() { auto circle = Circle(); auto square = Square(); // NOTE: all of this is strictly checked, so if
6.
▲
by
jmax01
2y ago
Yes thats a typo
7.
▲
by
jmax01
2y ago
Well thats how the current C++ compilers/standard is. There is a limit to what a header/library can do
8.
▲
by
jmax01
2y ago
I get it, the Rust enum system is such a connivence, but well the secret sauce in the readme is what the "official people" say....
9.
▲
by
jmax01
2y ago
Hey, I am the author of this, I made this mostly for the purpose of experimenting and playing around and trying out things rather than actually using this for production projects. Making a proper compile time checker is pretty complicated(