Posts by jakub_neruda@techhub.social
 (DIR) Post #APuPHdQjYOSvldfzdI by jakub_neruda@techhub.social
       2022-11-23T22:12:24Z
       
       0 likes, 0 repeats
       
       @nobushia I dabble with video game review writing from time to time and I would like to at least try to contribute to your project.Wish you the best and we'll see how it goes! 🙂
       
 (DIR) Post #APwEyuX78B0C5F0tWK by jakub_neruda@techhub.social
       2022-11-24T19:26:24Z
       
       0 likes, 0 repeats
       
       @nobushia It's looking good! 👍I would consider unifying accent colors in sidebar with topbar so it looks more coherent. Or maybe colors that are closer to each other.
       
 (DIR) Post #APwIwpU7KT6bfDsIAC by jakub_neruda@techhub.social
       2022-11-24T20:10:49Z
       
       0 likes, 0 repeats
       
       @nobushia Do you know http://nintendolife.com? They have very similar style to what you're proposing. That is also why I hinted at slightly different color scheme, so you can distinguish your site from theirs.
       
 (DIR) Post #APwJOB7kyyx8b0SNm4 by jakub_neruda@techhub.social
       2022-11-24T20:15:47Z
       
       0 likes, 0 repeats
       
       @nobushia They also have sister sites Pure Xbox, sporting a green theme and Push Square, sporting a blue one 😉
       
 (DIR) Post #AQAU6OJ33IapyYtkJ6 by jakub_neruda@techhub.social
       2022-12-01T16:21:46Z
       
       0 likes, 0 repeats
       
       @nobushia My December haul of graphic novels arrived today, so a comfy couch, hot tea and some comics 😁
       
 (DIR) Post #AQEub53m2CO8hZt6mm by jakub_neruda@techhub.social
       2022-12-03T19:37:28Z
       
       0 likes, 0 repeats
       
       @nobushia You have reminded me of this Intel ad
       
 (DIR) Post #AQL96nKw1qlZJ8guKu by jakub_neruda@techhub.social
       2022-12-06T19:48:22Z
       
       0 likes, 0 repeats
       
       @nobushia Looks way cooler than the previous version!  Great job 😉
       
 (DIR) Post #AQLC0k6VR1WDPGkQKG by jakub_neruda@techhub.social
       2022-11-11T11:04:36Z
       
       0 likes, 1 repeats
       
       Any #pixelart artits here who use #Gimp?I've released first version of my pixel art utils and I'd like to get feedback and suggestions for more features.I currently have:* Animation Preview* Tile Preview* Tile / Animation exporterCheck it out here: https://github.com/nerudaj/gimp-pixel-art-utils#gamedev #programming
       
 (DIR) Post #ATd4IbNYgjjCzhGmDA by jakub_neruda@techhub.social
       2023-03-14T04:19:26Z
       
       0 likes, 0 repeats
       
       #Rust prides itself in how (among others) its ownership semantics differ from #cplusplus. Instead of pass-by-value making copy, it moves the memory inside the function. If you want to copy, you have to do it manually. In C++, you copy by default and move on demand.I think this is just a different way to screw the user. I think the compiler should decide when to move and when to copy, based on how the source variable is used afterwards and just do it on behalf of the user (instead of bitching about it in the error log).C++ compilers cannot do so effectively, but Rust is already designed with use-after-move diagnostic in mind. If it did that, it would eliminate one point of confusion for newcomers and be appropriately effective in terms of generated assembly speed.#programming
       
 (DIR) Post #ATd4IcZeFGzchTvwh6 by jakub_neruda@techhub.social
       2023-03-14T15:12:32Z
       
       0 likes, 0 repeats
       
       @ilmai Now I understand your point. True, Rust is very explicit (maybe too much for my taste) and I can respect this argument.I would still love this feature in C++ because it has the slow option as the default and it shouldn't be the programmers job to optimize this by hand.One can design their APIs to mandate move like Rust, but that is dangerous until use-after-move is enabled for every C++ compiler as a default error.
       
 (DIR) Post #ATd4Id5uJKnUJX1hya by jakub_neruda@techhub.social
       2023-03-14T22:57:16Z
       
       0 likes, 0 repeats
       
       @ilmai Still, there's a catch to being explicit.If you call foo(a: T) multiple times, cloning the parameter first N-1 times and moving it for the last time, it could easily happen that somebody will remove the last call and forgets to also change the last clone to move. Such things happen in production quite easily.Suddenly you have one clone too many, something that would not happen if you let the compiler to optimize it automatically...Maybe I am putting too much trust into the compiler but if C++ taught me anything it is that compiler is always smarter than myself.
       
 (DIR) Post #AansUklQZ3QGBPhJiq by jakub_neruda@techhub.social
       2023-10-03T12:10:34Z
       
       2 likes, 1 repeats
       
       Tip 25 of #TuesdayCodingTips - User-defined literalsC++ has many built-in literals for disambiguating types of constants, such as 'u' for unsigned, 'f' for float, or time-related literals from the chrono header (like ms, h, or min).The really cool thing is that you can define your own literals (since C++11) to make your domain-specific constants more legible. All these literals overload the operator "" with your custom _suffix. The data type that is supposed to be before _suffix is then determined by the function parameter type (consult the documentation for allowed parameter types: https://en.cppreference.com/w/cpp/language/user_literal ).Thanks to compile-time computing, these literals don't have to imply any runtime overhead for your code.An interesting use-case that I found is that literals can be leveraged to make described bool constants without having to wrap them in a temporary.#cpp #programming #tips
       
 (DIR) Post #Aaqv3Z96040xGSC1iq by jakub_neruda@techhub.social
       2023-10-16T19:23:27Z
       
       0 likes, 1 repeats
       
       I am learning German with Duolingo and I wonder if anybody could recommend a german gaming news site, preferably with shorter posts that I could use to improve my reading skills.If you don't know, boost is appreciated.#gaming #learning
       
 (DIR) Post #AcSLbgQ3qjrb2HfMky by jakub_neruda@techhub.social
       2023-11-29T18:55:47Z
       
       1 likes, 0 repeats
       
       Everybody tells you how you should have children, that they're amazing, the best thing you should produce in your life.But then a school union strike comes. Or covid. Or common flu. Or vacation. And suddenly the same people are really mad they have to take care of their own children.Hypocrisy my ass.#parenting