Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2022-11-30 00:00:00Z and 2022-12-01 00:00:00Z
Avatar
If the code editor preferences are still buggy, then I won't need it Madge
06:31
if you havent joined previous years, you can join our private leaderboard with this code: 677828-82ec4df2
06:33
Avatar
what are the langages you can use for that?
Avatar
Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.
Avatar
ok ok nice
07:39
i'm bad but will try!
Avatar
it will start at 7 am 🥹
07:43
by my time
07:43
that sucks
Avatar
Avatar
deen
Sounds like a fit for @Jupstar ✪
Sounds indeed very interesting, but i suck at writing applications. And English doesnt make this easier
09:50
e6eebda Moker has left the chn mod team - murpii 01fed01 Merge pull request #227 from murpii/patch-2 - def-
Avatar
Avatar
Jupstar ✪
Sounds indeed very interesting, but i suck at writing applications. And English doesnt make this easier
Just apply anyway, thank me later 😄
Avatar
when will it start?
12:56
And how long will it last?
Avatar
Advent of Code? December 1 to 24 would make sense since it's like an Advent Calendar.
Avatar
yup, Alright !
Avatar
Including doc changes by ChillerDragon documenting 0.7 types and reverting some ddnet.tw -> ddnet.org changes
Avatar
Is it possible to somehow connect to RCON without being on the server?
17:25
@deen
17:36
i did
17:36
this blog is amazing
17:36
it goes so much in depth about game stuff
17:37
The Conway’s Game of Life community celebrated a landmark achievement on November 9th, 2022. An idea years in the making, the “Reverse Caber Tosser” design finally had all of the pieces it needed to achieve its stated goal.
>
That goal is simple. Select any pattern that can be built in Life – for example, the Waterbear. Begin with a small number of gliders (now 15) in an otherwise empty Game of Life universe. After enough time goes by, those gliders need to build that pattern. No extra leftover debris, no stray scaffolding, just a pure synthesis of whatever you chose.
Avatar
I haven’t gotten around to playing it myself, but I did watch people play it
Avatar
Avatar
Learath2
I haven’t gotten around to playing it myself, but I did watch people play it
well this guy goes beyond xd
17:38
ppl built computers in it
Avatar
Avatar
Deleted User
@deen
We use sv_input_fifo for that, there is also econ
Avatar
Well
17:57
@Jupstar ✪
17:57
new blog
17:58
203d708 Update libtw2 - Zwelf fef5a39 Merge pull request #228 from Zwelf/pr-update-doc-3 - def-
Avatar
interesting bit lol
17:58
Normally, the GPU driver is responsible for details such as scheduling and prioritizing work on the GPU, and preempting jobs when they take too long to run to allow apps to use the GPU fairly. Sometimes the driver takes care of power management, and sometimes that is done by dedicated firmware running on a power management coprocessor. And sometimes there is other firmware taking care of some details of command processing, but it’s mostly invisible to the kernel driver. In the end, especially for simpler “mobile-style” GPUs like ARM Mali, the actual hardware interface for getting the GPU to render something is usually pretty simple: There’s the MMU, which works like a standard CPU MMU or IOMMU, and then the command processor usually takes pointers to userspace command buffers directly, in some kind of registers or ring buffer. So the kernel driver doesn’t really need to do much other than manage the memory and schedule work on the GPU, and the Linux kernel DRM (Direct Rendering Manager) subsystem already provides a ton of helpers to make writing drivers easy! There are some tricky bits like preemption, but those are not critical to get the GPU working in a brand new driver. But the M1 GPU is different…
>
Just like other parts of the M1 chip, the GPU has a coprocessor called an “ASC” that runs Apple firmware and manages the GPU. This coprocessor is a full ARM64 CPU running an Apple-proprietary real-time OS called RTKit… and it is in charge of everything! It handles power management, command scheduling and preemption, fault recovery, and even performance counters, statistics, and things like temperature measurement! In fact, the macOS kernel driver doesn’t communicate with the GPU hardware at all. All communication with the GPU happens via the firmware, using data structures in shared memory to tell it what to do. And there are a lot of those structures…
17:58
they actually run a coprocessor
Avatar
processors are cheap, there were even floppy devices with their own full-blown cpu
Avatar
oh lol nice idea
18:39
advent of ddnet
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
5 people joined
Avatar
i've joined but i will probably forget about it
19:12
can someone ping me every day from dec 1 to 24 to remind me about it
Avatar
Avatar
Deleted User
Is it possible to somehow connect to RCON without being on the server?
Yes, its called econ
19:56
https://github.com/gerdoe-jr/tw-econ Here's nice econ client by gerdoe
Rust library for using Teeworlds external console. Contribute to gerdoe-jr/tw-econ development by creating an account on GitHub.
19:56
Look for server econ config vars on website or in sources (edited)
Avatar
Avatar
Ryozuki
5 people joined
I always do a couple then remember I don't actually enjoy doing these convoluted challanges and stop 😄
Avatar
Avatar
Anime.pdf
https://github.com/gerdoe-jr/tw-econ Here's nice econ client by gerdoe
WoW thx
20:17
Here I have to write the IP and PORT of my server? @Anime.pdf
Avatar
Avatar
Deleted User
Here I have to write the IP and PORT of my server? @Anime.pdf
Yes, look readme
Avatar
Ok
20:37
Thx
20:40
@Anime.pdf help
Avatar
ChillerDragon: stop making me or gerdoe work
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 20:48:11Z
hehe :p
Avatar
Add a new submenu "Utilities" in the "File" menu, with a button to "Remove unused envelopes". Clicking the button opens a confirmation popup to confirm the operation. !editor-utilities-menu Closes #2576.

