|
I'm certainly not going to click the link.
But, yes, I never simply accept that what they say is true.
Yet there's no reason to "fake" an injection, just inject something else -- the viewer has no idea what was actually injected.
He'd be a fool to trust an experimental drug.
modified 21-Dec-20 11:26am.
|
|
|
|
|
PIEBALDconsult wrote: He'd be a fool to trust an experiment drug.

|
|
|
|
|
He's got his "short sleeved shirt"; so he was thinking beforehand. Today's needles are "smaller"? No wincing, but he couldn't watch (like most). The staff looked like real medical technicians; too risky to fake.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Is Santa's basket thread-safe?
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
Dunno - but this year his sack is pretty thread-bare.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Yeah. a clear case of resource starvation[^]
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
Duel with Yeti arranged for Friday (8)
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Want a nice holyday, do you?! Posting easy won save you!
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
So any old fashioned plan for upcoming holidays?
|
|
|
|
|
|
Only if I was traveling with Doctor Who!
|
|
|
|
|
OK I'll bite.
YULETIDE. (anag: DUEL YETI)
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Well done - you are up tomorrow!
I thought I'd make it festive and pretty simple - up to you if you want to continue the theme or not!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
A CCC theme?!
It would be safer to start a discussion about politics!
|
|
|
|
|
Oh no it wouldn't. 
|
|
|
|
|
You shall not pass![^]
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
A sign you are getting old...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
That's a much better version. Everything is better with cats!
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
And you miss them when they are gone. I'm preparing a picture of our old cat for christmas. Here is the old lion: Gertrud[^]
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
I rewrote my JSON reader because the code was filthy on account of being a port from C#, and not being fully designed for what it ended up doing.
I also wanted to make sure it compiled and ran on the ATmega2560, my test 8-bit processor with 8kB of SRAM (since i tightly control allocations I can put a ceiling on the RAM use wherever i want - so if i want to test it limiting it to 2kB I can)
It screams on a 64-bit, and crawls on 8-bit but it runs.
It's kind of clever how I did it. You create extractors to pull data from your JSON dataset, and it directs the pull parser along the proper path, retrieving all the values for you super efficiently.
anyway, I'm patting myself on the back because this is pretty cool.
Although I'm running down a bug right now, and because everything is streaming it's really difficult to debug sometimes. For example, I can never see the entire field name I'm comparing against when I'm looking for a field because I do all comparisons inline to avoid loading the entire string into RAM.
This is fun to code, and I really think I did invent a better mousetrap.
I'm a long way from my next article but I'm pretty happy with this so far.
Real programmers use butterflies
|
|
|
|
|
Hi,
I took a brief look at your project. Looks like you had a lot of fun working on it. I can see that you are using a compiler that supports at least C++14 just by looking at some of the features you are using. But it seems you are mostly writing in just C.
I suspect that you could make your library much simpler by using some C++17 features. You should be able to attach a std::basic_streambuf directly to your allocator buffer. You could then parse it with the C++17 std::basic_string_view.
Try playing around with this:
template <typename T>
class make_stream_buffer_no_copy : public std::basic_streambuf<T, std::char_traits<T> >
{
public:
make_stream_buffer_no_copy(T* p, std::streamsize n)
{
basic_streambuf<T>::setg(p, p, p + n);
basic_streambuf<T>::setp(p, p + n);
}
std::basic_string_view<T> get_string_view()
{
return std::basic_string_view<T>(basic_streambuf<T>::pbase(), basic_streambuf<T>::_Gcount);
}
}
You should be able to attach this directly to your MemoryPool base address.
If you decide to go ALL into C++17 then you could also rewrite MemoryPool with memory_resource[^]
Best Wishes,
-David Delaune
|
|
|
|
|
You're looking at my old, messy codebase. My new one is cleaner and more efficient. At any rate I'm actually targeting C++11 (maybe 14?) i'm pretty sure (whatever the Arduino IDE uses) and I don't have access to a lot of the C++ standard stuff like the STL.
That's why it looks Cish. Arduino code is C++ but tends to be Cish due to lack of program space for all the extra code that templates tend to introduce.
Edit: adding, the difficulty isn't in managing pointers and data structures for me. That's second nature. That's where a lot of the full C++ features can help, but frankly, I can do without when necessary. I use them when I have them though for the most part. That said, the difficulty in this project was reducing RAM use by streaming everything and doing things like inline string compares right off the "filestream"
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: I don't have access to a lot of the C++ standard stuff Yeah, the Arduino probably has std::basic_streambuf but it might not have std::basic_string_view.
|
|
|
|
|
yeah, I'm just sort of avoiding the STL altogether (except for some standard type definitions which arduino has as well) rather than both introducing confusion over what's there and what's not, and potentially introducing code bloat via templates. On these little machines every byte of program space counts.
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: hese little machines every byte of program space counts Yeah, some years ago I had to write my own tcp/ip stack for a Rabbit semiconductor board. I remember having to support IEEE 802.1Q so I ended up with a single char[1522] which was enough room for parsing 1 packet at a time.
Fun times.
|
|
|
|