01:09 <+bridge> [ddnet] in that function you get one message. the type says which message it is 01:10 <+bridge> [ddnet] you can't cast the `void *` to messages other than the one that was specified by the type 03:39 <+bridge> [ddnet] How even ARE the OnInit / OnRender / OnMessage things treated? 03:42 <+bridge> [ddnet] So would I need to add another if state for `if(MsgType == NETMSGTYPE_SV_KILLMSGTEAMS)` under the other one? 03:53 <+bridge> [ddnet] yes, hat would work 05:37 <+bridge> [ddnet] what does this mean lol 05:37 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/1037223790691745882/unknown.png 05:38 <+bridge> [ddnet] what does this mean when compiling lol 05:38 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/1037223790691745882/unknown.png 08:17 <+bridge> [ddnet] u are missing some libs prob 08:18 <+bridge> [ddnet] apt install libgles-dev 08:18 <+bridge> [ddnet] actually just do `sudo apt install build-essential cmake git glslang-tools google-mock libavcodec-extra libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libcurl4-openssl-dev libfreetype6-dev libglew-dev libnotify-dev libogg-dev libopus-dev libopusfile-dev libpng-dev libsdl2-dev libsqlite3-dev libssl-dev libvulkan-dev libwavpack-dev libx264-dev python spirv-tools` 08:26 <+bridge> [ddnet] @Patiga https://gitlab.com/Patiga/twmap/-/merge_requests/8 08:27 <+bridge> [ddnet] i want my ddnet-map-gen to not need to depend on the image files but instead include_bytes! it, this would help me :boo: 08:37 <+bridge> [ddnet] I'm not at home rn, I assume you tested it? :happy: 08:37 <+bridge> [ddnet] i ran cargo test 08:37 <+bridge> [ddnet] which i assume has tests loading stuff 08:38 <+bridge> [ddnet] ah right it is tested by the madir format I think, but its not in the normal map parsing otherwise 08:38 <+bridge> [ddnet] *MapDir 09:56 <+bridge> [ddnet] okay thanks 11:19 <+bridge> [ddnet] updated my ddnet-map-gent tool 11:19 <+bridge> [ddnet] with binaries for windows users, in the future i may make a gui, and render it using twgpu 11:19 <+bridge> [ddnet] https://github.com/edg-l/ddnet-map-gen/releases/tag/v0.2.1 11:19 <+bridge> [ddnet] can make fly and maze maps for now 11:20 <+bridge> [ddnet] altho the fly map is pretty simple 11:20 <+bridge> [ddnet] did u just sent smth written in go 11:20 <+bridge> [ddnet] :justatest: 11:20 <+bridge> [ddnet] https://tenor.com/view/f-bi-raid-swat-gif-11500735 11:20 <+bridge> [ddnet] fake ryo 11:21 <+bridge> [ddnet] rendered pic using twgpu for the maze and fly map examples 11:21 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/1037310388036964382/generated.png 11:21 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/1037310388607393792/generated.png 11:21 <+bridge> [ddnet] xd 11:21 <+bridge> [ddnet] wow how big is that? 😄 11:21 <+bridge> [ddnet] honestly spent more time making it a good cli app than improving the map gen algorithm 11:21 <+bridge> [ddnet] 1000x1000 11:22 <+bridge> [ddnet] ah insane 😄 11:22 <+bridge> [ddnet] the render is a big weird tho xd 11:23 <+bridge> [ddnet] i may not need to make the gui myself 11:23 <+bridge> [ddnet] https://crates.io/crates/klask 11:24 <+bridge> [ddnet] > Automatically create GUI applications from clap3 apps 11:24 <+bridge> [ddnet] i use clap 4 tho 11:28 <+bridge> [ddnet] Also you can give it a seed 11:28 <+bridge> [ddnet] So u can recreate maps for seeds u find interesting 11:28 <+bridge> [ddnet] now make it for gores 11:28 <+bridge> [ddnet] Like minecraft :BASED: 11:28 <+bridge> [ddnet] Yeah that shouldnt be too hard 11:29 <+bridge> [ddnet] And i also wanna try ddnet parts 11:29 <+bridge> [ddnet] Wonder how far i can get 11:29 <+bridge> [ddnet] Then ill make a ddnet server, where everyday a new map is added 11:29 <+bridge> [ddnet] Infinite content 11:31 <+bridge> [ddnet] Make it so if you finish the map you get teleported to the next map 11:32 <+bridge> [ddnet] Oh lol 11:33 <+bridge> [ddnet] But what if other ppl are playing 11:33 <+bridge> [ddnet] multi server support 11:46 <+bridge> [ddnet] when 12:04 <+bridge> [ddnet] It's impossible with the way we structure the code rn, but you can host multiple CGameWorlds in one server by selectively snapping. Or maybe add a new redirect message so the client gets redirected to the new server 12:05 <+bridge> [ddnet] I interviewed at a uni club to become a php coder. I feel nasty 12:05 <+bridge> [ddnet] Ooof 12:05 <+bridge> [ddnet] U get a job at a club? 12:05 <+bridge> [ddnet] Only applied because I want new friends 12:05 <+bridge> [ddnet] Ah lol 12:06 <+bridge> [ddnet] Too bad they are php peasants 12:06 <+bridge> [ddnet] Special sort of club, you spend time, you get credits in exchange 12:06 <+bridge> [ddnet] I see 12:06 <+bridge> [ddnet] Why is there no c club? 12:06 <+bridge> [ddnet] Or c++ 12:06 <+bridge> [ddnet] They get to give you credits in turn because they make stuff for the uni. They repair computers, make software 12:07 <+bridge> [ddnet] Also isnt there a linux club 12:07 <+bridge> [ddnet] No social clubs here. Very utilitarian form of clubs in polytechnics 12:07 <+bridge> [ddnet] Meh 12:07 <+bridge> [ddnet] But im sure a linux club would make interesting stuff 12:07 <+bridge> [ddnet] Well idk never been to one 12:08 <+bridge> [ddnet] They could make a personalized distro for the uni 12:08 <+bridge> [ddnet] Interesting project 12:08 <+bridge> [ddnet] This club I applied to also helps with the sysadmin work. They are I guess the closest thing to a linux club 12:09 <+bridge> [ddnet] I would legit found a rust club 12:09 <+bridge> [ddnet] I have a circuit theory lecture in an hour. I'm extremely tired and starving. Do I head home and watch it remotely or do I suffer? 12:09 <+bridge> [ddnet] And cultivate some followerw 12:09 <+bridge> [ddnet] And make the anti C convention :BASED: 12:09 <+bridge> [ddnet] There was a go club for a brief while with a lot of girls for some reason 12:09 <+bridge> [ddnet] Women love Go 12:09 <+bridge> [ddnet] "Delete unsafe C from the 🌍!" 12:09 <+bridge> [ddnet] uhh 12:10 <+bridge> [ddnet] Why go :fuckyousnail: 12:10 <+bridge> [ddnet] @Learath2 the few classes i took at a uni 12:10 <+bridge> [ddnet] There was just 3 girls 12:11 <+bridge> [ddnet] :monkalaugh: 12:11 <+bridge> [ddnet] Out of 150 12:11 <+bridge> [ddnet] It's like only 10% girls here. Polytechnics are just male dominated 12:11 <+bridge> [ddnet] I also went to a polytechnic yeah 12:12 <+bridge> [ddnet] https://www.fib.upc.edu/en 12:12 <+bridge> [ddnet] But the Go club was closer to 50% for whatever reason 12:13 <+bridge> [ddnet] Lol 12:14 <+bridge> [ddnet] In my experience, its hard to find dedicated devs like in this chat irl 12:14 <+bridge> [ddnet] Maybe i havent had luck yet 12:14 <+bridge> [ddnet] Ppl simply dont do open source too lol 12:15 <+bridge> [ddnet] And windows.. 12:19 <+bridge> [ddnet] Pretty rare indeed. Most people I met around here were more so lightly interested in programming and just did whatever their lectures cover 12:27 <+bridge> [ddnet] https://en.algorithmica.org/hpc/cpu-cache/associativity/ 12:27 <+bridge> [ddnet] interesting read 12:27 <+bridge> [ddnet] the whole website itself has rly interesting stuff 12:28 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/1037327228528234516/unknown.png 12:37 <+bridge> [ddnet] I thought 1st one would be faster. But as soon as he said 2nd is faster I understood where I went wrong 12:38 <+bridge> [ddnet] It's that the cache tag doesn't change with an increment of this size. So you keep getting cache misses 😄 12:48 <+bridge> [ddnet] https://db.in.tum.de/~finis/x86%20intrinsics%20cheat%20sheet%20v1.0.pdf 12:48 <+bridge> [ddnet] damn 12:48 <+bridge> [ddnet] what a cheat sheet 12:50 <+bridge> [ddnet] Popcnt is my fav instruction 12:53 <+bridge> [ddnet] this is also nice https://www.felixcloutier.com/x86/index.html 12:54 <+bridge> [ddnet] https://www.felixcloutier.com/x86/popcnt 12:54 <+bridge> [ddnet] @Learath2 can u do this without intrinsics? 12:54 <+bridge> [ddnet] i guess the compiler can optimize to this 12:56 <+bridge> [ddnet] It can, but it doesnt really very reliably notice the pattern 12:57 <+bridge> [ddnet] https://giannitedesco.github.io/2019/06/15/abusing-add.html 12:57 <+bridge> [ddnet] it does if u know this quick simple trick 12:58 <+bridge> [ddnet] ```c 12:58 <+bridge> [ddnet] unsigned int count_set_bits(unsigned int x) 12:58 <+bridge> [ddnet] { 12:58 <+bridge> [ddnet] unsigned int ret; 12:58 <+bridge> [ddnet] for(ret = 0; x; x &= (x - 1)) 12:58 <+bridge> [ddnet] ret++; 12:58 <+bridge> [ddnet] return ret; 12:58 <+bridge> [ddnet] } 12:58 <+bridge> [ddnet] ``` 13:00 <+bridge> [ddnet] Was just reading it. That's very cute 13:07 <+bridge> [ddnet] :LANAYAYA: 13:23 <+bridge> [ddnet] `__builtin_popcnt(x)` 13:24 <+bridge> [ddnet] http://graphics.stanford.edu/~seander/bithacks.html 13:24 <+bridge> [ddnet] what do you call circuit theory? 13:35 <+bridge> [ddnet] Study of ideal circuits analytically and numerically 13:35 <+bridge> [ddnet] Thevenin equivalent? 13:35 <+bridge> [ddnet] Stuff like nodal analysis, KVL/KCL, thevenin/norton 13:36 <+bridge> [ddnet] https://doc.rust-lang.org/std/primitive.i32.html#method.count_ones 13:36 <+bridge> [ddnet] what's kvl/kcl? 13:37 <+bridge> [ddnet] it doesn't say if it optimizes to intrinsic if available... 13:37 <+bridge> [ddnet] Kirchhoff's voltage and current law 13:38 <+bridge> [ddnet] oh, nobody ever use acronym for those in France 😄 13:38 <+bridge> [ddnet] it will 13:39 <+bridge> [ddnet] also the statement doesn't really make sense. you mean "if it optimizes to the assembly instruction if available" 13:39 <+bridge> [ddnet] People still think it's crazy to invest in cryptocurrencies 13:39 <+bridge> [ddnet] Do you know what is really crazy? 13:39 <+bridge> [ddnet] Sitting on the sidelines when the future of money is literally being built before your eyes. Find out how to earn $ 5,000 weekly online by investing in cryptocurrency? 13:39 <+bridge> [ddnet] Ask me HOW\: 📲 13:39 <+bridge> [ddnet] https://t.me/+GLZ3KxY_woUxZjZk 13:39 <+bridge> [ddnet] (@Chairn) 13:39 <+bridge> [ddnet] Honestly almost all of the class teeechnically boils down to applying KCL and KVL. The hard part is seeing the simplifications, you'll have to do like a dozen variable linear equation otherwise 😄 13:39 <+bridge> [ddnet] yeah, you usually just solve a linear system 13:40 <+bridge> [ddnet] people still think it's crazy to invest in cryptocurrencies 13:40 <+bridge> [ddnet] do you know what is really crazy? 13:40 <+bridge> [ddnet] sitting on the sidelines when the future of money is literally being built before your eyes. find out how to earn $ 5,000 weekly online by investing in cryptocurrency? 13:40 <+bridge> [ddnet] ask me how\: 📲 13:40 <+bridge> [ddnet] https://t.me/+glz3kxy_wouxzjzk 13:40 <+bridge> [ddnet] (@Ryozuki) 13:40 <+bridge> [ddnet] yeah, you usually just solve a linear system, sometimes linear differential equation system 13:40 <+bridge> [ddnet] People still think it's crazy to invest in cryptocurrencies 13:40 <+bridge> [ddnet] Do you know what is really crazy? 13:40 <+bridge> [ddnet] Sitting on the sidelines when the future of money is literally being built before your eyes. Find out how to earn $ 5,000 weekly online by investing in cryptocurrency? 13:40 <+bridge> [ddnet] Ask me HOW\: 📲 13:40 <+bridge> [ddnet] https://t.me/+GLZ3KxY_woUxZjZk 13:40 <+bridge> [ddnet] (@Chairn) 13:40 <+bridge> [ddnet] Atleast the static part that is. It gets harder next week when we start RC and RL circuits and AC steady state the week after thar 13:40 <+bridge> [ddnet] is matrix bot broken? 13:40 <+bridge> [ddnet] i get notification that instantly disappear 13:40 <+bridge> [ddnet] It's probably spam 13:41 <+bridge> [ddnet] Yep, crypto scam spam 13:41 <+bridge> [ddnet] People still think it's crazy to invest in cryptocurrencies 13:41 <+bridge> [ddnet] Do you know what is really crazy? 13:41 <+bridge> [ddnet] Sitting on the sidelines when the future of money is literally being built before your eyes. Find out how to earn $ 5,000 weekly online by investing in cryptocurrency? 13:41 <+bridge> [ddnet] Ask me HOW\: 📲 13:41 <+bridge> [ddnet] https://t.me/+GLZ3KxY_woUxZjZk 13:41 <+bridge> [ddnet] (@Learath2) 13:41 <+bridge> [ddnet] People still think it's crazy to invest in cryptocurrencies 13:41 <+bridge> [ddnet] Do you know what is really crazy? 13:41 <+bridge> [ddnet] Sitting on the sidelines when the future of money is literally being built before your eyes. Find out how to earn $ 5,000 weekly online by investing in cryptocurrency? 13:41 <+bridge> [ddnet] Ask me HOW\: 📲 13:41 <+bridge> [ddnet] https://t.me/+GLZ3KxY_woUxZjZk 13:41 <+bridge> [ddnet] (@Chairn) 13:41 <+bridge> [ddnet] People still think it's crazy to invest in cryptocurrencies 13:41 <+bridge> [ddnet] Do you know what is really crazy? 13:41 <+bridge> [ddnet] Sitting on the sidelines when the future of money is literally being built before your eyes. Find out how to earn $ 5,000 weekly online by investing in cryptocurrency? 13:41 <+bridge> [ddnet] Ask me HOW\: 📲 13:41 <+bridge> [ddnet] https://t.me/+GLZ3KxY_woUxZjZk 13:41 <+bridge> [ddnet] (@Learath2) 13:42 <+bridge> [ddnet] People still think it's crazy to invest in cryptocurrencies 13:42 <+bridge> [ddnet] Do you know what is really crazy? 13:42 <+bridge> [ddnet] Sitting on the sidelines when the future of money is literally being built before your eyes. Find out how to earn $ 5,000 weekly online by investing in cryptocurrency? 13:42 <+bridge> [ddnet] Ask me HOW\: 📲 13:42 <+bridge> [ddnet] https://t.me/+GLZ3KxY_woUxZjZk 13:42 <+bridge> [ddnet] (@Chairn) 13:42 <+bridge> [ddnet] https://rust.godbolt.org/z/7WqYbbEvE 13:42 <+bridge> [ddnet] apparently the default x86_64 target doesn't have popcnt 13:43 <+bridge> [ddnet] you need to have the correct cpu fla 13:43 <+bridge> [ddnet] you need to have the correct cpu flag 13:43 <+bridge> [ddnet] yea, see the above link 13:44 <+bridge> [ddnet] how do i change optimization level? -O3 says error there 13:45 <+bridge> [ddnet] --opt-level=3 13:45 <+bridge> [ddnet] People still think it's crazy to invest in cryptocurrencies 13:45 <+bridge> [ddnet] Do you know what is really crazy? 13:45 <+bridge> [ddnet] Sitting on the sidelines when the future of money is literally being built before your eyes. Find out how to earn $ 5,000 weekly online by investing in cryptocurrency? 13:45 <+bridge> [ddnet] Ask me HOW\: 📲 13:45 <+bridge> [ddnet] https://t.me/+GLZ3KxY_woUxZjZk 13:45 <+bridge> [ddnet] (@Chairn) 13:45 <+bridge> [ddnet] People still think it's crazy to invest in cryptocurrencies 13:45 <+bridge> [ddnet] Do you know what is really crazy? 13:45 <+bridge> [ddnet] Sitting on the sidelines when the future of money is literally being built before your eyes. Find out how to earn $ 5,000 weekly online by investing in cryptocurrency? 13:45 <+bridge> [ddnet] Ask me HOW\: 📲 13:45 <+bridge> [ddnet] https://t.me/+GLZ3KxY_woUxZjZk 13:45 <+bridge> [ddnet] (@heinrich5991) 13:45 <+bridge> [ddnet] People still think it's crazy to invest in cryptocurrencies 13:45 <+bridge> [ddnet] Do you know what is really crazy? 13:45 <+bridge> [ddnet] Sitting on the sidelines when the future of money is literally being built before your eyes. Find out how to earn $ 5,000 weekly online by investing in cryptocurrency? 13:45 <+bridge> [ddnet] Ask me HOW\: 📲 13:45 <+bridge> [ddnet] https://t.me/+GLZ3KxY_woUxZjZk 13:45 <+bridge> [ddnet] (@Chairn) 13:45 <+bridge> [ddnet] uh, compilation failed 13:46 <+bridge> [ddnet] People still think it's crazy to invest in cryptocurrencies 13:46 <+bridge> [ddnet] Do you know what is really crazy? 13:46 <+bridge> [ddnet] Sitting on the sidelines when the future of money is literally being built before your eyes. Find out how to earn $ 5,000 weekly online by investing in cryptocurrency? 13:46 <+bridge> [ddnet] Ask me HOW\: 📲 13:46 <+bridge> [ddnet] https://t.me/+GLZ3KxY_woUxZjZk 13:46 <+bridge> [ddnet] (@Chairn) 13:46 <+bridge> [ddnet] error: Unrecognized option: 'opt- 13:46 <+bridge> [ddnet] Hey 👋 13:46 <+bridge> [ddnet] dammit, this guy is stubborn 13:46 <+bridge> [ddnet] error: Unrecognized option: 'opt-level' 13:46 <+bridge> [ddnet] People still think it's crazy to invest in cryptocurrencies 13:46 <+bridge> [ddnet] Do you know what is really crazy? 13:46 <+bridge> [ddnet] Sitting on the sidelines when the future of money is literally being built before your eyes. Find out how to earn $ 5,000 weekly online by investing in cryptocurrency? 13:47 <+bridge> [ddnet] Ask me HOW\: 📲 13:47 <+bridge> [ddnet] https://t.me/+GLZ3KxY_woUxZjZk 13:47 <+bridge> [ddnet] (@Chairn) 13:48 <+bridge> [ddnet] Did someone ping me 13:48 <+bridge> [ddnet] ah nvm 13:48 <+bridge> [ddnet] @Chairn -C opt-level=3 13:51 <+bridge> [ddnet] Hello my name is Bobby you how are you doing 13:51 <+bridge> [ddnet] People still think it's crazy to invest in cryptocurrencies 13:51 <+bridge> [ddnet] Do you know what is really crazy? 13:51 <+bridge> [ddnet] Sitting on the sidelines when the future of money is literally being built before your eyes. Find out how to earn $ 5,000 weekly online by investing in cryptocurrency? 13:51 <+bridge> [ddnet] Ask me HOW\: 📲 13:51 <+bridge> [ddnet] https://t.me/+GLZ3KxY_woUxZjZk 13:52 <+bridge> [ddnet] can we kick this guy out of matrix? 13:52 <+bridge> [ddnet] Stfu bobby 13:52 <+bridge> [ddnet] We don't want to invest in crypto 13:52 <+bridge> [ddnet] I invest in rust 13:52 <+bridge> [ddnet] :bluekitty: 13:52 <+bridge> [ddnet] People still think it's crazy to invest in cryptocurrencies 13:52 <+bridge> [ddnet] Do you know what is really crazy? 13:52 <+bridge> [ddnet] Invest in cryptocurrencies 13:53 <+bridge> [ddnet] @uwu nice pfp 13:53 <+bridge> [ddnet] 🧌 13:53 <+bridge> [ddnet] Lol 13:54 <+bridge> [ddnet] troll emoji 13:54 <+bridge> [ddnet] :troll: 13:54 <+bridge> [ddnet] I wrote one rust program, now i can legally set ferris on my pfp 13:54 <+bridge> [ddnet] good 13:54 <+bridge> [ddnet] Spread the knowledge 13:54 <+bridge> [ddnet] https://tenor.com/view/solaire-darksouls-praise-the-sun-gif-5934057 13:57 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/1037349733863280642/in_rust_we_trust.jpg 14:29 <+bridge> [ddnet] Lol nice one 14:31 <+bridge> [ddnet] #6000 btw 😮 14:31 <+bridge> [ddnet] https://github.com/ddnet/ddnet/pull/6000 14:31 <+bridge> [ddnet] Poggers 14:39 <+bridge> [ddnet] There should be a big party with live music, expensive food and casino when we hit #10000 15:13 <+bridge> [ddnet] Im reading that website more and more 15:13 <+bridge> [ddnet] You rly can go down a rabbit hole to optimize stuff 15:13 <+bridge> [ddnet] Software prefetching looks cool but hard to know when to use 15:14 <+bridge> [ddnet] https://en.algorithmica.org/hpc/cpu-cache/prefetching/ 15:19 <+bridge> [ddnet] so we can optimize ddnet even further? 15:20 <+bridge> [ddnet] https://www.agner.org/forum/viewtopic.php?t=41 15:20 <+bridge> [ddnet] @Voxel it can always be done 15:20 <+bridge> [ddnet] Thing is, optimizing code is one of the hardest things a programmer can do 15:20 <+bridge> [ddnet] iirc 15:21 <+bridge> [ddnet] ah 15:22 <+bridge> [ddnet] another interesting web https://www.agner.org/optimize/ 15:26 <+bridge> [ddnet] there is still lot of potential if we'd use vulkan better 😄 15:26 <+bridge> [ddnet] 15:26 <+bridge> [ddnet] could eliminate most useless memcpys that happen in the frontend 15:27 <+bridge> [ddnet] itd be funny when we finally rls a optimization update and now the game runs like 5x faster 15:27 <+bridge> [ddnet] or smth 15:27 <+bridge> [ddnet] vulkan did 2.5x perf on desktop GPUs 15:27 <+bridge> [ddnet] isnt that a big step already xd 15:28 <+bridge> [ddnet] not for me xd 15:28 <+bridge> [ddnet] desktop gpus 15:29 <+bridge> [ddnet] but u a special case anyway xD 15:29 <+bridge> [ddnet] when do u finally try x11 15:29 <+bridge> [ddnet] come to the dark side 15:30 <+bridge> [ddnet] i don 't wanna betray wayland 15:30 <+bridge> [ddnet] i'm using wayland only for 2.5 yrs 15:30 <+bridge> [ddnet] soon™️ 15:30 <+bridge> [ddnet] https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/65 15:30 <+bridge> [ddnet] 15:30 <+bridge> [ddnet] i'll switch to wayland too 15:31 <+bridge> [ddnet] but since i already tested it and had even more FPS i'm not in your weird situation 😄 15:32 <+bridge> [ddnet] there was a huge RADV perf improvement lately for cheap draw calls. maybe its the perfect usecase for integrated cards 15:36 <+bridge> [ddnet] ```cpp 15:36 <+bridge> [ddnet] int gcd(int a, int b) { 15:36 <+bridge> [ddnet] while (b) b ^= a ^= b ^= a %= b; 15:36 <+bridge> [ddnet] return a; 15:36 <+bridge> [ddnet] } 15:36 <+bridge> [ddnet] ``` 15:36 <+bridge> [ddnet] funny 15:36 <+bridge> [ddnet] Btw, why you have `.gitlab` folder in github repo and there is no gitlab repo of it 15:36 <+bridge> [ddnet] i bet 10 cents it was chillerdragon 15:37 <+bridge> [ddnet] It was 15:37 <+bridge> [ddnet] lmao 15:37 <+bridge> [ddnet] guess for his own repos 15:37 <+bridge> [ddnet] :justatest: 15:39 <+bridge> [ddnet] I did some profiling recently and the result was that `recvfrom` was the main culprit (#1996), optimising anything else would probably not bring great returns 15:39 <+bridge> [ddnet] https://github.com/ddnet/ddnet/issues/1996 15:44 <+bridge> [ddnet] clonning ddnet repo for mods are kinda issue, you can just download and upload it again, its kinda disturbing. You can make only one fork of repo, its not a solution, so maybe making ddnet a template repo a good idea, or maybe other repo with only stable vesions. I created repo like this on my own and its incredibly handy to use 15:44 <+bridge> [ddnet] https://github.com/AnimeIdiots/ddnet-template/ 15:45 <+bridge> [ddnet] Clone ddnet and create branches 15:45 <+bridge> [ddnet] Each branch is a mod 15:45 <+bridge> [ddnet] for 64p server it would probs be worth to make the gamecore not doing O(n²) all the time 15:45 <+bridge> [ddnet] 15:45 <+bridge> [ddnet] also we use distance, instead of distance_squared (which COULD cause physic changes), but purely mathematically, isnt different 15:45 <+bridge> [ddnet] Solved 15:45 <+bridge> [ddnet] https://media.discordapp.net/attachments/929470419696758785/969254910006808586/0DD38299-AC6D-4511-9BD2-F4AEE8CD3177.gif 15:45 <+bridge> [ddnet] @uwu someone already made a ddnet mod template 15:45 <+bridge> [ddnet] Search teefrake 15:45 <+bridge> [ddnet] Teeframe* 15:46 <+bridge> [ddnet] On github 15:46 <+bridge> [ddnet] https://github.com/teeframe/ddnet-skeleton 15:46 <+bridge> [ddnet] this one i suppose? 15:46 <+bridge> [ddnet] https://github.com/teeframe/ddnet-skeleton-readme 15:46 <+bridge> [ddnet] and rly good documented 15:46 <+bridge> [ddnet] here 15:46 <+bridge> [ddnet] yes that 15:46 <+bridge> [ddnet] the readme tells u more info 15:48 <+bridge> [ddnet] when do we start with ddnet 2.0 15:48 <+bridge> [ddnet] with nim? :greenthing: 15:48 <+bridge> [ddnet] with bash 15:49 <+bridge> [ddnet] i read few years ago in deen's blog about ddrace 2.0 on nim, couldnt find it anymore (maybe it wasnt deen's blog) 15:49 <+bridge> [ddnet] i think rust would be more realistic 15:49 <+bridge> [ddnet] Rust 15:49 <+bridge> [ddnet] but maybe in 20 years when we start there are better languages anyway 15:50 <+bridge> [ddnet] Xd 15:50 <+bridge> [ddnet] carbon 15:50 <+bridge> [ddnet] :troll: 15:50 <+bridge> [ddnet] maybe simply GPU side only 😉 15:51 <+bridge> [ddnet] Carbon this 15:51 <+bridge> [ddnet] :fuckyousnail: 15:51 <+bridge> [ddnet] in 200 years any word you say is a programming language 15:52 <+bridge> [ddnet] c the rusty carbon over there? 15:52 <+bridge> [ddnet] Tee lang :poggers2: 15:52 <+bridge> [ddnet] teeworlds emotes are a language too 15:53 <+bridge> [ddnet] teeworlds chat is best ide 15:54 <+bridge> [ddnet] btw i saw Headshot's server, he recompiled it and applied changes right in game, you just lagged for few seconds 15:54 <+bridge> [ddnet] :justatest: 15:54 <+bridge> [ddnet] yes 15:54 <+bridge> [ddnet] jet-live e.g. for linux 15:54 <+bridge> [ddnet] can do that 15:55 <+bridge> [ddnet] https://github.com/ddovod/jet-live 15:55 <+bridge> [ddnet] but for e.g. classes u need to write your own reload logic.. since it obviously cannot tell what the new class layout will change runtime wise 15:56 <+bridge> [ddnet] but for simply UI, physic changes u can use it 😄 15:56 <+bridge> [ddnet] basically everything that changes per frame 15:59 <+bridge> [ddnet] c++ stl smh 15:59 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/1037380500697915412/unknown.png 16:01 <+bridge> [ddnet] did he also test with lto + ofast + static c++ 16:01 <+bridge> [ddnet] else its a lie 16:02 <+bridge> [ddnet] give me url 16:03 <+bridge> [ddnet] https://en.algorithmica.org/hpc/algorithms/argmin/ 16:03 <+bridge> [ddnet] this guy knows a lot 16:08 <+bridge> [ddnet] mhh godbolt + lto is struggle 16:08 <+bridge> [ddnet] i cannot read it 16:08 <+bridge> [ddnet] but without LTO, the asm is defs bit longer for std::min_element 16:08 <+bridge> [ddnet] https://godbolt.org/z/fW5Woha8Y 16:08 <+bridge> [ddnet] cannot say what happens perf wise tho 16:11 <+bridge> [ddnet] Hi, I'm planning to attend FOSDEM 2023 on the first Februar weekend (https://fosdem.org/2023/). Is anyone interested in meeting there? I'm also considering to submit a DDNet stand request (https://fosdem.org/2023/news/2022-09-26-stands-cfp/). 16:13 <+bridge> [ddnet] ohh 16:14 <+bridge> [ddnet] well its too early for me to know cuz i may change jobs soon but it would be cool to go 16:17 <+bridge> [ddnet] cool link. don't have time to read it right now, I'll open a tab ^^ 16:18 <+bridge> [ddnet] nice 16:18 <+bridge> [ddnet] is that even defined behavior? 16:18 <+bridge> [ddnet] C++17 onwards yes 16:18 <+bridge> [ddnet] Iirc 16:19 <+bridge> [ddnet] Nice, I'd be happy to meet you there 😁 Let's see how it goes. 16:19 <+bridge> [ddnet] > You can even write the body of the loop as this confusing one-liner — and it will even compile without causing undefined behavior warnings since C++17 16:19 <+bridge> [ddnet] yeah 16:20 <+bridge> [ddnet] ```cpp 16:20 <+bridge> [ddnet] int gcd(int a, int b) { 16:20 <+bridge> [ddnet] if (a == 0) return b; 16:20 <+bridge> [ddnet] if (b == 0) return a; 16:20 <+bridge> [ddnet] 16:20 <+bridge> [ddnet] int az = __builtin_ctz(a); 16:20 <+bridge> [ddnet] int bz = __builtin_ctz(b); 16:20 <+bridge> [ddnet] int shift = std::min(az, bz); 16:20 <+bridge> [ddnet] b >>= bz; 16:20 <+bridge> [ddnet] 16:20 <+bridge> [ddnet] while (a != 0) { 16:20 <+bridge> [ddnet] a >>= az; 16:20 <+bridge> [ddnet] int diff = b - a; 16:20 <+bridge> [ddnet] az = __builtin_ctz(diff); 16:20 <+bridge> [ddnet] b = std::min(a, b); 16:20 <+bridge> [ddnet] a = std::abs(diff); 16:20 <+bridge> [ddnet] } 16:20 <+bridge> [ddnet] 16:20 <+bridge> [ddnet] return b << shift; 16:20 <+bridge> [ddnet] } 16:20 <+bridge> [ddnet] ``` 16:20 <+bridge> [ddnet] this is one of the fastest gcds 16:21 <+bridge> [ddnet] Brussels is close enough that looks cheap to travel xS 16:21 <+bridge> [ddnet] Brussels is close enough that looks cheap to travel xD 16:28 <+bridge> [ddnet] Sounds similar to https://github.com/teeframe/ddnet-skeleton 16:30 <+bridge> [ddnet] Yep 16:30 <+bridge> [ddnet] deen hasnt scrolled :monkalaugh: 16:31 <+bridge> [ddnet] Yeah, too late 😄 16:31 <+bridge> [ddnet] well, i didnt know of this, but still need to manually create repo, template will do everything for you 🥹 16:31 <+bridge> [ddnet] Would be interesting if a few people are interested in going. I'm not sure yet if I'll go 16:50 <+bridge> [ddnet] Great to hear, lets see if more want to go 🙂 16:55 <+bridge> [ddnet] I'm considering it 16:59 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/1037395626666770502/test.png 17:00 <+bridge> [ddnet] `cargo install teemasterparser` 17:58 <+bridge> [ddnet] can you exclude the ddnet, kog servers? 18:18 <+bridge> [ddnet] Notbyet 18:18 <+bridge> [ddnet] Yet 18:48 <+bridge> [ddnet] Yknow I wonder, What if we created an Enum or something to list all the font icon sy.bols we use, so it's more readable in the code 18:48 <+bridge> [ddnet] Yknow I wonder, What if we created an Enum or something to list all the font icon symbols we use, so it's more readable in the code 19:15 <+bridge> [ddnet] @deen i wrote in the OBS discord for now, if they consider it a bug i'll also create an issue there 19:28 <+bridge> [ddnet] https://github.com/obsproject/obs-studio/issues/7708 19:44 <+bridge> [ddnet] @Learath2 https://www.reddit.com/r/DotA2/comments/ykadjv/dota_1x6_is_being_attacked_by_hackers_i_need_your/ 19:45 <+bridge> [ddnet] valve engineers 19:45 <+bridge> [ddnet] top notch kekw 19:48 <+bridge> [ddnet] nah, hackers are top notch 19:51 <+bridge> [ddnet] That's an off 19:51 <+bridge> [ddnet] Oof* 22:07 <+bridge> [ddnet] Yo yopstar I wanna see you on fosdem 22:11 <+bridge> [ddnet] wtf even is that 22:19 <+bridge> [ddnet] https://fosdem.org/2023/ 22:23 <+bridge> [ddnet] doesnt sound very cool xD 22:23 <+bridge> [ddnet] 8000hackers. and i dont use rust 22:29 <+bridge> [ddnet] read the book quick 22:30 <+bridge> [ddnet] i cant read 22:35 <+bridge> [ddnet] 😦 22:36 <+bridge> [ddnet] dont be sad, i just wait for godot 4 22:36 <+bridge> [ddnet] yeah me too 22:36 <+bridge> [ddnet] before you learn to read? 22:36 <+bridge> [ddnet] have an project in mind? 22:37 <+bridge> [ddnet] i dont need to read, i feel it 22:37 <+bridge> [ddnet] kinda like 3d teeworlds I kinda started it in 3 but code is too messy so I am gonna continue it in 4 22:37 <+bridge> [ddnet] nice 22:40 <+bridge> [ddnet] I rqed at the networking stage xD but I had made a console start ui (not much tbh) 23:00 <+bridge> [ddnet] is it hard? 23:00 <+bridge> [ddnet] i actually was thinking about a multiplayer game, but it would defs require to be tick based. I dunno how hard it is with that engine 23:01 <+bridge> [ddnet] Feel it in your bones 23:24 <+bridge> [ddnet] Only way how you can fix bug in valve games as a community member: 23:24 <+bridge> [ddnet] Step 1: Study programming 23:24 <+bridge> [ddnet] Step 2: Get a job in Valve 23:24 <+bridge> [ddnet] Step 3: Make update you wanted 23:24 <+bridge> [ddnet] Step 4: Quit 23:24 <+bridge> [ddnet] Ez 23:25 <+bridge> [ddnet] If that would work. Why didn't somebody do that to port csgo to source engine 2 yet xd 23:42 <+bridge> [ddnet] You need to cooperate and communicate with other double agents but you lose those abilities on step 1