uz
Feedback

Firibgarlarga uchmang! Telemetrio bunday kanallarni topadi va belgilaydi 👉 Belgini ko‘rmoqchi bo‘lsangiz, obuna bo‘ling

Блог*

Блог*

Kanalga Telegram’da o‘tish

Блог со звёздочкой. Много репостов, немножко программирования. Небольшое прикольное комьюнити: @decltype_chat_ptr_t Автор: @insert_reference_here

Ko'proq ko'rsatish
1 983
Obunachilar
-224 soatlar
Ma'lumot yo'q7 kun
-330 kun
Postlar arxiv
Забудьте
25 Iyul 2022, 06:05

#prog #article The Hardest Program I’ve Ever Written The hardest program I’ve ever written, once you strip out the whitespace, is 3,835 lines long. That handful of code took me almost a year to write. Granted, that doesn’t take into account the code that didn’t make it. The commit history shows that I deleted 20,704 lines of code over that time. Every surviving line has about three fallen comrades. If it took that much thrashing to get it right, you’d expect it to do something pretty deep right? Maybe a low-level hardware interface or some wicked graphics demo with tons of math and pumping early-90s-style techno? A likely-to-turn-evil machine learning AI Skynet thing? Nope. It reads in a string and writes out a string. The only difference between the input and output strings is that it modifies some of the whitespace characters. I’m talking, of course, about an automated code formatter.
24 Iyul 2022, 17:34

24 Iyul 2022, 16:54

#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).
24 Iyul 2022, 16:40

Итого он существует уже больше двух лет
24 Iyul 2022, 16:31

Торт, кстати, понравился тем, кто его попробовал, включая вышеупомянутой подруге
23 Iyul 2022, 13:15

Антон: не любит, не умеет и не хочет готовить Также Антон: однажды приготовил в одиночку (пусть и под чужим руководством) торт на день рождения подруги
23 Iyul 2022, 13:06

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.
23 Iyul 2022, 10:56

#prog #rust #serde
23 Iyul 2022, 10:56

SQL-WTF SQL-TIL snowflake edition. In Snowflake, you can create tables, stages, and functions temporarily. Temporary objects remain visible in the current session only and disappear after the session ends. The unusual behavior is that you can create a temporary object with the same name as an already existing object. So, all existing objects linked with it will be relinked to the "new" temporary object. For e.g. all views dependent on the original table will depend on the temporary table. More than it! The permanent table created after the temporary table with the same name stays invisible in the current session too :)
23 Iyul 2022, 09:16

22 Iyul 2022, 18:06

#prog #rust #article How to speed up the Rust compiler in July 2022 Куча интересных усовершенствований!
22 Iyul 2022, 17:02

#prog #rust А, и ещё Rust 1.64.0 покончит с той неловкой ситуацией, когда типы для интеропа с C есть в std, но не в core
22 Iyul 2022, 16:10

#prog #rust С версии Rust 1.64.0 это даже стабилизируют.
22 Iyul 2022, 16:04

Иду по тротуару, никого не трогаю, вдруг с дерева в метрах четырёх от меня из кроны на землю падает... Кошка 😶
22 Iyul 2022, 15:30

Ёлку хочется
22 Iyul 2022, 07:24

#prog #retroit Как мы делали Warface для Денди Сразу оговорюсь, речь идёт на самом деле не об игре, а о, фактически, слайд-шоу с титрами поверх картинок. Но даже так читать интересно
21 Iyul 2022, 17:31

#prog #java #article Как мы запустили программу на Java без JavaVM, или немного про практический опыт применения GraalVM native image.
21 Iyul 2022, 15:43

20 Iyul 2022, 12:43

Repost from N/a
20 Iyul 2022, 12:37