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-05-30 00:00:00Z and 2023-05-31 00:00:00Z
Avatar
Avatar
Learath2
Ah I think I get it. It calls your function, then destroys the unique_ptr immediately because now Rust took ownership
.release() doesn't destroy the pointer, it's more like getting the raw pointer out of the unique pointer and forgetting that it was a unique_ptr (and not calling its destructor)
Avatar
Yeah, not the best word choice from mr
00:11
me*
Avatar
a little irritating that clang-tidy doesn't distinguish between const and constexpr variable definitions when using the readability-identifier-naming checks
02:28
because i want a constexpr variable definition to be named like a macro, in UPPER_CASE but i want const variable definitions (which i only use over constexpr when it's not a compile-time evaluable expression) to be named like normal variables (CamelCase) (edited)
02:46
New guys code be like: I'm gonna ignore the key to audioevent mapping and make it order dependant instead
02:48
Sorry for off-topic, haven't been so disappointed by some code in quite a while, had to find somewhere to complaint before i yell at colleagues.
Avatar
that's obnoxious
04:15
there's not even an enumeration for the sound names
04:15
you're just supposed to guess?
Avatar
ack another thing clang-tidy readability-identifier-naming doesn't consider is lambdas
04:29
i name them like functions but it wants to name them like variables
Avatar
ok, just teached our QA guy how to use C# reflection to grab types without an assembly reference and I'm regretting it
04:42
Should've just said i don't know
04:43
The QA guy is a vim user (well, vim plugin in Jetbrians' rider)
04:43
So that's cool
Avatar
fakevim or whatever
Avatar
idk, I don't use vim
Avatar
Avatar
Learath2
No reason not to, we were offered to be shown the code KoG has, but I don't think they intend to go open source anytime soon, so they'll either have to extract the moving tiles part or show someone they trust that has time to implement it the code. Overall a lot of moving parts that just haven't aligned yet, that's all
Shouldn't be that hard knowing it's quad based
Avatar
Avatar
TsFreddie
Sorry for off-topic, haven't been so disappointed by some code in quite a while, had to find somewhere to complaint before i yell at colleagues.
Haha, do note that this channel is logged though πŸ˜„
gg 2
Avatar
I know.
07:06
poggers2
Avatar
I use this channel for work too. When I don't know how to do X I write "I'm disappointed that Rust doesn't support X", and the Rust fans will help me find the idiomatic solution πŸ˜„
issou 1
Avatar
You are gaming the system
Avatar
Avatar
deen
I use this channel for work too. When I don't know how to do X I write "I'm disappointed that Rust doesn't support X", and the Rust fans will help me find the idiomatic solution πŸ˜„
ive been tricked
07:10
but well i use it too for work
07:11
e g const cast from ystday xd
Avatar
where are you using that
07:11
beware
Avatar
read backlog
07:11
i asked cuz i know its dangerous
07:11
but i wont explain again xd
Avatar
justatest scrolling
Avatar
Avatar
Ryozuki
@Learath2 when is const_cast used?
.
07:12
@Ewan
07:14
yeah that’s pretty much it
Avatar
Catxplosion how do I stop myself from working 16hours day
Avatar
Avatar
TsFreddie
Catxplosion how do I stop myself from working 16hours day
Find a hobby/girlfriend
Avatar
while still meeting impossible ddl*
07:16
justatest
Avatar
I'm only speaking from experience πŸ˜„
Avatar
also yes, a bf would be better
Avatar
Where do you get a hobby
Avatar
Switch to a western company with a more reasonable work culture. I haven't had any deadlines for a while. But I'm not sure how easy it is to work for them when living in China
07:18
i'm fine with ddl
07:18
but project manager doesn't understand how long things take
07:19
we submit estimate, by the time it reaches the boss it was cut in half
Avatar
"This is a huge undertaking, I haven't done this before, so can't estimate the time. If you have to write something down, write 6 months."
Avatar
ye, and we got 3
07:19
hdog
Avatar
I assumed you write 6 months when it will actually take 1
Avatar
well
07:20
then I should write 2 years
Avatar
Avatar
TsFreddie
also yes, a bf would be better
is it frowned upon to be gay in china?
07:21
maybe
07:21
so far everyone seems to be okay with it
Avatar
can u legally marry
Avatar
thats the answer i guess
07:22
i've heard there's a hack to just get the gov to register each other as the other's legal guardian
Avatar
Avatar
deen
Find a hobby/girlfriend
whyd u have to do him like that
Avatar
oh btw i have a boyfriend now
07:23
not that exciting tho cuz we are in separate cities, and have only met twice.
πŸ˜ƒ 1
07:24
i need a job
07:24
or a hobby
07:24
or a gf any works
Avatar
Avatar
TsFreddie
oh btw i have a boyfriend now
Cool, congrats!
07:24
xd
07:24
i got a job and a hobby tho BASEDHALT
Avatar
something something sigma male
Avatar
i dont have either
07:25
justatest
Avatar
how old r u
Avatar
16
07:25
maybe too early
Avatar
you hobby is school
07:25
or job
07:25
pick
07:26
nobody in llvm server responded to my clang tidy questions yet
07:27
it is unconsciously keeping me from going to bed
Avatar
Avatar
Ewan
or a hobby
make server mod
Avatar
ws-client BOT 2023-05-30 07:27:22Z
<JStar> www.google.com
Avatar
?
Avatar
Avatar
TsFreddie
make server mod
i can make code my job or hobby but not both
Avatar
ws-client BOT 2023-05-30 07:27:47Z
<JStar> all clang-tidy information u need
Avatar
ah bummer
07:27
i did
Avatar
ws-client BOT 2023-05-30 07:27:50Z
<JStar> is in the internet
Avatar
oh i thought that was a bot advertising some site
Avatar
Avatar
ws-client
<JStar> all clang-tidy information u need
lol? Not even docs say that’s why i ask
Avatar
ws-client BOT 2023-05-30 07:28:07Z
<JStar> yeah let's make google great again xd
07:30
I want to leave the house
07:30
but idk where to go
Avatar
ws-client BOT 2023-05-30 07:31:08Z
<JStar> shopping
07:33
<ChillerDragon> https://duckduckgo.com/ *
The Internet privacy company that empowers you to seamlessly take control of your personal information online, without any tradeoffs.
07:34
<ChillerDragon> google is spyware
07:34
<JStar> duckduckgo is also american
07:34
A buggy search engine. Contribute to BugBugGo/BugBugGo development by creating an account on GitHub.
07:34
<ChillerDragon> then use bugbuggo
07:34
<ChillerDragon> its german
07:34
<JStar> also german
07:34
<ChillerDragon> :tree:
07:34
<JStar> but they use bing backend
07:34
<JStar> and bing is america
07:34
<JStar> xd
07:34
<ChillerDragon> so does duckduckgo
07:34
<JStar> yeah
07:35
<ChillerDragon> bing masterrace
07:35
<ChillerDragon> microsft top G company
07:35
<JStar> nanosoft
07:35
<ChillerDragon> i am thinking about getting a load to buy ms stock
Avatar
what phone are u using chillerdragon and jstar
Avatar
ws-client BOT 2023-05-30 07:35:44Z
<ChillerDragon> iphone
07:35
<JStar> some android with broken display from my sis xd
07:35
<ChillerDragon> premium libre applke device
07:36
<ChillerDragon> F jupsti
Avatar
whats the purpose avoiding things like disc if u have iphone
Avatar
ws-client BOT 2023-05-30 07:36:25Z
<ChillerDragon> ur sis play tw?
07:36
<JStar> my other sis played it a bit
07:36
<ChillerDragon> wowo so many sis
07:36
<JStar> we are a family of equality
07:37
<JStar> 2 boys, 2 girls
07:37
<ChillerDragon> @Gewinum i tried the pinephone but it sucks ass xd
07:37
<ChillerDragon> 1 cup
07:37
<JStar> ah yeah i remember xDD
07:37
<JStar> ddnet on your pinephone
07:37
<JStar> 3 fps
07:37
<ChillerDragon> yes pog times
07:37
<ChillerDragon> still better than my 4090
07:37
<ChillerDragon> :justatest:
07:37
<JStar> true
07:37
<JStar> probably because it didnt use gnome
07:37
<ChillerDragon> axaxax
Avatar
who cares if it’s an American company
Avatar
ws-client BOT 2023-05-30 07:38:05Z
<ChillerDragon> libre mobile is just not there yet for me to enjoy it
07:38
<ChillerDragon> linux desktop is amazing
07:38
<ChillerDragon> but linux mobile breaks me
07:38
<ChillerDragon> i just try to avoid using the phone at all cost
Avatar
i embrace the phone
Avatar
ws-client BOT 2023-05-30 07:38:39Z
<JStar> @Ewan if you didnt know, Linux comes from Europe. We value our privacy
Avatar
ws-client BOT 2023-05-30 07:38:49Z
<JStar> We are proud of it
Avatar
linux comes from anywhere the contributors are
07:39
many of them are American since most big tech companies are American and dump such money into OSS
Avatar
ws-client BOT 2023-05-30 07:39:50Z
<JStar> yeah yeah sure
Avatar
amerikan much money
Avatar
that argument is silly lol
Avatar
ws-client BOT 2023-05-30 07:39:59Z
<JStar> and they also dump all my privacy into their databases
07:40
<ChillerDragon> gotta backup the privacy to make it safe
Avatar
hmm so the linuks is spyware
Avatar
ws-client BOT 2023-05-30 07:40:37Z
<ChillerDragon> if you do not want to be spied on get a cabin in the woods
07:40
<ChillerDragon> no other way
07:41
<JStar> @Ewan the truth is, european companies are too bad to collect data succesfully, so politics were like: Ah nice no lobby against it, lets sell it as we love privacy xd
07:41
<ChillerDragon> xd
07:41
<JStar> if silicon valley would be in europe it wouldnt be like it here
07:41
<ChillerDragon> skill issue
Avatar
im going to get a cabin in tue woods
Avatar
David*Β°Villa 2023-05-30 07:41:31Z
Hello, sorry to bother you devs, but i have to ask: Is it in progress to develop the possibility to return to the old freeze design with stars instead of a bar? Deen told me some long time ago to give it a try and get used to the new design. Since I was forced to, i gave it a try and i still dont like it πŸ˜„ I would REALLY apreciate if you could add the possibility for costumizing the freeze animation heartw
Avatar
I’m not protecting malicious privacy practices but to say that software is inherently bad because it’s American is insane
Avatar
ws-client BOT 2023-05-30 07:42:55Z
<JStar> no
07:42
<ChillerDragon> my life hack was replacing the freeze skin by something so ugly that i forgot stars existed
Avatar
β€œno” gigachad
Avatar
ws-client BOT 2023-05-30 07:45:22Z
<JStar> @Ewan you have to understand one thing. Europe is not America and America is not Europe. Why do Americans hate China so much? Because they don't trust them. American companies did do weird shit, like spying the german chancellor. There simply is always mistrust against it here. You are right, most developers in America are probably good ppl. But capitalism wants more money, and data is money
07:45
<JStar> so american companies = spy => money
07:45
<JStar> simple
07:45
<ChillerDragon> spy2win
07:45
<ChillerDragon> thats why heinrich added teehistorian
Avatar
Americans hate China?
Avatar
ws-client BOT 2023-05-30 07:46:01Z
<ChillerDragon> to maximise profits
07:46
<JStar> ofc not all
07:46
<JStar> China is soon overtaking american in terms of total economy
07:47
<JStar> Ofc most americans don't like this fact
07:47
<JStar> and not only the Trump fans, also Biden shoots against them
07:47
<ChillerDragon> china evil is big propaganda even i got brainwashed into thinking that tiktok eats children soulds
Avatar
I can understand how you might think that but the majority of Americans don’t give a single shit
Avatar
ws-client BOT 2023-05-30 07:47:46Z
<ChillerDragon> you sure?
07:47
<JStar> I wouldn't be so sure about it
07:47
best
Avatar
Very few are lucky enough to have such little struggle in their life to get that invested in politics
Avatar
china and us bad
Avatar
ws-client BOT 2023-05-30 07:47:58Z
<JStar> they might not be actively be against china
Avatar
ws-client BOT 2023-05-30 07:48:09Z
<JStar> but if trump says, it's chinas fault. Suddenly all agree xd
07:49
<ChillerDragon> china virus
07:49
<JStar> all egos
07:49
<JStar> when do we create an open world
07:50
<ChillerDragon> the planet too big
Avatar
hi chiller
Avatar
ws-client BOT 2023-05-30 07:50:10Z
<ChillerDragon> coberfita
Avatar
I have lived in the U.S.A. my whole life, people who consciously involve themselves in politics to the point of legitimately hating China for that reason are the loud minority
Avatar
ws-client BOT 2023-05-30 07:50:59Z
<ChillerDragon> poor david wants to talk about freeze stars and yall spam it away with china offtopic
Avatar
Freeze stars just use an older client
07:51
Can’t have any improvements without someone complaining
Avatar
i dont understand why people want freeze stars so much
Avatar
ws-client BOT 2023-05-30 07:53:57Z
<JStar> @Ewan i still doubt it tbh xd. When u'd ask ppl to say 1 good and one bad thing about google in europe. it's probably: i can search anything -- they steal my data xdd
Avatar
Same in U.S.A.
07:54
I’m not pretending to know how it works in Europe because I’ve never been there
Avatar
ws-client BOT 2023-05-30 07:54:43Z
<JStar> the mistrust against a different country is always bigger tho
Avatar
Why are you so sure we don’t care about privacy
Avatar
ws-client BOT 2023-05-30 07:55:19Z
<JStar> Different country, different cultures, different laws
07:55
<JStar> Why are guns allowed in USA?
07:55
<JStar> it's obvious that they cause so much mass shootings
Avatar
The loud minorities
Avatar
ws-client BOT 2023-05-30 07:55:46Z
<JStar> and still they seem to have the power
07:55
<JStar> cant be that minor
Avatar
Many have been convinced that guns are necessary because even if they wouldn’t think they need it to β€˜protect themselves’, here there is the prospect of the person you’re defending yourself against having a gun
07:58
So now owning a gun they at a statistical advantage in this theoretical situation that doesn’t really happen often enough to matter as much as the gun-advocates say
07:58
Screwed up situation
07:59
I am personally anti-gun, most people I know are anti-gun, and even those that aren’t are rarely super into it. Doesn’t mean they wouldn’t want to have one β€œjust in case”
08:00
Gun control is partially about selling a lifestyle that aligns with existing right-wing views, and for most people who are pro-gun it’s no longer about whether having them is a good idea, it’s about protecting their bullshit rights out of principle
Avatar
Avatar
Jupstar βœͺ
does it show u when u start it from steam?
ye
Avatar
Avatar
Jupstar βœͺ
what OS are u even on
kali linux
Avatar
Avatar
five
kali linux
Jupstar βœͺ 2023-05-30 08:36:51Z
Mhh, then i dunno. Can u try the version from the website?
Avatar
Avatar
five
kali linux
justatest
Avatar
are we hacking yet πŸ€“
Avatar
ws-client BOT 2023-05-30 08:53:00Z
<ChillerDragon> ?
Avatar
Avatar
Jupstar βœͺ
Mhh, then i dunno. Can u try the version from the website?
ye it worked thanks
Avatar
Avatar
Ewan
are we hacking yet πŸ€“
little brother installed that shit idk
08:57
were using windows
Avatar
Avatar
five
little brother installed that shit idk
Jupstar βœͺ 2023-05-30 08:58:09Z
It's great. U have a good brother
Avatar
yea my brother got hacks its not my fault
Avatar
Avatar
Jupstar βœͺ
It's great. U have a good brother
no idea how i get my main games on this os
Avatar
I recently let my brother play this amazing game. But when I got home my account had been banned until February 21st. My brother said he didn't know why this happened. Until I found out he had installed a hacked version of Ddrace. I'm sorry for what happened, but please release my account again. I really like this game, and I didn't want to be without playing it for so long. I promise this will never happen again
bluekitty 3
Avatar
Avatar
five
no idea how i get my main games on this os
Jupstar βœͺ 2023-05-30 08:59:19Z
With steam most games should work actually
Avatar
Avatar
Ryozuki
I recently let my brother play this amazing game. But when I got home my account had been banned until February 21st. My brother said he didn't know why this happened. Until I found out he had installed a hacked version of Ddrace. I'm sorry for what happened, but please release my account again. I really like this game, and I didn't want to be without playing it for so long. I promise this will never happen again
haha
Avatar
Avatar
Jupstar βœͺ
With steam most games should work actually
some games are not in steam
Avatar
Avatar
five
some games are not in steam
Jupstar βœͺ 2023-05-30 08:59:51Z
U can still add them there
09:00
Add steam foreign games
Avatar
no idea what you mean
Avatar
add non steam game
09:01
and then u can use proton
Avatar
but how i install them
Avatar
Play all your games on Linux. Lutris is an Open Source gaming platform for Linux. It installs and launches games so you can start playing without the hassle of setting up your game. Get your games from GOG, Steam, Battle.net, Origin, Uplay and many other sources running on any Linux powered gaming machine.
Avatar
you can run the file from ddnet linux folder as an executable too, at least on ubuntu based os
Avatar
thanks mate
Avatar
Avatar
Cellegen
you can run the file from ddnet linux folder as an executable too, at least on ubuntu based os
not speaking about ddnet haha
09:02
Minecraft, league of legends
Avatar
minecraft is linux native
09:03
league sucks, play dota
Avatar
Avatar
Cellegen
you can run the file from ddnet linux folder as an executable too, at least on ubuntu based os
as opposed to an ubuntu cringe os
Avatar
well i played some rounds dota2 but i feel more comfortable with lol
Avatar
Avatar
Ryozuki
league sucks, play dota
So true
Avatar
chess still the best game
Avatar
magnus goat
09:04
i beat this magnus random dw
Avatar
i just noticed who in ur pfp is xd
Avatar
the madafucking top g
09:05
Don't correct me
09:06
this guy?
Avatar
ws-client BOT 2023-05-30 09:07:29Z
<JStar> the guy owned by mf legend greta
09:07
why he uses anime girls
09:07
she is from oshi no ko iirc
09:08
is he a weeb πŸ’€
Avatar
he's been posting a lot of pics with anime girls lmao
Avatar
he is a douche canoe
Avatar
Avatar
David*Β°Villa
Hello, sorry to bother you devs, but i have to ask: Is it in progress to develop the possibility to return to the old freeze design with stars instead of a bar? Deen told me some long time ago to give it a try and get used to the new design. Since I was forced to, i gave it a try and i still dont like it πŸ˜„ I would REALLY apreciate if you could add the possibility for costumizing the freeze animation heartw
adding this (in a way that works with the current system) would be okay in principle. we'd need someone to do this. Learath2 said he might do it in the far future
Avatar
Avatar
David*Β°Villa
Hello, sorry to bother you devs, but i have to ask: Is it in progress to develop the possibility to return to the old freeze design with stars instead of a bar? Deen told me some long time ago to give it a try and get used to the new design. Since I was forced to, i gave it a try and i still dont like it πŸ˜„ I would REALLY apreciate if you could add the possibility for costumizing the freeze animation heartw
You'll need to find a developer to implement it. I'm interested in adding an option for it, but I don't have time. The people who do have time aren't interested in using that time to bring back an old option for a handful of people
Avatar
@c0d3d3v was working on it months ago, but I dunno if he has a prototype or smth
Avatar
Avatar
Ryozuki
why he uses anime girls
Integer overflow in brain. Man had so many women around he accidentally revirginized himself
kek 4
Avatar
Vulkan 1.3.251 is out today as a rare Sunday morning spec update for this Khronos graphics/compute API.
09:44
@Jupstar βœͺ
09:44
epic logo
09:45
justatest 1
πŸ˜ƒ 1
09:47
Avatar
Jupstar βœͺ 2023-05-30 10:04:20Z
Hot
Avatar
i like valve
10:48
i'm actually curious when big companies contributing to open standard, is it a executive decision or just some guy in a technical department thought it might be fun to work on
Avatar
@Learath2 so bad mlir is not const correct
10:54
/// Return the dialect registry associated with this context. const DialectRegistry &getDialectRegistry();
10:54
this should be const
10:54
const DialectRegistry &getDialectRegistry() const;
10:55
const DialectRegistry &MLIRContext::getDialectRegistry() { return impl->dialectsRegistry; }
10:55
the impl
Avatar
Avatar
Learath2
You'll need to find a developer to implement it. I'm interested in adding an option for it, but I don't have time. The people who do have time aren't interested in using that time to bring back an old option for a handful of people
David*Β°Villa 2023-05-30 11:01:10Z
I'll pay you with free membership of my onlyfans, If you inplement it justatest
Avatar
Avatar
David*Β°Villa
Hello, sorry to bother you devs, but i have to ask: Is it in progress to develop the possibility to return to the old freeze design with stars instead of a bar? Deen told me some long time ago to give it a try and get used to the new design. Since I was forced to, i gave it a try and i still dont like it πŸ˜„ I would REALLY apreciate if you could add the possibility for costumizing the freeze animation heartw
@heinrich5991 @Learath2 @nouaa @David*°Villa @deen Big sorry from my side. Originally my thought was to add the new design only if there is an option to return to the original design. But at that time it was decided together to force only the new design. Meanwhile I promised some players to implement such an option (e.g. AOE). But because so many things have happened (to me) and I was mentally not so well, I had no motivation to spend time to implement it. But if it's ok for everyone now I will try to implement the feature in the next two weeks and make a PR.
GWcmeisterPeepoLove 6
Avatar
Avatar
c0d3d3v
@heinrich5991 @Learath2 @nouaa @David*°Villa @deen Big sorry from my side. Originally my thought was to add the new design only if there is an option to return to the original design. But at that time it was decided together to force only the new design. Meanwhile I promised some players to implement such an option (e.g. AOE). But because so many things have happened (to me) and I was mentally not so well, I had no motivation to spend time to implement it. But if it's ok for everyone now I will try to implement the feature in the next two weeks and make a PR.
My only requirement from it is that it happens client side. Please don't just make it a serverside toggle
11:03
Also no need to apologize. It's all volunteer work. If you feel like doing something, do it, if not don't. It's not your responsibility alone
❀️ 1
Avatar
Jupstar βœͺ 2023-05-30 11:03:47Z
wb
❀️ 1
Avatar
Avatar
c0d3d3v
@heinrich5991 @Learath2 @nouaa @David*°Villa @deen Big sorry from my side. Originally my thought was to add the new design only if there is an option to return to the original design. But at that time it was decided together to force only the new design. Meanwhile I promised some players to implement such an option (e.g. AOE). But because so many things have happened (to me) and I was mentally not so well, I had no motivation to spend time to implement it. But if it's ok for everyone now I will try to implement the feature in the next two weeks and make a PR.
David*Β°Villa 2023-05-30 11:04:10Z
God send you. Thx ❀️ Don't stress yourself since it's volunteer Work. I'm just glad to know someone ist working on it πŸ™‚
❀️ 1
Avatar
Avatar
Learath2
My only requirement from it is that it happens client side. Please don't just make it a serverside toggle
Stars are currently only server side generated. But I can try my best to generate them client side.
Avatar
hope you're feeling better
Avatar
f1cee74 Allow rcon users access to reserved slots - Learath2 6f9c387 Add config option. Make it untidy per clang-tidy - Learath2 8659578 Merge #6657 - bors[bot]
Avatar
@Learath2 this is why rust is better
11:10
const by default
11:11
otherwise
11:11
people forget
11:11
even llvm devs
11:11
im mad
11:11
aPES2_ArriveExplosion
Avatar
Avatar
c0d3d3v
Stars are currently only server side generated. But I can try my best to generate them client side.
stars position & direction only is sent by the server, the rest is client-side, even the stars movement (going out of the tee etc..) (edited)
Avatar
Avatar
five
Minecraft, league of legends
league has its own wine version, but very fucking unstable
11:18
ge-lol version x
Avatar
I want to start the local server, but it reports an error and flashes back
11:19
why
11:19
im noooooooooooooooooooooooob
Avatar
is that the full log?
Avatar
Avatar
ReiTW
stars position & direction only is sent by the server, the rest is client-side, even the stars movement (going out of the tee etc..) (edited)
yes I know... thats what I meant. Thanks
Avatar
It's dazzling when there are too many tees, and hard to find the dummy even myself. Especially when being frozen and all tees with the same skin x_ninja. I hope there can be some new settings, as same as cl_nameplates_friendmark, called cl_nameplates_playermark and cl_nameplates_dummymark. Thx! ~By the way, is there no issue template here?~
Avatar
Avatar
Mr.Gh0s7
is that the full log?
maybe?idk where the log is
11:59
its terminal's last lines
Avatar
what is the whole log that gets displayed in terminal?
Avatar
there is no error in terminal,i connected to lan server and after 1second it just broke down
12:02
this is the last lines
12:02
wired
Avatar
it's probably the map then. But I am not sure since the info you provided is very limited ¯\_(ツ)_/¯
Avatar
sorry for occupied your time and Thank you
12:05
😭
12:06
failed to open 'myServerconfig.cfg'
12:07
i cant find myServerConfig.cfg
12:07
lol
Avatar
@QBQAQ if you could copy the content of the logs directly & show, maybe it is just misconfigured but running
Avatar
but when i connect to my server, it just broke down in 1second
Avatar
Avatar
Ryozuki
fokko one is
my server currently sends points, not time, i did a little hack there. once time score is properly added (i think it is now?) i will migrate to it
12:37
it is
12:38
@fokkonaut send client "client_score_kind": "time"
Avatar
ah perfect
Avatar
A generic framework for on-demand, incrementalized computation. Inspired by adapton, glimmer, and rustc&#39;s query system. - GitHub - salsa-rs/salsa: A generic framework for on-demand, increme...
Avatar
ws-client BOT 2023-05-30 13:04:15Z
<JStar> ryos
13:04
<JStar> rustup cant download a file, even tho when i download over the URL it says manually it works
13:04
<JStar> any idea?
13:06
<JStar> The rust docs
13:07
<JStar> maybe im out of disk πŸ˜‚
13:10
xs
Avatar
ws-client BOT 2023-05-30 13:10:44Z
<JStar> yeah yeah sad af
13:11
<JStar> the rust doc uses >600 MB πŸ˜‚
13:12
<JStar> the target dir of my project uses fckn 18 GBytes xd
13:12
<JStar> wtf is it doing there xD
13:16
<JStar> chillerdragon: when will u be a server hoster?
13:17
<JStar> apparently 18gbyte build data is sane
13:19
<ChillerDragon> i am a server hoster
13:19
<JStar> $/month?
13:19
<JStar> how much disk space
13:20
<ChillerDragon> my pricing is a bit rigged
13:20
<ChillerDragon> what do you need it for?
13:20
<ChillerDragon> do you need ssh?
13:20
<JStar> host some projects
13:20
<ChillerDragon> i am not a vserver hoster
13:21
<ChillerDragon> i can host you a single project if i like the project
13:21
<ChillerDragon> or if you pay :D
13:21
<JStar> xd
13:21
<JStar> guess i'll need to use my homeserver, didnt know building in debug mode uses 18gbyte build data
13:21
<JStar> and VPS on the internet only have like 20-40gb ssd
13:21
<JStar> so this is kindof a problem
Avatar
@Jupstar βœͺ (JStar) I also regularely run cargo clean in my bigger projects to gain back 10GB of space which accumulates over time
Avatar
ws-client BOT 2023-05-30 13:23:16Z
<ChillerDragon> thats why i run my minecraft server on a home server
13:23
<ChillerDragon> my mc world uses 1.8tb
13:23
<JStar> i did cargo clean, lets see how much the rebuild costs :D
Avatar
The best memes and stickers about #rust #rustlang - listed here for easy use on talks and share - GitHub - rochacbruno/rust_memes: The best memes and stickers about #rust #rustlang - listed here fo...
13:23
Avatar
ws-client BOT 2023-05-30 13:23:59Z
<JStar> nice 16gb less xd
Avatar
@Learath2 i found my logo!
Avatar
JStar nice ^^
Avatar
ws-client BOT 2023-05-30 13:25:05Z
<JStar> does it happen bcs of package upgrades?
13:25
<ChillerDragon> we really need pings dont we jupsti?
Avatar
Avatar
fokkonaut
my server currently sends points, not time, i did a little hack there. once time score is properly added (i think it is now?) i will migrate to it
your whole server is "a little hack"
Avatar
ws-client BOT 2023-05-30 13:25:25Z
<JStar> ChillerDragon: i take every feature u have xd
13:25
<ChillerDragon> xd
Avatar
Avatar
cyberFighter
your whole server is "a little hack"
always has been, but works better than many other mods :P
13:26
its the small details u have to take care of
Avatar
antiping:
Avatar
antiping is to be expected not to work with custom weapons :D
Avatar
@fokkonaut btw i got tunelock onto an online server and prediction is weird even with antiping off (edited)
13:28
(at least to me)
Avatar
Of course, the client doesnt know about it. Everyone with different tunes as you will look buggy
Avatar
no, if i have the tunelock MYSELF
13:29
its still buggy
Avatar
in how far?
13:29
did you move all of the code?
Avatar
wdym how far
Avatar
in how far is it buggy
13:30
i.e. what is happening
Avatar
my tee moves at like 10 fps
13:30
instead of normal
Avatar
which tunedid u set
Avatar
jupstar not gonna lie
13:31
since u went to that chat
13:31
its like i ignore ur messages
Avatar
ground_friction 1
Avatar
less visbility idk
13:31
also i tend to do cargo clean every once in a while
13:32
specially with nightly rust updates
13:32
tbh idk if cargo itself deletes old artifacts
13:32
and the big target build dir.. well thats what u get with static linking
13:32
and lot of debug info
Avatar
Avatar
cyberFighter
ground_friction 1
then for some reason it didnt get updated correctly to your client. cant tell why right now, i dont even know how you set up the server, so if you remember, on my server it was working
Avatar
Window dragger has been made and I'm happy with this method, this way it doesn't need to update every frame, but only when it needs to update. feelsbossman
πŸ‘ 1
13:34
Next up is making different variations of windows and the console will be set up in no time
Avatar
ws-client BOT 2023-05-30 13:35:24Z
<JStar> next level GUI
Avatar
jupstar
13:38
do u think a programming language focused on making guis but compiled is feasible
13:38
i wonder how that would look
13:38
perhaps
13:38
godot is basically that
Avatar
@fokkonaut is there no tune lock dump command
Avatar
there is
13:40
i dont remember if it was f-ddrace only or also in the pr tho
Avatar
oh
13:40
found it
Avatar
nice
Avatar
Avatar
Ryozuki
do u think a programming language focused on making guis but compiled is feasible
Jupstar βœͺ 2023-05-30 13:40:36Z
It sucks, but it's possible. E.g. by using wasm and hot reload the module. Or by having something like a url that automatically calls the UI u working on.
Avatar
what about tune lock reset
13:40
and leave
Avatar
Jupstar βœͺ 2023-05-30 13:40:49Z
Best would be a rust interpreter ^^
13:40
And later compile
Avatar
(not sure what tune lock leave would be used for but its a command for tunezones)
13:42
i am making edlang
13:42
but maybe wanted to make it more domain specific
13:43
but idk an interesting domain
Avatar
Avatar
c0d3d3v
Stars are currently only server side generated. But I can try my best to generate them client side.
yes, client-side would be good, so the server doesn't get more complex due to this
Avatar
@TsFreddie did u update the chinese community on using the ddnet wiki? i think it has way more content now https://wiki.ddnet.org/wiki/Main_Page/zh
13:46
also there is a new chinese translator working a lot it seems
Avatar
i did
Avatar
@TsFreddie θ°’θ°’
13:51
justatest
13:51
im chinese now
13:51
just did this for good mesure
13:53
i think it has meta programming capabilities
13:53
lisp of the future?
13:54
Many dependency conflicts arise from definitions competing for the same names. Since Unison references code by hash instead of by name, an entire class of conflicts can be eliminated.
Avatar
I recently found this site https://exercism.org/ which has "courses" for many languages. Here's the one for unison https://exercism.org/tracks/unison
Avatar
no gdscript kek
14:07
let's make one and teach them how to make an editor toptri (edited)
Avatar
some languages listed there are extension eh?
14:08
looks good tbh
Avatar
ws-client BOT 2023-05-30 14:16:05Z
<ChillerDragon> jopsti u here?
Avatar
Jupstar βœͺ 2023-05-30 14:22:47Z
Hi
Avatar
ws-client BOT 2023-05-30 14:23:24Z
<ChillerDragon> ah nice
14:23
<ChillerDragon> go reload webchat
14:23
<JStar2> user is already logged in
14:23
<JStar2> xd
14:23
<ChillerDragon> classic
14:23
<ChillerDragon> wait a second
14:24
<ChillerDragon> btw it now sets a 30day cookie with last login name
14:24
<ChillerDragon> auto highlights the input field
14:24
<JStar2> epic
14:24
<ChillerDragon> so next time it shoould just be open url press enter and u in
14:24
<ChillerDragon> oh @JStar2 and pings
14:24
<ChillerDragon> also this works JStar2
14:24
<ChillerDragon> i hope xd
14:25
<JStar2> lol, nice xD
14:25
<ChillerDragon> pog
Avatar
Jupstar βœͺ 2023-05-30 14:25:34Z
@Jupstar βœͺ
Avatar
ws-client BOT 2023-05-30 14:25:44Z
<ChillerDragon> ?xd
14:25
<JStar2> mhh i see, i need to use my dc name then
14:25
<ChillerDragon> yes
14:25
<ChillerDragon> this should ping @Jupstar βœͺ
14:26
<JStar2> i mean Jupeyy_Keks
14:26
<ChillerDragon> who dis
14:26
<JStar2> else im not pinged
14:26
<JStar2> its my "real" discord tag
14:26
<ChillerDragon> wait so @Jupstar βœͺ never pinged u?
14:26
<JStar2> it does
14:26
<ChillerDragon> but?
14:26
<JStar2> bcs on ddnet server i have nickname
14:26
<ChillerDragon> a
14:26
<JStar2> but if smn pings me on discord, it says Jupeyy_Keks
14:26
<ChillerDragon> i see
Avatar
anooother game crash
Avatar
Avatar
cyberFighter
anooother game crash
Jupstar βœͺ 2023-05-30 14:30:46Z
U the alt tab guy?
14:30
I already told u simply use opengl
Avatar
i should just delete steam (edited)
Avatar
Jupstar βœͺ 2023-05-30 14:31:27Z
Is it BCS of steam or what?
14:31
Blame GPU manufacturer for not giving life time driver support. Xd
Avatar
Avatar
Jupstar βœͺ
Is it BCS of steam or what?
doesnt happen if i dont use steam or if i dont use opengl as far as i know
Avatar
Jupstar βœͺ 2023-05-30 14:33:35Z
Rip to u, but simply use opengl 3.3
14:33
With ur setup u probably don't care about more fps do u?
Avatar
Avatar
TsFreddie
nothing beats https://wy-lang.org/
i sent this at work, someone replied with this https://nas.sr/%D9%82%D9%84%D8%A8/
14:34
Avatar
epic
Avatar
Ω‚Ω„Ψ¨ (Levantine Arabic: [Κ”alb]), transliterated Qalb, Qlb and Alb, is a functional programming language allowing a programmer to write programs completely in Arabic. Its name means heart and is a recursive acronym in Arabic meaning Qalb: A Language for Programming (Ω‚Ω„Ψ¨: Ω„ΨΊΨ© Ψ¨Ψ±Ω…Ψ¬Ψ©, Qlb: Lughat Barmajah). It was developed in 2012 by Ramsey Nasser, ...
Avatar
Avatar
cyberFighter
doesnt happen if i dont use steam or if i dont use opengl as far as i know
Jupstar βœͺ 2023-05-30 14:36:50Z
But it was no assert right?
Avatar
Avatar
Jupstar βœͺ
With ur setup u probably don't care about more fps do u?
i get 30 fps if i open the scoreboard in a full server with opengl
Avatar
Jupstar βœͺ 2023-05-30 14:37:19Z
That's as much as any switch game πŸ˜‚
Avatar
switch sux
Avatar
Jupstar βœͺ 2023-05-30 14:38:56Z
Mh i dunno bro. Just be mainstream and buy new hardware to enjoy the epicness of hightech
Avatar
i am broke
Avatar
Jupstar βœͺ 2023-05-30 14:39:39Z
Sell your liver
14:39
Kidneys
14:40
i mean i can post one
Avatar
Jupstar βœͺ 2023-05-30 14:40:27Z
I mean send me the latest one
Avatar
Jupstar βœͺ 2023-05-30 14:40:38Z
But i probably can't help u tbh
14:40
Alt tab crashes are weird
14:41
No assert logs right?
Avatar
nope
Avatar
Jupstar βœͺ 2023-05-30 14:41:22Z
Ok ;/
Avatar
ws-client BOT 2023-05-30 14:43:36Z
<ChillerDragon> i added desktop notifcations lemme know if it works on your browser jopsti
14:43
<ChillerDragon> they optional and opt in with da big bell
Avatar
@fokkonaut lmao
Avatar
ws-client BOT 2023-05-30 14:45:54Z
<JStar3> i dont see them chiller
14:46
<JStar3> but i dont like them anyway ;)
14:47
<ChillerDragon> ok good
14:47
<ChillerDragon> but which browser do you use? which version?
14:47
<ChillerDragon> u on debian? xd
14:48
<JStar3> firefox dev edition: 114.0b9 (64-Bit)
14:48
<pinger> @TsFreddie pinger
Avatar
pinger
Avatar
ws-client BOT 2023-05-30 14:48:27Z
<pinger> !
14:48
<pinger> if you click the bell nothing happens? @JStar3
14:48
<JStar3> what bell πŸ˜‚
14:49
<pinger> reload page
14:49
<JStar3> i did
14:49
<pinger> under ddnet sever logo
14:49
<JStar> ah troll
14:49
<JStar> black on black
14:49
<JStar> huge troll
14:49
<pinger> how is this hidden? xd
14:49
<JStar> yeah ok
Avatar
dm me this
Avatar
ws-client BOT 2023-05-30 14:49:32Z
<pinger> now tab out
14:49
<JStar> i have monitor brightness low
14:49
<pinger> @JStar get pinged
14:49
<pinger> u only get notification when tabbed out of browser tab
14:50
<pinger> @JStar @JStar @JStar @JStar
14:50
<pinger> @JStar @JStar
14:50
<pinger> @JStar @JStar
14:50
<pinger> @JStar @JStar
14:50
<JStar> thanks
14:50
<pinger> does it worek?xd
14:50
<JStar> wait
14:50
<JStar> JStar
14:50
<TsFreddie> oh i saw the url
14:50
<JStar> Jstar
14:50
<JStar> JStar
14:50
<JStar> i dunno
14:50
<pinger> u cant ping ur self
14:50
<pinger> u have to be tabbed out
14:50
<JStar> write a text maybe
14:50
<pinger> @JStar switch tab ffs
Avatar
JStar
Avatar
ws-client BOT 2023-05-30 14:50:48Z
<pinger> JStar
14:50
<pinger> JStar
14:50
<JStar> yeah
Avatar
spam
Avatar
ws-client BOT 2023-05-30 14:50:58Z
<pinger> worked?
14:50
<JStar> works
14:51
<pinger> nice pog
14:51
<ChillerDragon> :justatest:
14:51
<JStar> gg
Avatar
the emoji doesnt work anyway
Avatar
ws-client BOT 2023-05-30 14:51:19Z
<ChillerDragon> fuck what happend to mr justatest
14:51
<JStar> what spam TsFreddie?
Avatar
ws-client BOT 2023-05-30 14:51:28Z
<JStar> it's science
Avatar
ws-client BOT 2023-05-30 14:51:31Z
<JStar> applied science
Avatar
Avatar
ws-client
<JStar> what spam TsFreddie?
worse ham
Avatar
ws-client BOT 2023-05-30 14:51:49Z
<ChillerDragon> why do the images not show omg
Avatar
reply parser when
Avatar
Avatar
Jupstar βœͺ
Alt tab crashes are weird
this one looks like it has to do with the Steam overlay amdvlk64.dll!vk_icdNegotiateLoaderICDInterfaceVersion+0x2f07a SteamOverlayVulkanLayer64.dll!vkGetSwapchainImagesKHR+0x42e graphics-hook64.dll!dummy_debug_proc+0x86c7 vulkan-1.dll!vkDestroyDescriptorPool+0x47d1d
Avatar
ws-client BOT 2023-05-30 14:52:29Z
<ChillerDragon> reply is the worst
Avatar
Avatar
Robyt3
this one looks like it has to do with the Steam overlay amdvlk64.dll!vk_icdNegotiateLoaderICDInterfaceVersion+0x2f07a SteamOverlayVulkanLayer64.dll!vkGetSwapchainImagesKHR+0x42e graphics-hook64.dll!dummy_debug_proc+0x86c7 vulkan-1.dll!vkDestroyDescriptorPool+0x47d1d
Jupstar βœͺ 2023-05-30 14:52:45Z
Mh but he is the only person I know having this
14:52
And he had ancient hardware
Avatar
ws-client BOT 2023-05-30 14:52:56Z
<TsFreddie> fix your ``` code block parser btw
14:53
<JStar> true
14:53
<TsFreddie> fix your triple ` code block parser btw
14:53
<JStar> but irc has no multiline
14:54
<ChillerDragon> omg i sat all day waiting for delivery guy didnt leave da flat for 1s and now i got a email saying i wasnt there
14:54
<ChillerDragon> u kidding me!?
Avatar
Avatar
Robyt3
this one looks like it has to do with the Steam overlay amdvlk64.dll!vk_icdNegotiateLoaderICDInterfaceVersion+0x2f07a SteamOverlayVulkanLayer64.dll!vkGetSwapchainImagesKHR+0x42e graphics-hook64.dll!dummy_debug_proc+0x86c7 vulkan-1.dll!vkDestroyDescriptorPool+0x47d1d
Jupstar βœͺ 2023-05-30 14:54:15Z
@cyberFighter but there u have it. Disable steam overlay
14:54
Great that all these graphic hooks never cause problemsπŸ˜‚πŸ˜‚πŸ˜‚
Avatar
ws-client BOT 2023-05-30 14:54:43Z
<ChillerDragon> @TsFreddie ye its on todo first i gotta build fake mulitline messages on top of irc xd
Avatar
ws-client BOT 2023-05-30 14:55:27Z
<JStar> yeah, but sadly he has no update i think
14:55
<JStar> and since it says amdvlk, its probs amd
Avatar
ChillerDragon
Avatar
ws-client BOT 2023-05-30 14:55:55Z
<emottester> my emotes gone :c urs too? :pepeH:
14:56
<ChillerDragon> lmao TsFreddie
Avatar
Avatar
heinrich5991
yes, client-side would be good, so the server doesn't get more complex due to this
Not only would be good. I wouldn't really even consider merging a serverside fix for this
Avatar
@heinrich5991 i have a question and since u may have xp with cxx, how do u represent a method that returns a reference to something? for example my context (cpp class) has a method: const DialectRegistry &getDialectRegistry();
14:56
how do i replicate this on rust, lifetime and all
14:56
well i ask if u know any hints otherwise ill figure it eventually xd
14:57
i figured that i can have a DialectRegistry & in rust directly, what i cant have is the DialectRegistry directly
14:57
well idk if thats correct anyway
Avatar
I'd guess just fn getDialectRegistry() -> &DialectRegistry
Avatar
i guess
14:58
i gotta abstract this, cuz u can also have a owned dialect registry
14:58
pub struct DialectRegistry { pub(crate) ptr: UniquePtr<ffi::DialectRegistry>, }
14:58
maybe i should have a hidden inner registry that is an enum
14:58
owned and borrowed?
Avatar
Do you really need the distinction anywhere?
Avatar
@Learath2 i mean
15:00
in rust i should be able to make a dialect registry that i own
15:00
and i should also be able to call context.getdialectregistry()
15:00
that returns a borrowed one no?
15:00
or should i simply copy it
15:00
xd
Avatar
Avatar
Learath2
Not only would be good. I wouldn't really even consider merging a serverside fix for this
yes, I worded it incorrectly
Avatar
Avatar
Ryozuki
pub struct DialectRegistry { pub(crate) ptr: UniquePtr<ffi::DialectRegistry>, }
I would leak the distinction between UniquePtr<DialectRegistry> and &DialectRegistry to the caller
15:02
i.e. not wrap it
15:03
but i dont want to duplicate code
15:03
maybe i should make a trait
15:03
(DialectRegistry has methods)
Avatar
if you implement it on DialectRegistry, it should work with UniquePtr<DialectRegistry> and &DialectRegistry
Avatar
&self methods, at least
Avatar
but i wanted to hide DialectRegistry from the ffi itself
15:04
i mean i have my own struct DialectRegistry that wraps the ffi related structure
15:04
inside
Avatar
I see
Avatar
(i kinda wanna make a safe interface)
Avatar
yes, newtyping stuff like that doesn't work well in rust
15:05
cxx is supposed to be safe already(?)
Avatar
yeah it is
15:05
(if u made it correct)
15:05
but i want to make a safe and rusty interface
Avatar
Avatar
Jupstar βœͺ
@cyberFighter but there u have it. Disable steam overlay
ok
Avatar
i think i rly need to hide this
15:06
maybe i can just use a pointer?
15:06
it would work for ref and unique ptr
Avatar
Hm, I don't quite get why you'd want a distinction between the two. Don't you need to call into C++ to create an ownerd DialectRegistry? That would return a UniquePtr and the const reference stuff would be through a immutable borrow
Avatar
*mut you mean?
Avatar
dunno if you can go from *mut to UniquePtr
Avatar
it just crashed again but i turned off overlay in steam
15:07
at least thats what its saying
Avatar
Avatar
Learath2
Hm, I don't quite get why you'd want a distinction between the two. Don't you need to call into C++ to create an ownerd DialectRegistry? That would return a UniquePtr and the const reference stuff would be through a immutable borrow
std::unique_ptr<MLIRContext> context_new() { return std::make_unique<MLIRContext>(); } const DialectRegistry& context_get_dialect_registry(const MLIRContext &context) { auto& reg = const_cast<MLIRContext &>(context).getDialectRegistry(); return reg; } std::unique_ptr<DialectRegistry> dialect_registry_new() { return std::make_unique<DialectRegistry>(); }
15:07
i want to model this
15:07
and take advante of lifetimes and ownership in rust ofc
Avatar
Avatar
cyberFighter
it just crashed again but i turned off overlay in steam
Do you have some crashdumps?
15:08
Or do the jupstar advice, get a 4090
😎 2
Avatar
(the const_cast is needed there, trust me on this)
Avatar
Avatar
Ryozuki
std::unique_ptr<MLIRContext> context_new() { return std::make_unique<MLIRContext>(); } const DialectRegistry& context_get_dialect_registry(const MLIRContext &context) { auto& reg = const_cast<MLIRContext &>(context).getDialectRegistry(); return reg; } std::unique_ptr<DialectRegistry> dialect_registry_new() { return std::make_unique<DialectRegistry>(); }
but you already have it, with UniquePtr and &
Avatar
ws-client BOT 2023-05-30 15:08:42Z
<ChillerDragon> jupsti good life advisor
Avatar
Avatar
Ryozuki
(the const_cast is needed there, trust me on this)
(I sort of doubt it, but I'll try to trust you on that one)
Avatar
the const-cast doesn't look needed there, now that you mention it πŸ˜„
Avatar
Avatar
Learath2
Do you have some crashdumps?
the dump looks the same as before
Avatar
i.e. why is the method not taking const this?
Avatar
but i turned it off, wut
Avatar
Avatar
Learath2
(I sort of doubt it, but I'll try to trust you on that one)
i checked the llvm code, the have simple get method not marked const (they probs forgot) so i dont want to make the method on the rust side take &self mut, so i used const cast on the cpp side
15:09
getDialectRegistry() is not const
15:09
but it should be
Avatar
I see
Avatar
Avatar
Ryozuki
/// Return the dialect registry associated with this context. const DialectRegistry &getDialectRegistry();
my rant
Avatar
Avatar
cyberFighter
but i turned it off, wut
Jupstar βœͺ 2023-05-30 15:10:20Z
Steamovertroll
Avatar
Well you don't even need a cast then, no? You can just do const auto &
Avatar
you do need the cast for this
Avatar
this being mlircontext
15:11
right?
Avatar
ye
Avatar
Avatar
Learath2
Well you don't even need a cast then, no? You can just do const auto &
im lost
Avatar
Ah, I misread that on the phone. Yeah I see
Avatar
what do u mean here
Avatar
Dont mind me. I thought you needed the return to be const but was okay with taking an &mut
Avatar
llvm literally doesnt use const for methods
15:12
insane people kek
Avatar
it's just a hint, in C++
15:12
I can see why they do it ^^
15:12
a hint to the programmer
Avatar
Avatar
heinrich5991
it's just a hint, in C++
It's still good to mark const things const
Avatar
yeah but cxx passes it as const for & in rust
Avatar
ye
Avatar
Btw idk if you can somehow end up with an actually const context that cast is ub. Don't know if possible
Avatar
well i control how the context is made
15:25
(the new function)
15:25
and its not const
15:25
is that it?
15:25
xd
15:28
i think i got something
15:28
i made my own ptr wrapper
15:28
pub(crate) enum FFIPtr<'a, T> where T: UniquePtrTarget, { Owned(UniquePtr<T>), Borrowed(&'a T), } impl<'a, T> FFIPtr<'a, T> where T: UniquePtrTarget, { pub fn pin_mut(&mut self) -> Pin<&mut T> { match self { FFIPtr::Owned(x) => x.pin_mut(), FFIPtr::Borrowed(_) => todo!(), } } } impl<'a, T> AsRef<T> for FFIPtr<'a, T> where T: UniquePtrTarget { fn as_ref(&self) -> &T { match self { FFIPtr::Owned(x) => x, FFIPtr::Borrowed(x) => x, } } }
15:29
ok
15:29
i forgot i ahd the todo
15:29
xd
Avatar
wtf is 'a, T
Avatar
lifetime, generics
Avatar
@Voxel hi
Avatar
meh im lost
Avatar
isnt this like the 128371283712th time this happened to this server
Avatar
Jupstar βœͺ 2023-05-30 15:58:42Z
at least he made rainbow colors for the tees
15:59
it happens quite often tho, that's right
15:59
but heinrich is aware
Avatar
rgb flood
Avatar
gay flood
🌈 2
Avatar
Jupstar βœͺ 2023-05-30 16:00:18Z
it's ogay
16:00
why is it even called DDNet Turkey (edited)
16:01
that sounds not allowed
Avatar
DDOS GUARD
Avatar
Jupstar βœͺ 2023-05-30 16:01:38Z
it's a guard for ddosers
Avatar
version: 17.0.1 os: win10 !image I want to copy "123", but Ctrl+c is useless. Keep the last copy.
Avatar
he doesn’t know T feelsbadman
Avatar
do u know when u enter a spiral of stuff
17:43
and u find more and more wrong stuff
17:43
which u can possibly do but ur blinded by stress or smth
17:43
that was my day
17:44
what wrong stuff
Avatar
the cxx stuff
17:44
xd
17:44
i wish llvm was made in rust
17:45
millions of lines wasted on cpp
17:45
but man, if u do a c api, make it complete
17:45
smh
Avatar
i think you should do it then
Avatar
idk what u r writing ffi for
17:48
i can't make sense of ur ptr feelsbadman
Avatar
Avatar
Voxel
i think you should do it then
ngl i would if im paid
17:49
otherwise i couldnt do it
17:49
cuz its too much time i dont have
Avatar
Avatar
Ewan
i can't make sense of ur ptr feelsbadman
what pyr
17:50
ptr
Avatar
Avatar
Ryozuki
pub(crate) enum FFIPtr<'a, T> where T: UniquePtrTarget, { Owned(UniquePtr<T>), Borrowed(&'a T), } impl<'a, T> FFIPtr<'a, T> where T: UniquePtrTarget, { pub fn pin_mut(&mut self) -> Pin<&mut T> { match self { FFIPtr::Owned(x) => x.pin_mut(), FFIPtr::Borrowed(_) => todo!(), } } } impl<'a, T> AsRef<T> for FFIPtr<'a, T> where T: UniquePtrTarget { fn as_ref(&self) -> &T { match self { FFIPtr::Owned(x) => x, FFIPtr::Borrowed(x) => x, } } }
ur wrapper
Avatar
what u dont get
Avatar
rust things
17:50
impl<'a, T> AsRef<T> for FFIPtr<'a, T> where T: UniquePtrTarget { // concept/constraint? fn as_ref(&self) -> &T { // return type? match self { // idk FFIPtr::Owned(x) => x, FFIPtr::Borrowed(x) => x, } } } (edited)
17:51
what u call concept
17:51
its trait bounds in rust
17:52
self = FFIPtr
17:52
match is cuz self is a enum
17:52
so i do stuff based on what variant it is
17:52
on Owned its a uniqueptr<t>
17:52
which has a deref impl to &T
17:52
so it worjs
17:52
works
17:53
on borrowed its already &T
17:53
@Ewan got it? xd
17:53
rust has pattern matching, a feature modern langs have, and if a new lang doesnt have, its pretty bad, cuz its one of the best new things
17:54
algebraic data types should always be first class
Avatar
what is the 'a in the template
Avatar
the lifetime
17:54
of the reference
Avatar
the reference needs to outlive 'a
17:55
@Ewan a more sane and that works correctly is Cow<'a, T> (edited)
Avatar
this is a clone on write smart pointer
17:55
wanna help please
17:55
learn
Avatar
Avatar
Om4r
Click to see attachment πŸ–ΌοΈ
you need visual studio
Avatar
cant compile for unknown reason
Avatar
Avatar
Ewan
you need visual studio
i have one
Avatar
which one
Avatar
Avatar
Ryozuki
learn
🧠
17:56
see
17:56
πŸ‘ (edited)
17:57
CMake Error at CMakeLists.txt:42 (project): Generator Visual Studio 17 2022 could not find any instance of Visual Studio. Configuring incomplete, errors occurred!
Avatar
if it's not in C:\Program Files or whatever its default location is, cmake can't find it
17:57
speaking from experience
Avatar
you mean the visual studio code?
17:58
or the source
Avatar
the program
Avatar
no, visual studio
17:58
okay wait
Avatar
does std::borrow define any other animals
Avatar
C:\ProgramData\Microsoft\Windows\Start Menu\Programs
17:59
this is visual studio path
Avatar
that's where the shortcut is
17:59
not the app
17:59
mb
17:59
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE
17:59
this one?
17:59
weird
18:00
maybe the problem in the cmake app itself?
Avatar
Avatar
Ewan
does std::borrow define any other animals
what xd
Avatar
copy on write = beloved bovine
Avatar
lol, first time i received a job proposition on linkedin with my outdated profile
18:01
was located in Cork, Ireland
Avatar
Avatar
Om4r
maybe the problem in the cmake app itself?
sux but this is a google question
18:02
cmake works by using module scripts to find components
Avatar
Avatar
Ewan
sux but this is a google question
nah it's chatgpt question
Avatar
if it's broken it's on a lower level
18:02
than just the app
Avatar
use std::borrow::Cow struct Items<'a, X: 'a> where [X]: ToOwned<Owned = Vec<X>> { values: Cow<'a, [X]>, } impl<'a, X: Clone + 'a> Items<'a, X> where [X]: ToOwned<Owned = Vec<X>> { fn new(v: Cow<'a, [X]>) -> Self { Items { values: v } } }
18:03
with this items can hold both a vec and array
Avatar
Avatar
Chairn
was located in Cork, Ireland
innit
Avatar
seeing generics so tightly integrated with actual data is a little confusing
18:04
in cpp they are just slapped on as an afterthought
Avatar
ye bad cpp
18:05
in rust u can be generic over types
18:05
and over lifetimes iirc
18:05
higher kindes types are possible too
18:05
metro internet slow
Avatar
Avatar
Ryozuki
innit
could be Apple, i saw they have European hq there
Avatar
struct Closure<F> { data: (u8, u16), func: F, } impl<F> Closure<F> where for<'a> F: Fn(&'a (u8, u16)) -> &'a u8, { fn call(&self) -> &u8 { (self.func)(&self.data) } } fn do_it(data: &(u8, u16)) -> &u8 { &data.0 } fn main() { let clo = Closure { data: (0, 1), func: do_it }; println!("{}", clo.call()); }
18:07
@Ewan kinda more advanced rust
18:07
18:07
i'm still trying to digest ur ptr impl lol
18:07
syntax is WTF
Avatar
impl<'a, T> AsRef<T> // define lifetime and to hold T as a reference for FFIPtr<'a, T> // when (how is it accessed?) where T: UniquePtrTarget { // trait bounds fn as_ref(&self) -> &T { // return type match self { // lookup self from FFIPtr enum, idk what it does with it FFIPtr::Owned(x) => x, FFIPtr::Borrowed(x) => x, } } }
18:11
closer?
Avatar
AsRef<T>
18:12
is a trait
18:12
we are implementing this trait for our type
18:12
ohhh this is the reference operator?
Avatar
for a given lifetime 'a
18:12
no
18:12
its a trait used by smart pointers
18:12
Box<T> for example
18:13
it is akin to unique_ptr
18:13
i hate mobile
18:13
i type so slow
Avatar
Avatar
Ryozuki
i type so slow
kek
18:14
@Ewan
Avatar
interesting
Avatar
anyway its to get &T out of our type
18:15
which is generic over T
18:15
traits define shared behavior
18:16
its like a interface but better
Avatar
yea if it was interface you'd implement for owned and borrowed separately?
Avatar
in rust u only have structs, enums, arrays
Avatar
and one is already ref so u just return that, other is something else so u do something else
Avatar
Avatar
Ewan
and one is already ref so u just return that, other is something else so u do something else
i forgot
Avatar
Avatar
Ryozuki
in rust u only have structs, enums, arrays
technically this doesn't sound like an issue but convention would be hard to pick up lol
Avatar
well the as_ref method is to avoid code repetition
18:17
otherwise i gotta do the match manually
18:17
everywhere i wanna exctract the enum inner data
18:17
enums in rust can hold data
18:17
like structs
18:17
each variant
Avatar
algebraic data types at work
Avatar
can they just hold any variant data instead of integers, or are u saying they're not constant (edited)
Avatar
they are staticslly typed
18:18
whats constant is the variant identifier
Avatar
enum something : string { value = "test", };
Avatar
the value inside can be anything within the domain of that value
18:18
oic
18:19
how do u define domain for that,
Avatar
Result in rust is a enum
18:19
pub enum Result<T, E> { Ok(T), Err(E), }
Avatar
Avatar
Ewan
how do u define domain for that,
whathever type T is
18:19
xz
Avatar
rust enums are cpp tagged unions
18:20
but super powered
18:20
and safe
18:20
lightning fast
Avatar
fearless concurrnecy
18:20
sry i got the urge to say buzzwords
18:20
kek
18:21
u should learn rust
Avatar
yes i should
18:21
i have the tutorial tab open somewhere
Avatar
Rust for C++ programmers. Contribute to nrc/r4cppp development by creating an account on GitHub.
18:23
If you are using C or C++, it is probably because you have to -
18:23
wow bad take right off the bat
18:24
this is like "i know you hate cpp, i sure do, here's why rust is better"
Avatar
no its a good take
18:24
xx
Avatar
it really isnt
Avatar
isnt what
Avatar
a good take
Avatar
yeah it's just a weird assumption from a strictly safety/performance perspective
18:25
they did not consider that some people might like it...
18:26
it sounds like they're talking to someone who picked up cpp as a 3rd or 4th language after using other higher level langs
18:26
thats ur assumption tho xd
18:27
anyway dont focus on tgat
18:27
that
18:27
xd
18:27
what env do u use for rust
Avatar
???????????????
18:28
my game just crashed by changing the resolution
18:28
oh i got an assert log
Avatar
spill the tea sister
Avatar
oh boy gibberish πŸ˜ƒ
Avatar
Avatar
cyberFighter
Click to see attachment πŸ–ΌοΈ
Jupstar βœͺ 2023-05-30 18:31:49Z
assert log pls
18:32
ok come on discord you didnt have to leak my binds
Avatar
idk how text containers work but is it trying to free a texture without releasing?
Avatar
you dont use L to jump??
Avatar
Avatar
cyberFighter
Click to see attachment πŸ–ΌοΈ
Jupstar βœͺ 2023-05-30 18:32:59Z
can u remember where the client was
18:33
before u did alt tab
Avatar
i didnt even alt tab
18:33
i changed resolution
18:33
and thats when it crashed
Avatar
Jupstar βœͺ 2023-05-30 18:33:20Z
were u ingame?
Avatar
yes
Avatar
send demo
Avatar
Jupstar βœͺ 2023-05-30 18:33:38Z
is yaR0$ a user u know?
Avatar
no
Avatar
Jupstar βœͺ 2023-05-30 18:33:50Z
when was it?
Avatar
are we not gonna talk about /home/deen/isos/ddnet/
Avatar
when was what
Avatar
Jupstar βœͺ 2023-05-30 18:34:01Z
the crash
18:34
did it just happened
18:34
sadly i can't find a user named yaR0$ online
Avatar
8 minutes ago
Avatar
Jupstar βœͺ 2023-05-30 18:34:22Z
mh
18:34
what server?
Avatar
i was in a lan server
Avatar
Jupstar βœͺ 2023-05-30 18:34:39Z
oh
18:34
where the fuck does yaR0$ come from then xd
18:35
@Robyt3 maybe server browser?
18:35
read above
18:35
interesting xd
Avatar
this game just hates me for real
Avatar
Jupstar βœͺ 2023-05-30 18:35:26Z
in this case its not your fault
18:35
it's a bug that haunts us long time
18:38
it's interesting, that it is still hard to reproduce xd
Avatar
Avatar
Ewan
what env do u use for rust
neovim or vscode
18:40
rust-analyzer
Avatar
also i changed resolution cuz i wanted to record a video of this issue
18:41
but then it fixed itself after the crash (edited)
18:41
lol
Avatar
vscode bleh
18:42
when qt creator integration ☹️
18:42
it has nim already...
Avatar
wait i found the bug
18:42
actually idk if its a bug
Avatar
Jupstar βœͺ 2023-05-30 18:42:54Z
HYPE
18:43
UNHYPE
Avatar
setting "show info" on doesnt let you right click the green dots
18:44
is that a bug???? or just some goofy as hell feature
Avatar
Jupstar βœͺ 2023-05-30 18:44:25Z
what is show info
Avatar
shows the numbers of tiles placed
Avatar
Jupstar βœͺ 2023-05-30 18:45:41Z
ah editor, wtf even happened to the editor xD
18:45
looks completely different
Avatar
i like it more honestly
Avatar
Jupstar βœͺ 2023-05-30 18:46:08Z
what green dots?
Avatar
uh
18:46
anchor points?
18:46
for quads
Avatar
Jupstar βœͺ 2023-05-30 18:46:25Z
ah
18:46
for me it works
18:46
but im on nightly
Avatar
what version
18:48
oh wait nightly nvm lol
18:48
im on 17.0.2 but it happened to me since 17.0.something rc (and earlier i think?) (edited)
Avatar
seeing rust println format syntax just makes me wish std::format was real
18:59
still rly using sprintf or +/+= w. std strings to do this kind of stuff
Avatar
Jupstar βœͺ 2023-05-30 19:02:17Z
why dont u use string streams
19:02
they are the most efficient ones
Avatar
arent they bad tho
Avatar
streams are fine i guess but i don't like streams because they are misleading
19:05
they always copy
Avatar
well operator overloading like that is evil
19:05
and the std does it
19:05
its ugly af
19:06
if ur refering to cout
19:06
and cin
19:06
fstreams also have an intermediate buffer on top of the source
19:06
source buffer -> intermediate buffer -> file
19:06
bad if streaming big stuff
Avatar
rust streaming is rly nice
Avatar
caption 10/10
Avatar
also in rust its not buffered by default , u need to wrap around a bufwriter
Avatar
@Jupstar βœͺ @cyberFighter "Show info" has a more hidden feature when selecting quad layers: it shows a separate pivot point for the envelope points associated with it so you can more easily position quads for animations. You can't select multiple of those points at the same time. Maybe there are other bugs though, because this feature is so well hidden and therefore not tested at lot.
Avatar
Jupstar βœͺ 2023-05-30 19:11:37Z
ah
Avatar
also i'm not sure if std::stringstream ss; ss << "Today is " << month << " " << day << ", " << year << " and it is " << hour << ":" << minute << "."; is as efficient as std::string str = std::format( "Today is {} {}, {} and it is {}:{}.", month, day, year, hour, minute);
19:12
because i believe std::format still utilizes the stack like c formats
Avatar
Jupstar βœͺ 2023-05-30 19:12:16Z
it's more efficient
19:12
not as efficient
19:13
it's not a consteval as far as i see
19:13
so it has to parse the format string
Avatar
printf is not consteval either
Avatar
Jupstar βœͺ 2023-05-30 19:14:50Z
yes
19:14
so it's slow xd
Avatar
is acceleration on with new SDL version?
Avatar
Jupstar βœͺ 2023-05-30 19:15:19Z
no
Avatar
Jupstar βœͺ 2023-05-30 19:15:23Z
it's gone
19:15
@Ewan theorically std::format is faster than printf
19:15
because it is type safe
19:16
if u know u expect an int, u know its never bigger than 4billion
19:16
+-
19:16
2billion
Avatar
Jupstar βœͺ 2023-05-30 19:16:19Z
so u can estimate the string size
19:16
printf can't do that
19:16
at compile time at least
19:16
string streams have this too, additionally they don't need to replace the "{}"
19:17
they can just throw it against the string after each other
19:17
i guess u couldℒ️ write std::format similary fast by creating a stream internally
19:17
rust format! is a macro, so it could do that too
19:17
i dunno if it does tho
19:17
anyway if x == 10 { expression; } is booty cheeks
19:18
why mandatory brackets
19:18
why can't i do parentheses or brackets to disambiguate test condition from statement body
Avatar
Jupstar βœͺ 2023-05-30 19:18:19Z
bcs u dont have the () brackets
19:18
i think that's one of the nicest rust syntax
Avatar
it's foul
Avatar
Jupstar βœͺ 2023-05-30 19:18:50Z
bcs also important in rust {} isnt just a scope
19:18
it's an expression
19:19
u can return stuff from it
19:19
without return tho
Avatar
it also creates inconsistent branching syntax since functions have parentheses
Avatar
Jupstar βœͺ 2023-05-30 19:19:13Z
{ 1 }
19:19
that part is neat
19:20
a more logical ternary operator
Avatar
Jupstar βœͺ 2023-05-30 19:20:34Z
i think more ugly is if u have to set the generic explicitly e.g. let's assume u need generic for unknown reason: std::cmp::max::<i32>(2, 3)
19:20
looks weird af xD
Avatar
let's fucking gooooo
19:24
ddnet magnet arrived
19:24
i didn't realize he sent it πŸ˜ƒ
Avatar
Jupstar βœͺ 2023-05-30 19:24:13Z
wow, how long did it take?
19:24
20 years? xd
Avatar
Avatar
Ewan
it's foul
u will learn in time
19:25
to apreciate rust syntax
Avatar
Avatar
Ewan
it also creates inconsistent branching syntax since functions have parentheses
nah
19:25
parenthesis are in fact bloat
19:25
in ifs
19:26
also in rust everything is an expression
Avatar
we just got a parking ticket for somewhere neither my mom, sister or i were on the day it's cited
19:34
the fuck
Avatar
Jupstar βœͺ 2023-05-30 19:35:41Z
is it even real? xd
Avatar
Avatar
Robyt3
@Jupstar βœͺ @cyberFighter "Show info" has a more hidden feature when selecting quad layers: it shows a separate pivot point for the envelope points associated with it so you can more easily position quads for animations. You can't select multiple of those points at the same time. Maybe there are other bugs though, because this feature is so well hidden and therefore not tested at lot.
close that issue https://github.com/ddnet/ddnet/issues/6513, pretty sure its just show info
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
Avatar
is * still used for getting iterator values
Avatar
Avatar
Jupstar βœͺ
is it even real? xd
it’s actually an overdue notice for the fictitious ticket
19:41
addressed to my mom but the plate number is none of ours and we were never there lol
19:41
$100 fine $100 late penalty
19:41
ridiculous
Avatar
ws-client BOT 2023-05-30 19:44:59Z
<ChillerDragon> @admins will i get banned for this client mod? xd
banhammer 1
19:45
<ChillerDragon> it highlights spaikes
banhammer 1
19:45
<ChillerDragon> because when i get tired i always run into spikes on silex maps
banhammer 1
Avatar
???????????
Avatar
ws-client BOT 2023-05-30 19:47:56Z
<ChillerDragon> its really useful
banhammer 1
Avatar
banhammer 1
Avatar
ws-client BOT 2023-05-30 19:48:03Z
<ChillerDragon> to not brain afk jump into spike
19:48
<ChillerDragon> it only hights those with direct air line
19:48
<ChillerDragon> nothing behind walls
Avatar
ok i will make a map and hide spikes behind walls
Avatar
ws-client BOT 2023-05-30 19:48:43Z
<ChillerDragon> then they are not dangerous
19:48
<ChillerDragon> mostl
19:48
<ChillerDragon> y
Avatar
and a speeder
Avatar
ws-client BOT 2023-05-30 19:48:57Z
<ChillerDragon> yikes
Avatar
ws-client BOT 2023-05-30 19:51:06Z
<ChillerDragon> i can also toggle the behind walls cff
19:51
<ChillerDragon> cfg
Avatar
Avatar
ws-client
if you can get banned for having a hook/hammer radius then this is probably an offence
Avatar
ws-client BOT 2023-05-30 19:51:29Z
<ChillerDragon> oh shit there were bans for that?
Avatar
from what i remember
Avatar
how u become purple?
Avatar
you join spec
Avatar
ws-client BOT 2023-05-30 19:52:18Z
<ChillerDragon> isnt ddnet client showing hookline
Avatar
no in the diskord
Avatar
(the ones with the Dev role are)
19:52
voxel is dev?
Avatar
Avatar
Voxel
if you can get banned for having a hook/hammer radius then this is probably an offence
hammer got that janky ass hitbox
19:54
maybe its refering to the grenade thing but
19:54
still
Avatar
what is that yellow thing
Avatar
does hookcoll not pre-calculate
Avatar
it doesnt
Avatar
Avatar
Ewan
how u become purple?
contributing to ddnet
Avatar
actually it does kinda
Avatar
the role doesnt mean anything
19:54
as a concept
Avatar
just that u made some contributions
Avatar
hammer radius
Avatar
Avatar
Ewan
does hookcoll not pre-calculate
it just shows the max distance of the hook
Avatar
it calculates whether or not it will hit something
19:55
just as cheats
Avatar
doesnt take ur speed tho
Avatar
Avatar
cyberFighter
xpanic shotgun preview
i had design doc on xxxpanic that had like 10-20 new weapons and new buildings concepts
20:00
lost it five years ago duh
Avatar
Avatar
ws-client
you'll just follow red lines out of tiredness now troll
Avatar
Avatar
gerdoe
i had design doc on xxxpanic that had like 10-20 new weapons and new buildings concepts
new buildings to abuse
20:01
also 10-20 is just bloat honestly
Avatar
nah it was bounded to your level so you would be forced to upgrade every time
Avatar
ws-client BOT 2023-05-30 20:03:11Z
<ChillerDragon> @Chairn omg pls no
Avatar
Avatar
gerdoe
nah it was bounded to your level so you would be forced to upgrade every time
but grinding in xpanic is so slow
Avatar
like you couldnt carry more than three weapons besides hammer and pistol
Avatar
does match fail on compile if it doesn't have a catch-all like y => {} or _ => {} or does it do something else
20:03
warn & use the latter or something
Avatar
Avatar
cyberFighter
but grinding in xpanic is so slow
even with the exp bug
Avatar
Avatar
cyberFighter
but grinding in xpanic is so slow
nah there was another level system that wasn't that boring
Avatar
Avatar
Ewan
does match fail on compile if it doesn't have a catch-all like y => {} or _ => {} or does it do something else
match requires all branches to be covered
Avatar
not bleh
Avatar
Avatar
cyberFighter
even with the exp bug
nvm scratch that, i forgot how slow leveling is in tw mods in general
Avatar
it prevents bugs
20:04
also
Avatar
doesn't have to have a catch-all btw
20:04
enums you can cover completely
Avatar
and if u know something is unreachable u can do
Avatar
idk i think it should just warn
Avatar
_ => unreachable!()
20:05
and it will panic if it ever happens
20:05
and
Avatar
IF and ONLY IF
20:05
ur super sure
20:05
u can use unsafe
Avatar
wait maybe i don't want panic
Avatar
Avatar
cyberFighter
nvm scratch that, i forgot how slow leveling is in tw mods in general
also when we ran xpanic server with quantum people haven't complained about that
20:05
cuz vip and cuz huge online
Avatar
unsafe { unreachable_unchecked!()}
Avatar
can't we runtime assert and move on with life
20:05
or console warn or smth
Avatar
Avatar
gerdoe
cuz vip and cuz huge online
vip is p2w
Avatar
Avatar
Ewan
can't we runtime assert and move on with life
yeah, u can do that
Avatar
Avatar
cyberFighter
vip is p2w
not that hard tho
Avatar
Avatar
Ewan
idk i think it should just warn
You can do whatever you want in that branch. The point is you clearly have to think about every case and make a conscious decision
Avatar
you could play more than average vip and get the same amount of exp
Avatar
so what if you add an enum value to the definition and forget to add it to a match that has {} => unreachable!(), does it tell u about that?
Avatar
pretty sure it gives double upgrades
Avatar
Avatar
Ewan
so what if you add an enum value to the definition and forget to add it to a match that has {} => unreachable!(), does it tell u about that?
u cant forget
20:07
cuz code wont compile
20:07
swag
Avatar
it had exp bonus and something that i don't remember
Avatar
Avatar
Ryozuki
u cant forget
um, you can if there is a catch-all
Avatar
that is the catch all
20:07
will it warn
20:07
if it knows
Avatar
It won't
Avatar
Enums I usually cover completely for this reason
Avatar
yeah u should
Avatar
in cpp if u want to cover all bases u omit default: and compiler will usually tell you that ur missing a possible value
20:08
match has way more syntax
20:08
than what u know now
Avatar
yea i see it has like
20:08
| and if
20:08
seems super powerful
20:08
big fan
Avatar
As the last case I usually have all the unreachable ones or'd together
Avatar
Avatar
Ewan
| and if
and another
20:08
the @
Avatar
Avatar
gerdoe
it had exp bonus and something that i don't remember
ok but did the server have ultimate vip too
Avatar
u can also pattern match ranges
Avatar
..? or smth (edited)
20:10
let x = 2; match x { e @ 1 ..= 5 => println!("got a range element {}", e), _ => println!("anything"), }
Avatar
no parentheses on e @ 1 ..= 5 is so weird to me atm
Avatar
Avatar
cyberFighter
ok but did the server have ultimate vip too
no
Avatar
To bind the matched value of a pattern to a variable, use the syntax variable @ subpattern. For example, the following binds the value 2 to e (not the entire range: the range here is a range subpattern).
Avatar
why only 2
20:11
wouldn't it be 2,3,4
20:11
= e
Avatar
if let Person {name: ref person_name, age: 18..=150 } = value { }
20:11
u can also pattern match with if lets
Avatar
My favourite RFC
Avatar
Avatar
Ryozuki
if let Person {name: ref person_name, age: 18..=150 } = value { }
cool
Avatar
Avatar
Ewan
why only 2
because x is 2 duh
20:12
i wasn't looking there
Avatar
Avatar
cyberFighter
ok but did the server have ultimate vip too
secounds
Avatar
but if x was 3 or 4 it would still be e?
Avatar
Avatar
fokkonaut
secounds
true
Avatar
and how to make inclusive
Avatar
oh you are not talking about my favourite RFC
20:13
This is a tracking issue for the RFC "if let guard" (rust-lang/rfcs#2294). Steps: Implement the RFC (implemented in #79051) Adjust documentation (see instructions on forge) Stabilization ...
20:13
if let in match guard
Avatar
thought that was drake for a moment
Avatar
Avatar
Ewan
but if x was 3 or 4 it would still be e?
ye
Avatar
excellent
20:14
cuz the =
20:14
1 ..= 5
20:14
[1,5]
20:14
1 ..5
20:14
[1,5)
Avatar
=..= (1,5)?
20:15
funny rat face
Avatar
1 is inclusive always
20:15
xd
20:15
algebr
Avatar
=..= konsti
Avatar
let x = 34isize; let x = 34usize; why not let x = 34i/let x = 34u
20:21
cuz that doesnt mean anything
20:21
u have
20:21
i8 i16 i32 i64 i128 isize
20:21
and the unsigned variants
20:22
usize is used for indexing
20:22
isize for ptr offset shenanigans
Avatar
ws-client BOT 2023-05-30 20:26:29Z
<ChillerDragon> can we increase max zoom to cover all of Back In Time 2 please?
Avatar
5 characters for a literal specifier is crazy
Avatar
Avatar
Ewan
5 characters for a literal specifier is crazy
????????
20:31
long long double
20:31
16 chars
20:32
also rust has strong type inference
Avatar
Avatar
Ryozuki
long long double
f64 in rust btw
Avatar
std::float64_t
Avatar
Avatar
Ryozuki
long long double
auto x = 34L
Avatar
let is shorter
20:33
ler x = 32i64;
20:33
god
20:33
i cant type
Avatar
I think @Ewan was talking about the suffix
Avatar
Avatar
Ewan
std::float64_t
bloat
Avatar
also cpp23 isn't real but auto x = 32i64;
20:34
they copied rust
20:34
they know the better lang
20:34
gotta catch up
Avatar
(btw long long double isn't even a thing :D)
20:36
idk why i remembered it
Avatar
Atleast it's not a thing in C11 and C++17. I don't remember if it was ever added
Avatar
Jupstar βœͺ 2023-05-30 20:37:58Z
i never understod why ppl use these types
20:38
instead of uint32_t etc. (edited)
Avatar
Sometimes you want a fixed bitwidth
20:38
e.g. a 64 bit mask
Avatar
Jupstar βœͺ 2023-05-30 20:38:41Z
so u'd use uint64_t
Avatar
Ah you don't understand why people would use non-specific bit-width types?
Avatar
Jupstar βœͺ 2023-05-30 20:39:12Z
yeah i guess i was missing a instead xD
Avatar
Sometimes you don't care about bit width but care only about range. It lets the compiler do it's thing
Avatar
Ya i use uint for iteration and stuff
Avatar
Jupstar βœͺ 2023-05-30 20:40:06Z
u can use auto
20:40
or simply int32_t
Avatar
imagine having c style for loops
20:40
kek
Avatar
Jupstar βœͺ 2023-05-30 20:40:24Z
still better than it suddenly getting 16bits xD
Avatar
e.g. I want to represent numbers up to 2^32, if I force uint32_t, it might have to waste memory or use inefficient instructions on a 64bit system
20:41
i think its better if its more deterministic
20:41
idk the word
20:41
langs should allow i{1-20320312032101}
20:41
like llvm
20:42
The integer type is a very simple type that simply specifies an arbitrary bit width for the integer type desired. Any bit width from 1 bit to 223(about 8 million) can be specified. Syntax: iN
Avatar
You can't know what sort of integer is efficient to do operations with on every system, the compiler can know that since it knows the target
Avatar
Jupstar βœͺ 2023-05-30 20:43:51Z
Avatar
It even gives you the option to optimize for what you want. If you think you know better than the compiler then you are free to pick your own
Avatar
Avatar
Jupstar βœͺ
Click to see attachment πŸ–ΌοΈ
Jupstar βœͺ 2023-05-30 20:45:23Z
what do u guess how did gcc implement them? πŸ˜‰
20:45
on 64bit
Avatar
Which 64bit?
Avatar
Jupstar βœͺ 2023-05-30 20:45:50Z
x64
Avatar
They all probably map to int32_t until the 64bit variants
Avatar
Avatar
Ryozuki
imagine having c style for loops
rarely necessary
Avatar
Jupstar βœͺ 2023-05-30 20:47:06Z
typedef signed char int_fast8_t; typedef long int int_fast16_t; typedef long int int_fast32_t; typedef long int int_fast64_t;
20:47
all 64bit except int8
20:47
same for unsigned
Avatar
See, I don't know better than the compiler. Better leave it to the compiler then
Avatar
Jupstar βœͺ 2023-05-30 20:48:31Z
after your logic: everytime u use an int it's worse than what the compiler would do
20:48
(ofc only in theory)
20:48
if we believe this typedefs
Avatar
No, if you pick the one with the correct range, the compiler will pick the proper bitwidth required on your target
Avatar
Jupstar βœͺ 2023-05-30 20:49:58Z
anyway good night πŸ₯±
20:50
auto i; i < deeznuts; i++
Avatar
No please, before you go please let me know of the optimal values of those for sparc64 and riscv64 too
Avatar
Jupstar βœͺ 2023-05-30 20:50:44Z
i dont have the header files installed sry
Avatar
Avatar
Jupstar βœͺ
why dont u use string streams
they're very slow AFAIK
Avatar
Avatar
Jupstar βœͺ
string streams have this too, additionally they don't need to replace the "{}"
I want to see a benchmark for these claims. I have seen opposite benchmarks, that snprintf was a lot faster than std::stringstream
Avatar
same here, because each << is a separate call
21:07
while printf is called only once and thus makes a single allocation
Avatar
I don't know why it's faster, but the benchmark said it was
Avatar
Avatar
Ewan
seeing rust println format syntax just makes me wish std::format was real
it is real, you just need to have gcc 13 or clang 14 pepeW
Avatar
Jupstar βœͺ 2023-05-30 21:09:30Z
Makes no sense that they are faster. If they are, then it's BCS of bad impl
21:09
Especially printf
Avatar
It's probably because stringstreams are just optimized worse, possibly because it'd require lots of devirtualization which compilers are bad at
21:10
Atleast that's my rough guess
Avatar
Avatar
Jupstar βœͺ
Makes no sense that they are faster. If they are, then it's BCS of bad impl
glad we're a science where we can easily run experiments. if the data will say that snprintf is faster, then it's apparently faster
21:11
if that's the result, then it doesn't matter that it should be slower, it just wouldn't be
Avatar
Jupstar βœͺ 2023-05-30 21:11:52Z
?
21:12
What kind of argument is that
21:12
BCS unordered map sucks. Hashmaps suck or what
Avatar
no. unordered_map is slow. that's all I'm saying (edited)
21:12
std::stringstream was also slow some time ago
21:13
I don't know if that changed
Avatar
Why does it matter which one of them looks faster? If you bench them apparently snprintf is faster than stringstream
Avatar
or at least was faster some years ago
Avatar
python print is faster
21:13
gigachad
21:13
rust println may be slower cuz it locks
21:14
iirc
21:14
idk if c++ does this
Avatar
https://www.zverovich.net/2020/06/13/fast-int-to-string-revisited.html here is a dude doing just int to string, which is a meh benchmark but even here std::ostringstream fell behing sprintf
Avatar
rust println! is slower than python prints
Avatar
the lock
21:14
u can acquire it and use write! iirc
21:14
then its faster i think
Avatar
also the line buffering, I think
Avatar
OR, don't acquire the lock, do an unsafe write, is fastest
Avatar
but well with rust u wotn see garbage prints in threaded env
Avatar
only if you use println! consistently
Avatar
I think you won't see them in C either
21:16
if you use printf consistently?
21:16
with \n (edited)
Avatar
yeah \n flushes
Avatar
I actually don't know if that's guaranteed, but that is how it is on a lot of platforms
Avatar
oh yea, I'm definitely talking about impl details right now
21:17
threading is no longer an impl detail since c11/c++11
Avatar
Avatar
heinrich5991
oh yea, I'm definitely talking about impl details right now
I think it might be like actually guaranteed in rust though, no?
Avatar
it's ISO C behaviour
Avatar
Jupstar βœͺ 2023-05-30 21:18:20Z
Random C++ io benchmark. GitHub Gist: instantly share code, notes, and snippets.
21:18
But can't find the string benchmarks
Avatar
When a stream is line buffered, characters are intended to be transmitted to or from the host environment as a block when a new-line character is encountered.
21:19
its line buffered by def i think
Avatar
intended
Avatar
ISO C99 section 7.19.3/3
Avatar
is that a guarantee?
Avatar
Support for these characteristics is implementation-defined, and may be affected via the setbuf and setvbuf functions.
21:19
xd
21:20
printf prints to standard output, which is line-buffered by default when reading from a tty on UNIX variants.
21:20
idk
21:20
cant find a rly good source
21:20
google is rly bad at printf
21:21
cuz its just nobos asking
21:21
anyway time to sleep
Avatar
Avatar
Learath2
https://www.zverovich.net/2020/06/13/fast-int-to-string-revisited.html here is a dude doing just int to string, which is a meh benchmark but even here std::ostringstream fell behing sprintf
Jupstar βœͺ 2023-05-30 21:26:31Z
Not in the second
Avatar
I can reproduce this example, 718ms iostream, 365ms cstdio, 230ms iostream_unsynced
Avatar
Jupstar βœͺ 2023-05-30 21:27:18Z
It also depends on if u do a heap allocation which is ofc slow Anyway
Avatar
Learath2 seems to do heap alloc in both cases
Avatar
Jupstar βœͺ 2023-05-30 21:28:16Z
My argument is Type guarantees let u optimize it. Printf will always need to parse the format string if it's not moved to consteval
Avatar
the argument is irrelevant, unless you talk about a non-existant implementation
21:28
the benchmark proves it's currently slower with the actual implementations
Avatar
Jupstar βœͺ 2023-05-30 21:29:34Z
But u can control the stream base class
Avatar
If we are going to talk hypotheticals, aren't both of them doing the exact same thing, with the exact same types and constants so should both optimize to the exact same thing?
Avatar
Avatar
Learath2
If we are going to talk hypotheticals, aren't both of them doing the exact same thing, with the exact same types and constants so should both optimize to the exact same thing?
ah true, that too
21:30
gcc optimizes printf("%s\n", string); to puts(string);
21:30
in the same way, it could optimize snprintf(buf, sizeof(buf), "%d", integer); to the fastest integer conversion routine
Avatar
Avatar
Jupstar βœͺ
i guess u couldℒ️ write std::format similary fast by creating a stream internally
Jupstar βœͺ 2023-05-30 21:31:07Z
Wow cool guys
21:31
Finally u understand
Avatar
Why does it have to end up as a stream?
Avatar
void optimize_me(const char *string) { printf("%s\n", string); }
Avatar
I guess(tm) you could make std::ostringstream similarly fast by creating a format string internally
Avatar
Jupstar βœͺ 2023-05-30 21:32:46Z
As said printf can't beat CPP here. If it does, it's because CPP implementation suck. Play around with variadic templates
21:33
And u understand. U can in fact even parse constants at compile time already
Avatar
What I don't follow is why do you take this as an a priori? It's not really obvious to me why stringstream should be faster?
Avatar
Jupstar βœͺ 2023-05-30 21:33:49Z
How long is the longest int?
21:34
As string
Avatar
on x86-64 9 or 10 characters? idk off the top of my head
21:35
assuming int64_t
Avatar
Jupstar βœͺ 2023-05-30 21:35:13Z
How long is the longest vararg
21:36
If the compiler knows what's dealing with it has the potential to optimize it. I'm not saying it does
Avatar
so you're saying a sufficiently smart compiler might make it faster
Avatar
Jupstar βœͺ 2023-05-30 21:37:25Z
Comparing it to a c function
21:37
That is not allowed to be optimized. Yes
Avatar
so an optimized C++ function might be faster than an unoptimized C function
Avatar
Jupstar βœͺ 2023-05-30 21:38:14Z
I don't mean the implementation
21:38
I mean the information it has
21:38
U know what I mean. I really need to sleep now
Avatar
good night πŸ™‚
Avatar
A sufficiently smart compiler is also allowed to just look at the arguments before putting them into whatever format varargs require on the platform
Avatar
Update SDL_scancode.h which is used by gen_keys.py to generate the list of keys enum (keys.h) and the list of key names (keynames.h) and regenerate the lists. This adds support for 6 uncommonly used keys (audiorewind, audiofastforward, softleft, softright, call, endcall).

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especiall...
Avatar
cde1143 Regenerate key lists with latest SDL version - Robyt3 c18be52 Merge #6691 - bors[bot]
Exported 1,410 message(s)