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 2023-04-16 00:00:00Z and 2023-04-17 00:00:00Z
Avatar
chillerdragon BOT 2023-04-16 05:26:11Z
Use ddnet++ it has ddnet + extra features such as rainbow (@ayo)
does someone know how do i get rainbow commands and other shits in lan servers?
Avatar
Why would you rewrite the coolest part of the ddnet code? It's ingenious, a macro that immediately makes something allocate in a pool
Avatar
not thread safe
10:08
also i can rewrite this into another macro that just uses different pools
10:08
but bruh why would i do that
Avatar
Not like you can have any useful level of thread safety there without locking
Avatar
bro 3 different cserver instances literally used same pools
10:14
like what i supposed to do
10:14
mess up with offsets
10:14
or anything
10:15
anyway its not most wanted thing i want to pr
Avatar
not global safe, true story
Avatar
ccharacter shouldn't have bidirectional relations with cplayer
Avatar
globals suck for instances 😄
Avatar
cplayer pointer in ccharacter is not even used for ccharacter purposes
Avatar
Avatar
gerdoe
ccharacter shouldn't have bidirectional relations with cplayer
This is true, but I don't get what pools have to do with it
Avatar
theres handlebroadcast thingie that fully appears to be cplayer method xd
Avatar
Actually, it might be useful to have a pointer upwards the hierarchy, but it should just be a pointer, nothing more
Avatar
Avatar
Learath2
This is true, but I don't get what pools have to do with it
yeah pools have nothing to do with this
10:18
just explicit pool is more clear
Avatar
Lot's of spaghetti everywhere
Avatar
Avatar
Learath2
Actually, it might be useful to have a pointer upwards the hierarchy, but it should just be a pointer, nothing more
client id would be enough
Avatar
Avatar
ChillerDragon
The twnet python parser reached it first presentable state poggies! Thanks @Ryozuki for the huffman code and thanks @heinrich5991 for the protocol as json https://ascii.zillyhuhn.com/?a=twnet also fyi @Swarfey
cool stuff 😮
Avatar
Avatar
ChillerDragon
yo @heinrich5991 i suck at wireshark filters did you by any chance have some filter that reduces the noise in tw7 traffics dumps like getting rid of all input and snap messages that spam out every tick. And only keep the more rare packets that also include chat/rcon/broadcast etc
ChillerDragon: no, don't have one right now, sorry
Avatar
Avatar
ChillerDragon
@heinrich5991 sorri for all the pings sir. But im just wondering how mature the rust bridge is in ddnet. I assume the code is the documentation? xd Could i already get started with writing my client CComponent files in rust you know the client thingies like hud.cpp/broadcast.cpp/motd.cpp/chat.cpp etc?
ChillerDragon: the rust bridge itself isn't very documented… given that my goal was to document it, I guess I failed
Avatar
😄 heinrich reading 1 month of chat again xDD
10:55
wb#+
Avatar
Avatar
Ryozuki
idk how actually but its possible probs
only really on linux, it's the only OS where the syscall layer is stable. on macos, windows, *bsd, it's not, and your code will get broken (as did the go code, it only does the direct syscalls on linux now)
Avatar
Avatar
ChillerDragon
@heinrich5991 are the first two bits of the packet header unused? I wanted to double check here https://github.com/heinrich5991/libtw2/blob/master/doc/quirks.md but it didnt mention it
it's only unused in 0.7, I think, and I didn't really document 0.7 a lot. packet 7 is documented here: https://github.com/heinrich5991/libtw2/blob/7885c99974ee445ce13297b72ae3e7c6ea3b969d/doc/packet7.md
Some Teeworlds stuff in Rust. Contribute to heinrich5991/libtw2 development by creating an account on GitHub.
Avatar
Avatar
heinrich5991
only really on linux, it's the only OS where the syscall layer is stable. on macos, windows, *bsd, it's not, and your code will get broken (as did the go code, it only does the direct syscalls on linux now)
Dont bsds have the cool syscall compatibility layer for backwards compat?
Avatar
Avatar
Ryozuki
i think heinric is in a asian timezone
interesting :p
Avatar
Avatar
chillerdragon
def foo(): return 8 * 8@Learath2 leratooooooooooooo!!! daily python trivia!!!!!!!!!!!!!!!!!!!do you pay for for the 8 * 8 multiplication at runtime?
hmm. you don't pay for that multiplication? that's weird… 😮
Avatar
will u also read all #off-topic msgs 😁
Avatar
Avatar
ChillerDragon
in front of the data field there is a size field which you also consume but you do so silently https://github.com/heinrich5991/libtw2/blob/7885c99974ee445ce13297b72ae3e7c6ea3b969d/gamenet/generate/spec/teeworlds-0.7.5.json#L957
ChillerDragon: if I don't group the int with the data, the packet wouldn't know how long it is. treat it as a "data with specified size" 🙂
Avatar
Avatar
Yek
It's legal? this seems not to be real players (edited)
that's not legal, you can ping me if it happens again
Avatar
MICROSOFT
11:31
the same as last time it was down xD
Avatar
Naughty Jupstar
Avatar
Avatar
Patiga
hrmpf when did I break the tees again
cool stuff 😮 must be hard finding renderings that are slightly off but still look nice
Avatar
Original message was deleted or could not be loaded.
oof. is it bad if I want to watch that video?
Avatar
Original message was deleted or could not be loaded.
ah, here
🙃 2
Avatar
Original message was deleted or could not be loaded.
the network stuff is being worked on… slowly
Avatar
Avatar
Jupstar ✪
😄 heinrich reading 1 month of chat again xDD
hi o/
Avatar
Avatar
Learath2
Dont bsds have the cool syscall compatibility layer for backwards compat?
no, only for compat with linux, I think
11:52
done \o/
Avatar
Avatar
heinrich5991
no, only for compat with linux, I think
11:53
Afaik they take atleast backward compat very seriously aswell
Avatar
interesting. I wonder where I got my impression from
12:13
perhaps some other bsd?
Avatar
macos is bsd derived right
Avatar
yes, but I didn't mean macos
12:16
I think
Avatar
in my entire life, i've never seen heinrichs status to be online instead of busy
Avatar
Upcoming changes to the OpenBSD kernel will prevent system calls from being made unless they are coming from libc.so (with some exceptions, for example, a static binary). There are also likely to b...
12:17
I set it to busy because it mutes the sounds discord makes
12:17
there's probably a better way ^^
Avatar
i muted the whole server 😄
Avatar
too many discords, can't mute everything
Avatar
i c
Avatar
i dont c
12:18
i rust
Avatar
Avatar
heinrich5991
too many discords, can't mute everything
I mute when I join
Avatar
mobile discord can't get me to old messages heinrich referring to xd
Avatar
ChillerDragon BOT 2023-04-16 13:29:21Z
had to switch to fakin matrix to deciper all reply cuz irc aint doing any ._. but this still seems off. How does this look on discord? https://zillyhuhn.com/cs/.1681651712.png
Avatar
It's a post with an attachment
Avatar
ChillerDragon BOT 2023-04-16 13:30:50Z
tap
13:30
tap
13:30
tap
13:32
A teeworlds network protocol library, designed according to sans I/O (http://sans-io.readthedocs.io/) principles
13:32
notice me senpaiii
13:35
@Jupstar ✪ ms so broken jopsti we need to switch to gitlab hehe
13:39
@Jupstar ✪ also jopsti my ai proxy can u generate some documentation for heinrichs rust code make a pr which forces him to reply with whats wrong feed that back to ai and update pr ok? this guy is rly scared of readmes somehow
Avatar
ChillerDragon BOT 2023-04-16 13:39:46Z
jao!
13:39
henlo u still alive?
13:39
long time no see
Avatar
OMG it's jao again
Avatar
ChillerDragon BOT 2023-04-16 13:40:20Z
u still got the magnet with cig profile pic on discord?
Avatar
he got a smiling man as his pfp
13:46
if you meant jao
Avatar
Avatar
ChillerDragon
@Jupstar ✪ also jopsti my ai proxy can u generate some documentation for heinrichs rust code make a pr which forces him to reply with whats wrong feed that back to ai and update pr ok? this guy is rly scared of readmes somehow
lol
Avatar
ChillerDragon BOT 2023-04-16 13:50:07Z
yes did mean jao hm sad
13:50
@heinrich5991 now u back ill ping u all day again :p any reason there are no message flags in the json? I would really like to see which message is vital in here https://github.com/heinrich5991/libtw2/blob/7885c99974ee445ce13297b72ae3e7c6ea3b969d/gamenet/generate/spec/teeworlds-0.7.5.json
Some Teeworlds stuff in Rust. Contribute to heinrich5991/libtw2 development by creating an account on GitHub.
Avatar
he's gone already again
Avatar
ChillerDragon BOT 2023-04-16 13:51:16Z
fk
13:51
where does he even go
Avatar
maybe he has a social life
Avatar
ChillerDragon BOT 2023-04-16 13:51:34Z
wtf
Avatar
ikr
Avatar
Typical grass toucher
Avatar
ChillerDragon BOT 2023-04-16 15:28:25Z
@Learath2 lerato! daily paiton trivia!!!!!!!!!!!!!!!!! syntax erro or no?
15:28
Avatar
show selection
Avatar
ChillerDragon BOT 2023-04-16 15:30:48Z
wot is selection?
Avatar
mark the text xd
Avatar
Hm, are those tabs or spaces or wat
Avatar
ChillerDragon BOT 2023-04-16 15:31:25Z
u want vims set list?
15:31
spaces
15:31
15:32
selecztion just all wite in ma terminallo
15:32
sec ima boot the electron. But dont try it out ! use pyton brain no cheating in trivia or ban
Avatar
Assuming all just regular whitespaces. Methinks it's a syntax error
Avatar
chillerdragon BOT 2023-04-16 15:32:57Z
def foo(): print('indentation'); \ print('matters') print(\ 1, \ 2, \ 22, \ 3) foo()
Avatar
But only god himself knows what flavour of glue people were sniffing while they made python
15:33
So maybe it does compile so granny can also code
Avatar
ChillerDragon BOT 2023-04-16 15:33:29Z
no syntax error because \ escapes the newline essentially putting it all in one line and spaces in between stuff in one line is legal
15:33
so if you escape the end of the line you can indent like a meth head
Avatar
Oh I didn't even see the \
15:33
I blame phon
Avatar
ChillerDragon BOT 2023-04-16 15:36:32Z
python* u dislexic fk
15:41
15:41
allows for smooth line shortening xd
Avatar
pls chillerdragon
15:45
reading python hurts
Avatar
ChillerDragon BOT 2023-04-16 15:45:50Z
axaxaxax
15:46
ill be bak tomorow with more trivia for py fan lerato
Avatar
lets face it chillerdragores.. this is more awesome:
15:50
satisfying not having to care about code style
Avatar
ChillerDragon BOT 2023-04-16 15:50:46Z
eww auto format makes me nervous
15:51
i love running ./scripts/fix_style.py tho. Agree typing like a crack head and then running formatter is amazing!
Avatar
i do that pretty often actually 😄
Avatar
ChillerDragon BOT 2023-04-16 15:51:31Z
same here
15:52
i made so many style mistakes getting a red ci that i had to run it anyways
15:52
so if i have to run it why care about style in the first place xd
Avatar
epic
Avatar
ChillerDragon BOT 2023-04-16 15:53:27Z
jupeyy/Schreibtisch
15:53
omg 🍺 🇩🇪 :prezel:
15:58
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
15:58
ah no nvm xd
15:59
thought for a sec that some madlad did & 0xff on a unsigned char but its on sequence which is a 4 byte int so all good i guess
15:59
bits break my head
16:00
this is basically saying gimme one byte from this 4 byte int right?
16:01
assuming its a sane system where ints are 4 bytes
Avatar
Avatar
ChillerDragon
jupeyy/Schreibtisch
^^ pro organization
Avatar
no error
16:08
code is valid
Avatar
ChillerDragon BOT 2023-04-16 16:09:16Z
todays medal goes to mr chair
Avatar
useful when braking long line string or simply long if conditions
Avatar
ChillerDragon BOT 2023-04-16 16:09:44Z
Avatar
you can also just use return when inside function
16:09
without the need for \
16:10
you have a mouse in your appartment sir @ChillerDragon.*
Avatar
ChillerDragon BOT 2023-04-16 16:10:29Z
wot
16:10
a
16:10
now i get it
16:10
good one xd
Avatar
python trivia: is this valid code? if yes, what does it print? a = [1,2,3,4,56] print(*a)
Avatar
ChillerDragon BOT 2023-04-16 16:16:22Z
u forgot to ping lerato he really likes it
Avatar
is this some kind of for all?
Avatar
ChillerDragon BOT 2023-04-16 16:17:46Z
maybe it prints every number on a new line? xd
Avatar
SHIT i dont want to learn anything about python
Avatar
ChillerDragon BOT 2023-04-16 16:18:43Z
wait no space seperated
Avatar
ChillerDragon BOT 2023-04-16 16:19:13Z
i think it evaluates to print(1,2,3..)
16:19
which would print space seperated
Avatar
it does 🙂
Avatar
I'd guess it's valid and the output is 1 2 3 56
Avatar
ChillerDragon BOT 2023-04-16 16:19:28Z
ez
Avatar
4 too
Avatar
Avatar
Learath2
I'd guess it's valid and the output is 1 2 3 56
wrong
Avatar
ChillerDragon BOT 2023-04-16 16:19:34Z
wot
Avatar
output is 1 2 3 4 56 😄
Avatar
ChillerDragon BOT 2023-04-16 16:19:41Z
wow
16:19
trol
Avatar
my parser is inflexible
Avatar
Yeyeye whatever, am on phon
Avatar
ChillerDragon BOT 2023-04-16 16:19:54Z
xd
Avatar
same question now: a = {1 : "hello", "world": 2} print(**a)
Avatar
ChillerDragon BOT 2023-04-16 16:20:37Z
bro its 50/50
16:20
i say it prints 1 world
16:21
"The maintainers of png crate are looking to integrate some of these optimizations, and have also been working on performance improvements to the png crate independently from this effort. The initial results are really promising, although there is more work to be done. If this work pans out, the png crate will become nearly as fast as zune-png. Exciting times!"
Avatar
Avatar
ChillerDragon
i say it prints 1 world
nah, it's syntax valid code, but exception at runtime
Avatar
ChillerDragon BOT 2023-04-16 16:21:25Z
put rust stuff in #off-topic this is a python channel!
Avatar
*a would print 1 world
Avatar
ChillerDragon BOT 2023-04-16 16:21:35Z
o
Avatar
**a passes dictionnary as keyword to function
Avatar
chillerwagon pls
Avatar
ChillerDragon BOT 2023-04-16 16:21:58Z
hihi litle prenk jopsti
Avatar
so it's equivalent to print(1=hello, world=2)
Avatar
ChillerDragon BOT 2023-04-16 16:22:37Z
so it fails bcs 1 is illegal var name?
16:22
interesting
16:22
ye i never used the star thingy maybe i should do now to flex
Avatar
it passes dict key as keyword to function, so you can have global dict options and passes it to every function you use with **myglobaloptions
16:23
especially useful in big frameworks such as numpy, tensorflow and matplotlib
Avatar
ChillerDragon BOT 2023-04-16 16:23:24Z
neat
Avatar
num = 10 print(--num)
Avatar
ChillerDragon BOT 2023-04-16 16:23:38Z
i really like the named options in python
16:23
10?
Avatar
yup, double minus operator
16:24
there's no -- operator in python
16:24
neither ++
Avatar
ChillerDragon BOT 2023-04-16 16:24:21Z
so its just 10 right?
16:24
lerato reveal!
16:24
or riot
Avatar
it is 10
Avatar
ChillerDragon BOT 2023-04-16 16:26:22Z
git push -fvfvfvfvvfvfvf git arg error or no?
Avatar
ChillerDragon BOT 2023-04-16 16:27:03Z
ez
Avatar
Ok, I can think of one more a, b = 257, 257 print(a is b)
Avatar
ChillerDragon BOT 2023-04-16 16:27:28Z
True
Avatar
a = 257 b = 257 print(a is b) How about this one?
Avatar
ChillerDragon BOT 2023-04-16 16:28:15Z
True
Avatar
Anyone else want to try?
Avatar
ChillerDragon BOT 2023-04-16 16:29:01Z
sounds like im wrong then xd
Avatar
Who knows? I want to let others try too
Avatar
ChillerDragon BOT 2023-04-16 16:30:15Z
u got a quiz show or sumsin?
16:30
quality moderation
16:30
works only until 255 i think
Avatar
ChillerDragon BOT 2023-04-16 16:30:55Z
wtf
Avatar
all 8-bit numbers are shared in python
Avatar
ChillerDragon BOT 2023-04-16 16:30:57Z
thats cursed
Avatar
i dont remember the reasoning behind this
Avatar
ChillerDragon BOT 2023-04-16 16:31:31Z
holy shit this could cause some major debugging brain damage
16:31
xd
16:31
worked until 255 xxxxxxxxxxxxxD
Avatar
oh you tried the code?
16:31
you cheater !!!
Avatar
ChillerDragon BOT 2023-04-16 16:31:58Z
after u said it
16:32
i checked 0
16:32
and it true while 257 is false
16:32
so i believed u
Avatar
256 is true or false?
16:32
i think it's false
16:32
255 should be last true
Avatar
ChillerDragon BOT 2023-04-16 16:32:32Z
true
Avatar
damn, so all 8-bit + 256 😄
Avatar
ChillerDragon BOT 2023-04-16 16:32:48Z
256 is last cuz trol
16:33
i guess u spoiled leratos follow up
Avatar
little useless trivia, what's the sizeof of an int in python?
Avatar
ChillerDragon BOT 2023-04-16 16:33:20Z
it was a 3 step master piece trivia
16:33
4?
16:33
or maybe something dynamic
16:34
i know py can do big numbers
Avatar
Funnily enough first one will be True and the second one will be False due to the reason Chairn gave
Avatar
inifinite
16:34
its a string
Avatar
ChillerDragon BOT 2023-04-16 16:34:20Z
xd
16:34
chairn rly py pro
16:34
ngl
Avatar
Some tuple unpacking optimization makes the first onw work out, atleast in the CPython version I used
Avatar
the best part about python is, that u can uninstall it
Avatar
ChillerDragon BOT 2023-04-16 16:35:02Z
i use Jython bcs jvm so nice im a tru java fan
Avatar
xD
16:35
java + python
16:35
awesome
Avatar
Avatar
ChillerDragon
or maybe something dynamic
yes, they are dynamic cuz they can represent all numbers
16:35
but default size is 28 bytes
Avatar
wat
Avatar
ChillerDragon BOT 2023-04-16 16:35:42Z
i know its a meme but somehow these bloat languages somehow beat c implentation in some benchmarks
Avatar
thats huge
16:35
and a random number
Avatar
ChillerDragon BOT 2023-04-16 16:35:57Z
jopsti there is pypy its python written in python and its faster than python in c
16:35
xd
Avatar
Avatar
Chairn
but default size is 28 bytes
Isn't this still all up to the implementation?
Avatar
in Cpython then
16:36
not sure about others
Avatar
Avatar
ChillerDragon
jopsti there is pypy its python written in python and its faster than python in c
how does that even work chiller
Avatar
ChillerDragon BOT 2023-04-16 16:36:20Z
also there is truffleruby which is ruby in java instead of in c which also is faster
16:36
idk
Avatar
python in python but what runs python?
Avatar
ChillerDragon BOT 2023-04-16 16:36:31Z
i only red there marketing heading
16:36
and rq
Avatar
but they need a way to represent all integers numbers and detect overflow, so they should all be bigger than 8 bytes
Avatar
ChillerDragon BOT 2023-04-16 16:36:42Z
A fast, compliant alternative implementation of Python Download PyPy What is PyPy ? Documentation (external link) On average, PyPy is 4.8 times faster than CPython 3.7 PyPy (with JIT)
Avatar
python-ception
Avatar
ChillerDragon BOT 2023-04-16 16:36:50Z
On average, PyPy is 4.8 times faster than CPython 3.7
Avatar
there is rustpython
brownbear 1
Avatar
ChillerDragon BOT 2023-04-16 16:37:11Z
wait
16:37
no pypy might be not python
Avatar
JIT, so it's asm-python in real time 😄
Avatar
ChillerDragon BOT 2023-04-16 16:37:20Z
its RPython languzage xd
16:37
ok that might be false info
Avatar
isnt there a compiler actually
16:37
cant remember the name
16:37
but there was one
Avatar
How is pypy a thing even? Do they just run on an instance of cpython?
Avatar
ChillerDragon BOT 2023-04-16 16:37:56Z
>
16:37
TruffleRuby is the fastest Ruby implementation for many CPU-intensive benchmarks.
16:38
A high performance implementation of the Ruby programming language, built on GraalVM. - GitHub - oracle/truffleruby: A high performance implementation of the Ruby programming language, built on Gra...
16:38
ruby in the jvm claims to outperform ruby written in c
Avatar
they all claim stuff
Avatar
ChillerDragon BOT 2023-04-16 16:39:11Z
ikr
16:39
xd
Avatar
i only trust the benchmark game
16:39
for highly optimized almost assembler code that nobody can read xD
Avatar
ChillerDragon BOT 2023-04-16 16:40:01Z
i should really replace my system cpython with jython just for the memes
Avatar
This is quite bizarre actually
Avatar
ChillerDragon BOT 2023-04-16 16:40:15Z
yes it is
Avatar
But it's probably just the fact that the JVM has decades of work done on it
Avatar
ChillerDragon BOT 2023-04-16 16:40:55Z
tru vs this new C language thing
Avatar
While who even uses Ruby except github and the couple others that got scammed around the time ruby became a thing
Avatar
ChillerDragon BOT 2023-04-16 16:41:22Z
xd
16:41
not many
Avatar
chiller used it
16:41
he got scammed
Avatar
ChillerDragon BOT 2023-04-16 16:41:38Z
i tru github fan
16:41
so i gotta
Avatar
use rust
Avatar
ChillerDragon BOT 2023-04-16 16:41:51Z
ok
Avatar
Use C
Avatar
ChillerDragon BOT 2023-04-16 16:42:04Z
is there a rust compiler written in java?
Avatar
man who still uses java in 2023
Avatar
Avatar
ChillerDragon
is there a rust compiler written in java?
Currently the only "complete" implementation of Rust is the llvm one
Avatar
stop
Avatar
Avatar
Jupstar ✪
man who still uses java in 2023
Companies love it still for some reason
Avatar
ChillerDragon BOT 2023-04-16 16:42:44Z
then i can not use it sorry
16:42
i need my java
Avatar
java 19
Avatar
Corporations biggest Java shills
Avatar
ChillerDragon BOT 2023-04-16 16:42:58Z
can rust do sharding?
Avatar
they actually giving faster pace to java dev
Avatar
Avatar
Learath2
Companies love it still for some reason
even they now only use typescript & c# for new projects, dont they xd
Avatar
Avatar
ChillerDragon
can rust do sharding?
But is it web scale?
Avatar
ChillerDragon BOT 2023-04-16 16:43:15Z
xd
Avatar
the best db is dev null
16:43
dev random also has all the data
Avatar
dev urandom master race
16:43
don't use dev random
16:43
never
Avatar
i forgot the device name
16:44
dont kill me
Avatar
Avatar
Jupstar ✪
even they now only use typescript & c# for new projects, dont they xd
They keep making weird ts and c# frontends for their ancient java backends that are just bridges to some COBOL and FORTRAN running on an IBM mainframe in some datacenter god himself forgot
16:44
your user will
Avatar
ChillerDragon BOT 2023-04-16 16:44:25Z
urandom?
Avatar
/dev/random is blocking file
16:44
/dev/urandom is non blocking
Avatar
Avatar
Learath2
They keep making weird ts and c# frontends for their ancient java backends that are just bridges to some COBOL and FORTRAN running on an IBM mainframe in some datacenter god himself forgot
xd but tru
16:44
u random dev
Avatar
nasa has fallen into that
Avatar
ChillerDragon BOT 2023-04-16 16:44:54Z
cat /dev/urandom make funi gnome sounds
Avatar
ja interfaces
Avatar
if you try xxd /dev/random it will hang immediately
Avatar
ChillerDragon BOT 2023-04-16 16:45:13Z
what will hang?
16:45
xxd?
Avatar
ChillerDragon BOT 2023-04-16 16:45:21Z
or everything?
Avatar
because it cannot read
Avatar
ChillerDragon BOT 2023-04-16 16:45:25Z
ok borin
Avatar
ChillerDragon BOT 2023-04-16 16:45:55Z
what happens if one does chsh -s /dev/random ?
Avatar
is there a xkcd about xkcd
Avatar
ChillerDragon BOT 2023-04-16 16:46:09Z
settin login shell to /dev/random instead something like /bin/bash
16:46
can someone try? thanks
16:46
xd
16:47
holy shit i do not know what it does might be equivalent to rm -rf / pls dont run the cmd i sent ._.
Avatar
probably nothing
Avatar
ChillerDragon BOT 2023-04-16 16:48:08Z
im pretty sure its bad
Avatar
you cant execute /dev/random anyway
Avatar
ChillerDragon BOT 2023-04-16 16:48:43Z
yea and if you can not execute your login shell wat do u do?
16:48
xd
Avatar
you boot in single mode
16:50
or you ssh as root
16:50
i believe there's a fallback shell anyway
Avatar
ChillerDragon BOT 2023-04-16 16:51:07Z
i wouldnt wanna test it on any machine i own xd
16:51
but yea adding a tmp user seems safish
Avatar
chiller make ur own fake shell thats a honeypot
16:53
and only u know how to bypass
Avatar
ChillerDragon BOT 2023-04-16 16:54:04Z
as main entrance? that i use all the time?
16:54
sounds fun
16:54
if you can bypass its not really a honeypot is it?
16:55
cuz u knownit
16:56
its for others
16:56
ur mom
Avatar
ChillerDragon BOT 2023-04-16 16:56:46Z
my mom? xd
16:57
you mean locally on my device everytime on terminal boot? oof i thought u meant in ssh in case someone cracks my pass
16:57
on a vps
16:57
you mean a honeypot screen locker?
16:57
heinrich has a cool one :) i hope he doesnt kill me that i leaked it xd ask him for details i guess
Avatar
he is online again
17:19
now u can ask your questions
17:19
chillerdragon
Avatar
ChillerDragon BOT 2023-04-16 17:26:21Z
xd
17:26
jpstr new discord online status bot
Avatar
Don't you remember? I am your personal assistant
Avatar
ChillerDragon BOT 2023-04-16 17:27:33Z
thats new
17:27
i only remember you being: my lawyer, my financial advisor, my ai proxy
Avatar
you did the !help command
17:29
can i trigger your command btw?
17:29
!help
17:29
apparently not
Avatar
ChillerDragon BOT 2023-04-16 17:29:09Z
hehe no
17:29
it check if chiler
17:29
!help
Avatar
chillerbot BOT 2023-04-16 17:29:21Z
https://github.com/ChillerDragon/ddnet-bot-irc eth0=192.168.178.22 commands: !mods
irc bot for ddnet#developer. Contribute to ChillerDragon/ddnet-bot-irc development by creating an account on GitHub.
Avatar
ChillerDragon BOT 2023-04-16 17:29:53Z
ah wait help u can trigger
17:29
but not from bridge
17:30
i gotta add bridge support soooon
Avatar
Avatar
ChillerDragon
A teeworlds network protocol library, designed according to sans I/O (http://sans-io.readthedocs.io/) principles
Avatar
Avatar
ChillerDragon
that looks cool 🙂
Avatar
ChillerDragon BOT 2023-04-16 17:31:24Z
also noticed that
17:31
so i rq on the perma link
17:31
also heinrich for sure is a perma link bot xd
Avatar
Avatar
ChillerDragon
@heinrich5991 now u back ill ping u all day again :p any reason there are no message flags in the json? I would really like to see which message is vital in here https://github.com/heinrich5991/libtw2/blob/7885c99974ee445ce13297b72ae3e7c6ea3b969d/gamenet/generate/spec/teeworlds-0.7.5.json
ChillerDragon: could probably try to add that, with the rule "only non-vital if input or snap"
Avatar
ChillerDragon BOT 2023-04-16 17:33:13Z
oh i see
17:33
seems reasonable
17:33
is that for both game and system?
17:33
still would be cool in the json wouldn't it?
Avatar
Avatar
Chairn
python trivia: is this valid code? if yes, what does it print? a = [1,2,3,4,56] print(*a)
1 2 3 4 56, no?
Avatar
ChillerDragon BOT 2023-04-16 17:35:44Z
idk how did u check?
17:35
also what
17:35
a
17:35
omg
17:36
56 is not even a message id xd
17:36
its a reply
17:36
fakin irc
Avatar
Avatar
Chairn
same question now: a = {1 : "hello", "world": 2} print(**a)
I'd guess invalid?
Avatar
ChillerDragon BOT 2023-04-16 17:37:00Z
trivia enjoyer
Avatar
Avatar
Learath2
a = 257 b = 257 print(a is b) How about this one?
True False in cpython
👍 1
Avatar
ChillerDragon BOT 2023-04-16 17:38:44Z
!ping
Avatar
chillerbot BOT 2023-04-16 17:38:45Z
pong
Avatar
ChillerDragon BOT 2023-04-16 17:38:48Z
jopsti try
17:38
10% chance it doesnt crash xd
Avatar
!ping
Avatar
ChillerDragon BOT 2023-04-16 17:39:21Z
hm it added space
17:39
i see
17:39
sec
17:39
re
Avatar
chillerdragon BOT 2023-04-16 17:40:27Z
!ping
17:40
forgot to restart xd
17:40
!ping
Avatar
!ping
17:40
!help
Avatar
ChillerDragon BOT 2023-04-16 17:41:03Z
i think it stuck
Avatar
pro coder live
Avatar
ChillerDragon BOT 2023-04-16 17:41:07Z
banned by quakenet xd
Avatar
Avatar
heinrich5991
True False in cpython
Now the same question but s/257/256/g
Avatar
ChillerDragon BOT 2023-04-16 17:41:46Z
doesnt he read all in order so he gets spoiled anyways
Avatar
Avatar
Learath2
Now the same question but s/257/256/g
256 is small enough already? thought it's 255
Avatar
ChillerDragon BOT 2023-04-16 17:42:53Z
yes thats the trol
Avatar
but the way you ask the question makes me think it's True True
Avatar
Avatar
Learath2
Anyone else want to try?
a = 20 b = 4 * 5 print(a is b) true or false lol
Avatar
(cpython)
Avatar
Yep it is small enough already
Avatar
Avatar
Cellegen
a = 20 b = 4 * 5 print(a is b) true or false lol
True (cpython)
17:43
I'm afraid I have to say it's false tho
Avatar
fun begins when you mess with the cached values of the small integers btw
Avatar
it's because of variable identification, one is 20, but the other one is a calculation
Avatar
Are you sure? I'm also pretty certain that's True in cpython
Avatar
>>> a = 20 >>> b = 4 * 5 >>> print(a is b) True
Avatar
chillerdragon BOT 2023-04-16 17:44:38Z
!ping
Avatar
chillerbot BOT 2023-04-16 17:44:38Z
pong
Avatar
ChillerDragon BOT 2023-04-16 17:44:41Z
ez
Avatar
!help
Avatar
chillerbot BOT 2023-04-16 17:44:51Z
https://github.com/ChillerDragon/ddnet-bot-irc eth0=192.168.178.22 commands: !mods
irc bot for ddnet#developer. Contribute to ChillerDragon/ddnet-bot-irc development by creating an account on GitHub.
Avatar
(CPython 3.10.10)
Avatar
Avatar
Cellegen
it's because of variable identification, one is 20, but the other one is a calculation
have you tried it? ^^
Avatar
ChillerDragon BOT 2023-04-16 17:45:15Z
if mods works im in trouble xd
Avatar
ChillerDragon BOT 2023-04-16 17:45:41Z
no proof
Avatar
If the result is greater than 256 then you do run into troubl
Avatar
Avatar
heinrich5991
have you tried it? ^^
It doesn't even let me, because the variable cannot be used for "is" while it is a calculation
Avatar
ChillerDragon BOT 2023-04-16 17:46:20Z
wait i found a loophole aa
17:46
sometimes I love gdscript
Avatar
Avatar
Cellegen
It doesn't even let me, because the variable cannot be used for "is" while it is a calculation
can you show the error message and what your input is?
Avatar
ah, godot script
Avatar
We are talking about python
Avatar
it's weird, in C++ is it the same?
17:48
gdscript is a combination of C++ with python structure
Avatar
ChillerDragon BOT 2023-04-16 17:49:17Z
wat u buildin
Avatar
C++ doesn't really have is
17:49
Oh
Avatar
Avatar
Cellegen
gdscript is a combination of C++ with python structure
Oo sounds horrible xd
Avatar
Avatar
ChillerDragon
wat u buildin
I'm building an extension, which Godot fucking needs, because it lacks features
Avatar
chillerdragon BOT 2023-04-16 17:51:02Z
ok but for what do you need the extension wat u building in godot?
Avatar
Including a proper character, more advanced functions which is really just regular functions and other neat tricks which Godot enables me to do
17:51
I'm building a plugin, which you can use to improve your game dev
17:51
Nothing fancy, but I didn't see anybody do it, so I'll do it
Avatar
Avatar
Jupstar ✪
Oo sounds horrible xd
Yeah a little kek But it's manageable since the IDE is highly flexible with scripts (edited)
17:53
It has limitations and missing features, but it's a good engine regardless 🙂
Avatar
i wonder how hard it is to make a python interpreter
19:01
the lowered python is not that complicated maybe
Avatar
ChillerDragon BOT 2023-04-16 19:16:13Z
ryo being bold
Avatar
pub fn rgb2gray(&self) -> [f32; 256*256] { let mut gray_pixels: [f32; 256*256] = [0.0; 256*256]; gray_pixels } @Ryozuki I got a question for you. In rust, where is gray_pinxels allocated? And if it's on the stack, how come you can use it outside of this function scope?
Avatar
stack and moved
19:51
also that mut is useless
Avatar
I removed some code
Avatar
but yeah ur doing a copy
Avatar
But thanks
Avatar
Rust by Example (RBE) is a collection of runnable examples that illustrate various Rust concepts and standard libraries.
👍 1
Avatar
There's nothing special, switched from previous global pool to local one. Next step is unifying m_apPlayers calls by introducing new CObjectPool *PlayerPool() const or CPlayer *GetPlayer(int ClientID) const.

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
  • [ ] Consider...
Avatar
Can we upgrade to SDL 2.0.18 on Windows or is there some SDL bug preventing it? We need 2.0.18 or 2.0.20 for correct IME handling, because they broke it in 2.0.16 (which is currently used on Windows) and they also broke it in a different way starting with 2.0.22 until the latest version. https://github.com/libsdl-org/SDL/issues/7616
For example when using the Japanese IME and typing "watashi" as "わたし" the caret should initially be positioned after the character "し". While the composition is active...
Avatar
@Robyt3 has this been fixed? https://github.com/ddnet/ddnet/issues/4537
According to Rei ayanami on discord Says 144 fps don't feel like 144 and on 15.7 it feels smooth
Exported 495 message(s)