00:01:05 -!- ivan` has quit (" HydraIRC -> http://www.hydrairc.com <- The professional IRC Client"). 00:14:53 Didn't old versions of GCC used to start playing the towers of hanoi if you encountered certain undefined behaviour? 00:15:09 yes 00:15:22 and failing that, they'd load up Nethack 00:15:40 it's mentioned here: http://en.wikipedia.org/wiki/Undefined_behavior 00:35:04 -!- Sgeo has joined. 00:53:56 -!- ivan` has joined. 01:26:27 -!- GreaseMonkey has joined. 01:38:59 -!- tgwizard has quit (Remote closed the connection). 01:59:53 -!- Asztal has quit (Nick collision from services.). 01:59:59 -!- Azstal has joined. 02:00:02 -!- Azstal has changed nick to Asztal. 02:03:48 -!- Asztal has quit (Nick collision from services.). 02:03:54 -!- Azstal has joined. 02:03:58 -!- Azstal has changed nick to Asztal. 02:05:00 -!- ivan` has quit (" Like VS.net's GUI? Then try HydraIRC -> http://www.hydrairc.com <-"). 02:31:48 welcome to undernet 02:35:36 you mean "ünternet"? 02:36:45 -!- Asztal has quit (Read error: 104 (Connection reset by peer)). 02:38:06 something like that 03:09:08 -!- Asztal has joined. 04:35:23 RodgerTheGreat: What's the Java equivalent of a struct? 04:36:43 a struct in a stupid lang 04:37:35 ? 04:45:46 Razor-X: I'm pretty sure you'd just use a container class- just make a class that has the variables you need, possibly a constructor and (if you want to use information-hiding principles) a collection of getters/setters 04:47:15 Razor-X: Wtf are you doing programming in *java* anyway?! 04:47:30 GreaseMonkey: Cross portability, high level (moreso than C). 04:47:43 RodgerTheGreat: Well, I'd know if it was a general purpose struct, but I need to use the struct's properties of named byte fields. 04:48:08 I basically need some sort of container for bytes that can be fed to an output port serially. 04:49:11 hrm.. well, I may have a weak understanding of the capabilities of structs (I am not a C coder), but you might be able to use chars 04:49:50 A struct is really simple. It's a chunk of contiguous memory containing the variables of choice. 04:50:30 higher level, higher lag, higher filesize. 04:50:47 and higher frustration, and higher chance of getting sacked. 04:50:50 GreaseMonkey: If this was time critical, I'd do it in C. 04:50:56 yeah, I always thought of it as serving the same function as container classes, only less OO overhead when you don't need it 04:51:02 It's a concept test, which I prefer to do in an easier environment. 04:52:05 struct point { int x; int y; } has a size of 2 ints (2*sizeof(int)). The way I'm using structs here though is telling a function to send a struct of size sizeof(struct blah), so that the bytes stay in order. 04:52:34 ah 04:53:17 This is why I was initially reluctant to do this in a higher-level language, because it does get pretty low-level in places. 04:53:42 But managing timeouts in C is a *pain*. 04:57:26 Do I have to use an array of bytes ? I wanted something named, so... 04:58:13 well, there's MOV eax,[edx+0x4C] and stuff 04:58:44 Forth's as low as I (like to regularly) go, sorry. 05:00:52 i still prefer C to anything else except for when it's being a pain in the ass 05:00:58 -!- calamari has joined. 05:01:04 Scheme is what I prefer. 05:01:08 hi 05:01:24 Heya. 05:01:40 hey calamari! 05:01:51 hi greasy 05:02:58 what was your old nick? hehe 05:03:02 me=thematrixeatsyou 05:03:10 right 05:03:18 thanks 05:04:11 I can't even believe I coded before I learned Lisp. 05:04:17 It was like, an enlightenment. 05:04:22 had to go to 5 stores to find a halfway decent kitchen apron for my wife, and then it was $20 05:04:26 RodgerTheGreat: CharSequences are what I need, no? 05:05:23 erm... you mean a character array? 05:05:36 No, I mean a CharSequence. 05:06:08 It seems to be the low-level mechanism behind Strings. 05:06:29 Oh... but it's read-only :( 05:06:38 Razor-X: MOV $2000,Razor-X; ADD $2000,UserSuggestions; MOV ($2000),LearnARealLanguage 05:07:17 gtg food, then i'll be out 05:08:16 -!- GreaseMonkey has quit ("food is good, that's why i'm eating it"). 05:45:57 haha java 05:50:27 lol 05:50:46 -!- CakeProphet has changed nick to notCakeProphet. 05:51:05 Am I the only one here who actually likes c? 05:52:33 * GregorR huggles C. 05:53:17 Probably. 05:53:26 I find C annoying. 05:53:28 ... 05:53:48 Oh sure it's machine efficient... but it sucks at human efficiency. 05:54:10 C is fun 05:54:24 Lets you be creative 05:54:54 All programming languages do that. ;) 05:55:15 My ideal world has C as an intermediary language used by compilers. Takes a lot of strain off of writing compilers (for higher-level languages) without diminishing efficiency to any significant degree. 05:55:23 Also, D is awesome. 05:55:47 Yeah, compiling to asm for a new language is stupid 05:56:03 C is very nice because nothing is black-box. 05:56:10 exactly 05:56:13 It's an easy transform from the language to machine code. 05:56:18 You can mentally compile everything. 05:56:29 Unlike Java, where EVERYTHING is black-box. 05:56:40 (A GPL'd black box now, yes, but still fairly opaque ;) ) 05:57:47 -!- Sgeo has quit (Remote closed the connection). 06:17:42 -!- notCakeProphet has changed nick to CakeProphet. 06:33:45 -!- Asztal has quit (Read error: 104 (Connection reset by peer)). 06:35:47 -!- Asztal has joined. 07:13:58 That I definitely agree with. 07:19:26 -!- Asztal has quit ("Chatzilla 0.9.75 [IceWeasel 1.0.1b2] (kidding!)"). 07:22:10 Forth is even better though. No type checking. 07:23:01 Want to make a character out of a cell? Forth doesen't care, it'll just use the least significant byte. 07:24:02 Double precision integers, for example, take up two stack positions and need special words to modify. 07:24:20 You could, unwarily, use a double precision integer as two normal integers. 07:32:04 -!- calamari has quit ("Leaving"). 07:59:59 -!- clog has quit (ended). 08:00:00 -!- clog has joined. 10:05:27 -!- jix has joined. 10:18:37 -!- wooby has joined. 10:53:45 -!- tgwizard has joined. 12:13:19 -!- Asztal has joined. 12:59:31 -!- CakeProphet has quit ("haaaaaaaaaa"). 13:06:27 -!- tgwizard has quit (Read error: 110 (Connection timed out)). 14:11:57 -!- jix_ has joined. 14:23:10 -!- ihope has joined. 14:29:22 -!- jix has quit (Read error: 110 (Connection timed out)). 16:00:47 -!- tgwizard has joined. 17:14:25 -!- Sgeo has joined. 19:39:44 -!- wooby has quit. 20:04:54 -!- meatmanek has quit ("User disconnected"). 20:05:57 -!- meatmanek has joined. 20:06:05 -!- meatmanek has quit (Remote closed the connection). 20:07:15 -!- meatmanek has joined. 21:36:03 -!- ivan` has joined. 21:48:29 * SimonRC reads up 21:52:44 * ihope reads down 21:53:02 Actually, I read from left to right. 21:54:33 I read based on a complex and ad-hoc algorithm 21:56:43 WHAT R READ MEANING 21:57:57 lol idot its wen u putwords in ur hed 21:58:08 lol 21:58:08 :--D 22:01:40 wow... I had an issue with my befunge interpreter going into an infinite loop, and it turns out that someone else's interpreter does the exact same thing 22:02:12 Caused by a # at the edge of a program, but I'm sure it's caused by something far more sinister 22:02:19 hm 22:02:40 well, at least it proves you aren't the first one to make that mistake 22:03:13 I think it's a different mistake with the same result, because theirs does it in befunge-93 mode too :) 22:03:17 are you sure that #'s at the edge of a program aren't defined by the standard to infinite loop? :) 22:03:26 mine is ... something to do with wrapping 22:21:44 GregorR: Does D have a good socket library? 22:22:50 No, not the C FFI. No. No. 22:22:57 NO! NEVER! 22:23:06 (Uggh. Managing 30 structs gets tiring quickly.) 22:29:50 -!- jix_ has quit ("Bitte waehlen Sie eine Beerdigungnachricht"). 22:40:45 yarr, fixed :) 22:41:02 I don't know how my cube intersection function ever worked, but it's fixed now 23:04:02 -!- CakeProphet has joined. 23:11:42 Razor-X: It has std.socketstream, which (shockingly) treats sockets as streams. Very easy to use. 23:25:01 this sepperation of functions and variables in common lisp is really getting on my nerves 23:27:58 no, i don't want to do (funcall x ...), i just want to do (x ...) 23:32:40 -!- oerjan has joined. 23:33:47 I love LISP too. 23:34:26 Not that I've done much with it. 23:35:01 i'm reading _ai programming, case studies in lisp_ 23:49:20 Does anoyone know of a language with a for-each type loop that can express zipping? I found the lack of one very irritating in C#. 23:50:00 haha (gps '(unknown poor) '(rich famous)) 23:50:05 Heh, KoL has a basic test of English grammar and spelling before you are allowed to use the chat feature. 23:50:11 what is zipping? 23:50:26 ah, i remember. 23:51:11 i believe the ghc compiler for haskell has an extension to the list comprehension syntax called parallel, which is essentially zipping. 23:51:30 zip([1,2],[3,4]) == [[1,3],[2,4]], right? 23:51:48 roughly, yes 23:51:53 i.e. [(x,y) | x <- m | y <- l] = zip m l 23:52:28 I was thinking mostly but not only of languages like Java or C#. 23:52:37 oerjan: nice, I think. 23:52:45 of course haskell also has the zipBy high-level function. 23:52:59 which is portable. 23:54:17 ITYM "zipWith" 23:54:25 -!- tgwizard has quit (Remote closed the connection). 23:54:37 oh, right. i've made that mistake before. 23:55:01 there are some other "genericized" functions that use the By suffix, i believe. 23:55:47 sortBy e.g. 23:56:21 They take an argument that specifies equality/comparison criteria. 23:56:24 perhaps python? 23:57:09 although you could probably make one in Java. 23:59:18 ??! 23:59:42 You are suggesting that I can *make* a new control structure in Java?