Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/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 2022-02-16 00:00:00Z and 2022-02-17 00:00:00Z
Avatar
@Jupstar ✪ why mem_zero(m_aErrorString, sizeof(m_aErrorString) / sizeof(m_aErrorString[0])); instead of mem_zero(m_aErrorString, sizeof(m_aErrorString)); when m_aErrorString is an array allocated on the stack?
07:09
other parts of the code do the later btw
07:09
xd
07:10
oh
07:10
its not jupstar who made it its deen
07:11
well the question stands
07:12
the first probs work cuz C++ and null terminated strings but i think it doesnt fully clear m_aErrorString of garbage
07:13
at that point just do m_aErrorString[0] = '\0'
07:13
no?
Avatar
chillerdragon BOT 2022-02-16 08:06:39Z
That’s awesome thanks for sharing (@Ryozuki)
08:47
Avatar
Avatar
Ryozuki
@Jupstar ✪ why mem_zero(m_aErrorString, sizeof(m_aErrorString) / sizeof(m_aErrorString[0])); instead of mem_zero(m_aErrorString, sizeof(m_aErrorString)); when m_aErrorString is an array allocated on the stack?
now that we have higher c++ we can just use std::size(...)
09:04
mh yeah
09:04
ok its useless for sizeof(uint8_t)
09:05
for mem_zero i'd say its not nice anyway
09:05
just use sizeof
Avatar
Avatar
Ryozuki
@Jupstar ✪ why mem_zero(m_aErrorString, sizeof(m_aErrorString) / sizeof(m_aErrorString[0])); instead of mem_zero(m_aErrorString, sizeof(m_aErrorString)); when m_aErrorString is an array allocated on the stack?
so let me rephrase it when you use it for the amount of elements in your buffer, e.g. for string functions str_copy_num its nice bcs it's not bound to the size of the underlaying type, so it's more portable whenever you'd switch to a different type
Avatar
Avatar
Ryozuki
at that point just do m_aErrorString[0] = '\0'
yes this is faster :p
09:12
but i also don't directly get what was causing the bug in first place tbh, somehow it seemed to get the warning before initializing the graphic backend
Avatar
where do ppl even use rust. In my region everyone just uses Java or C# xDD
Avatar
i use it on my work
09:15
im the only dev tho
09:15
xd
Avatar
you lucky one
Avatar
indeed
Avatar
i guess thats the benefit for living in a bigger city
Avatar
right now rust is sadly mostly used in crypto bros companies
09:15
but its also used in other places im sure
Avatar
i tried to get a c++ job, bcs their website said c++, and they told me they dont even search c++ ppl xDD
09:16
do they never update their websites xD
Avatar
there is a famous virtual machine for crypto coins made in rust
Avatar
that defs wouldn't motivate me to use rust xD
09:18
but u can use rust for most stuff
09:18
i use it for web backend rn
Avatar
as long as ppl who claim to accept crypto stuff but directly convert it to real money, bcs they dont actually trust crypto stuff, it's kinda just fake money for me xD
09:18
or is this some special crypto stuff?
Avatar
rust has a tradition of making websites a la "are we x yet" that lists interesting libraries for each theme
09:19
for example for games https://arewegameyet.rs/
A guide to the Rust game development ecosystem.
09:19
AreWeWebYet gives insight on whether you can build your latest web-project on top of Rust
Avatar
Avatar
Jupstar ✪
or is this some special crypto stuff?
crypto ppl use rust cuz its promotes safety and its a strong marketing point for crypto bros
Avatar
do you compile it to web asm then? or do you directly create the webserver?
09:20
the backend is a http server
09:20
but if u want to do frontend work with rust u can
09:20
since rust can compile to wasm
Avatar
so you do write the backend?
Avatar
ye im doing the backend in rust and the frontend with typescript/reactjs
09:21
separated
Avatar
ok
Avatar
@Jupstar ✪ maybe ur interested in creating ur own os
Avatar
yes xd
09:22
made with rust
Avatar
i have an idea, but that would take years ofc
Avatar
Avatar
Jupstar ✪
i tried to get a c++ job, bcs their website said c++, and they told me they dont even search c++ ppl xDD
i think finding c++ jobs is hard because they always want super academic requirements and well idk
09:24
and right now good rust jobs have the same status
09:24
only top notch engineers get them
09:25
senior ppl
09:25
monkalaugh
09:25
Avatar
yeah, maybe i should just do a non IT job xd
Avatar
not true, we are hiring junior people too
Avatar
and my old job too, so this seems pretty common
09:35
especially since junior people are cheaper
Avatar
but isnt it more risky to hire junior ppl in a lang like c++
09:36
with all the memory safety stuff
Avatar
have you read deens blog post
Avatar
which one
Avatar
10mio lines c++ 15mio lines python test code xd
Avatar
well his old job had lot of tests ye
09:37
but not all companies are this big
Avatar
yeah SAP is probs biggest player in germany
09:39
i guess u mean those
09:39
united states only xd
09:39
At Yugabyte, we are on a mission to build an open source, high-performance, distributed SQL database for powering global, internet-scale applications. As a software engineering intern working on the Core Database, you will be responsible for designing and implementing features in the heart of the database. This is logically split into two high l...
09:40
they dont hire in spain tho
09:40
only germany usa india
09:40
spain is pain
09:40
monkalaugh
Avatar
they hire anywhere, you can work remotely. just tell them I recommended you 😄
09:47
I know we have colleagues in Spain
09:48
At Yugabyte, we are on a mission to build an open source, high-performance, distributed SQL database for powering global, internet-scale applications. We are building infrastructure that will become the foundation for building online applications over the next decade. We pride ourselves in blending hard but useful engineering solutions with easy...
Avatar
(and many more)
Avatar
Can't believe I'm still dealing with this four months in.
Avatar
that looks cool
09:49
dealing with what, physics?
Avatar
looks funny
Avatar
dealing with unity physics
09:53
I call this the sea of debugging info
10:36
monkaS
Avatar
intel 1 nm, 100 ghz, 1 kwh tdp
10:40
300Cº
Avatar
ez transition from gas heaters to eletric ones
Avatar
i use my pc as heater
Avatar
to heat spain even more? xd
Avatar
how much C° is it for you rn?
10:43
i guess around 15C°, so warm xd in winter
10:43
well i live near sea
10:44
if u go north its colder
Avatar
for me its the opposite
10:44
firefox is crahsing for me a lot
Avatar
the further you go to the north sea, it's getting colder 😄
Avatar
and many videos simply dont start
10:44
and chrome works ifne
10:44
on linux
10:44
what did u do firefox
Avatar
:/ firefox always was especially good in video playback for me
10:45
8k works without stutter there
Avatar
its not that
10:45
the video simply doesnt start
10:45
and it crashes the tab
10:45
smth is wrong
Avatar
mybe a lib firefox uses
Avatar
btw should i buy a 6600 xt for 550€
10:45
most games see a 50 fps increase from my rx 580
10:45
xd
Avatar
mhh, not the best price, but also not the worst in the current market situation
10:46
if you got the money why not xd
10:46
i rly want a 6700 xt
Avatar
except your are saving for something
Avatar
but the prices uf
Avatar
yeah
10:46
hard times
Avatar
the 6700 xt costs 770€
Avatar
insane
Avatar
and is only 18% better
10:47
than 6600 xt
Avatar
i could sell my GPU for 550€ xd
10:48
i can basically trade against a better GPU with your price
Avatar
my gpu goes for 380€
10:49
its the 4gb vram version
10:49
i bought it for 150€ back in time
10:49
its crazy
10:51
oh
10:51
i found the 6600xt for 510€ now
Avatar
still so much xD
Avatar
whats more reputable XFX or MSI
Avatar
when i bought mine, it was better than gtx 1080, which was high end already, and only cost like 450€ xD
10:52
mhh msi is mixed
10:53
sometimes good, sometimes broken
10:53
xfx is cheap but ok i think
10:54
maybe you could wait for next gen
10:55
if you get a gpu early when it releases the prices are often still pretty down
Avatar
its ok
10:55
i have money
10:55
so
10:55
maybe ill try to sell this 580
10:55
its used a lot tho
10:55
and i think its starting to fail sometimes
Avatar
i think a gamer that plays 5-6h per day is not alot
10:56
compared to miners
10:56
but i think mining stresses a different component more than gaming
10:56
i might be wrong tho
Avatar
that's possible yeah
10:57
10:58
buy intel GPU
10:58
xd
Avatar
i bought it
10:59
gg
Avatar
lmao
Avatar
"XFX Speedster SWFT 210 AMD Radeon RX 6600 XT 8GB GDDR6"
Avatar
i hope it serves you well
11:00
mesa drivers are the best xd
Avatar
but dude, they have an amazing design
11:01
i really like it
11:01
even tho i don't see my GPU anyway xD
11:02
the gpu ?
11:02
11:02
i mean ye it looks cool
Avatar
yeah
11:02
Avatar
black always looks good
Avatar
i was seeing this
Avatar
im expecting a 80% improvement
11:03
atleast thats what userbenchmark says
11:03
Based on 740,438 user benchmarks for the AMD RX 580 and the RX 6600-XT, we rank them both on effective speed and value for money against the best 673 GPUs.
Avatar
nice 😄
11:03
Avatar
asus gpu are always so bulky
Avatar
yeah
11:04
looks ugly, but always silent, that's quite nice 😄
11:05
11:05
the stock vega
Avatar
xD
Avatar
the stock 6600 xt
Avatar
this "R" alone so ugly
11:05
nvidia defs has better designs
Avatar
finally ill be able to play ddnet at 5k fps
11:06
or more
Avatar
yeah
11:06
i hope you can run at 10k FPS with vulkan
Avatar
sadly my pc runs into GPU bottleneck now :c
11:06
wayland is still record with 13k FPS
Avatar
i have a gpu bottleneck tooo with the 580
11:07
with my cpu 5600x
11:07
i use arch btw
Avatar
yeah, but for me RADV is also quite slow in GPU bound
11:07
i use debian sid, but who cares xD
11:08
here you also get a nice looking neofetch
Avatar
why does mine display more colors?
Avatar
developers with good pcs
Avatar
does that mean smth?
Avatar
and players with windows xp
11:09
a reality in game dev
Avatar
XD
Avatar
Avatar
Jupstar ✪
why does mine display more colors?
idk ur neofetch bolds more maybe
11:09
or the font
11:09
oh
11:09
the 2 rows
11:09
idk
11:10
konsole must have more colors defined for stuff
Avatar
yeah possibly
11:10
ok but xterm also shows 2 rows
11:11
my xterm is
11:11
not configured
11:11
lmao
Avatar
white xD
11:11
chillerdragon style
Avatar
i dont use xterm xd
Avatar
still funny
11:11
how its the brightest thing on my display rn
11:11
xD
Avatar
White?
Avatar
eye cancer white xD
11:12
imagine using white
11:12
if u go to twitch and the category "software and development" you can see lot of devs using windows and white themes
11:12
justatest
11:13
11:13
PepeA
Avatar
i even set my brightness to lowest, i really hate light xD
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
i have double the amount of packages installed xD, funny how it shows so much stuff you currently use double the RAM
11:15
i bet you play dota rn
Avatar
Nah i had vscode open 3 dif projects
11:28
+ firefox + chrome + discord
12:46
unikernels pogchamp
Avatar
LETS GO
12:49
i love it xd
Avatar
Avatar
Ryozuki
and many videos simply dont start
you probably disabled auto play
17:09
firefox crashed
17:09
its a bug
Avatar
never had any problem
Avatar
me neither
17:10
its new
Avatar
sometimes you do have to allow media autoplay and refresh the page
Avatar
its not that
17:11
i think the webrender is broken
17:11
any media players crash firefox randomly
17:11
without starting the video
17:11
and most say weird errors
Avatar
well its my fault for using firefox dev edition i guess
17:12
it uses beta versions iirc
Avatar
ah, that reminds of an issue in github, where the install script was rm -rf /usr, and one of the comment said : "that's what i get for using alpha versions"
Avatar
it doesnt load lol
Avatar
well, there's simply a space between /usr and the rest of the path 😄
17:18
but it's an install script, so it is run as sudo
Avatar
lets add a patch that replaces all binaries of all steam games with a sys link to the DDNet binary
Avatar
I assume the // ignore_convention comments are obsolete as they are only used inconsistently and not being added in new code anymore. The script https://github.com/teeworlds/teeworlds/blob/master/scripts/refactor_count.py that checks for these annotations does not exist in ddnet.

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 if it works...
Avatar
i'd say 3 xd
Avatar
@Ryozuki
Avatar
89f126c Remove obsolete ignore_convention comment - Robyt3 876ac2a Merge #4720 - bors[bot]
22:58
@fokkonaut
Exported 301 message(s)