🌸 Fri, Jan 5, 2024 🌸
We should stop inventing languages in 1985; then C++ was invented. C++ is perfect.
🌸 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: return 1;
}
return 2;
}
https://en.cppreference.com/w/cpp/language/attributes/likely
🌸 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.
This makes your keyboard clicky:
sudo apt install bucklespring
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
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 voidSTAR technology on Erebus IV, you find yourself crash-landed on this unknown and desolate planet, 5000 light years away from Earth.
With most of the spaceship’s software corrupted by the gamma radiation burst from voidSTAR, and the hardware mostly intact except for the critical communication device, your survival and escape hinge on your ability to adapt and innovate. Armed with only a surviving Linux terminal, you must use your C++ programming skills to write new software, control the hardware on the Endeavour, and repair the damaged spacecraft.
Survival Mechanics: Manage hunger, energy, health, thirst, and temperature in the harsh environment of Erebus IV.
Resource Gathering and Crafting: Collect resources, farm for food, and craft essential items for survival.
Building and Automation: Construct structures and program bots, rovers, and robotic arms to assist in various tasks, using C++ code.
The game would be a single-player game.
Exploration: Discover the secrets of Erebus IV and the mysterious voidSTAR in a sandbox-style exploration.
Challenges and Rewards: Complete objectives to earn rewards that aid in your survival and eventual escape.
Story Unfolding: Unravel the mysteries of Erebus IV, the voidSTAR, and the Zenith Adaptation program that granted you immunity to the gamma radiation.
How did the player survive the gamma radiation burst?
The player has a mysterious immunity to gamma radiation; she acquired it from her experimental genetic modification treatment, which was supposed to protect her from different types of cosmic radiation. She was one of the first pilots to receive the treatment. The name of the program is “Zenith Adaptation”.
“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 way off the planet?
The concept art by ChatGPT-4
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.
Is ‘fart’ short for ‘fine art’? Asking for a friend.
Why do good ideas come in the shower, and as soon as you leave the shower, they all disappear?
There is a Russian saying: ‘7 times Ctrl-C, one time Ctrl-V’
(disclaimer: I just made it up).
TIL; the father of Moore’s Law, Gordon Moore, is the co-founder and emeritus chairman of Intel Corporation. 🤯
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 - 42 - 43 - 44 - 45 - 46 - 47 - 48 - 49 - 50 - 51 - 52 - Next