🌸 Fri, Jan 5, 2024 🌸

If you have some performance-critical part of the code, you can help the compiler to optimize the code with [[likely]] and [[unlikely]] attributes.

auto f(int i) -> int
{
    switch (i)
    {
        case 1: [[fallthrough]];
        [[likely]] case 2: ret<a href="post/1704494887.html">...</a>

🌸 Fri, Jan 5, 2024 🌸

Just keep swimming


🌸 Fri, Jan 5, 2024 🌸

I feel ImGUI is production-ready, we can use it not only as a debug UI but ship in game UI. Fight me.


🌸 Fri, Jan 5, 2024 🌸

We need to convince the Unicode committee to add the ‘mhm’ emoji.


🌸 Fri, Jan 5, 2024 🌸

I kind of get it and kind of not why people are freaking out about CentOS end-of-life. It is open-sourced, and if it needs support, anyone can pick it up. Isn’t this the point of open source? RedHat said, they are not going to support it, so what?


🌸 Fri, Jan 5, 2024 🌸

Be free Mickey Mouse!


🌸 Fri, Jan 5, 2024 🌸

I barely was about to go to bed at 3 AM. I am too excited about life.


🌸 Thu, Jan 4, 2024 🌸

With advance of LLM (GPT) and AI I feel it is now possible to build multibillion IP solo without a team.


🌸 Thu, Jan 4, 2024 🌸

If you want emojis in your Emacs, you can install the emojify package and enable emojis by adding (global-emojify-mode) to your .emacs file.


🌸 Wed, Jan 3, 2024 🌸

https://scratch.mit.edu/projects/892602496

Somebody made a RISC-V emulator emulating Linux in Scratch.


🌸 Wed, Jan 3, 2024 🌸

Ctrl-A X is the keyboard combination to exit QEMU and TinyEMU emulators.


🌸 Tue, Jan 2, 2024 🌸

How come we get to the state where writing HTTP servers or a JSON parser from scratch will take less time than figuring out what library to use and how to use the library?


🌸 Tue, Jan 2, 2024 🌸

If you are writing documentation, please give some examples. It is so hard to read without examples.


🌸 Mon, Jan 1, 2024 🌸

ASCII standards are so bad. They are hard to read. RFCs are a million times better.


🌸 Mon, Jan 1, 2024 🌸

Multiple times in my life, I wish I could read Chinese. For some reason, there are so many technical documents in Chinese. I can use Google Translate, but it is cumbersome.


🌸 Sun, Dec 31, 2023 🌸

This makes your keyboard clicky:

sudo apt install bucklespring

🌸 Fri, Dec 29, 2023 🌸

If an elderly but distinguished scientist says that something is possible, he is almost certainly right; but if he says that it is impossible, he is very probably wrong.

Arthur C. Clarke


🌸 Thu, Dec 28, 2023 🌸

voidSTAR game concept

spoilers

In “voidSTAR,” you play as Nova Sterling, the pilot of the spacecraft Endeavour, on a routine cargo mission from Earth to a distant planet near the star 61 Cygni. However, after an unexpected encounter with a wormhole created by the mysterious v


🌸 Wed, Dec 27, 2023 🌸

“Stranded on a desolate planet in Void STAR, your only hope is a surviving Linux terminal. Harness your C++ skills to rewrite software, repair crucial hardware, and escape the void. Will you code your wa


🌸 Tue, Dec 26, 2023 🌸

Here is an exercise to find your passion in life. Imagine you have an infinite amount of money; what would you do? Personally, I would travel and build a Metaverse from hotel rooms.


🌸 Tue, Dec 26, 2023 🌸

Is ‘fart’ short for ‘fine art’? Asking for a friend.


🌸 Tue, Dec 26, 2023 🌸

Why do good ideas come in the shower, and as soon as you leave the shower, they all disappear?


🌸 Tue, Dec 26, 2023 🌸

There is a Russian saying: ‘7 times Ctrl-C, one time Ctrl-V’

(disclaimer: I just made it up).


🌸 Tue, Dec 26, 2023 🌸

TIL; the father of Moore’s Law, Gordon Moore, is the co-founder and emeritus chairman of Intel Corporation. 🤯


🌸 Tue, Dec 26, 2023 🌸

https://vgallet.github.io/posts/code-review/

Good read. I am fully in agreement that the code review culture has a huge problem, and we need to address it somehow. I don’t think pair programming and TDD are going to be the sole solution to the problem; I think we need some hea


Previous - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 25 - 26 - 27 - 28 - 29 - 30 - 31 - 32 - 33 - 34 - 35 - 36 - 37 - 38 - 39 - 40 - 41 - Next