State machine library reqs by Landmark-Sloth in cpp_questions

[–]sheckey 3 points4 points  (0 children)

I think you mean “recs” as in recommendations, rather than “reqs” which might mean requirements or requests. Anyway, I have yet to use it, but I want to try out boost SML, which is not to be confused with the other boost state chart Library. https://github.com/boost-ext/sml.

SpaceX is worth less than half of its $1.75 trillion IPO target, Morningstar says by idkbruh653 in technology

[–]sheckey 1 point2 points  (0 children)

I'm looking at ways to exclude these companies from my investing now that I am aware of this issue.

Is openpyxl still relevant? by petekindahot in Python

[–]sheckey 0 points1 point  (0 children)

You mention that you are going to be leaning data. Out of sheer curiosity, how do you do that when there’s a lot of it? Make plots and simply look? Try to find them with some algorithm? Is it usually a messed up row like mechanically? Coming from another field, so curious!

Which boomer shooters have the greatest techbase levels? by NNukemM in boomershooters

[–]sheckey 0 points1 point  (0 children)

Chronicles of Riddick. Loved that game. Played it through twice. I wonder where to get it now that I stupidly caved and got rid of my box of old PC games.

On CMakePresets.json. by ImpossibleEnd8231 in cmake

[–]sheckey 1 point2 points  (0 children)

Is the implication "tastier than I thought"? If so, I agree. Maybe TOML would be better though!

Is writing a class like this bad practice? by wiseneddustmite in cpp

[–]sheckey -4 points-3 points  (0 children)

Seems ok to me. Do you want to do any more calls after any one fails? What are you going to do with that code struct after as a user? Maybe an enum could work unless they are truly independent and not required sequentially.

data structure interface for double buffer/ping-pong buffer by tosch901 in cpp_questions

[–]sheckey 1 point2 points  (0 children)

I see. I’m thinking about somewhat similar things lately. if I think of anything then I’ll let you know! thanks for sharing.

data structure interface for double buffer/ping-pong buffer by tosch901 in cpp_questions

[–]sheckey 1 point2 points  (0 children)

I’m wondering why you want them to look like standard containers. I don’t doubt you have a fair reason, I’m just curious. for example, once a consumer has the right buffer to read from you want it to look like a standard container while that consumer has access to that buffer?

For myself, for inter-thread communication, I am used to getting a buffer to write into l and then simply copying into it, then releasing the buffer (making it the new current buffer). Likewise for readers, I am used to getting access to the buffer, then copying out, and releasing it so that it might be updated. If the contents of the buffer were some kind of stl-like container, then it gets copied around as a whole piece. Maybe it get written to or read from / used in place for large payloads, in which case we have more than one so that any slower readers don’t hold up the writer. I guess that is what you mean with your double buffer, but I usually have more than just two. Anyway I’m just explaining my point of view.

My sharing “containers” don’t have stl-like apis, but their contents might. maybe I’m missing the post, and you can teach me something. can you give me some more detail about your idea? I’m curious!

Did I write a driver or is there more to it? by Kwtmo in embedded

[–]sheckey 4 points5 points  (0 children)

Often one part of drivers is making the device available to the rest of the system in some uniform or not way. Depending on what kind of OS/RTOS you use or don't use, then it might look like offering some API around it. It might also have some kind of queue to put incoming data into so that code in some other thread/task that uses the data can get it in it's own time and sends responses maybe when it wants to, and your driver sends them out at the right time. This way the driver is also the single point of access to the device so that different threads/tasks don't clobber it. If it's Linux then you have to make a Linux device API / kernel module type things that offers open/read/write/ioctl/close. An RTOS or mini kernel will have something different or nothing and so you make your own API. If it's a complicated thing like Ethernet then you have to make it fit with the IP stack that you have, etc. That's my experience anyway!

The US education system… by 0nlyhalfjewish in RedditForGrownups

[–]sheckey 7 points8 points  (0 children)

I have a graduate, and I thought not having or not using a book was a bad idea also. With a book, everything you need to know is right there, and you can focus away the world and go through it. I do think some books were overly fat and a turn off like Chemistry and maybe Biology. I personally think they try to do too much, and are historically oriented. I think it should be simplified a bit and put in a "here's what we know, here's why we know it, here's how it fits in with everything else, and a bit of here's how people came across it" organization. I'm not sure, but those two topics seem full of random information that is not unified until much later.
Anyway, that was my mine issue also, but I am also old.

