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 | dick_psychiatrist | null | Someone should write a virus that updates the Windows default voice to be all faggy and sarcastic.
EPIC TROLL | null | 0 | 1318988283 | False | 0 | c2slmmx | t3_lgk5y | null | t1_c2slmmx | t1_c2sl0lm | null | 1427750983 | -2 | t5_2fwo | null | null | null |
True | fapmonad | null | I fail to see any connection between being knowledgeable about computer architecture and understanding when an array is treated differently from a pointer in C. | null | 0 | 1318988312 | False | 0 | c2slmsw | t3_lgfp0 | null | t1_c2slmsw | t1_c2sigbr | null | 1427750981 | 6 | t5_2fwo | null | null | null |
True | freedoodle | null | You can get DebuggerCanvas, which is an implementation of Code Bubbles for Visual Studio for debugging:
http://msdn.microsoft.com/en-us/devlabs/debuggercanvas
I think why you aren't seeing much about Code Bubbles is because they're actively working with the Visual Studio team + possibly startup stuff.
That's how rese... | null | 0 | 1318988353 | False | 0 | c2sln0n | t3_lgecn | null | t1_c2sln0n | t1_c2sl78s | null | 1427750985 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318988703 | False | 0 | c2sloux | t3_lgfp0 | null | t1_c2sloux | t1_c2sl2o9 | null | 1427751008 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318988716 | False | 0 | c2slox5 | t3_lg940 | null | t1_c2slox5 | t1_c2sljri | null | 1427751008 | 0 | t5_2fwo | null | null | null |
True | [deleted] | null | It's not about counting it fairly, it's about counting it logically. How many windows systems there are out there running ILP is _pointless_. I can write software once and have it compile on multiple _systems_, so what difference does the installed base make? Also, I can write software that runs fine on BOTH ILP ... | null | 0 | 1318988732 | False | 0 | c2slozu | t3_lgfp0 | null | t1_c2slozu | t1_c2slkob | null | 1427751010 | -1 | t5_2fwo | null | null | null |
True | berlinbrown | null | I actually have a real copy bitches. Cost me $100 | null | 0 | 1318988769 | False | 0 | c2slp6e | t3_lgwpf | null | t1_c2slp6e | t3_lgwpf | null | 1427751013 | 11 | t5_2fwo | null | null | null |
True | DrMonkeyLove | null | Yeah, int is compiler dependent. That really needs to be given in order for this test to make sense at all. I've worked on all sorts of systems where the various C types are defined in all sorts of different ways. On one system we have, *everything* is 32 bits. char is 32 bits, int is 32 bits, short is 32 bits. It's *r... | null | 0 | 1318988801 | False | 0 | c2slpce | t3_lgfp0 | null | t1_c2slpce | t1_c2shfrc | null | 1427751016 | 2 | t5_2fwo | null | null | null |
True | DrMonkeyLove | null | The correct answer is: "If you write code like this, you should be murdered in your sleep." | null | 0 | 1318989095 | False | 0 | c2slqvh | t3_lgfp0 | null | t1_c2slqvh | t1_c2sk7oz | null | 1427751034 | 8 | t5_2fwo | null | null | null |
True | cojoco | null | Well, by the time I come around to collect you'll be long dead, so I don't think your odds are looking too flash either.
| null | 0 | 1318989201 | False | 0 | c2slrfi | t3_lgfp0 | null | t1_c2slrfi | t1_c2slcs8 | null | 1427751041 | 1 | t5_2fwo | null | null | null |
True | DrMonkeyLove | null | That's why I *love* programming languages with real arrays. I actually use Ada and C# at work, and I love that I can pass a multidimensional, variable sized array into a procedure with *no* problems whatsoever. Multidimensional, variable sized arrays in C just suck to deal with. | null | 0 | 1318989227 | False | 0 | c2slrjz | t3_lgfp0 | null | t1_c2slrjz | t1_c2sh57h | null | 1427751041 | 1 | t5_2fwo | null | null | null |
True | FeepingCreature | null | Soo. Which character format is 32-bit? Was I right about the UTF32 thing? Or is it in fact that the case that very little thought was put into the 32-bit assignment? | null | 0 | 1318989594 | False | 0 | c2sltm0 | t3_lgfp0 | null | t1_c2sltm0 | t1_c2slfsh | null | 1427751069 | -3 | t5_2fwo | null | null | null |
True | sltkr | null | Ok, let's backpedal a little, because I'm not sure we are talking about the same thing any more, and that will just lead to frustration later on.
qiwi calimed that "most [systems] use LP64", to which newgre responded that "Windows uses LLP64" (which is true) which means that a lot of systems *don't* use LP64. I think ... | null | 0 | 1318989951 | False | 0 | c2slvih | t3_lgfp0 | null | t1_c2slvih | t1_c2slozu | null | 1427751094 | 1 | t5_2fwo | null | null | null |
True | hobbified | null | > People seem to forget that "char" is short for "character".
Only in English, not in C. In C, "char" is short for "smallest native addressable unit". | null | 0 | 1318990064 | False | 0 | c2slw3m | t3_lgfp0 | null | t1_c2slw3m | t1_c2sle12 | null | 1427751101 | 6 | t5_2fwo | null | null | null |
True | hobbified | null | Neither. Character representation has absolutely nothing to do with it. | null | 0 | 1318990090 | False | 0 | c2slw7p | t3_lgfp0 | null | t1_c2slw7p | t1_c2sltm0 | null | 1427751103 | 5 | t5_2fwo | null | null | null |
True | hobbified | null | Not in question. However, that doesn't preclude sizeof(int32_t) from being less than 4. | null | 0 | 1318990195 | False | 0 | c2slwrc | t3_lgfp0 | null | t1_c2slwrc | t1_c2sk1t1 | null | 1427751111 | 3 | t5_2fwo | null | null | null |
True | meshko | null | This has nothing to do with pointers, more like gory details of C pointer arithmetic that nobody should be using today. | null | 0 | 1318990221 | False | 0 | c2slwvr | t3_lgfp0 | null | t1_c2slwvr | t3_lgfp0 | null | 1427751113 | -4 | t5_2fwo | null | null | null |
True | bobindashadows | null | Here's your problem: you haven't shown a single example where volatile accomplishes something better than other techniques. You haven't shown how volatile can improve performance, readability, expressibility - any of those things. You just said "nuh uh it might help sometimes!" *over and over* while admitting its many ... | null | 0 | 1318990268 | False | 0 | c2slx55 | t3_lgjhl | null | t1_c2slx55 | t1_c2skxq8 | null | 1427751116 | 7 | t5_2fwo | null | null | null |
True | jherod | null | How's the quality? Is the whole book worth going through or are there particular sections that are strong and the most valuable? | null | 0 | 1318990316 | False | 0 | c2slxe7 | t3_lgwpf | null | t1_c2slxe7 | t1_c2slp6e | null | 1427751119 | 4 | t5_2fwo | null | null | null |
True | sheenobu | null | I work in a Linux and Java shop so debuggercanvas doesn't help me, but it's cool to know that stuff is out there. It's why I was excited about code bubbles at first, because they were building it on top of eclipse (as much as I dislike it). Yeah I've had a taste of the research side (the part with peanuts) but I wasn't... | null | 0 | 1318990395 | False | 0 | c2slxtv | t3_lgecn | null | t1_c2slxtv | t1_c2sln0n | null | 1427751127 | 2 | t5_2fwo | null | null | null |
True | grauenwolf | null | > Trivia: The word monad is an important term in both Haskell and J, but has completely different meanings.
Ok, so what does it mean in J? | null | 0 | 1318990490 | False | 0 | c2slyc4 | t3_lg5ri | null | t1_c2slyc4 | t3_lg5ri | null | 1427751141 | 1 | t5_2fwo | null | null | null |
True | Kazurik | null | Yeah the new intellesnse for C++ is pretty nice. And I have no idea why the xml style documentation doesn't work in everything in VS. There just comments, it certainly seems like it should work for everything. | null | 0 | 1318990514 | False | 0 | c2slygl | t3_lg1xx | null | t1_c2slygl | t1_c2sgilc | null | 1427751133 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318990524 | False | 0 | c2slyil | t3_lgfp0 | null | t1_c2slyil | t1_c2skz03 | null | 1427751136 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | char in C is generally the smallest addressable unit. If a system is being designed that will realistically probably never see an actual character, but rather is meant to live and breath transformations of matrices with 32 bit elements (as many of the OMAP2 chips are) then why put in the extra circuitry required to br... | null | 0 | 1318990681 | False | 0 | c2slzby | t3_lgfp0 | null | t1_c2slzby | t1_c2sltm0 | null | 1427751146 | 3 | t5_2fwo | null | null | null |
True | antonivs | null | Given that proper tail recursion has a [technical definition](http://dl.acm.org/citation.cfm?id=277719), anything that doesn't satisfy that is improper, by definition. Also dirty, stinky, and icky!
| null | 0 | 1318990777 | False | 0 | c2slztt | t3_ld22x | null | t1_c2slztt | t1_c2sgfe6 | null | 1427751152 | 1 | t5_2fwo | null | null | null |
True | berlinbrown | null | It is a tome on many different topics.
It has been a while but I remember optimization on everything. This was my first book that really (I bought it when I was 19?) dealt with optimizations. The compiler, the x86 instructions, graphics programming algorithms. The book deals with trying to make everything faster.... | null | 0 | 1318990780 | True | 0 | c2slzu7 | t3_lgwpf | null | t1_c2slzu7 | t1_c2slxe7 | null | 1427751152 | 9 | t5_2fwo | null | null | null |
True | gobearsandchopin | null | Hold on, let me get my popcorn... | null | 0 | 1318990894 | False | 0 | c2sm0ga | t3_lgfp0 | null | t1_c2sm0ga | t1_c2sknso | null | 1428192035 | 7 | t5_2fwo | null | null | null |
True | burito | null | This book is timeless.
An example I like pulling out... it includes a method of rendering flatshaded convex polygons using memset.
The idea is you trace around the edges of the polygon, and prepare a list, of the form "start, length", for each scanline.
You then loop over the list calling memset.
Today, you may be ... | null | 0 | 1318990936 | False | 0 | c2sm0ov | t3_lgwpf | null | t1_c2sm0ov | t3_lgwpf | null | 1427751163 | 17 | t5_2fwo | null | null | null |
True | FeepingCreature | null | So I guess my issue is that the char datatype both means "ASCII character" in common use, and "smallest accessible address" by definition. Wouldn't it make more sense to define two different data types for this, like "char" and "unit", and #define char to ERROR_NOT_SUPPORTED? | null | 0 | 1318991071 | False | 0 | c2sm1g0 | t3_lgfp0 | null | t1_c2sm1g0 | t1_c2slzby | null | 1427751173 | 0 | t5_2fwo | null | null | null |
True | catcradle5 | null | I've never heard of this language before, and perhaps this is a bit off-topic, but I like how its image library works: http://docs.racket-lang.org/quick/index.html
Does anyone know of any other language+library that works similarly? (Maybe not so `Circle circle=new Circle(100, "red")` if you know what I mean). | null | 0 | 1318991075 | False | 0 | c2sm1h3 | t3_lgn04 | null | t1_c2sm1h3 | t3_lgn04 | null | 1427751173 | 5 | t5_2fwo | null | null | null |
True | fokov | null | Anyone that can't tell a developer that is only doing maintenance work isn't happy shouldn't be a manager. | null | 0 | 1318991104 | False | 0 | c2sm1mv | t3_lc36g | null | t1_c2sm1mv | t1_c2s93um | null | 1427751175 | 1 | t5_2fwo | null | null | null |
True | burito | null | Although his optimisation advice is still relevant... "Aim down the middle, not at a particular target" | null | 0 | 1318991138 | False | 0 | c2sm1sk | t3_lgwpf | null | t1_c2sm1sk | t1_c2sl3g9 | null | 1427751177 | 3 | t5_2fwo | null | null | null |
True | lawpoop | null | Man, for the longest time I was trying to remember the name of that dang website. I had no good way to uniquely describe it to people. Thanks so much for posting this link! | null | 0 | 1318991152 | False | 0 | c2sm1wo | t3_lg6ms | null | t1_c2sm1wo | t1_c2sha22 | null | 1427751179 | 2 | t5_2fwo | null | null | null |
True | doodle77 | null | It is entirely valid according to the spec. | null | 0 | 1318991323 | False | 0 | c2sm2uo | t3_lgjhl | null | t1_c2sm2uo | t1_c2sifej | null | 1427751192 | 3 | t5_2fwo | null | null | null |
True | shillbert | null | I used to use stdint types. I still do, but I used to too.
 ^RIP Mitch Hedberg | null | 0 | 1318991319 | False | 0 | c2sm2vm | t3_lgfp0 | null | t1_c2sm2vm | t1_c2sk8nw | null | 1427751192 | 2 | t5_2fwo | null | null | null |
True | sindisil | null | Sure, in the case where CHAR_BIT > 8, sizeof (int32_t) will, of necessity, be less than 4.
However, what I was responding to was curien's assertion that "even if CHAR_BIT is 8, sizeof(int32_t) *still* isn't guaranteed to be 4; it's just guaranteed to be *at*least* 4.", which is simply incorrect.
If CHAR_BIT is 8, ... | null | 0 | 1318991350 | False | 0 | c2sm303 | t3_lgfp0 | null | t1_c2sm303 | t1_c2slwrc | null | 1427751194 | 3 | t5_2fwo | null | null | null |
True | shillbert | null | Yes, and on *some* 64-bit systems, int is 8 bytes. | null | 0 | 1318991423 | False | 0 | c2sm3es | t3_lgfp0 | null | t1_c2sm3es | t1_c2sj7oy | null | 1427751198 | 1 | t5_2fwo | null | null | null |
True | shillbert | null | Objective C is not C! | null | 0 | 1318991477 | False | 0 | c2sm3q0 | t3_lgfp0 | null | t1_c2sm3q0 | t1_c2sjnwn | null | 1427751203 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | Redefining char would break ever C program ever written. Programs written to the C standard that don't take things that are not in the standard for granted should operate properly on every system that a conforming C compiler is available. You can argue that dmr made a bad choice in the name "char", but he's dead now,... | null | 0 | 1318991503 | False | 0 | c2sm3uy | t3_lgfp0 | null | t1_c2sm3uy | t1_c2sm1g0 | null | 1427751204 | 3 | t5_2fwo | null | null | null |
True | burito | null | I'd go through the whole book. There are some sections that are worth skipping entirely, for instance the bit on the CEG-DAC.
But the overall mindset is pretty astonishing. For instance, did you know that in Quake, when rendering the map it does not use a Z buffer, rather, it figures out which polygons are visible, an... | null | 0 | 1318991529 | False | 0 | c2sm40a | t3_lgwpf | null | t1_c2sm40a | t1_c2slxe7 | null | 1427751206 | 7 | t5_2fwo | null | null | null |
True | FeepingCreature | null | The redefinition wouldn't affect any platform aside from exotic ones - char would still work, it'd just have competition.
Also: go ahead, tell me that "char" wasn't intended to mean "character". IMO the definition as "smallest addressable unit" was a coincidence that got formalized. | null | 0 | 1318991799 | False | 0 | c2sm5ie | t3_lgfp0 | null | t1_c2sm5ie | t1_c2sm3uy | null | 1427751225 | -1 | t5_2fwo | null | null | null |
True | ricodued | null | Yeah, the standard comments are fine for basic methods, but I really wish regular <summary>...</summary> etc worked in C++. I mean, yeah, if you compile with /doc it'll translate that into XML documentation, but it doesn't help with intellisense. | null | 0 | 1318991962 | False | 0 | c2sm6ef | t3_lg1xx | null | t1_c2sm6ef | t1_c2slygl | null | 1427751238 | 1 | t5_2fwo | null | null | null |
True | FeepingCreature | null | Those are external enemies; stuck is an internal enemy. | null | 0 | 1318992042 | False | 0 | c2sm6w6 | t3_ld22x | null | t1_c2sm6w6 | t1_c2rqn0y | null | 1427751244 | 1 | t5_2fwo | null | null | null |
True | sltkr | null | > Saying &X[0] would also work if you substituted your array with a std::vector as well.
I don't think that's a good argument. Writing &X[0] would silently break if X was changed into a std::string or a std::deque (at least in theory -- in practice most string/deque implementation are contiguous too) instea... | null | 0 | 1318992197 | False | 0 | c2sm7rn | t3_lgfp0 | null | t1_c2sm7rn | t1_c2sj352 | null | 1427751255 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | Here's your problem: instead of explaining why "volatile" is *never* necessary under any circumstance, you've decided that being insulting will help.
Thanks for playing, though. | null | 0 | 1318992240 | False | 0 | c2sm80a | t3_lgjhl | null | t1_c2sm80a | t1_c2slx55 | null | 1427751258 | -4 | t5_2fwo | null | null | null |
True | jgotts | null | In order to be a great programmer, you need to be able to write maintainable code. Nobody cares how clever you are, or how in-depth your knowledge of the programming language is, and especially not the person who is tasked with fixing your clever, yet somehow buggy, code five to ten years down the road.
I don't argue ... | null | 0 | 1318992283 | False | 0 | c2sm88t | t3_lgfp0 | null | t1_c2sm88t | t3_lgfp0 | null | 1427751261 | 1 | t5_2fwo | null | null | null |
True | fokov | null | Too bad the target is Mars :) | null | 0 | 1318992398 | False | 0 | c2sm8x3 | t3_l9v6k | null | t1_c2sm8x3 | t1_c2r0awh | null | 1427751271 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | By redefining, I meant your suggestion to undefine it. That would screw everything. And C was designed to work on the exotic platforms also, which is why the standard is specifically written to do everything it can to avoid defining the bitwidth of char.
And yes, char was meant to mean "character". The 2 original s... | null | 0 | 1318992522 | False | 0 | c2sm9kx | t3_lgfp0 | null | t1_c2sm9kx | t1_c2sm5ie | null | 1427751278 | 1 | t5_2fwo | null | null | null |
True | acecool | null | I wish Michael would update this book to current graphics API's | null | 0 | 1318992553 | False | 0 | c2sm9qb | t3_lgwpf | null | t1_c2sm9qb | t3_lgwpf | null | 1427751281 | 6 | t5_2fwo | null | null | null |
True | MatrixFrog | null | For server side code, well-supported just means, it runs on our servers. As long as you can deploy it, who cares if the clients have even heard of the language. | null | 0 | 1318992601 | False | 0 | c2sma0z | t3_laqb0 | null | t1_c2sma0z | t1_c2rbis7 | null | 1427751285 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318992614 | False | 0 | c2sma3n | t3_lgn04 | null | t1_c2sma3n | t1_c2sm1h3 | null | 1427751286 | 1 | t5_2fwo | null | null | null |
True | -888- | null | I hear you, and I think the general point of your code is a good one. I just think it would come across better if you made it clear that mytype could be typedef'd to anything. You'd still separate those who have less experience with C/C++ from those who have a lot of this kind of knowledge (which arguably is only one a... | null | 0 | 1318992643 | False | 0 | c2sma9e | t3_lgfp0 | null | t1_c2sma9e | t1_c2skiyo | null | 1427751288 | 1 | t5_2fwo | null | null | null |
True | jbs398 | null | And this is why we should all be using types from stdint.. because this type of stuff is just stupid. Want to know how many bits are in an int32_t or uint64_t? That's right, you don't need to look it up or check if you're on the right flavor of 32 or 64-bit because it's in the specifier :-P | null | 0 | 1318992741 | False | 0 | c2smar8 | t3_lgfp0 | null | t1_c2smar8 | t1_c2skldn | null | 1427751294 | 6 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318993172 | False | 0 | c2smd76 | t3_lh1xy | null | t1_c2smd76 | t3_lh1xy | null | 1427751329 | 1 | t5_2fwo | null | null | null |
True | demosthenes02 | null | Perfect timing, I just started learning Perl a couple weeks ago, coming from 10 years of Python programming. (Just for some background, I'm a really strong Python programmer, I've been to pycon, written articles, developed enterprise applications, etc)
Here are two things that confused me the most:
Say I wanted to do ... | null | 0 | 1318993219 | False | 0 | c2smdi3 | t3_lg940 | null | t1_c2smdi3 | t3_lg940 | null | 1427751335 | 3 | t5_2fwo | null | null | null |
True | acecool | null | scary thought that the auto industry is using C for safety critical embedded systems instead of Ada, especially considering that all the car's systems are controlled by a central cpu and software | null | 0 | 1318993222 | False | 0 | c2smdiw | t3_lgmfx | null | t1_c2smdiw | t3_lgmfx | null | 1427751335 | 0 | t5_2fwo | null | null | null |
True | demosthenes02 | null | BTW, I got that example from here:
http://www.foo.be/docs/tpj/issues/vol4_2/tpj0402-0028.html
Since I couldn't find my original example. That page also mentions a few more perl traps. | null | 0 | 1318993367 | False | 0 | c2smedc | t3_lg940 | null | t1_c2smedc | t1_c2smdi3 | null | 1427751343 | 1 | t5_2fwo | null | null | null |
True | FeepingCreature | null | The point of undefining it was screwing the string handling code, which, well, is the point. There should be a data type that means "8-bit character" and there should be a data type that means "smallest addressable unit", and the first one should be called "char" and the second one not. As long as this is not done, peo... | null | 0 | 1318993504 | False | 0 | c2smf4x | t3_lgfp0 | null | t1_c2smf4x | t1_c2sm9kx | null | 1427751353 | 1 | t5_2fwo | null | null | null |
True | grauenwolf | null | A fun one is sending non-transational messages to transaction queue or vice-versa. It won't throw an exception, it will just silently discard messages. Took me a long time to figure out that one. | null | 0 | 1318993530 | False | 0 | c2smfb7 | t3_lff3n | null | t1_c2smfb7 | t1_c2sambr | null | 1427751356 | 2 | t5_2fwo | null | null | null |
True | champeenis | null | So do I. Cost me $10 or something 10 years ago. Found it in a pile of clearance computer books somewhere. | null | 0 | 1318993590 | False | 0 | c2smfnd | t3_lgwpf | null | t1_c2smfnd | t1_c2slp6e | null | 1427751359 | 3 | t5_2fwo | null | null | null |
True | grauenwolf | null | Email for programs.
* One or more programs shove messages into a queue.
* One or more programs read messages from a queue.
* If the message queue server or receiving program go down no worries. The messages just stack up on the sending side until the server is restored and then everything just works. (Assuming you d... | null | 0 | 1318993661 | False | 0 | c2smg12 | t3_lff3n | null | t1_c2smg12 | t1_c2se3qk | null | 1427751363 | 2 | t5_2fwo | null | null | null |
True | kirakun | null | It's obviously sztomi is just hijacking the thread to farm karma. | null | 0 | 1318993688 | False | 0 | c2smg7f | t3_lgfp0 | null | t1_c2smg7f | t1_c2sigbr | null | 1427751366 | -8 | t5_2fwo | null | null | null |
True | moonrocks | null | Is #define'ing NULL as a void * with the (magic) value 0 not part of the standard? | null | 0 | 1318993760 | False | 0 | c2smgm6 | t3_lgfp0 | null | t1_c2smgm6 | t1_c2slkih | null | 1427751371 | 2 | t5_2fwo | null | null | null |
True | ewiethoff | null | > It would have been just fine to use array.length() in Python if Python had always been as object-oriented as it is now.
I think you're missing the point of special methods and why in Python their names are so ugly with underbars. It's to tell us that they are invoked automagically by special syntax, unlike method... | null | 0 | 1318993769 | False | 0 | c2smgoc | t3_lg940 | null | t1_c2smgoc | t1_c2slox5 | null | 1427751372 | 2 | t5_2fwo | null | null | null |
True | acecool | null | In the "Larger Projects" section they request:
>Write a Common Lisp compatibility layer (same functionality, but not all the core language features that would make this extremely difficult; for example: keep immutable pairs)
and
>Write a Clojure compatibility layer
why dont they just include CL and Clojure in ... | null | 0 | 1318993870 | True | 0 | c2smh8i | t3_lgn04 | null | t1_c2smh8i | t3_lgn04 | null | 1427751386 | 4 | t5_2fwo | null | null | null |
True | [deleted] | null | Check out NServiceBus. | null | 0 | 1318993936 | False | 0 | c2smho7 | t3_lff3n | null | t1_c2smho7 | t3_lff3n | null | 1427751384 | 1 | t5_2fwo | null | null | null |
True | Ozwaldo | null | >renders them all fitting them together perfectly
sorts them, back to front | null | 0 | 1318994174 | False | 0 | c2smiyf | t3_lgwpf | null | t1_c2smiyf | t1_c2sm40a | null | 1427751402 | -1 | t5_2fwo | null | null | null |
True | fuckyouIWNet | null | I absolutely love this book. I owned this back in the day and read the fuck out of this book. It actually got used and referenced so much it fell apart. I haven't done graphics programming in many years but now that I know it is a free download I am grabbing it and re-reading it. | null | 0 | 1318994277 | False | 0 | c2smjl8 | t3_lgwpf | null | t1_c2smjl8 | t3_lgwpf | null | 1427751410 | 3 | t5_2fwo | null | null | null |
True | skew | null | Or the nice simple [uglymemo](http://hackage.haskell.org/packages/archive/uglymemo/0.1.0.1/doc/html/src/Data-MemoUgly.html#memoIO) package. That one's not even hard to write yourself. | null | 0 | 1318994329 | False | 0 | c2smjvg | t3_lfm1k | null | t1_c2smjvg | t1_c2sg0vs | null | 1427751413 | 1 | t5_2fwo | null | null | null |
True | fuckyouIWNet | null | I would say it is the best programming book I have ever bought/read. Packed with good knowledge cover to cover. | null | 0 | 1318994338 | False | 0 | c2smjwp | t3_lgwpf | null | t1_c2smjwp | t1_c2slxe7 | null | 1427751424 | 3 | t5_2fwo | null | null | null |
True | Contero | null | > I don't think that's a good argument.
Argument for what? I was pointing out that it happened to work for either. Yes, of course changing your types willy nilly is going to introduce bugs.
Deque and Vector have similar interfaces and different semantics, and if I replace my vectors with deques everywhere in my co... | null | 0 | 1318994352 | False | 0 | c2smjz5 | t3_lgfp0 | null | t1_c2smjz5 | t1_c2sm7rn | null | 1427751415 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318994371 | True | 0 | c2smk2p | t3_lgn04 | null | t1_c2smk2p | t1_c2smh8i | null | 1427751418 | 8 | t5_2fwo | null | null | null |
True | AReallyGoodName | null | That example he gave where sizeof(int) = 1 on TI DSPs was such an example.
Remember int is always at least 16bits (with no maximum size). [Ansi standard - scroll down to minimum sizes for relevant info](http://www.ericgiguere.com/articles/ansi-c-summary.html)
The TI c56x DSPs don't have 8bit chars. | null | 0 | 1318994397 | False | 0 | c2smkac | t3_lgfp0 | null | t1_c2smkac | t1_c2sk2di | null | 1427751420 | 1 | t5_2fwo | null | null | null |
True | Ozwaldo | null | actually all the reasons you've both listed are valid uses of volatile | null | 0 | 1318994440 | False | 0 | c2smkid | t3_lgjhl | null | t1_c2smkid | t1_c2sjnlz | null | 1427751430 | 2 | t5_2fwo | null | null | null |
True | acecool | null | >Does anyone know of any other language+library that works similarly?
Ive been hearing a lot of Common Lisp users rave about [QuickLisp](http://www.quicklisp.org/beta/) which is supposed to be like a package manager for Lisp libraries/dependencies. Im not sure exactly why its supposed to be so good | null | 0 | 1318994521 | False | 0 | c2smkza | t3_lgn04 | null | t1_c2smkza | t1_c2sm1h3 | null | 1427751431 | -3 | t5_2fwo | null | null | null |
True | sltkr | null | I inferred that you suggested that writing "&X[0]" instead of "X" is good because it allows you to substitute an std::vector for an array without further code modifications. If you didn't intend to imply that, then never mind; otherwise, what isn't clear about my argument against this? | null | 0 | 1318994535 | False | 0 | c2sml1m | t3_lgfp0 | null | t1_c2sml1m | t1_c2smjz5 | null | 1427751432 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | Shit, was it that bitchy? | null | 0 | 1318994621 | False | 0 | c2smlk6 | t3_lgfp0 | null | t1_c2smlk6 | t1_c2sm0ga | null | 1427751437 | 1 | t5_2fwo | null | null | null |
True | johnny_black | null | K slice points at his victims. | null | 0 | 1318994644 | False | 0 | c2smlob | t3_lgfp0 | null | t1_c2smlob | t3_lgfp0 | null | 1427751439 | 1 | t5_2fwo | null | null | null |
True | Smallpaul | null | http://www.reddit.com/r/programming/comments/lfm1k/why_not_haskell/c2sk50x
| null | 0 | 1318994687 | False | 0 | c2smlx5 | t3_lfm1k | null | t1_c2smlx5 | t1_c2sl90m | null | 1427751442 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318994695 | False | 0 | c2smlzc | t3_lg940 | null | t1_c2smlzc | t1_c2smgoc | null | 1427751443 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318994720 | False | 0 | c2smm4f | t3_lg940 | null | t1_c2smm4f | t1_c2smgoc | null | 1427751445 | 2 | t5_2fwo | null | null | null |
True | vocalbit | null | I have heard of this language before and have always been fascinated by how compact the code for a simple web server is:
#lang web-server/insta
;; A "hello world" web server
(define (start request)
(response/xexpr
'(html
(body "Hello World"))))
Unfortunately I haven't found the time ... | null | 0 | 1318994729 | True | 0 | c2smm6h | t3_lgn04 | null | t1_c2smm6h | t1_c2sm1h3 | null | 1427751445 | 3 | t5_2fwo | null | null | null |
True | [deleted] | null | It may be confusing, but it's left for a reason. There is C code out there running today that was written in the 60's. I just put some huge C libraries in a massively horizontally scalable web service that had a copyright date in the mid 80s on it. Well written code doesn't age. It doesn't rot. That code will prob... | null | 0 | 1318994814 | False | 0 | c2smmoj | t3_lgfp0 | null | t1_c2smmoj | t1_c2smf4x | null | 1427751451 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | Basically a procedure with a single argument. Some people make a distinction on whether or not the procedure (affectionately called a verb) can be higher order. | null | 0 | 1318994861 | False | 0 | c2smmyx | t3_lg5ri | null | t1_c2smmyx | t1_c2slyc4 | null | 1427751454 | 3 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318994879 | False | 0 | c2smn2e | t3_lgn04 | null | t1_c2smn2e | t1_c2sm1h3 | null | 1427751456 | 1 | t5_2fwo | null | null | null |
True | szczys | null | May I recommend [the pointer fun video](http://www.youtube.com/watch?v=UvoHwFvAvQE)
edit: having just watched it again, that pointer video is worthless for this application. | null | 0 | 1318994913 | True | 0 | c2smn9e | t3_lgfp0 | null | t1_c2smn9e | t3_lgfp0 | null | 1428192030 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | At least on VC Express the article is correct.
| null | 0 | 1318994942 | False | 0 | c2smnfc | t3_lgfp0 | null | t1_c2smnfc | t1_c2skzum | null | 1427751461 | -1 | t5_2fwo | null | null | null |
True | acecool | null | >Is this mostly and academic language or do people use it in the industry?
the [wikipedia/Racket](http://en.wikipedia.org/wiki/Racket_%28programming_language%29) listing indicates DrScheme/Racket was started by Matthias Felleisen, the co-author of the "Little Lisper" book for his students to learn Scheme. | null | 0 | 1318995131 | False | 0 | c2smohj | t3_lgn04 | null | t1_c2smohj | t1_c2smm6h | null | 1427751475 | 4 | t5_2fwo | null | null | null |
True | generalT | null | why on earth would you want to do this? | null | 0 | 1318995169 | False | 0 | c2smooi | t3_lg661 | null | t1_c2smooi | t3_lg661 | null | 1427751489 | 0 | t5_2fwo | null | null | null |
True | w_daher | null | http://www.reddit.com/r/programming/comments/lgfp0/so_you_think_you_know_c_the_ksplice_pointer/c2sjjdn | null | 0 | 1318995217 | False | 0 | c2smoxu | t3_lgfp0 | null | t1_c2smoxu | t1_c2sjf3c | null | 1427751492 | 1 | t5_2fwo | null | null | null |
True | bobindashadows | null | I'll explain very simply why it's not necessary: volatile, in the context of concurrency, comes close to sharing a variable across threads. Traditional concurrency primitives, such as locks, monitors, semaphores, etc. all enable sharing of a variable across threads for a number of usage patterns with different needs.
... | null | 0 | 1318995836 | False | 0 | c2smsem | t3_lgjhl | null | t1_c2smsem | t1_c2sm80a | null | 1427751525 | 3 | t5_2fwo | null | null | null |
True | dobryak | null | > Is this mostly and academic language or do people use it in the industry?
Yes and yes, there are companies like Untyped which earn money with it. | null | 0 | 1318995883 | False | 0 | c2smsng | t3_lgn04 | null | t1_c2smsng | t1_c2smm6h | null | 1427751528 | 5 | t5_2fwo | null | null | null |
True | Laziness | null | I should've said without typedefs. But you get the points anyway. | null | 0 | 1318995996 | False | 0 | c2smt9c | t3_lgfp0 | null | t1_c2smt9c | t1_c2sl48n | null | 1427751542 | 1 | t5_2fwo | null | null | null |
True | psygnisfive | null | http://www.reddit.com/r/programming/comments/lfm1k/why_not_haskell/c2skw4b | null | 0 | 1318996287 | False | 0 | c2smut8 | t3_lfm1k | null | t1_c2smut8 | t1_c2smlx5 | null | 1427751557 | 1 | t5_2fwo | null | null | null |
True | manjunaths | null | Oh come on, this is an invalid observation which has been voted to the top. You learn them pretty early in Haskell books and they are not something out of quantum mechanics.
| null | 0 | 1318996387 | False | 0 | c2smvdt | t3_lfm1k | null | t1_c2smvdt | t1_c2sdvkq | null | 1427751564 | 3 | t5_2fwo | null | null | null |
True | bucknuggets | null | I had to wade through a lagoon of UML up to my armpits when I worked as a "systems architect" at a java consulting firm ten years ago.
God, I hated that shit.
These days we code in python and mostly only use use cases, ERDs (tons of database work), and simple data flow diagrams. Life is far better now. | null | 0 | 1318996399 | False | 0 | c2smvg8 | t3_lg6ms | null | t1_c2smvg8 | t1_c2skvih | null | 1427751572 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | an interesting list....outside clojure, go, and maybe coffeescript, none of them will get any traction.
shen seems interesting, but its license is a nonstarter
i'd love to see agda take off as a "cleaned up" haskell...but the community seems microscopic | null | 0 | 1318996453 | False | 0 | c2smvri | t3_lh1ly | null | t1_c2smvri | t3_lh1ly | null | 1427751569 | 4 | t5_2fwo | null | null | null |
True | ewiethoff | null | I know you were joking about suckiness. And I was joking about Fortran. | null | 0 | 1318996561 | False | 0 | c2smwd3 | t3_lg940 | null | t1_c2smwd3 | t1_c2smlzc | null | 1427751576 | 2 | t5_2fwo | null | null | null |
True | pinebomb | null | We're using C++ on UAVs and fighter jets... | null | 0 | 1318996640 | False | 0 | c2smwte | t3_lgmfx | null | t1_c2smwte | t1_c2smdiw | null | 1427751583 | 3 | t5_2fwo | null | null | null |
True | zsakuL | null | Highly biased towards functional languages. | null | 0 | 1318996977 | False | 0 | c2smyp3 | t3_lh1ly | null | t1_c2smyp3 | t3_lh1ly | null | 1427751609 | 0 | 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.