Better HN
topnewbestaskshowjobs
Log inSign up

fthiesen

29 karma · joined Mar 4, 2021 (5y ago) · 19 submissions

- Algorithmist - Currently working on Compilers at Microsoft CoreAI - Interested in Efficient Software, C++, Data Structures, Graphs, Performance, Randomized Algorithms - Amateur cyclist
Submissions

1.

Compute Has a Turkey Problem(chico.dev ↗)

3 points · by fthiesen · 3mo ago · discuss

2.

Show HN: Porting Open3D to Python without writing a LoC(chico.dev ↗)

2 points · by fthiesen · 7mo ago · discuss

3.

CppCon: C++ Beats Rust in JSON Serialization [video](youtube.com ↗)

5 points · by fthiesen · 8mo ago · discuss

comment 10mo ago · link · parent

Do let me know if you have any feedback on the library/code/utilities!

comment 10mo ago · link · parent

You can play with it, there is a docker container in the repo that you can use for development purposes! (with clang-p2996 branch)

Another option would be to copy some stuff over to the compiler-explorer and use a "single-header" version of the library there. I can facilitate this in case you are interested. They have reflection for EDG, GCC and Clang (I am only working with clang for now)

6.

Show HN: Mirror_hash – Hash anything with C++ reflection(github.com ↗)

3 points · by fthiesen · 10mo ago · 3 comments

7.

"I love to specialize hash functions for my classes" (No One)(chico.dev ↗)

4 points · by fthiesen · 11mo ago · discuss

8.

Mirror_bridge: Outrunning V8, PyPy, and LuaJIT with C++26 Reflection(chico.dev ↗)

2 points · by fthiesen · 11mo ago · discuss

comment 11mo ago · link · parent

If you want, give it a shot with the prebuilt image and let me know if it works for you.

I want to make this project as mature as possible for when support arrives at the upstream version of clang, gcc and msvc. Feedback is appreciated!

comment 11mo ago · link · parent

lol

comment 11mo ago · link · parent

It is making it's way to GCC as well: https://www.reddit.com/r/cpp/comments/1ojbv1a/gcc_implementa...

It is officially part of C++26, so only a matter of time before being part of the major compilers (:

I've added a pre-built image in the github repo, feel free to try it out if you are curious and let me know if you face any issues/bugs!

comment 11mo ago · link · parent

Btw, it seems that the reflection implementations are progressing quite fast. There is already a gcc version with reflection support that is available on compiler explorer: https://www.reddit.com/r/cpp/comments/1ojbv1a/gcc_implementa...

Will add support for it as soon as I have some time to spare!

comment 11mo ago · link · parent

Thanks for the suggestion, let me take a good look at callbacks.

Another thing that I can't make work elegantly is compiling template functions from C++, since we have no clue to guess which types will be instantiated in the Python code (and they can even depend on user input, so only determined at runtime)

comment 11mo ago · link · parent

I've added a prebuilt image, so it should be straightforward to try it out. If you have any problems with working on that prebuilt image please open an issue or reach out to me!

comment 11mo ago · link · parent

The P2996 definitely provides a way to work with reflection, the syntax can be a bit weird at first, but it gets more and more familiar. They have some cool examples here (https://isocpp.org/files/papers/P2996R13.html)

This idea of using C++26 compiler just for codegen sounds interesting. Will definitely give it some thought, thanks for the suggestion (:

16.

Show HN: Mirror_bridge – C++ Reflection powered Python binding generation(github.com ↗)

29 points · by fthiesen · 11mo ago · 7 comments

17.

Mirror-bridge – Making Python bindings frictionless(chico.dev ↗)

35 points · by fthiesen · 11mo ago · 9 comments

comment 1y ago · link · parent

His blog and books are great. RIP

19.

Minimum Spanning Trees in Expected Linear Time – A Working Implementation(franciscothiesen.github.io ↗)

3 points · by fthiesen · 4y ago · discuss