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 2023-04-08 00:00:00Z and 2023-04-09 00:00:00Z
Avatar
Avatar
ZombieToad
if you could provide proof for me being constantly racist that would be good
Screenshot your discord server chat at any moment of time
01:31
kek
Avatar
If you search the n-word on his discord server discord crashes
Avatar
@Learath2 why did glibc decide to link nss the way it does?
08:16
In fact, -static gcc flag on Linux doesn't work now. Let me cite from the GNU libc FAQ: 2.22. Even statically linked programs need some shared libraries which is not acceptable for me. What ...
08:16
i was curious so i searched a bit xd
08:17
like why hardcode this
08:22
Harness the power of ChatGPT inside the GDB debugger! - GitHub - pgosar/ChatGDB: Harness the power of ChatGPT inside the GDB debugger!
Avatar
Avatar
Ryozuki
@Learath2 why did glibc decide to link nss the way it does?
Well I think the reason was to have consistent behaviour across all programs on the same system, e.g. one program resolves a hostname one way and another a different way would be undesirable
Avatar
NSS allows using different services (e.g. NIS, files, db, hesiod) by just changing one configuration file (/etc/nsswitch.conf) without relinking any programs.
08:25
what?
08:25
this allows u to change behavious
08:25
without the one the program was tested in
Avatar
static linking was most epic in the past and it will be most epic in future
Avatar
cuz static has more info so more opts
08:25
and perf is top 1 priority in this world
Avatar
yes 😄
Avatar
Avatar
Ryozuki
cool idea actually 😄
Avatar
Mh, I'm still unsure about that. Some libraries being truly shared is important for consistent behaviour
Avatar
u mean like the graphics driver part that is in the kernel?
08:26
and needs communication?
08:27
basically all kernel stuff
Avatar
That part can't be static anyway. No I was talking about things like curl e.g.
Avatar
"That part can't be static anyway" depends xddd
08:27
we see us in 50 years
Avatar
what should be made is a stable kernel interface for syscalls that doesnt rely on libc
Avatar
when i released my own os
08:27
that even beats ryoos
Avatar
Avatar
Ryozuki
what should be made is a stable kernel interface for syscalls that doesnt rely on libc
would be interesting
Avatar
You link to curl statically, it could use one source of trust and the system one another, which might be verybad(tm)
Avatar
Avatar
Jupstar ✪
"That part can't be static anyway" depends xddd
Some parts of it maybe, but as far as I'm aware, there is truly global state in most drivers
Avatar
yep, question is if that implies it to be static linked, or if the global state simply lives
Avatar
Avatar
Ryozuki
what should be made is a stable kernel interface for syscalls that doesnt rely on libc
Hm, I think this is already there, you can do syscalls with just a couple instructions
Avatar
e.g. lets say there is a global mutex that simply exists for this purpose
08:30
then all usages of lets say a global memory pool, would be safe to exist
08:31
well to some degrees there might still be a very small set of shared functions between stuff
Avatar
Avatar
Jupstar ✪
yep, question is if that implies it to be static linked, or if the global state simply lives
You could isolate such global state into a kernel part of the driver and the rest can be statically linked. But is that strictly better for performance? Now the code that could be certain about state needs to wait on a mutex
Avatar
but if that interface is stable
Avatar
Anyway, idk. It certainly is possible to split it. Just not sure if it strictly implies better performance, since dynamic linking is pretty cheap, only an indirect call away
Avatar
Avatar
Learath2
You could isolate such global state into a kernel part of the driver and the rest can be statically linked. But is that strictly better for performance? Now the code that could be certain about state needs to wait on a mutex
well it has to be minimized ofc, and mutex was just to illustrate the idea. but what i'd see is a kernel that is so micro that it really just prevents data races
Avatar
Avatar
Learath2
Anyway, idk. It certainly is possible to split it. Just not sure if it strictly implies better performance, since dynamic linking is pretty cheap, only an indirect call away
i dunno either, but i want to know 😄
08:33
i mean if the compiler sees everything except a small minimal subset i can remove so much stuff from linked libraries(dead code etc)
08:33
it could at least make a single application much faster
08:33
if the system in total is faster is not sure
08:34
it uses more ram possibly in total ^^
08:34
but even that depends
08:35
there are so many infinite amount of shared libaries lmao just look into your /usr/lib or whatever
Avatar
Avatar
Jupstar ✪
i mean if the compiler sees everything except a small minimal subset i can remove so much stuff from linked libraries(dead code etc)
But is removing deadcode really doing anything except optimizing the loaded size of the library? Some more advanced LTO can help and stuff can be inlined, so there definitely will be performance improvements on a single app basis. For the whole system idk either. Too complex for me to imagine as a hypothetical
Avatar
Avatar
Learath2
But is removing deadcode really doing anything except optimizing the loaded size of the library? Some more advanced LTO can help and stuff can be inlined, so there definitely will be performance improvements on a single app basis. For the whole system idk either. Too complex for me to imagine as a hypothetical
well yeah dead code and link time optimizations are the mean points indeed
08:37
with a language like rust that is rather relaxed about how a struct must look like, it could even optimize structures across a whole programm across the whole amount of libraries needed
Avatar
So I guess the best way to achieve this would be a minimal dynamic library with a set interface managing global state and the rest of the library is statically linkable
Avatar
would be really interesting 😄
Avatar
I think I still want a libsyscall dynamically linked for now just so more than a single version of the kernel can be handled. The kernel isn't stable enough yet
08:43
I think atleast for non-embedded purposes the kernel still needs to do some form of syscalls and their dispatching
Avatar
did u know there are some compilers that can optimize away dynamic dispatch
08:58
or smth like that
08:58
i read it somewhere, but it requires a very closed system
Avatar
Avatar
Ryozuki
did u know there are some compilers that can optimize away dynamic dispatch
Mh, can’t both gcc and clang devirtualize if they can infer the runtime type of the object statically? It’s not that good at it but it still can iirc
Avatar
iirc its pretty expensive compilation time wise
Avatar
Also C++ isn't exactly built to keep track of runtime types easily, so I can imagine it being fairly hard to do
Avatar
chillerdragon BOT 2023-04-08 10:25:13Z
Wot running this on mac opens da bitcoin whitepaper? xdopen /System/Library/Image\ Capture/Devices/VirtualScanner.app/Contents/Resources/simpledoc.pdf
Avatar
ChillerDragon BOT 2023-04-08 10:26:20Z
some bitcoin maximalist at apple running illegal marketing campains lmao
Avatar
Thoughts? Two positives I can think of:
  • Minimal Moderation Needed: Official servers are exclusively listed under their designated tabs.
  • People will always be able to locate our servers and refrain from joining servers that falsely claim to be official DDNet servers.
