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 | xjru | null | My claim is that any non trivial program benefits from the availability of structured value types. Take the standard Map implementations as an example. C#/CLR uses a struct called KeyValuePair to store entries in a Dictionary. Java uses Map.Entry to do the same. C++ uses std::pair. KeyValuePair and std::pair are stored... | null | 0 | 1318066436 | True | 0 | c2ptizu | t3_l38op | null | t1_c2ptizu | t1_c2powia | null | 1427702913 | 1 | t5_2fwo | null | null | null |
True | Fabien4 | null | Methinks you posted to the wrong subreddit. | null | 0 | 1318066634 | False | 0 | c2ptj9t | t3_l4zsm | null | t1_c2ptj9t | t3_l4zsm | null | 1427702917 | 3 | t5_2fwo | null | null | null |
True | NitWit005 | null | > C, yes, every operation has well known performance semantics. C++? Not so much, because types can specify operator overloads, so the only way to know your particular performance semantics for a piece of code is to know all of that code's types, unless those types specify virtual operator overloads, in which the pe... | null | 0 | 1318066891 | False | 0 | c2ptjn3 | t3_l4p6z | null | t1_c2ptjn3 | t1_c2psmv9 | null | 1427702922 | 5 | t5_2fwo | null | null | null |
True | frutiger | null | You mean C's switch syntax? | null | 0 | 1318067074 | False | 0 | c2ptjws | t3_l4p6z | null | t1_c2ptjws | t1_c2pt6zp | null | 1427702925 | 9 | t5_2fwo | null | null | null |
True | tef | null | it's not rest!
I really need a restful bingo card | null | 0 | 1318067320 | False | 0 | c2ptk9n | t3_l4l3n | null | t1_c2ptk9n | t3_l4l3n | null | 1427702930 | 2 | t5_2fwo | null | null | null |
True | BrowsOfSteel | null | It’s the switch statement specified by the C++ standard. Ergo, it’s C++’s switch statement.
The fact that its syntax is identical to that of C’s switch statement has no bearing on the matter. | null | 0 | 1318067472 | True | 0 | c2ptkgw | t3_l4p6z | null | t1_c2ptkgw | t1_c2ptjws | null | 1427702932 | 10 | t5_2fwo | null | null | null |
True | bonzinip | null | Note that for short-ish chains, if-else will be better than both a jump table and a balanced decision tree, because of better branch prediction (a branch in a balanced decision tree will be mispredicted 50% of the time).
Does clang inverse-optimize a short switch statement (4 cases, say) to if-else-if-else-if-else-if-... | null | 0 | 1318067542 | False | 0 | c2ptkk6 | t3_l4p6z | null | t1_c2ptkk6 | t1_c2psjfh | null | 1427702934 | 23 | t5_2fwo | null | null | null |
True | artsrc | null | I think that the selection of features of better languages that Java has adopted is influenced by their inclusion in C#. Things like autoboxing, and foreach loops. Why not list comprehensions or syntax for initializing maps? | null | 0 | 1318067881 | False | 0 | c2ptl1u | t3_l38op | null | t1_c2ptl1u | t1_c2pl9zw | null | 1427702941 | 1 | t5_2fwo | null | null | null |
True | comex | null | It appears to do so for switches with 3 cases or less. | null | 0 | 1318067892 | False | 0 | c2ptl24 | t3_l4p6z | null | t1_c2ptl24 | t1_c2ptkk6 | null | 1427702941 | 18 | t5_2fwo | null | null | null |
True | no9 | null | I think it's just a CSS problem:
.fish_quiz_choices a { width: 100% }
You can't have three elements, all taking the full width of their container.
At least "Fit to Width" makes it usable. | null | 0 | 1318067964 | False | 0 | c2ptl5y | t3_l4p6z | null | t1_c2ptl5y | t1_c2pt6a2 | null | 1427702943 | 17 | t5_2fwo | null | null | null |
True | artsrc | null | RMS is for Mono as a way to get MS users to freedom. He is against Mono in that he sees risks in Microsoft trying to assert control. | null | 0 | 1318068113 | False | 0 | c2ptldg | t3_l38op | null | t1_c2ptldg | t1_c2pqpib | null | 1427702945 | 1 | t5_2fwo | null | null | null |
True | artsrc | null | C# is not Java done *right*. But it is Java done better than Java. Lisp is Java done right. | null | 0 | 1318068210 | False | 0 | c2ptliw | t3_l38op | null | t1_c2ptliw | t1_c2pf5lj | null | 1427702947 | 0 | t5_2fwo | null | null | null |
True | frutiger | null | That's one way of looking at it. Whatever works for you, I guess. | null | 0 | 1318068874 | False | 0 | c2ptme4 | t3_l4p6z | null | t1_c2ptme4 | t1_c2ptkgw | null | 1427702959 | 13 | t5_2fwo | null | null | null |
True | anttirt | null | > Not so much, because types can specify operator overloads, so the only way to know your particular performance semantics for a piece of code is to know all of that code's types
This argument always confuses me greatly. Why would an experienced C++ programmer assume that *for some unfamiliar type,* `a + b` is any ... | null | 0 | 1318069331 | True | 0 | c2ptn12 | t3_l4p6z | null | t1_c2ptn12 | t1_c2psmv9 | null | 1427702967 | 3 | t5_2fwo | null | null | null |
True | Ragas | null | Jeah you should know how your code is compiled. So that you can keep away from certain constructions that are bad for performance because they are unoptimizable by the Compiler..
I learned that in my first year of Programming. Because once in our classes homework we all collectively and independently wrote a code whic... | null | 0 | 1318069431 | True | 0 | c2ptn4z | t3_l4p6z | null | t1_c2ptn4z | t1_c2psu1j | null | 1427702968 | 3 | t5_2fwo | null | null | null |
True | Ragas | null | Oh god! This answer was just epic. | null | 0 | 1318069588 | False | 0 | c2ptncg | t3_l4p6z | null | t1_c2ptncg | t1_c2pssic | null | 1427702971 | 0 | t5_2fwo | null | null | null |
True | oSand | null | It's nice, but records are a bit of bodge and line delimiters are a fricken mess. | null | 0 | 1318069641 | False | 0 | c2ptnf1 | t3_l466j | null | t1_c2ptnf1 | t1_c2pnsah | null | 1427702972 | 1 | t5_2fwo | null | null | null |
True | scook0 | null | A modern JVM does all sorts of fancy optimizations, including ones that can't be matched by a non-PGO compiler.
On the other hand, `javac` itself does almost none, which is deliberate. | null | 0 | 1318069741 | False | 0 | c2ptnjh | t3_l4p6z | null | t1_c2ptnjh | t1_c2pt44z | null | 1427702973 | 3 | t5_2fwo | null | null | null |
True | berkut | null | From my experience, MSVC 10's compiler produces much better SSE code than MinGW 4.5 under windows, and is generally around 15% faster without SSE optimisations. This is for image processing/compositing code, so lots of float operations.
Without SSE optimisations, ICC 11 (haven't used 12 yet) is around 15% faster than ... | null | 0 | 1318070097 | False | 0 | c2ptnzq | t3_l4p6z | null | t1_c2ptnzq | t1_c2pspcn | null | 1427702979 | 21 | t5_2fwo | null | null | null |
True | Ayjayz | null | Apart from switching around the fall-through-by-default thing, how would you improve it? | null | 0 | 1318070367 | False | 0 | c2ptocl | t3_l4p6z | null | t1_c2ptocl | t1_c2pt6zp | null | 1427702984 | 3 | t5_2fwo | null | null | null |
True | [deleted] | null | I hate people who use underscores for naming conventions. | null | 0 | 1318070378 | False | 0 | c2ptocw | t3_l38op | null | t1_c2ptocw | t1_c2pkfn7 | null | 1427702984 | 1 | t5_2fwo | null | null | null |
True | andor44 | null | I'd like to point out that the right answer has nothing to do with the generated assembly, the guy only checked if gcc optimizes it to the specific C/C++ code (as far as I understand). | null | 0 | 1318070383 | False | 0 | c2ptod7 | t3_l4p6z | null | t1_c2ptod7 | t1_c2pskwk | null | 1427702984 | -1 | t5_2fwo | null | null | null |
True | [deleted] | null | I hate Java. It felt so messy. C# is so much cleaner imo. | null | 0 | 1318070514 | False | 0 | c2ptojd | t3_l38op | null | t1_c2ptojd | t3_l38op | null | 1427702986 | 0 | t5_2fwo | null | null | null |
True | icebraining | null | Returning 'json' or 'xml' as the type (whether in the URL or in the headers) is bad, since they don't specify a format, just the transport mechanism.
Let's say you're returning a geographic coordinate. Yes, it's "xml", but is it KML? Or GML? Or GeoRSS? The client can't parse it without knowing the actual format.
Now... | null | 0 | 1318070952 | True | 0 | c2ptp5m | t3_l4l3n | null | t1_c2ptp5m | t1_c2ptgzj | null | 1427702995 | 3 | t5_2fwo | null | null | null |
True | day_cq | null | doesn't work | null | 0 | 1318071112 | False | 0 | c2ptpdr | t3_l50s1 | null | t1_c2ptpdr | t3_l50s1 | null | 1427702997 | 2 | t5_2fwo | null | null | null |
True | beeff | null | What's the context, x86? I wonder is the same is true for ARM archs for example.
Incidentally, are there asm -> asm optimizing compilers? :) | null | 0 | 1318071208 | False | 0 | c2ptpin | t3_l4p6z | null | t1_c2ptpin | t1_c2pt6v6 | null | 1427702999 | 13 | t5_2fwo | null | null | null |
True | [deleted] | null | Wha? No PHP? You can build anything worth anything without a pretty home page. gah.... | null | 0 | 1318071250 | False | 0 | c2ptpl4 | t3_l466j | null | t1_c2ptpl4 | t3_l466j | null | 1427703000 | -2 | t5_2fwo | null | null | null |
True | [deleted] | null | I like the fall-through-by-default thing. It gives you an implicit OR operation among the clauses if you need it. | null | 0 | 1318071344 | False | 0 | c2ptpps | t3_l4p6z | null | t1_c2ptpps | t1_c2ptocl | null | 1427703001 | 11 | t5_2fwo | null | null | null |
True | henk53 | null | It's official: I'm a fool.
Thanks for the corrected link! | null | 0 | 1318071378 | False | 0 | c2ptpr7 | t3_l4esf | null | t1_c2ptpr7 | t1_c2ptbea | null | 1427703003 | 2 | t5_2fwo | null | null | null |
True | [deleted] | null | It show that, contrary to common belief, C is an intuitive and easy to learn language.
| null | 0 | 1318071461 | False | 0 | c2ptpvk | t3_l4p6z | null | t1_c2ptpvk | t1_c2psa54 | null | 1427703005 | 1 | t5_2fwo | null | null | null |
True | ErstwhileRockstar | null | Which abstraction doesn't leak ... in C++? | null | 0 | 1318071517 | False | 0 | c2ptpy6 | t3_l4xfg | null | t1_c2ptpy6 | t3_l4xfg | null | 1427703006 | 3 | t5_2fwo | null | null | null |
True | BrowsOfSteel | null | Another great change would be the removal of the requirement to spell out “case” on every line. Pascal, for instance, gets by just fine without it.
As for fall‐through, yes, that’s the biggest issue. There’s a reason most other languages don’t fall‐through by default. Allowing multiple values for the same “case” (thou... | null | 0 | 1318071601 | True | 0 | c2ptq2k | t3_l4p6z | null | t1_c2ptq2k | t1_c2ptocl | null | 1427703006 | 3 | t5_2fwo | null | null | null |
True | alephnil | null | It takes a lot of knowledge about the processor, like cache, instruction level parallelism and dependencies, branch (mis)prediction, register aliasing and instruction decoding, pipelines and instuction latencies to write fast assembly code these days. The compiler has a model of this built in to the optimizer, that may... | null | 0 | 1318071742 | False | 0 | c2ptq9f | t3_l4p6z | null | t1_c2ptq9f | t1_c2pt6v6 | null | 1427703009 | 59 | t5_2fwo | null | null | null |
True | gasche | null | > I love this example because it attacks the notion that tail-recursion is a privileged form of recursion. We already knew that a tail recursive function may be optimized to run in constant space, if compiler support is present. But this example proves that a non-tail recursive function may also be optimized to run... | null | 0 | 1318071872 | True | 0 | c2ptqfv | t3_l4p6z | null | t1_c2ptqfv | t3_l4p6z | null | 1427703012 | 8 | t5_2fwo | null | null | null |
True | Ayjayz | null | It's fine to have as an option, but why is it the default?? It's so counter-intuitive and error-prone, it should have some big ugly syntax around it for the few cases you do want to use it | null | 0 | 1318071877 | False | 0 | c2ptqg9 | t3_l4p6z | null | t1_c2ptqg9 | t1_c2ptpps | null | 1427703012 | 7 | t5_2fwo | null | null | null |
True | stesch | null | Please read the article. It wasn't the first time he wasn't helping the cause.
| null | 0 | 1318072369 | False | 0 | c2ptr3y | t3_l4yxy | null | t1_c2ptr3y | t1_c2ptc94 | null | 1427703026 | 2 | t5_2fwo | null | null | null |
True | matthieum | null | > Second, they don't own the copyright anyway and it's not "their" project - its a project of the University of Illinois and they have the copyright.
Actually this is incorrect, and Chris Lattner, would probably scoff your ears if he ever heard that :) It was accidentally written in some page on the website but whe... | null | 0 | 1318072491 | False | 0 | c2ptra6 | t3_l3tk5 | null | t1_c2ptra6 | t1_c2ppuz1 | null | 1427703024 | 4 | t5_2fwo | null | null | null |
True | Ragas | null | 175MB in my freshly started Gentoo.
Also keep in mind that linux Programs usually use way more shared libs as windows Programs so they have a smaller memory footprint.
In Windows all the programs come with a Buttload of their own libraries because with missing package manager they can't be sure the required libraries ... | null | 0 | 1318072574 | True | 0 | c2ptreu | t3_l48nw | null | t1_c2ptreu | t1_c2psqyb | null | 1427703027 | -6 | t5_2fwo | null | null | null |
True | matthieum | null | GCC and Clang are usually on par regarding compilation speed, with one or the other taking the lead depending on the particular part of the compilation you are interested in (for example Clang is faster for preprocessing, GCC's backend seems faster at optimizing).
LLVM produces faster code than GCC 4.2 did (the point ... | null | 0 | 1318072810 | False | 0 | c2ptrqv | t3_l3tk5 | null | t1_c2ptrqv | t1_c2pkmyi | null | 1427703040 | 4 | t5_2fwo | null | null | null |
True | JL235 | null | You could also try Scala or Java. High performance servers is what Java is pretty much built for, and there are frameworks out there which will help you scale.
But to answer your question, having used both Erlang and Haskell, and I'm presuming you haven't used either, I would recommend Erlang. It'll do the job well, a... | null | 0 | 1318072896 | False | 0 | c2ptrvh | t3_l466j | null | t1_c2ptrvh | t1_c2pmevc | null | 1427703032 | 2 | t5_2fwo | null | null | null |
True | ikawe | null | Would I upvote this if it weren't 4:30 AM?
I wonder what [MC++](http://www.mcplusplus.com/) is up to these days.
| null | 0 | 1318072906 | False | 0 | c2ptrvz | t3_l50s1 | null | t1_c2ptrvz | t3_l50s1 | null | 1427703033 | 1 | t5_2fwo | null | null | null |
True | killerstorm | null | > It's fine to have as an option, but why is it the default??
C is an old language. I think they wanted to make it close to what it compiles to. (I.e. break is a jump.)
> It's so counter-intuitive and error-prone,
For newbies; but pretty much everything in C is counter-intuitive and error-prone for newbies.
S... | null | 0 | 1318073005 | False | 0 | c2pts0z | t3_l4p6z | null | t1_c2pts0z | t1_c2ptqg9 | null | 1427703036 | 22 | t5_2fwo | null | null | null |
True | auto98 | null | No, I am correct.
Lrn2law | null | 0 | 1318073062 | False | 0 | c2pts45 | t3_l3ct9 | null | t1_c2pts45 | t1_c2pn75x | null | 1427703036 | 1 | t5_2fwo | null | null | null |
True | alexanderpas | null | [Build your own server!](https://github.com/diaspora/diaspora/wiki/Installing-and-Running-Diaspora) And yes, cross server communications is fully supported. | null | 0 | 1318073259 | False | 0 | c2ptsf4 | t3_l4b56 | null | t1_c2ptsf4 | t1_c2ppy1p | null | 1427703040 | 1 | t5_2fwo | null | null | null |
True | JL235 | null | Different languages have different approaches for solving problems, and so you end up learning new concepts, design patterns and various tricks you can use in code. You often learn good practices (especially from functional languages) and pragmatic ways of doing things.
You also find certain languages tackle different... | null | 0 | 1318073264 | False | 0 | c2ptsfd | t3_l466j | null | t1_c2ptsfd | t1_c2pnaj9 | null | 1427703040 | 2 | t5_2fwo | null | null | null |
True | oSand | null | This is true. I call it the Nitwit effect. | null | 0 | 1318073351 | False | 0 | c2ptsjt | t3_l32qk | null | t1_c2ptsjt | t1_c2phz6y | null | 1427703040 | 3 | t5_2fwo | null | null | null |
True | Ayjayz | null | To be honest, I treat the entire switch construct as suspicious. I find it's almost always indicative of a dodgy design. | null | 0 | 1318073389 | False | 0 | c2ptslo | t3_l4p6z | null | t1_c2ptslo | t1_c2pts0z | null | 1427703043 | -8 | t5_2fwo | null | null | null |
True | wayno007 | null | At first I thought Epilogue was part of the list. | null | 0 | 1318073692 | False | 0 | c2ptt1a | t3_l466j | null | t1_c2ptt1a | t3_l466j | null | 1427703047 | 5 | t5_2fwo | null | null | null |
True | killerstorm | null | It hurts my brain when people claim that one compiler is better than other without even mentioning versions, let alone benchmarking result.
Things change all the time.
> Gcc is incredibly smart and it pains me when some people put it down so easily, just because of some little thing they don't like. Just because i... | null | 0 | 1318073758 | True | 0 | c2ptt4w | t3_l4p6z | null | t1_c2ptt4w | t1_c2pspcn | null | 1427703047 | 12 | t5_2fwo | null | null | null |
True | Chomskyismyhero | null | So in the stack or the heap? The same place as variables. | null | 0 | 1318073762 | False | 0 | c2ptt58 | t3_l4cv3 | null | t1_c2ptt58 | t1_c2ptier | null | 1427703047 | 3 | t5_2fwo | null | null | null |
True | killerstorm | null | It makes a lot of sense for finite state machines, parsers, packet decoders etc. | null | 0 | 1318074383 | False | 0 | c2ptu2q | t3_l4p6z | null | t1_c2ptu2q | t1_c2ptslo | null | 1427703059 | 11 | t5_2fwo | null | null | null |
True | killerstorm | null | You can add with just one instruction -- FADD. Data is already there.
To multiply you need to load constant. (There is no "load 2.0" instruction IIRC and even if there was, it is still one extra instruction.) | null | 0 | 1318074561 | False | 0 | c2ptud8 | t3_l4p6z | null | t1_c2ptud8 | t1_c2pt9lp | null | 1427703063 | 2 | t5_2fwo | null | null | null |
True | you_do_realize | null | [Screen-capped for posterity.](http://i.imgur.com/E5fFd.jpg) | null | 0 | 1318074708 | False | 0 | c2ptukg | t3_l4b56 | null | t1_c2ptukg | t1_c2pr1d6 | null | 1427703065 | 4 | t5_2fwo | null | null | null |
True | donkey_lz | null | > "Open Source" to me, means that the source for software is published and viewable by people, regardless of its license. It's a bastardization of the term to restrict it to only being software that uses only certain OSI approved licenses.
This "bastardization" of the term is actually applied in many other places -... | null | 0 | 1318075321 | False | 0 | c2ptvjg | t3_l4eva | null | t1_c2ptvjg | t1_c2pp55k | null | 1427703079 | 1 | t5_2fwo | null | null | null |
True | [deleted] | null | [deleted] | null | 0 | 1318075334 | False | 0 | c2ptvk1 | t3_l4p6z | null | t1_c2ptvk1 | t1_c2ptpvk | null | 1427703079 | -1 | t5_2fwo | null | null | null |
True | Orca- | null | Interesting. Things you learn. | null | 0 | 1318075589 | False | 0 | c2ptw0l | t3_l4p6z | null | t1_c2ptw0l | t1_c2ptgvj | null | 1427703085 | 10 | t5_2fwo | null | null | null |
True | jevon | null | You could always reverse engineer asm into (horrible) C, and then recompile it... ;) | null | 0 | 1318076057 | False | 0 | c2ptwqc | t3_l4p6z | null | t1_c2ptwqc | t1_c2ptpin | null | 1427703094 | 4 | t5_2fwo | null | null | null |
True | cujo | null | Why would they do that? At my work I'm doing grails nearly exclusively, and the only real issues I've had with java code is with my boss. When he wants to "sketch out an idea" in code he writes 50 lines of java instead of the 10 lines that would be groovy.
Is your problem the same? Are they just not familiar enou... | null | 0 | 1318076176 | False | 0 | c2ptwws | t3_l0we4 | null | t1_c2ptwws | t1_c2p432f | null | 1427703097 | 1 | t5_2fwo | null | null | null |
True | jevon | null | That's just a standard run out of memory bad code. That will crash any language, except maybe C if you are using pointers. | null | 0 | 1318076221 | False | 0 | c2ptwz5 | t3_l4p6z | null | t1_c2ptwz5 | t1_c2pte2k | null | 1427703098 | 1 | t5_2fwo | null | null | null |
True | Orca- | null | And an incorrect assumption of why I thought the optimization was wrong... :) | null | 0 | 1318076298 | False | 0 | c2ptx3k | t3_l4p6z | null | t1_c2ptx3k | t1_c2psugz | null | 1427703099 | 1 | t5_2fwo | null | null | null |
True | jevon | null | I would _hate_ to reimplement some of my Java code (research project) in C. It uses a lot of dynamic compilation, remote services, runtime extensions, OSGi, extension points and all other manner of magics. And that's not even getting started on GC.
I <3 C, but it's a totally different beast to Java.
Here's a compa... | null | 0 | 1318076399 | False | 0 | c2ptx97 | t3_l4p6z | null | t1_c2ptx97 | t1_c2prw3o | null | 1427703101 | 2 | t5_2fwo | null | null | null |
True | tinutinu | null | False. This crashes the JVM, not the running java-program (segfault instead of an exception) | null | 0 | 1318076453 | False | 0 | c2ptxcl | t3_l4p6z | null | t1_c2ptxcl | t1_c2ptwz5 | null | 1427703102 | 13 | t5_2fwo | null | null | null |
True | covracer | null | I'm aware of at least one company with internal tools for this. | null | 0 | 1318076586 | False | 0 | c2ptxkg | t3_l4p6z | null | t1_c2ptxkg | t1_c2ptpin | null | 1427703105 | 1 | t5_2fwo | null | null | null |
True | tinutinu | null | The one I described (from [stackoverflow](http://stackoverflow.com/questions/65200/how-do-you-crash-a-jvm/74780#74780)) isn't regarding seralization, but just the garbage collector building an internal reference-graph and running out of stack (or similar. | null | 0 | 1318076702 | False | 0 | c2ptxrl | t3_l4p6z | null | t1_c2ptxrl | t1_c2pthyh | null | 1427703108 | 3 | t5_2fwo | null | null | null |
True | Darkhack | null | Judging from the comments so far, everybody just read the text, but didn't watch the video. The text mostly talks about the blogger's experience with .NET and P/Invoke.
The video is not about that. The video talks about the metrics of performance where C++ is king. One example given is mobile devices where there is... | null | 0 | 1318076807 | False | 0 | c2ptxyk | t3_l4xfg | null | t1_c2ptxyk | t3_l4xfg | null | 1427703110 | 2 | t5_2fwo | null | null | null |
True | JL235 | null | Small note, javac does not optimize, at all. This is because you don't know what platform you are running on; a mobile phone, desktop or a high-performance server, or your code could even run on all three!
The only optimization you can make is to strip out debugging information, which reduces the size of the generated... | null | 0 | 1318076818 | False | 0 | c2ptxzc | t3_l4p6z | null | t1_c2ptxzc | t1_c2psvuz | null | 1427703111 | 2 | t5_2fwo | null | null | null |
True | WalterGR | null | It's pretty ballsy for an iPad app to use MS Windows window decorations.
Snark aside, I'd love to find a Thunderbird replacement. Does anyone know how far along this project is? | null | 0 | 1318076954 | True | 0 | c2pty8a | t3_l4yz6 | null | t1_c2pty8a | t3_l4yz6 | null | 1427703114 | 2 | t5_2fwo | null | null | null |
True | frownyface | null | Are there any guides or anything on how to get GCC to report on performing these optimizations? | null | 0 | 1318077162 | False | 0 | c2ptylj | t3_l4p6z | null | t1_c2ptylj | t3_l4p6z | null | 1427703118 | 2 | t5_2fwo | null | null | null |
True | notfancy | null | Taboo-Driven Development. | null | 0 | 1318077170 | False | 0 | c2ptyma | t3_l4p6z | null | t1_c2ptyma | t1_c2ptslo | null | 1427703118 | 15 | t5_2fwo | null | null | null |
True | cliveholloway | null | Most hosts that use cPanel let you [set real cron jobs](http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/CronJobs) through the web interface.
Maybe 5 years ago user level cron was harder to get, but it's pretty ubiquitous these days. | null | 0 | 1318078018 | False | 0 | c2pu05v | t3_l4b56 | null | t1_c2pu05v | t1_c2prx8m | null | 1427703138 | 1 | t5_2fwo | null | null | null |
True | andytuba | null | In C#, the Visual Studio IDE will give you a warning for something like:
switch (x) {
case 1:
doStuff();
case 2:
doOtherStuff();
break;
}
The "case 1" will get the warning that branches cannot fall through. I'm not sure if it'll give you a full error or ... | null | 0 | 1318078144 | False | 0 | c2pu0dy | t3_l4p6z | null | t1_c2pu0dy | t1_c2pts0z | null | 1427703142 | 2 | t5_2fwo | null | null | null |
True | Luminaire | null | I'm talking about the actual grails libraries. They are all written in java code. | null | 0 | 1318078167 | False | 0 | c2pu0f8 | t3_l0we4 | null | t1_c2pu0f8 | t1_c2ptwws | null | 1427703142 | 1 | t5_2fwo | null | null | null |
True | JL235 | null | It can also make better decisions when optimizing, since it is on the platform it is optimizing for. I don't know if the JVM performs either of these optimizations, but an example is if it were choosing between [loop fusion](http://en.wikipedia.org/wiki/Loop_fusion) and [loop fission](http://en.wikipedia.org/wiki/Loop_... | null | 0 | 1318078405 | False | 0 | c2pu0u8 | t3_l4p6z | null | t1_c2pu0u8 | t1_c2pte1d | null | 1427703148 | 3 | t5_2fwo | null | null | null |
True | f2u | null | On some x86 variants, `FMUL` with a memory operand has a higher throughput than `FADD` with a registry operand. With certain softfloat implementations (GCC on some ARMs), multiplication is slightly faster than addition, too. | null | 0 | 1318078484 | False | 0 | c2pu0zj | t3_l4p6z | null | t1_c2pu0zj | t1_c2ptud8 | null | 1427703150 | 2 | t5_2fwo | null | null | null |
True | tragomaskhalos | null | Since you can't specify operator overloads for *built-in* types, your point about operator overloads and performance semantics makes no sense. And if I see a "+" in the code whose arguments are not builtin types, well then it depends on how that operation is implemented just as for any other method. | null | 0 | 1318078882 | False | 0 | c2pu1qd | t3_l4p6z | null | t1_c2pu1qd | t1_c2psmv9 | null | 1427703160 | 3 | t5_2fwo | null | null | null |
True | masklinn | null | Yeah, in Go you've got first-class collections built directly in the language (`ArrayType`, `ChannelType`, `MapType` and `SliceType`) which get to be generic types, and everybody else which gets to sit in the back of the bus. | null | 0 | 1318079421 | True | 0 | c2pu2qj | t3_l2z8p | null | t1_c2pu2qj | t1_c2pohkj | null | 1427703173 | 4 | t5_2fwo | null | null | null |
True | cnk | null | !this->breathe() | null | 0 | 1318079525 | False | 0 | c2pu2x8 | t3_l4p6z | null | t1_c2pu2x8 | t3_l4p6z | null | 1427703175 | -3 | t5_2fwo | null | null | null |
True | Gotebe | null | The ... thing about C++ is that you *can't possibly* use all of it.
FTFY ;-) | null | 0 | 1318079779 | False | 0 | c2pu3gs | t3_l4p6z | null | t1_c2pu3gs | t1_c2ptbaz | null | 1427703182 | 10 | t5_2fwo | null | null | null |
True | [deleted] | null | Because Java was made to cater to C++ programmers, programmers who don't even know what a function is. | null | 0 | 1318079976 | False | 0 | c2pu3vm | t3_l38op | null | t1_c2pu3vm | t1_c2ptl1u | null | 1427703187 | 0 | t5_2fwo | null | null | null |
True | cujo | null | But why would they write the libs in java if not for some optimization unavailable to groovy? From my point of view, there are two reason to code in java if doing groovy/grails:
* optimization - some things are easier to speed up in java
* ignorance - not knowing groovy well enough
If one is just looking to get t... | null | 0 | 1318080050 | False | 0 | c2pu40w | t3_l0we4 | null | t1_c2pu40w | t1_c2pu0f8 | null | 1427703189 | 1 | t5_2fwo | null | null | null |
True | shadow31 | null | C# doesn't allow fall through on cases which have a body. The warning you mentioned is actually an error. | null | 0 | 1318080506 | False | 0 | c2pu4yh | t3_l4p6z | null | t1_c2pu4yh | t1_c2pu0dy | null | 1427703201 | 14 | t5_2fwo | null | null | null |
True | Luminaire | null | Well tell that to the developers of grails! | null | 0 | 1318080524 | False | 0 | c2pu4zg | t3_l0we4 | null | t1_c2pu4zg | t1_c2pu40w | null | 1427703201 | 1 | t5_2fwo | null | null | null |
True | trigraph | null | * uh copy/paste redhats source code sounds like FOSS works
* what proprietary bits? CDDL is an open source license
* you're right oracle never funded any giving back, i guess btrfs wasnt created by an oracle employee (http://oss.oracle.com/projects/)
* get your head out of your ass
* profit ...yes thats what companies ... | null | 0 | 1318080959 | False | 0 | c2pu5z0 | t3_l399g | null | t1_c2pu5z0 | t1_c2pmf5k | null | 1427703215 | -2 | t5_2fwo | null | null | null |
True | nhpip | null | Both are great languages, if you've never done functional programming before I would pick Erlang. Haskell is a pure functional language and can be hard to understand. Erlang IMO is a bit more forgiving on the learning path. | null | 0 | 1318081041 | False | 0 | c2pu66k | t3_l466j | null | t1_c2pu66k | t3_l466j | null | 1427703218 | 1 | t5_2fwo | null | null | null |
True | kmeisthax | null | Yes, but if you're looking for performance, you practically have to limit yourself to the C subset anyway. | null | 0 | 1318081508 | False | 0 | c2pu79o | t3_l4p6z | null | t1_c2pu79o | t1_c2pte1p | null | 1427703232 | -3 | t5_2fwo | null | null | null |
True | Noobdood | null | The creepiest thing about this website is how the hand is Caucasian... I'm not caucasian, so it is really weird to feel like you have a "white hand". Anywho.. just wanted to share that. | null | 0 | 1318081797 | False | 0 | c2pu7xz | t3_l4p6z | null | t1_c2pu7xz | t3_l4p6z | null | 1427703241 | 3 | t5_2fwo | null | null | null |
True | bonzinip | null | javac does some small optimizations. Constant folding, or choosing a tableswitch over a lookupswitch are already a kind of optimization. | null | 0 | 1318081906 | False | 0 | c2pu881 | t3_l4p6z | null | t1_c2pu881 | t1_c2ptxzc | null | 1427703244 | 2 | t5_2fwo | null | null | null |
True | bonzinip | null | Indeed: optimizing strlen("abc") to 3, or even printf("foo\n") to puts("foo") would be optimizations that are enabled by builtins. But in this case it's just a function attribute. | null | 0 | 1318082024 | False | 0 | c2pu8i4 | t3_l4p6z | null | t1_c2pu8i4 | t1_c2psxwh | null | 1427703248 | 3 | t5_2fwo | null | null | null |
True | Kevin_Raven | null | >Ever since, I've been very careful to avoid O(n) stack space complexity in graph algorithms.
For educational purposes, could someone explain this sentence? | null | 0 | 1318082192 | False | 0 | c2pu8vg | t3_l4p6z | null | t1_c2pu8vg | t1_c2pt1mt | null | 1427703253 | 4 | t5_2fwo | null | null | null |
True | ricky_clarkson | null | "Syntax is not remembering in which order the three parts of the for (...) loop are specified."
Well, actually, it is. | null | 0 | 1318082457 | False | 0 | c2pu9ii | t3_l2vfc | null | t1_c2pu9ii | t1_c2plmln | null | 1427703261 | 2 | t5_2fwo | null | null | null |
True | FeepingCreature | null | Do you know what graphs are? What Big-O notation means? The difference between stack and heap?
Hard to explain if I don't know how much you're missing. | null | 0 | 1318082592 | False | 0 | c2pu9uc | t3_l4p6z | null | t1_c2pu9uc | t1_c2pu8vg | null | 1427703266 | 4 | t5_2fwo | null | null | null |
True | malkarouri | null | What about people that worked with C++ for years then found simpler ways to achieve the same results using other languages?
I would say that a sizable minority of C++ haters have worked with it, but it gives no advantage for its complexity in the domains they are using. C++ is good for the game industry, but it is not... | null | 0 | 1318082596 | False | 0 | c2pu9us | t3_l4p6z | null | t1_c2pu9us | t1_c2pskk9 | null | 1427703266 | 5 | t5_2fwo | null | null | null |
True | dutch_gecko | null | > I nobody can answer easily, the optimization is good but unreliable : you cannot write code that critically rely on it, because it is fragile and you can't predict if small changes may break it.
Wouldn't it be bad practice to rely on an optimization in your code? Surely in such a case you'd be better off writing ... | null | 0 | 1318083066 | False | 0 | c2puazm | t3_l4p6z | null | t1_c2puazm | t1_c2ptqfv | null | 1427703281 | 4 | t5_2fwo | null | null | null |
True | Taladar | null | I wonder if they realize that they just committed suicide in a similar way SCO did. Do they seriously expect anyone to ever buy anything from them again after such a move? | null | 0 | 1318083079 | False | 0 | c2pub0z | t3_l3ct9 | null | t1_c2pub0z | t1_c2pmbcx | null | 1427703282 | 2 | t5_2fwo | null | null | null |
True | code-affinity | null | "I always wanted to be somebody, but now I realize I should have been more specific." -- Lily Tomlin | null | 0 | 1318083158 | False | 0 | c2pub7w | t3_l4p6z | null | t1_c2pub7w | t1_c2pseze | null | 1427703284 | 5 | t5_2fwo | null | null | null |
True | xardox | null | Of course they can't, because you're making a call to an EXTREMELY complex function, and there is no way for it to inline it or optimize it away.
On the other hand, there seems to be a huge class of newbie cut-and-paste programmers who think it's inefficient and wasteful to declare a local variable. They program as i... | null | 0 | 1318083164 | False | 0 | c2pub8k | t3_l4cv3 | null | t1_c2pub8k | t1_c2pq2h8 | null | 1427703284 | 3 | t5_2fwo | null | null | null |
True | code-affinity | null | Crap! You just *accidentally* got 500 karma points?! I have not accumulated that many karma points after months of (admittedly desultory) work. | null | 0 | 1318083252 | False | 0 | c2pubfo | t3_l4p6z | null | t1_c2pubfo | t1_c2prvw8 | null | 1427703286 | 3 | t5_2fwo | null | null | null |
True | malkarouri | null | > Why would an experienced C++ programmer assume that for some unfamiliar type, a + b is any different from what an experienced C programmer would assume add(a, b) to be?
No reason, of course. But that was never the point.
In C, I know something about the performance of `a+b`. It is a constant time operation and n... | null | 0 | 1318083253 | False | 0 | c2pubfs | t3_l4p6z | null | t1_c2pubfs | t1_c2ptn12 | null | 1427703286 | 1 | t5_2fwo | null | null | null |
True | xardox | null | I worked with one stupid programmer who insisted in caching every intermediate result in memcached no matter how quick it was to calculate on the fly (even though there was only ever one Python application server process, so serializing/deserializing an sending back and forth to a different address space would ALWAYS b... | null | 0 | 1318083336 | False | 0 | c2pubn3 | t3_l4cv3 | null | t1_c2pubn3 | t1_c2pqd7q | null | 1427703289 | 3 | t5_2fwo | null | null | null |
True | case-o-nuts | null | look at HP's Dynamo research. http://www.hpl.hp.com/techreports/1999/HPL-1999-78.html | null | 0 | 1318083493 | False | 0 | c2puc1v | t3_l4p6z | null | t1_c2puc1v | t1_c2ptpin | null | 1427703294 | 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.