1.83K subscribers
3.3K photos
132 videos
15 files
3.57K links
Блог со звёздочкой.

Много репостов, немножко программирования.

Небольшое прикольное комьюнити: @decltype_chat_ptr_t
Автор: @insert_reference_here
Download Telegram
#prog #amazingopensource

autoperf simplifies the instrumentation of programs with performance counters on Intel machines. Rather than trying to learn how to measure every event and manually programming event values in counter registers or perf, you can use autoperf which will repeatedly run your program until it has measured every single performance event on your machine. autoperf tries to compute a schedule that maximizes the amount of events measured per run, and minimizes the total number of runs while avoiding multiplexing of events on counters.

(thanks @folexeyy)
У кое-кого сегодня день рождения 👀
Forwarded from oleg_log (Oleg Kovalov)
Forwarded from Typesafe & Sound
Когда читаешь комменты в коде
Сначала всё было плохо.

Потом пришли растоманы и сделали ещё хуже.

Зато на расте.
🤡2
(thanks @ilyavenner)
Блог*
Ради чего вы подписаны на канал?
Прошу новоприбывших проголосовать
Блог* pinned «Прошу новоприбывших проголосовать»
#prog #rust #article

Очень хорошая демонстрация пользы от type-level наворотов.

The Rust language offers a promising approach to safe systems programming based on the principle of aliasing XOR mutability: a value may be either aliased or mutable, but not both at the same time. However, to implement pointer-based data structures with internal sharing, such as graphs or doubly-linked lists, we need to be able to mutate aliased state. To support such data structures, Rust provides a number of APIs that offer so-called interior mutability: the ability to mutate data via method calls on a shared reference. Unfortunately, the existing APIs sacrifice flexibility, concurrent access, and/or performance, in exchange for safety.

In this paper, we propose a new Rust API called GhostCell which avoids such sacrifices by separating permissions from data: it enables the user to safely synchronize access to a collection of data via a single permission. GhostCell repurposes an old trick from typed functional programming: branded types (as exemplified by Haskell's ST monad), which combine phantom types and rank-2 polymorphism to simulate a lightweight form of state-dependent types. We have formally proven the soundness of GhostCell by adapting and extending RustBelt, a semantic soundness proof for a representative subset of Rust, mechanized in Coq.

plv.mpi-sws.org/rustbelt/ghostcell

(thanks @dogeshibu)
"Как Тоха, так сразу"
Всем советую, отлично работает
Forwarded from Санечка Ъысь (Anna Weiss)
Палю лайфхак
1
Швейцарские ЧСВы
#prog #amazingopensource

The Programming Languages Zoo is a collection of miniature programming languages which demonstrates various concepts and techniques used in programming language design and implementation. It is a good starting point for those who would like to implement their own programming language, or just learn how it is done.

plzoo.andrej.com

(thanks @Hirrolot)