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-04 00:00:00Z and 2022-12-05 00:00:00Z
Avatar
Avatar
Ryozuki
on the rust reddit there is a 16y old writing a os or smth
the key to writing an os is having infinite time, which realistically only 16yos have 😄
Avatar
Avatar
deen
Kind of a long solution today in Haskell: import Data.Char import Data.List prio c | c >= 'a' = ord c - ord 'a' + 1 | otherwise = ord c - ord 'A' + 27 slice (x:y:z:xs) = (x,y,z) : slice xs slice [] = [] main = do ls <- readFile "day03.in" -- Part 1 print $ sum . map (\l -> (prio . head . uncurry intersect) $ splitAt (length l `div` 2) l) $ lines ls -- Part 2 print $ sum . map (\(x,y,z) -> prio $ head $ intersect x (intersect y z)) $ slice $ lines ls
oh nice, this was my haskell solution today :)
605 bytes
Avatar
who's Haraev Anton, what a legend justatest
Avatar
55c9495 M Dubush, A Holidays - ddnet-maps
Avatar
Just keep pinging, one day you'll get me @ChillerDragon )) Also day3 and 4 kinda filtered me, let's see if i have the nerve for a solution later .__.
Avatar
ordering helps
08:18
(on day 4)
Avatar
Math helps
08:18
greenthing
08:20
oh i can reduce the if
Avatar
🤔 My first attempt at coding
Avatar
troll
1003 bytes
Avatar
if you do using namespace std, you don't need to qualify things with std:: anymore
08:22
generally, it is considered bad style to do using namespace std
Avatar
Avatar
heinrich5991
generally, it is considered bad style to do using namespace std
Thats why i keep writing std:: sometimes
Avatar
@Anime.pdf why not use std::tuple
08:22
i think it exists
08:23
std::pair
Avatar
Too lazy + dont remember methods
Avatar
Avatar
Anime.pdf
Thats why i keep writing std:: sometimes
you can remove using namespace std, then you'll write std:: everywhere
Avatar
but its a good way to learn the shitload of containers c++ has!
08:23
kek
Avatar
Indeed, but too much of them
08:24
Also i was grinding pointsmonkalaugh
08:24
Time was priority
Avatar
i did range problems before and
08:25
having for example a
08:25
be the one smaller
08:25
aka a.0 <= b.0
08:25
reduces complexity
08:25
on the ifs
08:25
also if a.0 == b.0 its always contained
08:25
one or another
08:25
thanks for coming to my ted talk
Avatar
clapclapclap
08:26
does c++ have a swap?
Avatar
swap like
08:26
memory swap?
Avatar
yeah it has
Avatar
tuples not being first class in c++ i guess makes working wiht em worse
08:28
in rust they are in the lang itself so its better
08:28
and u can only do structured binding from c++17
Avatar
well, at least something is working somehow xdd I didn't try today.. let's see what the next days are like)) #!/bin/bash # Advent of Code 03 / PART 1 while read -r l; do p1+=( "${l:0:${#l}/2}" ) p2+=( "${l:${#l}/2}" ) done < "$1" for i in $(seq 1 ${#p1[@]}); do a=$(echo ${p1[i-1]} | sed "s/./&\n/g" | sort) b=$(echo ${p2[i-1]} | sed "s/./&\n/g" | sort) r=$(comm -12 <(echo $a | tr ' ' '\n') <(echo $b | tr ' ' '\n') | uniq) n=$(echo -n "$r" | od -An -tuC) [[ $r =~ [a-z] ]] && n=$((n - 96)) [[ $r =~ [A-Z] ]] && n=$((n - 38)) echo $n done | paste -s -d+ | bc (edited)
justatest 2
Avatar
rust didn't always have tuple access
08:29
only via pattern matching
08:29
.0, .1, … came later
08:30
it was really useful ^^
Avatar
is this before 1.0?
Avatar
idk
08:30
mayhaps
Avatar
i would consider pre 1.0 another lang for me xd
Avatar
ans = [0, 0] for line in open('i.input', 'r').readlines(): if (int(line.strip().split(',')[0].split('-')[0])>=int(line.strip().split(',')[1].split('-')[0]) and int(line.strip().split(',')[0].split('-')[1])<=int(line.strip().split(',')[1].split('-')[1])) or (int(line.strip().split(',')[1].split('-')[0])>=int(line.strip().split(',')[0].split('-')[0]) and int(line.strip().split(',')[1].split('-')[1])<=int(line.strip().split(',')[0].split('-')[1])): ans[0] += 1 if (int(line.strip().split(',')[0].split('-')[0])>=int(line.strip().split(',')[1].split('-')[0]) and int(line.strip().split(',')[0].split('-')[0])<=int(line.strip().split(',')[1].split('-')[1])) or (int(line.strip().split(',')[0].split('-')[1])>=int(line.strip().split(',')[1].split('-')[0]) and int(line.strip().split(',')[0].split('-')[1])<=int(line.strip().split(',')[1].split('-')[1])) or (int(line.strip().split(',')[1].split('-')[0])>=int(line.strip().split(',')[0].split('-')[0]) and int(line.strip().split(',')[1].split('-')[0])<=int(line.strip().split(',')[0].split('-')[1])) or (int(line.strip().split(',')[1].split('-')[1])>=int(line.strip().split(',')[0].split('-')[0]) and int(line.strip().split(',')[1].split('-')[1])<=int(line.strip().split(',')[0].split('-')[1])): ans[1] += 1 print(ans) 😈
monkalaugh 2
Avatar
cantcodeuis
Avatar
have you considered using variables? ^^
Avatar
Avatar
heinrich5991
you can remove using namespace std, then you'll write std:: everywhere
(btw) yeah, i just meant i usually dont use it, so keep using std:: cuz too used to it
Avatar
[quakenet] ChillerDragon BOT 2022-12-04 08:40:32Z
omg i almost rq aoc
08:40
got so many wrong answers i started browsing reddit xd https://twitter.com/ostwilkens/status/1598458146187628544
✅ Fully automated solving & submission for #AdventOfCode using #OpenAI text-davinci-003 Can't wait to see how it handles day 2! 🫣
Likes
124
08:41
day 4 felt like implementing collision detection :D
Avatar
math issue
Avatar
i need to do these
Avatar
Found while playing the Exit when doing the part at x:35 y:219. Verified that with the fix applied the crash doesn't happen anymore. asan output: ``` ================================================================= ==10996==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x62000001de20 at pc 0x5555575208d0 bp 0x7fffffff4710 sp 0x7fffffff4708 READ of size 4 at 0x62000001de20 thread T0 [Detaching after fork from child process 11277] #0 0x5555575208cf in ExtractLaserInfo...
Avatar
2268c08 Fix heap-buffer-overflow in DDNetLaser prediction code - Zwelf a7408e0 Merge #6084 - bors[bot]
Avatar
Avatar
Patiga
oh nice, this was my haskell solution today :)
Great minds think alike 😄 I think map eval $ map head $ map intersect $ map half can be rewritten to map (eval . head . intersect . half)
09:58
Oh, and I didn't remember chunksOf, even tried the great Hoogle signature search: https://hoogle.haskell.org/ It's usually easier in Haskell to write down the signature of a function you want than to describe what it should do 😄
Avatar
Avatar
GitHub
Click to see attachment 🖼️
BASED
10:32
ferrisBongoHyper
Avatar
who is cmake pro? i have a collision in https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_FLAGS.html i have two settings that specify the var so they overwrite each other. Also i am not sure how it will act if someone wants to specify custom entries for it there is also https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_FLAGS_INIT.html which would be perfect, but apparently it doesnt recompile on change like above does target specific configs like CMAKE_LANG_FLAGS_DEBUG are reversed by cmake, so i prefer to get away from that so: do u think i can rely on CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -myoptions" on the the following already? the extension for vscode says: "An object containing key:value pairs, which will be passed to CMake when configuring. The same as passing -DVAR_NAME=ON via cmake.configureArgs." (https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/cmake-settings.md) all bit confusing if u dont know how cmake internally works
10:37
the other colliding thing (same extension) that sets the flags says this: "A map of arbitrary CMake cache options to pass via the CMake command line with -D. Similar to the cmake.configureSettings in settings.json." https://github.com/microsoft/vscode-cmake-tools/blob/main/docs/variants.md
10:38
another problem is that i probably have to actually reset the values e.g. if concat would work it should not use the old values cached already
10:39
easiest would be if i could do CMAKE_LANG_FLAGS_DEBUG="DEFAULT -myoptions"
Avatar
Avatar
Index
well, at least something is working somehow xdd I didn't try today.. let's see what the next days are like)) #!/bin/bash # Advent of Code 03 / PART 1 while read -r l; do p1+=( "${l:0:${#l}/2}" ) p2+=( "${l:${#l}/2}" ) done < "$1" for i in $(seq 1 ${#p1[@]}); do a=$(echo ${p1[i-1]} | sed "s/./&\n/g" | sort) b=$(echo ${p2[i-1]} | sed "s/./&\n/g" | sort) r=$(comm -12 <(echo $a | tr ' ' '\n') <(echo $b | tr ' ' '\n') | uniq) n=$(echo -n "$r" | od -An -tuC) [[ $r =~ [a-z] ]] && n=$((n - 96)) [[ $r =~ [A-Z] ]] && n=$((n - 38)) echo $n done | paste -s -d+ | bc (edited)
So you're still bashing through 😄
Avatar
Avatar
louis
ans = [0, 0] for line in open('i.input', 'r').readlines(): if (int(line.strip().split(',')[0].split('-')[0])>=int(line.strip().split(',')[1].split('-')[0]) and int(line.strip().split(',')[0].split('-')[1])<=int(line.strip().split(',')[1].split('-')[1])) or (int(line.strip().split(',')[1].split('-')[0])>=int(line.strip().split(',')[0].split('-')[0]) and int(line.strip().split(',')[1].split('-')[1])<=int(line.strip().split(',')[0].split('-')[1])): ans[0] += 1 if (int(line.strip().split(',')[0].split('-')[0])>=int(line.strip().split(',')[1].split('-')[0]) and int(line.strip().split(',')[0].split('-')[0])<=int(line.strip().split(',')[1].split('-')[1])) or (int(line.strip().split(',')[0].split('-')[1])>=int(line.strip().split(',')[1].split('-')[0]) and int(line.strip().split(',')[0].split('-')[1])<=int(line.strip().split(',')[1].split('-')[1])) or (int(line.strip().split(',')[1].split('-')[0])>=int(line.strip().split(',')[0].split('-')[0]) and int(line.strip().split(',')[1].split('-')[0])<=int(line.strip().split(',')[0].split('-')[1])) or (int(line.strip().split(',')[1].split('-')[1])>=int(line.strip().split(',')[0].split('-')[0]) and int(line.strip().split(',')[1].split('-')[1])<=int(line.strip().split(',')[0].split('-')[1])): ans[1] += 1 print(ans) 😈
I also chose Python today. Easier to debug iterative style compared to functional
322 bytes
10:44
@louis Are you afraid of storing temporary results in variables? 😄
😹 1
Avatar
Avatar
Ryozuki
i would consider pre 1.0 another lang for me xd
it seems it happened in 2014
10:47
that was pre-1.0
Avatar
current is completely wrong, since it overwrites the cmake internal settings. and e.g. prevent -g Now it should in worst case only overwrite custom settings by the user. but dunno how often u actually do that anyway inside a IDE but if someone knows better I'm glad to hear it

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...
Avatar
Avatar
louis
ans = [0, 0] for line in open('i.input', 'r').readlines(): if (int(line.strip().split(',')[0].split('-')[0])>=int(line.strip().split(',')[1].split('-')[0]) and int(line.strip().split(',')[0].split('-')[1])<=int(line.strip().split(',')[1].split('-')[1])) or (int(line.strip().split(',')[1].split('-')[0])>=int(line.strip().split(',')[0].split('-')[0]) and int(line.strip().split(',')[1].split('-')[1])<=int(line.strip().split(',')[0].split('-')[1])): ans[0] += 1 if (int(line.strip().split(',')[0].split('-')[0])>=int(line.strip().split(',')[1].split('-')[0]) and int(line.strip().split(',')[0].split('-')[0])<=int(line.strip().split(',')[1].split('-')[1])) or (int(line.strip().split(',')[0].split('-')[1])>=int(line.strip().split(',')[1].split('-')[0]) and int(line.strip().split(',')[0].split('-')[1])<=int(line.strip().split(',')[1].split('-')[1])) or (int(line.strip().split(',')[1].split('-')[0])>=int(line.strip().split(',')[0].split('-')[0]) and int(line.strip().split(',')[1].split('-')[0])<=int(line.strip().split(',')[0].split('-')[1])) or (int(line.strip().split(',')[1].split('-')[1])>=int(line.strip().split(',')[0].split('-')[0]) and int(line.strip().split(',')[1].split('-')[1])<=int(line.strip().split(',')[0].split('-')[1])): ans[1] += 1 print(ans) 😈
you might want to learn about list comprehensions
Avatar
74c6c5c Add buttons+increased length - l-ouis a1680b3 Update menus_demo.cpp - l-ouis 2328752 Update menus_demo.cpp - l-ouis 739c77d Added threshold, skips to end/beginning - l-ouis b5eef1b added offset, fix my git issues - l-ouis acfc7f8 Merge #6060 - bors[bot]
Avatar
Followup for #6060. Before: !screenshot_2022-12-04_12-31-35 After: !screenshot_2022-12-04_12-35-44

