00:27 < bridge> use windows u noob 01:17 < bridge> #developer rule #1: don't mention windows as usable operating system 01:17 < bridge> 💀 03:16 < bridge> is there a way to ensure drawing is clipped inside of its corner radius 03:16 < bridge> is there a way to ensure drawing is clipped inside of its parent's corner radius 03:16 < bridge> is there a way to ensure drawing of a rect is clipped inside of its parent's corner radius 03:18 < bridge> so i can avoid this 03:18 < bridge> https://cdn.discordapp.com/attachments/293493549758939136/1092981483213426789/image.png 04:33 < bridge> is there a way to ensure drawing of a rect is clipped inside of its parent scroll region’s corner radius 04:38 < bridge> IGraphics::ClipEnable 04:38 < bridge> Or smth like that 04:58 < bridge> thanks 05:02 < bridge> unfortunately this does not consider corner radius 08:39 < bridge> I think we can only have rectangular clips. Properly handling round corners probably requires some feature that's not available in gl1 08:41 < bridge> why that, no bugs :giga_chad: 08:41 < bridge> (don't ban me) 09:15 < bridge> Oh oke 12:27 < bridge> i just reduced both radii 12:27 < bridge> Linux users when their in a room with windows 12:27 < bridge> Linux users when they’re in a room with windows 12:28 < bridge> technically it’s wrong but not wrong enough to be super noticeable 15:24 < bridge> the world is wrong 15:24 < bridge> even in llvm 15:25 < bridge> i depend on C for malloc 15:25 < bridge> god help me get liberated from C 15:27 < bridge> But doesn't it depend on the os 15:29 < bridge> @Jupeyy_Keks making raw sys calls via llvm-ir is a big bother 15:29 < bridge> idk how actually but its possible probs 15:30 < bridge> even rust, uses libc for the bare ops 15:30 < bridge> such as malloc 15:30 < bridge> i think golang doesnt depend on libc 15:30 < bridge> Let's create a new os 15:30 < bridge> but they had bugs due to this 15:30 < bridge> cuz its not easy to do 15:43 < bridge> maybe a different sort of wrong 15:43 < bridge> but still wrong 15:43 < bridge> previously i had the outer rect at 10.0 radius & the inner ones at 5.0, with 5.0 margins 15:44 < bridge> i've halved the radii but not the margins 15:44 < bridge> which is a no-no for uniformity's sake 15:45 < bridge> but it is better than this 15:45 < bridge> https://cdn.discordapp.com/attachments/293493549758939136/1093169508526588006/image.png 15:45 < bridge> pretty much anything is better than that 16:05 < bridge> @Ryozuki https://faultlore.com/blah/c-isnt-a-language/ 16:06 < bridge> i believe it was already posted here though 16:12 < bridge> i did 16:12 < bridge> this is making me cringe pretty hard 16:14 < bridge> Nani 16:14 < bridge> what is 16:14 < bridge> this girl or guy knows more c than u 16:14 < bridge> the contents of this post 16:14 < bridge> and probably true 16:14 < bridge> but that doesn't mean their delivery isn't obnoxious 16:15 < bridge> truth hurts 16:15 < bridge> I rarely see **nee** projects written in c anymore 16:15 < bridge> she is quite a big contributor 16:15 < bridge> she wrote this https://doc.rust-lang.org/nightly/nomicon/ 16:15 < bridge> I rarely see **new** projects written in c anymore 16:16 < bridge> "Master's Thesis: You Can't Spell Trust Without Rust" 16:16 < bridge> lmaoo true 16:16 < bridge> Xd 16:16 < bridge> The rust gang 16:17 < bridge> i wonder if was her who wrote the pointer provenance thing 16:17 < bridge> i forgot 16:17 < bridge> it was a interesting blog 16:17 < bridge> yep 16:17 < bridge> https://faultlore.com/blah/fix-rust-pointers/ 16:17 < bridge> https://faultlore.com/blah/tower-of-weakenings/ 16:19 < bridge> and now i got derailed on what iw as doing 16:19 < bridge> oh I know that furry 16:28 < bridge> https://cdn.discordapp.com/attachments/293493549758939136/1093180347539275978/image.png 16:28 < bridge> what does this mean 16:28 < bridge> the ramp 16:29 < bridge> that's an error lol 16:29 < bridge> a bug 16:29 < bridge> fucked up format on a float 16:30 < bridge> unrelated q, it's kinda hard to tell with the config macros. how big are config strings & are they malloc'd or static size 16:30 < bridge> for sizeof() purposes 16:31 < bridge> static size, every MACRO_CONFIG_STR defines the length 16:31 < bridge> so sizeof works 16:32 < bridge> https://github.com/ddnet/ddnet/blob/e47f54d168e89ea2d2c68ae5ecb156e2ea89c8d5/src/engine/shared/config.h#L28 16:33 < bridge> thanks 16:42 < bridge> its from tune velramp_curvature 0 xd, but it also makes you very glitchy and move at like 5 fps i wonder why though 16:43 < bridge> do you want to know what the ramp is used for or why it looks like that 16:43 < bridge> this is the use 16:43 < bridge> `DisplaySpeedX *= VelocityRamp(VelspeedLength, m_pClient->m_aTuning[g_Config.m_ClDummy].m_VelrampStart, m_pClient->m_aTuning[g_Config.m_ClDummy].m_VelrampRange, m_pClient->m_aTuning[g_Config.m_ClDummy].m_VelrampCurvature);` 16:43 < bridge> this is the use 16:43 < bridge> ```cpp 16:43 < bridge> float DisplaySpeedX = VelspeedX / 32; 16:43 < bridge> DisplaySpeedX *= VelocityRamp(VelspeedLength, m_pClient->m_aTuning[g_Config.m_ClDummy].m_VelrampStart, m_pClient->m_aTuning[g_Config.m_ClDummy].m_VelrampRange, m_pClient->m_aTuning[g_Config.m_ClDummy].m_VelrampCurvature); 16:43 < bridge> ``` 16:44 < bridge> why its 5 fps movement 16:44 < bridge> idk what u mean 16:44 < bridge> under what circumstances is it going 5 fps 16:44 < bridge> well if u have ramp curvature at 0 and start moving/jumping around 16:45 < bridge> why do u have it at 0 16:45 < bridge> so i would see what happens 16:45 < bridge> just curious 16:46 < bridge> in the curvature function 16:46 < bridge> `return 1.0f / powf(Curvature, (Value - Start) / Range);` 16:46 < bridge> i'd assume having Curvature at near-zero makes the exponent way more expensive 16:47 < bridge> and this is being called every frame 17:12 < bridge> I love how most arguments against C boil down to "I invoked UB, it did something unexpected, send hewp" 17:12 < bridge> Just from how this line is written I can tell this person isn't a C enjoyer `struct Meow* p_cat = (struct Meow*)malloc(sizeof(struct Meow));` 17:13 < bridge> yeah 17:13 < bridge> `struct Meow *p_cat = malloc(sizeof *p_cat);` is how any C enjoyer would put it 17:17 < bridge> > All someone has to do is strip the build of -Werror -Wall -Wpedantic and you’ll be off to the races in committing multithreading, read-only, and hardware register crimes. 17:17 < bridge> No sane C developer goes without at least `-Wall` 17:18 < bridge> I honestly have grown tired of these articles that just hold it wrong and say it's bad. We are here to code, not pentest compilers. Yes if you don't use the safeties provided by the compiler you can make mistakes, who would have guessed 17:20 < bridge> Learath you should start your own blog then praising C 17:21 < bridge> I would do a better job as a critique, there are things that are bad about C, no need to slander it 17:23 < bridge> Though I did enjoy the actual idea in this article, yes C as an FFI isn't the greatest thing ever. I did not enjoy the articles it linked to 17:45 < bridge> ``` 17:45 < bridge> llvm/source/llvm-project-16.0.0.src/llvm/include/llvm/ADT/SmallVector.h:298: llvm::SmallVectorTemplateCommon::const_reference llvm::SmallVectorTemplateCommon>::operator[](llvm::SmallVectorTemplateCommon::size_type) const [T = std::optional]: Assertion `idx < size()' failed. 17:45 < bridge> Aborted 17:45 < bridge> ``` 17:45 < bridge> constant pain in life 18:36 < bridge> i fixed this but foudn smth even better 18:36 < bridge> `error: 'llvm.getelementptr' op expected as many dynamic indices as specified in 'rawConstantIndices'` 18:37 < bridge> imagine having docs kek 18:40 < bridge> yeah fix llvm pls 19:16 < bridge> are there enums for mouse buttons in the UI 19:16 < bridge> all ui mouse button fns take raw ints 19:26 < bridge> no, there's no enum for UI mouse buttons yet 19:37 < bridge> Hey can i change map from downloadmaps? 19:37 < bridge> like "sv_map downloadedmaps/testmap.map" 20:06 < bridge> well u can edit the storage.cfg 20:06 < bridge> 20:06 < bridge> add_path downloadedmaps 20:06 < bridge> well u can edit the storage.cfg 20:06 < bridge> 20:06 < bridge> add_path /downloadedmaps 20:06 < bridge> and then change_map testmap 20:10 < bridge> mhh not optimal solution for TaterClient 😄 i will look forward it 20:10 < bridge> mhh not optimal solution for TaterClient 😄 i will look forward it but thanks ❤️ 20:25 < bridge> should add gametype register for highlightings xd 20:35 < bridge> https://cdn.discordapp.com/attachments/293493549758939136/1093242575722381444/62292e67f9e04cee.png 20:37 < bridge> Allman for every developer 20:39 < bridge> allman 🔥 20:41 < bridge> kernighan & ritchie 20:41 < bridge> clang-format google preset 20:41 < bridge> agreed 20:41 < bridge> calling ryozuki 20:42 < bridge> I use a modified form of K&R 20:42 < bridge> K&R, no huddled else and no opening brace on function definitions 20:42 < bridge> kind of trolling :troll: 20:53 < bridge> i kind of agree with the pic 20:54 < bridge> k&r works nice in rust 20:54 < bridge> the holy grail is just rustfmt anyway 20:54 < bridge> I bet you just defer to clippy, weak willed 20:54 < bridge> no need for names 20:54 < bridge> no, for formatting its rustfmt 20:54 < bridge> clippy is warnings 20:55 < bridge> True 20:55 < bridge> clippy with pedantic warnings as errors 20:55 < bridge> base rust format config 20:55 < bridge> https://github.com/edg-l/sitewriter/blob/master/src/lib.rs#L68-L73 20:56 < bridge> ```rust 20:56 < bridge> #![forbid(unsafe_code)] 20:56 < bridge> #![deny(missing_docs)] 20:56 < bridge> #![deny(warnings)] 20:56 < bridge> #![deny(clippy::nursery)] 20:56 < bridge> #![deny(clippy::pedantic)] 20:56 < bridge> #![deny(clippy::all)] 20:56 < bridge> ``` 21:06 < bridge> I once did a wrapper class for vector, so it throws an exception what the index, size and type of vector was for these kind of pains 21:06 < bridge> I once did a wrapper class for vector, so it throws an exception what the index, size and type of vector was for these kind of pains 21:06 < bridge> hack llvm for that 21:06 < bridge> but i found the solution 21:07 < bridge> no, missing @noby 's coding style 21:07 < bridge> and the assert rly didnt made it easier 21:07 < bridge> its cuz i was returning a value while the function signature that noo return value 21:07 < bridge> or smth like that 21:07 < bridge> its cuz i was returning a value while the function signature had no return value 21:07 < bridge> in the generated MLIR code 21:16 < bridge> who can come race on multeasy map 21:17 < bridge> why 21:17 < bridge> This is where we talk about the develoupment of the game. If you're looking for someone to play with, feel free to request in #looking-for-group 21:32 < bridge> <судный день.> good idea asking for racing on multeasy in #developer 21:32 < bridge> i already told him that 21:34 < bridge> <судный день.> i wanted to joke but as you can see my sense of humour is trash 21:35 < bridge> sorry my bad 21:35 < bridge> LOL 21:35 < bridge> <судный день.> no its alright 21:49 < bridge> https://dukope.com/devlogs/papers-please/mobile/