Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.org/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories β€” IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2023-09-22 00:00:00Z and 2023-09-23 00:00:00Z
Avatar
Avatar
GitHub
Click to see attachment πŸ–ΌοΈ
ooh whats the sound refactor gonna change
Avatar
a refactor usually doesnt change functionality it just makes code better
Avatar
i got my static qt build working
04:17
executable linked against it is 20MB with LTOs & -Oz -s (edited)
04:18
not bad at all
Avatar
yo chillerdragon ^^
Avatar
welcome to ddnet friday rust
Avatar
morning 🍡
β˜• 2
Avatar
baguette πŸ₯–
🍞 2
Avatar
ramen 🍜
Avatar
Avatar
Ewan
what does this mean
wait ill send video in a few hours
Avatar
gppd ,prmogmg
08:07
good morning
Avatar
Avatar
fokkonaut
baguette πŸ₯–
u
πŸ‡Ί 2
πŸ₯– 1
Avatar
Avatar
Ryozuki
welcome to ddnet friday rust
Can i have ddnet friday gentoo
Avatar
does ddnet run on a raspberry pi zero w? xd
Avatar
Avatar
MilkeeyCat
Can i have ddnet friday gentoo
Thursday night is for gentoo. idk but Donnerstag nachts somehow fits to gentoo
Avatar
Avatar
Teero
does ddnet run on a raspberry pi zero w? xd
You can try, should be fine. 64 players might be a challenge depending on single core performance
Avatar
I used to run Teeworlds servers on a much weaker CPU before starting DDNet: https://www.pcengines.ch/alix1e.htm
PC Engines alix1e system board
Avatar
I don't mean a server. I mean the literal client xd
Avatar
Oh, didn't realize that Raspi has graphics output, should have looked closer πŸ˜„
10:32
Probably fine too
10:32
If you install something like Debian, they have arm builds of DDNet
10:32
Our official site doesn't provide arm builds for Linux
Avatar
The Raspberry Pi Zero W extends the Pi Zero family and comes with added wireless LAN and Bluetooth connectivity.
Avatar
Avatar
Teero
Thursday night is for gentoo. idk but Donnerstag nachts somehow fits to gentoo
The hell is donnerstag nachts? (edited)
Avatar
Ask chiller
Avatar
Idk how to ping him pepeW
Avatar
can't explain. It's kind of a feeling
10:46
That tomorrow is the last day of the week and you know you should get to bed early but then you somehow stay up until 4am and thats Donnerstag nachts. (edited)
Avatar
Avatar
deen
Our official site doesn't provide arm builds for Linux
rly? is it hard to cross compile
Avatar
Im sure @Jupstar βœͺ can explain it better
Avatar
i should make a gh mirror that tracks releases and compiles on my server too, for fun
10:47
reproducible builds amirite
Avatar
It will now inform the user about sv_chat_initial_delay when joining or trying to send a message. Closes #5067 !image

Checklist

  • [x] Tested the change ingame
  • [x] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible...
Avatar
Avatar
Teero
Im sure @Jupstar βœͺ can explain it better
Jupstar βœͺ 2023-09-22 11:16:43Z
Never heard of it either
Avatar
cross compiling is reasonably easy
11:17
it’d just be a cmake toolchain file in this case
11:18
as long as the compiler, utils and dependencies for aarch64 are installed
Avatar
5793891 Add a message when using sv_chat_initial_delay - furo321 cc2bdbd Merge pull request #7232 from furo321/initial-chat-delay-message - def-
Avatar
Avatar
Ryozuki
rly? is it hard to cross compile
Not that hard, but no one asked for them so far
Avatar
Jupstar βœͺ 2023-09-22 13:08:25Z
@Ryozuki rust question of today: have u already used vulkan with rust finally 😬
13:12
XD
Avatar
Jupstar βœͺ 2023-09-22 13:14:50Z
the funny thing is. i recently thought: If china would be really communistic. there should be more open source projects from china πŸ˜‚
13:15
but i want to hear @Learath2 's humble opinion
Avatar
Avatar
Jupstar βœͺ
@Ryozuki rust question of today: have u already used vulkan with rust finally 😬
ye vulkano
Avatar
Avatar
Jupstar βœͺ
the funny thing is. i recently thought: If china would be really communistic. there should be more open source projects from china πŸ˜‚
Everytime I look into my gh recommendations I see at least one chinese project that has 3000 stars and all the docs are in chinese xd (edited)
Avatar
Avatar
Jupstar βœͺ
but i want to hear @Learath2 's humble opinion
on what?
Avatar
ChillerDragon BOT 2023-09-22 13:45:16Z
@Teero well its your recommendations so you must have starred some of those... gh algo knows what you want! My github for you page is full of hot girls
😳 1
13:46
oh and endless minecraft hack clients xd
Avatar
Avatar
Learath2
on what?
Jupstar βœͺ 2023-09-22 13:58:27Z
should we have seen more useful OSS projects from china yet
Avatar
Avatar
Jupstar βœͺ
should we have seen more useful OSS projects from china yet
I’d guess there are quite a few but we just are too disconnected from china
14:00
I see projects with readmes completely in chines and I just skip to the next library πŸ˜„
Avatar
Avatar
Learath2
I’d guess there are quite a few but we just are too disconnected from china
Jupstar βœͺ 2023-09-22 14:02:53Z
shouldn't we only see OSS projects from them? ^^
Avatar
Avatar
Jupstar βœͺ
shouldn't we only see OSS projects from them? ^^
China is pretty big fan of capitalism
14:04
They’ve been flirting with the neolibs since mr xiaoping
Avatar
there are OSS projects in china
14:17
i think most are ML
14:17
rust is also widely used
14:18
i seen some of my blogpost translated to chinese in some sites
Avatar
Jupstar βœͺ 2023-09-22 14:21:08Z
fame
14:22
fame
14:22
suffering from success
14:22
i found out thansk to google search console
14:22
it tells backlinks
Avatar
Adds a hint to tell the user how to leave /pause. Closes #3121 !image