Checklist

  • [X] Tested the change ingame
  • [X] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • ...
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 20:48:23Z
you advertised a repo full of bugs :p
Avatar
Even repos full of bugs are useful https://github.com/rjust/defects4j 😄
A Database of Real Faults and an Experimental Infrastructure to Enable Controlled Experiments in Software Engineering Research - GitHub - rjust/defects4j: A Database of Real Faults and an Experimen...
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 20:49:40Z
trol
Avatar
Avatar
[quakenet] ChillerDragon
you advertised a repo full of bugs :p
i just dont know any, also it was used with discord bridge and we used it with fng server, didnt run into any bugs 🥹
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:01:39Z
Rust library for using Teeworlds external console. Contribute to gerdoe-jr/tw-econ development by creating an account on GitHub.
21:02
i feel like this is luck based if the tcpstream gets a packet it will return ok if the packet is delayed or something like that it wont get any response YET and then go to the _ branch and error with no response
21:03
imo it should match for Err and panic then otherwise in the _ case it should just retry
21:04
or not be async and do a blocking tcp connect?
Avatar
@gerdoe
21:09
¯\_(ツ)_/¯
Avatar
why is it bad that it's async? ChillerDragon?
21:31
just read it like blocking code
21:31
I guess
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:33:09Z
doesnt seem to work like blocking code
Avatar
in what way?
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:33:46Z
tbh idk shit about rust but i just do not see the use case of async here so it seems to add unneeded complexity
21:33
as in that connecting to econ is random for me
21:35
But yea i probably can read async as blocking aslong as await is called i guess
21:35
then something else is the issue
Avatar
you have to put await in a couple places
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:36:12Z
i do not see any missing awaits maybe me balming async was wrong dunno but still when await is called everywhere why even use async
21:38
how do i even read those lets? https://github.com/gerdoe-jr/tw-econ/blob/925b4a6e720fd1cafdb214ab2c216d4e4e870db2/src/lib.rs#L115 i thought let is for variable assignment but i would not assume that Ok(out) or Err(_) is a valid variable name
Rust library for using Teeworlds external console. Contribute to gerdoe-jr/tw-econ development by creating an account on GitHub.
Avatar
as long as try_read returns Err, do the following
21:39
hmm
21:40
the code looks severely broken
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:40:11Z
it is
21:40
so i need let to check the return value? and can omit the variable name?
Avatar
I don't see how it can work
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:40:57Z
it works 30% for me xd
21:41
why can't i just say if s.read() {
Avatar
basically, it first checks if the receive returns an error
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:41:59Z
why isnt Err falsy and Ok truthy?
Avatar
if not, it just skips any data
21:42
if it returns an error, it'll try reading again
21:42
if it's not an error, it'll actually use the data
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:42:34Z
yea i get it conceptually but syntactically the let makes no sense to me
Avatar
it's pattern matching
Avatar
and if it fails and then works it skips the data
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:43:22Z
pattern matching needs a let keyword?
Avatar
err -> err -> no err, while over
Avatar
no, it's just one of the places
21:43
where pattern matching works
21:43
basically while takes a boolean
21:44
and while let allows you to pattern-match
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:44:08Z
thats cursed
Avatar
why is that cursed?
21:44
the code might be cursed
21:44
because it works with 50% chance
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:44:29Z
why not make while allow pattern matching?
21:44
why use let without a variable name to indicate pattern matching
Avatar
because it's two different things and it's good that it's differentiated syntactally, I'd say
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:44:58Z
its so counter intutuive to me
Avatar
let also does pattern-matching
21:45
let (a, mut b) = (1, 2);
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:45:48Z
thats pattern matching?
Avatar
yes
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:45:59Z
uff
Avatar
let on its own could only do irrefutable pattern matching in the past (edited)
21:46
(now there's let … else {})
Avatar
chillerdragon stop bashing let, you should learn rust
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:47:55Z
trol
21:48
honestly my motivation to learn rust dropped a lot in the last hour
Avatar
because you read buggy rust code? ^^
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:48:37Z
it took like 20minutes to compile this 10line project
21:48
rust is such a bloat
Avatar
thats sadly the biggest downside of rust indeed
Avatar
really? sounds really long to me
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:48:56Z
ikr
Avatar
have you compiled a rust project before?
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:49:13Z
maybe not compiling but "fetching" some crates.io things watever
21:49
yes
21:49
but usually bigger ones so i didnt complain too much there
Avatar
just buy better hardware nobo
Avatar
that crates.io stuff is a git repo that is updated
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:49:49Z
i feel like i downloaded 40gb from crates.io
Avatar
but it'll take longer the longer you don't compile a rust project
21:50
because it needs to download more git history
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:50:10Z
oh wait
21:50
i see
21:50
so this is just fetching the current rust repo state
21:50
its like a apt update ?
Avatar
it's fetching the current crates.io index
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:50:45Z
i see
21:50
ok
21:50
hm
21:50
still annoying
Avatar
basically metadata for all the packages
21:51
I think they're trying to fix it by supporting 'sparse' registries
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:51:22Z
like on mac when you want to install htop which takes 0sec but you gotta let brew do 10mins of git clone first
21:51
git pull*
21:52
wait so ALLL creates are ONE git repo!?
Avatar
no, only their metadata
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:52:45Z
ye but still
21:52
Registry index for crates.io. Contribute to rust-lang/crates.io-index development by creating an account on GitHub.
21:52
this?
Avatar
apple sux
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:53:05Z
this nuts
21:53
this repo will get suuuuuuper unsuablely bloated very soon
21:53
is that for decrentralization or something?
21:54
i see "collapse index into one commit" xd
Avatar
we should also host https master servers on github
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:55:14Z
ms sok
Avatar
do u run gitlab urself
21:55
or r u just hipster gitlab user
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:56:08Z
i maintain our companies gitlab and it doesnt motivate me to selfhost tbh xd
21:56
just saying ms is crap and they do random bans and billgates chips all coders because he is a repteloid
21:56
and bruu the 500s
Avatar
xd
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:57:11Z
it feels like github has more downtime than uptime
Avatar
i honestly never know if ms is an argument against github i mean open source projects are open not like they couldnt steal anything they want also from gitlab
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:58:18Z
do you think github steals as much from gitlab as they do from github?
Avatar
but if u have moral support for my decision go ahead
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:58:33Z
i feel like the code pilot stuff is github projects only
Avatar
yeah but if gitlab would be #1 they would simply "steal" it there xd
Avatar
as if they care
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:59:09Z
gitlab might care if they scrape all repos
Avatar
also doesnt ms also host stackoverflow
21:59
i bet lot of stuff also comes from there
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:59:25Z
yes for sure
Avatar
bcs human text describes stuff
21:59
very important for AIs
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 21:59:51Z
but imo stealing code is not that dramatic
21:59
more the deleting code part
22:00
or code not being available due to downtime
Avatar
what do they delete? viruses?
Avatar
the crate.io index is quite cull
22:00
rust-lang has a thing called crater
22:00
they literally run tests over all the crates in existance
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 22:00:25Z
jopstar didnt u hear of the swarfey case?
Avatar
no
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 22:00:31Z
they deleted ALL his repos?
22:00
like all
Avatar
what did he do
Avatar
Run experiments across parts of the Rust ecosystem! - GitHub - rust-lang/crater: Run experiments across parts of the Rust ecosystem!
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 22:00:41Z
notin
Avatar
lets get detectives chiller
22:01
and heal the world
Avatar
this repo will get suuuuuuper unsuablely bloated very soonthis repo will get suuuuuuper unsuablely bloated very soon
they're working on the sparse registry thing ^^
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 22:01:21Z
wat?
22:01
wat is a sparse reg
Avatar
@heinrich5991 when do you get rust v-tuber?
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 22:02:52Z
teeint
22:02
pog
22:02
Avatar
Avatar
Jupstar ✪
@heinrich5991 when do you get rust v-tuber?
what do you mean? there's this rust vtuber writing a kernel module for the apple gpu ^^
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 22:03:35Z
xd
Avatar
Avatar
heinrich5991
what do you mean? there's this rust vtuber writing a kernel module for the apple gpu ^^
yes but when do i learn rust stuff for teeworlds from u
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 22:03:48Z
send link
22:05
ok sparse index seems sane
22:05
but that it is not a thing yet feels like rust being such a immature ecosystem
Avatar
but its tooling is actually the best part about rust
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 22:40:45Z
yo @heinrich5991 did you ever see or respond to my rust test gitlab pipeline failing :( ?
Avatar
what fails?
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 22:43:48Z
running tests in my curses fork
22:43
the rust_test thing
Avatar
you need to link the curses libraries there
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 22:44:36Z
it does link it
22:44
i see it being linked
22:44
also running the same commands as the CI runs fine on my local machine
22:46
HOLY SHIT
22:46
i got flagged
22:46
22:46
22:46
who of u trols reported zillyhuhn xd
Avatar
You site never worked for me, it just infinitely loadedmonkalaugh
Avatar
[quakenet] ChillerDragon BOT 2022-11-30 22:55:43Z
wotrefek
Exported 242 message(s)