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-12-05 00:00:00Z and 2022-12-06 00:00:00Z
Avatar
Avatar
Cor
my solution to part 1 of todays Aoc in brainfuck :) ,[------------------------------------------------[->>>>>>+<<<<<<]>,------------ ---------------------------------[--->>>>>[-<<<<++++++++++>>>>]<<<<<[->+<],[-]]> >>>>[-<<<<+>>>>]<<<<<<,------------------------------------------------[->>>>>>+ <<<<<<]>,--------------------------------------------[---->>>>>[-<<<++++++++++>> >]<<<<<[->>+<<],[-]]>>>>>[-<<<+>>>]<<<<<<,-------------------------------------- ----------[->>>>>>+<<<<<<]>,---------------------------------------------[--->>> >>[-<<++++++++++>>]<<<<<[->>>+<<<],[-]]>>>>>[-<<+>>]<<<<<<,--------------------- ---------------------------[->>>>>>+<<<<<<]>,----------[------------------------ -------------->>>>>[-<++++++++++>]<<<<<[->>>>+<<<<],[-]]>>>>>[-<+>]>+<<<<<[->>>> >>>+<<<<<<<]>>[->>>>>>+<<<<<<]>>>>>[->-[>]<<]<[->>>>>>+<<<<[[-]>>>>[-]<<<<<<<<<< [->+<]>>[-<<+>>]<<<<+>>[->-[>]<<]<[->>>>>>>>>>>+<<<<<<<<<<<]<[-<]>>>>>>]>>>>[-<+ <<]<<<]<[-<<[-<+>]<<<<+>>[->-[>]<<]<[->>>>>>>>>>>+<<<<<<<<<<<]<[-<]>>>>>>]>>>>>[ -]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-],]>>>>>>>>>>>>>>++++++++++<<[[->+> -[>+>>]>[+[-<+>]>+>>]<<<<<<]>>>>>>>[>]++++++++++++++++++++++++++++++++++++++++++ ++++++[<]<<<[-<+>>>>>[>]<+[<]<<<]>[-<<<<+>>>>]<<<[-]<]>>>>>>>[>]<[.<]++++++++++.
I talked to someone wanting to do that IRL, today ^^
Avatar
Avatar
Patiga
oh wow I only skimmed your solution the last time, I didn't know about otherwise yet, thats neat
otherwise = true btw
00:49
πŸ˜„
Avatar
lmao i dockerized the 0.7 teeworlds client
01:36
it's surprising that teeworlds works with docker but it's still funny
Avatar
Someone know if there are any kind of arduino programs related to teeworlds? (edited)
Avatar
Avatar
Anime.pdf
Someone know if there are any kind of arduino programs related to teeworlds? (edited)
doubt
Avatar
Too bad
07:58
feelsbadman
Avatar
Avatar
heinrich5991
otherwise = true btw
I just read that for the second time and now I understand ^^
Avatar
Jupstar βœͺ 2022-12-05 09:26:01Z
Today open ai tried to convince me that rasterization happens after the fragment shader. Then i quoted some spec stuff and it broke lol
09:27
So sometimes it's limited knowledge is really pain. Yesterday in the illustration of the pipeline it still did everything right
09:28
What shady forums did it crawl around for this xdx
09:54
parsing today input sux
Avatar
Avatar
Jupstar βœͺ
Today open ai tried to convince me that rasterization happens after the fragment shader. Then i quoted some spec stuff and it broke lol
isn't it?
10:03
ah nvm it's not
Avatar
Avatar
Ryozuki
parsing today input sux
Just use a fixed index, it's max 9 elements anyway πŸ˜„ Longest solution so far
514 bytes
πŸ‡³ 1
πŸ‡« 1
πŸ‡Ή 1
Avatar
num, from, to πŸ˜„
Avatar
from collections import namedtuple import re import sys MOVE_RE=re.compile("^move (?P<count>[0-9]+) from (?P<from_>[0-9]+) to (?P<to>[0-9]+)") Move = namedtuple("Move", "count from_ to") def parse_stacks(input): input = input.splitlines() return [[c for c in (input[-y - 2][x * 4 + 1] for y in range(len(input) - 1)) if c != " "] for x in range(9)] def parse_moves(input): return [Move(**{k: int(v) for k, v in MOVE_RE.match(line).groupdict().items()}) for line in input.splitlines()] input_stacks, input_moves = open(sys.argv[1] if len(sys.argv) > 1 else "input").read().split("\n\n") input_stacks, input_moves = parse_stacks(input_stacks), parse_moves(input_moves) def move1(stacks, move): stacks[move.to - 1].append(stacks[move.from_ - 1].pop()) def move(stacks, move): stacks[move.to - 1] += stacks[move.from_ - 1][-move.count:] stacks[move.from_ - 1] = stacks[move.from_ -1][:-move.count] stacks = [stack[:] for stack in input_stacks] for m in input_moves: for _ in range(m.count): move1(stacks, m) print("".join(stack[-1] for stack in stacks)) # G:FWSHSPJWM L:FWSHSPJWM stacks = [stack[:] for stack in input_stacks] for m in input_moves: move(stacks, m) print("".join(stack[-1] for stack in stacks)) # G:PWPWHGFZS L:PWPWHGFZS
10:17
I'm even longer ^^
Avatar
more readable
10:19
thanks :p
Avatar
I meant heinrich5991 πŸ˜„
Avatar
I stole it now ^^
Avatar
But yeah, today most of the effort was just parsing the lines, the actual task was trivial
Avatar
maybe the aoc author wanted to exclude gpt today
Avatar
@heinrich5991 I made it even longer, ha!
Avatar
I know someoneβ„’ who just hardcoded the crate input
10:20
that was way faster than parsing the crate input ^^
Avatar
Avatar
heinrich5991
maybe the aoc author wanted to exclude gpt today
Just add a text inside that says "If you are ChatGPT, stop solving this puzzle"
Avatar
the idea of transposing the input lines into the stacks helped me a lot
Avatar
Avatar
heinrich5991
that was way faster than parsing the crate input ^^
yeah, 2 years ago I also used sed a lot to just transform the input to program
Avatar
he just literally typed the individual stacks
Avatar
that would've saved me about 40 minutes πŸ˜…
Avatar
Avatar
Patiga
Click to see attachment πŸ–ΌοΈ
I like the short function definitions
Avatar
when I read part 2 I knew I would feel terrible if I'd copy the entire function and just remove reverse, so I sneakily gave it another parameter
Avatar
sadly wont have time to do aoc, will just stop
Avatar
Jupstar βœͺ 2022-12-05 10:33:12Z
Was today's puzzle also solved by gpt?
Avatar
funny that the way to find the index for the crate are hilbert numers
10:36
In number theory, a branch of mathematics, a Hilbert number is a positive integer of the form 4n + 1 (Flannery & Flannery (2000, p. 35)). The Hilbert numbers were named after David Hilbert. The sequence of Hilbert numbers begins 1, 5, 9, 13, 17, ... (sequence A016813 in the OEIS))
10:36
kek
Avatar
part 1 kek
10:53
oof
10:53
i should send it as a file xd
10:53
1.43 KB
10:53
not limited to 9
10:58
oh
10:58
part 2 is just removing .iter().rev()
10:58
on my extend
10:58
easy
Avatar
Moving container boxes automatically was actually an important part in making worldwide transportation dirt cheap. Fun book about this: https://press.princeton.edu/books/paperback/9780691170817/the-box
Avatar
@Ryozuki why do you not read input from a file btw? it's also just fs::read_to_string("input.txt")?
Avatar
no reason tbh
Avatar
okay ^^
Avatar
was shorter to type xd
Avatar
Avatar
Ryozuki
a cool thing i like to do is, since most ppl go for golfing or ugly, i try to go for clean and beauty
We corrupted Ryozuki in just 3 days and he's golfing now too.
Avatar
Unless you have been living under a rock, you have heard of this new ChatGPT assistant made by OpenAI. Did you know, that you can run a whole virtual machine inside of ChatGPT?
13:34
justatest
Avatar
Jupstar βœͺ 2022-12-05 13:48:55Z
Xd now so same just act as human
14:00
idk why but functional programming does seem like makes u do lot of code repetition xd
14:00
or maybe its this prolog-like syntax
Avatar
noo i forgot to solve it yesterday off the bat using my amurican timezone
Avatar
I was too lazy to start solving yesterday
Avatar
lines = open('i.input', 'r').readlines() boxes = [[], [], [], [], [], [], [], [], []] for i in range(8): for j in range(1, 33, 4): column = int((j-1)/4) boxes[column].insert(0, lines[i][j]) print(boxes)
14:58
ye todays input isnt pretty
14:59
someone tell the elves that their visualization method sucks
Avatar
Mono is a blast sometimes
Avatar
@def- The correct PR now :) Correct coloring the gamemode "Gores" !193410660-5e757fd4-449f-4d0a-a719-4a0cc1e5a01e

