Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Anyone trying to learn C++

Name: !TK/UA49EzE 2008-06-01 21:45

I've been trying to learn it also, but studying alone makes me get bored of it easily. Anyone interested in learning C++ in a group? it'll be so CACHE (lol, get it?)!

:(

Name: Anonymous 2008-06-05 9:18

>>87
I wasn't saying that, I was saying that vtable-based dynamic dispatch will always be faster than multiple-hashtables-based dynamic dispatch, no matter how you optimize it. Both because the former is inherently faster and because much of the latter's optimizations also apply to the former.

Name: Anonymous 2008-06-05 16:23

>>92
You are assuming that dynamic dispatch must do the worst-case legwork in most situations, which is plainly not the case. While the worst case may be worse, when your run-time has dynamically inlined the most common methods, you're nowhere near worst case, and have reduced the cost of method dispatch in most instances to a type-check. So yes, doing more work is slower, but no, merely having the potential to do it does not slow you down if your run-time is good enough to avoid that work. I stress that there will be more clever tricks to come in the future. And it's folly to ignore both known optimizations and future ones, saying, "It can only be implemented this way".

Name: Anonymous 2008-06-05 17:17

real C++ programmers write their dispatch logic as templete metacode

Name: Anonymous 2008-06-05 18:00

>>93
You are assuming that I assumed what you think I assumed. I meant just what was said in >>92, no more, no less. Also, unknown future optmizations are only relevant to future arguments.

Name: Anonymous 2008-06-05 18:21

>>95
Well, somebody said,
It can only be implemented that way.

This is a statement about all possible optimizations, both current and future. I am refuting it. That is all.

Name: Anonymous 2008-06-05 20:03

>>96
Dude, in that post, "that way" == "not through vtables".

Name: Anonymous 2008-06-05 21:13

>>97
Dude, in that post "clarity: not found". If that's actually what was intended, it's the most backwards locution imaginable. In what world does "that way" refer to "every possible way except for some arbitrary other method that I expect you to psychically know I'm thinking of"? But I don't believe that's what was intended. Someone said "it's a problem with a specific implementation" and the response was "It can only be implemented that way".

Name: Anonymous 2008-06-06 3:13

>>98

>>58: looking up methods by global identifier is slowing than indexing a fixed array
>>59: ONLY CUZ UR COMPILER IS DUMB HURR
>>60: no, that's just how things work
>>62-999: HURRRRRRRRR

so where does the fucking psychic bullshit come in?  are you blind or just retarded?

Name: Anonymous 2008-06-06 5:36

ITT: Sepplers being trolled

Name: Anonymous 2008-06-06 11:01

>>98
No, clarity abandoned the discussion in >>59. It was as vague as it could be. >>60 made the mistake of replying to that shitty post and everything got fucked up since.

Name: Anonymous 2008-06-06 12:33

>>61-102
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAKAQMAAABlrFemAAAABlBMVEX///8AAABVwtN+AAAALElEQVR4XjWJQQkAMAzETsKdi+11KuaqIuq0FjoKDYQ8guU5cE9CReh3NHc3ZSgExJemMZgAAAAASUVORK5CYII

Name: Anonymous 2008-06-06 14:08

>>99
I'll be blind, since you're clearly handling "retarded".

>>58 looking up methods by global identifier is slowing than indexing a fixed array
>>59 Then don't do it like that.
>>60 i has to
>>66 No, you don't (insert real-life example here).
>>70 Counterfactual claim about Objective-C implementation.
>>92-999 FUCK, HE CAUGHT ME: BACKPEDAL

Name: Anonymous 2008-06-06 14:30

>>103
HURRRR HURRRRRRRRRRRRRRRR HURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

Name: Anonymous 2008-06-06 15:14

>>103
Reading only works if you're not a moron, moron.

Name: Anonymous 2008-06-06 16:27

>>104,105
Same person, and we have been dragged down to his level constantly.

Name: Anonymous 2008-06-06 16:28

>>106
You wish.

Name: Anonymous 2008-06-06 16:31

>>103
Your “real-life example” didn't remove the need for method lookups.  It will always be slower than not having them at all.

A language with dynamic methods has to be implemented with dynamic method resolution, i.e. “that way”.

Name: Anonymous 2008-06-06 18:03

>>108
Are you stupid or do you just not understand type-feedback (I guess those would be the same thing)? Removing the need for method lookups is exactly what it does.

Is that really what you meant to say, or is this a case where you mean one thing yet say something that could not possibly be construed as you will later claim you intended?

Name: Anonymous 2008-06-06 18:23

>>108,109
Same person, and WHBTC.

Name: Anonymous 2008-06-06 19:02

>>109,110
Same person, and WHBCTC.

Name: Anonymous 2008-06-06 19:07

Same person and we have been tolled constantly.

Name: !TK/UA49EzE 2008-06-06 20:41

So, which would you all recommend? C or C++? Please list reasons, if possible.

Name: Anonymous 2008-06-06 20:47

>>113
I will, along with my job.

Name: Anonymous 2008-06-06 21:04

>>114
I lol'd

Name: Anonymous 2008-06-06 23:07

>I will sux cocks - my job.

Fixed >>114 .

Name: Anonymous 2008-06-07 0:41

I advise learning D++

Name: Anonymous 2008-06-07 0:47

Dylon, Dylon, Dylon

Name: Anonymous 2008-06-07 1:28

>>116
You must be new here. Please refrain from posting until you have lurked enough.

Name: Anonymous 2008-06-08 4:13

C++ is only complicated because many of you are too content with baby languages that do your memory management for you, at the cost of worse performance. PROTIP: Garbage Collection is for NIGGERS and the UNEDUCATED. OOP and templates are not hard, and C++ takes care of that quite well. Why don't you actually try learning the language so real programmers don't have to put up with your interpreted language bullshit.

Name: Anonymous 2008-06-08 4:37

>>120
5/10

Name: Anonymous 2008-06-08 11:07

>>120
8/10 but then I also use unmanaged C++ so I'm a bit biased.

Name: Anonymous 2008-06-08 14:37

>>122
so I'm a bit biased.
You must be new here.

Name: !TK/UA49EzE 2008-06-08 14:40

I just decided to start using C. but now I has a question.

I was reading through this tutorial and saw:

#include <stdio.h>

int main()
{
    int a;
    a = 0;
    while (a <= 100)
    {
        printf("%4d degrees F = %4d degrees C\n",
            a, (a - 32) * 5 / 9);
        a = a + 10;
    }
    return 0;
}

The code above is supposed to make a Fahrenheit -> Celsius table (0-100 F). My question is... what does that 4 before the "4" mean? I changed it and compiled it (to %5d) and all it did was make the table go from

   0 degrees F =  -17 degrees C
  10 degrees F =  -12 degrees C
  20 degrees F =   -6 degrees C
  30 degrees F =   -1 degrees C
  40 degrees F =    4 degrees C
  50 degrees F =   10 degrees C
  60 degrees F =   15 degrees C
  70 degrees F =   21 degrees C
  80 degrees F =   26 degrees C
  90 degrees F =   32 degrees C
 100 degrees F =   37 degrees C


to

 0 degrees F =  -17 degrees C
  10 degrees F =  -12 degrees C
  20 degrees F =   -6 degrees C
 30 degrees F =   -1 degrees C
  40 degrees F =    4 degrees C
 50 degrees F =   10 degrees C
  60 degrees F =   15 degrees C
  70 degrees F =   21 degrees C
 80 degrees F =   26 degrees C
  90 degrees F =   32 degrees C
100 degrees F =   37 degrees C

basically, it just made the table messy. Can anyone tell me the real meaning of that?

Name: Anonymous 2008-06-08 15:49

It's the number of characters that you reserve for the field (field width). Also, how could you manage not to find this on google? All you have to do is google "printf" and you have the whole damn command reference... lr2google, it's very important because whatever you code there's always going to be a function/api/library reference that you need to look up.

Name: Anonymous 2008-06-08 15:50

The %4d sets the "field width" to 4, meaning 0, 10, ..., 100 get printed using four characters, so they come out as ___0, __10, ..., _100.

See
http://www.space.unibe.ch/comp_doc/c_manual/C/FUNCTIONS/format.html

HIBT?

Name: Anonymous 2008-06-08 15:50

>>125
Oh... well. Never mind.

Name: !TK/UA49EzE 2008-06-08 15:54

>>125
>>126

Thanks, both of ya'. I'll try googling next time.

Name: Anonymous 2008-06-08 16:04

>>128
No problem, I may sound harsh but that's because we're on 4chin.

Name: Anonymous 2008-06-08 18:21

>>122
I also use unmanaged C++
Why.

Name: Anonymous 2008-06-08 19:27

>>130
Realtime app driving a fairly powerful laser. Garbage collection could interrupt the program at unpredictable times, which would be a nasty thing when the laser is scanning live tissue.

Name: Anonymous 2008-06-08 19:27

>>130
OMGOPTIMIZATION

Name: Anonymous 2008-06-08 21:11

>>131
Use REAL-TIME GARBAGE COLLECTION

Name: Anonymous 2008-06-08 22:01

>>133
Oh wow. Java Enterprise Solutions, once again the clear winner in the language wars!

Name: Anonymous 2008-06-09 0:44

>>131
>Realtime app
Are you using the TRON OS?

Name: Anonymous 2008-06-09 2:26

I can't think of anything C++ does well.

By default variables that store objects point to the value of the object when it should be referencing it.

Templates are just half ass macros.

And there is nothing wrong with Garbage Collection when done right. A Decent garbage collector works automatically be default, but allows full control if you need it. The .Net CG works this way.

Name: Anonymous 2008-06-09 2:38

Templates are just half ass macros.
2/10

Name: Anonymous 2008-06-09 2:42

For retards like you (by "you" I mean the overwhelming majority of this thread) the language is only as powerful as GUI toolkits and database intefaces that allow you (see above the definition of "you") to make trivial programs that no one cares about.

So take your C++ with Qt, and shut the fuck up.

For OP: lean C first. Then C++.

Name: Anonymous 2008-06-09 18:09

C++ is a rudimentary form of C.

Name: Anonymous 2008-06-09 18:11

C++ is a rudimentary form of Asm

Name: Anonymous 2008-06-09 18:13

Asm is a rudimentary form of ASM

Name: Anonymous 2008-06-09 18:22

ASM is a rudimentary form of physical manipulation of logic gates

Name: Anonymous 2008-06-09 18:37

>>138
Yeah, get yo' seppler lean on, nigga.

Name: !TK/UA49EzE 2008-06-09 18:38

Name: Anonymous 2008-06-09 18:42

gtfo tripfag

Name: Anonymous 2008-06-11 22:01

>>145
gtfo sagefag

Name: Paul Brahman 2008-06-11 23:57

>>146
gtfo anonyfag

Name: Anonymous 2009-01-08 8:24

>>148

Exactly. You should use x86 assembly instead. FrozenVoid! will help you to achieve your goal.

Name: FrozenSperm !FrOzENLOAU 2009-01-08 11:44

>>149
Actually, the CPU rewrites C++ code as x86 assembly, so it isn't that bad. However it is a waste of processor power to write in a higher level langauge if it's only going to be converted to x86.

This is why languages like Javascript are so nice - they don't go through that translation layer, so they can be more efficient.

Name: FrozenSperm !FrOzENLOAU 2009-01-08 11:49

>>151
No it isn't, the CPU has to do that. Unless you're compiling it by hand on paper - in which case, why would you write in C++?

Name: Anonymous 2009-01-08 12:03

Mr. Babbage is not pleased with all this tomfoolery.

Name: Anonymous 2009-01-08 12:13

>>155
"On two occasions I have been asked, – "Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?" In one case a member of the Upper, and in the other a member of the Lower House put this question. I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.[35]"
http://en.wikipedia.org/wiki/Charles_Babbage

Name: Anonymous 2009-01-08 12:20

>>157
It's not automated, you have to write the checks yourself.

Name: Anonymous 2009-01-08 12:43

>>159
"Automation plays an increasingly important role in the global economy and in daily experience. Engineers strive to combine automated devices with mathematical and organizational tools to create complex systems for a rapidly expanding range of applications and human activities."
ttp://en.wikipedia.org/wiki/Automated

Name: FrozenVoid!FrOzEn2BUo 2009-01-08 14:30

Trollogated, Fripple frump brappapaa buckmap flumpblack. snipper sneepsnoker wikkabumffa fappakka frun quanttbaccker.

Name: Anonymous 2009-01-08 18:58

YHBT

Name: Anonymous 2009-01-08 20:16

Why isn't there a >>157  now?

Name: Anonymous 2009-01-09 0:35

>>163
There's been a lot of missing posts here in the past few days.

Name: Anonymous 2009-01-12 21:53

Yeah, let's all learn C as a prelude to C++ so we can develop bad programming habits for when we try to write in C++!

#include <iostream.h>, anyone?

Name: Anonymous 2009-01-12 22:23

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !FrOzEn2BUo 2009-01-13 1:43

>>164
They are gone due moderators listening to every complaint about activity on this little forum.

Name: Anonymous 2009-01-13 3:59

>>165
Yeah, let's all learn C++ as a prelude to C so we can develop ENTERPRISE habits for when we try to write in C!

Name: Anonymous 2009-08-16 1:56

Lain.

Name: Anonymous 2009-08-16 2:48

Lain.

Name: Anonymous 2009-08-16 2:52

Lain.

Name: Anonymous 2009-08-16 3:02

Lain.

Name: Anonymous 2009-08-16 3:18

Lain.

Name: Anonymous 2009-08-16 3:21

Lain.

Name: Anonymous 2009-08-16 3:38

Lain.

Name: Anonymous 2009-08-16 4:00

Lain.

Name: Anonymous 2009-08-16 4:27

Lain.

Name: Anonymous 2009-08-16 4:39

Lain.

Name: Sgt.Kabukiman꿊⇀ 2012-05-23 15:14

All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy
 All work and no play makes Jack a dull boy

Name: bampu pantsu 2012-05-29 3:41

bampu pantsu

Name: 2013-01-25 18:06

愲疉瞀㤁㌀蘡荵䍖嘃扔ᐧ␤儨䠗℈♵ᅉ捴嚇葄吁荠᥉ゐ㙠㉩晁桕香餒恹ぶ㈈ᅆ覃睁销䊓ᑖɤٗ∨術⍢㤴ᕁ木朲䅹閕癃᝴睸蜹䐆嚉䀥⁈暐㉀䠓䠴⒅螉恒ጱ搈鍘邁祔璑啧褕㡔⑓桸⠒饐㡴Զ餣兰⌠阂蜇饤灂艓㙉塥犙ɇ䜂㑃螆关㘑敆࢔䀥牂ࡁᐣ䞔鄷㡘瀱ㄨ䝣☰餙ᘄ▙暅㖄ᠵទ㚐敐♑萔獓ㄙᄓࡂ倱㜤愥咅鑩㐃ŗ喕䠇ᥓ㘁爘䠓֔甄㘳脩酳ᕈ┨⤙䅤堢㙒ᆒ鄗㍷♙㚈刣┇儥㞖斐栕∇袁Ţ↓㖒䞁㡴䘹ᑵ慕呇斂啉䙓摖ℑ套犘癘͗饗ᙡ畧㙡ć䤒Թ呉晨န╡᎖☹喔䙂㌑ᤸ蜹鑸捘␥莔䜢灸ፂ⚐ᦇ礘恇䦕㜃̹榃ї॰┦㔕䝇ᅤ耂大霰㑁夆腃㡃襷፹嘷䚖✠ᘗ脇荁遣䘵䡃覄舃匣砰蝸打兤ѥ጖┹掘錅鈘Ͷᔄ圡萸㘀䄇膆㥒眴⁷昴ڑ虐⅑圐礅鞔㑦ᥳ荲搷舸䔒ᘰ楡ܑࡉ㡡桵餥┅舄奴芖唘畑ٶ⡘䆂首⊓ᜤ。茄⌃墂噄饃Ȳ⎒㥨朗䄨呙遐着砶栠扷钑萹锗熘⠩ㄧ㜁䜡如蘅ܩ䘆┙銉聥爡蘖≸榑閇ቘ疀╓䔳荤ና授栶露ܰų捒ባ挐ㄆᝲ堳脕鑗蔀腤䅆≸芈䈈ʈन鐔ㅒ祐喅㊈ރՙ舸鞕⎄䆖灙睳␕܈䅰㒅朹萀嘷㢀☨㝩奥ㅒҗ牰ԗ䐇畈ᥰ嘑⊉蕕膖᠈ࠈ莘ဴ蝃⁡㈂։薅䅶桅饗匶斘砉䁗憗䘐䤢奣bᐩ會∲䐓ᔹ䍗楑⢇鈤瀂硉砄㥵考唅䊔䉣蜆䤉䐈ࡦ瑃ᑁ朅Ň䠀搠ᐦ硵鄀性锵甡阉耆䙸掇噁ጶ⚄授芃耨蜁脐桒р癵䚐搹᠂䡂扒砄锳由萓ᑥ萷晶舕ㅷ瘇搆榓鈧褰ገ耔㉙蝵䈖剶搸戣鈕⌢ᝂ砑灠ឆ㍉㙠ř㌙邁范

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List