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-05-08 00:00:00Z and 2022-05-09 00:00:00Z
Avatar
i'll leave this draft until the new shield icons on the ddnet repo's game.png is decided
Avatar
would it be possible to add a NetStruct to data types? (e.g. similar to NetIntAny, NetArray, ...)
Avatar
or, perhaps not a good idea to use anything recursive
Avatar
We seem to have an issue with how we linked libnotify
12:43
cmake succeeds when it's not installed
Avatar
yes
12:43
we dont check it
Avatar
We should, right?
Avatar
would be nicer yes
Avatar
I want to translate a more language for DDNet Cilent But I don't know what should I do Then I want to translate for Server But I can't find any json file So how to translate for ddnet? thx
Avatar
@Jupstar ✪ the given error for vulkan things not being found is also very meh
Avatar
what does it say?
Avatar
I can't believe I've been using my computer at 800mhz, things compile so quickly now :3
Avatar
in 20 years i cant believe ive been using my computer at 800ghz, things compile so quickly now xd
kek 1
Avatar
too bad frequency isn't increasing anymore
13:40
13:41
power wall hits hard
Avatar
Avatar
Chairn
power wall hits hard
true story
13:42
i want more single thread performance xd
13:43
now they throw more l1 cache to it and it works xxd
Avatar
Avatar
Chairn
Click to see attachment 🖼️
where is that from, i want more stats like that
13:44
performance related
13:44
also for gpus xd
Avatar
hum, Hennessy & Patterson is a good source
13:44
its the bible for system architect (edited)
13:45
lol, i typed biblio instead of bible, phd really starts to consume me
Avatar
too bad they stats always end in 2010
13:46
13:47
modern cpu are nowadays more dense in terms of power than a nuclear reactor
Avatar
nice
13:47
and intel probs already beats the sun at this point xd
Avatar
hence the power wall, you can't cool them down efficiently
13:47
also dark silicon problem if you have ever heard of it
Avatar
intel cryo cooler
Avatar
cool by activly using electric energy
Avatar
Avatar
Jupstar ✪
cool by activly using electric energy
(edited)
Avatar
Avatar
Chairn
Click to see attachment 🖼️
are you also facing such problems in your memory designs?
Avatar
partly, but not completely
13:50
hence my phd about computing in memory directly because there is way less power density for the moment
Avatar
xd
Avatar
Avatar
Jupstar ✪
cool by activly using electric energy
so obviously, this is not possible
Avatar
faster memory = faster effective CPU, i am fine with that
Avatar
actually, we would need to slow memory a lil bit, depend on the technology
Avatar
Avatar
Chairn
too bad frequency isn't increasing anymore
Well each cycle is still becoming more efficient, so comparing clock speeds isn't always really fair
Avatar
Avatar
Chairn
so obviously, this is not possible
if you get close to super conduction?
Avatar
and we can't compute anything there, mostly parallel stuff for AI or BLAS stuff
Avatar
Avatar
Learath2
Well each cycle is still becoming more efficient, so comparing clock speeds isn't always really fair
it is because power scales with f²
Avatar
Avatar
Jupstar ✪
if you get close to super conduction?
heat must go somewhere, superconduction don't apply to semiconductor
Avatar
with other materials?
Avatar
then it's a drastic technology change, we have nothing close in that matter
13:53
maybe optronic might be a game changer
13:53
but we still have a long way to go
Avatar
Avatar
Chairn
it is because power scales with f²
Well yes, so it might actually be good that f isn't increasing anymore
Avatar
yes i want my alien hardware
Avatar
spintronic is also interesting in the way it works
13:54
in spintronic, the path (copper wire) is actually the gate
13:54
its quite weird, fucking quantum physic
Avatar
If we can extract more performance while not having to increase the frequency it's a win, and if raw performance starts to stagnate we might finally get back to the golden age of optimization when people actually cared about writing nice code
13:55
win win 😛
Avatar
Avatar
Learath2
If we can extract more performance while not having to increase the frequency it's a win, and if raw performance starts to stagnate we might finally get back to the golden age of optimization when people actually cared about writing nice code
tru, it already happens a lot
13:55
script languages get c bindings for slow paths 😄
Avatar
well, you cna't have more performance without more frequency or more parallelism
13:56
hardware operators have already been quite optimized
Avatar
but there is still room
Avatar
so we really need a technology shift
Avatar
well you can pipeline more, we most definitely can parallelise more
Avatar
pipeline more --> more stalls when branching
13:56
15 stage is around the norm
Avatar
--> more people care about writing nice branchless code --> I'm happy 😛
Avatar
in 2005/2006 they had up to 40 stages and reverted because it was highly inefficient
13:57
you cant write branchless code 😄
13:58
well, you can with predicated/conditional hardware operator
13:58
not the norm in x86
13:58
but that's what is used for GPU
Avatar
but we still have a bit of headroom for transistor sizes and for the overall gaps between the transistors(for logical units) & other components(memory controler etc) dont we?
Avatar
interesting tab about simd extension:
13:59
well, intel is still at 10nm, so they can go down up to 2 or 3nm, but they already took 10 years to industrialize their 10nm process
Avatar
3 silicon atoms would be around 0.6-1nanometer
14:00
ez
14:00
all we need
Avatar
TSMC does sell 5 and 7nm now, but technology is slightly different and less efficient (performance wise) than intel's finfet technology
Avatar
Avatar
Jupstar ✪
3 silicon atoms would be around 0.6-1nanometer
I think quantum fuckiness prevents us from going that low 😄
Avatar
silicon is just the base die
Avatar
i dunno i think the quantum effects are only the space between transistors not the transistors itself?
Avatar
you need germanium, carbon and some more as well
Avatar
but tbh, who the fuck knows xd
Avatar
I'm not especially well read in semi conductor technology, but if you go that small the uncertainty in the position of the electron starts being an issue
Avatar
and the fabrication process would be a mess
14:02
they already have huge problems to get a good yield from their wafer
14:02
like 50% are thrown out due to defects
Avatar
i pay my 2million bucks for 1 trillion fps
Avatar
damn, 1ps per frame 😄
Avatar
Fwiw, I'm not especially concerned about not getting more performance, I think we have plenty enough we are just wasting right now, if we don't get improvements for a while we'll just have to get smarter about our use of cycles
Avatar
i bet as soon as x86 is the reason for no more performance it dies faster than the industry can imagine rn xd
Avatar
risc-v ftw !!
Avatar
but is risc really good in your argumentation?
14:05
more pipelined instructions = more effective performance
14:05
so would it make sense to make more ccomplex instructions
14:05
wouldn't*
14:06
or better
14:07
the longer the code runs inside the logic unit the better
Avatar
you can add extension to it, so not really a problem
14:09
that's what makes it interesting, you can specialize it following your needs
Avatar
yes
14:09
i mean it kinda works out for apple
14:09
but not as much as it should tbh
14:09
considering intel beats it with 10nm
14:09
and m1 is a soc
Avatar
Avatar
Chairn
that's what makes it interesting, you can specialize it following your needs
do you think a RISC processor can scale up in high power regions?
14:10
(signle threaded ofc)
Avatar
what do you mean by "high power regions"?
Avatar
throw 100 watts against it and it runs better with like ok efficiency curve
14:11
basically what intel does
Avatar
give it 5ghz instead of 4 and u have a bit more performance 😄
Avatar
because risc is risc, you'll have linear scale up, but most complex computing would not benefit from it directly
Avatar
so another cisc design? or still prefer risc? D:
Avatar
i still prefer risc, it's easier to design 😄
Avatar
hehe
Avatar
easier to manage as well for the state machine
14:13
x86 is a real mess
Avatar
i believe that 😄
Avatar
variable length instructions is a bad start
14:13
40 years of backwards compatibility is a design error
Avatar
yeah but i defs want to see another cisc
14:14
also x86_64 is not 40 years old 😄
Avatar
yes but the fuck uses 32bit
Avatar
code compiled today (which most use the same x86 prefix instructions) still runs on the good old 8086 (edited)
Avatar
i mean the industry that uses such programs also doesnt need more performance anyway, isnt that kinda true? i often think the industry argument isnt really the greatest
Avatar
well, now they indeed have 64 bits registers which would not work back then
Avatar
just drop x86 and emulate it, and in 3 years bcs hardware gets faster nobody cares xd
Avatar
but the decode unit of intel's cpu is a bloat
Avatar
i mean i often heard the decoding is expensive
Avatar
i mixed myself, 40 years old code still run on today's hardware
14:16
that's a mistake
Avatar
and the power consumption doesnt speak for amd or intel but the effective speed is still good XD
14:16
would a modern cisc just use 32bit word length?
14:16
and not decode?
Avatar
power consumption is important for servers
Avatar
or 16bit
Avatar
and for the planet as well
Avatar
32 is maybe overkill xD
14:17
dont fly or ride a car would be more
Avatar
wdym "32bit word length and not decode"?
Avatar
and video calls are an easy way to illuminate most of that 😄
Avatar
Avatar
Chairn
wdym "32bit word length and not decode"?
i mean x86 without a decoder basiucally would require fixed since OP code sizes
Avatar
you always need a decode stage
Avatar
so e.g. 16 bit for the OPcode and i dunno how much more for whatever it needs on information (edited)
Avatar
risc-v has 4 bytes instructions
14:19
there's a compressed extension with 2 bytes instructions
14:19
you need 3x5 bits for 3 registers opcodes
Avatar
mh ok
Avatar
plus, you don't use 16 bits opcode, but like 8 is well enough
Avatar
for risc?
14:19
but for cisc?
Avatar
then you add some bits that depends on each opcodes for variation
14:20
to ease the decode and minimize hardware
14:20
i don't know for cisc
14:20
in all cases, you don't need much opcodes bits
Avatar
yeah but we need cisc, bcs i need more performance
14:21
pls study cisc
Avatar
the more bits, the more hardware (more muxes in decode stage)
Avatar
Avatar
Jupstar ✪
pls study cisc
gib time & money pls
14:21
mostly time 😄
Avatar
yeah ok, time is an issue accepted
Avatar
if you're interested, i can send you my manuscript once i have finished it
14:22
chapter one will discuss global context in semiconductor industry
14:23
power wall, energy wall, dark silicon
14:23
memory problems
Avatar
if there are nice graphs i take it
Avatar
the picture i sent you are there. I just need to redo them in latex to fit the other figures style
14:25
enjoy chapter 1
14:25
but there are lots of interesting thing there
14:25
1300 pages though ^^
Avatar
nice
14:34
even relativly up to date
14:35
will look a bit into it later, but now football xd
Avatar
tv or outside 😄 ?
Avatar
outside 😄
15:50
better
Avatar
Should I use LOCK or std::mutex in new code?
Avatar
std::mutex xd
16:28
unique_lock
16:28
or lock_guard
16:28
or scoped_lock for the c++17 gangsters
16:31
but scoped_lock apparently allows to use multiple mutex but also no mutex
16:31
that kinda sucks
Avatar
Avatar
Chairn
but there are lots of interesting thing there
only skipped through it, but reads pretty nice, kinda mix of an article and some more specific information 😄
Avatar
It's sad that curl_multi_poll doesn't have a block forever version
17:00
My alternative is to use select with curl_multi_fdset but then I have to deal with file descriptors larger than FD_SETSIZE myself, or I could use the newer event based API but then I need to wrap epoll in system.cpp. Annoying
17:01
Is it maybe time for us to move to libevent to handle this stuff for us?
Avatar
Avatar
Learath2
It's sad that curl_multi_poll doesn't have a block forever version
wow curls manual really sucks
17:02
it doesnt even mention valid usages for the timeout parameter
Avatar
Yeah, pretty annoying, I had to look at the source to make sure
Avatar
I guess I could pass INT_MAX as timeout
Avatar
Why on GER2 my dummy ping 50, and main 69? (edited)
Avatar
anyone using dwm there ?
Avatar
does anyone know how to build acl for networking? (edited)
Avatar
Avatar
Nagi01 {LAN}
anyone using dwm there ?
suckless software usually sucks
18:22
software is not that easy and unless u rly want simple stuff its meh
18:22
also if u didnt know, some suckless authors email use a reference to german nazis xd
18:23
official suckless.org mails originating from a host using a nazi reference (wolfsschanze, hitler’s summer residence) as hostname.
18:25
if u are on x11 i recommend i3-gaps on wayland sway
Avatar
mfw getting framed as nazis just because they don't subscribe to the systemd cult
Avatar
Avatar
Learath2
mfw getting framed as nazis just because they don't subscribe to the systemd cult
no, its because using direct references to nazi stuff lol
18:26
Just in case you thought about using Suckless: They’re doing literal torch hikes through southern Germany at their conferences, fighting online against "cultural marxism", and their mail server has the hostname "Wolfsschanze" (see: https://t.co/2cACHCGcqA) Judge for yourself:
18:26
hilarious
18:27
konsti would be with them probs
18:27
xddd
18:32
zamalek
It boggles the mind that developers, who believe that software should be minimal and do one thing well, attach toxic political agendas to their software[1] for no good reason. From a pragmatic standpoint Nazism (and all forms of racism) is pointless expenditure of mental resources and over-complicates life in general; which seems to conflict pre...
18:32
juicy old drama
Avatar
wttf is going on
18:34
nothing i guess
Avatar
are u against simple software now bcs some weirdos are for it?
18:34
i dont get it
Avatar
no i just pointed it out
18:34
i actually used dwm before i3
18:35
it didnt like it
Avatar
i already used i3
Avatar
use kwin and ur games just run ™️
Avatar
and u dont like i3?
18:35
if u know haskell there is xmoand
18:35
xmonad
Avatar
y ik xmonad
Avatar
(also buggy af)
18:35
just saiyan
Avatar
i3 was cool but i just wanted to test dwm
18:36
dwm is cool and very customizable
Avatar
just use terminal lets face it
Avatar
x)
Avatar
Avatar
Jupstar ✪
just use terminal lets face it
true
18:37
tty only
18:37
why need wm
18:37
text is suckless
Avatar
firefox sucks
18:44
use suckless browser
18:44
linux is bloated
18:44
remove drivers
Avatar
tru
Avatar
package manager is bloat too
Avatar
host your own server
Avatar
dont use google its bloated af
Avatar
own kernel
Avatar
use library
Avatar
the http protocol is bloated
18:44
dont use the web
Avatar
public libraries
Avatar
tcp only
Avatar
udp
Avatar
no tcp
18:45
reliability is bloat
Avatar
i miss the old times
18:45
windows xp starts in less than 1 second on my vm xd
18:45
the good old days
Avatar
@Jupstar ✪ in the old times u didnt have a ssd
18:46
so its fake
Avatar
yes but software wasnt bloated xd
18:46
it was
18:47
do u remember the browsers
18:47
witht 5 layers of extensions
18:47
on the search bar
Avatar
i miss firefox 3.6
18:47
that was stable for like 5years no real updates
18:47
now its firefox 101
18:47
and it sucks xd
Avatar
why it sucks
18:47
xd
18:48
the only bad thing is webgl perf
Avatar
what does not suck on modern browsers
18:48
ok i actually like css
18:48
i need this for our client
Avatar
modern css is way better
18:48
than old css
18:48
old css was spamming tables
Avatar
yeah
Avatar
to get stuff to work
Avatar
xd
Avatar
flexbox is godsent
18:49
email templates still use tables btw
18:49
its a nightmare
Avatar
Avatar
Ryozuki
why it sucks
well i want to be honest with u
18:49
firefox for devs, best browser(bcs the tools and the f12 menu and stuff)
18:49
but firefox is so much behind webkit
18:49
webgl performance, stuff like backdrop filter still not default
18:50
no scrollbar customizations
18:50
svg is buggy
18:50
sadge
18:50
imagine not being backed by a multi billion dollar company
18:50
and being not for profit
18:50
web browser development is insanely costly
Avatar
yeah but its still kinda mozillas fault
Avatar
way more than kernel development
Avatar
before chrome was there all used firefox
Avatar
its insane
Avatar
but they slept and slept
18:51
and chrome modernized the web
18:51
or google
18:51
and then firefox just ran behind
18:51
netscape best
Avatar
i mostly use firefox on mobile tho
18:52
bcs adblock xD
18:52
and videos in background
18:53
i have ublock on firefox android
Avatar
i use fenec tho
18:53
bcs its in fdroid
Avatar
web dev is rly mobile focused because adblocks there are even rarer
Avatar
yes trui
Avatar
even on desktop
18:54
i think only 30% ppl use adblock
18:54
ppl are dumb af
18:54
well its probs more ignorance
18:54
if they knew they could hide them they probs would do it
Avatar
tbh i am suprised so many ppl arent annoyed enough to activly search for using adblocks
18:55
i mean when u buy a samsung TV nowadays u get fucking ads on them
18:55
like wtf
Avatar
i use a dns based adblock inside our router nowadays
18:56
bcs its too annoying to deal with all platforms individually
Avatar
Avatar
Nagi01 {LAN}
i already used i3
I use bspwm now, it's pretty good
Avatar
LeftWM - A tiling window manager for Adventurers. Contribute to leftwm/leftwm development by creating an account on GitHub.
19:00
cuz its made in rust
19:00
aPES3_ChadShirtRip
19:01
LeftWM was built from the very beginning to support multiple screens and ultrawide monitors. The default keybindings support ultrawide monitors and multiple screens.
19:01
nice feature
19:01
lol
19:01
nobos
19:02
where is glassy blur
19:02
backdrop-filter: blur(3px)
19:02
use that css xd
19:02
but not on firefox xddd
19:03
i want this for ddnet too
19:04
when do we drop all other than vk and gl3.3 xd
Avatar
Avatar
Learath2
I use bspwm now, it's pretty good
looks sheesh
Avatar
Avatar
Jupstar ✪
Click to see attachment 🖼️
nobo
19:14
i have 30$ font
19:14
k ?
19:14
road to 1k $ font
19:15
+ where waifu wallpaper
Avatar
Avatar
Nagi01 {LAN}
nobo
its the leftwm ryo posted xd
Avatar
:(
19:17
Sad
19:17
Where are emojis on status bar?
Avatar
hi can anyone guide me where to start if i want to generate ddnet maps with python/scripting?
21:25
if ur new to programming its gonna be a ride
21:25
but for starters you need to use patigas library
21:25
twmap
Avatar
Avatar
Ryozuki
cuz its made in rust
that's why I started using xmonad, it's written and configures in haskell 😄
Avatar
Avatar
louis
hi can anyone guide me where to start if i want to generate ddnet maps with python/scripting?
I think someone had some maze examples, would be nice if they could share them, probably easiest to start from a working generator
Avatar
in rust there is a popular config format that blends really well with rust types
21:28
its this one
21:28
Rusty Object Notation. Contribute to ron-rs/ron development by creating an account on GitHub.
21:28
Rust object notation
21:29
RON is a simple readable data serialization format that looks similar to Rust syntax. It's designed to support all of Serde's data model, so structs, enums, tuples, arrays, generic maps, and primitive values.
21:29
21:29
xD
Avatar
using dwm
Avatar
942d0f2 Add 15 € donation by Insanity - def-
Avatar
Avatar
cauldron
using dwm
gg
21:39
anyone has installed spotify without fking snap ?
21:41
this https://aur.archlinux.org/spotify.git is so unstable
Avatar
Avatar
deen
I think someone had some maze examples, would be nice if they could share them, probably easiest to start from a working generator
@ReD did you work a bit with map generation? do u have anything i can look at
Avatar
Avatar
louis
hi can anyone guide me where to start if i want to generate ddnet maps with python/scripting?
if you are familiar with numpy, my twmap python module works with numpy arrays for the tilemaps
22:45
here is a simple example of the module usage
👍 1
22:46
if you decide to use it (install with pip install twmap), I will try to get the update I worked on some months ago out, it improves the usage significantly
Avatar
Avatar
Nagi01 {LAN}
anyone has installed spotify without fking snap ?
I'm using spotifyd + spotify-tui nowadays, not really sure if I can recommend them though, tui going thru the web api is a bit jank
Avatar
Avatar
Learath2
I'm using spotifyd + spotify-tui nowadays, not really sure if I can recommend them though, tui going thru the web api is a bit jank
mmmmh
Avatar
yeah, that's how I feel about it aswell
Avatar
eheh
22:50
why spotify has cringed linux
Avatar
snap sux
22:51
canonical sux
Avatar
Every single one of these newfangled services that don't let you use your own client also seem to have shit linux support
22:53
atleast let us build our own you goofs..
22:54
I will make a spotify client of my own using librespot one of these days, but just haven't gotten around to it
Avatar
y
22:59
does spotify-tui use librespot ?
Avatar
No, it just interacts with the web api
Avatar
ah ok they have a rest api
Avatar
So you have this jank setup where spotify-tui goes thru spotify servers to control your spotifyd instance using spotify connect
Avatar
x)
Avatar
You can send spotifyd commands on dbus, I had my own small spotify web api wrapper in bash once upon a time
23:01
I could search songs/playlists on dmenu, which was fine, but I do sometimes want a better "browsing" experience
Avatar
y i see
23:02
could be interesting to build a spotify client
Avatar
you want to pursue music piracy?
Avatar
Spotify isn't mean to third party clients, librespot requires a premium account
Exported 409 message(s)