0aca090
Use WasCursorChanged()
when rendering lineinput in CUI::DoEditBox
- archimede67
be53d83
Remove #include <system.h>
from one more header - heinrich5991
3cb510a
Merge pull request #7637 from heinrich5991/pr_ddnet_even_less_system_h - edg-l
082c448
Merge pull request #7635 from archimede67/fix-escape-key-lineinput - edg-la4cbe94
Separate the extract_servers function from the server_link function - murpii
d89648b
Tickets: Notify the user that they cannot close the ticket if it does not belong to them - murpii
f99a9a1
Ticket Inactivity task: Fix race condition error, remove unncessary code - murpii
161a123
Closing: Added try-except blocks for debug purposes - murpii
9a65a6b
Use ddnet.org/connect-to/ as workaround because discord can't fix their shit, remove comment - murpii
d1c4dfc
helpcmds: Remove very long registration command, link to their discord server instead - murpii
aac8f2c
Merge pull request #67 from murpii/master - murpii*const T
, and *mut T
.*mut A
to *const T
(edited)nullptr
afterwards (edited)char p[1], q[1] = {0};
uintptr_t ip = (uintptr_t)(p+1);
uintptr_t iq = (uintptr_t)q;
if (iq == ip) {
*(char*)iq = 10;
print(q[0]);
}
as any
(edited)flush
somewhere and read from it liveflush
somewhere and read from it live std::launder
to fix ub? sounds pogunique_ptr
anywayshared_ptr
where it's semantically correct, or raw pointer where I can't avoid them. The problem with unique_ptr
is, that STL containers expect their ::value_type
to be copy constructible, so you cannot use unique_ptr
there;
std::atomic
sstd::atomic
s std::sync::Mutex avg 15.508196ms min 11.315727ms max 16.916332ms
parking_lot::Mutex avg 172.935745ms min 161.698901ms max 182.067695ms
spin::Mutex avg 15.546313ms min 11.218683ms max 37.585821ms
AmdSpinlock avg 14.614385ms min 12.399496ms max 18.728032ms
std::sync::Mutex avg 15.30766ms min 12.545613ms max 16.991576ms
parking_lot::Mutex avg 168.617568ms min 144.948258ms max 178.966609ms
spin::Mutex avg 15.319146ms min 12.435505ms max 26.911885ms
AmdSpinlock avg 14.980674ms min 12.09597ms max 20.006563ms
1. it's interesting that his spin locks are so insanely slow
2. WTF is happening with parking_lot on my pcstd::sync::Mutex avg 15.508196ms min 11.315727ms max 16.916332ms
parking_lot::Mutex avg 172.935745ms min 161.698901ms max 182.067695ms
spin::Mutex avg 15.546313ms min 11.218683ms max 37.585821ms
AmdSpinlock avg 14.614385ms min 12.399496ms max 18.728032ms
std::sync::Mutex avg 15.30766ms min 12.545613ms max 16.991576ms
parking_lot::Mutex avg 168.617568ms min 144.948258ms max 178.966609ms
spin::Mutex avg 15.319146ms min 12.435505ms max 26.911885ms
AmdSpinlock avg 14.980674ms min 12.09597ms max 20.006563ms
1. it's interesting that his spin locks are so insanely slow
2. WTF is happening with parking_lot on my pc std::mutex
is 40 bytes iirc, that was way too muchstd::mutex
is 40 bytes iirc, that was way too much std::valarray
std::vector<bool>
(edited)std::vector<bool>
(edited)std::vector<bool>
isn't eveb a standard container c++
struct s {
bool a;
short b;
bool c;
};
struct t {
s d;
bool e;
};
you have 10 seconds to answerstruct s {
a: bool,
b: i16,
c: bool,
}
@Learath2 @Ryozukistruct s {
a: bool,
b: i16,
c: bool,
}
@Learath2 @Ryozuki struct s {
a: bool,
b: i16,
c: bool,
}
@Learath2 @Ryozuki c++
struct s {
bool a;
short b;
bool c;
};
struct t {
s d;
bool e;
};
you have 10 seconds to answer struct s {
a: bool,
b: i16,
}
struct t {
a: s,
c: bool,
}
#pragma pack(1)
struct s {
short a;
bool b;
};
struct t {
s mystruct;
bool c;
};
size of t AND sOption<Box<T>>
*mut T
but non-zero and covariant.MyCoolNonZeroBigInteger
e.g.Option
MyCoolNonZeroBigInteger
e.g. Cargo.lock
was just to record the very specific dependency list for the last successful buildCargo.lock
was just to record the very specific dependency list for the last successful build 1.2.3
, you are no longer compatible with 1.2.2
Option<Option<Option<i64>>>
whats the size of this1.2.3
, you are no longer compatible with 1.2.2
Option<Option<Option<Option<i64>>>>
Option<Option<Option<Option<i64>>>>
Option<Box<T>>
has the same size as Box<T>
? I was just curious if one could have a similar thing for any type K
Cargo.toml
you specify the minimum depency like thatOption<Box<T>>
has the same size as Box<T>
? I was just curious if one could have a similar thing for any type K
Cargo.toml
you specify the minimum depency like that pub struct String {
vec: Vec<u8>,
}
which has a size of 24pub struct String {
vec: Vec<u8>,
}
which has a size of 24 pub(crate) struct RawVec<T, A: Allocator = Global> {
ptr: Unique<T>,
cap: usize,
alloc: A,
}
pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {
buf: RawVec<T, A>,
len: usize,
}
enum SumType2 {
OneOption(i64),
AnotherOption(String)
}
a
and in version 1.0.0 the library crashes for you
but in 1.0.1 it's fixed
i'd write "^1.0.1"a
and in version 1.0.0 the library crashes for you
but in 1.0.1 it's fixed
i'd write "^1.0.1" a
is in cargo.lock as version 1.0.0
and you add your lib
cargo add yourliba
in cargo.lock gets updated in this momenta
is in cargo.lock as version 1.0.0
and you add your lib
cargo add yourlib c++
struct s {
bool a;
short b;
bool c;
};
struct t {
s d;
bool e;
};
you have 10 seconds to answer sizeof(struct s) == 6
, sizeof(struct t) == 8
?struct s {
a: bool,
b: i16,
c: bool,
}
@Learath2 @Ryozuki struct s {
a: bool,
b: i16,
}
struct t {
a: s,
c: bool,
}
#pragma pack(1)
struct s {
short a;
bool b;
};
struct t {
s mystruct;
bool c;
};
size of t AND s CGameContext
now longer assumes the IGameController
declined the team join due to slots.
This enables custom gametypes to disallow joining the game if the player died, an active tournament is running or the player is not logged in yet. And then the controller can print the correct error message accordingly.
CFGFLAG_CLIENT