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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
False | cyrusol | t2_bkmvv | > I just can't _get_ C++, or Rust
Not with that attitude, yes.
I am convinced you would make it otherwise. | null | 0 | 1546083184 | False | 0 | ecsqk1b | t3_aac4hg | null | null | t1_ecs1a2f | /r/programming/comments/aac4hg/modern_c_lamentations/ecsqk1b/ | 1548220653 | 5 | t5_2fwo | r/programming | public | null |
False | warlord85 | t2_re5cp | Hahahaha I still remember doing this in secondary high school, not inspired by Doom (not directly maybe) but to test Pascal graphics. That was 20 years ago! Those were the days!! Thanks OP!!! | null | 0 | 1546083335 | False | 0 | ecsqmtg | t3_aajb7r | null | null | t3_aajb7r | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecsqmtg/ | 1548220688 | 5 | t5_2fwo | r/programming | public | null |
False | omni-viral | t2_3chm4v | [relevant xkcd](https://xkcd.com/927/) | null | 0 | 1546083580 | False | 0 | ecsqrgn | t3_aac4hg | null | null | t1_ecshv7w | /r/programming/comments/aac4hg/modern_c_lamentations/ecsqrgn/ | 1548220745 | -1 | t5_2fwo | r/programming | public | null |
False | Ameisen | t2_5qad2 | Are you trying to be intentionally inflammatory? | null | 0 | 1546083592 | False | 0 | ecsqroh | t3_aac4hg | null | null | t1_ecspekx | /r/programming/comments/aac4hg/modern_c_lamentations/ecsqroh/ | 1548220748 | 1 | t5_2fwo | r/programming | public | null |
False | MasterCwizo | t2_mninb | I found this book a couple of days ago and immediately wanted to buy it. Then I saw he wrote one for Wolfenstein too (first), so I bought that one first. This one is on the todo list.
Def looks like a good read. | null | 0 | 1546083739 | False | 0 | ecsqubg | t3_aajb7r | null | null | t1_ecsooqd | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecsqubg/ | 1548220810 | 6 | t5_2fwo | r/programming | public | null |
False | WhiteCastleHo | t2_bwheg | I feel like printers are notoriously annoying within the IT world. I was told in one of my programming classes, just as an aside, that printers are the hardest things to fix. My father worked as an IT rockstar for a major corporation and they would sometimes have him travel several hours to a different branch just to fix a printer.
I feel like outsiders view this as a trivial task when it's actually a major pain in the ass. | null | 0 | 1546083753 | False | 0 | ecsqul7 | t3_aaco1d | null | null | t1_ecs794i | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsqul7/ | 1548220813 | 2 | t5_2fwo | r/programming | public | null |
False | omni-viral | t2_3chm4v | `std::function` adds significant overhead. | null | 0 | 1546083877 | False | 0 | ecsqwuy | t3_aac4hg | null | null | t1_ecs10nj | /r/programming/comments/aac4hg/modern_c_lamentations/ecsqwuy/ | 1548220841 | 8 | t5_2fwo | r/programming | public | null |
False | sdfrew | t2_5nc8y | Not having used Haskell for anything except toy programs myself, I wonder if there is anything you gain from error handling, IO, ... using that common type formalism (monads)? I mean, its neat that they all follow the monad laws, but are there any practical consequences of that compared to, say, having all of those use their own distinct composition functions? | null | 0 | 1546083942 | False | 0 | ecsqy4s | t3_aai5ap | null | null | t1_ecsqh1d | /r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsqy4s/ | 1548220856 | 4 | t5_2fwo | r/programming | public | null |
False | omni-viral | t2_3chm4v | I'm almost sure that in `auto value = 32;` `value` will have `int` type.
And this won't compile because type inference in C++ is garbage.
void foo(long*) {}
int main() {
auto x = 32;
foo(&x); // Error. `&x` has type `int*`
}
It never looks how variable declared with `auto` is used. Type of the initialization expression is used always. And if there is ambiguity in expression (function returning template parameter) then it won't compile even if variable usage disambiguate the type. | null | 0 | 1546084184 | 1546084596 | 0 | ecsr2mz | t3_aac4hg | null | null | t1_ecrys89 | /r/programming/comments/aac4hg/modern_c_lamentations/ecsr2mz/ | 1548220912 | 1 | t5_2fwo | r/programming | public | null |
False | dhruvrajvanshi | t2_kji30 | I think you slightly missed the point. You should be able to make a similar list for yourself. Things that you don't know but want to. | null | 0 | 1546084186 | False | 0 | ecsr2ol | t3_aaco1d | null | null | t1_ecsngb6 | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsr2ol/ | 1548220912 | 2 | t5_2fwo | r/programming | public | null |
False | bdtddt | t2_x8et0 | I think algorithms is one of the few areas where learning as you need them is a terrible way of doing things. For every instance where you think ‘there must be an efficient algorithm for this’, there’ll be plenty more where you’ve just implemented an ad hoc solution because the perfect algorithmic solution was completely unknown to you. | null | 0 | 1546084195 | False | 0 | ecsr2v3 | t3_aaco1d | null | null | t1_ecsg8zo | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsr2v3/ | 1548220915 | 1 | t5_2fwo | r/programming | public | null |
False | bdtddt | t2_x8et0 | In 99% of cases it will be tests, it’s rather obvious who is instead a type driven development practitioner. | null | 0 | 1546084242 | False | 0 | ecsr3rs | t3_aaco1d | null | null | t1_ecsogou | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsr3rs/ | 1548220926 | 3 | t5_2fwo | r/programming | public | null |
False | crinkleberry | t2_8f5ej | I've seen a few articles about the techniques for animation, memory management, etc. they used in old games like DOOM and quake. I love them, can anybody recommend a place to see more? | null | 0 | 1546084461 | False | 0 | ecsr7xc | t3_aajb7r | null | null | t3_aajb7r | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecsr7xc/ | 1548220977 | 29 | t5_2fwo | r/programming | public | null |
False | bdtddt | t2_x8et0 | People who use the “I’ll just look it up” line are to my ear admitting to having a lacklustre knowledge of existing solutions and thus poor sense of pattern recognition. For every instance when they think to google something, there’ll be a dozen where they just throw together their own poor ad hoc solution. | null | 0 | 1546084493 | False | 0 | ecsr8k1 | t3_aaco1d | null | null | t1_ecsh8ac | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsr8k1/ | 1548220985 | -5 | t5_2fwo | r/programming | public | null |
False | WhiteCastleHo | t2_bwheg | > I don’t know Flexbox or Grid. Floats are my jam.
I saw that you indicated this on twitter a little while ago. At least learn Flexbox, man. You won't regret it. | null | 0 | 1546084537 | False | 0 | ecsr9dx | t3_aaco1d | null | null | t3_aaco1d | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsr9dx/ | 1548220995 | 5 | t5_2fwo | r/programming | public | null |
False | xcdesz | t2_79zii | Not sure about the number 2 point. For me at least, my mind is pretty jumbled when I am coding, and it sort of clarifies as I get closer to the solution. I'll change my mind at least 5 times as I write something down. Whiteboarding kinda sucks for me... Although if you give me five minutes alone in a closet I'll have a very pretty thing you can read and I can discuss.
| null | 0 | 1546084564 | False | 0 | ecsr9ww | t3_aaco1d | null | null | t1_ecrljiw | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsr9ww/ | 1548221002 | 1 | t5_2fwo | r/programming | public | null |
False | wellmeaningtroll | t2_9526cir | Alright, so now it's fine to create "content" by taking random people's tweets and pouring a bit of your own sauce on top.
What a freakin waste. | null | 0 | 1546084597 | False | 0 | ecsrajn | t3_aakiko | null | null | t3_aakiko | /r/programming/comments/aakiko/on_guishaming_and_a_mountain_of_hot_takes/ecsrajn/ | 1548221009 | 6 | t5_2fwo | r/programming | public | null |
False | kucukkanat | t2_lpc11 | Why did I get downvotes for my comment? | null | 0 | 1546084632 | False | 0 | ecsrb7p | t3_a9yxp6 | null | null | t3_a9yxp6 | /r/programming/comments/a9yxp6/gitbatch_manage_all_of_your_git_repositories_in/ecsrb7p/ | 1548221018 | 1 | t5_2fwo | r/programming | public | null |
False | OctagonClock | t2_govx9 | I don't understand the absolute hatred of exceptions everyone suddenly developed around 2016. | null | 0 | 1546084662 | False | 0 | ecsrbs3 | t3_aa3qdm | null | null | t1_ecqpb7y | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecsrbs3/ | 1548221025 | 3 | t5_2fwo | r/programming | public | null |
False | YM_Industries | t2_70ork | Is the fire meant to look [like this](https://i.imgur.com/KRSlhZ8.png)? This looks pretty different to the Doom effect. Tried in both Chrome 71.0.3578.98 (64-bit) and Firefox Developer Edition 65.0b7 (64-bit). | null | 0 | 1546084690 | False | 0 | ecsrcap | t3_aajb7r | null | null | t1_ecsk2su | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecsrcap/ | 1548221031 | 85 | t5_2fwo | r/programming | public | null |
False | fagnerbrack | t2_xeaqp | I google the problem and most of the time I can find the algorithm. I TDD the problem to make sure I can understand all the details of it, not to find the most optional solution. I'm not saying I can rediscover an algorithm ppl took years to discover, that would be insane! | null | 0 | 1546084735 | False | 0 | ecsrd6l | t3_aaco1d | null | null | t1_ecsr2v3 | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsrd6l/ | 1548221042 | 1 | t5_2fwo | r/programming | public | null |
False | takinashi | t2_ah3sr | I think they get mad because of the language. | null | 0 | 1546085425 | False | 0 | ecsrqil | t3_a9yxp6 | null | null | t1_ecsrb7p | /r/programming/comments/a9yxp6/gitbatch_manage_all_of_your_git_repositories_in/ecsrqil/ | 1548221207 | 1 | t5_2fwo | r/programming | public | null |
False | ProfessorPhi | t2_84c4z | High level languages use for in constructs, only in manual slicing does it matter. I don't like 1 indexing, but it's rarely as bad as it's made out, especially for higher level languages | null | 0 | 1546085547 | False | 0 | ecsrsvw | t3_aabai1 | null | null | t1_ecqsgm7 | /r/programming/comments/aabai1/fish_shell_30/ecsrsvw/ | 1548221237 | 1 | t5_2fwo | r/programming | public | null |
False | stone_henge | t2_hw9z1 | There's nothing intrinsically correct about driving on the right side of the road either. People that are used to drive on the right side still have a hard time adjusting to driving on the left side in the few places where that's mandatory. | null | 0 | 1546085558 | False | 0 | ecsrt3q | t3_aabai1 | null | null | t1_ecs09fy | /r/programming/comments/aabai1/fish_shell_30/ecsrt3q/ | 1548221240 | 4 | t5_2fwo | r/programming | public | null |
False | ProfessorPhi | t2_84c4z | Install fzf and never look back | null | 0 | 1546085584 | False | 0 | ecsrtm5 | t3_aabai1 | null | null | t1_ecsamjl | /r/programming/comments/aabai1/fish_shell_30/ecsrtm5/ | 1548221245 | 3 | t5_2fwo | r/programming | public | null |
False | kucukkanat | t2_lpc11 | yeah I could guess. It's amazing how people gets triggered just because of language nowadays. Too lazy to right click and translate. Racists.. | null | 0 | 1546085767 | False | 0 | ecsrxal | t3_a9yxp6 | null | null | t1_ecsrqil | /r/programming/comments/a9yxp6/gitbatch_manage_all_of_your_git_repositories_in/ecsrxal/ | 1548221291 | 1 | t5_2fwo | r/programming | public | null |
False | indiebryan | t2_123uxh | Man #3 sounds like a dream as a freelancer, maybe I should dust off the old resume. | null | 0 | 1546085831 | False | 0 | ecsryji | t3_aaco1d | null | null | t1_ecsc9o9 | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsryji/ | 1548221306 | 2 | t5_2fwo | r/programming | public | null |
False | stone_henge | t2_hw9z1 | Why should I write this stream I/O heavy script that I'll use exactly once in a language that'll make that much more cumbersome than just piping things together? Right tool for the right job. | null | 0 | 1546085849 | False | 0 | ecsryvv | t3_aabai1 | null | null | t1_ecr9t0y | /r/programming/comments/aabai1/fish_shell_30/ecsryvv/ | 1548221311 | 1 | t5_2fwo | r/programming | public | null |
False | Pepf | t2_91a4c | (ノಠ益ಠ)ノ彡┻━┻ | null | 0 | 1546085885 | False | 0 | ecsrzlw | t3_aaco1d | null | null | t1_ecskc5g | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsrzlw/ | 1548221319 | 4 | t5_2fwo | r/programming | public | null |
False | kankyo | t2_77w4q | I heard of someone doing alt+space to write _. Seems like it would be great if one could rely on it existing by default. | null | 0 | 1546085939 | False | 0 | ecss0rj | t3_aaamfb | null | null | t1_ecqbbl0 | /r/programming/comments/aaamfb/how_you_ever_thought_about_which_casing/ecss0rj/ | 1548221334 | 1 | t5_2fwo | r/programming | public | null |
False | kankyo | t2_77w4q | Well that's a lie. Code bases in nim aren't forced to be a total mess of mixing camelCase, snake_case, and PascalCase just because you use libs with different conventions. For nim this is more likely because of the great C integration so there are fewer wrappers than in for example Python.
I don't say I agree with nims crazy approach but let's not lie about it ok? | null | 0 | 1546086145 | False | 0 | ecss4z9 | t3_aaamfb | null | null | t1_ecrlcp8 | /r/programming/comments/aaamfb/how_you_ever_thought_about_which_casing/ecss4z9/ | 1548221416 | 0 | t5_2fwo | r/programming | public | null |
False | sabas123 | t2_by3ez | >I'd rather be told I'm an idiot than to be just ignored.
By combinatorylogic maybe, but I would feel nothing of value is lost if shevegen never replied to my comments ever again. | null | 0 | 1546086238 | False | 0 | ecss70r | t3_aaco1d | null | null | t1_ecsfwvf | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecss70r/ | 1548221440 | 3 | t5_2fwo | r/programming | public | null |
False | welkam | t2_o4k0x | A modern language that can be used instead of C++ does exist today. Its called D. Dont need to wait | null | 0 | 1546086321 | False | 0 | ecss8pc | t3_aac4hg | null | null | t1_ecshv7w | /r/programming/comments/aac4hg/modern_c_lamentations/ecss8pc/ | 1548221461 | 6 | t5_2fwo | r/programming | public | null |
False | JezusTheCarpenter | t2_q0loq | Absolutely, actually just by knowing what you don't know you are already in a good place. | null | 0 | 1546086455 | False | 0 | ecssbq9 | t3_aaco1d | null | null | t1_ecsagnp | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecssbq9/ | 1548221498 | 1 | t5_2fwo | r/programming | public | null |
False | JezusTheCarpenter | t2_q0loq | > whole "DevOps" umbrella covers what used to be multiple job titles and backgrounds
+1 | null | 0 | 1546086513 | False | 0 | ecssd0h | t3_aaco1d | null | null | t1_ecs6jhj | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecssd0h/ | 1548221514 | 2 | t5_2fwo | r/programming | public | null |
False | sabas123 | t2_by3ez | Keep in mind that it is much harder for an employee to learn algorithms on the job compared to something that is likely to be closer to the day to day work. | null | 0 | 1546086624 | False | 0 | ecssfh7 | t3_aaco1d | null | null | t1_ecso2vh | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecssfh7/ | 1548221545 | 3 | t5_2fwo | r/programming | public | null |
False | dagbrown | t2_358pm | > I'm really glad I had prior experience making games and building the engine up from scratch
That's what university computer science programs are all about. Not making engines from scratch; making the *standard library* from scratch.
Once you understand what's in the standard library, you can use it that much more effectively.
So once you've built your own game engine from scratch, you appreciate much better what's in a pre-made game engine. | null | 0 | 1546086685 | 1546089058 | 0 | ecssgud | t3_aajb7r | null | null | t1_ecspsad | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecssgud/ | 1548221561 | 16 | t5_2fwo | r/programming | public | null |
False | ToastOfTheTown911 | t2_2qsews83 | Ooh boy. Who gives a sh**. | null | 0 | 1546086808 | False | 0 | ecssjjn | t3_aakiko | null | null | t3_aakiko | /r/programming/comments/aakiko/on_guishaming_and_a_mountain_of_hot_takes/ecssjjn/ | 1548221594 | 7 | t5_2fwo | r/programming | public | null |
False | MEaster | t2_45thc | > (If anything I'd say having a "primitive casting" keyword still makes it more of a special case than it should be; I prefer the OCaml style where the conversions are just ordinary functions).
The `From` trait is implemented for the conversions between the number types where the target can fit the entire range of the source type (e.g. u8 > i16), and the conversion can never fail. I think the Clippy tool suggests using these instead of `as` to avoid accidental truncation or such if you later change the types.
There's also `TryFrom` for cases where the target might not fit the entire range (e.g. i16 > u8) and could fail, though it also has a blanket implementation for all implementations of `From`. But that trait's not currently stable (you know if there's an ETA on that /u/steveklabnik1 ?).
| null | 0 | 1546087061 | False | 0 | ecssp5e | t3_a9zyp3 | null | null | t1_ecrsx6x | /r/programming/comments/a9zyp3/thoughts_on_rust_in_2019/ecssp5e/ | 1548221665 | 2 | t5_2fwo | r/programming | public | null |
False | sabas123 | t2_by3ez | What school did you go to that you can pass a compilers class with just looking at your phone? | null | 0 | 1546087116 | False | 0 | ecssqdp | t3_aaco1d | null | null | t1_ecsfbjf | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecssqdp/ | 1548221680 | 3 | t5_2fwo | r/programming | public | null |
False | astro_za | t2_4ejl2v | This is interesting, thank you. For those wanting to start with game programming, should one look at OpenGL, OpenTK or [SFML.NET](https://SFML.NET), which of these would you recommend to beginners (who have coding experience)? | null | 0 | 1546087253 | False | 0 | ecsst82 | t3_aajb7r | null | null | t1_ecsopcl | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecsst82/ | 1548221715 | 1 | t5_2fwo | r/programming | public | null |
False | matthieum | t2_5ij2c | > Regardless, it's just not a reason for a blind kneejerk reaction to a language. That's just wilful ignorance.
Indeed; it's certainly possible to adapt, and catch issues with tests. I would just encourage authors of new languages to avoid 1-based indexing because it's one more (small) barrier to their language adoption and usage. | null | 0 | 1546087305 | False | 0 | ecssudr | t3_aabai1 | null | null | t1_ecrqakg | /r/programming/comments/aabai1/fish_shell_30/ecssudr/ | 1548221729 | 3 | t5_2fwo | r/programming | public | null |
False | sketch_56 | t2_w65be | Good read, but one thing I got hung up on, is that there's an inconsistency in referencing the fire pixel array
>In the code, lower-left is at array index zero
But the code still references index 0 at upper left. Otherwise, array updates would overwrite the bottom line of white pixels.
Just being nitpicky | null | 0 | 1546087461 | False | 0 | ecssy0m | t3_aajb7r | null | null | t3_aajb7r | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecssy0m/ | 1548221774 | 8 | t5_2fwo | r/programming | public | null |
False | pelrun | t2_4rooo | Yup. | null | 0 | 1546087491 | False | 0 | ecssyo1 | t3_aajb7r | null | null | t1_ecspbsl | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecssyo1/ | 1548221782 | 0 | t5_2fwo | r/programming | public | null |
False | matthieum | t2_5ij2c | Always thought the second was different; maybe you should clear your cache? | null | 0 | 1546087517 | False | 0 | ecssz8x | t3_aabai1 | null | null | t1_ecr9w46 | /r/programming/comments/aabai1/fish_shell_30/ecssz8x/ | 1548221789 | 3 | t5_2fwo | r/programming | public | null |
False | ygra | t2_8kizi | This should probably be integrated into whatever typing aids are offered by one's IDE / text editor, so you can practice what you really have to type. As it is, it's helpful for people writing code in Notepad, but for most of the things you don't have to type more than a few letters before hitting Tab to auto-complete to the correct word that's usually even matched to be contextually-relevant. | null | 0 | 1546087575 | False | 0 | ecst0eh | t3_aakbja | null | null | t3_aakbja | /r/programming/comments/aakbja/code_typing_tutor_write_code_quickly_without/ecst0eh/ | 1548221803 | 3 | t5_2fwo | r/programming | public | null |
False | matthieum | t2_5ij2c | > If you want you can add a meta method for the _ENV table that makes indexs normal.
I'm very scared now. The idea of mixing libraries written in 0-based and 1-based indexing together seems like a recipe for bugs; I'd rather have language-wise consistency, whether 0 or 1. | null | 0 | 1546087646 | False | 0 | ecst1xq | t3_aabai1 | null | null | t1_ecr74q7 | /r/programming/comments/aabai1/fish_shell_30/ecst1xq/ | 1548221822 | 2 | t5_2fwo | r/programming | public | null |
False | schlupa | t2_4nalh3 | That was ann old 32bits windows optlink limit. Nothing to do with D as a language. | null | 0 | 1546087767 | False | 0 | ecst4lk | t3_aac4hg | null | null | t1_ecsc9zp | /r/programming/comments/aac4hg/modern_c_lamentations/ecst4lk/ | 1548221855 | 8 | t5_2fwo | r/programming | public | null |
False | airflow_matt | t2_meh1h | I have similar experience. Our old project got quite out of hand. The new one is about 250kloc c++ code and 220kloc c code (without dependencies) and the debug build takes about 70 seconds on my 4 core laptop, which is quite pleasant to work with. Keeping it there does require lot of discipline, being rather frugal with templates, lots of forward declaration and generally keeping header files very small and concise. Which unfortunately seems to be the exact opposite trend of anything "modern c++" related. And it's not like there are no templates or metaprogramming in the project - simple search for "template <" within the codebase returned 658 results, but they are mostly small, not nested and used with restraint. | null | 0 | 1546087859 | False | 0 | ecst6mz | t3_aac4hg | null | null | t1_ecsor3n | /r/programming/comments/aac4hg/modern_c_lamentations/ecst6mz/ | 1548221880 | 7 | t5_2fwo | r/programming | public | null |
False | sabas123 | t2_by3ez | What topics do you consider to fall under the basics of networking? | null | 0 | 1546087872 | False | 0 | ecst6ww | t3_aaco1d | null | null | t1_ecsccei | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecst6ww/ | 1548221883 | 3 | t5_2fwo | r/programming | public | null |
False | haqbar | t2_4v49j | Not sure how technical or if this is a bit to "new" for you, but the blog posts detailing the making of Crash Bandicoot is an excellent read about the whole game dev process: https://all-things-andy-gavin.com/2011/02/02/making-crash-bandicoot-part-1/ | null | 0 | 1546087881 | False | 0 | ecst74z | t3_aajb7r | null | null | t1_ecsr7xc | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecst74z/ | 1548221886 | 20 | t5_2fwo | r/programming | public | null |
False | [deleted] | None | [deleted] | null | 0 | 1546088008 | False | 0 | ecsta1c | t3_aajb7r | null | null | t1_ecsk2su | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecsta1c/ | 1548221922 | -1 | t5_2fwo | r/programming | public | null |
False | lulzmachine | t2_3c0uk | That's really cool | null | 0 | 1546088082 | False | 0 | ecstbud | t3_aabai1 | null | null | t1_ecra4sk | /r/programming/comments/aabai1/fish_shell_30/ecstbud/ | 1548221944 | 6 | t5_2fwo | r/programming | public | null |
False | gabeheadman | t2_541hc | Do you work in a startup environment? An older corporate one? If we're real though, there's a lot of industry that needs a much slower, less volatile course. If ERP systems switched up tech every few years, nothing would ever get produced. SF is such a loud microcosm in the tech world that it seems like everyone should be switching it up like they do, but the reality is that doesn't always work. | null | 0 | 1546088245 | False | 0 | ecstfhx | t3_aaco1d | null | null | t1_ecs78be | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecstfhx/ | 1548222019 | 4 | t5_2fwo | r/programming | public | null |
False | joonazan | t2_kh84p | There is also Rust and Haskell. | null | 0 | 1546088266 | False | 0 | ecstg09 | t3_aac4hg | null | null | t1_ecss8pc | /r/programming/comments/aac4hg/modern_c_lamentations/ecstg09/ | 1548222025 | 6 | t5_2fwo | r/programming | public | null |
False | the_gnarts | t2_9ya05 | > From this except, the book sounds incredible
It is. A real page turner. If you can imagine parts of the game in your
head (as anyone who lived through the 90s would), it will explain
how every single pixel ends up being drawn, from the hardware
primitives to the 3D geometry and sprites. | null | 0 | 1546088453 | False | 0 | ecstkqn | t3_aajb7r | null | null | t1_ecsooqd | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecstkqn/ | 1548222084 | 6 | t5_2fwo | r/programming | public | null |
False | kaeblo | t2_iw9bc | Good question. If I understand it correctly you are asking what's the point of following the terminology of monads for all the different implementations compared to something like, say JS Promise.then, which works similarly.
I'm not sure if I can answer this very well, but I'll try.
With monads you have no flatten and flatten version of mapping and you can consistently expect what these functions do. With other words the type signatures are regular.
I wouldn't mind it too much having similarly working functions with different names, if someone can find more expressive names than map and flatMap (not hard to beat >>= I guess)
Now I'm used to using these functions I don't think about this problem anymore, but when I started learning it, it was definitely somewhat confusing to find the connection between the different maps and flatmaps. The other downside is when you use multiple different monads very close to each other it can be hard to tell which one is which, when you only see the lot of maps.
The other advantage what you gain with consistently using these type signatures and names is being able to use for comprehension / do notation. I'm not sure if there could be another way for the compiler to allow for this.
Why the monads laws are important though I can't answer. Scala's Try and Future break one law (because of exceptions) and they seem to be working pretty well in practice.
| null | 0 | 1546088550 | False | 0 | ecstn67 | t3_aai5ap | null | null | t1_ecsqy4s | /r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecstn67/ | 1548222113 | 2 | t5_2fwo | r/programming | public | null |
False | joonazan | t2_kh84p | Usually pure functions are maintainable because their dependencies are explicit. Your code is useless if given a pure function. | null | 0 | 1546088561 | False | 0 | ecstngn | t3_aac4hg | null | null | t1_ecqzdk3 | /r/programming/comments/aac4hg/modern_c_lamentations/ecstngn/ | 1548222117 | 1 | t5_2fwo | r/programming | public | null |
False | GHansard | t2_328pa | I blame my faulty memory. Thank you for correcting me. | null | 0 | 1546088634 | False | 0 | ecstp99 | t3_aabai1 | null | null | t1_ecsgvpu | /r/programming/comments/aabai1/fish_shell_30/ecstp99/ | 1548222139 | 2 | t5_2fwo | r/programming | public | null |
False | qzrt | t2_175xbf | > For too long the people who drive C++ development have completely ignored debug and compile times
Kind of hard for the C++ committee to enforce things like compiler optimizations. They create a spec they don't control the actual implementation of it. For example Microsoft's std::cout is completely garbage. The way they implemented it causes massive slow downs if you output using it. It's much faster to just use printf. It probably will never be fixed either. Making code fast with no optimization enabled is difficult. If you do that you effective need to remove any sort of abstraction, I remember implementing matrix multiplication, I can write code that uses pre-existing functions for vectors. But if I do that, the debug build will be extremely slow, as it don't optimize out the function calls. To make it faster without optimization I effectively need to write out every addition and multiplication in place. You can write fast code without optimization but you will be throwing out effectively everything else out the windows.
Wish modules made it into C++17, now it's going to be another stretch of time before it gets added. Might help mitigate the compile time situation a bit but in general C++ is just always going to be slow to compile. | null | 0 | 1546089413 | False | 0 | ecsu8xm | t3_aac4hg | null | null | t1_ecrwgep | /r/programming/comments/aac4hg/modern_c_lamentations/ecsu8xm/ | 1548222383 | 8 | t5_2fwo | r/programming | public | null |
False | tso | t2_37rbd | When you can rely on every damned clock cycle to be at your beck and call, magic happens. These days one have so many layers of redirection that it is downright scary. | null | 0 | 1546089878 | False | 0 | ecsulri | t3_aajb7r | null | null | t1_ecsnbh4 | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecsulri/ | 1548222541 | 58 | t5_2fwo | r/programming | public | null |
False | InsanityRoach | t2_8ziyv | The real question is, why are they so unreliable? | null | 0 | 1546089881 | 1546090152 | 0 | ecsulur | t3_aaco1d | null | null | t1_ecsqul7 | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsulur/ | 1548222542 | 2 | t5_2fwo | r/programming | public | null |
False | mu_mu_lambda | t2_5y4r6 | Kleisli arrows are just a generalisation of function composition for monads though. Apples aren’t a thing, we’re eating Granny Smiths now. Is that what you’re trying to say? | null | 0 | 1546089966 | False | 0 | ecsuo6w | t3_aai5ap | null | null | t1_ecse9qc | /r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsuo6w/ | 1548222571 | 7 | t5_2fwo | r/programming | public | null |
False | mihaus_ | t2_l9v5vmu | Seems like it's a similar concept but with blur, no? | null | 0 | 1546090020 | False | 0 | ecsupnl | t3_aajb7r | null | null | t1_ecsrcap | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecsupnl/ | 1548222619 | 6 | t5_2fwo | r/programming | public | null |
False | kulakovanton | t2_tirem | Thank you for your response. | null | 0 | 1546090048 | False | 0 | ecsuqcv | t3_aakbja | null | null | t1_ecst0eh | /r/programming/comments/aakbja/code_typing_tutor_write_code_quickly_without/ecsuqcv/ | 1548222627 | 1 | t5_2fwo | r/programming | public | null |
False | steveklabnik1 | t2_d7udf | It's been stuck in a tricky situation, but it seems like there's light at the end of the tunnel! Hopefully pretty soon. | null | 0 | 1546090163 | False | 0 | ecsutfm | t3_a9zyp3 | null | null | t1_ecssp5e | /r/programming/comments/a9zyp3/thoughts_on_rust_in_2019/ecsutfm/ | 1548222665 | 2 | t5_2fwo | r/programming | public | null |
False | stone_henge | t2_hw9z1 | ".." is a literal hard link that is created for every directory that points to the parent directory, of which there only is of course only one. It seems consistent from that point of view that it should be treated as any other file and `ln -s somewhere/whatever symlink ; cd symlink ; cd ..` should resolve to `somewhere` which is the parent directory of the directory pointed at by `symlink`.
However, in UNIX, what is actually "correct" is mandated by POSIX, and POSIX, not necessarily consistent, mandates that the `cd` command should resolve `..` *logically* unless the `-P` option is specified. If the `-P` option is specified, it should however resolve symbolic links before attempting to change the directory and reset `PWD`, just as you prefer.
So what `cd argument` actually does when the `-P` flag is not specified is to take the current `PWD`, append the argument to it and then symbolically resolve every `..` component and make sure that the resulting path resolves to a directory, call `chdir` with that path and also reset `PWD` to that path. That is, if the result of the concatenation is `a/b/c/../d`, it mangles the string into `a/b/d` without any regard for what `c` is or where it physically resides, and that'll be your new `PWD` and as such the basis for any further `cd` invocation. It's literally just mangling the string without any regard for what anything represents physically.
So you're now seeing Fish improving its POSIX compliance. If you prefer that symlinks are resolved, use the -P option.
EDIT: Here's the spec: https://pubs.opengroup.org/onlinepubs/009695399/utilities/cd.html. To whomever downvoted me, feel free to shoot the messenger, but UNIX (like most other operating systems) just isn't very consistent, and any appeal to correctness should refer to the applicable standards rather than consistency. If you want a POSIX compliant command environment, this is how your `ls` implementation has to work. If you don't want that, but instead want your `cd` behave differently from that of every other shell and ignore the standards, by all means do that, but don't argue for it on the basis that it's the "correct" way to do it. | null | 0 | 1546090251 | 1546096316 | 0 | ecsuvuw | t3_aabai1 | null | null | t1_ecskj9f | /r/programming/comments/aabai1/fish_shell_30/ecsuvuw/ | 1548222695 | 2 | t5_2fwo | r/programming | public | null |
False | Matthew94 | t2_6jzsd | > /u/combinatorylogic
I have him RES tagged as "dickhead" because he's the most bitter and unbearable cunt that I've seen on this site. | null | 0 | 1546090310 | False | 0 | ecsuxgr | t3_aaco1d | null | null | t1_ecr5rwx | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsuxgr/ | 1548222716 | 5 | t5_2fwo | r/programming | public | null |
False | MEaster | t2_45thc | Well, now I'm intrigued as to what kind of tricky situation could occur for what on the surface seems like a simple API. Time to go digging! Thanks. | null | 0 | 1546090392 | False | 0 | ecsuzpj | t3_a9zyp3 | null | null | t1_ecsutfm | /r/programming/comments/a9zyp3/thoughts_on_rust_in_2019/ecsuzpj/ | 1548222743 | 1 | t5_2fwo | r/programming | public | null |
False | steveklabnik1 | t2_d7udf | > It's always nice to have a more in-depth explanation but this sounds like something where I could dive deeper myself (although links, hints where to look etc. always welcome:-)
"const evaluation" and "MIRI" are the two big things.
> I think what is not clear to me here is why e.g. foo<a_len: i32>(a: [f64; a_len]) would not provide sufficient information to the compiler.
The question isn't purely one of sufficiency, it's one of simplicity. As you say
> would expect that this kind of context-independence allows for much more robust design and reasoning about compiler behaviour and combination of language features.
However, you're missing some other benefits: tooling is easier to write, for example. But the key reason is keeping the grammar simpler, as far as I know. | null | 0 | 1546090481 | False | 0 | ecsv290 | t3_a9zyp3 | null | null | t1_ecsp07f | /r/programming/comments/a9zyp3/thoughts_on_rust_in_2019/ecsv290/ | 1548222775 | 1 | t5_2fwo | r/programming | public | null |
False | editor_of_the_beast | t2_6ab1b | Really it’s HTML that makes that divide. Everything boils down to generating HTML for the browser so it influences everything. I would count document.createElement as being influenced by HTML as well, even though it’s not actually markup. Basically if you’re not using canvas, the DOM is everywhere.
Mobile is based on an actual programming language, so regular software engineering practices can be applied. Javascript didn’t even have modules until like 3 years ago. JS was always meant to adorn markup, not build a program by itself.
The web is a system that is influenced by the operation of the browser (obviously). But it leaks everywhere. The general trend is moving back towards “traditional” software, with the rise of the JS frameworks. These all move more power towards the software side of things, vs the markup.
Basically the web really is a newer operating system that has grown beyond the intention of linking between text documents, so it makes sense that it seems weird compared to native software which has been in pretty much the same form since 1970.
| null | 0 | 1546090550 | False | 0 | ecsv48y | t3_aaco1d | null | null | t1_ecsmxnj | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsv48y/ | 1548222799 | 5 | t5_2fwo | r/programming | public | null |
False | welkam | t2_o4k0x | D takes idea of templates from God level and gives it to us mere mortals. Now everyone can use them | null | 0 | 1546090590 | False | 0 | ecsv5eg | t3_aac4hg | null | null | t1_ecrcsch | /r/programming/comments/aac4hg/modern_c_lamentations/ecsv5eg/ | 1548222814 | 7 | t5_2fwo | r/programming | public | null |
False | editor_of_the_beast | t2_6ab1b | Cool. | null | 0 | 1546090636 | False | 0 | ecsv6o6 | t3_aaco1d | null | null | t1_ecschu2 | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsv6o6/ | 1548222829 | 0 | t5_2fwo | r/programming | public | null |
False | Sedbict | t2_670l7m | Yep, I started a C++ maths library as a pet project to eventually use in demos or other projects and the amount of effort it goes into simple stuff such as cycle-efficient matrix multiplication is insane. For all their advantages, most of the widely available tools really keep us from seeing the whole picture (the amount of developers who can't get low-level ideas is embarrassingly high). | null | 0 | 1546090725 | False | 0 | ecsv95a | t3_aajb7r | null | null | t1_ecsnbh4 | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecsv95a/ | 1548222859 | 22 | t5_2fwo | r/programming | public | null |
False | CornedBee | t2_10lnt6 | > Every 'if' statement has a matching 'else' (exception: simple error checks for a client API call)
Third function in the module:
if !utilfeature.DefaultFeatureGate.Enabled(features.VolumeScheduling) {
return false, nil
}
That's not an error check. That's a feature gate. The function contains three more non-error unmatched if-returns. Don't you love it when comments are lying? | null | 0 | 1546090945 | False | 0 | ecsvfph | t3_aa3qdm | null | null | t3_aa3qdm | /r/programming/comments/aa3qdm/please_do_not_attempt_to_simplify_this_code_keep/ecsvfph/ | 1548222941 | 3 | t5_2fwo | r/programming | public | null |
False | editor_of_the_beast | t2_6ab1b | It’s important because you don’t realize you need it until you encounter a problem that would actually benefit from knowing CS theory. And if you’ve never applied CS theory to a problem, you can’t know how powerful it is.
If you look at the people who built the foundational technology that we use everyday, there’s CS everywhere. A file system is a tree. The internet is a graph. If we don’t at least know of the theory that sits within these tools, we can’t make any advancements.
That’s not necessarily a bad thing - it just puts a divide between the type of programmers there are. There are the ones more like construction workers, that can use the existing tools and build things according to existing practices, and then there are the programmers that can solve problems that don’t have a solution yet. That’s more science-y.
I still would argue that even a basic understanding of data structures and algorithms will improve your daily job, even if you’re just plugging away at building some UI for a feature that has to go out. I’m not saying the industry’s obsession with testing that stuff out in interviews is good, but the idea of knowing this stuff doesn’t bother me at all. I think it’s helpful. | null | 0 | 1546091115 | False | 0 | ecsvkhs | t3_aaco1d | null | null | t1_ecs5llh | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsvkhs/ | 1548223000 | 10 | t5_2fwo | r/programming | public | null |
False | Adverpol | t2_k7xhv | With cleaner you mean slightly less eye-bleed inducing. | null | 0 | 1546091197 | False | 0 | ecsvmvb | t3_aabai1 | null | null | t1_ecrb5qi | /r/programming/comments/aabai1/fish_shell_30/ecsvmvb/ | 1548223030 | 3 | t5_2fwo | r/programming | public | null |
False | editor_of_the_beast | t2_6ab1b | Humans are bad at explaining things, and programmers are the worst of all of the humans at explaining things. | null | 0 | 1546091270 | False | 0 | ecsvox2 | t3_aaco1d | null | null | t1_ecrz2yw | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsvox2/ | 1548223055 | 2 | t5_2fwo | r/programming | public | null |
False | steveklabnik1 | t2_d7udf | The issue was with its interaction with `!`, the "never type". It has to be stabilized too, because the blanket impls of `TryFrom` for it need to land at the same time it lands. There were some questions about the coercions of `!` that held *it* up from stabilizing, which held `TryFrom` up too. | null | 0 | 1546091309 | False | 0 | ecsvq0m | t3_a9zyp3 | null | null | t1_ecsuzpj | /r/programming/comments/a9zyp3/thoughts_on_rust_in_2019/ecsvq0m/ | 1548223068 | 2 | t5_2fwo | r/programming | public | null |
False | editor_of_the_beast | t2_6ab1b | Mentions Facebook on StackOverflow...
Gets hired by Facebook...
Love it. | null | 0 | 1546091340 | False | 0 | ecsvqxg | t3_aaco1d | null | null | t1_ecrisyr | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsvqxg/ | 1548223080 | 6 | t5_2fwo | r/programming | public | null |
False | steveklabnik1 | t2_d7udf | > I thought "what went down" meant there was some big drama over it.
That is what your parent was saying; a lot of people didn't like it, so there was drama. | null | 0 | 1546091343 | False | 0 | ecsvqzm | t3_a9zyp3 | null | null | t1_ecs2qdo | /r/programming/comments/a9zyp3/thoughts_on_rust_in_2019/ecsvqzm/ | 1548223081 | 2 | t5_2fwo | r/programming | public | null |
False | editor_of_the_beast | t2_6ab1b | Yea specialization is one of the only ways to be truly great at something.
Source, am not great at anything and am interested in literally everything. I know a small degree about pretty much everything he mentioned. Just enough to embarrass myself on an interview testing any of these things. | null | 0 | 1546091422 | False | 0 | ecsvt9t | t3_aaco1d | null | null | t1_ecs7z7q | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsvt9t/ | 1548223108 | 10 | t5_2fwo | r/programming | public | null |
False | editor_of_the_beast | t2_6ab1b | You hit the nail on the head. There are definitely people who have only used a dynamically typed language and think static typing is “old and stupid.”
I don’t have a dog in the fight but I’ve most certainly used both, extensively. Typescript was extremely easy to pick up because of knowing about static types. | null | 0 | 1546091523 | False | 0 | ecsvw1v | t3_aaco1d | null | null | t1_ecrsgqk | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsvw1v/ | 1548223143 | 1 | t5_2fwo | r/programming | public | null |
False | __j_random_hacker | t2_4rnnt | I wasn't arguing that people shouldn't learn how to use lambdas specifically, I was arguing that a tradeoff *exists*. The post I replied to seemed not to understand/acknowledge that this tradeoff even exists. I would personally put lambdas in the "worth it" category -- it's a small amount of new syntax that enables some very handy things.
> If someone can't learn lambdas, because then he couldn't get anything done
It's not like learning this one new thing would solve everything. Each version of C++ brings a multitude of new features, and learning *all* of them *would* stop a lot of people from getting a lot of things done.
> It's never a got choice to stick to archaic standards because of decreased productivity.
Of course it depends on what exactly you mean by "archaic", but in any case I would not say "never". | null | 0 | 1546091638 | False | 0 | ecsvzko | t3_aac4hg | null | null | t1_ecs5ecb | /r/programming/comments/aac4hg/modern_c_lamentations/ecsvzko/ | 1548223214 | 3 | t5_2fwo | r/programming | public | null |
False | mapplemobs | t2_164dj3 | Something like this should stay off /programming and should be put on /webdev, because HTML isn't actually programming. | null | 0 | 1546091766 | False | 0 | ecsw3i5 | t3_aal3qo | null | null | t3_aal3qo | /r/programming/comments/aal3qo/basic_html_codes_and_tags_for_beginners_tutorial/ecsw3i5/ | 1548223262 | 7 | t5_2fwo | r/programming | public | null |
False | welkam | t2_o4k0x | When talking about compile times and run times you should put compile flags with your numbers. DMD doesnt do lots of inlining and optimizations so some code can run >10x slower in debug mode than LDC or GDC | null | 0 | 1546092090 | False | 0 | ecswcv1 | t3_aac4hg | null | null | t1_ecrfn7f | /r/programming/comments/aac4hg/modern_c_lamentations/ecswcv1/ | 1548223378 | 6 | t5_2fwo | r/programming | public | null |
False | sammymammy2 | t2_xoqzw | Without having read the article: AI has been vital in many fields that we now do not consider to be AI | null | 0 | 1546092178 | False | 0 | ecswfei | t3_aafep8 | null | null | t1_ecrmw01 | /r/programming/comments/aafep8/a_history_of_artificial_intelligence/ecswfei/ | 1548223410 | 3 | t5_2fwo | r/programming | public | null |
False | steveklabnik1 | t2_d7udf | Promises are *almost* monads, but are not monads. I believe the epicenter of this discussion was https://github.com/promises-aplus/promises-spec/issues/94, but there was a *lot* of discourse about this. | null | 0 | 1546092491 | False | 0 | ecswocv | t3_aai5ap | null | null | t1_ecsg7wz | /r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecswocv/ | 1548223520 | 20 | t5_2fwo | r/programming | public | null |
False | Groundbreaking_Lion | t2_10l76bxa | Now implement it in a FPGA | null | 0 | 1546092700 | False | 0 | ecswue8 | t3_aajb7r | null | null | t3_aajb7r | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecswue8/ | 1548223595 | 13 | t5_2fwo | r/programming | public | null |
False | fecal_brunch | t2_5dg8s | I disagree with your general sentiment. I think you should start with whatever you would find most engaging. If you see programming as a means to an end, then learn to code with unity. I've seen it done by artists learning what they need to make a game. It's a simple approachable environment that takes a lot of friction away. There's a huge community and plenty of assets you can use to make a game.
Nothing against cellular automata! | null | 0 | 1546092883 | False | 0 | ecsx01c | t3_aajb7r | null | null | t1_ecsopcl | /r/programming/comments/aajb7r/how_doom_fire_was_done/ecsx01c/ | 1548223665 | 53 | t5_2fwo | r/programming | public | null |
False | welkam | t2_o4k0x | WekaIO is \~280 KLOC and debug build is 3-4 min so it seems that D could be used for big projects
[https://youtu.be/RVpaNM-f69s?t=2212](https://youtu.be/RVpaNM-f69s?t=2212) | null | 0 | 1546093018 | False | 0 | ecsx4av | t3_aac4hg | null | null | t1_ecsc9zp | /r/programming/comments/aac4hg/modern_c_lamentations/ecsx4av/ | 1548223717 | 4 | t5_2fwo | r/programming | public | null |
False | TheRedManFromRussia | t2_ryvp7 | Just imagine that this guy works on reactjs. Jesus | null | 0 | 1546093089 | False | 0 | ecsx6kx | t3_aaco1d | null | null | t3_aaco1d | /r/programming/comments/aaco1d/things_i_dont_know_as_of_2018/ecsx6kx/ | 1548223744 | -10 | t5_2fwo | r/programming | public | null |
False | tasminima | t2_q2mvk9r | I know every little bit of what you wrote, so I'm sorry that I won't apologize for my lack of receptivity to your "teaching"; I'm however sorry that you feel so strongly about the apparent evilness of function pointers. As for where I expect to learn things in depth, I shall note that my opinion is that looking at generated code and knowing the microarchitecture of modern processors is a better way to do that than random commentaries on reddit.
My point is that call through function pointers can be "inlined" in the same situations that other techniques allow such things to happen, but in other cases they can still be used fully dynamically, in which case *of course* there is no way to inline. Now I'm not even advocating for their indiscriminate use or stating that they are superior to more "modern" style; but they are not to be forgotten either, depending on your needs.
So there is nothing that intrinsically inhibit inlining because of the "nature" of function pointers (especially given the exploitation of UB by modern compilers) at least not more than when you don't have them. You can only inline when you know both bodies, and when you can reduce the set of possible callees to best case one, or in degraded cases a small set of discriminable likely cases (the discriminant can be the pointer value itself, thanks to various points of the standard) plus maybe a fallback using the dreaded indirect call.
But in cases where you pass a lambda to a template, it is not really that much difficult to optimize the equivalent where you would pass one pointer to a template, if what really matter is respected.
See? It is the availability of the bodies and the "nearly finite" set of possible callees that allows for inlining. Of course it is possible to do inlining with a template and a lambda, because in this case *you have no other choice* (than to have the bodies available and a single callee) | null | 0 | 1546093362 | 1546093685 | 0 | ecsxf3y | t3_aac4hg | null | null | t1_ecs2ers | /r/programming/comments/aac4hg/modern_c_lamentations/ecsxf3y/ | 1548223880 | 1 | t5_2fwo | r/programming | public | null |
False | dpash | t2_5bdkm | You have to remember to check it.
You can't ignore a `Maybe`. | null | 0 | 1546093469 | False | 0 | ecsxiby | t3_aai5ap | null | null | t1_ecsm6hx | /r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsxiby/ | 1548223920 | 15 | t5_2fwo | r/programming | public | null |
False | steveklabnik1 | t2_d7udf | This isn't really accurate, IMHO. Rust has a lot of Modern C++'s features, but the language is built around them, rather than having it be additive. This means a lot of defaults can be flipped, for example, move is the default in Rust, but copy is the default in C++. The end result is cleaner, but you have to pay in lack of backwards compatibility. | null | 0 | 1546093489 | False | 0 | ecsxixn | t3_aac4hg | null | null | t1_ecs0hk0 | /r/programming/comments/aac4hg/modern_c_lamentations/ecsxixn/ | 1548223928 | 8 | t5_2fwo | r/programming | public | null |
False | steveklabnik1 | t2_d7udf | You might also like the generator version, similar to the C++ coroutines version https://news.ycombinator.com/item?id=18781113 | null | 0 | 1546093657 | False | 0 | ecsxo0x | t3_aac4hg | null | null | t1_ecsejdm | /r/programming/comments/aac4hg/modern_c_lamentations/ecsxo0x/ | 1548223991 | 3 | t5_2fwo | r/programming | public | null |
False | DJRBuckingham | t2_ywqtq | Thank you for the numbers, this is what is needed to make the case that there is another way.
They put into perspective the 45m compile times for UE4 across 12 cores, or 30m across hundreds of cores via Incredibuild, all for roughly 2 million lines of code compared to your 500k. When one style of programming nets a compile speed of ~60 lines per second per core and the other nets ~1800, that is noteworthy and points to the former doing something very *very* wrong.
I would be interested to hear how your compile times fare with a dumb single-TU unity build, master.cpp #including everything type affair. I have anecdotal evidence that it speeds things up a surprising amount, even being single threaded and such, purely due to the lack of parsing header files over and over. It removes the ability to incrementally build, but if your rebuild time is a matter of seconds, it may end up still being a win. It is what I use, but I don't have a 500k codebase to try it on, so if you feel the need to create more work for yourself I'd appreciate knowing the result! | null | 0 | 1546093744 | False | 0 | ecsxqmv | t3_aac4hg | null | null | t1_ecst6mz | /r/programming/comments/aac4hg/modern_c_lamentations/ecsxqmv/ | 1548224022 | 2 | t5_2fwo | r/programming | public | null |
False | GenerateRandName | t2_gyk76ps | I have allways found monads really complicated when looking at the theory but easy when using irl. It is the opposite of a segfault. | null | 0 | 1546093865 | False | 0 | ecsxub3 | t3_aai5ap | null | null | t3_aai5ap | /r/programming/comments/aai5ap/what_is_a_monad_computerphile/ecsxub3/ | 1548224068 | 18 | t5_2fwo | r/programming | public | null |
False | KitchenAstronomer | t2_20u00b26 | In other words people are stupidly retarded. The same people will be bashing Windows/OtherOS because they cant be bothered to go out of their comfort zone and their favorite switch/cmd is not there.
| null | 0 | 1546093888 | False | 0 | ecsxuxr | t3_aakiko | null | null | t3_aakiko | /r/programming/comments/aakiko/on_guishaming_and_a_mountain_of_hot_takes/ecsxuxr/ | 1548224075 | -2 | t5_2fwo | r/programming | public | null |
False | nfrankel | t2_ayl6m | Or at least in /r/learnprogramming | null | 0 | 1546093921 | False | 0 | ecsxvxp | t3_aal3qo | null | null | t1_ecsw3i5 | /r/programming/comments/aal3qo/basic_html_codes_and_tags_for_beginners_tutorial/ecsxvxp/ | 1548224088 | 3 | t5_2fwo | r/programming | public | null |
Subsets and Splits
Filtered Reddit Uplifting News
The query retrieves specific news articles by their link IDs, providing a basic overview of those particular entries without deeper analysis or insights.
Recent Programming Comments
Returns a limited set of programming records from 2020 to 2023, providing basic filtering with minimal analytical value.