This complements #5654
Avatar
This change should fix the issue the bot not updating the map channel state to "released" if the map has already been released.
13:42
dbb0254 Fix regex: .tw -> .org - murpii f178b2a Merge pull request #46 from murpii/patch-4 - def-
Avatar
is
-DCLIENT=[ON|OFF] Whether to enable client compilation. If set to OFF, DDNet will not depend on Curl, Freetype, Ogg, Opus, Opusfile, and SDL2. Default value is ON.
still a thing?
14:32
cmake asks for curl and libpng anyway
Avatar
ChillerDragon BOT 2023-04-08 14:37:14Z
sounds like a bug
Avatar
I assume creating a Bot that helps people through maps is still considered cheating?
14:38
as to, not for personal gain, but letting it guide other players
14:39
I got pathing done for most novice maps. And it already is programmed in such a way that it helps everyone in a freeze.
Avatar
@Learath2 @Jupstar ✪ so i changed my case fans for pwm and the cpu fan for a expensive noctua one, and reapplied thermal paste with a noctua one
14:40
i compiled some stuff
14:40
max i reached is 78 after compiling some time
14:40
before i reached 88 sometimes
14:40
5800x is hot itself i guess tho xD
Avatar
Avatar
default
I assume creating a Bot that helps people through maps is still considered cheating?
why do you need bot for guiding tho
Avatar
man these new fans i got are so silent, my pc was quite the rocket before
Avatar
Avatar
gerdoe
why do you need bot for guiding tho
I want to see how helpful a bot could be in empty servers
Avatar
Avatar
Ryozuki
man these new fans i got are so silent, my pc was quite the rocket before
huh, thanks for your review xd
14:41
will buy noctua next time xd
Avatar
ChillerDragon BOT 2023-04-08 14:41:46Z
@default that is amzing is it open src?
Avatar
Avatar
default
I want to see how helpful a bot could be in empty servers
anyway how bot can be useful
Avatar
Avatar
ChillerDragon
@default that is amzing is it open src?
I hope it will never be
Avatar
Avatar
gerdoe
will buy noctua next time xd
i only got 1 noctua, for the cpu one, but usually the case fans are the noisy ones, i bought 4 ARCTIC F12
14:42
and they dont make noise lol
Avatar
noted xd
Avatar
but well i have like street noise as bg
Avatar
Avatar
gerdoe
anyway how bot can be useful
Making noobs finish a map that have no partner
Avatar
ChillerDragon BOT 2023-04-08 14:42:55Z
cool stuff how good does it work?
Avatar
Avatar
default
Making noobs finish a map that have no partner
i mean actually how can bot help
14:43
what will he do idk
Avatar
ChillerDragon BOT 2023-04-08 14:43:03Z
does it generically detect parts and what to play?
Avatar
Having received more than 100 awards and recommendations from international hardware websites and magazines, Noctua’s flagship model NF-A12x25 has established itself as a true deluxe choice when it comes to premium-quality quiet 120mm fans. Various state-of-the-art technologies and a record tight tip clearance of only 0.5mm, which is made possib...
14:43
this is the fan
Avatar
Avatar
gerdoe
what will he do idk
It can do parts in the future
Avatar
Avatar
Ryozuki
this is the fan
Avatar
premium quality bruda
Avatar
Avatar
default
It can do parts in the future
just demo db will be much easier to implement and much easier to make
Avatar
Avatar
default
I assume creating a Bot that helps people through maps is still considered cheating?
Yes, don't bot on our servers
14:44
also Rule 8
Avatar
ChillerDragon BOT 2023-04-08 14:44:26Z
@default but yea to answer your question its highly illegal
14:44
@default but feel free to use it on zillyhuhn.com servers :)
Avatar
Avatar
Ryozuki
@Learath2 @Jupstar ✪ so i changed my case fans for pwm and the cpu fan for a expensive noctua one, and reapplied thermal paste with a noctua one
nice then it was worth it 😄
Avatar
Avatar
Jupstar ✪
nice then it was worth it 😄
the real win is how quiet it isn ow
14:46
now*
14:46
lol
Avatar
Avatar
murpi
also Rule 8
Only Heinrich cares about it. And if it works great. I could provide you with the source so that you can make little NPC's for empty servers.
Avatar
Avatar
ChillerDragon
@default but feel free to use it on zillyhuhn.com servers :)
on lasergurkenland???
14:47
poggers2
Avatar
ChillerDragon BOT 2023-04-08 14:47:04Z
xd there too
14:47
i meant all tw servers i host
Avatar
Avatar
gerdoe
just demo db will be much easier to implement and much easier to make
Not exactly sure what you mean by that. "Demo" tells me you mean a replay bot. But I have no clue what "db" stands for in this sentence.
14:48
A replay Bot isn't great at dynamically catching non-bot players.
Avatar
Avatar
default
Not exactly sure what you mean by that. "Demo" tells me you mean a replay bot. But I have no clue what "db" stands for in this sentence.
database with all finished maps xd
Avatar
ChillerDragon BOT 2023-04-08 14:48:06Z
wat sentence?
Avatar
we already have ghost function in ddnet client
14:48
it can just get demos and play it while player is trying to do part
Avatar
that's not what I am working on though
14:49
I want a play buddy
Avatar
Avatar
Ryozuki
@Learath2 @Jupstar ✪ so i changed my case fans for pwm and the cpu fan for a expensive noctua one, and reapplied thermal paste with a noctua one
I changed all my fans to noctua ones, their color scheme is shit but my pc is extremely quiet now
Avatar
ChillerDragon BOT 2023-04-08 14:49:14Z
replace your friends with AI
Avatar
that can get dragged, as well as drag me, or someone else
Avatar
Avatar
ChillerDragon
replace your friends with AI
I have no DDNet friends. So that's exactly what I will do.
Avatar
ChillerDragon BOT 2023-04-08 14:49:59Z
please share some action footage when its done @default im really curious
14:50
also please teach it block so i can play against enemys on localhost w my laggy internet
Avatar
To code that I would have to know how Block works myself
Avatar
ChillerDragon BOT 2023-04-08 14:51:25Z
enemy to da freeze
14:51
self out da freeze
14:51
done
Avatar
I entered a block server once
14:51
and they all camp behind a fall
14:51
right after the start
Avatar
ChillerDragon BOT 2023-04-08 14:51:55Z
yes tactical waiting
Avatar
so how am I supposed to unblock myself in these cases
Avatar
ChillerDragon BOT 2023-04-08 14:52:05Z
depends on the map
Avatar
if I have to get through a freeze
Avatar
already have
Avatar
ChillerDragon BOT 2023-04-08 14:52:28Z
you can 2p aled
14:52
or rifle
14:52
or attack in masses etc
Avatar
Avatar
default
I have no DDNet friends. So that's exactly what I will do.
its not a real problem tho
Avatar
Avatar
default
Only Heinrich cares about it. And if it works great. I could provide you with the source so that you can make little NPC's for empty servers.
I care too, since im the one who has to spend hours investigating (edited)
Avatar
ChillerDragon BOT 2023-04-08 14:53:17Z
i honestly would love you if you can build me some offline bock single player
Avatar
Avatar
murpi
I care too, since im the one who has to spend hours investigating (edited)
You won't be able to tell the difference
Avatar
ChillerDragon BOT 2023-04-08 14:54:25Z
arent u pro botting murpi?
14:55
ladys and gents
14:55
we got em
14:55
<murpi> Chillerdragon: your help bot on multeasymap is great
Avatar
murpi tries to prevent what he has done already
14:56
ironic
Avatar
That ain't me
Avatar
ChillerDragon BOT 2023-04-08 14:56:56Z
sus
Avatar
anyway is it intended to have curl and libpng to compile server only?
Avatar
ChillerDragon BOT 2023-04-08 15:10:22Z
curl could be needed not sure but highly doubt libpng
Avatar
DragonStalker trains his AI
Avatar
curl is used by the server to register it with the masterserver
Avatar
Avatar
Robyt3
curl is used by the server to register it with the masterserver
but libpng?
Avatar
Avatar
gerdoe
but libpng?
what makes u think that it is the case?
16:23
there is no libpng symbol in DDNet-Server
Avatar
Avatar
Jupstar ✪
what makes u think that it is the case?
maybe cmake error huh?
16:26
im passing cmake .. -DCLIENT=OFF and it says i need to install curl libpng and sqlite3 to run build
Avatar
sqlite3
16:26
wait
16:27
in one sentence?
Avatar
i can understand why is curl and sqlite3 can be used for in server but tf is libpng doing here
Avatar
Avatar
Jupstar ✪
in one sentence?
of course not
Avatar
Avatar
gerdoe
i can understand why is curl and sqlite3 can be used for in server but tf is libpng doing here
are*
Avatar
ah ok was confused lol xD
16:27
well yeah sounds like a cmake bug then
Avatar
Can you show the entire cmake output?
Avatar
Avatar
Learath2
Can you show the entire cmake output?
ig he can't 💀
Avatar
someone is probably doing link_libraries instead of target_link_libraries
Avatar
nah just client variable wasnt present in if checks
21:37
im laying in bed rn cant get up
Exported 182 message(s)