@# 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 9 10 11 12 13 14 15 16 17 18 19



Comments:

<0> VS2003 windowsXPpro
<1> XboK, if you convert to hex you can just concatinate no?
<2> (i was compiling it with intelv8/9 on itanium, the rest on an opteron box)
<0> intel processor
<0> let me try that
<3> XboK I guess you don't know how to use the debugger eh? and tell it you're interested in looking at 4 byte integers
<1> see if thats a true statement first :)
<4> djik, I've never managed to get Intel's compiler
<5> thanks Twister and vawjr for your help
<5> :)
<3> djik if the program has some "undefined" code in it, then whatever's in memory may affect how it runs
<3> "That's what we're here for" 1986 Victor A. Wagner Jr.
<2> gribouille, if you do stuff on itanium, it's essential :P
<6> I'm writing a library to solve a sparse matrix from a binary/ASCII file layout in purely C at the moment
<0> aye... that is right... convert to hex and just string them together
<6> is it easy to wrap that into C++ at a later point?



<2> vawjr, i was talking about the COMPILER not producing the same code, depending on which folder you compile IN.
<4> djik, why ?
<3> djik you SURE you have the same compiler and same libraries?
<2> gcc produces code (in my case) which is around 2-3 times slower on itanium2
<6> the ***ignment says "One may implement the C++ version of the library as a \thin wrapper"
<6> of the C version of the library."
<2> vawjr, i just did a diff between the two dirs
<2> no differences.
<2> believe me, i spent all day today trying to figure it out.
<3> I don't mean YOUR source
<3> I mean the system stuff
<2> i mean diff the .sln/.vcproj files, too!
<3> the includes, etc
<6> first I need to find out what a thin wrapper means
<3> corstan yeah, looks like your prof thinks that learning C is useful
<3> it's people like him that get things like MFC written
<2> i concur :D
<6> is MFC bad ;) ?
<3> yes
<4> corstan, like everything M$ does
<1> not everything
<6> but I don't need to of course
<3> gribouille it's _so_ amusing that vc8 is one of the best compilers available these days for the intel stuff
<3> it's actually one of the better compilers for C++ period
<4> vawjr, that's new
<2> i got intel to produce slower code than .net 2k3
<2> it's not too hard :P
<6> what the hell is a thin wrapper?
<6> thinner than thick?
<5> Twister2: i was thinking more about your solution to the adjacent cities distances turnpike problem
<4> djik, since microsoft created the OS, it can take advantage of this fact to produce better code
<4> better object code, of course
<1> ves3ks, I would venture to guess that the solutio I proposed is the one the proffessor expects. and quite possibly the most efficient constant time solution available.
<5> ok, so say you have cities 0 1 2 3 4 5
<5> with 5 3 2 6 7 as the distances
<5> so you're suggesting that 5 7 9 15 would be the solution i would refer to for additional calcluations
<1> it becomes 5 8 10 16 23
<5> er 5 8 10 16 23
<5> yes..
<5> what if i wanted to know the distances between just 3 and 5
<5> 5 8 10 16 23 is just a solution starting from 0
<7> 23-10?
<1> yeah 23-10
<5> right..
<5> ok, i missed that part
<5> =\
<5> sorry
<1> make sure you calculate the correct ranges though (non inclusive of the last city) as far as I can tell
<3> ves3ks is this program supposed to be written in C++ ?
<5> any language
<3> you'll prolly surprise the hell out of the prof is you use partial_sum
<3> how do the numbers get initialized ?
<5> it's up to me
<3> well, if you're reading them from some external source, you can put the sum in as you go
<8> haev you guys ever felt like you were becoming worse programmers?
<1> not really, cause I am constantly making mistakes and learning from them
<8> heh that's good
<3> WhatAHam no
<8> lately i feel like i am getting dumber at avoiding bugs and writing clean well designed code
<3> though I think I'm slowind down some <sigh> caffeine doesn't give the kick it used to
<8> yeah age ****s doesn't it?



