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-07-25 00:00:00Z and 2023-07-26 00:00:00Z
Avatar
The bot mistakenly links to issues/PRs mentioned in single backtick code lines. The fix should address this issue.
Avatar
murpi only has 1 follower
04:11
we should fix that
Avatar
chillerdragon BOT 2023-07-25 07:38:25Z
And get him to 0? (@TsFreddie)
we should fix that
Avatar
if you can chiller
07:38
i dare you
07:41
96efe32 ignore inline code, fix regex - murpii fc154cd Merge pull request #53 from murpii/pr_ignore_inline_code - def-
Avatar
ok now he has 4
07:51
now that should be good enough
07:51
follow 4 follow anyone :D
Avatar
i follow if u have interesting stuff or do interesting stuff
07:58
most of my followers are bots or accounts from the web3 boom
07:58
gigachad
07:59
someone from microsoft follows me xd
Avatar
mixed feelings kek
Avatar
i know a few ms people but they don't follow on github
08:01
most ppl don't use this feature
Avatar
does the tele pred pr have pred for kill tiles too?
09:27
I think respawn tiles put you the furthest away from the nearest tee, but if you don't have /Showall then I don't think the client can know which respawn tile the server will pick
09:35
xorg wins over wayland
Avatar
the x.org maintainers went to wayland IIRC
Avatar
is vsync still forced?
Avatar
ddg'ing "vsync forced wayland" leads me to https://old.reddit.com/r/linux_gaming/comments/lscc3v/ (RIP reddit) which leads me to the following merged pull request: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/65
This protocol is meant to be used by drivers to be able to hint to the compositor if and when it should employ asynchronous page flips for presentation....
Avatar
Avatar
Ryozuki
is vsync still forced?
Yes
09:42
The prs for the drivers are still open
09:42
Nori will notify us when they in 😂
Avatar
Avatar
Jupstar ✪
The prs for the drivers are still open
☝🤓 since its gitlab its a MR not a PR
Avatar
Avatar
Ryozuki
☝🤓 since its gitlab its a MR not a PR
just call the concept whatever you want
Avatar
ye its a joke
09:48
how well does ddnet work in wayland
09:49
does the xwayland bridge have forced vsync too?
Avatar
my quick ddg search yields no results
Avatar
@heinrich5991 Do you mean I should remove the entire commit adding IO_NEWLINE or just always use \n for the JSON writer? Should I add another constant #define JSON_NEWLINE "\n" then or use the literal "\n" everywhere in the tests? https://github.com/ddnet/ddnet/pull/6874#pullrequestreview-1544214616
Port the CJsonWriter utility class from upstream, which makes outputting correct JSON easier. Add CJsonWriter as an abstract class that can write to different outputs. Two implementations CJsonFile...
Avatar
Avatar
Robyt3
@heinrich5991 Do you mean I should remove the entire commit adding IO_NEWLINE or just always use \n for the JSON writer? Should I add another constant #define JSON_NEWLINE "\n" then or use the literal "\n" everywhere in the tests? https://github.com/ddnet/ddnet/pull/6874#pullrequestreview-1544214616
I guess removing the entire commit with IO_NEWLINE would be good. don't add another constant for JSON_NEWLINE, but directly use \n everywhere
09:58
what do you think about that? @Robyt3
Avatar
Seems okay, I just added IO_NEWLINE to avoid the duplicate testing code, but only using \n also works
Avatar
guys its possible to change the background of a map? no entities background
Avatar
https://cmake.org/cmake/help/latest/policy/CMP0148.html