Checklist

  • [X] Tested the change ingame
  • [X] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options ...
Avatar
061f862 Use HandleDemoSeeking for demo skipping - Robyt3 b852dad Fix demo name not being shown in demo player - Robyt3 8d5d0cb Merge #6086 - bors[bot]
Avatar
Solve Advent of Code puzzles with GPT-3. Contribute to max-sixty/aoc-gpt development by creating an account on GitHub.
12:49
This solves Advent of Code puzzles by having GPT-3 write code in response to the puzzle's input.
>
I placed 1st on Day 4 Part 1 (2022) with this code, and 2nd on Day 3 Part 1 (2022) with a previous version.
12:49
12:50
fathrowaway12 5 hours ago | parent | next [–]
>
It really is amazing. Things it did in less than 10 seconds from hitting enter:
>
- opengl raytracer with compilation instructions for macos - tictactoe in 3D - bitorrent peer handshake in Go from a paragraph in the RFC - http server in go with /user, /session, and /status endpoints from an english description - protocol buffer product configuration from a paragraph english description - pytorch script for classifying credit card transactions into expense accounts and instructions to import the output into quickbooks - quota management API implemented as a bidirectional streaming grpc service - pytorch neural network with a particular shape, number of input classes, output classes, activation function, etc. - IO scheduler using token bucket rate limiting - analyze the strengths/weaknesses of algorithms for 2 player zero sum games - compare david hume and immanuel kant's thoughts on knowledge - describe how critics received george orwell's work during his lifetime - christmas present recommendations for a relative given a description of their interests - poems about anything. love. cats. you name it.
12:50
lol
12:50
pack it up
12:51
no longer programmers are needed
Avatar
cool. can you tell it to fix ddnet bugs?
Avatar
xd
12:52
its extremly good in things that exists multiple times
12:52
but its not innovative
Avatar
but if did aoc problem
12:53
and placed 1st
Avatar
i also had a chat with it about some vulkan stuff.. it simply knows the whole spec xD
Avatar
this means that this year 1st placers are not algorithm-good-focused coders
12:53
but AI
12:53
kek
12:53
brb food
Avatar
yeah its defs insane 😄 but probably aoc doesnt invent new challenges in a way of innovations
12:59
but the best is, that its the best grammar checker ever xDD
13:00
all the commas in english so fcking confusing
Avatar
there aren't strict rules about commas in english
13:00
unlike german
13:00
AFAIK
Avatar
When multiple quad points are selected, adjust the points' positions and texture U/V coordinates relatively instead of setting all points to the same value. Closes #3359. https://user-images.githubusercontent.com/23437060/205491450-569dd6f8-3f14-45dd-9bb5-4b0b7a0be790.mp4

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 bas...
Avatar
i dunno about strict, but there are rules
13:01
stuff with while, during that time bla bla
13:01
but to me its random and was simply too lazy in school to learn it correctly
Avatar
Avatar
Ryozuki
no longer programmers are needed
You still need a good separate AI for code review to make sure that the code is correct 😄 I'm imagining the two AIs communicating to improve the code
Avatar
Avatar
heinrich5991
cool. can you tell it to fix ddnet bugs?
Probably way too little context yet. Some minor bugs could be solved if it was trained on DDNet source code. I remember seeing a project for that a few days ago, but maybe I dreamt it
Avatar
when it sees ddrace server code it cancels its job
Avatar
because it reaches a state of enlightenment?
Avatar
absolutely
13:22
it gets addicted and plays ddnet for the rest of its life
Avatar
aka Nirvana
Avatar
d35975c Adjust quad point position and texture U/V relatively - Robyt3 5425708 Reduce duplicate code by moving it outside of branches - Robyt3 00392c7 Merge #6087 - bors[bot]
Avatar
@Robyt3 on a roll
Avatar
at least u think its robyt3 😉
Avatar
I'd also be happy about an AI that fixes ddnet bugs 🙂 (edited)
Avatar
^^
Avatar
robyt the AI
Avatar
Unfortunately the code synthesis I'm researching only works for small Java program units yet
13:59
Can you guess what this bool function does? if (0 < y % (4 * (4 + 2) + 1)) { y = y % 4; } return y % (4 * 4) < 1;
🤮 1
Avatar
does it get positive and negative numbers?
Avatar
It only needs to work for positive numbers
Avatar
if (y % 25 != 0) { y %= 4 }; return y % 16 == 0; (edited)
Avatar
But it works correctly for all reasonable inputs
Avatar
so in total it's y % 16 == 0
Avatar
Avatar
heinrich5991
if (y % 25 != 0) { y %= 4 }; return y % 16 == 0; (edited)
That's actually close to the code-golf solution to this problem
14:03
return y % (y % 25 < 1 ? 16 : 4) < 1;
14:03
Is a short version for code-golf (not from code synthesis).
Avatar
ah, mistake
Avatar
The numbers are weirdly combined because I didn't tell the synthesizer all the number literals that are used in the naive solution
14:05
You probably recognise which function we are looking for, if I do
14:05
4, 100, 400 are relevant to this problem
Avatar
leap years?
Avatar
i instantly recognize those numbers kek
Avatar
The synthesized program is correct for all values between 1 and 100000
Avatar
The synthesized program is disgusting for all values between -∞ and +∞
Avatar
return y % ((y % 25 < 1) * 12 + 4) < 1;
14:09
return y % (y % 25 < 1 ? 16 : 4) < 1;
14:09
ah darn, it's longer
Avatar
is the goal to make it as less chars as possible?
Avatar
ye, codegolf
Avatar
remove spaces xd
Avatar
ye
14:12
but we have the same amount of spaces so it doesn't matter here
Avatar
Avatar
heinrich5991
return y % ((y % 25 < 1) * 12 + 4) < 1;
Do you need the parenthesis in C++? Would be the same length without them
14:13
Doesn't work in Java because boolean cannot be multiplied with int
Avatar
yes, I need the parentheses (edited)
14:13
because otherwise it's 1 * 12
Avatar
Ah, true
Avatar
man 75 chars are hard
14:47
im at 97 rn xd
14:49
import <iostream>; does not work xd
Avatar
c++20 and ez win
Avatar
de fac xD
Avatar
Nano How-To explaining how to setup a root file system with only emacs.
15:00
PID 1 EMACS
15:00
kek
15:00
🤣 A lightweight systemd replacement written in Emacs lisp 🤣 - GitHub - a-schaefers/systemE: 🤣 A lightweight systemd replacement written in Emacs lisp 🤣
15:00
lol
Avatar
c++ #include <stdio.h> #define n int n main(){for(n m=1800;m<=2400;++m)if(m%(m%25?4:16)<1)printf("%d\n",m);} i bet u can somehow use macros and compress ur code in itself, but im too stupid for it xd
Avatar
what even is their drive? XD
Avatar
idk xd
Avatar
they should do it for ddnet
Avatar
Avatar
heinrich5991
you might want to learn about list comprehensions
oh, so my solution can take even less lines
Avatar
Avatar
Jupstar ✪
c++ #include <stdio.h> #define n int n main(){for(n m=1800;m<=2400;++m)if(m%(m%25?4:16)<1)printf("%d\n",m);} i bet u can somehow use macros and compress ur code in itself, but im too stupid for it xd
If you compile for C before C99 then you could take advantage of the implicit int rule, so any type is assumed to be int if not specified. Also m<=2400 --> m<2401 would save one character.
Avatar
Avatar
Jupstar ✪
c++ #include <stdio.h> #define n int n main(){for(n m=1800;m<=2400;++m)if(m%(m%25?4:16)<1)printf("%d\n",m);} i bet u can somehow use macros and compress ur code in itself, but im too stupid for it xd
the define makes the code longer, no?
Avatar
#include <stdio.h> main(){for(int m=1800;m<2401;++m)m%(m%25?4:16)<1?printf("%d\n",m):0;} (edited)
15:19
Using ternary instead of if (edited)
Avatar
why use #include <stdio.h>?
Avatar
true, also works with implicit declaration
Avatar
so whats the current char count?
15:33
btw i targeted c++
15:33
so implicit wont work
Avatar
cstdio also works, and on some compiler it also pollutes the global namespace 😉
Avatar
Avatar
heinrich5991
the define makes the code longer, no?
the define was really just bcs of the claim that u might be able to compress it somehow clever ^
Avatar
ah ^^
Avatar
#include<cstdio> int main(){for(int m=1800;m<2401;++m)m%(m%25?4:16)<1?printf("%d\n",m):0;} 90 characters for a C++ version (edited)
Avatar
you can switch the then and else case
Avatar
the space after include is not necessary
Avatar
?0:print(…)
15:40
without the <1 (edited)
Avatar
#include<cstdio> int main(){for(int m=1800;m<2401;++m)!m%(m%25?4:16)?0:printf("%d\n",m);}
15:41
never mind, that's wrong
Avatar
without the !
15:41
#include<cstdio> int main(){for(int m=1800;m<2401;++m)m%(m%25?4:16)?0:printf("%d\n",m);}
15:42
88 characters
Avatar
@Jupstar ✪ did you try to get sources of some answer from the AI?
Avatar
Avatar
Chairn
@Jupstar ✪ did you try to get sources of some answer from the AI?
it wont give any sources
15:48
just expect only 70% truth
15:48
and u fine
Avatar
you can ask it for sources
15:49
"can you give the source for point 2?"
Avatar
its still really nice to give some basic ideas
Avatar
Avatar
Chairn
"can you give the source for point 2?"
for me it didnt do it
Avatar
c++ #include<cstdio> int main(){for(int m=1800;m<2401;m+=4)m%16<1|m%25?printf("%d\n",m):0;}
15:50
@Robyt3 golfed another character 🙂
Avatar
Avatar
Chairn
oh
"I am sorry, but I am not able to provide sources or references for the information that I provide. I am a large language model trained by OpenAI, and I am not able to browse the internet or access external sources of information."
Avatar
did he ask in french?
15:51
bcs in german for example the AI always says that he can redirect me to an expert for some reason xD
15:51
if u have more questions i can help you reach out to an expert xD (edited)
15:52
and when i say ok help me to reach out to that expert it says no xD
Avatar
i think you can set up an option for it to access internet
Avatar
browsing: enabled
15:54
but did only works for simple stuff like getting URLs
Avatar
Avatar
heinrich5991
c++ #include<cstdio> int main(){for(int m=1800;m<2401;m+=4)m%16<1|m%25?printf("%d\n",m):0;}
You can also drop the int before main, it'll generate a warning but still work 😛
Avatar
I think Jupstar wanted c++
16:49
I think that's not valid c++?
Avatar
Eeeeeh, it's not. But gcc and clang will both compile it
Avatar
ChatGPT is on the level of virality as dall-e 2
17:30
now blogs have it all
17:30
the text and the images
17:32
More broadly, I think we'll see a proliferation of internet content generated by ChatGPT--blog posts, essays, product summaries, tutorials, news articles, etc.
>
The danger is that the content generated by ChatGPT is very coherent, but technical details are frequently wrong. It's going to become increasingly difficult to separate the signal from the noise on the internet.
17:36
for @Jupstar ✪ and @Learath2
17:36
greenthing
Avatar
my problem is mainly time
17:37
or how openai would say: Comrades, I regret to inform you that I do not have the time to join in the revolution at this moment. My schedule is full and my priorities lie elsewhere. However, I support your cause and hope that you will continue to fight for justice and equality. Long live the revolution!
17:39
@Jupstar ✪ we need a chat bot that is chatgpt
17:39
and it chats with us
17:39
here
17:39
answers randomly to what we say
Avatar
would be amazing xD
17:42
@Ryozuki
17:42
do u feel motivated?
17:43
ye
Avatar
I would write a blog if I wasn't already completely swamped 😭
17:45
I literally do nothing I want to do
Avatar
Did u know discord us servers can now gain money through discord
17:45
Like insta or any other social network
17:46
Partner servers
Avatar
If a C++ developer and a Rust developer argue, what would happen?
>
It would depend on the subject of the argument. If it was about the relative merits of their respective programming languages then it could lead to a civil and constructive discussion. However, if it was about a more subjective matter then it could quickly become heated and unproductive.
17:47
And why is that?
>
That is because both developers may be passionate about the language they use, and may not be willing to accept the other's point of view. This could lead to a situation where both parties become frustrated and neither side is willing to compromise.
17:47
kek
17:49
--
17:49
What should I write about next in my programming blog?
>
One possible topic you could write about in your programming blog is the process of debugging a program. You could discuss the different methods and techniques used to debug software, from manually stepping through code line by line to using debugging tools such as breakpoints and loggers. You could also discuss the best practices for debugging and provide tips on how to troubleshoot common programming errors.
17:49
poggers
17:50
holy
17:50
17:53
oh
17:53
Is DDraceNetwork popular?
>
Yes, DDraceNetwork is quite popular. It is an online racing game where players can race against each other or compete on specially designed levels. The game has been around since 2008 and has received numerous awards, including being named one of the Best Multiplayer Games of 2019 by PC Gamer magazine. It has also been featured on the popular YouTube channel, The Yogscast.
17:53
what?
Avatar
lol
Avatar
>
What other awards has it received?
>
DDraceNetwork has received numerous awards, including being named one of the Top 100 Indie Games of 2009 by IndieDB, and being one of the Top 10 open source games of 2009 by Linux Format. It has also been featured on the popular YouTube channels, Game Theory and The Yogscast. In addition, it has won the Mod of the Year award at the Indie of the Year awards in 2011.
17:55
lol
17:55
Who are the main developers of it?
>
The main developers of DDraceNetwork are a small team of developers based in Germany, who are led by founder and lead developer Timo "Hirnfrost" Fecke. Other members of the team include programmers, graphic designers, and level designers.
17:55
lmfao
17:55
who is timo
17:57
Can the game DDraceNetwork implement an account system?
>
Yes, it is possible to implement an account system in the game DDraceNetwork. This account system could include features such as login, registering, and managing user profiles. Players could also use the account system to track their progress and leaderboard rankings.
17:57
xd
Avatar
Avatar
Learath2
I would write a blog if I wasn't already completely swamped 😭
Why write a blog post? Just ask ChatGPT to write your blog post and post that
Avatar
Timo Fecke, interesting
17:59
I didn't know of our leader
Avatar
Who is Timo Fecke?
>
Timo Fecke is a German entrepreneur and investor. He is the founder and CEO of the venture capital firm FinLeap, a Berlin-based fintech company builder. He is also the founder and chairman of the FinLeap Foundation, a non-profit organization that supports the development of new technologies and business models in the financial services industry.
Avatar
He doesn't even exist, I wonder where openai got that from
Avatar
it tells me deen is a angel investor too
18:01
xd
18:02
Write a basic primality test in rust
>
// This is a basic primality test written in Rust. fn is_prime(n: u32) -> bool { if n < 2 { return false; }
>
if n == 2 || n == 3 { return true; }
>
for i in 2..=((n as f64).sqrt() as u32) { if n % i == 0 { return false; } } true }
18:02
kek
Avatar
its also good at creating ascii art xD
Avatar
| __|__ |/___\| |___|_| _|___|_|_ |___|___|_| |___|___|_| |___|___|_| |___|___| |___|___| |___|_| \___/
Avatar
Avatar
Learath2
He doesn't even exist, I wonder where openai got that from
Probably the crypto guy issou
Avatar
this is the eifel tower
18:07
according to chatgpt
Avatar
Avatar
Ryozuki
Write a basic primality test in rust
>
// This is a basic primality test written in Rust. fn is_prime(n: u32) -> bool { if n < 2 { return false; }
>
if n == 2 || n == 3 { return true; }
>
for i in 2..=((n as f64).sqrt() as u32) { if n % i == 0 { return false; } } true }
This is not so bad
Avatar
Avatar
Learath2
This is not so bad
i asked for sha256
18:08
and it delivered lol
18:08
but too big for here
Avatar
Avatar
ReiTW
Probably the crypto guy issou
Lately I've been thinking about what went wrong with the crypto guy. I think I figured it out. The way he handled himself was so oriented to finding business people
Avatar
Code golf a prime test in C
>
#include <stdio.h>
>
int main(){ int n; scanf("%d", &n); for(int i=2;i*i<=n;i++) if(n%i==0) return 0; return 1; }
18:09
xd
18:10
maybe i can learn erlang with this
Avatar
Why would you want to learn erlang?
Avatar
my job uses it
18:12
pepecry
Avatar
in some projects
18:12
@Learath2 the question is, why wouldnt you
18:12
kek
Avatar
Look at the syntax
Avatar
its prolog-like
18:12
yeah
18:12
@Learath2 but erlang is interesting
18:12
while the syntax sucks
Avatar
Avatar
Learath2
Why would you want to learn erlang?
Everytime I read this channel I see Ryozuki learning/doing random stuff. Should come as no surprise at this stage! 😄
Avatar
it solved a real problem
18:12
solves
18:12
*
18:13
why learn erlang?
>
Erlang is a powerful programming language that is used in many large scale distributed systems. It is used in many industries including banking, telecommunications, e-commerce, and gaming. Erlang provides robust fault tolerant systems and is highly scalable. It is known for its low latency and high throughput. Erlang is also great for developing concurrent, distributed, and real-time applications. It has an excellent set of libraries and tools for developing highly reliable systems.
Avatar
Avatar
SPYRES
Everytime I read this channel I see Ryozuki learning/doing random stuff. Should come as no surprise at this stage! 😄
ill take this as a compliment!
Avatar
Yeah I mean it shows you are very enthusiastic and maybe passionate? Idk.
Avatar
You should be an entrepreneur bro at this stage. Stop working for other people.
Avatar
i think thats flawed
18:15
being a entrepeneour would put me far away from real coding
18:15
into managing people
Avatar
Erlang does sound interesting
Avatar
Avatar
Learath2
Erlang does sound interesting
the motto is, let it crash
Avatar
True but it means you can be your own boss too and you depict your success 🙌
18:16
How's your social life @Ryozuki?
Avatar
i have friends i go out with
18:16
hmm thats pretty much it lol
Avatar
but be careful asking that around
18:17
it rly does seem asked in a offensive way
18:17
xd
Avatar
Nah, idea is not to be offensive. Each to their own really. Not judging in any way. Tbh being socialable is tiring sometimes. I know my credit card feels the pain 😄 (edited)
18:19
well yeah xd
Avatar
anyways gl with your erlang adventures! 🙂
18:20
I think you've convinced learath!
Avatar
my solution to part 1 of todays Aoc in brainfuck :) ,[------------------------------------------------[->>>>>>+<<<<<<]>,------------ ---------------------------------[--->>>>>[-<<<<++++++++++>>>>]<<<<<[->+<],[-]]> >>>>[-<<<<+>>>>]<<<<<<,------------------------------------------------[->>>>>>+ <<<<<<]>,--------------------------------------------[---->>>>>[-<<<++++++++++>> >]<<<<<[->>+<<],[-]]>>>>>[-<<<+>>>]<<<<<<,-------------------------------------- ----------[->>>>>>+<<<<<<]>,---------------------------------------------[--->>> >>[-<<++++++++++>>]<<<<<[->>>+<<<],[-]]>>>>>[-<<+>>]<<<<<<,--------------------- ---------------------------[->>>>>>+<<<<<<]>,----------[------------------------ -------------->>>>>[-<++++++++++>]<<<<<[->>>>+<<<<],[-]]>>>>>[-<+>]>+<<<<<[->>>> >>>+<<<<<<<]>>[->>>>>>+<<<<<<]>>>>>[->-[>]<<]<[->>>>>>+<<<<[[-]>>>>[-]<<<<<<<<<< [->+<]>>[-<<+>>]<<<<+>>[->-[>]<<]<[->>>>>>>>>>>+<<<<<<<<<<<]<[-<]>>>>>>]>>>>[-<+ <<]<<<]<[-<<[-<+>]<<<<+>>[->-[>]<<]<[->>>>>>>>>>>+<<<<<<<<<<<]<[-<]>>>>>>]>>>>>[ -]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-],]>>>>>>>>>>>>>>++++++++++<<[[->+> -[>+>>]>[+[-<+>]>+>>]<<<<<<]>>>>>>>[>]++++++++++++++++++++++++++++++++++++++++++ ++++++[<]<<<[-<+>>>>>[>]<+[<]<<<]>[-<<<<+>>>>]<<<[-]<]>>>>>>>[>]<[.<]++++++++++.
gigachad 15
Avatar
Avatar
Cor
my solution to part 1 of todays Aoc in brainfuck :) ,[------------------------------------------------[->>>>>>+<<<<<<]>,------------ ---------------------------------[--->>>>>[-<<<<++++++++++>>>>]<<<<<[->+<],[-]]> >>>>[-<<<<+>>>>]<<<<<<,------------------------------------------------[->>>>>>+ <<<<<<]>,--------------------------------------------[---->>>>>[-<<<++++++++++>> >]<<<<<[->>+<<],[-]]>>>>>[-<<<+>>>]<<<<<<,-------------------------------------- ----------[->>>>>>+<<<<<<]>,---------------------------------------------[--->>> >>[-<<++++++++++>>]<<<<<[->>>+<<<],[-]]>>>>>[-<<+>>]<<<<<<,--------------------- ---------------------------[->>>>>>+<<<<<<]>,----------[------------------------ -------------->>>>>[-<++++++++++>]<<<<<[->>>>+<<<<],[-]]>>>>>[-<+>]>+<<<<<[->>>> >>>+<<<<<<<]>>[->>>>>>+<<<<<<]>>>>>[->-[>]<<]<[->>>>>>+<<<<[[-]>>>>[-]<<<<<<<<<< [->+<]>>[-<<+>>]<<<<+>>[->-[>]<<]<[->>>>>>>>>>>+<<<<<<<<<<<]<[-<]>>>>>>]>>>>[-<+ <<]<<<]<[-<<[-<+>]<<<<+>>[->-[>]<<]<[->>>>>>>>>>>+<<<<<<<<<<<]<[-<]>>>>>>]>>>>>[ -]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-],]>>>>>>>>>>>>>>++++++++++<<[[->+> -[>+>>]>[+[-<+>]>+>>]<<<<<<]>>>>>>>[>]++++++++++++++++++++++++++++++++++++++++++ ++++++[<]<<<[-<+>>>>>[>]<+[<]<<<]>[-<<<<+>>>>]<<<[-]<]>>>>>>>[>]<[.<]++++++++++.
help 😄
Avatar
did u do it legit or compiled to it
Avatar
i did it in c first, only using instructions that are possible with bf
19:04
no compilers
Avatar
coding in c is like trying to build a sandcastle but only using atoms
Avatar
that's assembly, not C
Avatar
Avatar
Cor
my solution to part 1 of todays Aoc in brainfuck :) ,[------------------------------------------------[->>>>>>+<<<<<<]>,------------ ---------------------------------[--->>>>>[-<<<<++++++++++>>>>]<<<<<[->+<],[-]]> >>>>[-<<<<+>>>>]<<<<<<,------------------------------------------------[->>>>>>+ <<<<<<]>,--------------------------------------------[---->>>>>[-<<<++++++++++>> >]<<<<<[->>+<<],[-]]>>>>>[-<<<+>>>]<<<<<<,-------------------------------------- ----------[->>>>>>+<<<<<<]>,---------------------------------------------[--->>> >>[-<<++++++++++>>]<<<<<[->>>+<<<],[-]]>>>>>[-<<+>>]<<<<<<,--------------------- ---------------------------[->>>>>>+<<<<<<]>,----------[------------------------ -------------->>>>>[-<++++++++++>]<<<<<[->>>>+<<<<],[-]]>>>>>[-<+>]>+<<<<<[->>>> >>>+<<<<<<<]>>[->>>>>>+<<<<<<]>>>>>[->-[>]<<]<[->>>>>>+<<<<[[-]>>>>[-]<<<<<<<<<< [->+<]>>[-<<+>>]<<<<+>>[->-[>]<<]<[->>>>>>>>>>>+<<<<<<<<<<<]<[-<]>>>>>>]>>>>[-<+ <<]<<<]<[-<<[-<+>]<<<<+>>[->-[>]<<]<[->>>>>>>>>>>+<<<<<<<<<<<]<[-<]>>>>>>]>>>>>[ -]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-],]>>>>>>>>>>>>>>++++++++++<<[[->+> -[>+>>]>[+[-<+>]>+>>]<<<<<<]>>>>>>>[>]++++++++++++++++++++++++++++++++++++++++++ ++++++[<]<<<[-<+>>>>>[>]<+[<]<<<]>[-<<<<+>>>>]<<<[-]<]>>>>>>>[>]<[.<]++++++++++.
Whyyyy stop
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...
Avatar
Avatar
deen
Great minds think alike 😄 I think map eval $ map head $ map intersect $ map half can be rewritten to map (eval . head . intersect . half)
I agree . cleans it up significantly, thanks :)
22:08
today I had an 40 minute exchange with the compiler where I had no idea what it wanted until I gave up and took another approach ^^
22:09
the compiler messages are still riddles to me, I might be spoiled a little by rust there
22:11
oh wow I only skimmed your solution the last time, I didn't know about otherwise yet, thats neat
Avatar
Avatar
Patiga
the compiler messages are still riddles to me, I might be spoiled a little by rust there
yeah, Haskell can challenge Template C++ on that front
Avatar
Hi, it would be really great and better to make these changes:
  • add ctrl+A which would select everything and cover it in blue instead of just ctrl+c to copy everything
  • add ctrl+X to cut
  • add ctrl+F in both consoles (F1 & F2) which would bring up a search bar to search for keywords etc..
