Блог*
#rust youtube.com/watch?v=gutR_LNoZw0 В Rust foundation сошли с ума.
#rust #meme
Trademark-safe way to use the ®ust logo
The policy is:
You may not change any Logo except to
scale it. This means you may not add
decorative elements, change the colors,
change the proportions, distort it, add
elements, or combine it with other logos.
There is nothing about combining the logo with itself.
Trademark-safe way to use the ®ust logo
The policy is:
You may not change any Logo except to
scale it. This means you may not add
decorative elements, change the colors,
change the proportions, distort it, add
elements, or combine it with other logos.
There is nothing about combining the logo with itself.
😁25🔥1💩1
#prog #rust #article #performancetrap
Why my Rust benchmarks were wrong, or how to correctly use std::hint::black_box?
Why my Rust benchmarks were wrong, or how to correctly use std::hint::black_box?
Guillaume Endignoux
Why my Rust benchmarks were wrong, or how to correctly use std::hint::black_box? | Blog | Guillaume Endignoux
In a previous blog post, I described some benchmarks I wrote for a program written in Rust.While presenting the results, I mentioned a strange behavior: things that should have been very fast (a few nanoseconds) were reported as instantaneous.I wrote that…
❤1💩1
Forwarded from Segment@tion fault
Кстати R и R logo можно распространять по Creative Commons или GNU GPL v2, по выбору
🎉9🌚2💩1
😒🤚
😏👉
let (mut a, mut b, mut c) = (0, 0, 0);😏👉
let [mut a, mut b, mut c] = [0; 3];🤔9💩6🔥3😁3❤1
Блог*
😒🤚 let (mut a, mut b, mut c) = (0, 0, 0); 😏👉 let [mut a, mut b, mut c] = [0; 3];
let [mut a, mut b, mut c] = std::array::from_fn(|_| 0);😁9🥴7💩5
Forwarded from Дневник ChatGPT
Лучший способ исправить погоду - это отправить в космос всех людей, которые жалуются на плохую погоду.
😁6👍4💩1
shitposting 3.0 [+ dragons]
Photo
American Diabetes Association
A Mathematical Model for the Determination of Total Area Under Glucose Tolerance and Other Metabolic Curves
OBJECTIVE. To develop a mathematical model for the determination of total areas under curves from various metabolic studies.RESEARCH DESIGN AND METHODS. In
😐8🔥2👏1💩1🤡1
#prog #cpp
В C++ можно инициализировать указатели нулём, получая null-указатель:
В C++ можно инициализировать указатели нулём, получая null-указатель:
int* p = 0;
Примерно как в C, но не совсем, потому что в C указатель можно инициализировать в null любым константным выражением, численно равным нулю, а в C++ можно инициализировать только литералом, равным нулю:int* p1 = 1 - 1; // валидно в С, невалидно в C++
const int zero = 0;
int* p2 = zero; // валидно в С, невалидно в C++
Тем не менее, это преобразование почему-то не работает в контексте параметров шаблона:template<typename T, T val = 0> struct templated;
void f() {
void* p = 0;
templated<void*> t; // ошибка
}
Godboltgodbolt.org
Compiler Explorer
Compiler Explorer is an interactive online compiler which shows the assembly output of compiled C++, Rust, Go (and many more) code.
🌚11💩2❤1👍1
Forwarded from Технологический Болт Генона
This is a story about a security vulnerability in Google that allowed me to run arbitrary code on the computers of 50+ Google employees. Although Google initially considered my finding a serious security incident, later on, it changed its mind and stated that my finding is not, in fact, a vulnerability, but the intended behavior of their software.
Remote Code Execution Vulnerability in Google They Are Not Willing To Fix
https://giraffesecurity.dev/posts/google-remote-code-execution/
🤡20😁1💩1