24 karma · joined Jan 9, 2017 (9y ago) · 6 submissions
comment 1y ago · link · parent
comment 2y ago · link · parent
> not hobbyist home soldering friendly for custom board designs
I assume by home soldering friendly, you mean too small. I'll make a case for why this isn't a bad thing...If it's difficult to solder a QFN package, then it will be equally difficult to solder the passives and flash it requires. Its price, availability, and good documentation make up for the package by creating an ecosystem of cheap boards hobbyists can use instead.
For example, I designed a keyboard around the Solder Party RP2040 Stamp (https://www.solder.party/docs/rp2040-stamp/). It integrated all the difficult components in a package that fit between the arrow keys and delete key.
comment 5y ago · link · parent
comment 9y ago · link · parent
Hardware-wise, it's just a Pi and UnicornHat. I wanted to use off-the-shelf components since it's in an office environment with rather strict rules about what can be plugged into the wall.
comment 9y ago · link · parent
Moving those methods to value_ptr_example_pimpl.cpp, just as you'd normally do for PIMPL makes the compiler happy.
This works for me in VS2017 but should work on any C++11 compliant compiler: https://gist.github.com/SeanCline/55d700d4fbf8cc1bdaeb44b547...
comment 9y ago · link · parent
Looking at the author's code on GitHub, this implementation seems decent.
One thing to note about this implementation is that it doesn't address the other big reason for doing dynamic allocations: polymorphic types. Value semantics are preserved so faithfully that objects are sliced just as they would be if they weren't dynamically allocated.
Consider this example: https://gist.github.com/SeanCline/c81218e4c0208ccb871268aecd...