←2006-11-24 2006-11-25 2006-11-26→ ↑2006 ↑all
00:01:05 -!- ivan` has quit (" HydraIRC -> http://www.hydrairc.com <- The professional IRC Client").
00:14:53 <Asztal> Didn't old versions of GCC used to start playing the towers of hanoi if you encountered certain undefined behaviour?
00:15:09 <RodgerTheGreat> yes
00:15:22 <RodgerTheGreat> and failing that, they'd load up Nethack
00:15:40 <RodgerTheGreat> 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 <GreaseMonkey> welcome to undernet
02:35:36 <RodgerTheGreat> you mean "ünternet"?
02:36:45 -!- Asztal has quit (Read error: 104 (Connection reset by peer)).
02:38:06 <GreaseMonkey> something like that
03:09:08 -!- Asztal has joined.
04:35:23 <Razor-X> RodgerTheGreat: What's the Java equivalent of a struct?
04:36:43 <GreaseMonkey> a struct in a stupid lang
04:37:35 <Razor-X> ?
04:45:46 <RodgerTheGreat> 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 <GreaseMonkey> Razor-X: Wtf are you doing programming in *java* anyway?!
04:47:30 <Razor-X> GreaseMonkey: Cross portability, high level (moreso than C).
04:47:43 <Razor-X> 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 <Razor-X> I basically need some sort of container for bytes that can be fed to an output port serially.
04:49:11 <RodgerTheGreat> 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 <Razor-X> A struct is really simple. It's a chunk of contiguous memory containing the variables of choice.
04:50:30 <GreaseMonkey> higher level, higher lag, higher filesize.
04:50:47 <GreaseMonkey> and higher frustration, and higher chance of getting sacked.
04:50:50 <Razor-X> GreaseMonkey: If this was time critical, I'd do it in C.
04:50:56 <RodgerTheGreat> 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 <Razor-X> It's a concept test, which I prefer to do in an easier environment.
04:52:05 <Razor-X> 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 <RodgerTheGreat> ah
04:53:17 <Razor-X> 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 <Razor-X> But managing timeouts in C is a *pain*.
04:57:26 <Razor-X> Do I have to use an array of bytes ? I wanted something named, so...
04:58:13 <GreaseMonkey> well, there's MOV eax,[edx+0x4C] and stuff
04:58:44 <Razor-X> Forth's as low as I (like to regularly) go, sorry.
05:00:52 <GreaseMonkey> 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 <Razor-X> Scheme is what I prefer.
05:01:08 <calamari> hi
05:01:24 <Razor-X> Heya.
05:01:40 <GreaseMonkey> hey calamari!
05:01:51 <calamari> hi greasy
05:02:58 <calamari> what was your old nick? hehe
05:03:02 <GreaseMonkey> me=thematrixeatsyou
05:03:10 <calamari> right
05:03:18 <calamari> thanks
05:04:11 <Razor-X> I can't even believe I coded before I learned Lisp.
05:04:17 <Razor-X> It was like, an enlightenment.
05:04:22 <calamari> had to go to 5 stores to find a halfway decent kitchen apron for my wife, and then it was $20
05:04:26 <Razor-X> RodgerTheGreat: CharSequences are what I need, no?
05:05:23 <RodgerTheGreat> erm... you mean a character array?
05:05:36 <Razor-X> No, I mean a CharSequence.
05:06:08 <Razor-X> It seems to be the low-level mechanism behind Strings.
05:06:29 <Razor-X> Oh... but it's read-only :(
05:06:38 <GreaseMonkey> Razor-X: MOV $2000,Razor-X; ADD $2000,UserSuggestions; MOV ($2000),LearnARealLanguage
05:07:17 <GreaseMonkey> 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 <xor> haha java
05:50:27 <CakeProphet> lol
05:50:46 -!- CakeProphet has changed nick to notCakeProphet.
05:51:05 <xor> Am I the only one here who actually likes c?
05:52:33 * GregorR huggles C.
05:53:17 <notCakeProphet> Probably.
05:53:26 <notCakeProphet> I find C annoying.
05:53:28 <notCakeProphet> ...
05:53:48 <notCakeProphet> Oh sure it's machine efficient... but it sucks at human efficiency.
05:54:10 <xor> C is fun
05:54:24 <xor> Lets you be creative
05:54:54 <notCakeProphet> All programming languages do that. ;)
05:55:15 <GregorR> 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 <GregorR> Also, D is awesome.
05:55:47 <xor> Yeah, compiling to asm for a new language is stupid
05:56:03 <GregorR> C is very nice because nothing is black-box.
05:56:10 <xor> exactly
05:56:13 <GregorR> It's an easy transform from the language to machine code.
05:56:18 <GregorR> You can mentally compile everything.
05:56:29 <GregorR> Unlike Java, where EVERYTHING is black-box.
05:56:40 <GregorR> (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 <Razor-X> That I definitely agree with.
07:19:26 -!- Asztal has quit ("Chatzilla 0.9.75 [IceWeasel 1.0.1b2] (kidding!)").
07:22:10 <Razor-X> Forth is even better though. No type checking.
07:23:01 <Razor-X> Want to make a character out of a cell? Forth doesen't care, it'll just use the least significant byte.
07:24:02 <Razor-X> Double precision integers, for example, take up two stack positions and need special words to modify.
07:24:20 <Razor-X> 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 <ihope> Actually, I read from left to right.
21:54:33 <RodgerTheGreat> I read based on a complex and ad-hoc algorithm
21:56:43 <GregorR> WHAT R READ MEANING
21:57:57 <ihope> lol idot its wen u putwords in ur hed
21:58:08 <RodgerTheGreat> lol
21:58:08 <ihope> :--D
22:01:40 <Asztal> 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 <Asztal> Caused by a # at the edge of a program, but I'm sure it's caused by something far more sinister
22:02:19 <RodgerTheGreat> hm
22:02:40 <RodgerTheGreat> well, at least it proves you aren't the first one to make that mistake
22:03:13 <Asztal> I think it's a different mistake with the same result, because theirs does it in befunge-93 mode too :)
22:03:17 <RodgerTheGreat> are you sure that #'s at the edge of a program aren't defined by the standard to infinite loop? :)
22:03:26 <Asztal> mine is ... something to do with wrapping
22:21:44 <Razor-X> GregorR: Does D have a good socket library?
22:22:50 <Razor-X> No, not the C FFI. No. No.
22:22:57 <Razor-X> NO! NEVER!
22:23:06 <Razor-X> (Uggh. Managing 30 structs gets tiring quickly.)
22:29:50 -!- jix_ has quit ("Bitte waehlen Sie eine Beerdigungnachricht").
22:40:45 <Asztal> yarr, fixed :)
22:41:02 <Asztal> 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 <GregorR> Razor-X: It has std.socketstream, which (shockingly) treats sockets as streams. Very easy to use.
23:25:01 <xor> this sepperation of functions and variables in common lisp is really getting on my nerves
23:27:58 <xor> no, i don't want to do (funcall x ...), i just want to do (x ...)
23:32:40 -!- oerjan has joined.
23:33:47 <ihope> I love LISP too.
23:34:26 <ihope> Not that I've done much with it.
23:35:01 <xor> i'm reading _ai programming, case studies in lisp_
23:49:20 <SimonRC> 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 <xor> haha (gps '(unknown poor) '(rich famous))
23:50:05 <SimonRC> Heh, KoL has a basic test of English grammar and spelling before you are allowed to use the chat feature.
23:50:11 <oerjan> what is zipping?
23:50:26 <oerjan> ah, i remember.
23:51:11 <oerjan> i believe the ghc compiler for haskell has an extension to the list comprehension syntax called parallel, which is essentially zipping.
23:51:30 <xor> zip([1,2],[3,4]) == [[1,3],[2,4]], right?
23:51:48 <SimonRC> roughly, yes
23:51:53 <oerjan> i.e. [(x,y) | x <- m | y <- l] = zip m l
23:52:28 <SimonRC> I was thinking mostly but not only of languages like Java or C#.
23:52:37 <SimonRC> oerjan: nice, I think.
23:52:45 <oerjan> of course haskell also has the zipBy high-level function.
23:52:59 <oerjan> which is portable.
23:54:17 <SimonRC> ITYM "zipWith"
23:54:25 -!- tgwizard has quit (Remote closed the connection).
23:54:37 <oerjan> oh, right. i've made that mistake before.
23:55:01 <oerjan> there are some other "genericized" functions that use the By suffix, i believe.
23:55:47 <oerjan> sortBy e.g.
23:56:21 <SimonRC> They take an argument that specifies equality/comparison criteria.
23:56:24 <oerjan> perhaps python?
23:57:09 <oerjan> although you could probably make one in Java.
23:59:18 <SimonRC> ??!
23:59:42 <SimonRC> You are suggesting that I can *make* a new control structure in Java?
←2006-11-24 2006-11-25 2006-11-26→ ↑2006 ↑all