Simdutf is a godsend: github.com/simdutf/simd...
27.01.2025 11:02 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0@xoipos.bsky.social
Embedded c++ engineer, developer of https://github.com/volt-software/Ichor
Simdutf is a godsend: github.com/simdutf/simd...
27.01.2025 11:02 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0How else he's going to teach people why c++ strings are how they are? It solved a rail pain and will prevent pain for you once you understand. Otherwise, abusing ats::string will lead you to days of debug hell...
27.01.2025 09:56 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0Not to mention having different member variables depending on the CRTP param...
25.01.2025 09:37 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0A conversion allocates and does some "real" work for some definition of "real". Casts, especially c style casts, are just sprinkles of magic fairy dust to make the compiler treat something as a different type. Sometimes that fairy dust is actually demon dust though.
22.01.2025 03:57 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0Yeah, especially because it's mostly tailor made for Google's workflow. Haven't been able to try it, but perhaps github.com/uatuko/grpcxx is slightly easier to use?
20.12.2024 15:15 โ ๐ 2 ๐ 0 ๐ฌ 1 ๐ 0If you're writing your game in ASM, I have bad news for you.
You aren't a game dev.
You aren't making anything.
You're relying on a cheap tool to make the game for you, so you can feel proud.
Come back when you've written a game in hardware logic gates... then we'll talk.
Unfortunately I see a lot of global mutable state in embedded projects. Kind of like errno, but custom. Having independent parts of the code react or not depending on that leads to having at least half a working system in some cases.
16.12.2024 04:19 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0There's Conan and vcpkg. But before I get your hopes up, they're nowhere near as good as cargo.
12.12.2024 23:52 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0With WAL, synchronous=normal and order-dependent execution, I really wonder if it's use is justified. Either the use-case is one where'd one be better of using postgresql/mysql/etc or in a single user use case, I only see it as an overkill function that adds overhead.
12.12.2024 06:17 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0If you're able to use c++23: github.com/stephenberry...
This library is so much more convenient than any other to use and the performance is one of the best (jsonifier might beat it depending on use case)
Learning is fun, but c++ (especially on windows) is a marathon of masochism. Whether you enjoy such a thing or not is up to you. It will end up giving you a greater mastery of programming though, as you will have to touch on all the things that make a computer work.
11.12.2024 05:28 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0This seems like such a waste of engineering effort for practically 0 gains... I question the benefit of the asynchronous API too.
11.12.2024 03:35 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0Std variant should come pretty close?
10.12.2024 11:52 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0Wow. You'd think that after ten years of programming c++ I'd have noticed this. But no, TIL.
10.12.2024 11:51 โ ๐ 2 ๐ 0 ๐ฌ 1 ๐ 0๐
10.12.2024 08:55 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0๐
10.12.2024 08:54 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0A good out of the box thinking blog post on the current safety in c++ dichotomy: cor3ntin.github.io/posts/profil...
02.12.2024 22:46 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0It is one of the more difficult tools to use yes :(
01.12.2024 21:53 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0Does anyone have any recommendations on organizational learning? Double-loop learning and so on. #organizationallearning #managementbooks #learningfromfailure #books
30.11.2024 19:04 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0Homebrew is the answer: formulae.brew.sh/formula/x86_...
30.11.2024 15:23 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0The AI hype is so strong that Microsoft published an article that looks like it was written by an LLM. I keep saying it to whoever wants to listen, the current generation AI is making software development worse. jadarma.github.io/blog/posts/2...
30.11.2024 15:21 โ ๐ 4 ๐ 1 ๐ฌ 0 ๐ 0Link missing :(
30.11.2024 06:22 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0The enshittification continues. www.baldurbjarnason.com/2024/the-det...
30.11.2024 06:12 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0Story-time: C++, bounds checking, performance, and compilers -Coding in Old Entish
https://chandlerc.blog/posts/2024/11/story-time-bounds-checking/
#frombsky
Original->
And then in your c code you cast it back and forth.
This is great for learning making your own bindings, however, there are usually libraries that make c++ interop more seamless by hiding the gory details. F.e. pybind11 supports binding classes by generating a python class underwater.
No worries, everyone starts as a beginner.
Usually the pattern is that there is a "create_my_type" extern C function that returns a void pointer to python. Then other functions accept that as a parameter "void some_operation(void* my_opaque_type_ptr, int arg1, float arg2);"
Not sure I understand the problem. Passing around opaque void pointers, while frowned upon, is definitely possible with python <-> c interop. You just gotta sprinkle your c++ with extern "C" every point where you interop
28.11.2024 06:23 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0For those, like me, who recently joined blue sky, there's apparently a site to search for lists! Go check it out
27.11.2024 03:49 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0Well, stuff like reflection, constexpr/consteval, concepts being more powerful.
27.11.2024 03:40 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0Either rust or the Safe c++ proposal, which implements the borrow checker for c++.
26.11.2024 06:49 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0