RSSAmplifier

Blog

What could possibly go wrong? on What could possibly go wrong?

Recent content in What could possibly go wrong?

kihlander.netRSS feed ↗10 posts

Latest posts

c++ errors... a rant

Today a small rant… with a bit of an unexpected conclusion! In the beginning someone decided to use std::variant . This has made a lot of people very angry and been widely regarded as a bad move. So at work this week I had to look at code written with std::variant … a lot can be said about std::variant but this time it is about compile errors! Someone had decided to use an…

Link Dump Vol1

During my time of work this christmas I had lots of plans to work on some of my hobby-projects or maybe just check out some new stuff… none of that happened :D But I can at least write something, something low effort that is! I have had this document (and an ever growing youtube “watch later”-list!) where I have just dumped links to blog-posts, presentations and videos that I…

It's Healthy to Look Outside Your Own Tribe!

It’s time for me to interrupt the ordinary programming on this little part of the interwebs that I call my blog and not do the usual schtick with numbers, code and c++-bashing and be a bit more philosophical instead. One of my favorite philosophers! I think most of us working in tech, especially if we have been doing it for a while, know quite well what we like, what we think is “good…

Extending an Enum in Zig

For a while now I have been dabbling with zig and as a small test writing a NES-emulator (everyone should have written an 8-bit emulator in their life right?). While doing this I stumbled upon a kind of neat trick that you can do in zig that I thought was worth sharing… with kind of a “anti-climactic” end! Some background While writing some debug-tools I decided that I wanted to…

Compile Time Hashes in C - Revisied

Hashing strings in c++ at compile time has been possible since c++11 but is it worth doing? Me and a few colleagues was discussed this over a few beers and it reminded me that I have already written about it here (8 years ago… ARGH I’m getting old!). But a lot of time has passed since I wrote that… and I didn’t make any measurements in that article! shame! SHAME I SAY!

Software I Like

I’m not the one that tinkers a lot with my dev-environment but there are some tools and software that I need and find that they help a lot day to day. And since I like to read about what others use I might as well share some tips on tools that you might also like. My day-to-day OS of choice at home is xubuntu and at work Windows. I hope to make this post a living document so it might be…

Looking at c for better closures in c++

Note: before we begin, finding a name for this post was really hard! In this post I’m going to touch on a c++-technique to handle callbacks that I have not seen written about before and that many of my colleagues hadn’t seen before either. Probably it’s not something new and some of you will probably just say “yeah yeah, nothing new under the sun” but it’s…

Swapping memory and compiler optimizations

During my vacation for the holidays I thought that maybe I wanted some smaller project that you could fit in together with “family life” (not the easiest of endeavour!) and I got to think about some old code that I had laying about in my own little game-engine that I have thought about making public for a while. I thought it might be useful for someone else and maybe just doing some…

A Zig Diary

As it turned out I happened to help out with fixing a space to host a zig meetup here in Stockholm at the place where I work. However I haven’t written a single line of zig in my life… I felt that it might be worth doing something about that :D If you don’t know, zig is a new systems programming language! I have found zig quite intriguing for a while now but I haven’t had…

When memcpy() change!

To start of, yes, I know that this article touch undefined behavior and that all bets are off! I am currently working on a bigger post on swapping memory that is THIS close to being done… any day now (he has been saying the last year!). However this topic popped up and I was wondering if it was worth making the other post longer or just make a small one about it. As the other post is…