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-02 00:00:00Z and 2022-12-03 00:00:00Z
Avatar
Part of challenge or fail?
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 08:17:35Z
jopstar send skil to write performant code xd
08:17
I create and write to 18 text files for todays aoc
08:18
0m0.057s oof
Avatar
Is that slow?
08:26
Cannot judge on the complexity of the tasks
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 08:28:21Z
wait for the other gamers to share their runtime
Avatar
Avatar
heinrich5991
Click to see attachment 🖼️
Oops 😄
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 09:40:59Z
?
Avatar
Irc nobo
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 09:59:54Z
:c
Avatar
It's the bug Heinrich found
10:02
Which was on ddnet website apparently
Avatar
the joy of compiling llvm
10:12
keeps me warm at winter
Avatar
85C under heavy sustained load
10:15
aka compiling
10:15
i think its normal, i read about 90C or smth
10:16
compiling is even more resource intensive than gaming so its hard to find real compiling temps
Avatar
Depends on the cpu I guess
10:16
i think the tpm is 100w?
10:16
its a hot cpu i heard
Avatar
Maybe compare against synthetic benchmarks?
10:17
Prime95 should be more taxing than compiling even
Avatar
while gaming e.g on dota i get 65-72
10:17
iirc
10:17
maybe i put too little thermal paste
Avatar
As long as it covers the top of the cpu you do want as little as possible
10:19
i put a pea
10:20
maybe the pea was too small tho
Avatar
Well you can check if you have extra paste. See if it covered the entire thing 😄
10:21
xd
10:22
max mhz is 4850
10:22
rn all cores are running at 4600
10:22
maybe its throttling
10:23
ok ill check this out
Avatar
Seems amd says <90 is k
Avatar
If not it would shut down
Avatar
Nowadays CPUs throttle/reduce boost instead of just shutting down instantly
Avatar
Avatar
Ryozuki
rn all cores are running at 4600
damn im jelly
10:44
having to compile template heavy shit all the time on a 2.9GHz 6 core
Avatar
im back
11:03
idk if i should let it settle a bit
11:04
rn idling at 31C
11:04
well 31-40
11:06
i had some system fans set to a fixed speed on the mobo
11:06
but now i adjusted them to follow cpu temp xD
11:06
i can definitly hear my nasa pc
11:08
seems like its stable at 81-82 compiling llvm
11:08
i guess its an improvement
11:08
11:09
single core boost is 4.8ghz and when all is at full load it kinda reached 4.7ghz sometimes
11:10
fun test ❯ openssl speed Doing mdc2 for 3s on 16 size blocks: 5174992 mdc2's in 3.00s Doing mdc2 for 3s on 64 size blocks: 1428405 mdc2's in 3.00s Doing mdc2 for 3s on 256 size blocks: 364764 mdc2's in 3.00s Doing mdc2 for 3s on 1024 size blocks: 91642 mdc2's in 3.00s Doing mdc2 for 3s on 8192 size blocks: 11401 mdc2's in 3.00s Doing mdc2 for 3s on 16384 size blocks: 5667 mdc2's in 3.00s Doing md4 for 3s on 16 size blocks: 25496375 md4's in 3.00s Doing md4 for 3s on 64 size blocks: 18429772 md4's in 3.00s Doing md4 for 3s on 256 size blocks: 9538163 md4's in 3.00s Doing md4 for 3s on 1024 size blocks: 3318838 md4's in 3.00s Doing md4 for 3s on 8192 size blocks: 468306 md4's in 3.00s Doing md4 for 3s on 16384 size blocks: 236379 md4's in 3.00s Doing md5 for 3s on 16 size blocks: 36114377 md5's in 3.00s Doing md5 for 3s on 64 size blocks: 20944396 md5's in 3.00s Doing md5 for 3s on 256 size blocks: 8995503 md5's in 3.00s Doing md5 for 3s on 1024 size blocks: 2755487 md5's in 3.00s Doing md5 for 3s on 8192 size blocks: 368630 md5's in 3.00s Doing md5 for 3s on 16384 size blocks: 185251 md5's in 3.00s Doing hmac(md5) for 3s on 16 size blocks: 15471998 hmac(md5)'s in 3.00s
Avatar
AoC day 2 felt like Sqlite: create table t(a int, b int); .import --csv '|tr " ABCXYZ" ",123123" < day02.in' t select sum(b+(4+b-a)%3*3) from t; # Part 1 select sum((a+b)%3+1+(b-1)*3) from t; # Part 2
Avatar
No fucking way feelsbadman
Avatar
Really fiddly to get the calculation right though
Avatar
Avatar
deen
AoC day 2 felt like Sqlite: create table t(a int, b int); .import --csv '|tr " ABCXYZ" ",123123" < day02.in' t select sum(b+(4+b-a)%3*3) from t; # Part 1 select sum((a+b)%3+1+(b-1)*3) from t; # Part 2
wtf
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 13:02:36Z
wot
13:02
hacker
Avatar
rewrite linux kernel in 10lines now
Avatar
Avatar
deen
AoC day 2 felt like Sqlite: create table t(a int, b int); .import --csv '|tr " ABCXYZ" ",123123" < day02.in' t select sum(b+(4+b-a)%3*3) from t; # Part 1 select sum((a+b)%3+1+(b-1)*3) from t; # Part 2
Lol, nice idea
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 13:04:50Z
okay cool sqlite can import csv didn't know that.. but wtf is this tr and < day02.in thing? looks like shell to me
13:05
also since when can you calculate rock paper scissor using maffs? xd
Avatar
I'm using this years advent of code to dive a bit into haskell
13:07
the first day I built a monstrosity
13:08
but someone showed me how to do stuff better and today I actually feel like I can share the solution 😅
13:08
531 bytes
Avatar
spoilers!
13:09
I just woke up
13:09
:p
Avatar
Hm, I was thinking of skipping this year but maybe I’ll just do them all in python to have some practice
Avatar
true, but deen already posted a solution here :p
Avatar
Avatar
heinrich5991
I just woke up
Late night? 😛
Avatar
and I think its fair since I mean we literally say that we are posting solutions ^^
Avatar
Avatar
[quakenet] ChillerDragon
also since when can you calculate rock paper scissor using maffs? xd
Did you hardcode all combinations? Wtf? (edited)
Avatar
btw I'm open for suggestion on how I can improve my haskell coding
Avatar
I failed the second part of day 2 like 3 times because I didn't change my code correctly xd
Avatar
I failed first part for 3 times cuz im fucking dumb
13:11
feelsbadman
Avatar
The thing is
13:12
I have to convert the data first to json or an array to work with it in javascript
Avatar
Cant you read a file
13:12
Line by line
Avatar
I can but I'm trying to keep my code as simple as possible
Avatar
And its really easy to convert using a few regex queries
Avatar
I created struct that accepts char in constructor and contains assigned value, also it has function to correctly compare with other valuesjustatest
Avatar
'拏 MAhdiyar 2022-12-02 13:16:25Z
[string "src/tools.lua"]:393: bad argument #1 to 'TableFlatten' (unexpected nil bam.exe: script error (-t for more detail) what is error?
Avatar
ah, done 🙂
13:21
was there a better method than hardcoding the combinations?
Avatar
Avatar
Anime.pdf
I created struct that accepts char in constructor and contains assigned value, also it has function to correctly compare with other valuesjustatest
for my fans
2.01 KB
13:22
oh why it sent like text (edited)
13:22
i sent file
Avatar
import sys from collections import Counter input = ["".join(x.split()) for x in open(sys.argv[1] if len(sys.argv) > 1 else "input")] c = Counter(input) print(c["AX"] * 4 + c["AY"] * 8 + c["AZ"] * 3 + c["BX"] * 1 + c["BY"] * 5 + c["BZ"] * 9 + c["CX"] * 7 + c["CY"] * 2 + c["CZ"] * 6) # G:13682 L:11386 print(c["AX"] * 3 + c["AY"] * 4 + c["AZ"] * 8 + c["BX"] * 1 + c["BY"] * 5 + c["BZ"] * 9 + c["CX"] * 2 + c["CY"] * 6 + c["CZ"] * 7) # G:12881 L:13600
Avatar
hope someone does the next challenge in asm x86
Avatar
in smalltalk with all oop principles would be cool
13:24
AoC business edition (edited)
Avatar
I will probably do something else for the challenge next time
13:28
Maybe try using nodejs since it has access to filesystem and try getting the lines in an array
13:29
That way my code would work even if the input gets changed
Avatar
rust split_terminator is god
Avatar
split_terminator?
13:30
Equivalent to split, except that the trailing substring is skipped if empty.
13:31
let v: Vec<&str> = "A.B.".split_terminator('.').collect(); assert_eq!(v, ["A", "B"]);
13:31
btw u can collect a tuple into a hashmap seamlessly
13:31
@ReiTW in case u didnt know
13:32
let guide: HashMap<&str, &str> = inp.split_terminator('\n').map(|x| x.split_once(' ').unwrap()).collect();
Avatar
I used split(" ")
13:32
smth like
Avatar
Sounds to me like "A.B".split(".") // ["A","B"] in js
Avatar
&str.split(" ").collect::<String>();
Avatar
@Alexander my input is not "A.B" tho
Avatar
to get a vector
Avatar
its "A.B."
13:33
I didn't see that one
Avatar
"A.B.".split(".") Array(3) [ "A", "B", "" ] (edited)
Avatar
Yeyeye
13:33
Then I'd just use a filter or something to filter out the empty strings in an array
Avatar
Avatar
ReiTW
&str.split(" ").collect::<String>();
why collecting to a string tho
Avatar
But for you it's better to use that other function which does it automatically
Avatar
well i just started the second
13:34
well day 2 part 1
13:35
oh well
13:35
i see a hashmap doesnt make sense here xd
13:35
i should finish the exercise before commenting kek
Avatar
Avatar
Ryozuki
why collecting to a string tho
well exactly: let result = line.split(" ").collect::<Vec<&str>>(); let opponent = match *result.get(0).unwrap() { "A" => Shape::Rock, "B" => Shape::Paper, "C" => Shape::Scissors, _ => panic!("Invalid shape !"), };
13:36
I did that
Avatar
Y'all making your code readable and shit what the fuck
Avatar
what I was always doing is parse the input file, then do what they asked
Avatar
My code looked like a shit ton of if statements
13:37
Not my proudest moment tbh
Avatar
Avatar
[quakenet] ChillerDragon
okay cool sqlite can import csv didn't know that.. but wtf is this tr and < day02.in thing? looks like shell to me
Yes, I'm piping in tr to translate A -> 1, B ->2 etc
Avatar
Avatar
[quakenet] ChillerDragon
also since when can you calculate rock paper scissor using maffs? xd
It felt right to use modulo 3 calculations since you have 3 values, each of which can beat the other. So I tried out a few calculations by hand and saw that it fit
Avatar
Avatar
heinrich5991
import sys from collections import Counter input = ["".join(x.split()) for x in open(sys.argv[1] if len(sys.argv) > 1 else "input")] c = Counter(input) print(c["AX"] * 4 + c["AY"] * 8 + c["AZ"] * 3 + c["BX"] * 1 + c["BY"] * 5 + c["BZ"] * 9 + c["CX"] * 7 + c["CY"] * 2 + c["CZ"] * 6) # G:13682 L:11386 print(c["AX"] * 3 + c["AY"] * 4 + c["AZ"] * 8 + c["BX"] * 1 + c["BY"] * 5 + c["BZ"] * 9 + c["CX"] * 2 + c["CY"] * 6 + c["CZ"] * 7) # G:12881 L:13600
Ah, good idea too
Avatar
Avatar
Alexander
My code looked like a shit ton of if statements
I started with that first too and thought "there must be a better way"
Avatar
The thing is
13:51
I was using the browser console
13:51
I was too lazy to set up a proper environment
13:52
My thought was: "Oh well no one is gonna see my code so why would I write it properly"
13:52
huge mistake
Avatar
Avatar
ReiTW
rewrite linux kernel in 10lines now
That reminds me of a cool project: https://bellard.org/tcc/tccboot_readme.html
Avatar
GitHub Gist: instantly share code, notes, and snippets.
14:05
my rusty part 1
14:05
xd
Avatar
Hold on a sec im gonna learn brainfuck
14:06
Turn this into a code golf (edited)
14:07
Jokes aside, your code looks beautiful and readable
Avatar
ty @Ryozuki
Avatar
im considering adding support for gamemodes to ddnet, currently the code expects it to be ddrace in a few places would this pr be accepted or nah?
Avatar
Avatar
deen
That reminds me of a cool project: https://bellard.org/tcc/tccboot_readme.html
ho lol tf
14:11
pr it & u'll get ur answer ig
Avatar
true, but it's probably a bunch of work
14:11
better ask before i start
Avatar
i also thought about using the modulo but i didnt want to use my brain too much (edited)
14:12
so i just hardcoded the match xd
14:13
a cool thing i like to do is, since most ppl go for golfing or ugly, i try to go for clean and beauty
14:13
kek
14:14
its just so fun to use rust abstractions
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
exactly what I'm going to do in the next one
14:25
just one from function to my abstractions kek
Avatar
gist url starting with dd cant be luck
Avatar
Avatar
JSaurusRex
im considering adding support for gamemodes to ddnet, currently the code expects it to be ddrace in a few places would this pr be accepted or nah?
Skeleton for creating modifications on top of the latest DDNet version. Forked from https://github.com/ddnet/ddnet. - GitHub - teeframe/ddnet-skeleton: Skeleton for creating modifications on top of...
Avatar
omg it already exists
Avatar
teeframe website is down tho
Avatar
[N*N || N <- [1,2,3,4,5]].
15:21
and ppl complain about rust syntax smh
Avatar
"Just learn the syntax"
Avatar
7> Color = 16#F09A29. 15768105 8> Pixel = <<Color:24>>. <<240,154,41>> 9>
15:28
ok thats cool
15:29
Put the binary values of #F09A29 on 24 bits of space (Red on 8 bits, Green on 8 bits and Blue also on 8 bits) in the variable Pixel.
15:29
i dont think i seen first class support for this in other langs
15:30
(this is erlang)
15:31
10> Pixels = <<213,45,132,64,76,32,76,0,0,234,32,15>>. <<213,45,132,64,76,32,76,0,0,234,32,15>> 11> <<Pix1:24, Pix2:24, Pix3:24, Pix4:24>> = Pixels. <<213,45,132,64,76,32,76,0,0,234,32,15>> 12> <<R:8, G:8, B:8>> = <<Pix1:24>>. <<213,45,132>>
15:31
pog
Avatar
<<SourcePort:16, DestinationPort:16, AckNumber:32, DataOffset:4, _Reserved:4, Flags:8, WindowSize:16, CheckSum: 16, UrgentPointer:16, Payload/binary>> = SomeBinary. :o this is how u would parse a tcp segment
15:39
crazy
15:58
lol
Avatar
looks kinda dangerous xd
Avatar
hey @deen , do you mind if I share your AOC repo with some people outside of ddnet (friends/uni) ? Your codes are insane
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 16:12:07Z
jopstar wat about da shield icons they rdy? https://github.com/ddnet/ddnet-data-svg/pull/32
i'll leave this draft until the new shield icons on the ddnet repo's game.png is decided
Avatar
i still think they should be removed from game.png
16:17
to another file
16:17
it will break all current game.pngs out there
16:18
also i dislike that the shields are randomly placed on the file
Avatar
Avatar
Ryozuki
[N*N || N <- [1,2,3,4,5]].
this looks relatively readable to me. is it a list comprehension like [n*n for n in [1,2,3,4,5]] in python?
16:31
the rough syntax is
16:31
NewList = [Expression || GeneratorExp1, GeneratorExp2, ..., GeneratorExpN, Condition1, Condition2, ... ConditionM].
16:32
[X || X <- [1,2,3,4,5,6,7,8,9,10], X rem 2 =:= 0]. [2,4,6,8,10]
16:34
=:= is for true equality lol
Avatar
what does the other equality do? ^^
16:35
does haskell have a problem like JS's ===?
Avatar
6> 5 =:= 5. true 7> 1 =:= 0. false 8> 1 =/= 0. true 9> 5 =:= 5.0. false 10> 5 == 5.0. true 11> 5 /= 5.0. false
Avatar
uff / for a not
16:38
thats hard
16:38
for my brain
16:38
ryozuki, how many language do you know?
16:38
s
Avatar
define knowing
16:39
thats always a hard question to answer
16:39
i would even say i dont know c++
16:40
im not confident in it lol
Avatar
u know how to open files do basic math start a thread and know what makes the language unique (does it use pointers, managed memory etc.)
16:40
yeah but u could write much stuff in c++ still
Avatar
rust,c++,java,c#,python,js/ts,latex
16:41
i tried lua but i dont know how to open a file on top of my head rn
16:41
i just know its all tables
Avatar
xd
Avatar
erlang is the first function lang im learning
16:41
well rust takes a lot of bits from functional programming
16:42
from what im learning, pattern matching is the most important thing in functional languages rn?
16:42
xd
16:42
or maybe its a erlang thing
Avatar
also that functions are values
Avatar
and atoms
Avatar
what are atoms?
Avatar
an atom is a variable whose value is its name itself iirc
16:43
Atoms are literals, constants with their own name for value. What you see is what you get and don't expect more. The atom cat means "cat" and that's it. You can't play with it, you can't change it, you can't smash it to pieces; it's cat. Deal with it.
16:43
all lowercase names in erlang are atoms
16:43
3> RestaurantMenu = [{steak, 5.99}, {beer, 3.99}, {poutine, 3.50}, {kitten, 20.99}, {water, 0.00}]. [{steak,5.99}, {beer,3.99}, {poutine,3.5}, {kitten,20.99}, {water,0.0}] 4> [{Item, Price*1.07} || {Item, Price} <- RestaurantMenu, Price >= 3, Price =< 10]. [{steak,6.409300000000001},{beer,4.2693},{poutine,3.745}]
16:44
@heinrich5991 im surprised u never seen atoms :o
Avatar
i also never seen that xd
Avatar
I didn't know they were called atoms. seen them in lisps before, I think
16:44
called :cat there
Avatar
but in erlang they are supposedly useful cuz erlang is all about message passing between processes, and atoms take 4-8 bytes no matter how long its name is
16:44
to tag messages
Avatar
its usages seem to be where other languages would use built-in struct members or enumerations?
Avatar
An atom is a literal, a constant with name.
16:46
the oficial erlang definition
16:46
xD
16:46
idk
Avatar
i only know racket
16:46
a modern dialect of lisp
Avatar
@Jupstar ✪ u know actually most telecom companies use erlang
Avatar
"modern" xd
Avatar
it apparently powers 40% of the internet
16:47
or so i read
Avatar
crazy
16:47
i thought they use java in germany, that'd explain why it sucks
Avatar
erlang/OTP otp literally means open telecom platform
Avatar
Avatar
Jupstar ✪
i thought they use java in germany, that'd explain why it sucks
eh i think erlang makes lot of sense
16:48
for this
16:48
note that erlang can control processes that use other languages
16:48
such as java
16:49
or so i read
Avatar
hoinestly i never used or seen any real erlang code in my life
Avatar
me neither tbh
16:51
@Jupstar ✪ apparently
16:51
whatsapp uses erlang
Avatar
man
16:51
did discord change font
16:51
or did i accedentially changed it
Avatar
yes and it's awful
Avatar
my name looks like trash xD
Avatar
look at the letters W and S
16:51
by a engineer from fb whatsapp
Avatar
Avatar
Jupstar ✪
did discord change font
they did
Avatar
the R also looks weird
16:52
kinda if its not full height xD
16:52
WR
16:52
WRACS
Avatar
T-Mobile uses Erlang in its SMS and authentication systems.
>
• Motorola is using Erlang in call processing products in the public-safety industry.
>
• Ericsson uses Erlang in its support nodes, used in GPRS and 3G mobile networks worldwide.
16:52
basically telecom
16:53
which has a shitload of users
16:53
but its not "hype"
Avatar
mh crazy
16:53
the silent hero
16:54
slower than java
16:54
trash
Avatar
erlang is slow
16:54
they dont hide it
16:54
xD
16:54
the point of erlang is, scalability and 100% uptime
16:55
u can even replace nodes in place
16:55
but its a bit shitty cuz
16:55
it has lot of history baggage i guess
16:55
the syntax comes from prolog
16:56
and its known to be ugly af
Avatar
even erlang ppl themselves say it
Avatar
https://benchmarksgame-team.pages.debian.net/benchmarksgame/download/fastest.svg c, c++, rust then long time nothing then c# to me its clear. i need to learn rust, since i already know c++ rest is trash xd
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 16:59:49Z
jopstar: "name a language in which you can open files, do basic math, start a thread, and know if it uses pointers, managed memory etc" ryo: "latext"
Avatar
xd
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 17:01:58Z
legends say ryo ranked global #1 with latex only in 2014
17:02
in aoc
Avatar
u can do it in latex
17:02
its turing complete
17:02
well idk about threads
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 17:03:08Z
then u can also list css there
17:03
xd
Avatar
yeah forget threads
17:03
is css turing complete?
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 17:03:54Z
CSS isn't, insofar as I know, Turing complete. But my knowledge of CSS is very limited. Is CSS Turing complete? Are any of the existing draft or committees considering language features that mi...
17:04
probably as turing complete as latex
Avatar
wtf XDD
Avatar
same(X,X) -> true; same(_,_) -> false. (edited)
17:05
damn functional langs
17:05
this is 1 function
17:05
it returns if 2 values are equal
17:06
since variables can only be bound 1 time and cant change
17:06
X is bound to the first value, and then on the second argument it checks if the pattern matches
17:06
aka its the same
17:06
weird stuff
Avatar
chillerdragon BOT 2022-12-02 17:07:27Z
ryo when pr code snippet syntax coloring to weechat
17:07
17:07
this looks plaintext
17:07
kek
17:12
b71bedf Add cloud 3 - ChillerDragon ac13acb Merge pull request #34 from ChillerDragon/pr_cloud3 - def-
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 17:13:52Z
bruv sloppy tw designers cloud2 full of edges
17:14
17:14
17:14
Avatar
Avatar
Devinci
hey @deen , do you mind if I share your AOC repo with some people outside of ddnet (friends/uni) ? Your codes are insane
Of course not, go ahead 😄
heartw 1
Avatar
Avatar
Ryozuki
same(X,X) -> true; same(_,_) -> false. (edited)
smells like prolog
17:16
erlang syntax is based on prolog
Avatar
Then it will be a good fit for many of these puzzles
Avatar
erlang was first implemented in prolog too
17:17
well i hear many times erlang is bad for string manipulation
Avatar
prolog too
17:17
it's the worst. many times in prolog I ran out of memory or out of time with simple string manipulations
17:17
even worse than haskell and that's hard
17:18
apparently erlang was designed by a telecom company, and they never used strings
17:18
or so i read
17:20
Ericson language = Erlang I guess?
Avatar
probs xD
Avatar
WhatsApp is the use case I always remember when I hear of Erlang: http://highscalability.com/blog/2014/3/31/how-whatsapp-grew-to-nearly-500-million-users-11000-cores-an.html
40 million users per engineer 19B messages in & 40B out per day > 11,000 cores run the Erlang system
When we last visited WhatsApp they’d just been acquired by Facebook for $19 billion. ...
17:33
lol
17:34
As such, statically typed languages are to be seen as safer than their dynamic counterparts. While this might be true when comparing with many dynamic languages, Erlang begs to differ and certainly has a track record to prove it. The best example is the often reported nine nines (99.9999999%) of availability offered on the Ericsson AXD 301 ATM switches, consisting of over 1 million lines of Erlang code. Please note that this is not an indication that none of the components in an Erlang-based system failed, but that a general switch system was available 99.9999999% of the time, planned outages included.
Avatar
why are they even over 1 million lines of code xD
Avatar
> >
In-memory Mnesia database using about 2TB of RAM sharded across 16 partitions to store about 18 billion records.
17:37
lol
17:38
mnesia is a db that comes with erlang itself
17:40
17:40
this is the switch xD
17:41
>
Supports IP, MPLS, ATM, Frame Relay, circuit emulation and voice services The system scales from 10 Gbit/s, in one sub-rack, up to 160 Gbit/s.
17:41
We offer hardware support for the Ericsson AXD 301, including parts supply, repairs and technical assistance. For more information click here...
17:41
"request a quote"
17:41
i wonder how much it costs
Avatar
Should we define on some quality goals and even try to check those in the CI or is that only hindering progress and we can fix up later? A few ideas of quality goals I had:

