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 2017-11-30 00:00:00Z and 2017-12-01 00:00:00Z
I have read it many times that lazy evaluation in Haskell may sometimes lead to space leaks. What kind of code can lead to space leaks? How to detect them? And what precautions can be taken on part...
<nemo2> heinrich5991: rust doesn't do that kinda thing
01:45
<heinrich5991> space leaks? no
01:46
<heinrich5991> nemo2: up for a little ddrace? P
01:46
<heinrich5991> :P
01:48
<nemo2> heinrich5991: kid bedtime
01:48
<heinrich5991> k
01:49
<nemo2> should have asked any time in last couple of hours
01:49
<nemo2> heinrich5991: think I screwed up hedgewars release
01:49
<nemo2> feeling pretty sad about that
01:49
<heinrich5991> why?
01:49
<nemo2> heinrich5991: see last 2 commits in channel
01:49
<nemo2> think I did something dumb
01:50
<nemo2> heinrich5991: I'd added basic script hashing. was intended to catch screwups on part of people writing scripts and not distributing 'em to all players
01:50
<nemo2> but also to make life slightly harder for naughty people "augmenting" their scripts
01:50
<nemo2> oddly enough. there are people who write lua cheats but can't be bothered to rebuild their engine to mask them
01:50
<heinrich5991> oh, so you don't verify other people's physics?
01:51
<nemo2> heinrich5991: well it is deterministic lockstep
01:51
<nemo2> heinrich5991: the cheats were informational
01:51
<heinrich5991> ah :)
01:51
<nemo2> one of the things I didn't get around to doing was changing highlander to only deal out weapons on start of that player's turn
01:51
<nemo2> that would have helped a little
01:52
<nemo2> heinrich5991: anyway. I think I used an uninitialised RNG
01:52
<nemo2> heinrich5991: the screwed up script preview is bad on its own
01:52
<nemo2> but if I did that, gotta rerelease since desyncs will just happen
<heinrich5991> deen: would you be against preloading hsts for ddnet.tw?
02:36
<heinrich5991> also: if I may, I'd like to add Content-Security-Policy: block-all-mixed-content (or Content-Security-Policy: upgrade-insecure-requests), which blocks all non-https scripts, images, etc. (or upgrades them to https)
02:41
<eeeee> and also X-Frame-Options, Referrer-Policy, X-DNS-Prefetch-Control, X-XSS-Protection, X-Download-Options, and X-Content-Type-Options while you're at it? :D
02:43
<heinrich5991> what are these? ^^
02:44
<heinrich5991> eeeee: what's the time in your timezone?
02:44
<eeeee> attempts to plug various holes in web
02:44
<eeeee> 18:44
02:50
<eeeee> e.g. X-Frame-Options is for the following case: imagine someone knows you have admin on ddnet forum and they want to make you ban fstd there. what attacker can do is lure you to some innocious website (say, freeclientteeworlds.com) and once you visit that site they open an iframe at forum.ddnet.tw/ban/fstd location but render it transparent and also render an opaque "download free client teeworlds no sms or
02:50
<eeeee> registration" button right in the same place as "ban fstd" button in the iframe
02:50
<heinrich5991> ah
02:50
<eeeee> so called "click jacking"
02:50
<heinrich5991> so you can prevent iframing your page
@heinrich5991 stop that xD, playing with design is shit, also my own ones.
And i dont use fake entities for cheating, just for make things looking cool and hide some secrets