サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
WWDC24
bitbashing.io
Let’s talk about one of the most performance-sensitive programs you run every day: your operating system. Since every speedup gives you more computer to compute with, an OS is never fast enough, so you can always find kernel and driver developers optimizing the bejesus out of their code. Operating systems also need to be massively concurrent. Not only is your OS scheduling all userspace processes
But to get at whatever the hell I mean by that, we need to talk about why async Rust exists in the first place. Let’s talk about: Modern Concurrency: They’re Green, They’re Mean, & They Ate My Machine Suppose we want our code to go fast. We have two big problems to solve: We want to use the whole computer. Code runs on CPUs, and in 2023, even my phone has eight of the damn things. If I want to use
Sum Types and You Let’s talk about a simple, yet powerful concept in programming: sum types.1 A sum type, also called a discriminated union, can hold one (and only one) of several types of things. For example, consider some settings in an INI-like configuration file. Let’s say that each setting must be a string, an integer, or a Boolean value. If we wanted to roll our own solution in C++, we might
Floating-point math is fraught with subtle gotchas, and comparing values properly is no exception. Here we discuss common pitfalls, examine some possible solutions, and try to beat Boost. Things you probably know about floats If you need to represent a non-integer in a mainstream programming language, you’ll probably end up using IEEE 754 floating-point values. Since their standardization in 1985,
This October, my team at work switched from C to C++ for embedded firmware development. Many of C++’s features, including classes, automatic resource cleanup, parametric polymorphism, and additional type safety are just as useful on an RTOS or bare metal as they are on a desktop running a general-purpose OS. Using C++ lets us write safer, more expressive firmware. C++’s automagic is a double-edged
このページを最初にブックマークしてみませんか?
『bitbashing.io』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く