archived
stringclasses
2 values
author
stringlengths
3
20
author_fullname
stringlengths
4
12
body
stringlengths
0
22.5k
comment_type
stringclasses
1 value
controversiality
stringclasses
2 values
created_utc
stringlengths
10
10
edited
stringlengths
4
12
gilded
stringclasses
7 values
id
stringlengths
1
7
link_id
stringlengths
7
10
locked
stringclasses
2 values
name
stringlengths
4
10
parent_id
stringlengths
5
10
permalink
stringlengths
41
91
retrieved_on
stringlengths
10
10
score
stringlengths
1
4
subreddit_id
stringclasses
1 value
subreddit_name_prefixed
stringclasses
1 value
subreddit_type
stringclasses
1 value
total_awards_received
stringclasses
19 values
null
[deleted]
null
[deleted]
null
0
1491218701
False
0
dfrl6u5
t3_6350ax
null
null
t1_dfrkxha
null
1493752675
1
t5_2fwo
null
null
null
null
uerb
null
`char` is scary? I mean, `std::vector<char>` is way less scarier than `std::vector<bool>`.
null
0
1491218746
False
0
dfrl7h8
t3_6350ax
null
null
t1_dfrk0s9
null
1493752684
16
t5_2fwo
null
null
null
null
scwizard
null
I think they're being sarcastic, but I'm not 100% sure.
null
0
1491218790
False
0
dfrl875
t3_6350ax
null
null
t1_dfri9v8
null
1493752694
11
t5_2fwo
null
null
null
null
redditsoaddicting
null
Yes, digraphs are alternative ~~towns~~ keywords, whereas trigraphs are replaced almost immediately, meaning they affect string literals and whatnot.
null
0
1491218833
1491234947
0
dfrl8v5
t3_6350ax
null
null
t1_dfrkcu6
null
1493752703
7
t5_2fwo
null
null
null
null
jhi
null
His point has been answered already. I only pointed out a minor flaw in the question.
null
0
1491218847
False
0
dfrl92o
t3_6350ax
null
null
t1_dfrl6u5
null
1493752705
5
t5_2fwo
null
null
null
null
steamruler
null
I'd argue 8.8.8.8 is easier, but 8.8.4.4 is slightly harder.
null
0
1491218931
False
0
dfrlac4
t3_62vx64
null
null
t1_dfqc4je
null
1493752724
1
t5_2fwo
null
null
null
null
Fordiman
null
Mama, ooooooo Didn't mean to close the file, now I wish that I'd never parsed it at all...
null
0
1491218943
False
0
dfrlajo
t3_6350ax
null
null
t1_dfrjlki
null
1493752728
82
t5_2fwo
null
null
null
null
PalaceOfLove706
null
mwah xoxo ...Oh you probably meant the other poster and not you haha.
null
0
1491218967
False
0
dfrlax2
t3_6344ep
null
null
t1_dfrl5wq
null
1493752732
3
t5_2fwo
null
null
null
null
mech_eng_lewis
null
I'm doing mechanical engineering and it's not 'easy'. Like in one module we're doing MATLAB, Z-transforms, Power series, Fourier transform, partial differential equations (e.g.: Laplace and the heat equation) and loads of linear algebra -- and that's only 15 credits out of 120. I'm in the UK if that helps, not sure how the Americans do it.
null
0
1491219262
False
0
dfrlfnq
t3_62xwba
null
null
t1_dfqwu3v
null
1493752796
1
t5_2fwo
null
null
null
null
holoduke
null
And therefor prone for move warp hacks
null
0
1491219386
False
0
dfrlhm4
t3_62yl50
null
null
t1_dfqqjp7
null
1493752821
2
t5_2fwo
null
null
null
null
maks25
null
Who even hashes or salts themselves?? If you use a solid backend framework surely it's included or you just use a well tested/proven library. In Django I don't have to worry about hashing/salting my passwords, nobody should ever do that themselves unless they know exactly what they're doing, it's way too easy to fuck it up.
null
0
1491219449
False
0
dfrlil8
t3_6344ep
null
null
t1_dfr7mdf
null
1493752834
10
t5_2fwo
null
null
null
null
JMBourguet
null
Why do you want types which could put `(a+b)/2` out of the range`[min(a, b), max(a, b)]`? I've yet to see a problem for which decimal floating point was a better solution than binary floating point. The one I've seen were either - needing decimal fixed point. Any floating point format was not really useful to handle them -- well you could restrict decimal FP to avoid automatic scaling and thus avoided to take any use of its floating characteristic, and there is always the old trick of using double as 53-bit integers which felt into disuse when 64-bit machines were introduced, - needing a floating point format and having it decimal did not do any good. It removes some caveat for numbers which have an exact decimal representation, which are in my experience not part of those kind of problem data, but get a loss of precision and some caveats like the one above in exchange. Probably a net loss: floating point is already hard to use correctly; decimal floating point is even harder. If you have an example of such problem, I'd love to hear about it.
null
0
1491219492
False
0
dfrlj9x
t3_635ggh
null
null
t1_dfrk7q5
null
1493752844
6
t5_2fwo
null
null
null
null
steamruler
null
The state of DNS is ridiculous. Even SMTP looks good in comparison. Some clients can't access anything but A and NS records, because they use a recursive DNS server *that doesn't forward other records*.
null
0
1491219514
False
0
dfrljmo
t3_62vx64
null
null
t1_dfq09ce
null
1493752848
3
t5_2fwo
null
null
null
null
PalaceOfLove706
null
You're totally preaching to the choir, my friend.
null
0
1491219525
False
0
dfrljt3
t3_6344ep
null
null
t1_dfrlil8
null
1493752851
4
t5_2fwo
null
null
null
null
doom_Oo7
null
> Music is based on "feel" source ?
null
0
1491219531
False
0
dfrljwj
t3_633o3y
null
null
t1_dfrj0o5
null
1493752853
1
t5_2fwo
null
null
null
null
[deleted]
null
[deleted]
null
0
1491219615
False
0
dfrllaa
t3_62xwba
null
null
t1_dfrlfnq
null
1493752873
1
t5_2fwo
null
null
null
null
NeuroXc
null
Rewriting It In Rust won't teach people that they need to hash passwords before inserting them into a database, or how to avoid SQL injection and XSS vulnerabilities.
null
0
1491219789
False
0
dfrlo5w
t3_6344ep
null
null
t1_dfrj6qd
null
1493752911
15
t5_2fwo
null
null
null
null
[deleted]
null
Socialism will win :)
null
0
1491220000
False
0
dfrlrp6
t3_631p99
null
null
t1_dfrgh7m
null
1493752958
4
t5_2fwo
null
null
null
null
myhf
null
> Most programming environments are meta-engineered to make typical software easier to write. They should instead be meta-engineered to make *incorrect* software *harder* to write.
null
0
1491220031
False
0
dfrls68
t3_6355if
null
null
t3_6355if
null
1493752964
9
t5_2fwo
null
null
null
null
RobertVandenberg
null
I am a drummer and also a developer (proof: https://medium.com/@rvh.omni/a-drum-cover-for-cat-jazz-70fc612f93da ). I have a feeling that being a drummer results in my decision of becoming a backend developer. Most of my tasks are providing APIs to front-end just like a drummer providing solid groove to the band. Both roles share very same characteristic.
null
0
1491220166
False
0
dfrluhh
t3_633o3y
null
null
t3_633o3y
null
1493752995
15
t5_2fwo
null
null
null
null
TonySu
null
Well there goes my going_well() ??!??! panic() code.
null
0
1491220182
False
0
dfrlurq
t3_6350ax
null
null
t1_dfrjjoz
null
1493753000
190
t5_2fwo
null
null
null
null
Grididdy
null
Beautiful
null
0
1491220461
False
0
dfrlzj7
t3_6350ax
null
null
t1_dfrlurq
null
1493753062
44
t5_2fwo
null
null
null
null
Hendrikto
null
> For programming, I think a student should be taught to write some practical and useful code on day one. One thing that almost everyone will find useful is performing an HTTP GET request for a URL. Good post but this part is bs. If you are a complete beginner (which is the premise here) you will just copy some random symbols and get some result. You will not be programming, you will be getting nothing from that. It won't make any sense to you. *That* is discoraging. Do we teach first graders to write "useful", "fun" words like "asphyxiation" from day one and work back to the characters? That does not make sense. They probably would be able to copy the symbols but will they have fun? Will they take much from that? I do not think so. I think they will be very confused and demotivated. It does make sense to start with the basics...
null
0
1491220478
False
0
dfrlzti
t3_633o3y
null
null
t3_633o3y
null
1493753066
25
t5_2fwo
null
null
null
null
rezkiy
null
I'm just an rval... I need no memory.
null
0
1491220773
False
0
dfrm4w5
t3_6350ax
null
null
t1_dfrhs7o
null
1493753142
39
t5_2fwo
null
null
null
null
g4zw
null
this is some next level trolling right here
null
0
1491220887
False
0
dfrm6y5
t3_633o3y
null
null
t1_dfrkd3u
null
1493753169
5
t5_2fwo
null
null
null
null
MLG-Potato
null
Security is specialized work. You can get the general things for web (OWASP top 10) but when you have to design protocols you need a specialist. There are lots of things who can go wrong basically
null
0
1491220952
False
0
dfrm84q
t3_6344ep
null
null
t3_6344ep
null
1493753186
4
t5_2fwo
null
null
null
null
jbb67
null
I'm finding myself wanting to use exceptions in my C++ code less and less. If you use exceptions, you _must_ write fully exception safe code. And that's not without costs. It's very hard to get right, and means that you can't ever have objects that are not in a valid state unless you correct clean them up, even internally in functions. In C++ it means that you MUST use the RAII pattern for everything as it's the only real way to make your code exception safe. It means that you must use resource managers for everything, memory, assets, socket... everything. You end up having to use things like shared_ptr not because your memory ownership is unclear but because your code can at any time exit the function with an exception, so it's the only way to clean up. I feel that exceptions are not bad in themselves but once you use them you are fully committed to a style of programming and memory managament that you may not otherwise have wanted to use. And it's style that's very hard to get right 100% of the time. Exceptions are supposed to make sure that you handle errors without having to remember to do so every place that returns an error, but in practice I think they add a considerable amount of work, severely restrict the programming styles you can use, and lead to slow, inefficient code (not due to the exception themselves, but to the style of code they force you to write). I still use them, but I'm becoming more and more of the opinion that there must be a better way!
null
0
1491221063
False
0
dfrma3z
t3_631p99
null
null
t1_dfqvnnb
null
1493753213
1
t5_2fwo
null
null
null
null
frezik
null
I just ran across one this weekend, in a PHP app called Zenbership: function encode_password($password, $salt) { return sha1(md5(md5($password) . md5($salt) . md5(SALT))); } It's like they almost understood the problem, but fell far, far short. Their salt generation is also fascinating in a Rube Goldberg kind of way: function generate_salt() { $letters_lower = 'abcdefghijklmnopqrstuvwxyz'; $letters_upper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $symbols = '-,*&^%$#@!<>?":}{|'; $rand1 = substr($letters_lower, rand(0, 24), 1); $rand2 = substr($letters_upper, rand(0, 24), 1); $rand3 = substr($letters_upper, rand(0, 24), 1); $rand4 = substr($symbols, rand(0, 17), 1); $salt_array = array($rand1, $rand2, $rand3, $rand4); shuffle($salt_array); $salt = implode('', $salt_array); return $salt; } Running some numbers, `$rand1`, `$rand2`, and `$rand3` should have 4.8 bits of entropy each, and `$rand4` should have 4.1 bits. The shuffle will mix up 4 characters, which would have 24 possible permutations, for an additional 4.5 bits of entropy. All together, this gives the salt 22.7 bits of entropy total. Which is less than if they just did `mt_rand(0, pow(2, 32) )` and changed their salt database column to hold a 32-bit integer. (Critiques of the math above are welcome.)
null
0
1491221092
1491221487
0
dfrmakz
t3_6344ep
null
null
t1_dfrlil8
null
1493753220
12
t5_2fwo
null
null
null
null
Frozen5147
null
Double plus true.
null
0
1491221148
False
0
dfrmbky
t3_6350ax
null
null
t1_dfriqpx
null
1493753234
37
t5_2fwo
null
null
null
null
saichampa
null
Is there similar documents for previous C++ releases? (98-03, 03-11, 11-14)
null
0
1491221226
False
0
dfrmcxf
t3_6350ax
null
null
t3_6350ax
null
1493753251
17
t5_2fwo
null
null
null
null
[deleted]
null
[deleted]
null
0
1491221376
False
0
dfrmfj3
t3_6344ep
null
null
t3_6344ep
null
1493753288
8
t5_2fwo
null
null
null
null
moohoohoh
null
sounds like a bad idea... what about when it wraps around and becomes false again?
null
0
1491221452
False
0
dfrmgwp
t3_6350ax
null
null
t1_dfrkkzx
null
1493753306
3
t5_2fwo
null
null
null
null
hagbaff
null
rofl
null
0
1491221477
False
0
dfrmhcf
t3_6350ax
null
null
t1_dfrkxha
null
1493753311
-6
t5_2fwo
null
null
null
null
Mouaijin
null
The Eagle takes... Mm... Flight, and...
null
0
1491221483
False
0
dfrmhfp
t3_635eij
null
null
t1_dfrhb0e
null
1493753312
1
t5_2fwo
null
null
null
null
jbb67
null
I like the idea of a "stack" of default memory allocators. I think there is a more general problem here of how to access "global" state like allocators, where you might want to change them sometimes. The two main options have been global state, which has it's own issues, and doesn't work well if you want to alter you allocater for one function, or else specifiying the data on every call and passing a variable everywhere, which is ugly and doesn't scale. This applies to memory allocators but also to things like logging, and user interfaces, and in things like games, you have essentially a global graphics object, or "world" or render target which you don't want to pass *everywhere* but also don't really want to make global. If you could generalize your idea well in the language I think that would be a great feature.
null
0
1491221508
False
0
dfrmhx3
t3_631p99
null
null
t1_dfqs63n
null
1493753319
1
t5_2fwo
null
null
null
null
disclosure5
null
> Who even hashes or salts themselves?? I don't have enough fingers on my hands and feet to count the amount of arguments I've had along the lines of "we're not a bank, stop treating us like one" and "no one would ever hack a small business" and so on. Which end up being excuses for plaintext passwords.
null
0
1491221616
False
0
dfrmjwn
t3_6344ep
null
null
t1_dfrlil8
null
1493753345
6
t5_2fwo
null
null
null
null
andd81
null
C++84
null
0
1491221658
False
0
dfrmkpo
t3_6350ax
null
null
t1_dfrmbky
null
1493753356
32
t5_2fwo
null
null
null
null
imstarlordman
null
Sadder than sad? Sad++
null
0
1491221764
False
0
dfrmmms
t3_6350ax
null
null
t1_dfriqpx
null
1493753382
3
t5_2fwo
null
null
null
null
[deleted]
null
[deleted]
null
0
1491222116
False
0
dfrmt7t
t3_630rew
null
null
t3_630rew
null
1493753471
1
t5_2fwo
null
null
null
null
scatters
null
`bool` does not wrap around. Here's a table: flag | ++flag ------|----- `true` | `true` `false` | `true`
null
0
1491222199
False
0
dfrmutk
t3_6350ax
null
null
t1_dfrmgwp
null
1493753492
16
t5_2fwo
null
null
null
null
watt
null
If you try to reverse this headline, Most X Know Security, who would X be?
null
0
1491222216
False
0
dfrmv65
t3_6344ep
null
null
t3_6344ep
null
1493753496
4
t5_2fwo
null
null
null
null
mccoyn
null
My thoughts on all mutations embedded in part of an expression..
null
0
1491222222
False
0
dfrmvag
t3_6350ax
null
null
t1_dfrl4sp
null
1493753498
29
t5_2fwo
null
null
null
null
apocryphalmaster
null
But you could switch everything on with =TRUE Or maybe |=1 but I'm not sure
null
0
1491222251
False
0
dfrmvv7
t3_6350ax
null
null
t1_dfrk0s9
null
1493753506
8
t5_2fwo
null
null
null
null
skulgnome
null
>The current semantics of “consume” ordering have been found inadequate, and the ordering needs to be redefined. Does this apply to C11 as well, since it copies C++14 atomic semantics near verbatim?
null
0
1491222304
False
0
dfrmwwz
t3_6350ax
null
null
t3_6350ax
null
1493753520
4
t5_2fwo
null
null
null
null
FlukyS
null
I read 3 or 4 books on programming securely, still don't think I know security. I know what I need to do but the internals and how people can break in is still a mystery to me.
null
0
1491222406
False
0
dfrmyue
t3_6344ep
null
null
t3_6344ep
null
1493753547
4
t5_2fwo
null
null
null
null
FlukyS
null
With open source the beauty of it is they are open about issues and they push out fixes when things happen. That is as strong a system as you can get.
null
1
1491222463
False
0
dfrmzyk
t3_6344ep
null
null
t1_dfr7iob
null
1493753561
0
t5_2fwo
null
null
null
null
[deleted]
null
[deleted]
null
0
1491222578
False
0
dfrn28q
t3_6350ax
null
null
t1_dfrja5h
null
1493753592
1
t5_2fwo
null
null
null
null
I_tried_to_tell_you
null
yea but why lol flag | flag = true ---|--- true | true false | true
null
0
1491222603
False
0
dfrn2qd
t3_6350ax
null
null
t1_dfrmutk
null
1493753598
19
t5_2fwo
null
null
null
null
Penguinfernal
null
I gotta say, that looks pretty nifty. So "n++" just means set n to true, and it seems pretty readable. Shame it doesn't work any more. Edit: Just read that "--" never worked on bool. That kinda negates my point. If I can use it to set to true, the opposite should work as well, imo.
null
1
1491222624
False
0
dfrn353
t3_6350ax
null
null
t1_dfrmutk
null
1493753604
0
t5_2fwo
null
null
null
null
baerion
null
If you compile code with lots of macro magic and very advanced type system trickery, including compile-time computation, overuse inlining and compile time polymorphism, with all optimizations enabled, compilation can take quite long. Otherwise compilation is slow compared to C or Go, but not terrible. And this mostly affects full rebuilds, but full rebuilds are rare and all my development happens in the REPL where the edit-compile-run cycle is practically instantaneous. Compilation only happens before deploying the app, the same way I freeze Python code to create an executable. By the way, the issue from the thread you linked had something to do with [large list literals](https://np.reddit.com/r/haskell/comments/45q90s/is_anything_being_done_to_remedy_the_soul/d00ig8e/), as far as I can tell.
null
0
1491222656
False
0
dfrn3r1
t3_62wye0
null
null
t1_dfr4eim
null
1493753612
1
t5_2fwo
null
null
null
null
xxxmuffinflavoredxxx
null
i could have sworn i saw some benchmarks where haskell was quite eye opening maybe it was network I/O related?
null
0
1491222672
False
0
dfrn41u
t3_62yl50
null
null
t1_dfrftn5
null
1493753615
1
t5_2fwo
null
null
null
null
combinatorylogic
null
It failed and will always fail. Commies must be exterminated with extreme prejudice.
null
0
1491223130
False
0
dfrnd4a
t3_631p99
null
null
t1_dfrlrp6
null
1493753737
0
t5_2fwo
null
null
null
null
MarshallBanana
null
The problem is that the results will be very boring after a short while. There are many ways to do better that aren't too expensive. Using octave noise gives you much the same result, but it allows you to better tweak the shapes too. It also allows you to apply distortions to the base coordinate system you're building on, which can give you much more interesting shapes, and also much more alien ones if you go overboard.
null
0
1491223237
False
0
dfrnfa8
t3_630cgb
null
null
t1_dfrkxor
null
1493753766
3
t5_2fwo
null
null
null
null
XANi_
null
TL;DR: same way as on every other fucking linux machine
null
0
1491223329
False
0
dfrnh7f
t3_636cns
null
null
t3_636cns
null
1493753791
2
t5_2fwo
null
null
null
null
mr___
null
I never understood why rational types with unlimited precision large integers as the numerator and denominator are not in every single language as a default feature. you could represent every rational number exactly, including all of these "Nonintuitive examples", while numbers that are truly irrational or are measurements of reality that have no short representation in any base, stay the same.
null
0
1491223690
False
0
dfrnovy
t3_636db5
null
null
t3_636db5
null
1493753893
3
t5_2fwo
null
null
null
null
reluctant_deity
null
At this current iteration, it's unlikely. While you can query the filesystem and create directories, there is (yet) no standard way to open a file.
null
0
1491223719
False
0
dfrnpil
t3_6350ax
null
null
t1_dfrl653
null
1493753902
10
t5_2fwo
null
null
null
null
aspleenic
null
Thank you for that frank and informative feedback on my post regarding my first experience installing ELK stack anywhere.
null
0
1491223740
False
0
dfrnpyv
t3_636cns
null
null
t1_dfrnh7f
null
1493753908
1
t5_2fwo
null
null
null
null
nemtrif
null
Removing auto_ptr sounds nice in theory, but some of us need to maintain code base that has to be compiled with a variety of compilers, including some that are barely C++ 98 compliant. #ifdef it is, I guess...
null
1
1491223855
False
0
dfrnsfb
t3_6350ax
null
null
t3_6350ax
null
1493753940
-3
t5_2fwo
null
null
null
null
PeterFnet
null
You using bool or BOOL? BOOL is still an int
null
0
1491223866
False
0
dfrnsnc
t3_6350ax
null
null
t1_dfrhstj
null
1493753943
3
t5_2fwo
null
null
null
null
Scellow
null
https://kotlinlang.slackarchive.io/kotlin-native/page-7 https://gist.github.com/abreslav/217e1f960b52c8b77bebf58ed1ab299b https://www.reddit.com/r/Kotlin/comments/61zrxi/kotlin_native_so_it_begins/
null
0
1491223921
False
0
dfrntrm
t3_62utum
null
null
t1_dfrg2z6
null
1493753958
2
t5_2fwo
null
null
null
null
junichi3
null
Although I agree with your initial point, why do you say that there is no expectation of phrasing? Not all notes are equal, even in Bach's perpetuum mobile style pieces. If this is true, do these shapes not yearn for or even imply phrasing? You already touched on and moved beyond the absence of explicitly notated phrasing, so I'll assume you already know a bit about baroque notation in comparison to later practices.
null
0
1491224042
False
0
dfrnwdp
t3_633o3y
null
null
t1_dfrjw9n
null
1493753993
3
t5_2fwo
null
null
null
null
XANi_
null
Sorry, I see no sense in just reiterating instructions that are provided on product page anyway
null
0
1491224159
False
0
dfrnyym
t3_636cns
null
null
t1_dfrnpyv
null
1493754027
2
t5_2fwo
null
null
null
null
fly-hard
null
There's a down-side for supporting thousands of players, for sure. But move warp hacks weren't nearly as pervasive as radar hacks in DAoC; it took so long to get levels in that game few people were going to risk their account for a very visible cheat. It was much harder to prove you were using radar.
null
0
1491224169
False
0
dfrnz5y
t3_62yl50
null
null
t1_dfrlhm4
null
1493754030
2
t5_2fwo
null
null
null
null
modulus801
null
Carry's lost. Carry's lost. When shifting carry doesn't matter.
null
0
1491224183
False
0
dfrnzgb
t3_6350ax
null
null
t1_dfrlajo
null
1493754033
55
t5_2fwo
null
null
null
null
fuscator
null
> LOC of code Stack overflow...
null
0
1491224282
False
0
dfro1n8
t3_62yl50
null
null
t1_dfqc2o6
null
1493754063
2
t5_2fwo
null
null
null
null
link23
null
I understand that this is missing the point, but: of course CS programs don't teach about salting passwords, that belongs in a software engineering curriculum. It really bugs me when people conflate computer science with computer programming/software engineering. It's incredibly useful for computer programmers to also understand computer science, but the fact of the matter is that a computer scientist need not do any programming, and a computer programmer need not understand computer science.
null
0
1491224400
False
0
dfro48o
t3_6344ep
null
null
t3_6344ep
null
1493754098
13
t5_2fwo
null
null
null
null
warrenspe
null
Too late .. My handles closed...
null
0
1491224426
False
0
dfro4tt
t3_6350ax
null
null
t1_dfrnzgb
null
1493754105
51
t5_2fwo
null
null
null
null
kralyk
null
Wow, ok. The LLVM backend is just a small part of that effort. Adding a GC and a whole runtime around is gonna be challenging. Well, all we can do is wish them luck...
null
0
1491224517
False
0
dfro6u8
t3_62utum
null
null
t1_dfrntrm
null
1493754132
2
t5_2fwo
null
null
null
null
[deleted]
null
[deleted]
null
0
1491224539
1492910895
0
dfro7cu
t3_62vx64
null
null
t1_dfqabfk
null
1493754139
1
t5_2fwo
null
null
null
null
Fordiman
null
Sends packets down the line, dropping whole frames all the time.
null
0
1491224599
False
0
dfro8mq
t3_6350ax
null
null
t1_dfro4tt
null
1493754156
29
t5_2fwo
null
null
null
null
2358452
null
Transmitting changes is only an approximation to optimal (minimum bandwidth). To achieve min tx, you need an optimal predictor at the client and the server, and you transmit prediction error. This prediction generates a distribution function of possible values that serves to entropy code the prediction error. Indeed you can use this optimal predictor on other player (clients) states too to achieve lag compensation.
null
0
1491224797
1491227238
0
dfrod2t
t3_62yl50
null
null
t1_dfq5gpx
null
1493754215
6
t5_2fwo
null
null
null
null
oridb
null
Because operations on numbers where the numerator and denominator are relatively prime are fairly common. These numbers can quickly blow up out of control, killing performance.
null
0
1491224944
False
0
dfrogd1
t3_636db5
null
null
t1_dfrnovy
null
1493754259
1
t5_2fwo
null
null
null
null
PalaceOfLove706
null
I wish I could give you all the upvotes. My response in those arguments is always, "you're the exact type of business someone will hack because it will be easier and after they have stolen/cracked all of your stored user accounts, they will test those credentials on other services." Normally my clients just trust that I know what I'm doing and leave the development in my hands. If they start giving me pushback on basic security principles, that's when I just say, "I'm very busy and have no shortage of work. If you're not going to allow me to do my job, let's just call it a day." Typically they let me get back to work haha.
null
0
1491224982
False
0
dfroh6r
t3_6344ep
null
null
t1_dfrmjwn
null
1493754269
9
t5_2fwo
null
null
null
null
Superpickle18
null
how is n = true; not better? And it's explicit in meaning. n++ to me, without knowing if n is a boolean, is incrementing a number...
null
0
1491224996
1491225280
0
dfrohib
t3_6350ax
null
null
t1_dfrn353
null
1493754275
21
t5_2fwo
null
null
null
null
rainbow7564
null
At least with UI you can get feedback. With security, you have no feedback that you're doing it right.
null
0
1491224998
False
0
dfrohjv
t3_6344ep
null
null
t1_dfrey2u
null
1493754275
27
t5_2fwo
null
null
null
null
link23
null
How does Odin deal with memory safety then? To my mind, it seems like it would be more mental overhead to have to free things myself (as opposed to having the compiler/gc take care of it).
null
0
1491225060
False
0
dfroj0u
t3_631p99
null
null
t1_dfqy7bw
null
1493754294
2
t5_2fwo
null
null
null
null
Zarutian
null
I was not clear enough. I meant every few seconds, just lot and lots of 'ticks' are done when it is run. So, simulation time would be much faster than realtime when the simulation is being run. This makes it possible to have quite a few simulations on same server host.
null
0
1491225148
False
0
dfrol2x
t3_62yl50
null
null
t1_dfqae2y
null
1493754322
1
t5_2fwo
null
null
null
null
Fylwind
null
I don't think the compiler stdlibs will go through the effort of removing auto_ptr if they already have it. But newer C++ compilers aren't obligated to implement it anymore. Edit: STL mentioned that MSVC will remove `auto_ptr` when compiled with `/std:c++17`. RIP `auto_ptr`.
null
0
1491225336
1491266905
0
dfropfv
t3_6350ax
null
null
t1_dfrnsfb
null
1493754380
11
t5_2fwo
null
null
null
null
[deleted]
null
[deleted]
null
0
1491225340
False
0
dfropiw
t3_6350ax
null
null
t1_dfrnsfb
null
1493754381
1
t5_2fwo
null
null
null
null
[deleted]
null
[deleted]
null
0
1491225343
False
0
dfroplp
t3_6350ax
null
null
t1_dfrnsfb
null
1493754382
1
t5_2fwo
null
null
null
null
bubuopapa
null
At least it works, on linux it doesnt work at all - breaks the system on next boot, and mac doesnt really have proper support too. Windows is the only platform that has user friendly driver model in general, without breaking the system.
null
0
1491225351
False
0
dfroprl
t3_62mp7p
null
null
t1_dfo7ee8
null
1493754385
0
t5_2fwo
null
null
null
null
frenris
null
Yeah there is not much advantage. Why I wondered if it's worth it. What it gives you that you may have missed - - a union with fields int a and int b will have distinct union<int a> and union<int b> sub types. If you just used the underlying int instead you would not have the compiler check to ensure you did not mix up the a & b fields unless you create a type for every field yourself. - a union with fields "int a" and "char b" would allocate 4 bytes for a union<char b> variable but only use 1 - the union types would all be aligned while the underlying types may not have the same width. This may have advantage for memory layout? I can't think of how it would help though.... Re : " you've got to match up the union fields on all return, argument, variable types everywhere, so while you can never receive a union with an int in it instead, you also can't use the same variable to store either an int or a reference, because it's got to be typed one or the other. " Basically. Yes, a given variable would be typed to only hold one union field. Functions could kind of take more than one field using templating - you could have a function which is templated on the basis of the union fields. You have a union_a with fields "int a" and "char b" and a function which could receive a type of "union_a<any field>." This function compiles to two distinct functions one which uses "union_a<int a>" one which is for "union_a<char b>" and the compiler can determine which to call statically. If you needed to have a variable to hold a union instance which uses any field you would have to convert it to a tagged union to do so safely. If you want to pack a whole bunch of arbitrary unions in a list for instance and then pull them out properly you'd have to convert to tagged unions first.
null
0
1491225358
False
0
dfropxe
t3_62wye0
null
null
t1_dfreo4j
null
1493754387
1
t5_2fwo
null
null
null
null
rainbow7564
null
Most of security, like proper password storage, cannot be solved by the language.
null
0
1491225383
False
0
dfroqi4
t3_6344ep
null
null
t1_dfrj6qd
null
1493754394
4
t5_2fwo
null
null
null
null
Zarutian
null
You mean fog-of-war in RTS style games and such would just be graphical overlay? Sure, but it beats limits like only 32 connected viewers to server allowed in one single game.
null
0
1491225405
False
0
dfroqze
t3_62yl50
null
null
t1_dfqfcb4
null
1493754400
2
t5_2fwo
null
null
null
null
ShinyHappyREM
null
`!`
null
0
1491225522
False
0
dfrotqv
t3_6350ax
null
null
t1_dfrk2jw
null
1493754440
2
t5_2fwo
null
null
null
null
ShinyHappyREM
null
> quicker Not for the hardware.
null
0
1491225584
False
0
dfrov82
t3_6350ax
null
null
t1_dfrjwgg
null
1493754459
4
t5_2fwo
null
null
null
null
ShinyHappyREM
null
>compiler errors Maybe it takes a month even with using them?
null
0
1491225762
False
0
dfrozac
t3_6350ax
null
null
t1_dfri9v8
null
1493754515
1
t5_2fwo
null
null
null
null
ShinyHappyREM
null
You don't have interns?
null
0
1491225815
False
0
dfrp0ki
t3_6350ax
null
null
t1_dfrj7gw
null
1493754532
39
t5_2fwo
null
null
null
null
axilmar
null
But building better APIs (i.e. tools) can help avoid these issues.
null
0
1491225841
False
0
dfrp16y
t3_6344ep
null
null
t1_dfrlo5w
null
1493754540
8
t5_2fwo
null
null
null
null
hotrodx
null
Goodbye everybody, I used goto
null
0
1491225912
False
0
dfrp2vl
t3_6350ax
null
null
t1_dfro8mq
null
1493754562
29
t5_2fwo
null
null
null
null
axilmar
null
It can. Languages with strong static typing can certainly do it. And also a lot of safety issues can be avoided by using better programming languages.
null
0
1491225959
False
0
dfrp41k
t3_6344ep
null
null
t1_dfroqi4
null
1493754661
-3
t5_2fwo
null
null
null
null
ruuhkis
null
Please stop messing with browsers scrolling, that's a painful user experience
null
0
1491225989
False
0
dfrp4qo
t3_6366vt
null
null
t3_6366vt
null
1493754678
1
t5_2fwo
null
null
null
null
doom_Oo7
null
[relevant XKCD](https://xkcd.com/1172/)
null
0
1491226084
False
0
dfrp726
t3_6350ax
null
null
t1_dfrhstj
null
1493754710
14
t5_2fwo
null
null
null
null
TwoSpoonsJohnson
null
We don't talk about `std::vector<bool>`.
null
0
1491226132
False
0
dfrp882
t3_6350ax
null
null
t1_dfrl7h8
null
1493754726
45
t5_2fwo
null
null
null
null
peterwilli
null
Hi guys, I wanted to do something fun for the community. Hope you enjoy it! This is my first AI-related article :) I'm here to answer any questions.
null
0
1491226292
False
0
dfrpc4b
t3_636ro1
null
null
t3_636ro1
null
1493754777
2
t5_2fwo
null
null
null
null
doom_Oo7
null
> Didn't even realize the students of today weren't even being taught such basic things. I don't think how to build websites should be taught in university. In fifty years, there will certainly not be "websites" anymore, but knowing how to walk a graph, creating automatons, and boolean logic will always be necessary
null
0
1491226306
False
0
dfrpcg1
t3_6344ep
null
null
t1_dfr7mdf
null
1493754781
3
t5_2fwo
null
null
null
null
TwoSpoonsJohnson
null
Or could we go with `u8_anal` and give the potty mouths a giggle while we're at it?
null
1
1491226360
False
0
dfrpdrt
t3_6350ax
null
null
t1_dfrja5h
null
1493754800
2
t5_2fwo
null
null
null
null
nachose
null
Not many, though.
null
0
1491226395
False
0
dfrpeki
t3_6350ax
null
null
t1_dfrl4zu
null
1493754810
12
t5_2fwo
null
null
null
null
MrDOS
null
How is that any different than just using `'A'`, though? If it's source file encoding we're worried about then you still have to decode it correctly to interpret the `u8` literal.
null
0
1491226435
False
0
dfrpfjz
t3_6350ax
null
null
t1_dfrjfb2
null
1493754824
3
t5_2fwo
null
null
null
null
nachose
null
All things are removed from the standard, not from the implementations. The implementations probably will support them for some years.
null
0
1491226464
False
0
dfrpg9a
t3_6350ax
null
null
t1_dfrnsfb
null
1493754833
7
t5_2fwo
null
null
null