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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
True | darkgreen | null | You said vimpulse. It seems that is being phased out.
To Evil.
http://www.emacswiki.org/emacs/Evil | null | 0 | 1319028455 | False | 0 | c2spag5 | t3_lfblq | null | t1_c2spag5 | t1_c2scnd9 | null | 1427752707 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | I meant that people that care about language are interested by functional languages because they actually brings some - maybe hard to grasp - novelty in solving problems instead of being more or less the same boring stuff, again and again. | null | 0 | 1319028503 | False | 0 | c2spam6 | t3_lh1ly | null | t1_c2spam6 | t1_c2sp7qr | null | 1427752706 | 5 | t5_2fwo | null | null | null |
True | rooktakesqueen | null | I have big problems with the bizarre way syntax is designed in many of these newfangled functional languages. It's as if we're measuring expressiveness by number of keystrokes only. Many of the important language-level operators are being expressed with punctuation rather than keywords, and sometimes that punctuation... | null | 0 | 1319028549 | False | 0 | c2spar2 | t3_lh1ly | null | t1_c2spar2 | t3_lh1ly | null | 1427752708 | 9 | t5_2fwo | null | null | null |
True | optomas | null | >You do realize you can use git without github, right? |
No, I didn't. I've been looking at git this evening, as a result. Searching the repository without checking anything out looked very exciting, until I realized the search is only on what you've pulled across.
It does look like I can make it behave exactl... | null | 0 | 1319028563 | False | 0 | c2spasn | t3_lfblq | null | t1_c2spasn | t1_c2sn2ug | null | 1427752718 | 1 | t5_2fwo | null | null | null |
True | MarshallBanana | null | Details which do not include the details you are now obsessing over.
Yes, I *know* that sizeof(int) is not strictly defined. *No*, that is *not interesting*. A good programmer knows which parts of the language are not defined, and he *also* knows what values those things have *in practice*. In *practice*, sizeof(int) ... | null | 0 | 1319028645 | False | 0 | c2spb1m | t3_lgfp0 | null | t1_c2spb1m | t1_c2sp8y5 | null | 1428191991 | 0 | t5_2fwo | null | null | null |
True | pants75 | null | Well, at least we won't have to deal with IDL.
While I love me some C++, C# is still where it's at for actually getting things done though. | null | 0 | 1319028668 | False | 0 | c2spb42 | t3_lh6ey | null | t1_c2spb42 | t3_lh6ey | null | 1427752713 | 7 | t5_2fwo | null | null | null |
True | robvas | null | You're thinking Denthor's tutorials, he was from the demo group Asphyxia.
http://www.hornet.org/code/tutors/denthor/ | null | 0 | 1319028937 | False | 0 | c2spbyh | t3_lgwpf | null | t1_c2spbyh | t1_c2sp2du | null | 1427752730 | 6 | t5_2fwo | null | null | null |
True | robvas | null | Don't forget Quake had a ton of pre-computing going on. It could take hours to run BSP and VIS on a level. iD and Quake engine licensees literally bought supercomputers to do this on. | null | 0 | 1319029014 | False | 0 | c2spc5y | t3_lgwpf | null | t1_c2spc5y | t1_c2sm40a | null | 1427752728 | 4 | t5_2fwo | null | null | null |
True | [deleted] | null | Windows development seems riddled with scary dead ends. I'm sticking with UNIX and standards for now. | null | 0 | 1319029195 | False | 0 | c2spcqh | t3_lh6ey | null | t1_c2spcqh | t3_lh6ey | null | 1427752737 | -8 | t5_2fwo | null | null | null |
True | 0blomov | null | > you need to thread it through the whole program. E.g. you can't just add some counter increment or debug output in a middle of something
There's the `Debug.Trace` package for that. You can put `trace` anywhere, and print debugging info wherever you like. | null | 0 | 1319029374 | False | 0 | c2spd8k | t3_lh1ly | null | t1_c2spd8k | t1_c2sp9ui | null | 1427752741 | 1 | t5_2fwo | null | null | null |
True | zhivago | null | sizeof a is extremely unlikely to equal sizeof &a[0].
sizeof a == 3.
Do you have 3 byte char pointers? | null | 0 | 1319029413 | False | 0 | c2spdcm | t3_lgfp0 | null | t1_c2spdcm | t1_c2snc1n | null | 1428191989 | 1 | t5_2fwo | null | null | null |
True | zhivago | null | No. It has undefined behavior.
It just happens to be the behavior that you expect, which makes it even more insidious. | null | 0 | 1319029443 | False | 0 | c2spdft | t3_lgfp0 | null | t1_c2spdft | t1_c2smnfc | null | 1427752743 | 2 | t5_2fwo | null | null | null |
True | ulbador | null | Ha, I had this book. At the time, it was about the only book you needed if you wanted to make a game. Now, it's so far antiquated as to be comical.
It does make me very nostalgic for Mode 13h and all the quirks therein.
| null | 0 | 1319029457 | False | 0 | c2spdhd | t3_lh7x0 | null | t1_c2spdhd | t3_lh7x0 | null | 1427752743 | 4 | t5_2fwo | null | null | null |
True | zhivago | null | Yes.
NULL is a macro that expands to an integer constant expression with the value 0, optionally cast to a void pointer.
So it may just be an int. | null | 0 | 1319029525 | False | 0 | c2spdpm | t3_lgfp0 | null | t1_c2spdpm | t1_c2smgm6 | null | 1427752746 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1319029537 | False | 0 | c2spdra | t3_lh3av | null | t1_c2spdra | t3_lh3av | null | 1427752747 | 2 | t5_2fwo | null | null | null |
True | Andrey_Karpov_N | null | You shouldn’t laugh at my post. Of course, it all looks too simple in that form and you can see all the errors. But there was a reason for writing that post. In a real application such errors can be a headache, especially when it stops working only when using large memory amount.
For some reason programmers are always... | null | 0 | 1319029594 | True | 0 | c2spdxn | t3_lg59j | null | t1_c2spdxn | t3_lg59j | null | 1427752759 | 4 | t5_2fwo | null | null | null |
True | nemtrif | null | A great little article, especially the part about VC++ "identity crisis". I remember talking to a VC++ team member in late 2003 - asked him why they don't support WTL and his response was that they really wanted developers to use Avalon. Mind you, that was 3 years before Avalon (renamed WPF) was even released! They tru... | null | 0 | 1319029664 | False | 0 | c2spe6i | t3_lh6ey | null | t1_c2spe6i | t3_lh6ey | null | 1427752762 | 3 | t5_2fwo | null | null | null |
True | jrochkind | null | I'm not sure how much of this is really about 'type' of person, but it might be.
We all get stuck in very similar ways to what you describe, I think, although perhaps different types of people find different techniques to get out of it helpful.
I've found the sketching technique helpful, although I often end up ske... | null | 0 | 1319029719 | False | 0 | c2spebz | t3_lh3av | null | t1_c2spebz | t3_lh3av | null | 1427752765 | 1 | t5_2fwo | null | null | null |
True | zhivago | null | argv was never const.
It is explicitly defined that the argument strings be mutable.
So you're recalling something that didn't happen. | null | 0 | 1319029760 | False | 0 | c2spegm | t3_lgfp0 | null | t1_c2spegm | t1_c2soe49 | null | 1427752762 | 3 | t5_2fwo | null | null | null |
True | [deleted] | null | > Then, because the C memory model doesn't actually mention threads, the optimizer can do this:
No, it can't, because every multithreading library tells the compiler that its functions must act as memory fences, as you correctly guessed. It happens already, and yes, for all variables. You wouldn't be able to find a... | null | 0 | 1319029852 | False | 0 | c2sperk | t3_lgjhl | null | t1_c2sperk | t1_c2smyvi | null | 1427752769 | 3 | t5_2fwo | null | null | null |
True | curien | null | Yes, I was wrong about that. Thank you for the correction. | null | 0 | 1319029864 | False | 0 | c2spesy | t3_lgfp0 | null | t1_c2spesy | t1_c2sm303 | null | 1427752769 | 2 | t5_2fwo | null | null | null |
True | Andrey_Karpov_N | null | [Comment](
http://www.reddit.com/r/programming/comments/lg59j/why_a_b_a_b_on_64bit_platform/c2spdxn) | null | 0 | 1319029891 | False | 0 | c2spew7 | t3_lg59j | null | t1_c2spew7 | t1_c2sf6l6 | null | 1427752767 | 1 | t5_2fwo | null | null | null |
True | nemtrif | null | > Have to draw the C# programmers back somehow :)
Why? Most C# programmers are busy making CRUD business applications, and for that purpose C# is a better tool. Leave C++ to people who need tight control over system resources - that's where C++ shines. | null | 0 | 1319029897 | False | 0 | c2spex2 | t3_lh6ey | null | t1_c2spex2 | t1_c2souz9 | null | 1427752767 | 7 | t5_2fwo | null | null | null |
True | zhivago | null | Arrays in C are not first class objects.
You cannot pass, return, compare or assign to them, for example.
That makes them fairly unreal.
Arrays in C could be first class objects, at least to the extent that structs are relatively easily -- it would mostly just require adding an implicit conversion from the array to ... | null | 0 | 1319029944 | False | 0 | c2spf2l | t3_lgfp0 | null | t1_c2spf2l | t1_c2sn9h2 | null | 1427752768 | 3 | t5_2fwo | null | null | null |
True | admica | null | I still have this book, but it hasn't left the shelf in years. | null | 0 | 1319029978 | False | 0 | c2spf6w | t3_lh7x0 | null | t1_c2spf6w | t3_lh7x0 | null | 1427752769 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1319030024 | False | 0 | c2spfcz | t3_lg6zg | null | t1_c2spfcz | t1_c2sf589 | null | 1427752772 | -3 | t5_2fwo | null | null | null |
True | jfx32 | null | relevant: http://www.ted.com/talks/sunni_brown.html | null | 0 | 1319030031 | False | 0 | c2spfds | t3_lh3av | null | t1_c2spfds | t3_lh3av | null | 1427752772 | 5 | t5_2fwo | null | null | null |
True | zhivago | null | ++ operates on an object, not a value.
Which is why 3++ doesn't work.
++ is just not defined meaningfully upon arrays -- what would it mean to increment an array? | null | 0 | 1319030069 | False | 0 | c2spfia | t3_lgfp0 | null | t1_c2spfia | t1_c2sjprr | null | 1427752774 | 0 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1319030084 | True | 0 | c2spfk0 | t3_lh3av | null | t1_c2spfk0 | t3_lh3av | null | 1427752774 | -11 | t5_2fwo | null | null | null |
True | zhivago | null | There can be no type coercion in the absence of type information ... it's called conversion, in any case. | null | 0 | 1319030124 | False | 0 | c2spfo8 | t3_lgfp0 | null | t1_c2spfo8 | t1_c2snns5 | null | 1427752774 | 1 | t5_2fwo | null | null | null |
True | zhivago | null | There is an implict conversion to void pointer, but you don't have any void pointer here to convert to. | null | 0 | 1319030176 | False | 0 | c2spfu8 | t3_lgfp0 | null | t1_c2spfu8 | t1_c2sng8h | null | 1427752776 | 1 | t5_2fwo | null | null | null |
True | curien | null | Yes. | null | 0 | 1319030201 | False | 0 | c2spfx5 | t3_lgfp0 | null | t1_c2spfx5 | t1_c2sk2op | null | 1427752779 | 1 | t5_2fwo | null | null | null |
True | fabzter | null | Are you a wizard? | null | 0 | 1319030251 | False | 0 | c2spg2i | t3_lgwpf | null | t1_c2spg2i | t1_c2sozze | null | 1427752778 | 7 | t5_2fwo | null | null | null |
True | [deleted] | null | That can only be disappointing if you think no practical applications of computer science require research. :-)
Slightly more seriously, I'd be interested in your reaction after having worked through Adam's little book. | null | 0 | 1319030293 | False | 0 | c2spg7o | t3_lfm1k | null | t1_c2spg7o | t1_c2som9t | null | 1427752780 | 2 | t5_2fwo | null | null | null |
True | moreyes | null | I think he misses the point in so many levels that it is embarrassing.
To start, Dart's syntax is very similar to JavaScript, so if they wanted to please people that don't like JavaScript's syntax they failed miserably. As I see it, they aimed right the opposite: to make it easy to learn and like by JavaScript develop... | null | 0 | 1319030358 | False | 0 | c2spgey | t3_l9ygm | null | t1_c2spgey | t3_l9ygm | null | 1427752791 | 1 | t5_2fwo | null | null | null |
True | __j_random_hacker | null | > gibberish like 'decay'
void foo(double x[42]) {
double y[69];
x++; // Works fine, because x really has type double *
y++; // Compiler error: can't change an array's address!
}
The top level of an array type decays immediately to a pointer type, but only in the context of a... | null | 0 | 1319030418 | False | 0 | c2spgls | t3_lgfp0 | null | t1_c2spgls | t1_c2skz03 | null | 1427752785 | 1 | t5_2fwo | null | null | null |
True | robkinyon | null | It's been a very long time since I've programmed in C, but could you explain why those are wrong? | null | 0 | 1319030527 | False | 0 | c2spgzp | t3_lg59j | null | t1_c2spgzp | t1_c2spdxn | null | 1427752790 | 2 | t5_2fwo | null | null | null |
True | MothersRapeHorn | null | Well winrt is avalon replacing win32. | null | 0 | 1319030606 | False | 0 | c2spha5 | t3_lh6ey | null | t1_c2spha5 | t1_c2spe6i | null | 1427752794 | 1 | t5_2fwo | null | null | null |
True | sanity | null | That's just language bigotry. Java is the best tool for the job in many situations. It's not perfect, no language is.
XML is almost never the right tool for the things it's used for. It's designed for marking up text and its good at that, but people use it as a generic data serialization format, which it sucks at. | null | 0 | 1319030677 | False | 0 | c2sphi9 | t3_lg661 | null | t1_c2sphi9 | t1_c2sn57e | null | 1427752796 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1319030706 | True | 0 | c2sphli | t3_lg940 | null | t1_c2sphli | t1_c2smdi3 | null | 1427752799 | 2 | t5_2fwo | null | null | null |
True | tinutinu | null | 1. mis-typing y1 as x2 in the second line
2. 'exploded' is a pointer that is 4 or 8 bytes long, 'sizeof *exploded' is the length of the struct.
3. str[0] cannot be 'a' AND 'A' at the same time. | null | 0 | 1319030717 | False | 0 | c2sphmq | t3_lg59j | null | t1_c2sphmq | t1_c2spgzp | null | 1427752799 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | Moreover, it is not very hard to reimplement direct access to video memory. Library like SDL can provide raw access in a few lines of code, using any bitmap depth you want (including palette mode), without requiring any voodoo setup from the DOS era. Last but not least, your code will even be portable accross a whole b... | null | 0 | 1319030755 | False | 0 | c2sphrr | t3_lh7x0 | null | t1_c2sphrr | t1_c2sp4fk | null | 1427752801 | 7 | t5_2fwo | null | null | null |
True | zsakuL | null | So func langs are highly underrated by non-language nerds in their novelty and subjective excitement? | null | 0 | 1319030760 | False | 0 | c2sphsl | t3_lh1ly | null | t1_c2sphsl | t1_c2spam6 | null | 1427752801 | 1 | t5_2fwo | null | null | null |
True | KingoftheBrits | null | Hah holy shit. I remember those. Years ago, I took one of his demo programs, changed a few values so that it displayed the name of a warez channel I hung out in, and got myself into the inner circle by becoming the group coder. Never did anything else except leech "fat 0dayz".
Ah the memories. | null | 0 | 1319030833 | False | 0 | c2spi1s | t3_lgwpf | null | t1_c2spi1s | t1_c2spbyh | null | 1427752805 | 5 | t5_2fwo | null | null | null |
True | chengiz | null | And if you dont care about the links, want it as one book:
pdftk gpbb{"",intr,0,pt1,{1..22},pt2,{23..70},aftr,indx}.pdf cat output gpbb-all.pdf | null | 0 | 1319030872 | False | 0 | c2spi6f | t3_lgwpf | null | t1_c2spi6f | t1_c2sozze | null | 1428191988 | 10 | t5_2fwo | null | null | null |
True | elperroborrachotoo | null | > Details which do not include the details you are now obsessing over.
Uh... knowing sizeof(int) is *relevant* for the answer that is marked "correct". | null | 0 | 1319030904 | False | 0 | c2spibg | t3_lgfp0 | null | t1_c2spibg | t1_c2spb1m | null | 1427752808 | 2 | t5_2fwo | null | null | null |
True | MarshallBanana | null | Indeed. An "it is not defined by the standard!" is not the useful answer. The useful answer is knowing that in practice it is 4, and proceeding on that assumption. | null | 0 | 1319031009 | False | 0 | c2spipz | t3_lgfp0 | null | t1_c2spipz | t1_c2spibg | null | 1427752816 | -1 | t5_2fwo | null | null | null |
True | killerstorm | null | > As I see it, that's exactly the reason why implicit parallelism is impossible in general
I don't think so. Parallelism is a form of optimization, the goal is to get result faster by running it on many computation cores. We can link it to speculative, out-of-order execution.
Consider a situation where compiler wi... | null | 0 | 1319031057 | False | 0 | c2spiwb | t3_lh1ly | null | t1_c2spiwb | t1_c2sp7s4 | null | 1427752818 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1319031113 | False | 0 | c2spj37 | t3_lg59j | null | t1_c2spj37 | t1_c2spdxn | null | 1427752820 | 3 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1319031143 | True | 0 | c2spj6w | t3_lg59j | null | t1_c2spj6w | t1_c2sphmq | null | 1427752821 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1319031262 | False | 0 | c2spjm2 | t3_lg940 | null | t1_c2spjm2 | t1_c2si8zl | null | 1427752826 | 3 | t5_2fwo | null | null | null |
True | zhivago | null | It's necessary in order for char a[3][4]; a[i][j] to work.
a[0] is a char[4], so a + i is a pointer to char[4], which is written char (*)[4].
Being a char (*)[4], pointer arithmetic is in terms of char[4]s which means
that a + i points you at the right char[4], which evaluates to a char *, and
does the... | null | 0 | 1319031277 | False | 0 | c2spjof | t3_lgfp0 | null | t1_c2spjof | t1_c2sniem | null | 1427752826 | 1 | t5_2fwo | null | null | null |
True | hoserman | null | Noob question: what are the pros/cons of doing this in Processing.js vs Canvas? | null | 0 | 1319031286 | False | 0 | c2spjpk | t3_lfvr3 | null | t1_c2spjpk | t1_c2sfcc8 | null | 1427752826 | 1 | t5_2fwo | null | null | null |
True | Gotebe | null | IMHO, MISRA rules are actually quite god, and not really constraining either. A lot of it is just common sense. People do all sort of crap with C, and there's really no need. | null | 0 | 1319031294 | False | 0 | c2spjqf | t3_lgmfx | null | t1_c2spjqf | t3_lgmfx | null | 1427752826 | 3 | t5_2fwo | null | null | null |
True | robkinyon | null | 1. Ah. Wow. This is why swap() macros/functions are good things.
2. Ok. That makes sense.
3. The expression is always true, not false. But, yes, it's probably not what was intended.
These classes of mistakes, for the record, are a big reason of why I don't code in C anymore. It's just too easy to make them. | null | 0 | 1319031331 | False | 0 | c2spjvc | t3_lg59j | null | t1_c2spjvc | t1_c2sphmq | null | 1427752828 | 2 | t5_2fwo | null | null | null |
True | Koreija | null | > The expression is always false
This expression is always true. ;) ( not _ or not _ ) =(De Morgan)= not ( _ and _ ) = not ( false ) = true. | null | 0 | 1319031332 | False | 0 | c2spjvn | t3_lg59j | null | t1_c2spjvn | t1_c2spdxn | null | 1427752828 | 2 | t5_2fwo | null | null | null |
True | zhivago | null | It tend to bite you in the arse at about 3am on a Saturday morning after you've been driving heavily.
It's not about the frequency of these problems, but rather that they're insidious and extremely hard to spot, particularly if your mental model of C is the wrong mental model that lead you to introduce them in the fir... | null | 0 | 1319031382 | False | 0 | c2spk2i | t3_lgfp0 | null | t1_c2spk2i | t1_c2sjn6o | null | 1427752831 | 1 | t5_2fwo | null | null | null |
True | JamesM_ | null | Hi,
So, I'm an LLVM developer so perhaps this is more obvious to me, but llvm-as isn't LLVM's machine code assembler. That's actually llvm-mc. llvm-as takes texual LLVM IL (intermediate language) and transforms it into a binary bitcode format. Not machine code.
llvm-mc is a very poor environment for testing assembly ... | null | 0 | 1319031391 | False | 0 | c2spk3j | t3_le4h4 | null | t1_c2spk3j | t1_c2sp7vh | null | 1427752831 | 2 | t5_2fwo | null | null | null |
True | drepnir | null | What language do you use where you can avoid copy-paste errors like 1 and logical errors like 3? | null | 0 | 1319031572 | False | 0 | c2spkre | t3_lg59j | null | t1_c2spkre | t1_c2spjvc | null | 1427752839 | 3 | t5_2fwo | null | null | null |
True | Andrey_Karpov_N | null | Fixed. :) | null | 0 | 1319031572 | False | 0 | c2spkrf | t3_lg59j | null | t1_c2spkrf | t1_c2spjvn | null | 1427752839 | 1 | t5_2fwo | null | null | null |
True | zhivago | null | It's a viral meme.
If you tell people "pointers are hard" just before you start teaching them, they have that expectation and find it accordingly hard.
Then, when they go on to teach, they remember how hard it was and tell the next victim "pointers are hard".
The fact is that pointers are extremely trivial.
A point... | null | 0 | 1319031585 | False | 0 | c2spkt9 | t3_lgfp0 | null | t1_c2spkt9 | t1_c2skd1j | null | 1427752839 | 2 | t5_2fwo | null | null | null |
True | nothis | null | Weeee, I feel so efficient. | null | 0 | 1319031588 | False | 0 | c2spkto | t3_lgwpf | null | t1_c2spkto | t1_c2sos78 | null | 1427752839 | 2 | t5_2fwo | null | null | null |
True | treerex | null | Though (3) is not unique to C --- that kind of logic bug can appear in any language. | null | 0 | 1319031648 | False | 0 | c2spl1v | t3_lg59j | null | t1_c2spl1v | t1_c2spjvc | null | 1427752851 | 3 | t5_2fwo | null | null | null |
True | Andrey_Karpov_N | null | Yes. Hurry to comment. Fix. | null | 0 | 1319031688 | False | 0 | c2spl7h | t3_lg59j | null | t1_c2spl7h | t1_c2spj37 | null | 1427752844 | 1 | t5_2fwo | null | null | null |
True | zhivago | null | mytype* p;
p = NULL;
printf("p = %p\n", p);
printf("*p = %p\n", *p);
This code has undefined behavior unless p is type compatible with a void pointer (which means char pointer and its derivations, but nothing else).
The second program clearly involves undefined behavior.
Note also that there are no s... | null | 0 | 1319031697 | True | 0 | c2spl8t | t3_lgfp0 | null | t1_c2spl8t | t1_c2sk7oz | null | 1427752848 | 1 | t5_2fwo | null | null | null |
True | optomas | null | Just saw this for the first time yesterday as well. Is it new? | null | 0 | 1319031707 | False | 0 | c2spl9y | t3_lh8ss | null | t1_c2spl9y | t1_c2solir | null | 1427752848 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | Well, the "value" of the array are these three things: the start, the element size, and the length. Element size is captured by the type system. Proper programming languages pass both remaining values into functions when you "pass an array as a parameter". C only passes the pointer to the start, it sucks. | null | 0 | 1319031748 | False | 0 | c2sples | t3_lgfp0 | null | t1_c2sples | t1_c2sofz8 | null | 1427752856 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | I love how he goes out of his way to insult Computer Science while, at the same time, puffing up his chest with his own accomplishments so as to feel justified.
Although he really shouldn't have to. The guy is shipping a 64-bit operating system for crying out loud. | null | 0 | 1319031784 | False | 0 | c2spljc | t3_lhefd | null | t1_c2spljc | t3_lhefd | null | 1427752851 | 50 | t5_2fwo | null | null | null |
True | skulgnome | null | What use is a constant function pointer? What weaknesses apply to non-constant function pointers that don't apply to an array of constant function pointers, referenced by index? | null | 0 | 1319031814 | False | 0 | c2splne | t3_lgmfx | null | t1_c2splne | t3_lgmfx | null | 1427752853 | 1 | t5_2fwo | null | null | null |
True | rajagopalan85 | null | in the method listdir() , you are returning a local variable of that function result() don´t you see any problems because of this , returning a local variable that goes out of scope when the function ends ? | null | 0 | 1319031858 | False | 0 | c2spltp | t3_lfl0o | null | t1_c2spltp | t3_lfl0o | null | 1427752856 | 1 | t5_2fwo | null | null | null |
True | Andrey_Karpov_N | null | swap() macros is BAD TO.
ReactOS Project:
#define SWAP(a,b,c) c = a;\
a = b;\
a = c
...
BOOL FASTCALL
IntEngGradientFillTriangle(...)
{
...
SWAP(v2,v3,t);
...
}
[V519](http://www.viva64.com/en/d/0108/) The 'v2' variable is ... | null | 0 | 1319031933 | False | 0 | c2spm4t | t3_lg59j | null | t1_c2spm4t | t1_c2spjvc | null | 1427752861 | 1 | t5_2fwo | null | null | null |
True | zhivago | null | You cannot; it is
(An integer constant expression with the value 0), or (such an expression cast to type void *), ... | null | 0 | 1319031975 | False | 0 | c2spmb3 | t3_lgfp0 | null | t1_c2spmb3 | t1_c2sozkd | null | 1427752862 | 1 | t5_2fwo | null | null | null |
True | julesjacobs | null | How would you write that? | null | 0 | 1319032001 | False | 0 | c2spmfb | t3_lh1ly | null | t1_c2spmfb | t1_c2spar2 | null | 1427752863 | 3 | t5_2fwo | null | null | null |
True | Koreija | null | It's effective, not efficient. The nested globbing in wget above is nice - don't know, if curl has this feature.
Edit: wait, that's bash not wget | null | 0 | 1319032038 | True | 0 | c2spmka | t3_lgwpf | null | t1_c2spmka | t1_c2spkto | null | 1427752864 | 2 | t5_2fwo | null | null | null |
True | robkinyon | null | Perl, though Ruby and Python offer equivalent facilities (as to many other languages).
1. Swapping is done without temp variables. ($x1, $x2) = ($x2, $x1);
2. We don't have pointers or do memory management. Problem solved.
3. The intent of that code looks to be equivalent to
if ( $str !~ /^[Aa]/ )
A poi... | null | 0 | 1319032069 | False | 0 | c2spmof | t3_lg59j | null | t1_c2spmof | t1_c2spkre | null | 1427752866 | 1 | t5_2fwo | null | null | null |
True | pointlessness | null | >Last revision: **June, 2007** | null | 0 | 1319032072 | False | 0 | c2spmoy | t3_lh8n8 | null | t1_c2spmoy | t3_lh8n8 | null | 1427752866 | 13 | t5_2fwo | null | null | null |
True | zhivago | null | No. This has nothing to do with 'decay'.
This has to do with an array type in a formal parameter list actually being the type of a pointer to an element of the array.
A prototype of
void foo(double *x);
is correct with that definition, for example | null | 0 | 1319032125 | False | 0 | c2spmwy | t3_lgfp0 | null | t1_c2spmwy | t1_c2spgls | null | 1427752868 | 4 | t5_2fwo | null | null | null |
True | flamingspinach_ | null | I've been to this guy's website a couple times - never had the courage to try out his operating system, even on a VM, though. Glad to hear he's still going at it. | null | 0 | 1319032128 | False | 0 | c2spmxk | t3_lhefd | null | t1_c2spmxk | t3_lhefd | null | 1427752868 | 11 | t5_2fwo | null | null | null |
True | robkinyon | null | True, but Perl allows you to write code in such a way that logic errors are harder to achieve. For example, the code in question would have been written as follows in Perl:
if ( $str !~ /^a/i )
Not only is the intent clearer (if the string's first character is not 'a' in any case), but the logic error is avoided ... | null | 0 | 1319032158 | False | 0 | c2spn1v | t3_lg59j | null | t1_c2spn1v | t1_c2spl1v | null | 1427752869 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | Incredible, yet I don't understand the point of it. Hasn't he just reinvented the wheel?
>It never executes code I did not write except a couple BIOS calls
during boot
Why? There are plenty of open source snippets of code out there which are presumably 100% optimised and perfect for use. Why spend x amount of tim... | null | 0 | 1319032166 | False | 0 | c2spn2z | t3_lhefd | null | t1_c2spn2z | t3_lhefd | null | 1427752870 | 8 | t5_2fwo | null | null | null |
True | robvas | null | Let me start by saying nice project.
> It requires a 64-bit x86_64 CPU and 512+ Megs of RAM.
> It does not have GPU acceleration, so I limit it to 640x480
> 16 color graphics.
Why didn't you use something like VESA so you could at least have 256 (or more) colors? I'm sure it's in line with the C64 but it wou... | null | 0 | 1319032195 | False | 0 | c2spn78 | t3_lhefd | null | t1_c2spn78 | t3_lhefd | null | 1427752870 | 18 | t5_2fwo | null | null | null |
True | Ozwaldo | null | oh wow, you're right. It was front to back, with a "global edge list" maintained to check new polygons against and discard if they were entirely obscured. Interesting.
Also, a Z Buffer *was* used, but only for rendering the characters into the scene; the map itself was rendered using the BSP and global edge list stu... | null | 0 | 1319032243 | False | 0 | c2spndr | t3_lgwpf | null | t1_c2spndr | t1_c2snywq | null | 1427752873 | 3 | t5_2fwo | null | null | null |
True | skocznymroczny | null | what exactly is outdated in OpenGL documentation? It's a documentation, not a tutorial. Also, you have the specification too to clear up issues. | null | 0 | 1319032260 | False | 0 | c2spng8 | t3_lh7x0 | null | t1_c2spng8 | t1_c2soiln | null | 1427752874 | -4 | t5_2fwo | null | null | null |
True | evgred | null | Bug repport: http://code.google.com/p/chromium/issues/detail?id=100213 | null | 0 | 1319032282 | False | 0 | c2spnjp | t3_lhfji | null | t1_c2spnjp | t3_lhfji | null | 1427752875 | 7 | t5_2fwo | null | null | null |
True | Ozwaldo | null | actually i was wrong, it rendered front to back with a global edge list being maintained to check new polygons against and discard if they were entirely obscured. | null | 0 | 1319032330 | False | 0 | c2spnqf | t3_lgwpf | null | t1_c2spnqf | t1_c2snf44 | null | 1427752878 | 2 | t5_2fwo | null | null | null |
True | pandion | null | Since it was more fun than real work I decided to stick all the files together and remove the chapter links:
http://www.4shared.com/document/u0yjofdh/graphicsProgrammingBlackBook.html
Side note: Is there a better free file sharing site?
EDIT - Maybe this will work better for some people: http://www.mediafire.com/?v3... | null | 0 | 1319032344 | True | 0 | c2spnt1 | t3_lgwpf | null | t1_c2spnt1 | t3_lgwpf | null | 1427752878 | 7 | t5_2fwo | null | null | null |
True | delta4zero | null | Stopped reading here:
> Next, load up a text editor (I recommend Textmate, but you can also using emacs or if you *really* have to vim)
| null | 0 | 1319032345 | False | 0 | c2spnt6 | t3_lfrt9 | null | t1_c2spnt6 | t3_lfrt9 | null | 1427752878 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | Check his comments. TrivialSolutions is a weirdo. | null | 0 | 1319032368 | False | 0 | c2spnwg | t3_lhefd | null | t1_c2spnwg | t3_lhefd | null | 1427752879 | 21 | t5_2fwo | null | null | null |
True | shevegen | null | My gripe is, while impressive, it lacks BEAUTY.
Linux has no beauty either, true, but still. It kind of seems as if OS are nothing beautiful ... and this makes me sad. | null | 0 | 1319032372 | False | 0 | c2spnwz | t3_lhefd | null | t1_c2spnwz | t3_lhefd | null | 1427752880 | -4 | t5_2fwo | null | null | null |
True | seydar | null | my dad's foolproof problem solving method:
1. stop thinking
2. draw a picture
3. rtfi
he has been saying rtfi to me my entire life (like since i started speaking), and it was only when i started programming that i learned what it meant. my dad: boss. | null | 0 | 1319032485 | False | 0 | c2spodd | t3_lh3av | null | t1_c2spodd | t3_lh3av | null | 1427752885 | 3 | t5_2fwo | null | null | null |
True | thenickdude | null | I can't imagine how you could justify working "full-time for 8.2 years" on a project like this. How're you going to pay your bills during that timeperiod? | null | 0 | 1319032569 | False | 0 | c2spopv | t3_lhefd | null | t1_c2spopv | t3_lhefd | null | 1427752890 | -4 | t5_2fwo | null | null | null |
True | TheSerpent | null | congratulations. nobody cares. | null | 0 | 1319032617 | False | 0 | c2spowr | t3_lhefd | null | t1_c2spowr | t3_lhefd | null | 1427752893 | -18 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1319032624 | False | 0 | c2spoxo | t3_lg940 | null | t1_c2spoxo | t1_c2snp5q | null | 1427752893 | 2 | t5_2fwo | null | null | null |
True | julesjacobs | null | You should look at Cilk and Haskell's sparks. Basically what you're proposing is to `spawn` or `par` every single expression. This doesn't work as the overheads dwarf the performance improvement of parallelization, even though Cilk's spawn and Haskell sparks are very lightweight. | null | 0 | 1319032683 | False | 0 | c2spp6r | t3_lh1ly | null | t1_c2spp6r | t1_c2spiwb | null | 1427752897 | 1 | t5_2fwo | null | null | null |
True | TrivialSolutions | null | This is not LoseThos but this bear video game is what you could probably achieve with LoseThos:
http://www.youtube.com/watch?v=d1WW_Ty8T4A
That's what it's for, for what it's worth. Or because it's a couple orders of magnitude simpler than Linux if you like tinkering. | null | 0 | 1319032735 | False | 0 | c2sppeb | t3_lhefd | null | t1_c2sppeb | t3_lhefd | null | 1427752900 | 19 | t5_2fwo | null | null | null |
True | badsectoracula | null | I have a feeling that WinRT sits on top of Win32 (like everything else in Windows). | null | 0 | 1319032773 | False | 0 | c2sppj7 | t3_lh6ey | null | t1_c2sppj7 | t1_c2spha5 | null | 1427752902 | 2 | t5_2fwo | null | null | null |
True | eabraham | null | as mentioned in the TED talk linked above in some work places doodling is frowned upon. In my experience at various employers there is varying tolerances for grabbing a conference room and hashing it out on a whiteboard. Perhaps the OP usually expresses his thought using light prototyping.
> [http://www.ted.com/t... | null | 0 | 1319032780 | False | 0 | c2sppkb | t3_lh3av | null | t1_c2sppkb | t1_c2spfk0 | null | 1427752902 | 2 | t5_2fwo | null | null | null |
True | Gotebe | null | >My reasoning is that WHICH instance of a class to use is a CONFIGURATION issue.
I understand that, but...
Take any complex software and look at it's configuration UI. See how it's made in related groups, e.g. with a tabbed interface, or perhaps with a tree representing related functionality groups and their optio... | null | 0 | 1319032810 | False | 0 | c2sppod | t3_lf1px | null | t1_c2sppod | t1_c2sg36n | null | 1427752904 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1319032867 | False | 0 | c2sppwn | t3_lhefd | null | t1_c2sppwn | t3_lhefd | null | 1427752909 | -7 | t5_2fwo | null | null | null |
True | jmelesky | null | > Does anyone know of any other language+library that works similarly?
Logo? (i'm only half joking -- logo was a parentheses-free lisp)
The graphics library used in "The Haskell School of Expression" might be up your alley. It aims for similarly simple calls on primitives.
That said, i think some of the features ... | null | 0 | 1319032877 | False | 0 | c2sppy2 | t3_lgn04 | null | t1_c2sppy2 | t1_c2sm1h3 | null | 1427752907 | 1 | t5_2fwo | null | null | 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.