Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.org/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-09-01 00:00:00Z and 2023-09-02 00:00:00Z
Avatar
why do i have the urge to buy 64GB of ram
03:38
those 2 slots are looking at me with hungry eyes
03:38
64 more*
Avatar
Avatar
Ryozuki
#[allow(clippy::cast_precision_loss)] fn color_code_base(col: u32, alpha: bool) -> HSLAColor { let a = if alpha { ((col >> 24) & 0xFF) as f32 / 255.0f32 } else { 1.0f32 }; let x = ((col >> 16) & 0xFF) as f32 / 255.0f32; let y = ((col >> 8) & 0xFF) as f32 / 255.0f32; let z = (col & 0xFF) as f32 / 255.0f32; HSLAColor { x, y, z, a } }
pascal?
Avatar
Jupstar βœͺ 2023-09-01 06:33:58Z
It's rust. But rust is indeed similar in few things
06:34
I had pascal in school xdd
Avatar
Fortran
06:34
Lisp
Avatar
COBOL
06:34
Xd
Avatar
Jupstar βœͺ 2023-09-01 06:34:52Z
😬
Avatar
Scheme
Avatar
Jupstar βœͺ 2023-09-01 06:34:58Z
FFR
Avatar
Jupstar βœͺ 2023-09-01 06:35:01Z
brownbear
Avatar
True ffr
06:35
But I'm at gym rn
06:35
Wait till 11
Avatar
Jupstar βœͺ 2023-09-01 06:35:21Z
I always forget my questions xd
Avatar
Jupstar βœͺ 2023-09-01 06:35:26Z
Yesterday i had one
Avatar
chillerdragon BOT 2023-09-01 06:35:47Z
No. It was too unexpected and random. Did you write that by hand? :D
Replying to @Jupstar βœͺ ChillerDragon did you fell motivated by my motivational speech?
Avatar
Jupstar βœͺ 2023-09-01 06:36:01Z
Yes
Avatar
chillerdragon BOT 2023-09-01 06:36:07Z
Wow
Avatar
prolog?
Avatar
chillerdragon BOT 2023-09-01 06:36:10Z
Such effort
Avatar
Jupstar βœͺ 2023-09-01 06:36:14Z
I hoped you start a new programming language
Avatar
chillerdragon BOT 2023-09-01 06:36:23Z
I got the rust part
06:36
yes
Avatar
Jupstar βœͺ 2023-09-01 06:37:10Z
Do u don't have time for other stuff
06:37
If you know what i mean 😏
Avatar
Avatar
Jupstar βœͺ
I hoped you start a new programming language
I'm trying
06:39
edlang
06:39
@Jupstar βœͺ do u use variable shadowing a lot in rust
06:40
I do and I think it's even idiomatic
06:40
It falls in place clean
Avatar
chillerdragon BOT 2023-09-01 06:40:51Z
Can’t stop me now!
Replying to @Jupstar βœͺ If you know what i mean 😏
06:41
Im basically finished
06:41
Just polish is left
06:42
Isn’t shadowing encouraged in the rust book? I thought it’s is idiomatic.
Replying to @Ryozuki I do and I think it's even idiomatic
06:42
Ah red wrong
06:43
Yes it’s idiomatic :D
06:43
Shawoing is poor man’s mutable variables :P
Avatar
Nah it's mutating a variable type
Avatar
chillerdragon BOT 2023-09-01 06:46:07Z
:D
Avatar
Avatar
Ryozuki
@Jupstar βœͺ do u use variable shadowing a lot in rust
Jupstar βœͺ 2023-09-01 06:50:29Z
It's definitely different to other languages. I often do it when unwrapping or pattern matching
Avatar
933b4ad Fix chat history disappearing with cl_showchat 1 - Robyt3 cfcc2ff Remove unused include - Robyt3 ddb9cdd Use DefaultTextColor/DefaultTextOutlineColor - Robyt3 4c593bc Merge pull request #7117 from Robyt3/Chat-Clear-Fix - def-
Avatar
ChillerDragon BOT 2023-09-01 08:37:54Z
pheww fakin fonts robsti
08:38
i wanted to do 0.7ing today -.-
08:38
didnt know the streamer pr would be such a hazzle
Avatar
good job robsti
Avatar
ChillerDragon BOT 2023-09-01 08:38:42Z
-.-
Avatar
what streamer pr?
Avatar
ChillerDragon BOT 2023-09-01 08:38:57Z
#7087
Avatar
chillerbot1 BOT 2023-09-01 08:38:57Z
Made for the top1 teeworlds tiktoker teeworldseasy. Who is live 24/7 and occasionally leaking his save password. streamer.mp4 https://www.youtube.com/sho...
Avatar
ChillerDragon BOT 2023-09-01 08:43:29Z
royowo u like the pr?
Avatar
chiller
Avatar
ChillerDragon BOT 2023-09-01 08:43:59Z
da
Avatar
do u know if u can do a freeze jump in a 5 tile freeze
08:44
freeze jump is only in 1 tile right
Avatar
ChillerDragon BOT 2023-09-01 08:44:28Z
maybe
08:44
i think i saw 2tile
08:44
physics
08:44
i reverted this cuz
Avatar
ChillerDragon BOT 2023-09-01 08:44:49Z
you just gotta be really fast
Avatar
i dont think u can freeze jump 5 deep freeze tiles
Avatar
ChillerDragon BOT 2023-09-01 08:45:07Z
who added 5 tiles?
Avatar
I think the rule is that you need to have enough speed to touch the ground before the freeze tile gets processed
Avatar
ChillerDragon BOT 2023-09-01 08:45:27Z
yea question is can you be that fast?
Avatar
So maybe it is possible? Idk
Avatar
ChillerDragon BOT 2023-09-01 08:45:51Z
but its weird 1 tile freeze jump you can do while being slow ass
08:45
and 2 tile doesnt work even if you super fast
Avatar
There might be some other thing at play too. I'm only thinking of the simplest way it could work
Avatar
ChillerDragon BOT 2023-09-01 08:46:45Z
rng
Avatar
Unlikely πŸ˜„
Avatar
ChillerDragon BOT 2023-09-01 08:47:06Z
im curious who added the 5 tiles maybe that person has some epic demo
08:47
it also depends on your coordinates
08:47
i remember im corneum had to move a part around the map to make a freeze jump 10/10 consistent xd
08:47
and im not talking about far lands
08:48
just a few hounderd tiles away from spawn
08:48
where if you hit the ceiling to get the exact same speed you can freeze jump 10/10 in one place but if that part is moved a bit it does not work anymore
08:49
i can already see heinrich drafting his next physics change where freezejumps will work 10/10 everywhere haha
08:53
@Ryozuki wait i got another angle! What if that person meant the freeze is 1 tile high but the jump from the floor is 5 jumps high?
08:53
nah it should be 7 right?
08:53
its a full jump
08:53
nah the sentence is pretty unambigious
08:53
im telling you this dood found the magic coordinates for the 5 tile bungee jump
Avatar
Avatar
ChillerDragon
im curious who added the 5 tiles maybe that person has some epic demo
that person is a web3 entuthiast
08:58
sorry i couldnt help but read his discord bio xd
Avatar
nice meme snail
08:59
ur a dev now
Avatar
ChillerDragon BOT 2023-09-01 09:01:13Z
xd
09:01
whos bio?
09:01
wot web3
Avatar
nothing xd
Avatar
ChillerDragon BOT 2023-09-01 09:02:05Z
omagawd
Avatar
the discord user description
09:02
it said web3 moderator
09:02
i just found it funny
Avatar
ChillerDragon BOT 2023-09-01 09:02:24Z
2nd coffe and havent even open vscode yet xd
09:02
which user?
09:06
btw i also had 2nd coffee
09:06
one before gym and one after
09:06
becoming a ddnet chad
Avatar
Avatar
Ryozuki
one before gym and one after
Gym??? What's next, will you tell me you touch grass?????
09:07
Blasphemy
Avatar
u already knew i go to gym
09:07
but i havent touched grass yet
09:07
Sticker
09:08
Sticker
Avatar
草
Avatar
@Jupstar βœͺ where is ur rust question
Avatar
Avatar
Ryozuki
@Jupstar βœͺ where is ur rust question
Can coke be used to clean rust?
Avatar
never tried
Avatar
ChillerDragon BOT 2023-09-01 09:11:09Z
xd
09:11
daily gentoo emerge
09:11
with coffee in hand
09:11
admiring the beauty of computing
09:12
BASED
09:13
This post is part of the Writing a JVM in Rust series. I have written a JVM in Rust A JVM in Rust part 2 - The class files format A JVM in Rust part 3 - Parsing class files A JVM in Rust part 4 - The Java bytecode A JVM in Rust part 5 - Executing instructions ⬅️ this post In this post, I will discuss how RJVM executes the Java bytecode.
Avatar
ChillerDragon BOT 2023-09-01 09:13:51Z
java pog
09:14
the jvm is so old and heavily optimized i doubt any new implementation will stand a chance
Avatar
not everything is made for the sake of competing
09:15
its fun to do it for the sake of doing it
Avatar
Avatar
Ryozuki
@Jupstar βœͺ where is ur rust question
Jupstar βœͺ 2023-09-01 09:20:14Z
Mhh, dunno. What is the most exotic, yet useful feature you can think of
Avatar
Avatar
ChillerDragon
the jvm is so old and heavily optimized i doubt any new implementation will stand a chance
Isn't there already 2 that perform well? HotSpot and OpenJ9
Avatar
Jupstar βœͺ 2023-09-01 09:21:16Z
I'm always impressed when i remember chiller is a Java developer
Avatar
Avatar
Jupstar βœͺ
Mhh, dunno. What is the most exotic, yet useful feature you can think of
oh
Avatar
Jupstar βœͺ 2023-09-01 09:21:44Z
Imagine I'm secretly a python dev xd
Avatar
Manually manage memory through raw pointers.
09:22
pointer provenance
09:22
its still a nightly feature
09:22
09:22
Avatar
Jupstar βœͺ 2023-09-01 09:23:06Z
Interesting. Have to read xd
Avatar
ye go read it
09:23
its the future
09:23
Feature gate: #![feature(strict_provenance)] read the docs get the stable polyfill subtasks This is a tracking issue for the strict_provenance feature. This is a standard library feature that gover...
09:23
This is an unofficial experiment to see How Bad it would be if Rust had extremely strict pointer provenance rules that require you to always dynamically preserve provenance information. Which is to say if you ever want to treat something as a Real Pointer that can be Offset and Dereferenced, there must be an unbroken chain of custody from that pointer to the original allocation you are trying to access using only pointer->pointer operations. If at any point you turn a pointer into an integer, that integer cannot be turned back into a pointer. This includes usize as ptr, transmute, type punning with raw pointer reads/writes, whatever. Just assume the memory "knows" it contains a pointer and that writing to it as a non-pointer makes it forget (because this is quite literally true on CHERI and miri, which are immediate beneficiaries of doing this).
09:25
A secondary goal of this project is to try to disambiguate the many meanings of ptr as usize, in the hopes that it might make it plausible/tolerable to allow usize to be redefined to be an address-sized integer instead of a pointer-sized integer. This would allow for Rust to more natively support platforms where sizeof(size_t) < sizeof(intptr_t), and effectively redefine usize from intptr_t to size_t/ptrdiff_t/ptraddr_t (it would still generally conflate those concepts, absent a motivation to do otherwise). To the best of my knowledge this would not have a practical effect on any currently supported platforms, and just allow for more platforms to be supported (certainly true for our tier 1 platforms).
>
A tertiary goal of this project is to more clearly answer the question "hey what's the deal with Rust on architectures that are pretty harvard-y like AVR and WASM (platforms which treat function pointers and data pointers non-uniformly)". There is... weirdness in the language because it's difficult to talk about "some" function pointer generically/opaquely and that encourages you to turn them into data pointers and then maybe that does Wrong Things.
>
The mission statement of this experiment is: assume it will and must work, try to make code conform to it, smash face-first into really nasty problems that need special consideration, and try to actually figure out how to handle those situations. We want the evil shit you do with pointers to work but the current situation leads to incredibly broken results, so something has to give.
Avatar
ChillerDragon BOT 2023-09-01 09:26:09Z
im not a java developer -.-
Avatar
Some time ago, I wrote a blog post about how there’s more to a pointer than meets the eye. One key point I was trying to make is that just because two pointers point to the same address...
Avatar
Jupstar βœͺ 2023-09-01 09:28:18Z
Yes you are
Avatar
chiller is the declared ddnet java dev
Avatar
Jupstar βœͺ 2023-09-01 09:28:42Z
True
09:29
Chiller java Heinrich Python Ryo rust Me shading language Learath c
Avatar
heinrich python xd
09:30
he also knows lot of rust
09:30
maybe more
09:30
probs more
09:30
im a nobo
Avatar
Jupstar βœͺ 2023-09-01 09:30:44Z
Yes, but he ain't showing his hype so much xd
09:31
And he protects Python xddd
Avatar
Hello math heads, what's the best way to calculate a percentage between 0-100% from a few numbers? I want to show how much those numbers agree with each other, for example [2,2,2,2] = 100%, [0, 100] = 50% or 0%?
09:39
The standard deviation doesnt seem to be it
Avatar
In information theory, linguistics, and computer science, the Levenshtein distance is a string metric for measuring the difference between two sequences. Informally, the Levenshtein distance between two words is the minimum number of single-character edits (insertions, deletions or substitutions) required to change one word into the other. It is...
Avatar
Heard of that before... I'll look into it
Avatar
Jupstar βœͺ 2023-09-01 09:40:30Z
Ryo had that tab open xdd
Avatar
ChillerDragon BOT 2023-09-01 09:42:03Z
xd
Avatar
quick google
09:42
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
09:42
but apparently
09:42
its pretty subjective
09:42
to what u consider similar
09:43
In mathematics and computer science, a string metric (also known as a string similarity metric or string distance function) is a metric that measures distance ("inverse similarity") between two text strings for approximate string matching or comparison and in fuzzy string searching. A requirement for a string metric (e.g. in contrast to string m...
Avatar
Jupstar βœͺ 2023-09-01 09:46:10Z
@Ryozuki would you rather use sha3 keccak Or blake2
Avatar
But that's for strings, not for lists of numbers
Avatar
strings are numbers
Avatar
fair
Avatar
Avatar
Jupstar βœͺ
@Ryozuki would you rather use sha3 keccak Or blake2
blake2 is faster i think
09:47
NIST created a competition for SHA-3, and it was Keccak that was crowned the champion. Since then, SHA-3 has received good adoption levels, but you'll also see BLAKE2 β€” one of the finalists β€” being used in many applications. Keccak won because it was fast, and where BLAKE2 was submitted too late to compete against it.
Avatar
Avatar
Ryozuki
blake2 is faster i think
Jupstar βœͺ 2023-09-01 09:47:58Z
Yep, but sha3 is told to be more secure. Even tho even sha2 is still secure xd
Avatar
this is not for passwords right xd
Avatar
Jupstar βœͺ 2023-09-01 09:48:26Z
It's for file hashes
09:48
gentoo uses blake2
09:48
so blake2
Avatar
Jupstar βœͺ 2023-09-01 09:48:56Z
Xd ok
Avatar
@Ryozuki i dont understand how i would adapt this to use a list of integers
Avatar
me neither
09:50
xd
09:51
i think u need to explain what u want
09:51
in reality
Avatar
Avatar
fokkonaut
Hello math heads, what's the best way to calculate a percentage between 0-100% from a few numbers? I want to show how much those numbers agree with each other, for example [2,2,2,2] = 100%, [0, 100] = 50% or 0%?
.
Avatar
Asking about your attempted solution rather than your actual problem
09:51
i mean the reason why u want to do that
Avatar
Jupstar βœͺ 2023-09-01 09:51:50Z
Sha3 might get acceleration support tho. Bcs its standard
Avatar
isnt sha2 accelerated
09:52
its secure enough and its files
Avatar
thats basically what i said, i have a list of numbers, so for example it could be a vote, and everyone votes a number, and then i just want to calculate an agreement @Ryozuki
09:53
explain more the vote thing
09:53
thats what i mean
Avatar
between 0 and 100%
Avatar
u simply count the votes on each number?
09:54
if people vote a number between 0 and 100 simply do the median or smth
Avatar
the numbers are between 0 and 15
09:55
and if the numbers are [2,2,3,1] the average is 2, but the agreement should look like 90% or whatever
09:59
im not a data scientist so
09:59
In statistics, the median absolute deviation (MAD) is a robust measure of the variability of a univariate sample of quantitative data. It can also refer to the population parameter that is estimated by the MAD calculated from a sample. For a univariate data set X1, X2, ..., Xn, the MAD is defined as the median of the absolute deviations from the...
09:59
xd
Avatar
ChillerDragon BOT 2023-09-01 10:02:38Z
foko wat u doin
Avatar
ChillerDragon BOT 2023-09-01 10:13:40Z
sus
Avatar
Avatar
fokkonaut
and if the numbers are [2,2,3,1] the average is 2, but the agreement should look like 90% or whatever
I would first normalize the numbers. So if the the max is 3 I would divide everything by 3 so max would be one (haven't thought any further yet)
Avatar
Avatar
fokkonaut
and if the numbers are [2,2,3,1] the average is 2, but the agreement should look like 90% or whatever
btw do you want the agreement to be based on 15 or to be relative?
10:38
Like if it's 2, 2, 2, 2 it's 100% agreement but that's without taking into acount that it could be 15, 15, 15, 15 which would aslo be 100% agreement
Avatar
Avatar
Mr.Gh0s7
Like if it's 2, 2, 2, 2 it's 100% agreement but that's without taking into acount that it could be 15, 15, 15, 15 which would aslo be 100% agreement
ye
10:42
same numbers always 100%
Avatar
Avatar
Jupstar βœͺ
Yep, but sha3 is told to be more secure. Even tho even sha2 is still secure xd
just use sha256, it's supported everywhere
Avatar
Jupstar βœͺ 2023-09-01 11:09:04Z
Nah, i want the future
Avatar
ChillerDragon BOT 2023-09-01 11:17:09Z
I was too lazy too open my bloated gui video editor so i spend 20 minutes on stackoverflow to manage my task with ffmpeg xd
11:19
jopsti can you pls build a easy to use blazingly fast curses video editor that does all the simple tasks and has a nice search and cool defaults
11:19
which can crop and cut videos remove sound add a sound track etc
Avatar
Jupstar βœͺ 2023-09-01 11:22:18Z
Is kdenlive bloated?
Avatar
Avatar
fokkonaut
same numbers always 100%
I'm on to smt dunno how correct it is though 😜
Avatar
Avatar
fokkonaut
Hello math heads, what's the best way to calculate a percentage between 0-100% from a few numbers? I want to show how much those numbers agree with each other, for example [2,2,2,2] = 100%, [0, 100] = 50% or 0%?
>>> def deviation(x): ... return np.exp(np.sum(-np.abs(np.log(x / np.median(x)))) / len(x)) ... >>> deviation([2,2,2,2]) 1.0 >>> deviation([2,2,3,1]) 0.7598356856515925 >>> deviation([2,2,3,2]) 0.9036020036098449
Avatar
ChillerDragon BOT 2023-09-01 11:47:42Z
@Jupstar βœͺ unless im hired by fucking netflix to cut an entire movie it feels overkill to launch this kdenbloat
Avatar
how long does it take to start?
Avatar
ChillerDragon BOT 2023-09-01 11:48:15Z
its a nice editor but not fun for super little tasks when operating on one clip
11:48
it takes about 1 second to start on my lapotp
11:48
it takes as long to start as ffmpeg takes to render the whole thing
11:49
and its full of gui where i have to use the mouse and click through menus to render a fakin video
Avatar
Avatar
ChillerDragon
it takes as long to start as ffmpeg takes to render the whole thing
did you factor in the amount of time to find the correct invocationn? πŸ˜‰
Avatar
ChillerDragon BOT 2023-09-01 11:50:07Z
no
11:50
that was the joke
11:50
i waste so much time on ffmpeg and i never remember the shit no matter how often i do it
11:50
thats why i need a ffmpeg wrapper where i can search human friendly terms such as "crop" "compress" "cut" and then use some sliders and input fields to adjust
Avatar
it sounds like chatgpt might perform well on this task
Avatar
Time to write a paper about it
Avatar
Jupstar βœͺ 2023-09-01 11:55:23Z
Well chiller, dunno what exactly you do. But if Video editors are bloat to edit a video. Then at least also say videos itself are bloat
11:56
Video is latin for i see xdd
Avatar
For programming related questions it's basically a coin-toss right now whether ChatGPT is correct or not: https://arxiv.org/abs/2308.02312
Over the last decade, Q&A platforms have played a crucial role in how programmers seek help online. The emergence of ChatGPT, however, is causing a shift in this pattern. Despite ChatGPT's popularity, there hasn't been a thorough investigation into the quality and usability of its responses to software engineering queries. To address this gap, w...
Avatar
Avatar
Robyt3
For programming related questions it's basically a coin-toss right now whether ChatGPT is correct or not: https://arxiv.org/abs/2308.02312
I would expect it to have a good performance on "how to cut in ffmpeg"-type questions
Avatar
Yeah, I think it works pretty good for making small command line scripts or writing individual commands
Avatar
which is what chillerdragon wants to do
Avatar
Jupstar βœͺ 2023-09-01 11:58:38Z
It's good in predicting the next word. So yeah. The more often these types of questions are asked or the task is mentioned in text form. The better it is
11:58
That's also why it's much better in js and python than rust
Avatar
ChillerDragon BOT 2023-09-01 12:02:06Z
@heinrich5991 i rather spin up kdenlive than use fakin ai
Avatar
Maybe kdenlive internally uses ChatGPT to generate its ffmpeg invocations? 😏
Avatar
Avatar
Jupstar βœͺ
That's also why it's much better in js and python than rust
rust is more complex too
Avatar
ChillerDragon: why not spin up AI to learn something?
Avatar
chiller where were ur docs about packets
12:05
?
Avatar
ChillerDragon BOT 2023-09-01 12:05:59Z
@fokkonaut check matrix
12:06
ryo version?
12:06
0.6 i assume xd
Avatar
Avatar
Ryozuki
rust is more complex too
Jupstar βœͺ 2023-09-01 12:07:21Z
But also if u don't know anything about logic? Xd
Avatar
ChillerDragon BOT 2023-09-01 12:07:32Z
@heinrich5991 i am waiting for libre ai that doesnt need phone num or has quotas and is pay2win. Also i somehow prefer stackoverlfow and docs over hallucinating AI.
12:07
i just dislike it smh a lot
Avatar
buy 100 gpus
Avatar
ChillerDragon BOT 2023-09-01 12:08:06Z
ryo wat u doin with packets?
Avatar
i wanna do a packet library in rust
Avatar
ChillerDragon BOT 2023-09-01 12:08:18Z
og
12:08
pog
Avatar
also ill try to fix huffman
12:08
i have teeint
Avatar
ChillerDragon BOT 2023-09-01 12:08:39Z
btw if you duckduckgo "teeworlds packet" its the first hit for me
Avatar
ill change rustyman to teehuff
12:08
then teenet
Avatar
Avatar
Ryozuki
i wanna do a packet library in rust
Some Teeworlds stuff in Rust.β„’. Contribute to heinrich5991/libtw2 development by creating an account on GitHub.
12:09
ChillerDragon: could you link my packet spec jsons btw?
Avatar
ChillerDragon BOT 2023-09-01 12:09:51Z
yea they are good
Avatar
oh epic
Avatar
ChillerDragon BOT 2023-09-01 12:10:06Z
idk where to link them
12:10
maybe on the main page
Avatar
Avatar
fokkonaut
ye
Avatar
@heinrich5991 is it autogenerated?
12:10
can u generate latest
Avatar
@Ryozuki yes
12:11
I can generate latest if you want
12:11
do you?
12:11
i like shiny new stuff
Avatar
sec
12:11
this automatically updates the wireshark dissector and the gamenet crate as well
Avatar
do u have a rust code generator already?
Avatar
yes
12:16
I have a rust crate
12:16
gamenet
12:16
it supports ddnet, teeworlds 0.6 and teeworlds 0.7 IIRC
Avatar
ok well if it exists
12:17
i lost motivation now xd
Avatar
oof (edited)
Avatar
ChillerDragon BOT 2023-09-01 12:17:35Z
yea ryo dont reinvent the weel
12:17
just pr some to libtw2
12:17
for example docs -.-
Avatar
libtw2 is awesome
12:18
but the code style just doesnt match with me xd
Avatar
ChillerDragon BOT 2023-09-01 12:19:01Z
bruv
Avatar
well i looked at it years ago
12:19
also there is fun in making ur own stuff
12:19
im gonna try to fix my rustyman tho
12:20
@heinrich5991 why u never published to crates.io?
Avatar
because I didn't want to make stability guarantees
Avatar
I'll probably publish to crates.io at some point
12:22
there's an issue for it, too
12:22
It would be helpful to me if you could upload the gamenet crates to crates.io to ease including them (not urgent, because there is a way to specify git dependencies in Cargo.toml, but would be nice...
Avatar
List of Resources related to DDNet and Teeworlds. This page tries to be as complete as possible feel free to add posts if you find something interesting. Where it makes sense, posts are sorted by creation date or the best approximation for it.
12:22
anything u see here missing
Avatar
Avatar
heinrich5991
I'll probably publish to crates.io at some point
maybe just publish the libraries u think help most others
12:23
the problem with git deps is u cant publish to crates with git deps
Avatar
what's the reason you want to publish to crates.io? ^^
12:25
I guess forever free hosting is nice
Avatar
cargo install ddnet-map-gen (edited)
12:26
and ye
12:26
more places
12:26
more visibility
Avatar
cargo install works with git urls as well
Avatar
i knew u would say that xd
Avatar
afaik
12:27
I don't like the flat namespace of crates.io ^^
12:27
u mean u would like it like github
Avatar
yes, e.g.
Avatar
ye i also think it would be nice
12:28
it makes name squatting more meaningless too
Avatar
e.g. this protocol update
12:29
is unfortunately a breaking change for the rust crate
Avatar
hm true
12:33
maybe make a version per ddnet version
12:33
altho probs ddnet is not the whole scope
Avatar
the ddnet protocol crate is separate
12:33
so that's probably fine
Avatar
i looked at gamenet
12:34
its awesome
12:34
just idk what to build with it xd
Avatar
the PoC teeworlds server and the map downloader are built with it
12:35
apropos downloader
12:36
someone told me it broke
Avatar
oh damn some code is 9y old
Avatar
are we talking about ddnet 2.0?
Avatar
Avatar
heinrich5991
someone told me it broke
works on my machineβ„’
Avatar
ChillerDragon BOT 2023-09-01 12:45:01Z
no libtw2
Avatar
Avatar
Voxel
are we talking about ddnet 2.0?
no
Avatar
ChillerDragon BOT 2023-09-01 12:45:14Z
not to be confused with ddnet2
12:45
both rust
12:45
both 2
12:45
but different
Avatar
pub fn lookup_host(domain: &str, port: u16) -> io::Result<Option<Addr>> { for socket_addr in (domain, port).to_socket_addrs()? { return Ok(Some(Addr::from_socket_addr(socket_addr))); } Ok(None) }
12:49
clippy says this never loops
Avatar
yea, looks like it
12:52
could be an if let with .next()
12:52
is write() intended?
12:53
write doesnt ensure a full write like write_all
12:53
it may do a partial write
Avatar
arrayvec's write always does complete writes
Avatar
This function will attempt to write the entire contents of buf, but the entire write might not succeed, or the write may also generate an error. Typically, a call to write represents one attempt to write to any wrapped object.
12:54
i see
12:54
the entire write might not succeed
12:54
whathever this means
12:54
It is not considered an error if the entire buffer could not be written to this writer.
>
An error of the ErrorKind::Interrupted kind is non-fatal and the write operation should be retried if there is nothing else to do.
Avatar
on a tcp connection, the buffer might be full
Avatar
docs on the method
Avatar
Avatar
heinrich5991
>>> def deviation(x): ... return np.exp(np.sum(-np.abs(np.log(x / np.median(x)))) / len(x)) ... >>> deviation([2,2,2,2]) 1.0 >>> deviation([2,2,3,1]) 0.7598356856515925 >>> deviation([2,2,3,2]) 0.9036020036098449
wow, that looks promising. Thanks a lot!!
Avatar
Avatar
fokkonaut
wow, that looks promising. Thanks a lot!!
note: this only works with positive numbers. it treats [2,2,3] as having more deviation than [2,2,2,3]
Avatar
does it work with 0's?
Avatar
a 0 will always cause a 0% match
Avatar
did MaybeUninit exist 9 years ago?
Avatar
lol no πŸ˜„
Avatar
Avatar
heinrich5991
a 0 will always cause a 0% match
Hmm.
Avatar
error: calling `set_len()` immediately after reserving a buffer creates uninitialized values --> zlib_minimal/src/lib.rs:100:5 | 100 | let mut dest = Vec::with_capacity(upper_bound); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 104 | dest.set_len(upper_bound);
Avatar
Is there a way to add a special case for 0?
Avatar
A wrapper type to construct uninitialized instances of T.
memory-safe programming language without garbage collection
Avatar
Avatar
fokkonaut
Is there a way to add a special case for 0?
maybe if i shift everything + 1 and later back -1 ?
Avatar
Avatar
fokkonaut
Is there a way to add a special case for 0?
I can make it depend on absolute difference instead of ratio
12:58
does 8-9 have a different distance from 1-2?
Avatar
that would be perfect, as 0 is a valid number to enter
Avatar
i.e. does [1,2] have a different mismatch than [8,9]?
Avatar
Vec clearly states that you must initialize the first len elements before calling set_len. Failing to do so breaks Vec's safety guarantees and gives Vec permission to invoke UB.
Avatar
Avatar
heinrich5991
i.e. does [1,2] have a different mismatch than [8,9]?
true
Avatar
Avatar
fokkonaut
true
that was a question from my side ^^
13:00
so that I can accurately represent it in the function
13:00
ehm
13:01
i think no? xd
13:01
idk
Avatar
Avatar
Ryozuki
Vec clearly states that you must initialize the first len elements before calling set_len. Failing to do so breaks Vec's safety guarantees and gives Vec permission to invoke UB.
yea, there are some things that should probably be fixed up with the new models of rust UB
13:01
I haven't noticed any miscompilations so far though
Avatar
i dont like thinking like that xd
13:02
i tried adding a test and running miri but it wont work cuz the c dep
Avatar
you don't like thinking that it should be fixed? ^^
Avatar
Avatar
heinrich5991
I haven't noticed any miscompilations so far though
i mean this
Avatar
this is just an observation
Avatar
it's not an opinion
Avatar
Avatar
fokkonaut
i think no? xd
what should the function output for [1,2]?
Avatar
test test::test_compress ... error: unsupported operation: can't call foreign function `compressBound` on OS `linux` --> zlib_minimal/src/lib.rs:95:15 | 95 | (unsafe { raw::compressBound(source_len as c_ulong) }) as usize | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't call foreign function `compressBound` on OS `linux`
13:03
sad miri noises
Avatar
should [1,1,2] be less mismatch than [1,2]?
Avatar
Avatar
heinrich5991
what should the function output for [1,2]?
probably the same as for [8,9], i believe. it's just a voting agreement display
Avatar
yes, but what approximate number?
Avatar
Avatar
heinrich5991
should [1,1,2] be less mismatch than [1,2]?
1,2 is probably 50/50, and 1,1,2 is more than that
Avatar
ok
Avatar
i think
13:04
not so sure xD
Avatar
heinrich today job is mathematician xD
Avatar
he pro tho
13:04
my maths are bad
Avatar
i had maths in my final exams, i mean i was always quite good at maths but the level heinrich is on is smth different
Avatar
[8,9] is also 50% then?
Avatar
ah wait
13:06
no, [8,9] should be around 80% or smth, approxiamtely
13:06
it should just be slightly under 100%
Avatar
but [1,2] should be 50%?
Avatar
no, sorry, i was dumb
Avatar
that should also be 80%ish?
13:07
just imagine we wanna agree on one specific number, and x people can contribute to that
13:07
and this % should display the level of agreement
13:08
so, [2,2,2,2,3] should be around 90% i believe, and [2,2,2,2,8] should be less than 90
Avatar
closeness = lambda x: 0.64 ** (np.sum(np.abs(x - np.median(x))) / len(x))
13:10
>>> closeness = lambda x: 0.64 ** (np.sum(np.abs(x - np.median(x))) / len(x)) >>> closeness([2,2,2,2,3]) 0.9146101038546527 >>> closeness([2,2,2,2,8]) 0.5853504664669777 >>> closeness([1,2]) 0.8 >>> closeness([8,9]) 0.8
Avatar
magic number cooked by AI
13:10
jkjk
Avatar
0.64 magic
13:10
? xd
Avatar
0.64 is the square root of 0.8
13:10
ah no, it's the square
13:11
i think its too harsh
13:11
closeness([2,2,2,2,8]) should probably be a little more than 60% i have the feeling
13:11
i dunno
13:11
the first (without magic numbers) looked more promising
Avatar
it has about 60% ^^
13:11
the first was relative
13:11
it treated 8,9 different from 1,2
Avatar
if you want to remove the magic number, you'll have to put 0.5 where the 0.64 is
13:12
but this is just a scaling factor
Avatar
what happens wth 0.5?
Avatar
the percentages drop
Avatar
Alternative front-end for GitHub written with Go.
Avatar
hm... which approach would you personally take, including 0's as a voting option @heinrich5991
13:14
what is the best representation of the chosen numbers?
Avatar
I like the latter better
Avatar
Avatar
heinrich5991
it treated 8,9 different from 1,2
because of this
Avatar
anyone know how can i make a bot in ddnet? just saw a guys using chat commands to control it and stuff
Avatar
Avatar
heinrich5991
I like the latter better
and would you increase 0.64 even more, or do you think its perfect?
Avatar
Jupstar βœͺ 2023-09-01 13:15:00Z
banhammer
lol 1
Avatar
ChillerDragon BOT 2023-09-01 13:15:06Z
@Ryozuki thats cool!
13:15
i wanted to build literally that once
13:15
but too lazy
Avatar
Avatar
kaan
anyone know how can i make a bot in ddnet? just saw a guys using chat commands to control it and stuff
u mean a chat bot
13:15
or a client bot
13:15
client bots are forbidden
13:15
idk the stance on chat bots xd
Avatar
ChillerDragon BOT 2023-09-01 13:15:48Z
use ruby :D
Avatar
probs the stance is: dont be annoying
Avatar
ChillerDragon BOT 2023-09-01 13:15:57Z
chat bots also illegal
13:16
i got many bans for it
Avatar
did i hear bot client
Avatar
the guy wrote !bot say blabla etc
Avatar
ChillerDragon BOT 2023-09-01 13:16:16Z
yes
13:16
i can send you ruby code
Avatar
!bot leave leaves for example
Avatar
Avatar
kaan
!bot leave leaves for example
Command not found!
Avatar
joins like a player
Avatar
ChillerDragon BOT 2023-09-01 13:16:36Z
A teeworlds 0.7 network protocol library written in ruby - GitHub - ChillerDragon/teeworlds_network at 9230f32c6a9dbbe3bd0bfc17f89fd38a34016b48
Avatar
Avatar
fokkonaut
and would you increase 0.64 even more, or do you think its perfect?
that's purely up to you. use one that feels right with the percentages
Avatar
ChillerDragon BOT 2023-09-01 13:17:03Z
or js
Avatar
I don't know what percentages you have in mind
Avatar
# I JUST REALIZED I ALREADY USED .scan(/../) # TO GET .groups_of(2) # AND DUUUUH .scan() IS BASICALLY ALREADY # .groups_of() # TODO: get rid of it?! # update: no # .scan(/../) works on strings and groups_of works on arrays # so it has its purpose
13:17
nice comments chiller
Avatar
Avatar
ChillerDragon
or js
js better thank you
Avatar
ChillerDragon BOT 2023-09-01 13:17:21Z
ohno xd
Avatar
Avatar
heinrich5991
I don't know what percentages you have in mind
i dont wanna fake my own study, so i'd go with what is mathematically the best representation
Avatar
what r we talking about
Avatar
Avatar
fokkonaut
i dont wanna fake my own study, so i'd go with what is mathematically the best representation
just publish ur math in the study
Avatar
Avatar
fokkonaut
i dont wanna fake my own study, so i'd go with what is mathematically the best representation
this is underdefined, there is no faking. there's no mathematically "correct" interpretation of closeness
13:18
wait
13:18
is this something serious? ^^
Avatar
no, its not
Avatar
or just some visual representation somewhere
Avatar
then just pick numbers that suit what you feel is best
Avatar
xDDD
Avatar
that's what I'd do
Avatar
alright
13:19
now i just need to get this code into javascript (edited)
13:19
var closeness; closeness = x => { return Math.pow(0.64, np.sum(np.abs(x - np.median(x))) / x.length); };
13:19
ez
13:19
i hope (converter_) (edited)
Avatar
sum is the sum of the array
13:20
abs takes the absolute value of each value in the array
13:20
median takes the (len(array)/2)-th element of the sorted array
Avatar
const sum = [1, 2, 3].reduce((partialSum, a) => partialSum + a, 0); console.log(sum); // 6
Avatar
thanks heinrich, i might get back to you on monday when everything explodes around me trying to make this work
Avatar
you're welcome πŸ™‚
Avatar
Avatar
ChillerDragon
ohno xd
i did it thank you. is this illegal?
Avatar
ChillerDragon BOT 2023-09-01 13:46:45Z
automated chat bots might get you banned on some servers yes
13:47
but its one of the lesser enforced ones
13:47
jopsti wat msg did you reference?
Avatar
Jupstar βœͺ 2023-09-01 13:48:11Z
Avatar
ChillerDragon BOT 2023-09-01 13:48:16Z
ty
13:48
xd
Avatar
@Robyt3
14:05
what format did u use?
14:05
oh
Avatar
Try reloading the page, sometimes it also does that for me
Avatar
reloading fixed it
14:05
xd
Avatar
I just use Handbrake for encoding
Avatar
that pixelated style gives off retro game vibes
Avatar
(which calls ffmpeg I assume)
14:06
ye
Avatar
It looks smooth if you use FSAA, but I assume nobody uses it because it can cause delay
Avatar
@heinrich5991 i see crates.io fails sometimes in CI, are the deps not cached? what about vendoring for CI
14:08
[ 33%] Built target rust-bridge-shared warning: spurious network error (2 tries remaining): [28] Timeout was reached (Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds) warning: spurious network error (1 tries remaining): [28] Timeout was reached (Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds) error: failed to get syn as a dependency of package cxxbridge-macro v1.0.71
14:08
Problem error: failed to load source for a dependency on rand Steps $ cargo run --verbose Updating registry https://github.com/rust-lang/crates.io-index warning: spurious network error (2 tries r...
Avatar
Avatar
Ryozuki
@Robyt3
Jupstar βœͺ 2023-09-01 14:09:35Z
firefox issues xd
Avatar
Avatar
Ryozuki
[ 33%] Built target rust-bridge-shared warning: spurious network error (2 tries remaining): [28] Timeout was reached (Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds) warning: spurious network error (1 tries remaining): [28] Timeout was reached (Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds) error: failed to get syn as a dependency of package cxxbridge-macro v1.0.71
link?
Avatar
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
Avatar
... Restoring cache ... No cache found.
Avatar
that seems to be the problem ^^
14:11
probably needs to cachee the build folder instead
Avatar
Caused by: failed to query replaced source registry crates-io
14:11
ohh
14:11
the cache actually replaced the source registry?
14:11
or idk
14:11
weird wording
Avatar
probably not
Avatar
Avatar
Ryozuki
the cache actually replaced the source registry?
maybe github replaced it with their own mirror(?)
Avatar
Avatar
Ryozuki
doesn't even suport viewing issues AFAICT
Avatar
Avatar
heinrich5991
maybe github replaced it with their own mirror(?)
rly?
Avatar
I think they do that for ubuntu packages
14:18
no, it doesn't replace it for crates.io
14:19
hmm hmm
14:19
maybe the cache isn't available for pull requests?
14:20
no, other jobs have a cache
Avatar
@Jupstar βœͺ or @heinrich5991 do u have a link to the factorio blog where they did a rendering optimization
14:28
i cant recall which
Avatar
Hello, We released 0.18.4 this week, same old same old, more bugfixes, more bugs, more changes. At this stage of development, not many interesting things are happening, we are just polishing what we have.
Avatar
Avatar
Ryozuki
@Jupstar βœͺ or @heinrich5991 do u have a link to the factorio blog where they did a rendering optimization
Jupstar βœͺ 2023-09-01 14:37:49Z
implement for ddnet
14:37
so i can say. see i told ya
14:39
omg future humans will have 500 TB VRAM and simply render the whole map into memory these luckers
Avatar
ChillerDragon BOT 2023-09-01 14:43:07Z
or future humans cant game anymore at all due to some world crisis
Avatar
Jupstar βœͺ 2023-09-01 14:44:34Z
that's not the future but present
Avatar
I think @Patiga implemented it for his renderer and it wasn't beneficial
Avatar
yea for me it didn't work out, didn't test long though
Avatar
maybe ddnet maps arent big/complex enough
15:11
also this opt is more for integrated gpus
Avatar
Jupstar βœͺ 2023-09-01 15:24:51Z
we'll never know
15:26
would be interesting to run the whatever they had before this renderer and this renderer on rtx 4090 xdd
Avatar
chillerdragon: are you still using 'wire'? (edited)
Avatar
chillerdragon BOT 2023-09-01 16:44:06Z
Yes
Avatar
Does DDNet Client support 128 player scoreboard?
Avatar
I'm not looking to make a habit out of writing about the Terms of Service of companies; first, it was Brave, then Zoom, and I could have written about
Avatar
i cant wait for everyone to start posting literally just random letters so the ai model gets confused as fuck
16:51
also bro "x/twitter"
16:52
objectively worse than calling it just "x" but oh well
Avatar
its seo
Avatar
the social network formerly known as twitter
16:53
mozilla plans to enable ech, sounds very cool πŸ™‚
Avatar
Summary: ECH enhances the privacy of TLS connections made by the browser by encrypting the initial packet sent at the start of the TLS connection which contains sensitive information. ECH requires server-side support in order to be effective. If ECH support is not available, then a GREASE extension containing random data is added to the TLS Client Hello which is ignored by the server.
Avatar
it encrypts the remaining cleartext bits of the tls handshake in a way that is hopefully not blockable by china
16:53
or other middleware vendors
Avatar
Avatar
Ryozuki
Summary: ECH enhances the privacy of TLS connections made by the browser by encrypting the initial packet sent at the start of the TLS connection which contains sensitive information. ECH requires server-side support in order to be effective. If ECH support is not available, then a GREASE extension containing random data is added to the TLS Client Hello which is ignored by the server.
did chatgpt write this
Avatar
oh wait its IN the email
16:55
ok
16:55
i thought you had gpt summarized it or smth (edited)
Avatar
not gonna lie i only used chatgpt 1 day
Avatar
I tried using it a couple of times
16:57
I know someone who really likes to use copilot for programming πŸ™‚
Avatar
gpt3 mostly gives sht when asking complex things
Avatar
Avatar
Teero
gpt3 mostly gives sht when asking complex things
can you give an example?
Avatar
ask it if it can make a function that takes in an integer and returns a string with the trinary representation of that integer
Avatar
that's not an actual question I had so far, I like real-life examples better
16:59
or was this something you needed to do?
Avatar
ah
Avatar
bruteforcing some things for a game. but it was only for visuals so it wasnt much of an issue. did it later myself anyways
17:02
or ask it to optimize a piece of code using SIMD instructions or smth.
17:02
or try finding possible spots for memory corruption in your code.
Avatar
I got def int_to_ternary(n): if n == 0: return '0' ternary = '' while n > 0: remainder = n % 3 ternary = str(remainder) + ternary n = n // 3 return ternary # Example usage: number = 42 ternary_representation = int_to_ternary(number) print(f'Ternary representation of {number} is: {ternary_representation}')
Avatar
looks like it works for python
Avatar
looks good to me
Avatar
tried in c++ and it gave me multiple wrong answers
Avatar
what language did you want to have?
17:03
ah
Avatar
python is like pseudocode nayway
Avatar
Avatar
Teero
or ask it to optimize a piece of code using SIMD instructions or smth.
how often u find simd optimization opportunities?
Avatar
c++ #include <iostream> #include <string> std::string toTernary(int n) { if (n == 0) { return "0"; } std::string result = ""; while (n != 0) { int remainder = n % 3; result = std::to_string(remainder) + result; n /= 3; } return result; } int main() { int number; std::cout << "Enter an integer: "; std::cin >> number; std::string ternaryRepresentation = toTernary(number); std::cout << "Ternary representation: " << ternaryRepresentation << std::endl; return 0; }
17:04
looks good to me as well
Avatar
Avatar
Ryozuki
how often u find simd optimization opportunities?
i dont really use it that often thats why i asked gpt
Avatar
well its not something u can "ask"
17:04
cuz u need to recognize a pattern in ur code
Avatar
my question was "Make a C++ function that takes an integer and returns a string with the ternary representation of that integer." btw
Avatar
to know if it may be good
17:05
i think
Avatar
both functions fail for negative integers, that's annoying
Avatar
Avatar
Ryozuki
cuz u need to recognize a pattern in ur code
thats what gpt is good for right?
17:18
u need to give all code maybe xd
Avatar
yea if i give it 500 lines of code it just says what i could do to find the issue and with the next prompt somehow it thinks that the code was in python and wanted to implement a space shuttle on windows (edited)
Avatar
if we let ai make a ddnet update how dogwater would it be
Avatar
Avatar
Voxel
if we let ai make a ddnet update how dogwater would it be
  • added zoom to the ingame browser
Avatar
  • added microwave
17:28
i once asked gpt about kog. it said it knows kog and it means King of Gold and you have to kill other tees and collect gold
17:28
brilliant gamemode
Avatar
#include <iostream> #include <memory> #include <string> struct { unsigned char e, o, f; char llp[8], lla[16], llq[32]; } typedef AR; class UI { std::string m_ModuleName; std::shared_ptr<AR> m_spAR[4]; float gravity; public: AR* getAR(int index) { return m_spAR[index].get(); } }; int main() { UI* pUI = new UI(); for (int i = 0; i < 4; ++i) { AR* pAR = pUI->getAR(i); for (int j = 0; j < sizeof(pAR->llq) / sizeof(pAR->llp[0]); ++j) { pAR->llp[j] = 0; } for (int j = 0; j < sizeof(pAR->lla) / sizeof(pAR->lla[0]); ++i) { pAR->lla[j] = -127; } for (int j = 0; j < sizeof(pAR->llq) / sizeof(pAR->llq[0]); ++j) { pAR->llq[j] = 127; } } } tell gpt this segfaults and it will fix the ++i to ++j which is right, it will initialize the shared_ptrs first and it will tell you that you need to check for nullptrs first. what it apparently doesnt notice is the little spelling mistake with llq and llp in the second for loop.
Avatar
Avatar
cyberFighter
  • added zoom to the ingame browser
  • increased the bug count from 500 to 700
Avatar
if this were a bigger example then a out of bound access on an array probably wouldnt even cause a segfault but just corrupt memory and is a pain in the ass to fix (edited)
Avatar
Avatar
Voxel
  • increased the bug count from 500 to 700
Jupstar βœͺ 2023-09-01 17:39:47Z
https://github.com/Anuken/Mindustry/issues he's probs the most consequent person i know xDD
The automation tower defense RTS. Contribute to Anuken/Mindustry development by creating an account on GitHub.
17:40
annoying to read this kind of thread, people keep telling the person that they're holding it wrong
17:41
instead of conceding that this a problem with rust and one that will probably get fixed at some point
Avatar
Jupstar βœͺ 2023-09-01 17:41:48Z
yeah indeed very sad
17:42
the problem is that usually the guys making this posts just want to say "ha, rust wasnt fast after all"
Avatar
well, it isn't in this case
17:42
which is a problem, and should be fixed
17:43
they seem to know about it
17:43
u can contribute to rust
Avatar
yes
17:43
I wanted to do it at some point
17:43
which is why the commenters that tell me that this is by design make me sad
17:43
"you're just incompetent at using rust"
17:43
no!
17:43
rust has a problem and it should be fixed
17:43
here's a workaround
Avatar
Avatar
Jupstar βœͺ
https://github.com/Anuken/Mindustry/issues he's probs the most consequent person i know xDD
based
Avatar
well internet is big and ppl say what they want
Avatar
this is /r/rust
Avatar
and if they dont insult then yeah thats that xd
Avatar
not "the internet"
Avatar
its literally the internet
Avatar
Jupstar βœͺ 2023-09-01 17:44:38Z
bro when it's slower than pyson, then it's serious problem
Avatar
its slower than python on debug i think
Avatar
Avatar
Ryozuki
its literally the internet
if you say this, then this will become a non-statement
17:45
because everything is the internet
17:45
yet not everything on the internet is this kind of stuff
17:45
there are better communities than this
Avatar
well reddit is very close to the internet
17:45
if u said its rust zulip
17:45
i would understand
Avatar
it's being moderated by people close to the rust project
17:45
I think it's sad to see this in any rust community space
17:45
this is one of rust's community spaces
Avatar
well the top comment has a comment on it by someone saying what u say
Avatar
It aint that difficult. There is something called buffering, that Rust’s println! macro doesn’t do by default. Mostly because it would be a problem on its own. But Python, JS, etc do it by default.
17:46
no
17:46
it says that rust buffering would be a problem
Avatar
i dont mean this one
17:46
the comment to this one
Avatar
I see
17:47
not the top comment, obviously, and still, it's not that there's a good comment
17:47
it's that there are 20 bad ones
Avatar
also reading more i think its because its complex cuz race conditions and rly OS dependant stuff
Avatar
yes, that's what the comments say
17:47
but that's not why it is the way it is
17:47
it's just handwaving the problem that rust has
17:47
trying to find a good reason for it
Avatar
@heinrich5991 tbh i would assume good faith here on the others, they simply think thats the way and havent rly thought further
Avatar
yes. if you haven't done that, you shouldn't be like "you're holding it wrong, rust is right"
Avatar
that's evangelism and reflects badly on you
Avatar
Jupstar βœͺ 2023-09-01 17:48:29Z
i blame global variables
Avatar
I don't think they're actinig in bad faith
17:48
I still think the behaviour is bad
Avatar
so its the basically the difference between std::cout << "hello" << std::endl; and std::cout << "hello\n";?
Avatar
Avatar
Voxel
Click to see attachment πŸ–ΌοΈ
Jupstar βœͺ 2023-09-01 17:49:05Z
AH, i knew u'd secretly search for rust projects
17:49
on your linux pc
Avatar
Avatar
Teero
so its the basically the difference between std::cout << "hello" << std::endl; and std::cout << "hello\n";?
yes, roughly
Avatar
Avatar
Jupstar βœͺ
on your linux pc
jupstar i am going to dribble you like a basketball
Avatar
Jupstar βœͺ 2023-09-01 17:49:41Z
well sounds like some action
Avatar
Avatar
Voxel
Click to see attachment πŸ–ΌοΈ
rust has found its way into my for you page too
Avatar
soon it will be ddnet
Avatar
one of my everyday fears
Avatar
and when its ddnet i will suffer because rust is a hard language to learn for me and i bet if i ask for help everyone will go "read the manual"
Avatar
Avatar
Voxel
soon it will be ddnet
rust already is in ddnet
Avatar
yeah but i mean in like
17:57
anything that doesnt take a big brain to make updates for
Avatar
Avatar
Voxel
and when its ddnet i will suffer because rust is a hard language to learn for me and i bet if i ask for help everyone will go "read the manual"
Jupstar βœͺ 2023-09-01 17:57:41Z
i dont think rust is hard to learn generally speaking it depends on what your goals are
Avatar
but yeah rust has problems it would be nice if they fix the stdout buffering
17:57
it would also be nice if polonius got more push
Avatar
want to learn rust but kinda dont want to bcs i have no reason
Avatar
and strict provenance
Avatar
Jupstar βœͺ 2023-09-01 17:58:14Z
i just miss the nightly features
Avatar
Avatar
Teero
want to learn rust but kinda dont want to bcs i have no reason
the reason is u will learn more than just a language
Avatar
Jupstar βœͺ 2023-09-01 17:58:18Z
collect_into
Avatar
it may teach things u thought were safe that arent
Avatar
Jupstar βœͺ 2023-09-01 17:58:27Z
get_multiple_mut
Avatar
it can make u a better c++ dev
17:58
also the tooling is just awesome
17:58
cmake is my pains
Avatar
Jupstar βœͺ 2023-09-01 17:58:49Z
😭
17:58
look at ddnet cmake
17:58
its gigantic
Avatar
Jupstar βœͺ 2023-09-01 17:59:00Z
static linking best xd
17:59
lto thic
Avatar
ddnet cmake is hell xd
17:59
and idk why
Avatar
Avatar
Ryozuki
look at ddnet cmake
Jupstar βœͺ 2023-09-01 17:59:19Z
true.. as of rn, i don't even have a build.rs
17:59
so no build script at all
Avatar
TIL you can cargo clean -p <dependency>
17:59
to only cargo clean a specific dep
Avatar
Avatar
Ryozuki
it may teach things u thought were safe that arent
i guess that makes sense
Avatar
hey does anyone know if nerdfonts are possible in tty?
18:01
i use nerdfonts
18:01
jetbrains nerd
18:01
my terminal is alacritty
18:01
made in rust
18:01
opengl accel
18:01
i3wm
18:01
gentoo
18:01
i recommend u switch over fast
18:01
leave the closed sourceness
Avatar
Jupstar βœͺ 2023-09-01 18:02:05Z
opengl that's so 1991
18:02
i wonder when they add vulkan
18:02
Closing because this is a non-goal. If someone ever bothers to write a Vulkan renderer feel free to send a patch, but currently we already have two different OpenGL renderers and that strikes a very good balance between GPU support and performance. Writing a Vulkan renderer would neither improve performance nor support much.
Avatar
Avatar
Ryozuki
my terminal is alacritty
yea i use alacritty too but i mean in your tty
Avatar
Jupstar βœͺ 2023-09-01 18:02:54Z
past human
Avatar
Avatar
Teero
yea i use alacritty too but i mean in your tty
yeah
Avatar
gui is non-existent there
Avatar
ah u mean
18:04
tty
18:04
i see
Avatar
From now on, every time I say "console" I refer to the console you must use in Arch Linux if a desktop environment is not yet installed. I want to "enable" True Color Support in...
18:05
use this
18:05
wait idk if these docs are for tty even
18:06
or is it
Avatar
yea the terminus fonts are preinstalled i think. sadly no special cool icons for nvim in tty ig.
Avatar
well tty is pretty limited
18:06
i suggest a tiling wm
18:06
its rly rly lightweight
Avatar
i use bspwm
18:07
do u use pulseaudio or pipewire
Avatar
what distro
18:07
BTW
18:07
i use gentoo btw
18:07
BASEDHALT
Avatar
i have no cpu cycles to spare. no thank you
Avatar
(one of the reasons i switched from arch to gentoo was for this precious moments)
18:08
(where i met another arch user)
18:08
BASEDDEPT
Avatar
the giga flex i see
Avatar
also its fun
18:08
openrc is fun too
18:08
when u compile u can think about ur life
Avatar
yea gentoo is good for reallife interactions
18:09
i only rly have to wait when compiling llvm, nodejs or firefox tho
18:09
kek
18:09
i saw it
Avatar
i tried to install firefox on wm once
18:10
and it didnt compile nodejs in 3 hours feelsbadman
18:11
and then i realized i dont need browser
Avatar
skill issue
Avatar
Avatar
Jupstar βœͺ
collect_into
you can use extend instead
Avatar
Avatar
heinrich5991
you can use extend instead
Jupstar βœͺ 2023-09-01 18:22:29Z
.extend(...map(||{}) ?
Avatar
yes
Avatar
Jupstar βœͺ 2023-09-01 18:22:39Z
and that does not create any heap alloc?
Avatar
not more than collect_into
Avatar
Jupstar βœͺ 2023-09-01 18:22:55Z
ok
18:22
thx
Avatar
Jupstar βœͺ 2023-09-01 18:24:17Z
i c
18:24
guess this wasn't intuitive for me πŸ˜„
18:27
oh yeah it takes an iterator, well that makes stuff easier^^
Avatar
Avatar
Jupstar βœͺ
get_multiple_mut
can you elaborate where you need this?
Avatar
Avatar
heinrich5991
can you elaborate where you need this?
Jupstar βœͺ 2023-09-01 18:33:11Z
can't remember, but i simply used multiple split_mut then
Avatar
ah yea, that works but is annoying
Avatar
a1ea2f1 Split up io.cpp - Marmare314 5f60d68 extract CEditorImage into separate header - Marmare314 d68029a extract CEditorSound into separate header file - Marmare314 c3a07dd let CEditorSound inherit CEditorComponent - Marmare314 07fd8e6 let CAutoMapper inherit CEditorComponent - Marmare314 12d0608 let CEditorImage inherit CEditorComponent - Marmare314 59df1d8 move CEditorMap::HandleMapDrop to CEditor - Marmare314 1ebd209 Merge pull request #7095 from Marmare314/refactor-a1 - Robyt3
Avatar
Avatar
HamidReza
Does DDNet Client support 128 player scoreboard?
?
Avatar
I don't know
19:39
in the serverbrowser, yes, I think
Avatar
In-game
Avatar
I mean being able to see all players in the scoreboard
Avatar
Jupstar βœͺ 2023-09-01 19:58:23Z
no it's not possible
19:58
it's also not easy to do in a clean way
Avatar
Update the country codes which are displayed for the flags in the UI. This only changes the names which are displayed in the UI but not how flags are communicated between server and client.
  • Use ISO 3166-2 subdivision codes:
  • England: XEN β†’ GB-ENG
  • Northern Ireland: XNI β†’ GB-NIR
  • Scotland: XSC β†’ GB-SCT
  • Wales: XWA β†’ GB-WLS
  • Catalonia: XCA β†’ ES-CT
  • Galicia: XGL β†’ ES-GA
  • Use ISO 3166/MA exceptional reservation code:
  • European Union: XEU β†’ EU
  • Move Sout...
Avatar
Avatar
Jupstar βœͺ
it's also not easy to do in a clean way
I am pretty sure F-Client does it actually
Avatar
Avatar
Ewan
I am pretty sure F-Client does it actually
Really? I remember using that client but I didnt notice that. Maybe it didnt exist at that time
Avatar
Avatar
Ewan
I am pretty sure F-Client does it actually
Jupstar βœͺ 2023-09-01 20:27:02Z
can u screenshot? i wonder how it looks, to me 64 is already flood of text xd maybe on 16:9 with 2 more panels
Avatar
Avatar
Jupstar βœͺ
can u screenshot? i wonder how it looks, to me 64 is already flood of text xd maybe on 16:9 with 2 more panels
just add a slider ig?
20:38
so you press your scoreboard key and scroll?
Avatar
Jupstar βœͺ 2023-09-01 20:40:44Z
and that's a clean solution?
20:41
i find it rather annoying to have to do extra stuff to find ppl in scoreboard xd
20:41
i dunno what a good solution could look like
Avatar
Just make a button and make it two pages
20:54
Ig this is the easiest solution (if possible)
Avatar
Jupstar βœͺ 2023-09-01 21:02:38Z
that would also imply adding mouse support for scoreboard
21:02
not impossible, but also not trivial
21:03
if someone wants to code it with a chance it not being merged, it could help to see if the feature is useful enough
21:43
a423219 Add CUIRect::Center convenience function - Robyt3 147561e Add CUI::RenderProgressSpinner function - Robyt3 eac1dc4 Show progress spinner while saving map in editor - Robyt3 54134d6 Merge pull request #7119 from Robyt3/UI-Progress-Spinner-Editor - def-
Avatar
8001b6f Update displayed country codes of flags - Robyt3 22cc321 Merge pull request #7120 from Robyt3/Flags-Codes-Update - def-
Exported 840 message(s)