--- Log opened Mon Nov 29 00:00:31 2010 |
00:11 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code |
00:19 | | You're now known as TheWatcher[T-2] |
00:22 | | You're now known as TheWatcher[zZzZ] |
00:33 | | Anno[Laptop] [annodomini@Nightstar-c2b9df81.adsl.tpnet.pl] has quit [[NS] Quit: Enough.] |
00:41 | | Ortiha [orthianz@Nightstar-af803e69.xnet.co.nz] has quit [Ping timeout: 121 seconds] |
00:47 | | Ortiha [orthianz@Nightstar-3e28b746.xnet.co.nz] has joined #code |
00:51 | | Attilla [Some.Dude@Nightstar-b6058710.threembb.co.uk] has quit [[NS] Quit: ] |
01:41 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has joined #code |
01:44 | | Ortiha [orthianz@Nightstar-3e28b746.xnet.co.nz] has quit [Ping timeout: 121 seconds] |
02:20 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has quit [Connection reset by peer] |
02:29 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has joined #code |
02:33 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has quit [Client closed the connection] |
02:40 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has joined #code |
02:42 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has quit [Client closed the connection] |
02:49 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has joined #code |
03:14 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?] |
03:40 | | Stalker [Stalker@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds] |
04:08 | | Stalker [Stalker@3A600C.A966FF.5BF32D.8E7ABA] has joined #code |
04:26 | | Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has joined #code |
05:01 | | Stalker [Stalker@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds] |
05:04 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has quit [Connection reset by peer] |
05:10 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has joined #code |
05:11 | | Alek [omegaboot@Nightstar-96006922.il.comcast.net] has joined #code |
05:42 | | Alek [omegaboot@Nightstar-96006922.il.comcast.net] has quit [[NS] Quit: brb] |
05:46 | | Alek [omegaboot@Nightstar-96006922.il.comcast.net] has joined #code |
06:20 | | celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
06:24 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has quit [Client closed the connection] |
06:31 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has joined #code |
06:32 | | kwsn is now known as kwsn\t-2 |
06:33 | | kwsn\t-2 [kwsn@Nightstar-ca9721ae.dyn.centurytel.net] has quit [[NS] Quit: BEEP BEEP IMMA JEEP] |
06:43 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has quit [Client closed the connection] |
06:44 | | Derakon is now known as Derakon[AFK] |
06:47 | | Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has quit [Client exited] |
06:52 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has joined #code |
06:53 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has quit [Connection reset by peer] |
07:00 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has joined #code |
07:05 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has quit [Connection reset by peer] |
07:11 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has joined #code |
07:12 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has quit [Connection reset by peer] |
07:19 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has joined #code |
07:20 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has quit [Client closed the connection] |
07:28 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has joined #code |
07:44 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has quit [Client closed the connection] |
07:46 | | Anno[Laptop] [annodomini@Nightstar-42db73b9.adsl.tpnet.pl] has joined #code |
07:51 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has joined #code |
07:51 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has quit [Client closed the connection] |
07:59 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has joined #code |
08:18 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has quit [Client closed the connection] |
08:24 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has joined #code |
08:29 | | Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [[NS] Quit: ] |
08:34 | | Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code |
08:35 | | Syloqs_AFH is now known as Syloqs-AFH |
09:43 | | You're now known as TheWatcher |
10:05 | | Anno[Laptop] [annodomini@Nightstar-42db73b9.adsl.tpnet.pl] has quit [[NS] Quit: leaving] |
10:28 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Client closed the connection] |
10:41 | | DBot [Reiver@Nightstar-7bfad333.xnet.co.nz] has joined #code |
10:42 | | Reiver [reaverta@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds] |
10:43 | | DiceBot [Reiver@Nightstar-237a311c.xnet.co.nz] has quit [Ping timeout: 121 seconds] |
10:43 | | DBot is now known as DiceBot |
10:47 | | Reiver [reaverta@ServerAdministrator.Nightstar.Net] has joined #code |
10:47 | | mode/#code [+qo Reiver Reiver] by ChanServ |
10:52 | | Vornicus is now known as Vornicus-Latens |
11:33 | | Anno[Laptop] [annodomini@F67919.F326B3.98D923.BDA7B6] has joined #code |
12:06 | | Orthia [orthianz@Nightstar-0987540b.xnet.co.nz] has quit [Ping timeout: 121 seconds] |
12:10 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has joined #code |
12:53 | | Anno[Laptop] [annodomini@F67919.F326B3.98D923.BDA7B6] has quit [[NS] Quit: COLD.] |
12:57 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code |
13:25 | | Anno[Laptop] [annodomini@Nightstar-42db73b9.adsl.tpnet.pl] has joined #code |
13:35 | | Anno[Laptop] [annodomini@Nightstar-42db73b9.adsl.tpnet.pl] has quit [[NS] Quit: BRB.] |
13:36 | | Anno[Laptop] [annodomini@Nightstar-42db73b9.adsl.tpnet.pl] has joined #code |
14:03 | | celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has joined #code |
14:47 | | celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
14:49 | | Stalker [Stalker@3A600C.A966FF.5BF32D.8E7ABA] has joined #code |
15:00 | | Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has joined #code |
15:02 | | Stalker [Stalker@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds] |
15:18 | | underm|nd [under@Nightstar-a053e6ff.dynamic.mundo-r.com] has joined #code |
15:27 | | Anno[Laptop] is now known as AnnoDomini |
15:35 | | underm|nd [under@Nightstar-a053e6ff.dynamic.mundo-r.com] has quit [[NS] Quit: go play] |
15:51 | | Stalker [Stalker@26ECB6.A4B64C.298B52.D80DA0] has joined #code |
15:51 | | Stalker is now known as GoneRah |
16:32 | | Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code |
17:28 | | Attilla [Some.Dude@Nightstar-8bcd39e8.threembb.co.uk] has joined #code |
17:28 | | mode/#code [+o Attilla] by Reiver |
17:36 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has quit [Connection reset by peer] |
17:44 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has joined #code |
18:01 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has quit [Client closed the connection] |
18:08 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has joined #code |
18:15 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has quit [Client closed the connection] |
18:20 | | celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has joined #code |
18:29 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has joined #code |
18:35 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has quit [Client closed the connection] |
18:42 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has joined #code |
18:43 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has quit [Client closed the connection] |
18:58 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has joined #code |
19:01 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has quit [Connection reset by peer] |
19:34 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has joined #code |
20:13 | | celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
20:51 | | Alek [omegaboot@Nightstar-96006922.il.comcast.net] has quit [Ping timeout: 121 seconds] |
20:52 | | Alek [omegaboot@Nightstar-96006922.il.comcast.net] has joined #code |
21:00 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has quit [Ping timeout: 121 seconds] |
21:05 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has joined #code |
22:07 | | Orthia [orthianz@Nightstar-1fb828ca.xnet.co.nz] has quit [Ping timeout: 121 seconds] |
22:16 | | Taki^ [Taki@Nightstar-0816732d.consolidated.net] has quit [[NS] Quit: MaGix « §nøw§târ-Infinitüm 1.4.3 » Get it for free at http://www.magixproject.net] |
22:17 | | Stalker [Stalker@26ECB6.A4B64C.298B52.D80DA0] has joined #code |
22:18 | | GoneRah [Stalker@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 122 seconds] |
22:46 | | Orthia [orthianz@Nightstar-77ad062a.xnet.co.nz] has joined #code |
23:09 | | Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Client closed the connection] |
23:41 | < gnolam> | http://spectrum.ieee.org/computing/software/ray-kurzweils-slippery-futurism/0 |
23:41 | < gnolam> | Hah! More people who share my views on Kurzweil. |
23:44 | | shade_of_cpux is now known as cpux[uggh] |
23:46 | | cpux[uggh] is now known as cpux |
23:48 | | celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code |
23:49 | < AnnoDomini> | So, are there any libraries/somethings for C++ that make using Strings less of a total pain in the ass? I'm talking about a level of ease of use like, say, Java or Perl. I've heard that bstring is good, but how good is it? |
23:50 | <@McMartin> | ... std::string is much easier to use than Java strings. What are you trying to do? |
23:50 | < celticminstrel> | What's wrong with std::string? |
23:51 | < AnnoDomini> | Comparing strings stands out. Also the interplay between character arrays and strings. |
23:51 | < celticminstrel> | Comparing strings is even easier than Java: s1 < s2 |
23:52 | <@McMartin> | boost::algorithm provides a variety of additional string operations that make life easier for things like systematic recasing. |
23:52 | <@McMartin> | Formatting means you need to use std::stringstream and the << notation, mostly. |
23:53 | < AnnoDomini> | Huh? When I wanted to check if two strings are the same, I had to do something like: "!one.cmp(two)", compared to Java's "one.equals(two)". |
23:53 | <@McMartin> | Interplay between character arrays and strings is no easier or harder in C++ than Java - there's a method that gives you an equivalent array. |
23:53 | <@McMartin> | AnnoDomini: ... You Are Doing It Wrong. |
23:53 | < celticminstrel> | AnnoDomini: You can use regular comparison operators on strings. |
23:53 | <@McMartin> | The way to check equality on strings is "a == b" |
23:53 | < celticminstrel> | Just write "one == two" |
23:53 | < AnnoDomini> | I never knew that. |
23:54 | <@McMartin> | std::stringstream is also the equivalent of Java's StringWriter and is syntactically identical to using std::cout |
23:54 | < AnnoDomini> | Does it work with a string and some characters in quotes? |
23:55 | <@McMartin> | char * will autocast to string as part of comparators if the compiler can conclusively prove that's the only possible interpretation. |
23:55 | <@McMartin> | If it can't, you can do it with a manual constructor: a += string("YARRRR") |
23:55 | < celticminstrel> | The comparison operators only work on string literals if the other operand is a string variable, basically. Or something like that. |
23:55 | <@McMartin> | Right |
23:55 | <@McMartin> | "foo" + "bar" won't work, string("foo") + "bar" will probably work, string("foo") + string("bar") will always work. |
23:55 | <@McMartin> | And it's a value class, not an immutable reference a la Java. |
23:56 | <@McMartin> | Which lets you have loops that append to strings be linear instead of quadratic. |
23:56 | < celticminstrel> | Of course, yes, the string literals thing is more noticeable with the concatenation operator. |
23:56 | < celticminstrel> | (Since there's no reason anyone would want to compare two string literals!) |
23:56 | <@McMartin> | (string literals have to work like C's horribly broken non-strings.) |
23:57 | <@McMartin> | (design restriction; life sucks; wear a helmet) |
23:57 | <@McMartin> | (At least it makes the foreign function interfaces a lot easier) |
23:57 | < Namegduf> | I wouldn't call them "broken", but "non-strings" is right. |
23:57 | < celticminstrel> | (How so?) |
23:57 | < Namegduf> | They're just byte arrays |
23:57 | <@McMartin> | (Most system libraries are written in C; C++ string literals can be used against them with zero overhead) |
23:58 | <@McMartin> | (std::strings can be used against them with the overhead of a usually inlined function call to c_str() |
23:58 | < AnnoDomini> | Returning to an early question - what I wanted to do was try my hand at a console-based game. I'd do this is Java, but I can't make heads or tails of how Java is supposed to work with console for this specific application. |
23:58 | <@McMartin> | Aha, yeah |
23:59 | <@McMartin> | So you're linking curses. |
23:59 | <@McMartin> | std::string is your best bet for to-from byte arrays. |
23:59 | < AnnoDomini> | Yeah, curses seems to be the way to go for everything console in C++. |
23:59 | <@McMartin> | curses is a C library, though, so char * everywhere |
--- Log closed Tue Nov 30 00:00:09 2010 |