#prog #rust #rustlib
state — библиотека для хранения глобального состояния, которое может быть инициализировано не в точке определения — глобальное как в рамках процесса целиком, так и привязанное к потоку (в смысле thread).
Дисклеймер в доках хорош:
When To Use
You should avoid using
Собственно, совет хорош, даже если понимать state буквально, а не как имя библиотеки.
state — библиотека для хранения глобального состояния, которое может быть инициализировано не в точке определения — глобальное как в рамках процесса целиком, так и привязанное к потоку (в смысле thread).
Дисклеймер в доках хорош:
When To Use
You should avoid using
state
as much as possible. Instead, thread state manually throughout your program when feasible.Собственно, совет хорош, даже если понимать state буквально, а не как имя библиотеки.
Бгггг (#abnormalprogramming)
Introducing Scheme 2-D
Are you ever bored by other Lisp dialects? Do s-expressions feel flat and lifeless to you? Have you ever been worried you're not getting your money's worth out of the space bar on your keyboard?
Have we got the perfect programming language for you!
In ordinary Scheme, you'd write parenthesized lists of terms, which is so last decade! 🤢
buying downloading Scheme 2-D for just $19.95 + S&H free today!
Introducing Scheme 2-D
Are you ever bored by other Lisp dialects? Do s-expressions feel flat and lifeless to you? Have you ever been worried you're not getting your money's worth out of the space bar on your keyboard?
Have we got the perfect programming language for you!
In ordinary Scheme, you'd write parenthesized lists of terms, which is so last decade! 🤢
(define (factorial x) ; yuck!With Scheme 2-D, you can take your Scheme programs to the next level, with the power of the second dimension! 😎
(if (= x 0) 1 ; gross!
(* x (factorial (- x 1))))) ; homoiconic???
^ ^Gain full control over your syntax tree, and release your full 10xer potential by
<define f i> beautiful!
a f so aesthetic!
c look at those angles!
t <= x 0>
o
r 1
i ^
a <* x f>
l v a
c
x t
v o
r
i
a
l
<- x 1>
v
GitHub
GitHub - elucent/scheme2d: The future of programming.
The future of programming. Contribute to elucent/scheme2d development by creating an account on GitHub.
Forwarded from Linker Unsafe
Хорошее сравнение C++ и Rust именно в формате, который я люблю: слева программа на C++ с каким-нибудь UB, справа — аналог на Rust, который не компилируется.
слайды https://jacko.io/firehose_of_rust/
и ютуб https://www.youtube.com/watch?v=IPmRDS0OSxM
слайды https://jacko.io/firehose_of_rust/
и ютуб https://www.youtube.com/watch?v=IPmRDS0OSxM
YouTube
A Firehose of Rust, for busy people who know some C++
Slides: https://jacko.io/firehose_of_rust
The slower version of this talk (2h32m): https://youtu.be/FSyfZVuD32Y
Contents:
0:00:00 introduction
0:04:03 references and mutable aliasing
0:06:54 reference lifetime examples
0:22:12 mutable aliasing examples
0:50:16…
The slower version of this talk (2h32m): https://youtu.be/FSyfZVuD32Y
Contents:
0:00:00 introduction
0:04:03 references and mutable aliasing
0:06:54 reference lifetime examples
0:22:12 mutable aliasing examples
0:50:16…
Forwarded from Linker Unsafe
Увидено в раст-мейне, кмк довольно ценый список.
https://github.com/danistefanovic/build-your-own-x
https://github.com/danistefanovic/build-your-own-x
GitHub
GitHub - codecrafters-io/build-your-own-x: Master programming by recreating your favorite technologies from scratch.
Master programming by recreating your favorite technologies from scratch. - codecrafters-io/build-your-own-x
#prog #cpp #article
C++20: удивить линкер четырьмя строчками кода — или сказ о том, как код студента вскрыл ошибку в компиляторе.
C++20: удивить линкер четырьмя строчками кода — или сказ о том, как код студента вскрыл ошибку в компиляторе.
Хабр
C++20: удивить линкер четырьмя строчками кода
Представьте себе, что вы студент, изучающий современные фичи C++. И вам дали задачу по теме concepts/constraints. У преподавателя, конечно, есть референсное реше...
Forwarded from Why Typescript is bad (Abu)