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 2020-12-04 00:00:00Z and 2020-12-05 00:00:00Z
Avatar
my game got the frozen glitch on the main menu
04:25
lol
Avatar
guess u have to accept the 5 seconds delay or install some beta driver
Avatar
@Learath2 it seems I either got lucky on day 2 and getting on the leaderboard is harder than I expected, or there's more competition this year
05:25
missed it again, by quite a margin
Avatar
Well as rhe challanges get harder that's when the competitive programmers and golfers shine
08:57
Theirabilitt to solve problems O(1) is very useful
09:48
omg
09:50
challenge 3 in blender lmao
Avatar
Resulting to race condition, since the main thread always thought that the load/save thread already completed. Passing the shared_ptr by reference to prevent a similar future bug to happen. Fixes #3380

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [x] Considered possible null poi...
Avatar
@Ryozuki try day 5 with tensorflow? 😄
10:48
e15a919 Fix storing load/save result in main thread without incrementing usage count - Zwelf 516c1cc Merge pull request #3382 from Zwelf/pr-fix-race-condition - def-
Avatar
(but part 2 was much more annoying with awk)
Avatar
@Deleted User I can't reproduce the Intel GPU problem anymore on Windows laptop, no driver update happened. @louis Could you try in Intel GPU settings -> System -> Energy -> And turn off all power saving stuff
11:57
Just wondering if that might help since I had Intel driver problems on Linux with power saving too
12:45
poggers
Avatar
Did you know that the walrus operator in python can't have subscripts to the left? so you can't assign into a list with it...
13:05
After so much discussion and drama and needlessly introducing a new operator, they decided to cripple that too, god forbid someone makes a mistake
Avatar
https://github.com/Learath2/aoc/blob/master/2020/4/solve.py here is my solution for today, I think it's quite pretty for how awful I'm with python
Advent of Code. Contribute to Learath2/aoc development by creating an account on GitHub.
13:22
Ah, there he is xiaowuc1 I was wondering when he was going to show up. This guy is always at the top of the leaderboards on all competitive programming challanges
Avatar
why this
13:23
if not (m := re.match(r"^\d{9}$", p['pid'])):
Avatar
what don't you like about it?
Avatar
Hello, I am Manuel Franco, you have a donation of $3,100,000.00 USD
Guess we won't need any more funding for DDNet for a few years
Avatar
if not re.match(r"^\d{9}$", p['pid']):
13:23
isnt this the same
Avatar
Oh, I was printing the match for debugging at one point, I guess I forgot to clean up
Avatar
Avatar
deen
Hello, I am Manuel Franco, you have a donation of $3,100,000.00 USD
Guess we won't need any more funding for DDNet for a few years
monkalaugh
Avatar
Lately I've had a newfound appreciation of regex, I used to always feel like they would perform badly for some reason but decent implementations of it that don't add silly features actually perform quite well
13:27
I wouldn't be surprised if a good regex implementation could come very close to the speed of just strcmp if not for vectorization
Avatar
rust regex is good
13:28
all searches execute in linear time with respect to the size of the regular expression and search text.
13:28
giftee_red
13:30
@Learath2 why didnt u use regex to parse each
13:30
e.g hgt
Avatar
if not 1920 <= int(p['byr']) <= 2002:
13:30
I'm offended
Avatar
let re = Regex::new(r"(\w+):([#\w]+)").unwrap();
Avatar
no try-catch and it still worked?
13:30
im offended too
13:30
i guess he got lucky
Avatar
@heinrich5991 haha, I thought the same 😄
Avatar
@Ryozuki I did parse hgt with regex?
13:32
i mean parse each a:b value
13:32
with regex
13:32
[{s[0]:s[1] for s in [t.split(":") for t in p]}
13:32
u used this xd
Avatar
@heinrich5991 why are you offended? I think pythons precedence rules allow that
Avatar
@Learath2 byr can be a invalid integer
13:33
and crash
13:33
ur program
13:33
u got lucky with input
Avatar
I'm offended because you didn't check for a valid integer. anywhere
Avatar
Oh, I don't bother validating aoc inputs
Avatar
but i got a non number on byr
Avatar
Oh really?
Avatar
people get different inputs
Avatar
huh, guess I did get lucky with the input
Avatar
😄 🎲
Avatar
I usually just don't bother validating the input at all, only when I get a problem I check the input
Avatar
well the program asked for validation
13:35
explicitly
13:35
xd
Avatar
a friend of mine validated the colors by hcl[0] == '#'
Avatar
fixed
Avatar
isnumeric feelsbadman
Avatar
What did isnumeric do to you?
Avatar
nothing, python has so many handy methods
Avatar
it'd be nice to see that "split_list" as part of the standard library
13:39
it's just a more generic str.split
Avatar
what would it be?
Avatar
List.split
Avatar
ah
Avatar
@Learath2 make RFC
13:40
or pep
13:40
whathever they call it
Avatar
another friend of mine actually found the trick:
13:41
file.read().split("\n\n")
13:41
😄
Avatar
Yeah I considered that too for about a minute
Avatar
(for this problem)
Avatar
Then I thought that might be a bit of a hack 😄
Avatar
i did that
13:41
13:41
with this i get every in a single line
13:41
monkalaugh
Avatar
nice
Avatar
python has you covered
13:42
just do .split() it doesn't care about which whitespace is there
Avatar
Avatar
deen
@Deleted User I can't reproduce the Intel GPU problem anymore on Windows laptop, no driver update happened. @louis Could you try in Intel GPU settings -> System -> Energy -> And turn off all power saving stuff
they're all already on for me
Avatar
@Ryozuki my awk solution does that too
Avatar
@louis try turnign them off
Avatar
oh yeah i meant they're already off
14:18
i'll check
Avatar
Is there an “official” definition for mutex? I think you can use a semaphore as a mutex yet there are sources that claim the two are different things
15:04
I have a feeling a mutex is just a binary semaphore
Avatar
i just read a bit about it some days ago
15:05
and there was a difference
15:06
what i remember, idk if exactly, is that semaphores are used to block parts of a buffer or smth like
15:06
monkalaugh
15:07
that powerpoint is horrible i think
15:07
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.
15:07
A semaphore is a generalized mutex. In lieu of single buffer, we can split the 4 KB buffer into four 1 KB buffers (identical resources). A semaphore can be associated with these four buffers. The consumer and producer can work on different buffers at the same time.
15:07
i read this yeah
Avatar
The only two “differences” I can think of are: a) the usecase b) the fact that a semaphore doesn’t guarantee that only the owner of the “lock” can signal
Avatar
There is an ambiguity between binary semaphore and mutex. We might have come across that a mutex is binary semaphore. But they are not! The purpose of mutex and semaphore are different. May be, due to similarity in their implementation a mutex would be referred as binary semaphore.
15:08
Strictly speaking, a mutex is locking mechanism
15:08
Semaphore is signaling mechanism
15:08
monkalaugh
Avatar
Hey, it's not Chile this time:
Dear Customer,
>
On a construction site located near the Frankfurt Data Center (FRA-10), a World War II bomb was discovered. The local government is closing the area and evacuating local residents, to defuse the unexploded munitions on Sunday, December 6th, 2020. This is expected to start around 06:00 CET (UTC+0100) and last the entire day.
>
Following instructions from the government, we will not be allowed on-premise to service your onsite requests during this time and you may experience possible delays in on-site requests. That said, remote access remains unchanged, as we stay committed to keeping your infrastructure and services running without disruption. We will inform you as soon as we can physically access the data center again. You can be rest assured that the Customer Care team will continue to be available 24/7 to assist you as needed.
>
Unexploded munitions are uncovered in Germany in great amounts every year. Before a construction project of any size begins, the ground must be certified as cleared, and possible unexploded munitions must be disposed, per standard protocol. We are following governmental instructions closely and trust in their expertise in clearing the area.
>
We appreciate your continued trust in Leaseweb.
> >
Sincerely,
>
Marcus Busch Managing Director Leaseweb Germany
Avatar
huh
Avatar
WW2 bomb
Avatar
but not a downtime I think
Avatar
yes, they do get found sometimes
16:11
The US Army Air Force and Royal Air Force dropped 2.7 million tons of bombs on Europe during World War II. In the United Kingdom, the German Luftwaffe dropped more than 12,000 metric tons of bombs on London alone. The British Ministry of Defence reported that 450 World War II bombs were made safe or defused since 2010 by disposal teams. Every ye...
16:11
Every year, an estimated 2,000 tons of World War II munitions are found in Germany, at times requiring the evacuation of tens of thousands of residents from their homes.[1] In Berlin alone, 1.8 million pieces of ordnance have been defused since 1947.[4] Buried bombs, as well as mortars, land mines and grenades, are often found during construction work or other excavations, or by farmers tilling the land.[5]
Avatar
Im Frankfurter Gallusviertel muss eine Weltkriegsbombe entschärft werden, die Organisation der Evakuierung läuft. Der News-Ticker.
Avatar
@deen well the blockdriver impl resettet your GL version, or did u change that back manually?
Avatar
that cookie stuff was confusing
16:16
took me 30 secs to not accept all
Avatar
click the lower button twice. probably harder if you don't speak german
Avatar
yeah did that
16:16
xD
Avatar
(and not conforming AFAIK, rejecting needs to be as simple as accepting)
Avatar
yeah i thought so
Avatar
@Deleted User hm, somehow the driver seems not to be blocked
Avatar
btw, if anyone wants some math puzzles, there's a math advent calendar as well: e.g. https://www.mathekalender.de/index.php?page=problem&problemID=132
Avatar
math too hard
Avatar
I found yesterday's puzzle interesting, but it was also quite hard: https://www.mathekalender.de/index.php?page=problem&problemID=120
Avatar
@deen is gfx_driver_is_blocked 0 ?
Avatar
math calendar poggers
16:21
The classic math/programming puzzles I used to do was https://projecteuler.net/
A website dedicated to the fascinating world of mathematics and programming
16:22
its more mathy oriented
16:22
imo
Avatar
I think it's a mix. the problems always require a computer
16:23
I heard from a friend that you can skip the last optimization step by using your university's compute cluster
16:24
i remembered my account
Avatar
use a pw manager if you don't already 😉
Avatar
@heinrich5991 yeah i use firefox one
16:24
but when i did this stuff
16:24
it was rly long ago
Avatar
I see ^^ change the pw ^^
Avatar
yea xd
Avatar
@deen guess you have to check the impl then, i only used a string from gpuinfo.org to check if it works, since i dont have an intel
16:25
more for the cool kids i guess
16:26
pepeH
Avatar
The game crash when launched : there are many windows opening after the console closed. No error message nothing.
Avatar
I had a flight cancelled because of a ww2 bomb last year 😦
Avatar
Avatar
heinrich5991
I found yesterday's puzzle interesting, but it was also quite hard: https://www.mathekalender.de/index.php?page=problem&problemID=120
This is not just hard, it's very hard 😛
Avatar
Does map webgl renderer have a repo somewhere I can contribute?
Avatar
spent the last hour trying to devise a method to no avail
17:15
@timakro is it not ddnet/tw-webgl?
Avatar
Yep, thx
Avatar
wow sounds really annoying that ppl dont update their systems
Avatar
@deen Do you know how to get https://github.com/ddnet/tw-webgl running? Where does twdatafile.js come from? (edited)
teeworlds webgl. Contribute to ddnet/tw-webgl development by creating an account on GitHub.
Avatar
@timakro easts fork seems to have that
Avatar
Yeah but it should be all in one repo
18:04
Which one is the up to date version
Avatar
well who knows with this stuff 😄
18:05
9 commits ahead, 14 commits behind
Avatar
@timakro wanna become maintainer? 😄
Avatar
Seems like we use the east version, sorry forthe confusion
19:15
Could just reset ddnet/tw-webgl to east's I guess?
Avatar
You could fix the clipping of the web version 😄
19:20
that is buggy
Avatar
what about using teewebs
19:21
to view maps
Avatar
could be done, same with watching demos
Avatar
[quakenet] bliblablub BOT 2020-12-04 20:01:14Z
is there any ddnet dev channel?
Avatar
this one
Avatar
[quakenet] bliblablub BOT 2020-12-04 20:01:31Z
ah
Avatar
it's connect to our discord
Avatar
[quakenet] bliblablub BOT 2020-12-04 20:02:25Z
ah 0:
20:02
is there any Tick event? I'm trying to create a command, which edits a boolean, and if this bool is true it should notify me whenever my tee gets moved
20:04
which i can directly access from gameclient.cpp
20:06
here
Avatar
There are no ticks on the client per se
Avatar
[quakenet] bliblablub BOT 2020-12-04 21:20:08Z
k, is there any way to get the CGameClient Object from the Dummy?
21:24
Ah, in my case i don't even need CGameclient for dummy, i can just get the current pos using m_Snap and i'll just save both client id's
Exported 203 message(s)