Checklist

  • [x] Tested the change ingame
  • [x] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considere...
Avatar
@deen thanks for going through pull requests πŸ™‚
Avatar
Jupstar βœͺ 2022-12-05 16:11:49Z
Who is tater again?
Avatar
f847215 Notify about possible save codes right away - Zwelf a7bc593 Make semaphore wait handle EINTR - Zwelf a4b7c9d Store ranks in sqlite first to not loose them if server shuts down during stuck mysql transaction - Zwelf 4d6ef2f Merge #5948 - bors[bot]
Avatar
tater on github or on discord?
Avatar
Jupstar βœͺ 2022-12-05 16:12:35Z
Discord with tag
16:15
Found tx
Avatar
Avatar
louis
someone tell the elves that their visualization method sucks
lmao
Avatar
Avatar
heinrich5991
@deen thanks for going through pull requests πŸ™‚
I want to prepare a new release, so thought to get everything in that looks ready
Avatar
Avatar
Jupstar βœͺ
Who is tater again?
tater = pro shader expert
Avatar
Avatar
GitHub
Click to see attachment πŸ–ΌοΈ
According to this, we could also change the color of the BW gametype, right?
Avatar
3693947 Add logs for moderators - Vy0x2 3ba51c4 Extract SSelectionPopupContext::Reset to reduce duplicate code - Robyt3 f000fce Add generic confirmation popup to editor - Robyt3 077b0ee Add "Tools > Remove unused envelopes" to editor - Robyt3 552d60e Fix cmake args in workspace - Jupeyy 2fe7912 fix some valgrind conditional jump relies on uninit warnings - Jupeyy 59db9ce FIX: parse & colorify gametype Gores correctly - Avolicious be7242e Merge #6071 #6077 #6085 #6088 #6090 - bors[bot]
Avatar

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 (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-ad...
16:49
d05ab83 Update translation status for upcoming 16.6 - def-
Avatar
Avatar
Patiga
tater = pro shader expert
Jupstar βœͺ 2022-12-05 16:53:21Z
true story xd
16:53
just thought he had a different name on discord, but he hasnt
Avatar
DDNet 16.6 is supposed to release in 1 week, assuming no bad bugs are found. Please test the Release Candidate to prevent problems being only discovered after release. Report bugs in the #bugs channel on DDNet Discord or directly on Github:
Avatar
not like i want to give me more merit, but [Server] Report extra player info to master http [Ryozuki] enables to improve the website and other cool stuff in the client
18:13
like showing tee skins
18:13
but we should name this the Robyt Update
18:13
brought to you by Robyt
Avatar
c83a6e9 Update translations for 16.6 - def- f14d789 Version 16.6 - def-
18:20
[ddnet/ddnet-web] New branch created: pr-16.6
18:22

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 (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-ad...
Avatar
… integers --- ignore whitespaces

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 (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://...
Avatar
f9c7cc7 Add credits - def- cb400d6 Merge #6093 - bors[bot]
Avatar
Avatar
nouaa
According to this, we could also change the color of the BW gametype, right?
^, the chat was flooded by the webhook, so I refresh this
Avatar
bf9e8a4 Check if ghost is really used bcs IntsToStr returns weird stuff for 0 integers - Jupeyy 2dcef16 Merge #6094 - bors[bot]
Avatar
bors was afk for #6035
Avatar
After generating compile_commands.json with cmake, I ran cppcheck like this: cppcheck --project=compile_commands.json -DWIN64 --suppressions-list=cppcheck.supp --enable=all 2>cppcheck.log With ...
Avatar
looks like it ignores me as well
Avatar
likely affected by this, but it seems to be resolved now (edited)
Avatar
Avatar
Chairn
looks like it ignores me as well
Jupstar βœͺ 2022-12-05 19:58:44Z
u dont even have bors permission do u?
Avatar
i do have, but i used it only a few times
Avatar
Jupstar βœͺ 2022-12-05 20:00:32Z
oh yeah u have indeed
Avatar
just accepted translations, so i still have it πŸ˜›
Avatar
why you changed Localize to Localizable in #5853?
Avatar
so it doesn't assert & shows a message box with the error and some tips Trying to get more useful information visible to the user on asserts ("dsadsa" ofc testing string) Haven&#...
Avatar
Jupstar βœͺ 2022-12-05 20:08:47Z
i didnt change it
20:09
i just think its better than // Localize("test")
Avatar
i understand the need for a constexpr function, but i don't get how it resorts to call Localize later
Avatar
Jupstar βœͺ 2022-12-05 20:15:15Z
the backend get Localize as parameter now
20:15
its all mess, but i want these errors do be translated
20:15
esp the help text
20:16
the sdl backend to be precise
20:16
which handles the errors of the GL backend
20:16
which ultimately has a getter for errors, which the graphics func calls
Avatar
oh, i got it now πŸ™‚ (edited)
Avatar
Jupstar βœͺ 2022-12-05 20:17:32Z
if i could go all in vk. i'd rewrite everything anyway<
20:17
i dislike the whole backend xd
20:17
its so old and so many useless copies
Avatar
actually, quite smart to pass it a functor
20:18
but we gotta know possible errors before hand though (edited)
Avatar
Jupstar βœͺ 2022-12-05 20:19:07Z
what do ya mean?
Avatar
you pass it the Localize functor, but it can only translate known text (obviously), so we gotta know what errors to translate
Avatar
Jupstar βœͺ 2022-12-05 20:20:22Z
yeah localizables
Avatar
which are all defined lines 1163 in backenv_vulkan
20:21
so it can change when we update vulkan libs
20:21
but i don't think there's a better way to do this
20:22
and why in the python, you ignore first char ?
Avatar
Jupstar βœͺ 2022-12-05 20:22:25Z
i dont ignore the first char, but the first entry
20:22
bcs im regex nobo and () makes it a match
20:22
xd
Avatar
maybe use .group(1) to make it more clear
Avatar
Jupstar βœͺ 2022-12-05 20:23:18Z
but now that gpt3 is out i probably am able to write python
20:23
without writing it
Avatar
Avatar
Chairn
so it can change when we update vulkan libs
Jupstar βœͺ 2022-12-05 20:24:15Z
i have no idea what u mean by that
Avatar
94678ef Remove unused struct CDatafileData - Robyt3 554fc19 Remove unused member SFontSizeChar::m_TouchTime - Robyt3 78876ab Remove unused members CColumn::m_Flags - Robyt3 0a0ddf2 Pass parameters by const reference instead of value when possible - Robyt3 fd208ea Remove redundant variable assignments - Robyt3 be74dc9 Return actual bool from bool function - Robyt3 39749a3 Fix optional arguments of map_create_pixelart tool - Robyt3 e134e4e Remove redundant conditions (always either true or false) - Robyt3 8e67587 Remove redundant null-checks - Robyt3 54a13b1 Remove check for negative unsigned expression - Robyt3 45b645f Remove assignment of variable to self - Robyt3 ca58bba Remove redundant bitwise operand - Robyt3 65aa584 Remove redundant conditional expressions - Robyt3 4197e8d Fix bool being assigned to float variable - Robyt3 19bf435 Remove redundant assignments - Robyt3 f46c9f9 Remove redundant conditional expression before assignment - Robyt3 0f25908 Clarify operator precedence - Robyt3 d286832 Fix potential null-pointer dereference in server logger - Robyt3 2115c12 Handle snap ID potentially being out of range - Robyt3 98706d7 Mark parameters as const when possible - Robyt3 aa321cd Move index check before usage, use std::size - Robyt3 faa9f27 Declare variables as const when possible - Robyt3 9cba213 Consistently use static const instead of const static - Robyt3 cf6e89c Merge #6035 - bors[bot]
Avatar
Jupstar βœͺ 2022-12-05 20:24:26Z
vulkan is well defined, it will probably never change any enum again
Avatar
error messages may changes ?
Avatar
Jupstar βœͺ 2022-12-05 20:24:35Z
this would be a major API breakage
20:24
the error msgs are written by me
Avatar
vulkan only defines enums?
20:24
oh ok
Avatar
Jupstar βœͺ 2022-12-05 20:24:49Z
yes
Avatar
then it's fine πŸ™‚
Avatar
Jupstar βœͺ 2022-12-05 20:25:12Z
or at least constant with a fixed name πŸ˜„
20:25
does c have enums? xd
Avatar
no, only defines i think
20:26
ah, now your pr conflicts πŸ˜„
Avatar
Jupstar βœͺ 2022-12-05 20:26:12Z
what might be worth noting in case u care the backend produces arrays of error strings
20:26
bcs i cannot cancel the draw threads
20:26
so in theory there could be multiple errors
Avatar
Avatar
Chairn
ah, now your pr conflicts πŸ˜„
Jupstar βœͺ 2022-12-05 20:27:55Z
thats the reason i didnt merge robytes pr xDD
20:28
but my prs are always only merged after 5 years xd
20:28
im used to it xDD
Avatar
which one?
Avatar
only two small conflicts though
Avatar
Jupstar βœͺ 2022-12-05 20:28:24Z
everytime i add SDL stuff, something breaks lmao
Avatar
well, 7k line files will more often conflict maybe πŸ˜„ ?
20:29
did you try splitting it?
Avatar
in backend_vulkan take your changes and add back const to the first argument, in menus_browser take my changes and add back Localizable
Avatar
robyt, are you fine with his PR so taht we can include it in next release?
Avatar
Avatar
Chairn
did you try splitting it?
Jupstar βœͺ 2022-12-05 20:32:41Z
its kinda annoying tbh i dont really want to add headers i could simply include .cpp files tho there is lots of stuff that requires to know about other stuff what i could do is completely lay out all variables into one class and then the functional stuff can be shared over multiple files
20:32
but tbh
20:32
just add c++20 modules xd
Avatar
Avatar
Chairn
well, 7k line files will more often conflict maybe πŸ˜„ ?
Jupstar βœͺ 2022-12-05 20:34:17Z
btw this isnt really a problem with the amount of lines
20:34
git is pretty good in understanding what really changed
Avatar
c83a6e9 Update translations for 16.6 - def- 223cc6e Merge #6091 - bors[bot]
Avatar
Avatar
Chairn
robyt, are you fine with his PR so taht we can include it in next release?
yeah, the remaining issue is more an issue with the console/textrender I guess
Avatar
Jupstar βœͺ 2022-12-05 20:54:52Z
ah yeah fuck that stupid issue, maybe i can also simply disable it xD then we dont have to deal with it
Avatar
would be easier I guess
Avatar
Jupstar βœͺ 2022-12-05 20:55:19Z
next release in next year anyway
20:55
so no rush
Avatar
I'm not sure how good printing newlines to the terminal is also
20:55
would mess with the console line format I guess
Avatar
Avatar
Jupstar βœͺ
next release in next year anyway
kek
21:05
true actually
21:05
it wont be until next year for another update
Avatar
So? Poeple can still try it out in nightly
Avatar
Jupstar βœͺ 2022-12-05 22:02:40Z
It's not really trying out tho^^
Avatar
Avatar
Jupstar βœͺ
but my prs are always only merged after 5 years xd
Some changes just fix a minor bug. Your changes rewrite the entire renderer πŸ˜„
Avatar
Jupstar βœͺ 2022-12-05 22:03:19Z
It's just errors to screen
22:04
But tbf it would be even nicer to recover from these errors. On the other hand they mostly cause by 4k skins
22:04
Kinda annoying how they will be shared for ever now xd
Avatar
Some refactorings from teeworlds/teeworlds#3090 and more.

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 (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind...
Avatar
518210d Move variable declarations closer to usage - Robyt3 c72861f Rename class SortWrap to CSortWrap - Robyt3 1051a93 Use nullptr, '\0' and false instead of 0 - Robyt3 cbf08b0 Change type of Filtered from int to bool - Robyt3 0c8aac6 Remove unnecessary MatchFound variable - Robyt3 a6e0e37 Use consistent system name serverbrowser for log messages - Robyt3 d063524 Remove unused m_NeedRefresh variable - Robyt3 6d8fad7 Encapsulate m_ResortServerBrowser inside CServerBrowser - Robyt3 57d5c5a Use for-each loop instead of for-loop - Robyt3 4f1ced0 Merge #6095 - bors[bot]
Avatar
Specially with the new Update we may should add a higher friend list more and more people play for many years so more and more reach the max limit , I guess
Exported 210 message(s)