Skip to content

Commit 60e18d8

Browse files
authored
Docs: Intro
1 parent 3121fa7 commit 60e18d8

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
# Learning to Write _Less Slow_ C, C++, and Assembly Code
1+
# Playing Around _Less Slow_ Coding Practices for C++, C, and Assembly Code
22

3-
> The benchmarks in this repository don't aim to cover every topic entirely, but they help form a mindset and intuition for performance-oriented software design.
4-
> It also provides an example of using some non-[STL](https://en.wikipedia.org/wiki/Standard_Template_Library) but de facto standard libraries in C++, importing them via CMake, and compiling from source.
5-
> For higher-level abstractions and languages, check out [`less_slow.rs`](https://github.com/ashvardanian/less_slow.rs) and [`less_slow.py`](https://github.com/ashvardanian/less_slow.py).
3+
> The benchmarks in this repository don’t aim to cover every topic entirely, but they help form a mindset and intuition for performance-oriented software design.
4+
> It also provides an example of using some non-[STL](https://en.wikipedia.org/wiki/Standard_Template_Library) but de facto standard libraries in C++, importing them via CMake and compiling from source.
5+
> For higher-level abstractions and languages, check out [`less_slow.rs`](https://github.com/ashvardanian/less_slow.rs) and [`less_slow.py`](https://github.com/ashvardanian/less_slow.py).
6+
> I needed many of these measurements to reconsider my own coding habits, but hopefully they’re helpful to others as well.
7+
> Most of the code is organized in very long, ordered, and `#pragma`-sectioned files — not necessarily the preferred form for everyone.
68
7-
Much modern code suffers from common pitfalls, such as bugs, security vulnerabilities, and __performance bottlenecks__.
8-
University curricula often teach outdated concepts, while bootcamps oversimplify crucial software development principles.
9+
Much of modern code suffers from common pitfallsbugs, security vulnerabilities, and __performance bottlenecks__.
10+
University curricula and coding bootcamps tend to stick to traditional coding styles and standard features, rarely exposing the more fun, unusual, and efficient design opportunities.
911

1012
![Less Slow C++](https://github.com/ashvardanian/ashvardanian/blob/master/repositories/less_slow.cpp.jpg?raw=true)
1113

12-
This repository offers practical examples of writing efficient C and C++ code.
14+
This repository offers practical minimalistic examples of writing efficient C and C++ code.
1315
It leverages C++20 features and is designed primarily for GCC and Clang compilers on Linux, though it may work on other platforms.
1416
The topics range from basic micro-kernels executing in a few nanoseconds to more complex constructs involving parallel algorithms, coroutines, and polymorphism.
1517
Some of the highlights include:

0 commit comments

Comments
 (0)