restrict в C: оптимизация на честном слове

Привет, Хабр! Сегодня поговорим про один из самых незаметных, но любопытных моментов языка C. Если вы пишете на C, скорее всего вы никогда не использовали ключевое слово restrict . А зря — этот квалификатор указателя может дать вашему коду неплохой прирост производительности. Правда, для этого придётся дать компилятору честное слово насчёт своих указателей.

https://habr.com/ru/companies/otus/articles/978524/

#C #указатели #память #aliasing #оптимизация_кода #lowlevel_программирование #компилятор

restrict в C: оптимизация на честном слове

Привет, Хабр! Сегодня поговорим про один из самых незаметных, но любопытных моментов языка C. Если вы пишете на C , скорее всего, вы никогда не использовали ключевое слово...

Хабр
🤔 Ah yes, the thrilling world of #aliasing, where optimizations go to die, and compilers throw in the towel faster than you can say "Advent of Giving Up." 🎄 Matt's #blog, expertly proofread by an #LLM, offers the riveting insight that *knowing why* your #compiler is a quitter is just as important as actual #optimization, because who doesn't love a good excuse? 😂
https://xania.org/202512/15-aliasing-in-general #insights #AdventOfGivingUp #HackerNews #ngated
Aliasing — Matt Godbolt’s blog

Knowing when the compiler can't optimise is important too

Aliasing — Matt Godbolt’s blog

Knowing when the compiler can't optimise is important too

And so, here are four functions to demonstrate it. The default resolution of the plotting routine is crude, leading to #Aliasing and so the mesh has to be refined somewhat.

Here are three #ConicSections and one #Trigonometric functions.

An #Ellipse
A #Parabola.
A #Hyperbola.
A rotating #Tangent function.

#MyWork #CCBYSA #Maxima #Mathematics #Geometry #FreeSoftware

AMAZING Water experiment - Aliasing Effect due to the undersampling | demonstration

YouTube

Datamoshing identity.
identità immaterialità
Corpo, algoritmo: manipolazione
delle informazioni video.
Frames e video, 2025.

Per il video, gli scatti e i testi,
www.roccioletti.com

#datamoshing #aliasing #glitch #blurring #lowres #moiré #pixellation #flickering #simulacra #identity #body #corpo #contemporaryart #artecontemporanea #performanceart #performingart #art #arte #artiperformative #videoart #videoarte #postfotografia #postphotography

AAA - Analytical Anti-Aliasing

How to fix jaggies the analytical way with some juicy secrets

The Strict Aliasing Situation is Pretty Bad – Embedded in Academia

xavxav - Visions of the future: formal verification in Rust

References are like jumps