▲ 46 r/cpp

Interconverting std::function with copyable_function – Arthur O'Dwyer

The article shows how converting std::function to std::copyable_function (or vice versa) leads to slower performance and increased memory usage each time the conversion occurs.

quuxplusone.github.io
u/Xaneris47 — 20 days ago
▲ 4 r/cpp

Some practical refactoring of bloated generated code

A review of some generated C++ code, going through different ways to refactor and shorten it, then checking whether it actually got faster

pvs-studio.com
u/Xaneris47 — 27 days ago
▲ 2 r/Cplusplus+1 crossposts

Live talk on how to implement variables in a language

In this talk, the host will show the step-by-step process of implementing variables. He will demonstrate how they are represented and processed in a language and explain how to add this functionality to your own programming language.

This is part of a series of talks about creating a toy programming language. If you need some context, check out the previous episodes on youtube. Watching them all isn't super necessary, though.

pvs-studio.com
u/Xaneris47 — 28 days ago

History of JavaScript: Browser wars, ECMAScript, Node.js, TypeScript, and React

We took a look back at the history of JavaScript to explore its development from the earliest days to the present. This retrospective article is a good read for novice JavaScript enthusiasts who want to learn about the origins of the language, as well as for experienced ones who'd like to refresh their memories.

pvs-studio.com
u/Xaneris47 — 1 month ago

Lexical tokenization explained while building a lexer for a toy programming language

It's not highly theoretical and walks through actual lexer implementation in code

youtu.be
u/Xaneris47 — 2 months ago

Wrote a rule, found a real bug, had to ignore it anyway

We made a rule to detect typos like identical operands in binary expressions. It had a few good and valid catches but turns out 1 << 1 triggers it in basically every codebase (Angular, Babel, pdf.js). So the tool issues a valid warning of 1 << 1 in one case and makes a lot of noise in many others. To make things clear: the story comes from our experience of building a static analyzer for JS and TS (currently in beta, we're collecting feedback on it).

That's why we had to make a trade-off. Any similar stories from your dev experience?

pvs-studio.com
u/Xaneris47 — 3 months ago

Continuing a book on gamedev engineering

This section follows the introduction and continues to explore broad game development concepts, with general thoughts and practices related to building complex game systems.

The book is based on the author’s real-world AAA game development experience and focuses on practical engineering rather than theory alone. New chapters are published every month

pvs-studio.com
u/Xaneris47 — 3 months ago

Building a custom expression parser

A new episode in the series on building a programming language from scratch. The idea of it not only to make a language step by step, but mostly to explore how programming languages and compilers work under the hood in simple terms.

After the episode on lexers, the upcoming session will cover the basics of parsing and building a simple expression parser in a live coding session.

pvs-studio.com
u/Xaneris47 — 3 months ago

Making your own programming language is easier than you think (but also harder)

A solid and surprisingly practical article for a game/modding environment. Detailed write-ups like this are rare.

lisyarus.github.io
u/Xaneris47 — 3 months ago

Applying formal grammars in a custom programming language

The theory behind formal grammars explained through building a programming language

youtu.be
u/Xaneris47 — 3 months ago