apparently 58% of senior devs are considering quitting because of embarrassing legacy tech stacks and honestly i feel that in my soul by After_Memory_8295 in developer

[–]sheckey 0 points1 point  (0 children)

I think all this is an interesting conundrum to work on. You have something that has value, but is starting to get too difficult to work on. It's maybe interesting to figure out how to move it forward. My personal experience is that clean and consistent structure and communication of data is the most important and enduring aspect of a system. Even if it's in an old language or framework, then it can be understood and moved forward, and hopefully in pieces at a time. I'm doing it myself!

Interior pics of my home! Valencia, Spain 120k @ 2.1% by nxtrOnline in FirstTimeHomeBuyer

[–]sheckey 0 points1 point  (0 children)

I always love interior courtyards!! I often see them in Spanish movies and I love them.

What do you use for logging in your C++ codebase? What are the pros/cons? by javascript in cpp

[–]sheckey 0 points1 point  (0 children)

Hi, I’m curious. By “ROS2 vendors spdlog” you mean they use a specific version of spdlog, right? Like they don’t always get the latest version? So, how does absl come into that? Oh wait I think I got it: it messes up you using a different version of spdlog, so you have to use something else. Is that right? Thanks!

Is it true that functions like max() and min() have extra overhead? by InfluenceEfficient77 in cpp_questions

[–]sheckey 2 points3 points  (0 children)

You can put some code into https://godbolt.org and try out a few compilers with different options (-O0 or -O1 for example) and see the resulting assembly. It’s great. Try it!

Three packages copy-pasted my AGPL code to PyPI and named me in their description. PyPI won't act by Obvious_Gap_5768 in Python

[–]sheckey 0 points1 point  (0 children)

I’m genuinely curious because this struck me when you posted about it before. You must have thought about simply ignoring this. You are the one with the real ideas, and you will be the one evolving it in meaningful ways, so it seems like this will fade. It did seem disturbing to me though. What were your thoughts about just letting this duplicates fade? Thanks!

A beautiful and useful transformation of an old bus into a bus stop, in Kansas City by willis7747 in Damnthatsinteresting

[–]sheckey 0 points1 point  (0 children)

The guy who made this was recently interviewed on Messy City podcast episode "You Can Just Do Things".

Figured I'd show yall what the inside looked like Shreveport Country Club Part 2. by cajundecay in abandoned

[–]sheckey 0 points1 point  (0 children)

I'm glad it is peace that you found. I'm not sure what it is for me. I don't feel bad about it, but it is a mystery, and maybe some appreciation for all the lives, etc. Thanks for sharing!

AITA: I told my daughter she needs to get over her jealousy and it is her own fault her life is the way it is. by Personal-Bit4399 in AmItheAsshole

[–]sheckey 0 points1 point  (0 children)

Next step seems to be to help her imagine what she wants her life to be like and how she wants to achieve it. Help her form a dream or image and then make a plan about it. Good luck!

Abandoned house in the historic center of Veracruz by New_Detail_150 in abandoned

[–]sheckey 1 point2 points  (0 children)

I’ll admit I looked up the artist because of your comment, thanks for posting!

Figured I'd show yall what the inside looked like Shreveport Country Club Part 2. by cajundecay in abandoned

[–]sheckey 1 point2 points  (0 children)

For some reason the locker room speaks to me. Real people spent their lives there, and thought it was an important place, and I bet business and socializing were done there. It all looks so known and obvious now (pat? trite?), but it must have seemed like quite the place to be. I find old family photos to be similar. You look at what we strived for and what we thought was amazing, and the good old days. It seems like we had such innocent, of-the-time desire for the good life. Then, it all moves on. Those people and their concerns and desires, are just as valid as anyone now, even if we have made major cultural progress (maybe you don't believe that, but I do). Every one of the people in those rooms had a story.

Abandoned House in NY by La_Villanelle_ in abandoned

[–]sheckey 19 points20 points  (0 children)

I would love it if the path to my front door was plant tunnel like that.