Checklist

  • [x] Tested the change ~ingame~
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind...
Avatar
Avatar
Ryozuki
does the xwayland bridge have forced vsync too?
Yes
Avatar
hi jopstat
11:04
jopstar
11:04
jup
11:04
juice man
11:05
@Ryozuki ^
Avatar
Avatar
rayko
guys its possible to change the background of a map? no entities background
in the editor? while playing?
Avatar
@Ewan hi Ewan Iwan Ip man
Avatar
it’s me
11:06
Ip man
Avatar
Legendary
11:07
win10
Avatar
I use windows in my room. But that's about all euphoria you'll get from me about windows
Avatar
english confused me for a second
11:12
why is wireshark also on discord?
11:13
is there no good open-source communication medium left?
11:13
(sent to discord)
Avatar
I recommend ChillerDragons IRC chat . It's debatable if it's good. But it's defs unique xd
Avatar
4fe7aaa execute CFGFLAG_GAME configs on the client - sjrc6 8e04f6c Merge pull request #6912 from sjrc6/pr-use-CFGFLAG_GAME - heinrich5991
Avatar
Avatar
Ryozuki
i follow if u have interesting stuff or do interesting stuff
i feel validated
Avatar
00a0e0e Fix CMP0148 - heinrich5991 90f1a54 Update downloaded version of GTest to 1.13.0 - heinrich5991 b048abd Merge pull request #6913 from heinrich5991/pr_ddnet_fix_cmp0148 - Robyt3
Avatar
I just realized I started too many personal projects and none of them can be done because i'm just exhausted after work everyday
13:29
I'm not even doing overtime recently (edited)
Avatar
Avatar
TsFreddie
I'm not even doing overtime recently (edited)
very good 🙂
Avatar
brownbear the last project shipped
13:30
so we can breathe for a while (edited)
13:32
I keep falling asleep at 10pm and wake up at 4am lately
Avatar
ec55e2f test: Make it easier to generate multiple temporary filenames - heinrich5991 31737d8 Fix test filenames when using typed tests - Robyt3 880dab7 Port JSON writer from upstream - Robyt3 1170add Merge pull request #6874 from Robyt3/CJsonWriter - heinrich5991
Avatar
@heinrich5991 @Learath2 @Jupstar ✪ https://lock.cmpxchg8b.com/zenbleed.html
14:23
14:23
It turns out that with precise scheduling, you can cause some processors to recover from a mispredicted vzeroupper incorrectly!
>
This technique is CVE-2023-20593 and it works on all Zen 2 class processors, which includes at least the following products:
>
AMD Ryzen 3000 Series Processors AMD Ryzen PRO 3000 Series Processors AMD Ryzen Threadripper 3000 Series Processors AMD Ryzen 4000 Series Processors with Radeon Graphics AMD Ryzen PRO 4000 Series Processors AMD Ryzen 5000 Series Processors with Radeon Graphics AMD Ryzen 7020 Series Processors with Radeon Graphics AMD EPYC “Rome” Processors
>
The bug works like this, first of all you need to trigger something called the XMM Register Merge Optimization2, followed by a register rename and a mispredicted vzeroupper. This all has to happen within a precise window to work.
>
We now know that basic operations like strlen, memcpy and strcmp will use the vector registers - so we can effectively spy on those operations happening anywhere on the system! It doesn’t matter if they’re happening in other virtual machines, sandboxes, containers, processes, whatever!
>
This works because the register file is shared by everything on the same physical core. In fact, two hyperthreads even share the same physical register file.
14:24
u beat me to it this time
14:24
xd
14:24
somehow i missed it lol
Avatar
But u didn't tag me to force me read the news xdd
14:26
cvtsi2sd
Avatar
So if it's fixed in newer ryzens. Did they know about it?
Avatar
man assembly instructions rly got some names
14:26
xdd
Avatar
I payed 250€ for my 16 cores lmao
Avatar
is 7020 new?
Avatar
Avatar
Jupstar ✪
So if it's fixed in newer ryzens. Did they know about it?
it's only fixed if you updated your microcode since essentially yesterday
Avatar
Avatar
Ryozuki
is 7020 new?
That's graphics
Avatar
Avatar
heinrich5991
it's only fixed if you updated your microcode since essentially yesterday
I mean newer hardware
14:27
It didn't mention Ryzen 7000 series
Avatar
Avatar
Ryozuki
@heinrich5991 @Learath2 @Jupstar ✪ https://lock.cmpxchg8b.com/zenbleed.html
@Chairn this probs also interests u
Avatar
@Chairn indeed. That's why u have to buy newest hardware
14:28
Don't do the same mistake as me
Avatar
is it even fixed in the latest hardware?
Avatar
i've seen it already
14:29
saw a poster abut that kind of optimization with intel chips on november, leading to the same data leak
Avatar
Avatar
Jupstar ✪
@Chairn indeed. That's why u have to buy newest hardware
last hardware is probably even worse
14:29
they keep introducing new vulnerabilities 😄
Avatar
@Chairn if I buy u a modern gaming PC. Would u use it?
Avatar
So u intentionally use slow hardware?
14:30
Gaming laptop
14:30
As alt
Avatar
Avatar
Chairn
no
rly?
14:30
compiling ddnet in 20 secs is nice
Avatar
In 6 even nicer
Avatar
on release
14:31
can u compile it in 6? xd
14:31
i should try compiling ddnet on a tmpfs too
14:31
maybe it speeds up
Avatar
Haven't tried lately. But the 16 core upgrade boosted it again xd
14:32
@Jupstar ✪ @heinrich5991 btw im interested in this, do you introduce extensive testing on ur ddnet rust projects? property testing?
14:32
i rly wonder if game dev big houses do some kind of automated testing on gameplay
14:33
specially for games with precise physics
Avatar
I'm leaning a bit on libtw2 for reimplementing the teeworlds 0.6 protocol. that has lots of testing and also quickcheck-like testing
Avatar
Avatar
Ryozuki
specially for games with precise physics
probably not
Avatar
Avatar
Ryozuki
i rly wonder if game dev big houses do some kind of automated testing on gameplay
we could do that with @Zwelf's teehistorian replayer at some point 🙂
Avatar
that would be kind of like differential testing?
Avatar
I introduced testing for network mostly. Else only smaller tests for either how I want to use libs or libs I introduced
Avatar
Differential testing, also known as differential fuzzing, is a popular software testing technique that attempts to detect bugs, by providing the same input to a series of similar applications (or to different implementations of the same application), and observing differences in their execution. Differential testing complements traditional softw...
14:35
CPU vulnerabilities found in the past few years: https://en.wikipedia.org/wiki/Meltdown_(security_vulnerability) https://en.wikipedia.org/wiki/Spectre_(security_vulnerability) https://aepicleak.com/ https://en.wikipedia.org/wiki/Software_Guard_Extensions#SGAxe https://en.wikipedia.org/wiki/Software_Guard_Extensions#LVI https://en.wikipedia.org/wiki/Software_Guard_Extensions#Plundervolt https://en.wikipedia.org/wiki/Software_Guard_Extensions#MicroScope_replay_attack https://en.wikipedia.org/wiki/Software_Guard_Extensions#Enclave_attack https://en.wikipedia.org/wiki/Software_Guard_Extensions#Prime+Probe_attack https://www.vusec.net/projects/crosstalk/ https://en.wikipedia.org/wiki/Hertzbleed https://www.securityweek.com/amd-processors-expose-sensitive-data-new-squip-attack/
14:35
xd
Avatar
Testing in async is really hard xd
14:37
@Ryozuki where do u want to introduce tests?
Avatar
ChillerDragon BOT 2023-07-25 14:37:56Z
heinrich be like
14:38
"I use duckduckgo BTW"
Avatar
personally everywhere, but specially physics
14:38
aka tests where the code affects the users the most directly
14:39
Over the past one and a half years, Stack Overflow has lost around 50% of its traffic. This decline is similarly reflected in site usage, with approximately a 50% decrease in the number of questions and answers, as well as the number of votes these posts receive. The charts below show the usage represented by a moving average of days. The data...
Avatar
Well gonna be interesting how hard it is to pass zwelfs tests unintentionally ^^ he said he added like 400 tests
Avatar
zwelf is a true ruster
14:40
i actually never checked the code from his repo
14:40
gitlab rly makes it invisible a lot for me sadly
Avatar
He's the most active silent dev xd
14:41
im also active dev, just at work
14:41
kek
14:41
well i got a small side project now, ddstats
14:42
Total players: 3338
14:42
nice
Avatar
I'll do the 1 quadrillion fps moddablest tw version ever (edited)
14:42
It's finished before the universe dies
Avatar
ChillerDragon BOT 2023-07-25 14:42:56Z
Total players: 3338
14:42
all bots
Avatar
ChillerDragon BOT 2023-07-25 14:43:08Z
i hooman
Avatar
with 8 clients
Avatar
ChillerDragon BOT 2023-07-25 14:43:18Z
no proof
Avatar
200% Tru tho
Avatar
This is a preperation for #6754 (redirect players on map vote) And an implementation of #5662 (redirect players) Reopen of #6757

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [x] Changed no physics that ...
Avatar
Avatar
ChillerDragon
"I use duckduckgo BTW"
what should I say to be neutral on that?
Avatar
i guess just say ur search result said that
14:48
but i dont mind u saying ddg xd
Avatar
ChillerDragon BOT 2023-07-25 14:49:04Z
I am vegan BTW
Avatar
Chillig
Avatar
nice if you are, not nice if this is supposed to be the "how do you know someone is vegan" joke
Avatar
ChillerDragon BOT 2023-07-25 14:50:43Z
its the latter
14:50
if in doubt its me being offensive
Avatar
ChillerDragon I'm vegan bte
Avatar
ChillerDragon BOT 2023-07-25 14:51:04Z
you are?
Avatar
Btw
14:51
Yes
Avatar
ChillerDragon BOT 2023-07-25 14:51:09Z
pog
Avatar
ChillerDragon BOT 2023-07-25 14:51:23Z
ye im not ._.
Avatar
Shame
14:51
Boomer
Avatar
ChillerDragon BOT 2023-07-25 14:51:33Z
indeed
Avatar
But I bet I ate a fly lately. They fcking everywhere xd
Avatar
ChillerDragon BOT 2023-07-25 14:54:57Z
eww
Avatar
Free protein
Avatar
ChillerDragon BOT 2023-07-25 14:55:29Z
14:55
jopsti face reveal
Avatar
Froggers
Avatar
jfroggers
Avatar
ChillerDragon BOT 2023-07-25 14:55:57Z
xd
Avatar
@Jupstar ✪ do u eat eggs
Avatar
ChillerDragon BOT 2023-07-25 15:06:17Z
thats not vegan...
15:06
ryo trol
Avatar
Avatar
Ryozuki
@Jupstar ✪ do u eat eggs
I'm not sure in what context you mean it. But always no xd
Avatar
wanted to know if u vegetarian instead
15:07
xd
Avatar
I didn't like eggs ever anyway xD
Avatar
ChillerDragon BOT 2023-07-25 15:08:53Z
eggs s good what can i say
Avatar
Nowadays it's not even hard to be vegan xd. One trillion alternatives. 10 years ago it was much harder xd
15:10
Thanks hipster kids xd
Avatar
ChillerDragon BOT 2023-07-25 15:12:29Z
omagawd @heinrich5991 can we discuss redirects?
Avatar
sure
Avatar
ChillerDragon BOT 2023-07-25 15:12:41Z
pog
Avatar
@Kaffeine
Avatar
ChillerDragon BOT 2023-07-25 15:13:04Z
why u insisting on dropping the connection?
15:13
ok whatever i dont care my client will be up to date i will be redirected
15:13
if it bothers me on my server i can change the code
Avatar
correct
Avatar
ChillerDragon BOT 2023-07-25 15:13:47Z
ok then if it has to happen how?
15:14
how do i ensure the client is not dropped before it got the redirect message?
Avatar
check if the client is too old
Avatar
ChillerDragon BOT 2023-07-25 15:14:25Z
no i mean
15:14
if its recent enough
Avatar
if so, drop the client right after sending the (flushed) redirect message
15:14
if it's recent enogh
Avatar
ChillerDragon BOT 2023-07-25 15:14:52Z
so flushing it and then dropping
15:14
thats all the gurantee there is?
Avatar
send the redirect message and wait for the client to drop the connection
15:15
if the client sends further messages, ignore them completely
Avatar
ChillerDragon BOT 2023-07-25 15:15:12Z
so drop the connection after a timeout?
Avatar
I'd be fine without the timeout
Avatar
ChillerDragon BOT 2023-07-25 15:16:05Z
will it?
15:16
its udp after all
Avatar
that's the same as normal disconnects then
Avatar
ChillerDragon BOT 2023-07-25 15:16:52Z
you mean kicks?
Avatar
ws-client BOT 2023-07-25 15:17:14Z
<Jupstar> chillerdragon: it sounds like what you want to ask is: are disconnects vital
15:17
this doesnt even work on local server
15:17
it just kicks me
15:17
i cant imagine what happens on a laggy unstable connection
15:18
i just do not want to drop clients that did not get the info where to redirect to
Avatar
make em vital?
Avatar
ChillerDragon BOT 2023-07-25 15:18:31Z
doesnt help
15:18
if the client is dropped
15:18
vital wont be resend
15:18
will it?
Avatar
that's why I say the server doesn't drop the client if it's recent enough(?)
15:19
read above
Avatar
ChillerDragon BOT 2023-07-25 15:19:17Z
thats not what i talk about
15:19
i talk about packet loss
15:19
for recent clients
Avatar
yes
Avatar
ws-client BOT 2023-07-25 15:19:42Z
<Jupstar> lmao
15:19
<Jupstar> i think u both missunderstand each other
Avatar
ChillerDragon BOT 2023-07-25 15:19:54Z
me too?
Avatar
ws-client BOT 2023-07-25 15:19:54Z
<Jupstar> chiller: dont disconnect at all
Avatar
ChillerDragon BOT 2023-07-25 15:19:57Z
omagwd
Avatar
I'm saying with the above solution, there's no problem
Avatar
ws-client BOT 2023-07-25 15:19:59Z
<Jupstar> if client is new
Avatar
the client disconnects
Avatar
ChillerDragon BOT 2023-07-25 15:20:07Z
o
15:20
only disconnect old`?
Avatar
yes
Avatar
ChillerDragon BOT 2023-07-25 15:20:57Z
why do you even want to drop it in the first place then?
Avatar
thanks Jupstar
Avatar
ChillerDragon BOT 2023-07-25 15:21:07Z
yes jupsti pro
Avatar
because old clients won't disconnect automatically
15:21
I want the protocol to work similarly for old and new clients
Avatar
ChillerDragon BOT 2023-07-25 15:22:01Z
okay
Avatar
ws-client BOT 2023-07-25 15:22:15Z
<Jupstar> chillerdragon: sneak a Kick("Update client") in ;)
Avatar
ChillerDragon BOT 2023-07-25 15:22:18Z
i see so kick is backwards compability i like it
15:22
gonna use the same in my 0.7 pr
Avatar
yes, the kick is backcompat
Avatar
ChillerDragon BOT 2023-07-25 15:22:28Z
kick those 0.6 clients
15:22
axaxaxa
15:23
ok nvm the code snippet i sent would even redirect on localhost i was just using an old client :D
15:24
so and waddup the cookies now?
15:24
opaque id?
15:24
DHL tracking number
15:24
and password
Avatar
are you interested in implementing it?
Avatar
ChillerDragon BOT 2023-07-25 15:24:45Z
i want cookies!
Avatar
I don't feel like it's absolutely necessary tbh
Avatar
ChillerDragon BOT 2023-07-25 15:25:00Z
but cookies should be unrelated to redirect
15:25
they should be sent on any connect regardless of redirect
15:25
what i want is redirecting to other ips ._.
15:25
to send jopsti to russia
Avatar
why do you want to redirect to other IPs?
Avatar
ChillerDragon BOT 2023-07-25 15:26:21Z
if i switch hoster for example
15:27
or load balance tees around on a multi server cluster
Avatar
that seems out of reach tbh
Avatar
ChillerDragon BOT 2023-07-25 15:27:31Z
heck redirecting to url would even better
15:27
to enforce 0.7 connection for all hehe
15:27
@heinrich5991 out of wat
15:27
how?
15:28
i dont get the security risk
Avatar
load-balancing tees
15:28
multiserver cluster
Avatar
ChillerDragon BOT 2023-07-25 15:28:10Z
seems like a useless limitation
15:28
on servers that require less state or where state can be sent across network that is totally reachable
Avatar
one of the things that just came to my mind regarding 'security', I think the target server should probably communicate that it wants to receive redirects from that address (edited)
Avatar
ChillerDragon BOT 2023-07-25 15:29:20Z
i mean using CSaveTee you can basically send player state over the network and sync across servers
15:29
cross origin policy
Avatar
ws-client BOT 2023-07-25 15:29:48Z
<Jupstar> xD
Avatar
ChillerDragon BOT 2023-07-25 15:30:01Z
do you want to load tees from that url?
Avatar
ws-client BOT 2023-07-25 15:30:10Z
<Jupstar> i dont want to be redirected to teep*rn.com
Avatar
ChillerDragon BOT 2023-07-25 15:30:16Z
you have no rights
15:30
pst
15:30
then do not connect to chillertrap.com in the first place
15:30
its known associate
15:31
@heinrich5991 i see to avoid some kind of unwanted flood to servers that dont want any visitors
Avatar
ws-client BOT 2023-07-25 15:31:31Z
<Jupstar> what i dislike is that i might be redicrected to a different country
Avatar
ChillerDragon BOT 2023-07-25 15:31:34Z
such as area51.nsa.gov
15:31
you can possibly get users in legal trouble
15:31
if you make them send udp packets
15:31
to blacklisted ips
15:32
phew idk how to solve that
15:33
thats why i gotta just slap my whole network behind a proxy that is one unfied ip and routes all traffic under the hood to wherever i want @heinrich5991 rip your proxy support
Avatar
do you run more than one server atm?
Avatar
ChillerDragon BOT 2023-07-25 15:33:51Z
ok no redirect to custom ips for now
15:34
i dream big and act little
Avatar
cookies?
15:34
chiller implementing a tee browser
Avatar
ChillerDragon BOT 2023-07-25 15:34:21Z
but i had two 2vps connected to one teeworlds kubernetes cluster for 1 day xd
15:34
cookies pog
15:34
for tee tracking
15:34
and auto login
15:34
and facebook ads
Avatar
Avatar
Ryozuki
cookies?
"cookies" will come with accounts anyway
Avatar
ChillerDragon BOT 2023-07-25 15:35:20Z
generically usable for 3rd parties?
Avatar
ye
Avatar
ChillerDragon BOT 2023-07-25 15:35:44Z
pls no GDPR popups on connecting to servers
15:35
THIS SERVER USES COOKIES!
Avatar
you do know that this is only related to cookies not necessary for the service's operation
Avatar
ChillerDragon BOT 2023-07-25 15:36:26Z
ok amazing so jopsti will code cookie feature for me
15:36
i know nothing
15:36
thats what i have lawyer jopsti for
15:37
he covers all my legal concerns
Avatar
chiller legit has a company of unpaid employees, all from this chat
15:37
im his google
Avatar
ChillerDragon BOT 2023-07-25 15:37:17Z
xd
Avatar
i want my teecoins
Avatar
ChillerDragon BOT 2023-07-25 15:37:44Z
sends some teecoins
Avatar
ChillerDragon BOT 2023-07-25 15:45:50Z
jopsti do u know how to hac opengl?
15:46
i did arch update after decades of procrastination
15:46
and am too lazy to reboot
15:47
ok watever i reboot xd
Avatar
just reboot
Avatar
kill xserver xd
Avatar
doesn't work
15:50
driver/library mismatch
Avatar
chillerdragon: speaking of laziness. Would you rather update a cert, or learn the public key fingerprint by heart xd
Avatar
ChillerDragon BOT 2023-07-25 15:50:35Z
fair point
Avatar
Avatar
Jupstar ✪
chillerdragon: speaking of laziness. Would you rather update a cert, or learn the public key fingerprint by heart xd
context? ^^
Avatar
ChillerDragon BOT 2023-07-25 15:51:17Z
context is the hotfix is harder than the fix
Avatar
Avatar
heinrich5991
context? ^^
a cert today expired, apparently certbot was down for some reason. but i wasnt at my computer, so i just copied the fingerprint and checked it later, in good faith that i'm currently not attacked xdd now that i learned it, i dont need to even start certbot anymore
Avatar
ChillerDragon BOT 2023-07-25 15:53:04Z
xd
Avatar
Avatar
ChillerDragon
thats why i gotta just slap my whole network behind a proxy that is one unfied ip and routes all traffic under the hood to wherever i want @heinrich5991 rip your proxy support
Yet another bizarro chiller use 😄
15:54
When request ip over avian carrier support for ddnet?
Avatar
ChillerDragon BOT 2023-07-25 15:55:13Z
omagawd lerato
Avatar
ur biggest fan
Avatar
waste 64*8 bytes for each big snap?
15:56
probably a bit much
Avatar
ChillerDragon BOT 2023-07-25 15:57:00Z
is this a reply?
15:57
who wastes bytes?
Avatar
I'm writing the dissector
Avatar
ChillerDragon BOT 2023-07-25 15:58:01Z
?
Avatar
there is no reply
Avatar
ChillerDragon BOT 2023-07-25 15:58:33Z
ou you do snap dissecting? o.O
15:58
very pog
Avatar
I was considering to waste 64*8 bytes for each snap spanning at least two messages
15:58
currently only snap reassembly
15:59
not dissecting the actual snaps
Avatar
ChillerDragon BOT 2023-07-25 15:59:09Z
so the snap it self isnt wasting
15:59
your implementation is?
Avatar
I was considering an implementation that's a bit more wasteful
15:59
but I decided to do it another way
Avatar
ChillerDragon BOT 2023-07-25 15:59:45Z
just tell your users to buy more ram
Avatar
I'm a user
16:00
can't buy more ram for this machine
Avatar
ChillerDragon BOT 2023-07-25 16:00:26Z
why not?
Avatar
soldered
Avatar
ChillerDragon BOT 2023-07-25 16:00:40Z
your laptop?
Avatar
yes
Avatar
ChillerDragon BOT 2023-07-25 16:00:49Z
hm
16:01
just add a new section on ddnet.org/donations
16:01
development hardware
16:01
and buy new laptop
16:01
im half kidding
Avatar
should be full kidding
Avatar
ChillerDragon BOT 2023-07-25 16:02:56Z
ok i kicked clients wiht current or older version in #6914 idk if thats the way to be back compat
Avatar
chillerbot BOT 2023-07-25 16:02:56Z
This is a preperation for #6754 (redirect players on map vote) And an implementation of #5662 (redirect players) Reopen of #6757 Checklist Tested the change ingame Provided screenshots if it is ...
Avatar
ChillerDragon BOT 2023-07-25 16:03:14Z
all other version checks seem to predict the new release number already
Avatar
please don't start a new standard ^^
Avatar
ChillerDragon BOT 2023-07-25 16:04:43Z
ok then explain the old
Avatar
predict the next version number :p
Avatar
ChillerDragon BOT 2023-07-25 16:04:57Z
rly?
16:05
is that how its done?
Avatar
17.2
Avatar
ChillerDragon BOT 2023-07-25 16:05:17Z
lmao
Avatar
Avatar
heinrich5991
can't buy more ram for this machine
According to the law of jupsti you should just get an entire new machine in that case
Avatar
ChillerDragon BOT 2023-07-25 16:05:40Z
agree
16:05
jopsti law good
Avatar
sounds bad for the environment
Avatar
ChillerDragon BOT 2023-07-25 16:06:00Z
omg vegan heinrich be like
Avatar
just buy a new environment 😉
Avatar
ChillerDragon BOT 2023-07-25 16:06:10Z
yes!
Avatar
But it's great for streamlining development. Only target the very bleeding edge and infinite ram/storage/network bitrate
Avatar
ChillerDragon BOT 2023-07-25 16:06:28Z
just turn your old laptop into a server and keep using it
Avatar
ChillerDragon: the impl of the thing should probbaly go into the engine
Avatar
ChillerDragon BOT 2023-07-25 16:06:39Z
the server side?
Avatar
yes
Avatar
ChillerDragon BOT 2023-07-25 16:06:44Z
instead of gamecontext?
16:06
u say that now?
16:06
after hours of engineering
16:06
omahgawd
Avatar
ChillerDragon BOT 2023-07-25 16:06:56Z
oke
Avatar
it's a system message after all
Avatar
ChillerDragon BOT 2023-07-25 16:07:18Z
ok mr protocol designer
Avatar
Avatar
ChillerDragon
after hours of engineering
Just unengineer it and you'll get your time back
Avatar
and you also need the engine to ignore all further messages from a client
Avatar
ChillerDragon BOT 2023-07-25 16:07:49Z
this is exhausting
16:07
whats that supposed to mean
Avatar
above int GameFlags = 0;, check whether the client was redirected already and ignore the packet in that case
16:09
in src/engine/server/server.cpp
Avatar
ChillerDragon BOT 2023-07-25 16:10:19Z
so also for new clients?
16:10
i thought only kick old clients?
Avatar
only needed for new clients
16:10
yes
Avatar
ChillerDragon BOT 2023-07-25 16:10:38Z
omg
16:10
we going circles
16:11
is this really needed?
16:11
and for what?
Avatar
old clients: send redirect message, kick. new clients: send redirect message, ignore further messages from the client.
Avatar
ChillerDragon BOT 2023-07-25 16:11:21Z
why ignore from new clients
16:11
and for how long?
Avatar
forever
Avatar
ChillerDragon BOT 2023-07-25 16:11:39Z
so lifeban all redirected clients?
Avatar
lifeban?
16:11
only ignore messages on that connection
16:12
they can disconnect and reconnect immediately if they want to
16:12
but they can't continue using that connection
Avatar
ChillerDragon BOT 2023-07-25 16:12:30Z
how does one even identify a connection
Avatar
client ID?
16:12
you have a client struct
Avatar
ChillerDragon BOT 2023-07-25 16:12:44Z
isnt that reused
16:12
so i add a bool in the struct?
16:12
hmkay
16:12
bloat imo
16:12
but whatever
Avatar
checking for correct utf-8 is probably also "bloat" in your opinion? ^^
16:13
that has led to some wonderful exploits, even some in TW ^^
16:14
the idea is that you specify your protocol very precisely
Avatar
ChillerDragon BOT 2023-07-25 16:14:29Z
you should push spec driven development
16:14
writing a teeworlds protocol standard first and discussing that
16:14
and then the implementation
16:15
for a 2d kirby shooter
16:15
axaxaxax
Avatar
the 2d kirby shooter that's casually DoSed
16:16
probably needs some consideration for protocols
Avatar
ChillerDragon BOT 2023-07-25 16:23:52Z
what is the difference between kick and dropping traffic?
16:24
im thinking about calling DelClientCallback instead of bloating in a new ignore message concept
Avatar
arent u the one that wrote the doc for whole protocol xd
Avatar
ChillerDragon BOT 2023-07-25 16:24:36Z
yes!
Avatar
the thing you also wanted to have. re-delivery of the redirect message
Avatar
ChillerDragon BOT 2023-07-25 16:24:45Z
yes!
16:24
dont you think that makes sense?
Avatar
yes
Avatar
chillerdragon will be the first to add a client that can ignore redirects xdd
Avatar
that's the answer to "what's the difference between kick and dropping traffic"
Avatar
ChillerDragon BOT 2023-07-25 16:25:26Z
axaxax jopsti tru
16:25
i see
Avatar
ChillerDragon BOT 2023-07-25 16:36:06Z
interesting dropping there just gets my client stuck
16:36
no connection problems
16:36
i guess the server still sends keepalive lemme check
16:37
hmm
16:37
is this dropped enough for you @heinrich5991 ?
16:37
it seems super bugged
Avatar
do you guys think ddnet is a good start to a novice programmer?
Avatar
ChillerDragon BOT 2023-07-25 16:38:14Z
i really dont wanna see some clients end up in that state seems like a debugging nightmare
16:38
i started with ddnet and i turned out great
16:38
or did i
16:39
@Iza c++ has more pitfalls and annoyances for beginners than python or other high level scripting languages
Avatar
Avatar
Iza
do you guys think ddnet is a good start to a novice programmer?
if u code for yourself its probably ez to get some stuff working without lot of effort
16:39
but honestly the codebase isnt really built for intuitivity
Avatar
ChillerDragon BOT 2023-07-25 16:39:51Z
getting it to compile is 70% already
Avatar
Yeah i heard python is great for beginners, but c++ is just more useful for more stuff, isnt it?
Avatar
ChillerDragon BOT 2023-07-25 16:40:07Z
depends
16:40
why do you want to code anyways
Avatar
i mean generally: if u start coding with small games.. u directly see (visually) what you did.. that's quite nice
Avatar
It'll make you a decent programmer though, if you manage to understand ddnet you are pretty decent 😄
Avatar
python is never great lmao
16:40
it's like purposely going into hell
Avatar
ChillerDragon BOT 2023-07-25 16:40:47Z
pygame pog
Avatar
Avatar
Iza
Yeah i heard python is great for beginners, but c++ is just more useful for more stuff, isnt it?
no, I don't think c++ is useful for more stuff than python
Avatar
ChillerDragon BOT 2023-07-25 16:40:52Z
idk actually never tried it
Avatar
Avatar
ChillerDragon
why do you want to code anyways
I thought I may can learn something that’s going to be useful for my future
16:41
Or rather the future of jobs
Avatar
ChillerDragon BOT 2023-07-25 16:41:14Z
what do you want to do in your future?
Avatar
Avatar
Learath2
It'll make you a decent programmer though, if you manage to understand ddnet you are pretty decent 😄
client or server-side? xD
Avatar
python is actually used quite a lot in ML, e.g.
Avatar
ChillerDragon BOT 2023-07-25 16:41:23Z
there wont be jobs in the future?
Avatar
chillerdragon: omg good opinion
Avatar
ChillerDragon BOT 2023-07-25 16:41:38Z
@Avolicious xxxxxxxxxxxxxxxxXXD
Avatar
Avatar
Avolicious
client or server-side? xD
The more of it you understand the better
Avatar
future human
Avatar
ChillerDragon BOT 2023-07-25 16:41:59Z
Iza yes you can also write client side hacks with python
Avatar
but the most important thing is to work on something that you actually want to work on. if that's ddnet, that's great 🙂
🫂 1
Avatar
Avatar
Jupstar ✪
i mean generally: if u start coding with small games.. u directly see (visually) what you did.. that's quite nice
Yes that’s what I thought so too
Avatar
ChillerDragon BOT 2023-07-25 16:42:20Z
heinrich stop ghost me
Avatar
If you want to get some useful skill but you dont intend to become a programmer, python is a good idea. Business people ajd academy people LOVE python
Avatar
Avatar
heinrich5991
but the most important thing is to work on something that you actually want to work on. if that's ddnet, that's great 🙂
I'd love to add/change some features in ddnet that otherwise probably won’t ever exist
Avatar
Data scientists would sacrifice their firstborns to Guido Van Rossum
Avatar
Avatar
Learath2
If you want to get some useful skill but you dont intend to become a programmer, python is a good idea. Business people ajd academy people LOVE python
I'm not sure where you get the impression that python is not a real programming language
16:43
python is used in real-world code bases
Avatar
@Learath2 good opinion
Avatar
Avatar
heinrich5991
I'm not sure where you get the impression that python is not a real programming language
Python is english with some extra formatting rules and you can't fool me
Avatar
wtf is python
Avatar
in fact, most of today's glue code is probably written in python
Avatar
If I start learning python I might as well create a discord bot
Avatar
Avatar
heinrich5991
in fact, most of today's glue code is probably written in python
Don't remind me, it gives me nightmares
Avatar
ChillerDragon BOT 2023-07-25 16:44:28Z
@Iza if you like ddnet and want to add features please go for it can highly recommend. if you just want to get a job you can look into your nearby job market which is probably not offering any c++ junior positions
Avatar
Job offers are mostly Java, Python, C#
16:45
Java EE
Avatar
thanks @Avolicious
Avatar
Avatar
heinrich5991
python is used in real-world code bases
But my main point wasn't this anyway, but that even if you don't do programming python is still useful
Avatar
I was pretty sure that python was actually used
Avatar
Avatar
ChillerDragon
@Iza if you like ddnet and want to add features please go for it can highly recommend. if you just want to get a job you can look into your nearby job market which is probably not offering any c++ junior positions
Learning programming just to get a job sounds like something that you’ll regret tbh
Avatar
ChillerDragon BOT 2023-07-25 16:45:29Z
my company is full of python
Avatar
Avatar
heinrich5991
I was pretty sure that python was actually used
It is indeed. Mostly data science, but also used in other topics
Avatar
Avatar
Learath2
But my main point wasn't this anyway, but that even if you don't do programming python is still useful
ah, I see. I read the other thing between the lines
Avatar
Understandable, my distaste of python is well known
Avatar
Avatar
Learath2
Understandable, my distaste of python is well known
The Jupyter Notebook is a web-based interactive computing platform. The notebook combines live code, equations, narrative text, visualizations, interactive dashboards and other media.
Avatar
ChillerDragon BOT 2023-07-25 16:46:25Z
lerato hates all programming languages dont listen to him
Avatar
Python is very straight forward, thats why it is being used so often in data science
Avatar
@Avolicious I think JS/TS is missing from that list
Avatar
ChillerDragon BOT 2023-07-25 16:47:09Z
@heinrich5991 i am still connected after ignoring a redirect ^^
Avatar
python is the slowest language ever. in order to speed it up they write c libraries and bind it to python xDD
Avatar
ChillerDragon BOT 2023-07-25 16:47:34Z
mojo
Avatar
What is slow about it?
Avatar
Avatar
Jupstar ✪
python is the slowest language ever. in order to speed it up they write c libraries and bind it to python xDD
yes, that's the idea behind python. you write high-level code there
Avatar
Avatar
heinrich5991
@Avolicious I think JS/TS is missing from that list
Yeah, but I thought we are talking about backend enterprise solutions. JS/TS is like PHP 😄 Used as webdev
Avatar
Avatar
ChillerDragon
lerato hates all programming languages dont listen to him
This, I'm the programmer, modern languages and higher level languages make me feel more like a drone
Avatar
I thought people also use JS/TS with node in the backend
Avatar
Avatar
heinrich5991
yes, that's the idea behind python. you write high-level code there
log4j xdd
Avatar
log4j is a java library AFAIK
Avatar
ChillerDragon BOT 2023-07-25 16:48:17Z
yes
Avatar
yeah
Avatar
Avatar
heinrich5991
yes, that's the idea behind python. you write high-level code there
I have a feeling this might not be the original intention but just a result of the fact that python has awful performance
Avatar
Avatar
Jupstar ✪
python is the slowest language ever. in order to speed it up they write c libraries and bind it to python xDD
Avatar
ChillerDragon BOT 2023-07-25 16:48:38Z
blazingly python
Avatar
Avatar
Learath2
This, I'm the programmer, modern languages and higher level languages make me feel more like a drone
Wait until you see chatgpt assisted programmers
Avatar
ChillerDragon BOT 2023-07-25 16:48:44Z
wait?
Avatar
Avatar
Learath2
I have a feeling this might not be the original intention but just a result of the fact that python has awful performance
I think it was meant to replace perl, which was in a similar position
16:48
but maybe
Avatar
Avatar
heinrich5991
I thought people also use JS/TS with node in the backend
Ah, true that. NodeJS is also a thing, totally forgotten, sorry.
Avatar
ChillerDragon BOT 2023-07-25 16:49:03Z
and perl was meant to replace bash
Avatar
Avatar
Avolicious
well going from slowest to not the slowest is probs not hard xdd
Avatar
Avatar
heinrich5991
I think it was meant to replace perl, which was in a similar position
This is more along the lines of what I've heard. A perl replacement with better syntax
Avatar
Avatar
Learath2
This is more along the lines of what I've heard. A perl replacement with better syntax
but perl was also mostly glue code, no?
Avatar
Avatar
Jupstar ✪
well going from slowest to not the slowest is probs not hard xdd
that's the default interpreter btw. if you want fast execution, you can use pypy3
Avatar
Avatar
heinrich5991
but perl was also mostly glue code, no?
And nagios monitoring xD
Avatar
I used that when I needed speed for AoC @Jupstar ✪
Avatar
ChillerDragon BOT 2023-07-25 16:50:07Z
pstd - command line pastebin. Contribute to fstd/pstd development by creating an account on GitHub.
16:50
perl pog
Avatar
I'm not exactly clear on the hiatory but what Chiller said is what I remember. Perl was supposed to be a more capable shell
Avatar
ChillerDragon BOT 2023-07-25 16:50:51Z
clearly drunks who decided shell is not perfect
Avatar
Perl is the most hated programming language (https://stackoverflow.blog/2017/10/31/disliked-programming-languages/) Its from 2017 (edited)
Avatar
ChillerDragon BOT 2023-07-25 16:51:34Z
people participating in the survey havent tried C#
Avatar
I don't know if it was always intended to be glue though, it wasn't all that common to have almost everything being written in compiled languages called from python
Avatar
they did
16:51
see the diagram
Avatar
ChillerDragon BOT 2023-07-25 16:51:59Z
shit
Avatar
C# is enterprise 🙂
Avatar
C# is a fine language
16:52
from what I could observe
Avatar
ChillerDragon BOT 2023-07-25 16:52:31Z
woah heinrich
16:52
is there any language you think is not fine?
Avatar
it's basically a better java
Avatar
I don't like reading/writing perl
Avatar
Avatar
ChillerDragon
is there any language you think is not fine?
No, heinrich loves all languages
Avatar
PYSON
Avatar
but that might just be my missing experience
16:53
I don't like huge bash scripts
16:53
I prefer to see them replaced with python, e.g.
16:53
I don't like M4
16:53
or autotools
Avatar
I don't think anyone likes m4 😄
Avatar
ChillerDragon BOT 2023-07-25 16:54:10Z
i do
Avatar
NumPy aware dynamic Python compiler using LLVM. Contribute to numba/numba development by creating an account on GitHub.
Avatar
ChillerDragon BOT 2023-07-25 16:54:40Z
./configure
16:54
pog
Avatar
When you start having to do stuff like this, maybe your language is just not good for this use you are forcing on it
Avatar
pypy3 should be fine, no?
Avatar
Pypy does jit, right?
Avatar
yes
Avatar
Avatar
Learath2
When you start having to do stuff like this, maybe your language is just not good for this use you are forcing on it
No, dont think so. It heavily depends on your use-case. Python is used in ML/data science a lot, so there are a lot of projects focusing on acceleration like numba
Avatar
Avatar
Avolicious
No, dont think so. It heavily depends on your use-case. Python is used in ML/data science a lot, so there are a lot of projects focusing on acceleration like numba
Your reasoning is the opposite of the basis of my argument. I'm saying maybe Python isn't all that good for ML/data science
Avatar
Avatar
Learath2
Your reasoning is the opposite of the basis of my argument. I'm saying maybe Python isn't all that good for ML/data science
What would you recommend instead?
16:57
Due to python simplicity, it allows non-programmers to work in ML/data science
Avatar
Avatar
Avolicious
Due to python simplicity, it allows non-programmers to work in ML/data science
ML happens on the GPU mostly tho
Avatar
Avatar
Jupstar ✪
ML happens on the GPU mostly tho
Yep, but you need someone who creates a model, works with data and so on
Avatar
Yes, the actual ML happens in cuda/cudnn
Avatar
High-level languages do at some point a lot of tasks for you, without noticing it
Avatar
oh no i missed the python bashing with perls (edited)
Avatar
Avatar
Avolicious
What would you recommend instead?
I'm only saying you can make a better language more suited for it.
Avatar
@Ryozuki just in time JIT
16:59
😬
Avatar
Julia is interesting and is JIT compiled out of the box
Avatar
Avatar
Avolicious
What would you recommend instead?
rust
Avatar
R is interpreted and is much much more convenient to use for data science
Avatar
Avatar
Learath2
R is interpreted and is much much more convenient to use for data science
Yeah, was going to say that 😄
Avatar
julia has telemetry by default 😮
Avatar
Avatar
Ryozuki
rust
Too heavy for simple tasks
Avatar
Actually and u dont have to trust me, but the future of ML lies in something called MLIR in the llvm project. Multi level Intermediate Representstion
17:01
MOJO will prove it
Avatar
MATLAB is proprietary horseshit but it runs circles around python for performance iirc
Avatar
I am not saying that Rust is bad, but for most of the data science people, its overload
Avatar
Avatar
Learath2
MATLAB is proprietary horseshit but it runs circles around python for performance iirc
Has much better tooling too, very standardized in a lot of industries
Avatar
Multi-Level IR Compiler Framework
17:02
Learn how to use low-level primitives to define your own boolean type in Mojo.
Avatar
Mojo seems like an interesting language if it ever gets created, since Python users might adopt it (compiled Python). Unfortunately, not too many uses julia
Avatar
Avatar
trml
Mojo seems like an interesting language if it ever gets created, since Python users might adopt it (compiled Python). Unfortunately, not too many uses julia
you know who is behind mojo?
Avatar
@trml r u data scientist? xd
Avatar
its not about if, its about when
Avatar
would kinda fit, since u like math
17:03
and coding
Avatar
ChillerDragon BOT 2023-07-25 17:03:43Z
i like meth and codeine
Avatar
xd
Avatar
Chris Lattner, creator of llvm and swift is behind mojo
Avatar
I use Matlab for work xD would prefer Julia though. More DSP/statistics though, but kind of that area
Avatar
Avatar
Ryozuki
MOJO will prove it
Based on python
🚩
Avatar
ChillerDragon BOT 2023-07-25 17:04:36Z
@Ryozuki fan
Avatar
Christopher Arthur Lattner (born 1978) is an American computer scientist, former Google and Tesla employee[1] and co-founder of LLVM, Clang compiler, MLIR compiler infrastructure[2] and the Swift programming language. As of 2023, he is the co-founder and CEO of Modular AI, an artificial intelligence platform for developers.[3][4] Before founding Modular AI, he worked as the President of Platform Engineering, SiFive[5][6][7] after two years at Google Brain.[8] Prior to that, he briefly served as Vice President of Autopilot Software[9] at Tesla, Inc. and worked at Apple Inc. as Senior Director of the Developer Tools department, leading the Xcode, Instruments, and compiler teams.[10][1
17:04
the guy is a beast
Avatar
Avatar
Ryozuki
you know who is behind mojo?
Llvm creator iirc?
17:05
If not for that I would just think it was pure hype
Avatar
Avatar
Learath2
Based on python
🚩
ye i dislike that part, but it lets u use low level IR (MLIR) which with its dialects, bridges a lot of different hardware/frameworks
17:06
i think they chose python cuz ML is all python
Avatar
Python will be with us for a century because every field decided to use it 😭
Avatar
but it doesnt have GIL and is allegedly faster
Avatar
Avatar
Learath2
Python will be with us for a century because every field decided to use it 😭
just deny it's existince. it's easier for your health
Avatar
The invention of python is like a permanent technical debt that we'll have to carry
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
from their website?
17:07
trust me bro
Avatar
"scalar c++"
Avatar
i trust the llvm creator
Avatar
Avatar
Learath2
The invention of python is like a permanent technical debt that we'll have to carry
Another one of these is Electron. Another piece of permanent technical debt
Avatar
Avatar
Learath2
Another one of these is Electron. Another piece of permanent technical debt
XD but wasm is in comming
17:07
so there is hope
Avatar
how does wasm help?
Avatar
MLIR is like the wasm of ML targets
Avatar
Avatar
heinrich5991
how does wasm help?
well u can kick out js
Avatar
Avatar
heinrich5991
how does wasm help?
Faster than js+jit powering electron
Avatar
wasm is awesome if it makes js disappear
Avatar
JS will be with us forever
Avatar
i also dont understand why devs keep making libraries with js instead of ts and not having types
Avatar
most ppl code in typescript tho
Avatar
so is mojo just python but better
Avatar
so a language like: https://www.assemblyscript.org/ which is close to typescript might be easy to adopt
A TypeScript-like language for WebAssembly
Avatar
Avatar
Voxel
so is mojo just python but better
i wouldnt call it python, it has a python like design, but under the hood its way lower level
Avatar
Avatar
Jupstar ✪
most ppl code in typescript tho
[citation needed] and even if, TS has JS as compilation target
Avatar
not on deno
Avatar
Avatar
Jupstar ✪
so a language like: https://www.assemblyscript.org/ which is close to typescript might be easy to adopt
no, that's too close to assembly, I think
Avatar
deno runs ts without transpiling
Avatar
Though I'm unsure how much of js electron code would be translated into wasm. Electron is used so much because it's js and can be used by web devs
Avatar
Avatar
Ryozuki
deno runs ts without transpiling
link?
Avatar
Economically gr8
Avatar
Avatar
heinrich5991
no, that's too close to assembly, I think
how that? lmao
17:10
they even say its meant to be typescript similar
Avatar
Avatar
Jupstar ✪
how that? lmao
yes. but it's very close to wasm itself
Avatar
@heinrich5991 https://deno.land/
Deno is a simple, modern runtime for JavaScript and TypeScript that uses V8 and is built in Rust.
17:11
Avatar
Avatar
heinrich5991
yes. but it's very close to wasm itself
it's kind of like a macro assembler for x86
Avatar
Avatar
Ryozuki
i also dont understand why devs keep making libraries with js instead of ts and not having types
No types is what modern coders seem to be more used to. I've been having more and more trouble explaining types to people
Avatar
Avatar
Ryozuki
@heinrich5991 https://deno.land/
I doubt V8 can execute TS. so it's still transpiling to JS
Avatar
Avatar
Learath2
No types is what modern coders seem to be more used to. I've been having more and more trouble explaining types to people
i find it insane, i feel lost without types, u need to check a million things to make exception safe stuff
Avatar
Avatar
heinrich5991
I doubt V8 can execute TS. so it's still transpiling to JS
idk, maybe its not js but a IR
Avatar
Avatar
Ryozuki
idk, maybe its not js but a IR
I doubt it, but you made the claim that deno isn't compiling to JS ^^
Avatar
If it's just using V8 internally it most definitely is using JS
Avatar
in fact (with a little exception), typescript executes fine as JS if you just strip all the types
17:14
and they want to get rid of that exception IIRC
Avatar
wasnt fortran the most famous lang
17:14
it is not used
17:14
same will happen
17:14
justatest
Avatar
Yep, it just avoids babel. It has it's own typescript transpiler built in
Avatar
FORTRAN is used in numpy
Avatar
Iirc a lot of assembly aswell
Avatar
Avatar
heinrich5991
no, that's too close to assembly, I think
dunno, looks like typescript but with i32 instead of number xd
Avatar
well assembly quite likely will stay
17:17
what might not is the syntaxes
Avatar
I don't think the assembly syntax ever changed
Avatar
but there are 2
Avatar
(except that gnu for whatever reason had to introduce their own dialect for x86 assembly)
17:18
if anything dies, it's the gnu one, but I doubt that, too
Avatar
at&t or intel
Avatar
gnu = at&t
Avatar
maybe the intel syntax is propietary?
Avatar
gas supports intel syntax
17:20
every assembler I know of supports intel syntax
17:20
every tool I know of that supports at&t syntax also supports intel syntax
17:20
but definitely not the other way around
Avatar
nasm supports both ithink
Avatar
I'm more used to intel syntax
Avatar
Avatar
Learath2
I'm more used to intel syntax
i'd actually have thought u read binary code directly
17:23
who needs english
Avatar
Avatar
Jupstar ✪
i'd actually have thought u read binary code directly
Machine code, yes
Avatar
russian boolette
Likes
820
Retweets
125
Avatar
ChillerDragon BOT 2023-07-25 17:45:45Z
lmao
Avatar
thanks wireshark
17:56
tvb_memcpy(src, dst, offset, len) (edited)
Avatar
chillerdragon BOT 2023-07-25 18:14:33Z
Heinrich you speak in puzzles
Avatar
do you see anything wrong with that memcpy function?
18:22
something, say, unusual
Avatar
Avatar
heinrich5991
tvb_memcpy(src, dst, offset, len) (edited)
why offset
18:22
dont u just offset the ptr
18:23
i guess the arg order?
18:23
i think its usually dst, src
Avatar
yes, the arg order
18:24
is what tripped me up
Avatar
i seen this in rust
18:25
this is is rust memcpy
18:25
Copies count * size_of::() bytes from src to dst. The source and destination must not overlap.
18:25
pub const unsafe fn copy_nonoverlapping<T>( src: *const T, dst: *mut T, count: usize ) (edited)
Avatar
that function is not called memcpy
Avatar
i know
18:26
read the docs
18:26
ah u mean urs?
18:26
Copies count * size_of::<T>() bytes from src to dst. The source and destination must not overlap.
>
For regions of memory which might overlap, use copy instead.
>
copy_nonoverlapping is semantically equivalent to C’s memcpy, but with the argument order swapped.
>
The copy is “untyped” in the sense that data may be uninitialized or otherwise violate the requirements of T. The initialization state is preserved exactly.
Avatar
I was mostly complaining about the very common name memcpy
Avatar
and not having the same argument order
Avatar
where is this from? tvb_memcpy
Avatar
wireshark
18:27
dissector
18:27
* "testy, virtual(-izable) buffer". They are testy in that they get mad when * an attempt is made to access data beyond the bounds of their array. In that * case, they throw an exception.
Avatar
i like how rust name is so explicit
18:28
instead of memcpy
18:28
it says the most important thing in the name
Avatar
what I also like in rust is how the function providing more guarantees has the shorter name
18:32
compare ptr::copy_nonoverlapping vs ptr::copy
18:33
sort_unstable vs sort
18:33
[] vs unchecked_get
18:33
unreachble! vs unreachable_unchecked
18:33
in C++ it's almost the opposite
Avatar
Avatar
heinrich5991
[] vs unchecked_get
i would say .get() here
18:39
but ye
18:39
same applies
Avatar
I guess [] vs get is a place where the shorter option isn't the one poviding more guarantees
Avatar
See commit messages. Screenshots:
  • Envelope editor alignment and extra editor buttons:
    • Before:
!envelopes old
  • After:
!envelopes new
  • Command editor (empty):
  • Before:
!commands-empty old
  • After:
![com...
19:19
There's been a lot of concern recently about the Web Environment Integrity proposal, developed by a selection of authors from Google, and…
Avatar
Avatar
GitHub
Click to see attachment 🖼️
this shows reports should always tell the client version
Avatar
I don't see that
Avatar
yeah cuz the report doesnt have it
19:30
i meant it should
Avatar
I don't see that this shows that reports must have a version
19:30
I think there's a balance
Avatar
why not? the version info would point to the issue faster
19:30
also in case the error is repro u can bisect
19:30
with a known version already
Avatar
why not?
because an issue is valuable even if you don't know the version number. if a version number is a requirement for an issue to be opened, we might see fewer issues being opened
19:34
maybe we should remember to ask the version after a report then xd
Avatar
makes sense 🙂
Avatar
xv6-riscv like OS written in Rust. Contribute to o8vm/octox development by creating an account on GitHub.
19:48
>
Everything from kernel, userland, mkfs, to build system is written in safe Rust as much as possible. There are no dependencies on external crates. The userland has a library similar to Rust’s std with K&R malloc. Multi-core support, buddy allocator as kernel-side memory allocator, file system with logging support, etc.
Avatar
@Ryozuki is websockets still a problem? https://github.com/ddnet/ddnet/issues/1900
libwebsockets version: libwebsockets 3.2.0-1 Due to this I have to disable websockets on the arch pkgbuild for now.
Avatar
i think it was completly removed?
Avatar
I see websockets in CMakeLists.txt
Avatar
well for me u can close it
19:54
i dont have arch
Avatar
mh. might still be a valid problem
Avatar
i havent seen any dev around websockets since long xd
19:56
fff221a Remove POTATO|Co from mods - def-
Avatar
33d7719 Remove POTATO|Co from mods (since he resigned) - def-
Avatar
Fixed / added some things according to feedback from discord. Changes
  • Multi-View can not longer be activated again after already active
  • Fix cl_multiview_use_freeview variable config
  • Players who killed will be removed now from Multi-View even if the spec mode is not active
  • Multi-View personal zoom will be reseted when enabling Multi-View
  • Fix bug where a kill in a team will be taken into account Improve the solo player experience in Multi-View

Checklist

  • ...
Avatar
Avatar
Ryozuki
justatest
I keep forgetting that people read my commit messages and care about wording 😄
Avatar
d8c0511 Add constructor for CSetting and use emplace_back - Robyt3 b412153 Ignore listbox hotkeys when modifier, shift or alt pressed - Robyt3 177f748 Render editor status bar except tooltip behind popups - Robyt3 71500fd Improve server settings editor and status bar - Robyt3 b70b162 Merge pull request #6915 from Robyt3/Editor-Server-Settings-Improvements - heinrich5991
Avatar
why enter button dont work in serverbrowser ip address input field? pepeW
Avatar
Avatar
Matodor
why enter button dont work in serverbrowser ip address input field? pepeW
Should work with latest nightly (steam beta)
20:20
Doesn't work with 17.1 when you enter an IP but it's not selected
Avatar
Avatar
heinrich5991
@Ryozuki is websockets still a problem? https://github.com/ddnet/ddnet/issues/1900
On Windows, websockets still crash server and client
20:22
(with MinGW)
Avatar
Avatar
Robyt3
Should work with latest nightly (steam beta)
ye its worked on ddnet latest build
Avatar
This is basically as good, but also supported on MinGW.

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...
Avatar
Avatar
Ryozuki
here we go again
i checked for myself again and projectiles break in the prediction if the macro is commented ou
20:56
if projectiles collide with something they either just stop and do nothing or for example the grenade stops on collision and just emitts the explosion every tick without getting deleted
20:57
then after around 20-300 ticks it gets deleted (edited)
20:57
very weird
Avatar
maybe a new one gets allocated in that place after the ticks u mention
21:02
idk xd
Avatar
ChillerDragon BOT 2023-07-25 21:11:03Z
holy shit that spam
Avatar
9b2f900 Change to -fstack-protector-strong from -fstack-protector-all - heinrich5991 11a2088 Merge pull request #6917 from heinrich5991/pr_ddnet_stack_protector_strong - def-
Avatar
hi heinrich
21:59
hi ryozuki
Avatar
hi ewan
22:01
hi ryozuki
22:02
hi heinrich
Avatar
fn swap<T>(vec: Vec<(T, T)>) -> Vec<(T, T)> { vec.into_iter().map(|(x, y)| (y, x)).collect() } (edited)
Avatar
why not mem swap
Avatar
@Ryozuki did you know this is currently guaranteed to work without allocations in rust? 😮
22:03
i guess it can reason about iterators better?
Avatar
A project of mine required me to dive into unsafe Rust and when I was done with it, I had understood something that I wanted to share. However, since I wasn’t sure if I made any subtle mistakes, I did ask the community to review my code and oh boy did it turn out that I had missed some vital things. Bear with me and hopefully you’ll gather some...
Avatar
looks like a niche opt maybe
Avatar
(scroll to the bottom)
22:05
(tried to find it in the source, took me a bit)
Avatar
we need to create a list of rust related words
22:08
"unsafe" "blazingly"
Avatar
This updates json-parser to the latest version of the master branch as of today, as there are no new releases after version 1.1.0.

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that a...
22:08
i mean what u shared
22:10
the comments are amazing
22:11
interesting they use traits for marking specializations
Avatar
Before: !image After: !image

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
  • [ ] Consid...
Exported 834 message(s)