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 | ddrt | null | 1&1 is a reseller of bluehost. | null | 0 | 1318043072 | False | 0 | c2prpmj | t3_l4b56 | null | t1_c2prpmj | t1_c2pr3oo | null | 1427702058 | 1 | t5_2fwo | null | null | null |
True | yyuyyuyiuy | null | You sound like you don't have much experience with many other languages. | null | 0 | 1318043175 | False | 0 | c2prpzs | t3_l466j | null | t1_c2prpzs | t1_c2pmq1c | null | 1427702064 | -3 | t5_2fwo | null | null | null |
True | ddrt | null | Is that a server? $25/mo is ridiculous for hosting. | null | 0 | 1318043260 | False | 0 | c2prqbp | t3_l4b56 | null | t1_c2prqbp | t1_c2preqc | null | 1427702068 | 2 | t5_2fwo | null | null | null |
True | ruinercollector | null | I agree, however, you really shouldn't be sending WMs that you don't understand. | null | 0 | 1318043286 | False | 0 | c2prqex | t3_ktv1z | null | t1_c2prqex | t1_c2n73fj | null | 1427702069 | 1 | t5_2fwo | null | null | null |
True | bobindashadows | null | If that's your position, then HATEOAS is equivalent to REST. Because I can implement everything Roy Fielding envisioned except for that single top-level resource discovery URI and all of a sudden, I'm 100% RPC and 0% REST.
Why bother with the name REST then, if you consider HATEOAS to be equivalent? It seems that HATE... | null | 0 | 1318043445 | False | 0 | c2prqzc | t3_l4l3n | null | t1_c2prqzc | t1_c2prhhw | null | 1427702076 | 2 | t5_2fwo | null | null | null |
True | yyuyyuyiuy | null | By having Actors and 'case classes'? | null | 0 | 1318043597 | False | 0 | c2prrkk | t3_l466j | null | t1_c2prrkk | t1_c2pmxze | null | 1427702084 | 0 | t5_2fwo | null | null | null |
True | Bloqhead | null | I've only done some surface research regarding cloud vs. traditional, so I don't know much. I'm a web dev that manages a dedicated server with 1 colleague and we entertained the idea of going with a cloud-based solution at one point. I don't see any immediate downsides when comparing the 2. Cloud hosting will automatic... | null | 0 | 1318043669 | True | 0 | c2prrty | t3_l4b56 | null | t1_c2prrty | t1_c2prlrw | null | 1427702088 | 2 | t5_2fwo | null | null | null |
True | Tuna-Fish2 | null | You do like twitter and embarrass yourself by having your site to go down when the traffic spikes.
... Which bothers you all the way to the bank.
No, startups really shouldn't spend one second of their time worrying about scaling until the problems hit them. It's stupid to spend time and money before you have a hit p... | null | 0 | 1318043952 | False | 0 | c2prswd | t3_l4b56 | null | t1_c2prswd | t1_c2prlcp | null | 1427702101 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | Yes it's a virtual server. | null | 0 | 1318044032 | False | 0 | c2prt7d | t3_l4b56 | null | t1_c2prt7d | t1_c2prqbp | null | 1427702105 | 1 | t5_2fwo | null | null | null |
True | iamthepants | null | Bummer -- no Reddit magic here.
He's a good sailor, afaik, but I never approved of his strategy to take that tub of a boat 50 miles offshore to "get better winds", especially when San Francisco is to the SE after the cape, and they'd just rebuilt the motor, and it just wasn't the most amazing boat ever (can't remembe... | null | 0 | 1318044037 | False | 0 | c2prt84 | t3_l4b56 | null | t1_c2prt84 | t1_c2prnfj | null | 1427702105 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | Can you point these implementations out? Realistically, there are 3 'string' types in practical use, and after doing quick skim of hackage, there aren't any realistic contenders besides:
* String
* ByteString
* Text
There are other various libraries like `smallstring`, but that one in particular is very space effi... | null | 0 | 1318044037 | True | 0 | c2prt85 | t3_l466j | null | t1_c2prt85 | t1_c2prin2 | null | 1427702105 | 3 | t5_2fwo | null | null | null |
True | experts_never_lie | null | Also, different companies have vastly different revenue/data ratios; in advertising, where each billable transaction is worth less than $0.001, we have to be *much* more conscious of serving costs than eHarmony or ZipRealty, which might take a monthly fee and then serve out of a slower-changing data stream, probably wi... | null | 0 | 1318044163 | False | 0 | c2prtoz | t3_l3dch | null | t1_c2prtoz | t1_c2pqklf | null | 1427702111 | 2 | t5_2fwo | null | null | null |
True | ruinercollector | null | >Yes, it is obvious from this code. But what if you just see class names: Program and ProgramAnalysis, and you don't know how they are related. Large programs have thousands of classes which can be related in vague way, and so when class name are informative it absolutely does not hurt.
You should be using the name... | null | 0 | 1318044169 | False | 0 | c2prtpx | t3_krzdp | null | t1_c2prtpx | t1_c2n6cla | null | 1427702111 | 1 | t5_2fwo | null | null | null |
True | bobindashadows | null | I think prettiness was the wrong word. It's about simplicity, consistency, separating the format from the resource, and separating the operation from the resource identifier (commonly the URL). So many URL schemes that follow this are pretty, but that's orthogonal. Programmatic discoverability is the ultimate benefit, ... | null | 0 | 1318044173 | False | 0 | c2prtqh | t3_l4l3n | null | t1_c2prtqh | t1_c2prj35 | null | 1427702111 | 2 | t5_2fwo | null | null | null |
True | ddrt | null | What's the benefit of that type of windows server? Why aren't you using linux? | null | 0 | 1318044266 | False | 0 | c2pru3u | t3_l4b56 | null | t1_c2pru3u | t1_c2prt7d | null | 1427702116 | 1 | t5_2fwo | null | null | null |
True | ddrt | null | This sounds like all of my customers. "Hey, I want the world but I don't want to pay anything for it. Kayyy thaaaanks" | null | 0 | 1318044328 | False | 0 | c2prubm | t3_l4b56 | null | t1_c2prubm | t3_l4b56 | null | 1427702119 | 1 | t5_2fwo | null | null | null |
True | ruinercollector | null | That article explicitly makes a short list of exceptions. "Parser" is one of them. | null | 0 | 1318044356 | False | 0 | c2pruev | t3_krzdp | null | t1_c2pruev | t1_c2mv3w6 | null | 1427702120 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318044447 | False | 0 | c2prur2 | t3_l4p6z | null | t1_c2prur2 | t3_l4p6z | null | 1427702126 | 2 | t5_2fwo | null | null | null |
True | ruinercollector | null | In languages that don't support interfaces directly, they are the same thing, just with different conventions. | null | 0 | 1318044453 | False | 0 | c2prurs | t3_krzdp | null | t1_c2prurs | t1_c2napzp | null | 1427702126 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | It's a great link but I've seen it a few times already. | null | 0 | 1318044488 | False | 0 | c2pruwj | t3_l4p6z | null | t1_c2pruwj | t3_l4p6z | null | 1427702128 | -3 | t5_2fwo | null | null | null |
True | ruinercollector | null | Nitpick: ~ means "approximately" | null | 0 | 1318044489 | False | 0 | c2pruwv | t3_krzdp | null | t1_c2pruwv | t1_c2mufae | null | 1427702128 | 1 | t5_2fwo | null | null | null |
True | StrangeWill | null | That was a really fun exercise, I don't do much C/C++, but it was fun to think about optimization at this level and what the compiler could try to figure out (I also sided with GCC being able to figure a lot out being as I hear good things about C compilers now). | null | 0 | 1318044551 | False | 0 | c2prv5n | t3_l4p6z | null | t1_c2prv5n | t3_l4p6z | null | 1427702131 | 65 | t5_2fwo | null | null | null |
True | Chiraa | null | Perhaps I don't understand jQuery fully, but why are you calling this on an object instead of something in the DOM? Wasn't the whole point of the article that you want to avoid DOM lookups? | null | 0 | 1318044606 | False | 0 | c2prvcw | t3_l4cv3 | null | t1_c2prvcw | t1_c2pom15 | null | 1427702133 | 4 | t5_2fwo | null | null | null |
True | ruinercollector | null | Apple, but in fairness, the platform's "huge success" has very little to do with the SDK/API/Language. | null | 0 | 1318044657 | False | 0 | c2prvk1 | t3_krzdp | null | t1_c2prvk1 | t1_c2mvwpd | null | 1427702136 | 1 | t5_2fwo | null | null | null |
True | Instantiation | null | My favorite part was changing my answers to the right ones after the quiz corrected me.
Err, not that I got any of them wrong. | null | 0 | 1318044665 | False | 0 | c2prvlh | t3_l4p6z | null | t1_c2prvlh | t3_l4p6z | null | 1427702137 | 103 | t5_2fwo | null | null | null |
True | elder_george | null | reading comprehension FAIL =( | null | 0 | 1318044733 | False | 0 | c2prvtp | t3_krzdp | null | t1_c2prvtp | t1_c2pruwv | null | 1427702140 | 1 | t5_2fwo | null | null | null |
True | dillpiccolol | null | Yea, pretty much lol | null | 0 | 1318044747 | False | 0 | c2prvvh | t3_l4b56 | null | t1_c2prvvh | t1_c2ppnl5 | null | 1427702140 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | I actually just submitted it to see the comments on an existing submission. I was surprised when it went through. >_< | null | 0 | 1318044752 | False | 0 | c2prvw8 | t3_l4p6z | null | t1_c2prvw8 | t1_c2pruwj | null | 1427702140 | 14 | t5_2fwo | null | null | null |
True | mkawick | null | Programming is the shiz. Also, C/C++ is really the way to go because it's just above the metal and allows great flexibility and if you don't want to work in the low-level stuff, you don't need to; it's flexible to function at a level almost as high as Java/C#/Javascript/PHP in C++11. You don't even need to worry about ... | null | 0 | 1318044807 | False | 0 | c2prw3o | t3_l4p6z | null | t1_c2prw3o | t3_l4p6z | null | 1427702143 | 6 | t5_2fwo | null | null | null |
True | xiongchiamiov | null | I did say shared hosting; I'm not aware of any shared hosts that allow you to do things like maintain a crontab (although it's quite possible there are). Personally, I'm of the opinion that if you want that level of control, you should move to some sort of (psuedo-)dedicated machine, with shell access and responsibili... | null | 0 | 1318045120 | False | 0 | c2prx8m | t3_l4b56 | null | t1_c2prx8m | t1_c2pq6kz | null | 1427702158 | 1 | t5_2fwo | null | null | null |
True | mlahstadon | null | I've been working with Java so long I kind of take a lot of this stuff for granted (due to the runtime optimizer). It was an interesting read. | null | 0 | 1318045272 | False | 0 | c2prxs6 | t3_l4p6z | null | t1_c2prxs6 | t3_l4p6z | null | 1427702165 | 4 | t5_2fwo | null | null | null |
True | [deleted] | null | I'm not sure what you mean by "that type" of windows server. *I* don't use Linux because ASP.Net MVC 3 support isn't 100%. However Amazon does have Linux servers available for similar (usually cheaper) pricing structures so I highly recommend them as well if they suit your needs. | null | 0 | 1318045292 | False | 0 | c2prxux | t3_l4b56 | null | t1_c2prxux | t1_c2pru3u | null | 1427702166 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | no one is disputing that Text is the best solution
what we're trying to tell you is that hackage will probably always be awash in packages that use one of the other implementations. haskell users will be dealing with this problem five years from now | null | 0 | 1318045358 | False | 0 | c2pry3c | t3_l466j | null | t1_c2pry3c | t1_c2prt85 | null | 1427702169 | 2 | t5_2fwo | null | null | null |
True | ddrt | null | You answered my question: I meant "Why use windows instead of linux" | null | 0 | 1318045485 | False | 0 | c2pryj1 | t3_l4b56 | null | t1_c2pryj1 | t1_c2prxux | null | 1427702175 | 1 | t5_2fwo | null | null | null |
True | Doozer | null | Ugh, I got almost every single one wrong. I'm generally not a C or C++ developer generally but I kind of thought I had a handle on this. Now I feel really dumb! | null | 0 | 1318045532 | False | 0 | c2pryoh | t3_l4p6z | null | t1_c2pryoh | t3_l4p6z | null | 1427702178 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | It was an honest question, so I appreciate the information, but the sarcasm at the end was a bit heavy.
What I really want to know is how difficult is it to fix a scaling issue after the fact that makes it worthwhile to invest in early? | null | 0 | 1318045641 | False | 0 | c2prz1q | t3_l4b56 | null | t1_c2prz1q | t1_c2prswd | null | 1427702181 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | who cares about "what gets love". there are plenty of people using ruby productively. there's no way its a "ghetto tool" (yet). i'll take a substandard tool i can expertly wield over a awesome tool i barely know how to use any day | null | 0 | 1318045861 | False | 0 | c2przva | t3_l466j | null | t1_c2przva | t1_c2pnepg | null | 1427702193 | 2 | t5_2fwo | null | null | null |
True | wnoise | null | C89 does not require division to round towards zero -- rounding towards -infinity is also allowed (and I think preferable for the semantics it gives to %). Unfortunately C99 doesn't allow rounding towards -infinity. | null | 0 | 1318045907 | False | 0 | c2ps01j | t3_l4p6z | null | t1_c2ps01j | t3_l4p6z | null | 1427702195 | 9 | t5_2fwo | null | null | null |
True | [deleted] | null | A couple of weeks ago I wrote a quick Yesod server that needed to store a string in AWS SimpleDB, read it, do some processing and return it. IIRC correctly, I read the string as a Strict BS, did a calculation, converted to Lazy Text, did a calculation, convert to Lazy BS, did a calculation, convert to Strict BS, do a ... | null | 0 | 1318045931 | False | 0 | c2ps04s | t3_l466j | null | t1_c2ps04s | t1_c2prt85 | null | 1427702196 | 3 | t5_2fwo | null | null | null |
True | I_FAP_TO_ALL | null | So become one. It's free. | null | 0 | 1318046100 | False | 0 | c2ps0qg | t3_l4p6z | null | t1_c2ps0qg | t1_c2prur2 | null | 1427702204 | 50 | t5_2fwo | null | null | null |
True | Tiwazz | null | As one of my professors used to say "If C was good enough for the implementors of <insert_language> then it's good enough for me." | null | 0 | 1318046210 | False | 0 | c2ps15g | t3_l3mls | null | t1_c2ps15g | t1_c2pmqoj | null | 1427702210 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318046473 | True | 0 | c2ps24o | t3_l466j | null | t1_c2ps24o | t1_c2pq918 | null | 1427702222 | 8 | t5_2fwo | null | null | null |
True | Qw3rtyP0iuy | null | Thanks a lot | null | 0 | 1318046683 | False | 0 | c2ps2wn | t3_l466j | null | t1_c2ps2wn | t1_c2pmp51 | null | 1427702232 | 1 | t5_2fwo | null | null | null |
True | semarj | null | Thanks, exactly. To me, 'pretty' code or technology is simple and elegant.
I don't think GET /resource/1.json|xml is either. (i did that for a while, and it was like a huge sigh of relief when i moved away from that for my API's, everything just seemed so much nicer)
| null | 0 | 1318046793 | False | 0 | c2ps3b2 | t3_l4l3n | null | t1_c2ps3b2 | t1_c2prtqh | null | 1427702238 | 1 | t5_2fwo | null | null | null |
True | earthboundkid | null | If your friends jumped off a bridge, dividing by zero would still be undefined. | null | 0 | 1318046814 | False | 0 | c2ps3dl | t3_l3mls | null | t1_c2ps3dl | t1_c2pkw2g | null | 1427702238 | 0 | t5_2fwo | null | null | null |
True | [deleted] | null | I don't care. I personally love developing in Ruby. It just puzzles me that such a great programming languages is received so negatively. | null | 0 | 1318047467 | False | 0 | c2ps5uv | t3_l466j | null | t1_c2ps5uv | t1_c2przva | null | 1427702271 | 3 | t5_2fwo | null | null | null |
True | Orca- | null | I would have thought shifting rather than adding would have been the better optimization...guess not. | null | 0 | 1318047615 | False | 0 | c2ps6ft | t3_l4p6z | null | t1_c2ps6ft | t3_l4p6z | null | 1427702278 | 24 | t5_2fwo | null | null | null |
True | psygnisfive | null | Any time someone poses a question like this, you should immediately expect it to be mostly a trick question, and answer "counterintuitively". I don't know hardly any C and no C++ at all, but I expected this to be one of those "I bet you didn't know GCC did this!" posts, and was completely correct. | null | 0 | 1318047926 | False | 0 | c2ps7n0 | t3_l4p6z | null | t1_c2ps7n0 | t1_c2pryoh | null | 1427702294 | 3 | t5_2fwo | null | null | null |
True | repka | null | Am I the only one who thinks compiler shouldn't be doing cheats like *strlen* example? It'd be alright, if it was able to somehow intelligently figure out that strlen will return the same value all the time. Otherwise, it shouldn't use "build-in" cheat-sheet like that.
If user is silly enough not to save the result, I... | null | 0 | 1318048113 | True | 0 | c2ps8bl | t3_l4p6z | null | t1_c2ps8bl | t3_l4p6z | null | 1427702304 | -2 | t5_2fwo | null | null | null |
True | inmatarian | null | Neat, I got most right of them right. The bit-shift division one caught me.
| null | 0 | 1318048124 | False | 0 | c2ps8da | t3_l4p6z | null | t1_c2ps8da | t3_l4p6z | null | 1427702304 | 7 | t5_2fwo | null | null | null |
True | kmeisthax | null | C/C++ is really NOT the way to go... Most of the stuff C++ adds to the table in regards to language features is deceptive to language newbies. For example...
Templates: Sure, yes, it looks like actual generics, but in reality C++ is copy-pasting your code behind your back and this makes debugging a lot harder than it ... | null | 0 | 1318048307 | False | 0 | c2ps92n | t3_l4p6z | null | t1_c2ps92n | t1_c2prw3o | null | 1427702313 | 0 | t5_2fwo | null | null | null |
True | Myrono | null | It is smart enough to do that. If the array is modified in the loop the compiler won't pull strlen() out. | null | 0 | 1318048402 | False | 0 | c2ps9es | t3_l4p6z | null | t1_c2ps9es | t1_c2ps8bl | null | 1427702318 | 15 | t5_2fwo | null | null | null |
True | rpglover64 | null | I think it knows that as long as no nulls have been added or overwritten, strlen returns the same value.
Then again, I'm a fan of Haskell, so this all seems cheap and dirty to me. | null | 0 | 1318048448 | False | 0 | c2ps9l5 | t3_l4p6z | null | t1_c2ps9l5 | t1_c2ps8bl | null | 1427702320 | 1 | t5_2fwo | null | null | null |
True | dauphic | null | Interestingly, I wasn't aware that reducing stack usage qualified as a 'space complexity' optimization. | null | 0 | 1318048606 | False | 0 | c2psa54 | t3_l4p6z | null | t1_c2psa54 | t3_l4p6z | null | 1427702328 | 6 | t5_2fwo | null | null | null |
True | mcandre | null | If it doesn't exist, make it. :) | null | 0 | 1318048703 | False | 0 | c2psahk | t3_l466j | null | t1_c2psahk | t1_c2prk4h | null | 1427702332 | 2 | t5_2fwo | null | null | null |
True | rpglover64 | null | [http://yosefk.com/c++fqa/](http://yosefk.com/c++fqa/) | null | 0 | 1318048740 | False | 0 | c2psam8 | t3_l4p6z | null | t1_c2psam8 | t1_c2prw3o | null | 1427702334 | 6 | t5_2fwo | null | null | null |
True | Tuna-Fish2 | null | No sarcasm. Seriously.
The job of a startup is to find a market, and design a product for that market. Until a startup has that product, it's basically couple of guys subsisting on ramen, without any money to spend on servers or professionals. Once they can prove that they have x million $ a year market, and real user... | null | 0 | 1318048814 | False | 0 | c2psavd | t3_l4b56 | null | t1_c2psavd | t1_c2prz1q | null | 1427702338 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | > haskell users will be dealing with this problem five years from now
So you're just speculating? I think we've made a lot of progress as of the past year or two. Hackage in its current state is absolutely awful in a lot of ways as I currently said, and this *does* significantly impact the ability to correctly choo... | null | 0 | 1318048823 | True | 0 | c2psawi | t3_l466j | null | t1_c2psawi | t1_c2pry3c | null | 1427702338 | 3 | t5_2fwo | null | null | null |
True | 5a1 | null | LOL almost fell out of my chair, I'm the tech lead at a top 10 financial firm... years in the industry.
| null | 0 | 1318048854 | False | 0 | c2psb0s | t3_l1tjd | null | t1_c2psb0s | t1_c2pne8n | null | 1427702338 | 0 | t5_2fwo | null | null | null |
True | k3n | null | Is there a CL bot I wonder, that could go through and provide this automatically for CL links?
It wouldn't necessarily require a screenshot for most CL posts... | null | 0 | 1318048957 | False | 0 | c2psbeq | t3_l4b56 | null | t1_c2psbeq | t1_c2po49r | null | 1427702344 | 1 | t5_2fwo | null | null | null |
True | da_newb | null | To multiply by two, wouldn't GCC use bitshift and not any addition or multiplication? | null | 0 | 1318049176 | False | 0 | c2psc6v | t3_l4p6z | null | t1_c2psc6v | t3_l4p6z | null | 1427702354 | 14 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318049344 | False | 0 | c2psctg | t3_l4p6z | null | t1_c2psctg | t1_c2prvw8 | null | 1427702362 | 10 | t5_2fwo | null | null | null |
True | [deleted] | null | your argument fell apart when you tried to compare deploying a website in a duck-typed language with one that is strongly typed
if i swap out libraries in ruby, i may well indeed have to recode various bits of it, but strings will still be strings
if i'm pulling together libraries in hackage, strings might by [Char],... | null | 0 | 1318049347 | False | 0 | c2psctu | t3_l466j | null | t1_c2psctu | t1_c2psawi | null | 1427702362 | 4 | t5_2fwo | null | null | null |
True | Darkhack | null | The reason people BS their resumés is because of the tactics employers are using. They run the resumé through a software program that looks for keywords and if they don't find that keyword, the resumé goes straight to the recycle bin. The example one of my colleagues used was that of a developer who could have ten ye... | null | 0 | 1318049389 | False | 0 | c2psczm | t3_l4bk8 | null | t1_c2psczm | t1_c2pqksu | null | 1427702364 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | this is exactly the "maze of types" i am describing
i really like haskell, but its clear that with something as fundamental as strings, you want to get it right the first time | null | 0 | 1318049429 | False | 0 | c2psd45 | t3_l466j | null | t1_c2psd45 | t1_c2ps04s | null | 1427702366 | 4 | t5_2fwo | null | null | null |
True | [deleted] | null | I totally agree. Unlike the bleak outlook of tr0lltherapy, the problem more than anything really, is that this situation is *not* unworkable, it just facilitates a lot more boilerplate than you would normally feel necessary, for the time being.
It's highly irritating to write nice code and have it cluttered by convers... | null | 0 | 1318049431 | False | 0 | c2psd4g | t3_l466j | null | t1_c2psd4g | t1_c2ps04s | null | 1427702366 | 3 | t5_2fwo | null | null | null |
True | xTRUMANx | null | Yes but that's just sensible. The fun part comes in finding optimizations to the code while still keeping it retarded. | null | 0 | 1318049567 | False | 0 | c2psdll | t3_klhlv | null | t1_c2psdll | t1_c2po575 | null | 1427702372 | 2 | t5_2fwo | null | null | null |
True | mkawick | null | Downvote... really?
Listen, C++ is really a great language: I've built my career in games programming in C++ and while it does have detractors, it is still the preferred language of most game programmers. A lot of game companies won't even use C# (lame IMHO), or Java, or Haskell, or Lisp, or anything else. The main r... | null | 0 | 1318049690 | False | 0 | c2pse0n | t3_l4p6z | null | t1_c2pse0n | t1_c2prw3o | null | 1427702377 | 4 | t5_2fwo | null | null | null |
True | HOW_IS_THIS_FUNNY | null | Why would you ever need to know this | null | 0 | 1318049925 | False | 0 | c2pseuf | t3_l4p6z | null | t1_c2pseuf | t3_l4p6z | null | 1427702389 | -17 | t5_2fwo | null | null | null |
True | Nomorerice | null | They told me I could be anything I wanted. So I became a programmer. | null | 0 | 1318049969 | False | 0 | c2pseze | t3_l4p6z | null | t1_c2pseze | t1_c2prur2 | null | 1427702391 | 14 | t5_2fwo | null | null | null |
True | repka | null | No it's not. If you'd read the article you'd notice two things. Let me quote the first one:
> -fno-builtin defeats this optimization
... so it's built in cheat sheet, not compiler being "smart enough". Two: content of **const** unsigned char * in the example cannot be modified. Don't be anal please about const reca... | null | 0 | 1318050173 | False | 0 | c2psfo3 | t3_l4p6z | null | t1_c2psfo3 | t1_c2ps9es | null | 1427702400 | -1 | t5_2fwo | null | null | null |
True | Carrotman42 | null | This is why I partially like the compilation of Java code: The answer is almost always no!
Some may say that it is a bad thing, but I would rather know exactly how my code is compiled (and write it accordingly) than simply hope for optimizations that I may not even understand. | null | 0 | 1318050210 | False | 0 | c2psftr | t3_l4p6z | null | t1_c2psftr | t3_l4p6z | null | 1427702402 | -4 | t5_2fwo | null | null | null |
True | LiraNuna | null | It depends on the architecture and the context. For example, modern x86 (and amd64) have several parallel pipelines, such as several arithmetic units, SIMD unit and memory units.
The 'secret' is to use as many of those in parallel as possible, hence GCC will choose, according to the context which one is the best possi... | null | 0 | 1318050222 | False | 0 | c2psfv9 | t3_l4p6z | null | t1_c2psfv9 | t1_c2psc6v | null | 1427702402 | 42 | t5_2fwo | null | null | null |
True | rxi | null | * To know when it's better to write more easily understandable code which will be optimised by the compiler, rather than unnecessarily optimised code which isn't as readable
* In some situations it's essential to know the *exact* behaviour of your compiler
* For fun | null | 0 | 1318050365 | False | 0 | c2psgek | t3_l4p6z | null | t1_c2psgek | t1_c2pseuf | null | 1427702417 | 15 | t5_2fwo | null | null | null |
True | repka | null | According to the article it knows it because strlen is a built-in function. All I'm saying optimizations like this should be either done if compiler is smart enough to understand it itself without a cheat-sheet or not done at all. | null | 0 | 1318050430 | False | 0 | c2psgne | t3_l4p6z | null | t1_c2psgne | t1_c2ps9l5 | null | 1427702417 | 0 | t5_2fwo | null | null | null |
True | three18ti | null | I have 800 years experience with brainfuck and whitespace!
Will only code in either of these languages for production applications due do security concerns of c-pound. | null | 0 | 1318050719 | False | 0 | c2pshoe | t3_l4b56 | null | t1_c2pshoe | t1_c2pr5ew | null | 1427702437 | 1 | t5_2fwo | null | null | null |
True | Branan | null | I think you're missing a big point in your big post: All the changes you seem to think would make C++ a better language would mean giving up its to-the-metal philosophy and/or imposing a runtime cost to operations that can be determined at compile-time
Templates? Of course it has to instantiate the code for each type ... | null | 0 | 1318051176 | False | 0 | c2psj7f | t3_l4p6z | null | t1_c2psj7f | t1_c2ps92n | null | 1427702455 | 31 | t5_2fwo | null | null | null |
True | eikenberry | null | git add -A | null | 0 | 1318051237 | False | 0 | c2psjf7 | t3_kzivg | null | t1_c2psjf7 | t1_c2oks1b | null | 1427702458 | 0 | t5_2fwo | null | null | null |
True | comex | null | > GCC does not do this even for very long "chains,", at least not the ancient 4.2.1 version I tried (maybe newer versions do better?) The switch statement was optimized to a jump table, while the if statements became a long sequence of compares.
Incidentally, llvm-gcc does this correctly, but even gcc 4.6 does not. | null | 0 | 1318051240 | False | 0 | c2psjfh | t3_l4p6z | null | t1_c2psjfh | t3_l4p6z | null | 1427702458 | 28 | t5_2fwo | null | null | null |
True | Myrono | null | Even though you're quite correct that I missed the const declaration, it doesn't matter. The compiler would still optimize correctly without it.
Edit: With regards to your cheat sheet comments, while GCC does indeed have special cases for builtin functions, they are by no means static. The compiler is aware of the c... | null | 0 | 1318051305 | True | 0 | c2psjn7 | t3_l4p6z | null | t1_c2psjn7 | t1_c2psfo3 | null | 1427702470 | 6 | t5_2fwo | null | null | null |
True | xespera | null | Did anyone else hope there would only be two on the list? | null | 0 | 1318051307 | False | 0 | c2psjnf | t3_l466j | null | t1_c2psjnf | t3_l466j | null | 1427702470 | 1 | t5_2fwo | null | null | null |
True | repka | null | I see some silliness in votes in this thread.
But again to those who know the stuff you've mentioned (i.e. pointer types) it's not new, to the rest it's the same mambo-jumbo, if not worse than pointers themselves. To understand pointers all you need to know are the pointers themselves. To understand shared_ptr, you ne... | null | 0 | 1318051322 | False | 0 | c2psjpn | t3_l4p6z | null | t1_c2psjpn | t1_c2pse0n | null | 1427702460 | 8 | t5_2fwo | null | null | null |
True | clownb4by | null | [relevant](http://rosettacode.org/wiki/Main_Page) | null | 0 | 1318051439 | False | 0 | c2psk4z | t3_l3mls | null | t1_c2psk4z | t1_c2pkntj | null | 1427702468 | 1 | t5_2fwo | null | null | null |
True | mkawick | null | Yeah, I agree... pointers are the hard part of the language but no magic. Also, memory management is somewhat eliminated with proper scoping and the use of shared_ptr.
Anyway, most people who hate C++ simply don't understand it or even try... it's kind of like maths... "I don't need integrals and it looks hard, so it ... | null | 0 | 1318051563 | False | 0 | c2pskk9 | t3_l4p6z | null | t1_c2pskk9 | t1_c2psjpn | null | 1428192486 | 7 | t5_2fwo | null | null | null |
True | kamatsu | null | When? | null | 0 | 1318051627 | False | 0 | c2pskrn | t3_l38op | null | t1_c2pskrn | t1_c2poboe | null | 1427702478 | 1 | t5_2fwo | null | null | null |
True | tsukiko | null | The likely reason is that an add instruction could simply add the register to itself:
addl %eax,%eax
In the instruction encoding, no constants need to be loaded. However if we have a shift by 1:
sall $1,%eax ; shift arithmetically left
Now the encoded instruction needs to store the constant with the instru... | null | 0 | 1318051669 | False | 0 | c2pskwk | t3_l4p6z | null | t1_c2pskwk | t1_c2ps6ft | null | 1427702480 | 30 | t5_2fwo | null | null | null |
True | kamatsu | null | Oh, well that's disappointing. | null | 0 | 1318051705 | False | 0 | c2psl0j | t3_kz98v | null | t1_c2psl0j | t1_c2prldh | null | 1427702480 | 1 | t5_2fwo | null | null | null |
True | Branan | null | It doesn't really need a "cheat-sheet", per-se.
When you use the GCC builtins, it knows the body of the function and how it behaves, so it can perform optimizations as if the function was inlined. These would be the same optimizations it would do if strlen was defined in a header and could be inlined normally.
Using ... | null | 0 | 1318051749 | False | 0 | c2psl5r | t3_l4p6z | null | t1_c2psl5r | t1_c2ps8bl | null | 1427702483 | 13 | t5_2fwo | null | null | null |
True | mkawick | null | I agree, it's far too smart and what if you really want it to test the strlen... say if you are modifying the contents as in "dynamic programming". Probably not a great idea, but it could help solve certain problems and this optimization would prevent that. | null | 0 | 1318051762 | False | 0 | c2psl7l | t3_l4p6z | null | t1_c2psl7l | t1_c2ps8bl | null | 1427702482 | 0 | t5_2fwo | null | null | null |
True | kamatsu | null | So? I don't think it's fair to judge ruby or C or Haskell for correctly implementing IEEE 754. | null | 0 | 1318051865 | False | 0 | c2pslkk | t3_l3mls | null | t1_c2pslkk | t1_c2ps3dl | null | 1427702486 | 2 | t5_2fwo | null | null | null |
True | Neurorational | null | One too many http's:
http://shootout.alioth.debian.org/ | null | 0 | 1318051884 | False | 0 | c2pslmy | t3_l466j | null | t1_c2pslmy | t1_c2pmy3u | null | 1427702486 | 1 | t5_2fwo | null | null | null |
True | mkawick | null | I love the poetic way you put that..
(tears up) | null | 0 | 1318051949 | False | 0 | c2psluu | t3_l4p6z | null | t1_c2psluu | t1_c2psj7f | null | 1427702488 | 1 | t5_2fwo | null | null | null |
True | Branan | null | It'll detect if you're modifying the string and act accordingly. When it uses builtins it's really acting as if it was an inlined function, there's no magic beyond that. | null | 0 | 1318052006 | False | 0 | c2psm25 | t3_l4p6z | null | t1_c2psm25 | t1_c2psl7l | null | 1427702490 | 3 | t5_2fwo | null | null | null |
True | earthboundkid | null | I am judging the IEEE for letting such a silly thing become standard. They have NaN. Why not just return NaN? | null | 0 | 1318052095 | False | 0 | c2psmcx | t3_l3mls | null | t1_c2psmcx | t1_c2pslkk | null | 1427702492 | -1 | t5_2fwo | null | null | null |
True | repka | null | Optimize it based on built-in knowledge specifically about function named *'strlen'*. This is the only thing I have a problem with. | null | 0 | 1318052104 | False | 0 | c2psmds | t3_l4p6z | null | t1_c2psmds | t1_c2psjn7 | null | 1427702493 | 0 | t5_2fwo | null | null | null |
True | recursive | null | I don't think this website functions as intended in opera. | null | 0 | 1318052160 | False | 0 | c2psmk5 | t3_l4p6z | null | t1_c2psmk5 | t3_l4p6z | null | 1427702495 | 24 | t5_2fwo | null | null | null |
True | kmeisthax | null | >All the changes you seem to think would make C++ a better language would mean giving up its to-the-metal philosophy
Yes, except that you were also praising it for being a "flexible" language and that you could ignore the "low-level stuff" if you wanted to, which is a farce. You cannot program C++ without dealing w... | null | 0 | 1318052259 | False | 0 | c2psmv9 | t3_l4p6z | null | t1_c2psmv9 | t1_c2psj7f | null | 1427702498 | 3 | t5_2fwo | null | null | null |
True | erg | null | Wow the Factor version is terrible. It's over five years old and looked bad when it was written, probably as someone's first Factor program.
I hope it didn't scare anyone away from trying Factor...
[Here's](http://paste.factorcode.org/paste?id=2358) a better version. | null | 0 | 1318052453 | False | 0 | c2psnin | t3_l466j | null | t1_c2psnin | t1_c2pmvlu | null | 1427702502 | 2 | t5_2fwo | null | null | null |
True | kamatsu | null | Actually, they have two zero values, positive zero and negative zero. If you divide a positive by negative zero, you will get -Infinity.
From wikipedia:
> There are two zeroes, +0 (positive zero) and −0 (negative zero) and this removes any ambiguity when dividing. In IEEE 754 arithmetic, a ÷ +0 is positive infinity... | null | 0 | 1318052495 | False | 0 | c2psnnd | t3_l3mls | null | t1_c2psnnd | t1_c2psmcx | null | 1427702504 | 1 | t5_2fwo | null | null | null |
True | sunra | null | The compiler feature provides faster code for end users. Why should I be against it? | null | 0 | 1318052528 | False | 0 | c2psnrh | t3_l4p6z | null | t1_c2psnrh | t1_c2ps8bl | null | 1427702506 | 2 | 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.