-
@bjn that is a great bug.
simplified https://godbolt.org/z/MnEGcE595 -
I finally wrote up something I've presented at meetups for a while.
When you refactor, you're doing similar transformations compilers do: propagation, sinking, inlining, fusion. But the refactoring literature has gaps, some useful moves don't have names. In this post I called one "Distribute for Fusion", deliberately duplicating code into branches so you can fuse and simplify.
https://ignition.github.io/posts/refactoring-as-algebra/
Does this have an established name?
-
#clangd is has issues when module import is in a header file, and not the cpp file. This is not a problem for clang, its all in the same translation unit. AFAICT this is legal and fine C++20 module code, clangd shouldn't have this issue.
-
#if DECLARE_CONSTEXPR
template<typename T>
constexpr int f1(); // works
#else
template<typename T>
inline int f1(); // also works
#endiftemplate<>
constexpr int f1<int>(){ return 1;}static int global = 2;
template<>
inline int f1<double>(){ return global;}constexpr int f2(); // here declaration must match definition
constexpr int f2() { return 3; }int main() {
constexpr auto v1 = f1<int>();
auto const v2 = f1<double>();
auto const v3 = f2();
return v1 + v2 + v3;
} -
A question for the #TechCommunity: What drives you to attend (or skip) local #meetups and #TechEvents?
I'm trying to better understand the barriers and motivators around community engagement. If you don't attend, I'd especially love to hear why, and if you know colleagues or friends who don't, please share their perspective too!
(boost for reach, I do want peoples views)
#DevLife #TechMeetup #SoftwareEngineering #DevCommunity #programming
-
#rant #recruiters
It's highly annoying when you can tell it's all automated mail merge. At no point have they invested any time into you, but they are happy to waste your time with unsolicited valueless messages they expect you to respond to. -
I'm not a big #anime watcher.
But I have really enjoyed watching 86 https://www.imdb.com/title/tt13718450/
Any recommendations on what to seek out next?
-
It is a good feeling when you can unlock performance gains with some simple changes. Memgraph performance was already great, but keeps getting better.
-
I'm still looking to hire a c++ engineer to work with me.
Also other roles that have come up in other teams are
- Full-Stack Engineer - Angular/Node.js
- Senior Technical Writer -
#memgraph the company I work for has a senior C++ opening. If it is a good fit for you or someone you know, I'd love to see yours or your friend's application.
https://join.com/companies/memgraph/11845427
Please boost for reach.
-
I don't often post about work, but its worth sharing and celebrating from time to time.
A small team, including myself, have worked for a while to improve replication and introduce high availability to #memgraph
It is now at a stage which is developer ready. There maybe some future small changes to be done around UX but the majority of the work is done.
🥳 A big milestone 🚀
https://memgraph.com/blog/announcing-memgraph-high-availability-automatic-failover-developer-ready
-
We are looking for a staff level software engineer to join us at #memgraph.
Please have a look at our job description.
https://join.com/companies/memgraph/10585840-staff-software-engineer-database-internals-c -
Code generation around atomics is strange.
What is desired is `lock cmpxchg16b` but it hard work to make compiler produce it.
clang has the best codegen IMO. It took me a while to realize I needed `alignas(16)`
-
I'm proud of my #memgraph changes today. Fixing some small #cpp #cplusplus issues. Now a simple query just got ~80% faster.
Not bad for a +23 -13 change https://github.com/memgraph/memgraph/pull/1227