98 karma · joined Dec 8, 2019 (6y ago) · 14 submissions
comment 5y ago · link · parent
I also gave an updated version of the talk at embo++ with some small updates and fixes to some code examples, not sure if that will be on youtube but you can see the slides here: https://docs.google.com/presentation/d/1tHdUBWSf8oVbX8Oe4V15...
3.
Scam YouTube livestream pretending to be Linux Foundation(youtube.com ↗)
2 points · by LucaSas · 6y ago · 2 comments
comment 6y ago · link · parent
There are a lot of strategies to apply garbage collection and they are often used in low level systems too like per-frame temporary arenas in games or in short lived programs that just allocate and never free.
comment 6y ago · link · parent
comment 6y ago · link · parent
So if you do choose to make the implementation in another language, there are extra considerations that you have to take into account.
comment 6y ago · link · parent
Also if people don't have a Rust toolchain setup, compiling the library and using it from source would be hard. In some cases integrating Rust in their toolchain could be hard.
Regarding metal and vulkan I will edit the article to mention Vulkan there too alongside metal. Thanks for your feedback.
comment 6y ago · link · parent
comment 6y ago · link · parent
If you are interested in learning more about writing complex software in C consider checking out HandmadeHero.
Sadly there need to be more good resources on learning how to write good C and low level software. I am hoping my article can be a starting point for people who wish to learn about library design for example.
comment 6y ago · link · parent
Regarding prefixes, I advice that you start by writing the library in C and then wrap it in C++ for a variety of reasons that you might want to consider. In C++ you should indeed always use namespace.
Header guards have the advantage over pragma once that they are standard and you can also use them to check if a library is included. I might remove that since maybe it's not that important and people might different views.
Regarding constants, I was referring to things such as numeric constants for which you would constexpr in C++. Maybe I can be more explicit there. Thanks for the feedback.
comment 6y ago · link · parent
When it comes to exceptions and rtti the sad reality is that about 50% of the C++ community doesn't use (for one reason or another), so if you do use them in a library it can have an impact.
14.
How to write better game libraries(handmade.network ↗)
146 points · by LucaSas · 6y ago · 123 comments