Match original as pixel perfect as possible

There could be tooling that generates diff images and recommended thresholds. Like shown in this comment. ``` compare grass_main.png /usr/share/ddnet/data/mapres/grass_main.png -compose src d...
Avatar
Well, that was more paper-based result calculating than actual code.. Also im quite impressed with your one-line shell solution for day1, @deen :o #!/bin/bash # Advent of Code 02 x1=$(sed 's/A X/4/g;s/A Y/8/g;s/A Z/3/g;s/B X/1/g;s/B Y/5/g;s/B Z/9/g;s/C X/7/g;s/C Y/2/g;s/C Z/6/g' "$1" | paste -s -d+ | bc) x2=$(sed 's/A X/3/g;s/A Y/4/g;s/A Z/8/g;s/B X/1/g;s/B Y/5/g;s/B Z/9/g;s/C X/2/g;s/C Y/6/g;s/C Z/7/g' "$1" | paste -s -d+ | bc) echo "$x1 $x2"
Avatar
Yes, but too many lines to do the final calculation on paper 😄
Avatar
Avatar
Index
Well, that was more paper-based result calculating than actual code.. Also im quite impressed with your one-line shell solution for day1, @deen :o #!/bin/bash # Advent of Code 02 x1=$(sed 's/A X/4/g;s/A Y/8/g;s/A Z/3/g;s/B X/1/g;s/B Y/5/g;s/B Z/9/g;s/C X/7/g;s/C Y/2/g;s/C Z/6/g' "$1" | paste -s -d+ | bc) x2=$(sed 's/A X/3/g;s/A Y/4/g;s/A Z/8/g;s/B X/1/g;s/B Y/5/g;s/B Z/9/g;s/C X/2/g;s/C Y/6/g;s/C Z/7/g' "$1" | paste -s -d+ | bc) echo "$x1 $x2"
Wadafukjustatest
Avatar
bash is cursed
18:32
well thats more sed
Avatar
Its just like rust, just need to learn the syntax greenthing
Avatar
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 19:07:21Z
oh cool @Nana ナナ sed can take multiple patterns i should add that to my toolbox
Avatar
wrong ping lmao
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 19:10:40Z
wotefek
Avatar
u pinged a Nana ナナ#6814
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 19:11:08Z
da hek
Avatar
Avatar
[quakenet] ChillerDragon
da hek
Stop using irc
19:17
bd67974 Add cloud 2 - ChillerDragon a001aeb Merge pull request #36 from ChillerDragon/pr_cloud2 - def-
Avatar
chillerdragon: now do entities and we have enough high res stuff xd
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 19:32:24Z
ewww entities
19:32
but yea generic unhook would be nice
19:34
whats that xd @Ryozuki is that AI generated?
Avatar
[quakenet] ChillerDragon BOT 2022-12-02 19:35:46Z
good stuff
Avatar
i need to leaarn more erlang, maybe it can be useful to do some server side stuff
Avatar
how compile only server? cmake -DDOWNLOAD_GTEST=OFF -DCLIENT=OFF .. not work
19:53
\
Avatar
cmake DDNet-Server should work just fine
Avatar
Avatar
Matodor
how compile only server? cmake -DDOWNLOAD_GTEST=OFF -DCLIENT=OFF .. not work
what version r u using
Avatar
can i skip GTEST with -DDOWNLOAD_GTEST=OFF ?
Avatar
pnglite is not in ddnet anymore
20:02
so its outdated whatever u use
Avatar
Avatar
Jupstar ✪
what version r u using
im building ddnet-pvp
Avatar
Avatar
Matodor
can i skip GTEST with -DDOWNLOAD_GTEST=OFF ?
yes
Avatar
Avatar
nouaa
cmake DDNet-Server should work just fine
thx brownbear
20:06
20:07
20:07
20:07
trollet
Avatar
it would have just been easier tbh
20:08
you have been asking for things for weeks
Avatar
Avatar
nouaa
you have been asking for things for weeks
me?)
Avatar
hmm, maybe it isn't u (edited)
20:12
someone was there asking about cmake for days/weeks lol
20:14
it was @'拏 MAhdiyar, nvm 🙂
Avatar
Step 1: open a binary in IDA and press F5 Step 2: paste the decompiled code into OpenAI's chatbot Someone's job just got way easier.
Likes
2451
Retweets
474
22:18
OMG WTF
Likes
9399
Retweets
1162
22:19
openai rly good
Avatar
@deen do you happen to know a way to update a set of rows with their ROW_NUMBER()s in a query?
Avatar
update ... where row_number() == ?
22:37
haven't tried though
Avatar
I want to set a column to the row_number
22:38
Basically, I want to persist an ORDER BY
22:39
So I have a Pos column on the row. After ordering how I want, now I need to set the Pos column
Avatar
Why does my question possibly violate their policy? 😄
Avatar
Avatar
Learath2
So I have a Pos column on the row. After ordering how I want, now I need to set the Pos column
Pos = ROW_NUMBER() doesn't work?
Avatar
Seeing people trick ChatGPT into getting around the restrictions OpenAI placed on usage is like watching an Asimov novel come to life.
Likes
6431
Retweets
963
Avatar
Avatar
deen
Pos = ROW_NUMBER() doesn't work?
I'm not quite sure how to put the select + order by and the update together :/
Avatar
I think OpenAI would pass most interviews' soft questions
22:43
🧠 2
Avatar
nice question :o
Avatar
it was actually a follow-up to another question I had for it
Avatar
but the concurrency model is totally flawed
22:44
rust allows actually using mutexes in a completly safe way
Avatar
Oh well, fooled me since I don't know it 😄
Avatar
not just message passing
22:45
and mutexes are usually faster? as far as i know
22:45
so yeah, a rust dev would call this a bit bs tbh
Avatar
really?
22:46
message passing is a way to do things but in rust you can use mutexes
22:46
and read write locks
22:46
in a completly safe way
22:46
if u dont use unsafew
22:46
because of the Send + Sync traits
22:46
Avatar
I seem to need something like a join but with update
Avatar
Avatar
Learath2
I seem to need something like a join but with update
for what?
Avatar
I should always add Bible style to the answers, more fun
wtf 4
Avatar
Avatar
Anime.pdf
for my fans
non-iostreams are suicide
Avatar
Avatar
Ryozuki
rust split_terminator is god
strtok
Avatar
rust better
22:52
split + iterators ftw
22:52
yeah
22:52
i don't like the c way either
Avatar
c++ dopesnt even handle utf8 well by def
Avatar
u just have to use wide implementations
22:52
wstring and prepending literals with L""
Avatar
u can still have bad utf9
22:52
utf8
Avatar
in rust its just UB to have bad utf8
22:53
so if u dont use unsafe u dont have bad utf8
Avatar
good good
22:57
BASED
23:03
generated something for yall 😹
Exported 464 message(s)