#prog #rust #rustlib
Seaography is a GraphQL framework for building GraphQL resolvers using SeaORM entities. It ships with a CLI tool that can generate ready-to-compile Rust GraphQL servers from existing MySQL, Postgres and SQLite databases.
github.com/SeaQL/seaography
Seaography is a GraphQL framework for building GraphQL resolvers using SeaORM entities. It ships with a CLI tool that can generate ready-to-compile Rust GraphQL servers from existing MySQL, Postgres and SQLite databases.
github.com/SeaQL/seaography
GitHub
GitHub - SeaQL/seaography: 🧭 GraphQL framework for SeaORM
🧭 GraphQL framework for SeaORM. Contribute to SeaQL/seaography development by creating an account on GitHub.
#prog #rust #article
> One other benefit that I did not realize in the beginning is onboarding new people is much easier because the new person is free to play with the with the code base, to try to improve it, change or refactor it, and the compiler is not going to compile until all the invariants are upheld again. This means that you can refactor without any fear and that new people can start writing code without being minutely reviewed, because you know there are so many unwritten invariants that only a few people know about. And I’m quite confident that this will also result in fewer warranty issues over time because you get higher quality up front.
medium.com/volvo-cars-engineering/why-volvo-thinks-you-should-have-rust-in-your-car-4320bd639e09
> One other benefit that I did not realize in the beginning is onboarding new people is much easier because the new person is free to play with the with the code base, to try to improve it, change or refactor it, and the compiler is not going to compile until all the invariants are upheld again. This means that you can refactor without any fear and that new people can start writing code without being minutely reviewed, because you know there are so many unwritten invariants that only a few people know about. And I’m quite confident that this will also result in fewer warranty issues over time because you get higher quality up front.
medium.com/volvo-cars-engineering/why-volvo-thinks-you-should-have-rust-in-your-car-4320bd639e09
Medium
Why Volvo thinks you should have Rust in your car
An interview where we talk about how we use embedded Rust in our coming car projects.
👍3🤔1
#prog #rust #rustlib #article
Move Constructors in Rust: Is it possible?
TL;DR You can move-constructors the Rust! It requires a few macros but isn’t much more outlandish than the
---
Move Constructors Revisited
Или как убрать UB, связанное с требованиями
Move Constructors in Rust: Is it possible?
TL;DR You can move-constructors the Rust! It requires a few macros but isn’t much more outlandish than the
async
pinning state of the art. A prototype of this idea is implemented in my moveit crate.---
Move Constructors Revisited
Или как убрать UB, связанное с требованиями
Pin
.
Блог*
#prog #rust Полку const-инициализируемых коллекций прибыло. github.com/rust-lang/rust/pull/102197
> полку <...> прибыло
Кажется, моё подсознание хочет мне что-то сказать
Кажется, моё подсознание хочет мне что-то сказать
😁4😱3😢1
Forwarded from Сельский блог 🍁
This media is not supported in your browser
VIEW IN TELEGRAM
Как он мило потянулся своими лапками 🥺
😍8😱3🥰2❤1👍1🔥1🤩1
#prog #performancetrap #article s от небезызвестного Daniel Lemire
Mispredicted branches can multiply your running times
Benchmarking is hard: processors learn to predict branches
(thanks @al_tch)
Mispredicted branches can multiply your running times
Benchmarking is hard: processors learn to predict branches
(thanks @al_tch)
🔥2👍1
Я — взрослый, самостоятельный мужчина. Именно поэтому я купил себе сладостей на две тысячи
🥰22👍3🔥1
#prog #c #cpp #article
The Usual Arithmetic Confusions
There are a lot of aspects of C++ that are not well understood and lead to all sorts of confusion. The usual arithmetic conversions and the integral promotions are two such aspects. Certain binary operators (arithmetic, relational and spaceship) require their operands to have a common type. The usual arithmetic conversions are the set of steps that gets operands to a common type. While the integral promotions brings integral types smaller than int and unsigned int to either int or unsigned int depending on which one can represent all the values of the source type. This is one of the areas in C++ that comes directly from C, so pretty much all of these examples applies to C as well as C++.
We will see some examples with results that many may find surprising. After seeing some of these cases we will discuss the rules and how they explain each case. While covering each rule we will present examples to clarify the rule.
The Usual Arithmetic Confusions
There are a lot of aspects of C++ that are not well understood and lead to all sorts of confusion. The usual arithmetic conversions and the integral promotions are two such aspects. Certain binary operators (arithmetic, relational and spaceship) require their operands to have a common type. The usual arithmetic conversions are the set of steps that gets operands to a common type. While the integral promotions brings integral types smaller than int and unsigned int to either int or unsigned int depending on which one can represent all the values of the source type. This is one of the areas in C++ that comes directly from C, so pretty much all of these examples applies to C as well as C++.
We will see some examples with results that many may find surprising. After seeing some of these cases we will discuss the rules and how they explain each case. While covering each rule we will present examples to clarify the rule.
Shafik Yaghmour's Blog
The Usual Arithmetic Confusions
Blog about C++, C, Undefined Behavior and Compilers
👍4
Forwarded from мне не нравится реальность
а вафель тем временем преодолел отметку в 100
rust-lang/rust
PR'ов 🦀🦀🦀🔥22