Checklist

  • [x] Tested the change ingame
  • [x] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
...
Avatar
Fastjson is the one big oss project I can think of out of china
Avatar
Jupstar βœͺ 2023-09-22 14:42:25Z
Java
14:42
fast & java in one setence
14:42
risky
14:45
should we maybe move data dir out into own repo?
14:45
i'd need to touch so many images again for #7169
Avatar
helps making #7167 smaller in size, bcs lot of transparent pixels were white Checklist Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possibly...
Avatar
Jupstar βœͺ 2023-09-22 14:46:24Z
does git support smth like a "from this commit, treat the repo as new" function? xd
14:50
@Ryozuki rust should make a take like that from Option for Vec xd makes it easy to move Vecs if moving itself is not possible
Avatar
how would a take for vecs work
14:51
isnt it that simply pop
14:51
but the thing is a vector has the requirements that it needs to have the elements be contiguous
Avatar
Jupstar βœͺ 2023-09-22 14:51:39Z
take the whole vector and leave default
14:51
so new vector
14:51
basically a mem_swap
Avatar
i mean
14:52
u can do that
14:52
let me wip up code
Avatar
Jupstar βœͺ 2023-09-22 14:53:01Z
well i use std::mem::take.. that's good enough
Avatar
fn main() { let mut a = vec![2, 3, 4]; let mut b = vec![]; std::mem::swap(&mut a, &mut b); }
14:53
u need to leave something
14:53
so here u use swap
14:53
the default vector as u mentioned
14:53
which here is b
Avatar
Jupstar βœͺ 2023-09-22 14:53:36Z
yes
14:53
this does not look verbose to you? xd
Avatar
if u want to be able to leave "uninitialized" vector u need to use MaybeUninit
Avatar
Jupstar βœͺ 2023-09-22 14:54:03Z
std::mem::take is at least 1-liner πŸ˜„
Avatar
Avatar
Jupstar βœͺ
this does not look verbose to you? xd
i mean, u should just .clone
14:54
and then .clear
14:54
and if u wanna make sure the vector doesnt use the size
Avatar
Jupstar βœͺ 2023-09-22 14:54:27Z
clone is expensive xd
Avatar
.shrink_to_fit
Avatar
Avatar
Jupstar βœͺ
clone is expensive xd
wdym
Avatar
Jupstar βœͺ 2023-09-22 14:54:56Z
then i have the same vec twice
Avatar
992a26c Add ability to swap without a name when team only has 2 players. - furo321 f23e5ce Correct value of TeamSize. - furo321 774d327 Merge pull request #7227 from furo321/swap-without-name - Robyt3
Avatar
but if u dont need that same vec twice
Avatar
Jupstar βœͺ 2023-09-22 14:55:10Z
i just need to move it around basically, but moving itself not possible
Avatar
just "move"
14:55
the original vector
14:55
anyway u can do what i meantioned about swap
14:55
Vec::new doesnt allocate btw
14:55
it allocates on the first insert
Avatar
Avatar
Jupstar βœͺ
std::mem::take is at least 1-liner πŸ˜„
Jupstar βœͺ 2023-09-22 14:55:37Z
^
Avatar
if u want one liners use python
Avatar
Jupstar βœͺ 2023-09-22 14:56:17Z
it is a 1-liner
14:56
lmao
Avatar
Jupstar βœͺ 2023-09-22 14:56:22Z
it already exists
Avatar
Jupstar βœͺ 2023-09-22 14:56:31Z
it's just not a call to Vec, like Option
14:56
yeah
14:56
take does this
Avatar
Jupstar βœͺ 2023-09-22 14:56:51Z
i better make this 1000 lines of code, rather than using python πŸ˜‚
Avatar
well i guess u can simply use mem take
14:57
so they decided to not put the method
Avatar
Jupstar βœͺ 2023-09-22 14:57:25Z
but why did they with option 😬
Avatar
less methods = less api surface to maintain
14:57
i guess cuz take in option is rly common
14:57
and it makes more sense
14:57
because the default for option is none
14:57
u take on some
14:58
it has more meaning to it
Avatar
Jupstar βœͺ 2023-09-22 14:59:10Z
@Ryozuki do u prefer .iter().foreach or for .. in ..
Avatar
for in
14:59
hmm i usually dont rly use iterators for foreach
14:59
mostly filter,map,etc
14:59
but i wonder maybe in some cases foreach is faster
15:00
"The implementations of closures and iterators are such that runtime performance is not affected. This is part of Rust’s goal to strive to provide zero-cost abstractions."
15:00
this is arguign against iterators being slower
15:01
@Jupstar βœͺ btw i think ..= is slower in iterators
15:01
than ..
15:01
x..y
15:01
x..=y
Avatar
Jupstar βœͺ 2023-09-22 15:01:43Z
i mean it's one iteration more xd
15:01
or is it slower than x..(y+1)
Avatar
it is slower
15:03
well was in the past
15:03
the comment is old
15:04
maybe they found out how to fix
Avatar
We need to call SDL_PumpEvents() to ensure that we have the latest keyboard, mouse and joystick state before we use it. See: Closes #7052.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added co...
Avatar
@Ryozuki whats your plan to expand rust in the ddnet code
Avatar

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-ad...
Avatar
98bfed7 Fix double-click handling with gfx_asyncrender_old 0 - Robyt3 c042835 Merge pull request #7234 from Robyt3/Input-PumpEvents - def-
16:06
318fe09 Update Belarusian translation - AlehKushniarou 1c1961f Merge pull request #7235 from AlehKushniarou/update-belarusian - def-
Avatar
Fixes 1. of #6403
The menu button should be updated to reflect whether the server is still running. For example the server may have been shut down manually with shutdown or it may have failed to start entirely due to the map missing or another issue.

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to ...
Avatar
does this cause the server to shut down if u close your client
Avatar
Avatar
cyberFighter
does this cause the server to shut down if u close your client
No, that was already the case before, if you started the server from the client
Avatar
When using auth_remove, the key indices for the default helper, mod and admin passwords were not properly adjusted, causing the wrong passwords to be used for the username-less logins. The key indices for connected clients were also not properly adjusted, causing the wrong identity to be shown for currently authenticated clients when using the status command. Closes #6427.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] T...
Avatar
Avatar
ChillerDragon
@Teero well its your recommendations so you must have starred some of those... gh algo knows what you want! My github for you page is full of hot girls
Avatar
Avatar
furo
Yes, afk state is available through the master. But you would have to add the reading of Client["afk"] as it's currently not used anywhere. You can take a look at https://master1.ddnet.org/ddnet/15/servers.json to see all the available variables.
LOL
Avatar
1d711d6 Correctly update auth keys when using auth_remove - Robyt3 ab7fefe Merge pull request #7237 from Robyt3/Server-AuthKey-Removal-Fixes - def-
Avatar
This update shows if your friend is AFK in a server without you having to go in to find out. It will only show this inside the friends list. To make this work, I had to add a check for the "afk" key from server,json to the CServerInfo::CClient scripting. Before: !image After: !image

Checklist

  • [x] Tested...
Avatar
time to get flamed for this update too
21:32
(i hope i got all the json checks right please tell me if i forgot anything) (edited)
Avatar
Avatar
Voxel
(i hope i got all the json checks right please tell me if i forgot anything) (edited)
everything's wrong. you're fired!
😨 1
21:36
seems fine
21:36
good change
Avatar
Avatar
Voxel
time to get flamed for this update too
Looks nice, but I think variables with AFK in them should be changed to Afk instead. It's like that in other places :)
Avatar
Alright will do
21:58
why is this a merge conflict?
Avatar
chillerdragon BOT 2023-09-22 23:14:12Z
What’s this discord link?
Replying to @Steinchen Zillyhuhn real […]
Avatar
c4d325e Show if your friend is AFK through friends list - VoxelDoesCode 33c47bf Merge pull request #7238 from VoxelDoesCode/friend-list-afk - def-
Exported 188 message(s)