@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8



Comments:

<0> till now i just used any function i want
<0> but with winsock.. he got some problems
<1> try to look for a devcpp winsock tutorial
<0> i cant find tutorial for devcpp
<2> ah look, MS is back on the "Rename everything .net" train
<2> http://www.eweek.com/article2/0,1895,1974872,00.asp
<1> hmm
<1> what's up with VC8 then ?
<3> heh
<3> oh, I bet a new version of VS will ship that does .net 3.0
<3> or it might be a service pack
<3> shrug
<2> it should, in theory, be 9
<2> supporting all the visual editors for XAML and so forth
<4> XAML?
<2> but given how much 8 slipped, I'm not sure how much people will b e into buying another major release 12 months after the last one



<1> VC8, SP 1.net
<4> lol
<2> their new GUI markup system
<2> it's basically XUL from mozilla
<4> oh
<4> Lame?
<2> only because it's from microsoft, it's "Innovotive and new"
<4> haha
<4> yeah
<2> and not 5 year old open source tech
<4> Props to marketing ;)
<2> it's pretty decent, really. Better than win32 for GUIs
<2> but it's *so* different, it'll cause more problems than it'll solve for quite some time
<4> because it isn't going to be coded write?
<2> well, it can be. It's XML
<2> you can hand write it, if you're insane
<4> haha
<4> i might be that insane XD
<4> but that won't be necessary will it
<2> they're writing visual editors for it
<2> I think there's a beta of one of the VS plugins out already, and their new graphic designer tool set will export it, I believe
<2> the closest existing analogy is it's like writing XHTML for a programatic website
<2> but it's not, really. just sort of
<2> why they believe this will allow designers to work seperately from programmers, I've no idea. It's not happened in 15 years of web development, it won't happen here
<4> well but if written correctly it can be just like a CMS with a template system?
<2> just google for XAML and see for yourself :)
<2> but no, not really. The concept of a GUI is not to deliver "content", it's to interact with an application
<4> I meant it would be like a backend with certain UI objects that would be used to interact then the template would place them where ever and change the color, etc..
<4> sorry
<2> I guess
<2> I'm anticipating a wave of badly designed flashy UIs
<4> Probably ^_^
<2> unless their toolkit forces people down a certain design route
<2> like Apples system. You *can* do mostly anything with it, if you want. But Interface Builder forces you to make apple style UIs
<4> I would expect no less from them
<4> oh well
<4> it's been a minute since i've touched C++ :(
<2> been about 3 weeks here, alas
<4> oh
<4> minute -> like months
<4> XD
<5> quite
<6> peterhu could you look at this: http://www.noidea128.org/sourcefiles/16339~
<6> I can't figure out the rule about ldarg.0 placement
<2> what was the source?
<6> Asriel you mean the whole listing?
<2> the source that compiled to that
<6> z = 2 * z - 5; //C#
<2> well, it seems reasonable
<2> ldarg.0 will be the "this" pointer
<2> then push 2 onto the stack, convert to int64
<2> the extract the z field
<2> multiply, subtract 2
<2> and store it back into the original field
<2> remember, it's a stack based evaluation
<2> I'd personally have put that 003d instruction before 004a, but the compiler can do what it likes if it thinks it'll help the JIT optimise
<7> is it possible to call a function from a
<7> String
<7> ?
<4> no?
<7> i.e.



<8> you have to create a mapping
<4> see cn28h knows
<2> Sergey - No, not automatically. You'd need to create some sort of lookup yourself
<2> There's no reflection style system in C++
<7> i have string "lol" in char *a;
<7> how?
<6> Asriel so is the this pointer loaded before pushing the first constant, or before pushing the first constant or argument or field, or what?
<2> IRR - Easiest way to see what it's doing is to execute it in your head/on a bit of paper
<2> keep a clear image of the state of the stack, and it should be clear(er)
<6> hmm ok
<7> Asriel - so you understood my question? like in php... if i have for example function lol(int a,int b); and a variable $foo='lol'; then i can call 'lol' like this: $foo(1,2);
<7> it is possible somehow in c++?
<2> Sergey - Yes, and my answer holds
<2> The only way to do that in C++ is to manually create the mapping via function pointers
<6> ok, so what is happening is that this ldarg.0 is going to be used at the very end of the ***ignment operation for "stfld int64 contest.Program::z"
<6> Right?
<7> where can i read more about it?
<2> IRR - That was my interpretation of it, yes
<6> I think you are right. Lets try it out.
<2> a neat way of realising it is to look at which items lengthen the stack, which items shorten it and which don't change it's size
<7> Asriel where can i read more about it? Thank You
<2> then you can "bracket" the code off
<2> Sergey - I don't know
<2> Sergey - It's not a good technique to really get into
<7> Asriel ic
<7> Asriel but it makes life easier :)
<2> why?
<2> In PHP, it's a crude for of function pointers
<2> C++, we actually have function pointers and functors
<2> the only time I've ever used it in reflective capable languages is to create "plugin" style systems, and even then there are other ways around it
<2> as soon as your code starts "reading" itself to decide what to do next, you're probably made a design mistake
<7> hmmm... maybe you're right.. in PHP i used it few times to automate everything....
<2> function name are only needed to cross a human/machine boundary
<7> i have added dat, and in the end through this data accessed functions according to their names
<7> i worked for a long time already with PHP and forgot a bit C++ =)
<2> PHP can rot your mind if you're not care
<4> awww
<4> that's mean
<4> haha
<2> but then, so can any language
<2> mix-n-match as much as possible. different languages, different paradigms
<2> C++ is a good basis because it's specifcally a multi-paradigm language
<4> and smoke gr***
<4> XD
<7> yup... now i understand it
<7> the best language is ***embler :P
<2> not if you actually want to get stuff done
<4> lol
<7> :D
<2> as just demonstrate when IRR and I spent 10 minutes discussing z * 5 - 2
<5> lol
<7> anyway, without knowing ***embler is very hard to understand real programming
<7> better to know how everything works befire starting to do smth
<4> later
<7> Asriel thank You for consulting :)
<7> bye all
<9> sergey is mistaken in his "without ***embler...." comment
<2> depends what he means by real programming
<2> "hard" programming for machines on peoples desks right now (win32 etc) is very much easier if you know ***embly
<9> what is "hard" programming?
<2> any form of programming when things break in odd fashions
<2> and you end up with a core file (or platform equivalent)
<6> Thanks Asriel
<2> worked out as we expected?
<6> Probably the challenge isn't as much about understanding stack oriented programming as is getting used to it.
<6> Yes it did
<2> cool
<2> stack based systems are much easier to understand than register based once you get your head around it (which won't take long)
<9> unfortunately, there aren't many pure stack hardware sysstems around
<6> Now all the expression parsing code has ref bools going into them to determine if the first term in the expression has been found .. heh
<6> expression parsing methods*
<9> IRR you're writing your own parser?
<6> vawjr yes


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

#AllNiteCafe
#javascript
#mirc
oriyaan
#MissKitten
#linux
#london
SUSUT MAURITIUS
nu cunosc engleza
what is nah



Home  |  disclaimer  |  contact  |  submit quotes