<5> WhatAHam: maybe you're just not as interested in it as u used to be
<8> you can always try amphetamines ;)
<1> caffeine is definately a programmer's miracle drug
<8> ves3ks, yeah you are right.. i tihnk i lost my enthusiasm lately.. i have to rekindle it
<8> i am also writing code for scientists and working with them drains me.. they have no intuition about avoiding error conditions when designing systems :/
<9> :)
<8> :(
<9> hey sounds cool what you are doing helping people with knowledge on programing they don't have
<8> yeah tha's true.. i should look at it that way
<8> i definitely feel needed
<5> dont worry man, just hang in there
<8> yeah i will try
<8> at least the spring's coming.. worst part of winter is over..
<8> will be able to not care about work when i am out kyacking
<9> I found ways to simply stay on dumb voice chat programs and avoid being booted currently. I was missing things before from simply drinking on it with them like a fool for years
<9> now have to just quit that crap chat though
<8> i am not sure i was able to parse that sentence
<9> quitting drinking almost a month and mind and body shooting like crazy currently
<8> wow. were you an alcoholic?
<8> i don't think i ever met an alcoholic programmer
<8> generally being drunk and coding don't mix well together
<9> yeah
<6> vawjr, if I dump a struct into file my fread / outfile.write
<9> fell of my study for years
<6> all the values will be saved?
<6> my = by
<6> y = y <=> 1 = 1
<6> :)
<9> but found looking at old programs and other stuff looks clearer another way now
<8> corstan: yes. but the data will not be too portable
<6> what do you mean by that?
<8> well different compiler options on the same machine or different architectures will not be able to interchange the data
<6> hm
<8> but it does work. using fwrite, etc to write structs to disk and then loading them later does work on the same architecture with a program that was compiled the same way
<6> if I got struct something { several datatypes and later allocated memory for them }
<1> you should look into serialization instead though
<8> wait the structs contain pointers to data?
<6> one data type a time ?
<9> old game programs and c and some others in qbasic and others in visual basic and other junk not been looking at in years being looked at again like it was another idiot that wrote the stuff and sorting out stuff I just didint see then when I made that
<6> at ta time
<6> err, at a time
<6> Twister2, ?
<1> well, one method is (size of next date item)(data)(size of next.....
<8> well if ou have struct Foo { int bar; double baz; }; Foo f; .... fwrite(&foo, sizeof(foo), 1, f); that will work.. but if Foo contains pointers to stuff.. you can't do it that way
<6> yes, Foo _does_ contain pointers
<6> like double *A which is later allocated memory for
<1> then you are forced to serialize
<6> but before the writing starts of course
<6> ok
<6> can I ***ume that when dumping a struct with pointer inside, only the skeleton of the struct gets dumped?
<8> serialization is a bitch.. esp. if you have really deeply nested structures.. it is so much a bitch yuo are better off coming up with a text-based way to represent your data then writing code to parse the text.. it's almost as much work and is much easier to debug/work with/ port to other programs
<8> corstan, yes, the pointer will get dumped as a pointer.. but the next time the program is run it will probably ppoint to garbage
<6> ok
<6> C++ is pretty amazing
<8> why are you usingpointers anyway? use vectors.. :)
<6> I know, and rdragon got insane yesterday
<6> :)
<6> but I have to do this way before using templates from STL
<6> pretty newbie
<8> what do you mean 'way before'?
<8> i am surprised you want to learn C++..
<6> use array before going into STL
<6> arrays
<6> "i am surprised you want to learn C++.." ?
<8> what's the attraction for you? i got into learning C++ because it was a great all-purpsoe language. you can do anything from write kernels and driver to writing really abstract well designed programs using C++.. plus its fast and cool
<6> the attraction is that it's hardcore
<6> and I use freebsd/linux all the time
<8> cool
<6> so I need to know what's under the hood
<10> heh.
<6> and also because I need this for my graduate coursework :)
<11> hah
<8> well deeply under the hood is just C.. but i think if you know C++ you can easily deal with C


Name:

Comments:

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






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

#mirc
acroreader linux x86_64
#asm
what do people think of the nz accent
#MissKitten
skypeirc
wine winword nothing happens
#linuxhelp
#linux
site:www.quotesdb.info imlive credit



Home  |  disclaimer  |  contact  |  submit quotes