Что вообще за extern class? extern применяется к глобальным переменным, не к классам
Hm, do you know what I can use if I want to send the latest logs of execution from one thread to another? I want to read in a non-blocking way, and I want not more than latest...
Is there a way to write code like this in a shorter form? let a = if let Some(b) = &c { if let Some(d) = b.e { calcSome(d) } else { 0 } } else { ...
Has anyone tried this? I wonder if there's any difference with Clion/IDEA with Rust plugin https://www.jetbrains.com/rust/
Hi, I continue reading The Rust Programming Language book and it shows the next code as an example: use std::collections::HashMap; let text = "hello world wonderful w...
Have someone worked with opengl and multithreaded games? I'm working on a 2D game and previously was doing everything in one thread, now I want to move rendering to a separat...
I guess it's C++ unless C got templates. I wonder why people being taught to write code like it's C, to show the pain first?
Я расскажу с самого начала тогда, думаю вам тоже будет интересно. В общем, есть такой механизм как git worktree. Обычно репозиторию соответствует одна рабочая копия (либо ни ...
Hi, I have a system that consists of many containers with dynamically polymorphic objects. Right now every container has two methods: to serialize and deserialize its content....
Is there any case when std::unordered_map::insert can be preferable compared to emplace in case I have the key and the value as separate variables before and don't have the st...
Can I consider this warning a compiler bug and just wait for when ubuntu will get a newer version of gcc? Can't understand what it is about, repros only in specific cases (the...
Есть вероятность, что нужно будет ещё так забирать правки из того репо? Вообще ребейз тут как раз я бы не советовал делать, а как раз чистый мерж. То есть подключить к вашему...
Нет, не нужно дублировать их между списками. Я не очень понимаю, что это за терминальные команды, но приведу на примере который мне проще представить. К примеру у нас есть наб...
Is it considered ok using shadowing in rust programs? I know in many languages where shadowing is allowed it considered to be a bad practice, but I see that in The Rust Progr...
So, anyone participated Ludum Dare this weekend? :) We made a pretty obvious endless runner (endless faller? 😄) this time https://gameraccoon.itch.io/deep-down (doesn't suppor...
(offtopic, can we enable reactions here, pls? chat owner can enable them)
Also, what error does it give you?
Is this a thread safe approach, or I need to first move the vector to a local variable before returning it? std::vector<MyType> consumeMyVector() { std::lock_guard lock(my...
Типа может ли игрок/пользователь двигать меши, что может изменить это состояние?
Ну во первых иметь CI со всего одной виндовой машиной это не очень сподручно на больших проектах. Во вторых даже если есть всего одна машина, то с ней может что-то случиться:...