←2006-04-18 2006-04-19 2006-04-20→ ↑2006 ↑all
00:56:17 -!- pgimeno has quit (Read error: 104 (Connection reset by peer)).
01:10:25 -!- pgimeno has joined.
03:03:02 -!- GregorR has quit (Remote closed the connection).
03:24:09 -!- GregorR has joined.
04:12:19 <GregorR> I've written a large chunk of a header for C++ that, through setting a bunch of macros et cetera, makes C++ act very much like Java :P
04:12:39 <GregorR> Garbage collection, everything is derived from Object, pass-by-reference, ...
04:12:55 <GregorR> Type safety ...
04:22:43 -!- Arrogant has joined.
04:27:00 <calamari> is it fast?
04:28:16 <calamari> hmm, garbage collection with pointers.. interesting concept
04:44:12 <GregorR> #include <gc/gc_cpp.h>
04:47:19 <GregorR> Is it fast? Idonno, but I didn't do anything particularly complicated, and IIRC Boehm GC is faster than Sun-Java GC in some test.
04:47:31 <GregorR> (Probably skewed by the language)
04:48:41 <calamari> how about being able to return local variables.. guessing no :)
04:49:34 <GregorR> Depends on how you made them.
04:49:39 <GregorR> Actually, no it doesn't.
04:49:41 <GregorR> You always can.
04:50:05 <GregorR> It'd call the copy constructor and the reference count would up.
04:50:07 <calamari> btw if it's fast then it isn't very much like java :(
04:50:10 <GregorR> So no reason why it wouldn't work.
04:50:11 <GregorR> lol
04:50:23 <GregorR> I'm thinking of swapping out Boehm GC for simple reference counting.
04:50:41 <GregorR> I implemented it such that all objects are derived from Object, so I could implement reference counting in Object.
04:50:51 <GregorR> (Transparently of course)
04:52:17 <calamari> remember that lang you were going to make a while back?
04:52:34 <GregorR> I don't recall ever saying I was actually going to make it ;)
04:52:41 <calamari> maybe now you can compile to c++
04:52:42 <GregorR> Just looking into what I thought would be nice.
04:52:50 <GregorR> Hmmn
04:53:08 <GregorR> Well, right now spanishcoffee.h is somewhere between a proof of concept and a joke.
04:53:23 <calamari> never heard of that
04:53:37 <GregorR> Erm, sorry, that's the name for my C++->Javaish header.
04:53:45 <GregorR> Spanish Coffee is coffee with rum.
04:54:09 <GregorR> I suppose you should be more likely to know that than me :P
04:54:28 <calamari> nope.. why would i?
04:54:35 <GregorR> Well, just more likely, since I'm under 21 :P
04:54:45 <calamari> never even drank coffee before
04:54:57 <GregorR> And I've never drank rum ;)
04:55:02 <calamari> never have I :)
04:55:07 <calamari> err neither
04:55:07 <GregorR> Heh
04:55:22 <GregorR> Anyway, it's a big ugly hack and I love it ;P
04:55:24 <calamari> last alcohol I has was probably first grade heh
04:55:35 <GregorR> Hahahah
04:56:01 <GregorR> Wow, I just realized how trivial reference counting would be 8-X
04:56:06 * GregorR swaps in reference counting.
04:56:54 <calamari> turns out IBM is hiring this week so I need to hurry :)
04:57:45 * GregorR shakes his Intel brand fist at you ;)
04:57:54 <GregorR> Actually, that doesn't make any sense.
04:57:56 * calamari patents Gregor's algorithm
04:57:57 <GregorR> IBM sells intel stuff.
04:58:01 <GregorR> lol
04:58:08 <GregorR> What, my reference counting algorithm?
04:58:12 <calamari> yeah
04:58:25 <GregorR> Here it is: refcount++; refcount--; if (!refcount) delete this;
04:58:28 <GregorR> It's reaaaaaaaally complicated.
04:58:58 <calamari> refcount++; refcount--; // optimize this ;)
04:59:24 <GregorR> There's code between there X-P
06:01:51 * GregorR switched back to BGC :P
06:06:22 <Arrogant> Okay, so its not quite esoteric but it certainly is out-of-the-ordinary code manipulation
06:06:26 <Arrogant> http://pasteserver.net/paste/show/260
06:07:40 <lament> you people have never drank rum?
06:07:43 <lament> you haven't lived yet.
06:10:08 <GregorR> <-- 19 years old
06:11:42 <Arrogant> <-- 17 years old
06:19:49 <GregorR> <-- 3 years old
06:20:33 <Arrogant> Sometimes I wonder :)
06:20:57 <Arrogant> Gregor, check out that link I posted, c/c or something, if no one does I'll feel like my time was wasted :D
06:23:22 <lament> GregorR: 19 years old is pretty old.
06:23:30 <lament> don't tell me you never got drunk.
06:23:38 <GregorR> I never got drunk.
06:23:44 <lament> Jeez.
06:23:46 <lament> Americans.
07:09:43 <calamari> ...
07:10:13 <Arrogant> ...
07:10:25 <calamari> ,,,
07:10:35 <Arrogant> syntax error
07:10:41 <Arrogant> please make a new language to accomodate
07:10:48 <calamari> syntax errorsyntax errorsyntax error
07:11:19 <Arrogant> stacklimit too much recursion please insert coin
07:11:59 * calamari opens the coin door and presses the magic button
07:12:21 <Arrogant> FREE PLAYFREE PLAYFREE PLAYFREE PLAYFREE PLAYFREE PLAYFREE PLAYFREE PLAY
07:12:45 <Arrogant> >
07:13:27 <Arrogant> calamari, what have you done esoteric lately
07:13:50 <calamari> Arrogant: nothing, been dealing with real life lately
07:14:05 <Arrogant> I hear ya
07:14:21 <calamari> well, I did get dbc's address so I can mail him his abacus :)
07:14:29 <Arrogant> The only thing remotely related to esoteric languages I've done was this thing I did to make Ruby into a prototype-based language
07:14:33 <Arrogant> Haha
07:14:44 <calamari> so that's kinda esoteric related, since it was from the bf golf contest
07:14:56 * Arrogant nods
07:15:04 <Arrogant> The code is rather horrendous so I think it fits
07:15:05 <Arrogant> http://pasteserver.net/paste/show/262
07:17:47 <calamari> I should learn Ruby sometime
07:18:36 <calamari> looks slightly like python
07:21:14 <Arrogant> Yeah
07:21:31 <Arrogant> Except in Python I like the function model better
07:21:46 <Arrogant> Considering in Ruby function_name doesn't refer to the function object, it calls the function :(
07:21:53 <Arrogant> (parenthesis not required and all)
07:24:44 -!- calamari_ has joined.
07:24:55 -!- calamari_ has quit (Read error: 104 (Connection reset by peer)).
07:25:28 <calamari> ^^ short term memory loss, heh
07:27:45 <Arrogant> Hehe
07:48:39 <Arrogant> You know calamari, prototype-based programming is sorely underrepresented
07:49:54 <Arrogant> Either the language is a poor implementation of the design (Javascript), is outdated (Self), or has absolutely no syntactic sugar, making it a pain (Io)
07:51:29 <lament> what's wrong with Javascript?
07:53:30 * calamari looks up prototype-based programming to gain a clue
07:53:54 <Arrogant> It doesn't really even get the prototyping model right
07:54:08 <Arrogant> calamari, basically it gets rid of the Class/Instance distinction
07:54:15 <Arrogant> Objects are clones of other objects
07:55:09 <Arrogant> person = object.clone ; doctor = person.clone ; doctor.salary = 5000 ; steve = Doctor.clone ; steve.name = "Steve"
07:55:23 <Arrogant> poorly paid doctor
07:56:14 <Arrogant> Changes the way methods are defined as well, as methods have to be assigned like any other object
07:57:17 <Arrogant> I think properly done it could be a fantastic model
07:58:07 <calamari> hmm human.clone ..
07:58:26 * Arrogant hears the right-wing getting ready to protest prototype-based programming
07:59:59 <calamari> wonder if the Libertarian Party will ever gain enough momentum to make a difference... so far, nope
07:59:59 -!- clog has quit (ended).
08:00:00 -!- clog has joined.
08:03:05 <Arrogant> btw, calamari, the code I linked you to was an implementation of ugly, incomplete prototype-based programming in Ruby
08:03:52 <Arrogant> Mostly ugly because of Ruby's unfortunate distinction between blocks and methods :/
08:04:39 <Arrogant> I'd do it in Python except Python doesn't have anonymous blocks
08:17:02 -!- GregorR has quit (Remote closed the connection).
08:17:02 -!- EgoBot has quit (Remote closed the connection).
08:40:44 -!- calamari has quit ("Leaving").
09:17:56 -!- kipple has joined.
09:54:52 -!- puzzlet has joined.
10:09:45 -!- Arrogant has quit ("Leaving").
13:43:07 -!- jix has joined.
14:32:51 -!- sp3tt has quit ("Reconnecting").
14:33:02 -!- sp3tt has joined.
14:56:56 -!- GregorR has joined.
15:43:11 -!- ihope has joined.
15:43:14 <ihope> Scientology... the science of science?
16:13:47 -!- SimonRC has changed nick to Logan-5.
16:14:23 -!- Logan-5 has changed nick to SimonC.
16:14:25 -!- SimonC has changed nick to SimonRC.
16:35:18 <GregorR> ihope: Scientology: The science of attaining ultimate gullibility.
16:35:34 <ihope> Ah.
16:35:37 <GregorR> A science that few have mastered.
16:35:47 <GregorR> Most of them actors or other influential morons.
16:48:36 <SimonRC> nah, there are a lot of plain victims
16:49:03 <SimonRC> To finance the much btter experience by all the famous people.
16:49:42 <SimonRC> *cough* http://clambake.org/ *cough* Ididn'tmentionthissite.
16:51:22 * ihope has a feeling there's a URL between coughs, but upon closer inspection, there is none
17:03:09 <SimonRC> fnord clambake fnord dot fnord org fnord
17:03:21 <SimonRC> >-)
21:20:07 -!- Arrogant has joined.
21:44:37 -!- Arrogant has quit ("Leaving").
22:19:43 -!- Sgeo has joined.
22:24:40 -!- calamari has joined.
22:46:05 -!- calamari has quit ("Leaving").
23:37:06 <kipple> have anybody here used Ruby on Rails?
23:37:27 <lament> my father wants to learn it.
23:37:53 <kipple> looks like it could be a fun and quick way to do web apps
23:50:01 <jix> yay i use it
23:50:04 <jix> it's really cool
23:50:25 <jix> but i have to go to bed now.. school tomorrow and its 1 am here
23:50:30 <jix> (-10min)
23:52:03 -!- jix has quit ("Bitte waehlen Sie eine Beerdigungnachricht").
←2006-04-18 2006-04-19 2006-04-20→ ↑2006 ↑all