←2007-04-26 2007-04-27 2007-04-28→ ↑2007 ↑all
00:12:21 <oerjan> can't you funcall with infinite number of parameters by using a cyclic list?
00:12:55 <fax> oerjan: I tried (apply #'format t "..." infinite-list)
00:12:59 <fax> which didnt work
00:13:05 <fax> but I think you are rihgt
00:13:11 <fax> I could just call it without apply
00:13:16 <fax> may work, im not sure
00:13:28 <fax> depends on the behavior of ~?
00:13:37 <fax> (which im not totally sure about)
00:13:40 * fax tests
00:13:49 <oerjan> might be implementation-defined
00:16:11 <oerjan> even then i have a sense you get limited to a pushdown automaton since the positions in the formats and argument lists are your only changeable data that i can see
00:18:28 <oerjan> except, perhaps, if you use the extensible output string as your format string in some clever way...
00:20:45 <oerjan> something like Smith or Muriel
00:22:16 -!- crathman has joined.
00:22:48 -!- crathman has quit (Remote closed the connection).
00:39:40 * fax writes thhis (format nil "~{~^~?~}" '("<~?>" ("[~a]" ("y")))) → <[y]>
00:39:43 * fax gives up again
00:48:17 -!- ihope has joined.
01:07:44 <SimonRC> j0
02:01:35 * pikhq has discovered that Gentoo provides an easy way to get GDC working. . .
02:01:47 <pikhq> Add "d" to USE, recompile GCC; voila.
03:42:45 -!- ihope has quit (Read error: 110 (Connection timed out)).
04:29:15 <SimonRC> If you ever wondered how virtual methods worked, this paper has an excellent explanation, AFAICT: http://www.cs.ucsb.edu/~urs/oocsb/papers/oopsla96.pdf
04:55:55 -!- oerjan has quit ("leaving").
05:32:19 <bsmntbombdood> virtual methods being ones that need to be defined in a subclass?
05:54:15 -!- puzzlet_ has quit (Read error: 104 (Connection reset by peer)).
06:03:45 -!- puzzlet has joined.
06:04:32 -!- puzzlet has quit (Client Quit).
06:05:18 -!- Arrogant has joined.
06:07:54 -!- puzzlet has joined.
06:12:56 -!- puzzlet_ has joined.
06:13:49 -!- puzzlet has quit (Read error: 104 (Connection reset by peer)).
06:45:11 -!- puzzlet_ has quit (Read error: 110 (Connection timed out)).
07:56:07 -!- Arrogant has quit ("Leaving").
07:59:59 -!- clog has quit (ended).
08:00:00 -!- clog has joined.
10:07:51 -!- fax has quit (" ").
11:59:16 -!- ihope has joined.
12:36:20 -!- ihope_ has joined.
12:54:50 -!- ihope has quit (Read error: 110 (Connection timed out)).
12:58:19 -!- pikhq has quit (Read error: 110 (Connection timed out)).
14:28:00 -!- goban has quit (Read error: 104 (Connection reset by peer)).
14:48:00 -!- pikhq has joined.
14:50:23 -!- jix__ has joined.
15:22:15 -!- crathman has joined.
15:26:16 -!- helios24 has quit (Read error: 113 (No route to host)).
15:54:07 -!- jix__ has changed nick to jix.
16:15:52 -!- fax has joined.
16:15:53 <fax> hi
16:38:50 -!- sebbu has joined.
17:18:22 <pikhq> http://omg.worsethanfailure.com/ Anyone else going to work on this?
18:16:03 -!- Arrogant has joined.
18:45:10 -!- ihope_ has quit ("http://tunes.org/~nef/logs/esoteric/06.08.09").
19:00:45 -!- Arrogant has quit (Read error: 113 (No route to host)).
19:21:36 <bsmntbombdood> contest: write a program to print the decimal representation of the 435 fibonacci number
19:22:00 <bsmntbombdood> mine is 35 characters
19:23:49 <bsmntbombdood> least characters wins
19:23:51 -!- helios24 has joined.
19:24:00 * fax tries
19:26:20 -!- jix has quit ("Bitte waehlen Sie eine Beerdigungnachricht").
19:27:50 <lament> hm
19:28:11 <fax> hrm
19:28:11 <fax> [fbs=.2#1
19:28:18 <fax> then do [fbs=.,&fbs+/0 1{fbs 435 times
19:28:28 <fax> then take elemt 0
19:28:30 * fax tries
19:32:14 <fax> bsmntbombdood: whats the 8th fib number?
19:32:29 <fax> its 21 right?
19:33:05 <bsmntbombdood> yes
19:33:38 <lament> damn, i got 39
19:34:02 <lament> almost...
19:34:11 <lament> of course, you're probably using Perl :)
19:34:32 <bsmntbombdood> no, dc
19:34:43 <lament> oh
19:34:45 <lament> heh
19:34:55 <bsmntbombdood> dc might as well stand for "dense code"
19:35:21 <lament> 39, hasekll: let f=0:1:zipWith(+)f(tail f)in f!!435
19:35:43 <fax> damn i I knew how to do somthing several times..
19:35:51 <bsmntbombdood> 0sa1sb435[ladlb+sasb1-d0<f]dsfxlap
19:36:08 <bsmntbombdood> :D
19:36:09 <lament> tricky
19:36:41 <fax> whats that?!
19:40:18 <bsmntbombdood> fax: the program
19:40:41 <fax> what language
19:41:00 <bsmntbombdood> dc
19:41:44 -!- fax has changed nick to faux.
19:44:21 <faux> ugh I dont know J well enough to write this
19:45:01 <faux> oh maybe I know what to do
19:47:45 <bsmntbombdood> yes~
19:47:48 <bsmntbombdood> i beat myself
19:48:25 <bsmntbombdood> 33 chars
19:48:31 <bsmntbombdood> 0sa1 435[rdla+rsar1-d0<f]dsfxlap
19:55:00 <faux> I suck at J
19:55:01 <faux> 0{((2 0{(,+/))^:(435-2))1 1
19:55:04 <faux> thats mine though
19:55:09 <faux> probably possible to make it shorter
19:55:17 <faux> the answer is 3.63194e90?
19:57:30 <lament> something like that.
20:03:01 <sebbu> faux, what's your language ?
20:03:18 <faux> J
20:03:35 <faux> but I dont really know J .. Its hard
20:36:39 -!- faux has changed nick to fax.
21:24:30 <fax> OK I told every other channel... I made a parody of http://www.linuxsoftware.co.nz/containerchoice.png ..... http://img410.imageshack.us/img410/5972/lispcontainerchoicelp9.gif
21:24:41 <fax> can you tell im bored?
21:39:39 <GregorR> Hahahah
21:54:47 <pikhq> Too many damned things I should work on. . .
21:55:09 <pikhq> I still want to try my hand at that Linux distro I've been thinking about. . .
21:58:28 <GregorR> pikhq: My improved Plof interpreter works now :)
21:58:44 <pikhq> GregorR: Speaking of which, I've now got a working D compiler.
21:58:50 <GregorR> Neato.
21:58:57 <pikhq> Yay, Gentoo!
21:58:58 <GregorR> Now all you need is Tango and DSSS, and you can compile it ;P
22:00:23 <pikhq> Could you please do me a favor and either remove that dependency or actually bother with the amd64 port you said you'd work on?
22:00:42 <GregorR> I can't really remove the dependency on Tango.
22:00:49 <GregorR> Well, maybe I could :P
22:02:13 <pikhq> So, I should work on getting myself a nice, shiny new distro instead.
22:02:38 <GregorR> ... or just compile with -m32?
22:02:45 <pikhq> . . . That'd be too easy.
22:02:50 <GregorR> :P
22:03:01 <pikhq> CC="gcc -m32".
22:03:04 <pikhq> Yeah; too easy.
22:05:05 <GregorR> Do you have 32-bit libs installed?
22:05:51 <pikhq> Yeah.
22:05:59 <GregorR> Just grab this binary: http://downloads.dsource.org/projects/tango/0.97/tango-0.97-forDSSS-gdc-i686-pc-linux-gnu-withDSSS-withGDC.sh
22:06:06 <GregorR> One step process ^^
22:06:21 <pikhq> The 32-bit libc actually comes out of the box in Gentoo now. . .
22:06:29 <GregorR> That's either nifty or awful.
22:06:31 <GregorR> I don't know which.
22:06:39 <pikhq> It's just so that gcc -m32 works.
22:06:48 <pikhq> It's not *used* at all unless you install more packages.
22:06:58 <GregorR> Hrm.
22:07:21 <pikhq> (I *think* it's just for simplicity's sake; easier to get the libc package to do both than to have multiple packages which only need to be cared about for x86_64)
22:08:02 <pikhq> . . . Unless maybe busybox is linked against the 32 bit libs?
22:24:31 <bsmntbombdood> oh damn, i got beaten?
22:26:21 <fax> bsmntbombdood: by me?
22:26:32 <bsmntbombdood> "0{((2 0{(,+/))^:(435-2))1 1" ?
22:27:08 <pikhq> What language is that?
22:27:33 <fax> J
22:27:39 <fax> Im sure it could be done better though
22:27:43 <fax> Im not really any good at J
22:27:44 <pikhq> If we're allowed to use *any* language for that competition, then I can *surely* find something that'd win.
22:27:55 <fax> yeah Fibonacci++ :P
22:28:05 <bsmntbombdood> like HQ9 something something?
22:28:14 <pikhq> Turing complete, I'd assume. . .
22:28:23 <pikhq> BrainfuckFib. :p
22:28:47 <bsmntbombdood> using a builtin function is cheating
22:29:09 <pikhq> +++>++++>+++>+++++<<<F
22:29:24 <fax> hehe
22:30:31 <pikhq> Now a Perl implementation would be interesting. . .
22:30:42 <pikhq> Probably get something like a large string of numbers.
22:30:42 <fax> wow
22:30:49 <fax> I bet you guys have seen this a million times
22:30:51 <fax> but incase you havent
22:30:57 <fax> http://montreal.pm.org/tech/neil_kandalgaonkar.shtml
22:31:05 <fax> primeality test regex
22:31:10 <fax> I thought that was great
22:31:15 <pikhq> Not surprised at all.
22:31:39 <pikhq> In such uses, Perl counts as an esolang. . .
22:31:46 <pikhq> Kind of like what IOCCC can be.
22:32:06 <pikhq> m(){n;f(h=1;h<=b;d=1);f(c=2;c<=b;c++)i(e){p("%i\n",c);f(h=c*c;h<=b;h+=c)g=0;}}
22:32:14 <pikhq> That's my personal example.
22:33:06 <pikhq> The list of defines on the command line is about as long as that code. . .
22:34:55 <bsmntbombdood> ah ha!
22:35:04 <bsmntbombdood> a one letter fib program, in C:
22:35:08 <bsmntbombdood> X
22:35:10 <fax> ?±!
22:35:13 <fax> what
22:35:22 <pikhq> X is defined as something else via -D.
22:35:29 <bsmntbombdood> right
22:35:33 <fax> -_-
22:35:34 <pikhq> -D "n=int a[b]" -D f=for -D p=printf -D m=main -D b=10000 -D "c=(a[1])" -D "d=a[h++]" -D e=a[c] -D g=a[h] -D "h=(*a)" -D i=if
22:35:35 <fax> thats cheating
22:35:43 <pikhq> There; the list of defines for my line of C.
22:35:51 <fax> you can use GCC as a brainfuck compiler like that
22:35:52 <fax> heh
22:36:06 <pikhq> It really doesn't get any better after preprocessing. . .
22:37:47 <pikhq> As proof: http://pikhq.nonlogic.org/bar.c
22:37:55 <pikhq> My line after preprocessing and indent.
22:38:50 <pikhq> First person to figure out what it does and how wins a prize.
22:40:07 <fax> :S
22:40:09 <fax> I have no idea
22:43:28 <pikhq> It's a prime number generator.
22:43:40 <fax> see i thought it might be
22:43:41 <pikhq> Now how, I leave as an exercise for the reader.
22:43:47 <fax> but then I thought.. no way
22:43:49 <fax> heh
22:43:52 <pikhq> (just name the algorithm)
22:44:19 <pikhq> fax: Why'd you think 'no way'?
22:46:00 <fax> no % anywhere!
22:46:15 <pikhq> Bah.
22:46:31 <pikhq> Who needs that operation?
22:46:43 <pikhq> And there *is* a %. . . In the printf call.
22:50:26 -!- pikhq has quit (Read error: 104 (Connection reset by peer)).
22:53:40 <bsmntbombdood> i don't understand it
22:53:59 -!- pikhq has joined.
23:03:04 -!- pikhq has quit ("leaving").
23:03:21 -!- pikhq has joined.
23:07:07 -!- oerjan has joined.
23:26:32 <oerjan> i think there is an off by one error in the first for, for starters
23:27:14 -!- crathman has quit ("ChatZilla 0.9.78.1 [Firefox 2.0.0.3/2007030919]").
23:30:27 -!- Sgeo has joined.
23:30:34 <oerjan> basically, i think all the <= 10000 should be < 10000
23:35:29 <oerjan> other than that it looks like an Erasthotenes's sieve
23:35:43 <oerjan> *Eratosthenes
←2007-04-26 2007-04-27 2007-04-28→ ↑2007 ↑all