Блог*
Kanalga Telegram’da o‘tish
Блог со звёздочкой. Много репостов, немножко программирования. Небольшое прикольное комьюнити: @decltype_chat_ptr_t Автор: @insert_reference_here
Ko'proq ko'rsatish1 928
Obunachilar
Ma'lumot yo'q24 soatlar
+37 kunlar
+330 kunlar
Postlar arxiv
1 928
#prog #rust #article
What it feels like when Rust saves your bacon
You’ve probably heard that the Rust type checker can be a great “co-pilot”, helping you to avoid subtle bugs that would have been a royal pain in the !@#!$! to debug. This is truly awesome! But what you may not realize is how it feels in the moment when this happens. The answer typically is: really, really frustrating! Usually, you are trying to get some code to compile and you find you just can’t do it.
As you come to learn Rust better, and especially to gain a bit of a deeper understanding of what is happening when your code runs, you can start to see when you are getting a type-check error because you have a typo versus because you are trying to do something fundamentally flawed.
A couple of days back, I had a moment where the compiler caught a really subtle bug that would’ve been horrible had it been allowed to compile. I thought it would be fun to narrate a bit how it played out, and also take the moment to explain a bit more about temporaries in Rust (a common source of confusion, in my observations).
1 928
Антон: не любит, не умеет и не хочет готовить
Также Антон: однажды приготовил в одиночку (пусть и под чужим руководством) торт на день рождения подруги
1 928
Repost from ozkriff.games 🦀
# Serde Tips
A nice /r/rust thread with tips about using serde_json, some of which are not so obvious. I only got two things to add:
- Don't forget to read through serde.rs, it covers most of the day-to-day knowledge. It's surprising how many serde users don't know about it.
- Consider using lib.rs/nanoserde if you only need some basic features and care about the size of your project's dependencies.
1 928
Repost from There will be no singularity
1 928
#prog #rust #article
Rustc показывает экспоненциальное поведение при тайпчекинге рекурсивных HRTB из-за отсутствия кеширования промежуточных результатов и разработчики не могут понять, почему. А, и ещё об этом Амос написал статью: When rustc explodes
1 928
#prog #rust #article
How to speed up the Rust compiler in July 2022
Куча интересных усовершенствований!
1 928
Иду по тротуару, никого не трогаю, вдруг с дерева в метрах четырёх от меня из кроны на землю падает... Кошка 😶
1 928
#prog #retroit
Как мы делали Warface для Денди
Сразу оговорюсь, речь идёт на самом деле не об игре, а о, фактически, слайд-шоу с титрами поверх картинок. Но даже так читать интересно
1 928
#prog #java #article
Как мы запустили программу на Java без JavaVM, или немного про практический опыт применения GraalVM native image.
1 928
Repost from Neural Machine
Аниме — это мощный инструмент, который позволяет вам держать глаза открытыми для взрослой жизни.