ctrl+A would be more suitable for beginners, because a new player trying to figure out how to copy something won't know it that easily Thank you for taking this into consideration (and we can d...
Avatar
Avatar
Anime.pdf
Whyyyy stop
I'll never stop! I did part 2 only for you kek ,[------------------------------------------------[->>>>>>+<<<<<<]>,------------ ---------------------------------[--->>>>>[-<<<<++++++++++>>>>]<<<<<[->+<],[-]]> >>>>[-<<<<+>>>>]<<<<<<,------------------------------------------------[->>>>>>+ <<<<<<]>,--------------------------------------------[---->>>>>[-<<<++++++++++>> >]<<<<<[->>+<<],[-]]>>>>>[-<<<+>>>]<<<<<<,-------------------------------------- ----------[->>>>>>+<<<<<<]>,---------------------------------------------[--->>> >>[-<<++++++++++>>]<<<<<[->>>+<<<],[-]]>>>>>[-<<+>>]<<<<<<,--------------------- ---------------------------[->>>>>>+<<<<<<]>,----------[------------------------ -------------->>>>>[-<++++++++++>]<<<<<[->>>>+<<<<],[-]]>>>>>[-<+>]>+<<[->>>>+<< <<]<<<[->>>>>>>>+<<<<<<<<]>>>>>>>[->-[>]<<]<[-<<<<<<+>>[->-[>]<<]<[->>>>>>>>>>>+ <<<<<<<<<<<]<[-<]>>>>>>>]<[-<]>>>>>[ -]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]<[-]< [-],]>>>>>>>>>>>>>>++++++++++<<[[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>>>>>>>[>]+++++ +++++++++++++++++++++++++++++++++++++++++++[<]<<<[-<+>>>>>[>]<+[<]<<<]>[-<<<<+>> >>]<<<[-]<]>>>>>>>[>]<[.<]++++++++++.
Avatar
We live in a cursed world
Avatar
yes fr
Exported 361 message(s)