00:03:05 -!- CakeProphet has quit (Ping timeout: 260 seconds). 00:04:42 -!- CakeProphet has joined. 00:10:09 -!- BeholdMyGlory has quit (*.net *.split). 00:10:09 -!- iamcal has quit (*.net *.split). 00:10:50 -!- copumpkin has quit (Quit: Computer has gone to sleep.). 00:12:34 -!- bsmntbombdood has quit (Remote host closed the connection). 00:13:53 -!- BeholdMyGlory has joined. 00:13:53 -!- iamcal has joined. 00:39:56 > fix (drop 1) :: [Int] 00:40:00 mueval-core: Time limit exceeded 00:53:03 > fix (take 1) :: [Int] 00:53:07 mueval-core: Time limit exceeded 00:53:20 heh 00:54:14 > fix (map (const 2)) 00:54:18 mueval-core: Time limit exceeded 00:55:32 you'll probably get the same result for most [a] -> [a] functions. 01:02:57 > fix ("you don't say?":) 01:02:58 ["you don't say?","you don't say?","you don't say?","you don't say?","you d... 01:23:13 -!- copumpkin has joined. 01:23:14 -!- copumpkin has quit (Changing host). 01:23:14 -!- copumpkin has joined. 02:09:08 -!- augur has joined. 02:12:18 -!- augur has quit (Remote host closed the connection). 02:35:19 -!- pikhq_ has joined. 02:38:44 -!- pikhq has quit (Ping timeout: 250 seconds). 02:50:42 -!- calamari has joined. 03:21:16 -!- augur has joined. 04:25:08 Can player phone the wall? 04:27:02 -!- calamari has quit (Quit: Leaving). 04:28:21 -!- twice11 has quit (Ping timeout: 244 seconds). 04:28:25 -!- twice11 has joined. 04:36:27 -!- oerjan has quit (Quit: Good night). 04:40:01 -!- CakeProphet has quit (Ping timeout: 258 seconds). 04:41:40 -!- CakeProphet has joined. 04:47:46 -!- derrik has joined. 04:48:07 -!- derrik has left. 04:57:33 -!- azaq23 has joined. 05:21:35 -!- foocraft has joined. 05:23:46 In C, is it an error to cast from a function pointer to non-function pointer or vice versa when compiling to harvard architectures unless you double-cast it by first casting to a numeric type? (It should be, in my opinion. But only for harvard architectures and only if you do not double-cast.) 05:27:54 It is undefined behavior, and thus always an error. 05:28:04 I mean a compiler error. 05:28:37 That *is* valid. 05:28:49 It would also be valid to have the elephants go on parade. 06:01:38 I remember I once made a computer game where at one point of the game, you are given two choices, you can select either "Can Pikachu electrify the light?" or "Can player phone the wall?" Also in the game is someone who says he will give you two water energies but only if you don't need it. 06:08:16 sounds amazing 06:09:04 Someone else in the game once asks you if you like keys. 06:11:51 it depends highly on context for me; sometimes I love them and sometimes I hate them 06:28:10 Also in the game is a wizard who does nothing except ask what Pikachu wants. He is standing in a store that only sells two things, food dish and candy. 06:28:39 Also you can find on the floor a "hand energy" which can be used for making pizza later on in the game. 06:29:45 If you select the "Can player phone the wall?" option, the game responds with the message "space echo rings". 06:30:33 this makes me want to make games 06:31:34 Then make a game. 06:31:47 I have made many computer games. 06:31:55 You can learn, too. 06:32:21 Some games I make using MegaZeux. You can download one version of MegaZeux at: http://zzo38computer.cjb.net/mzx1/mzx_extended/ 06:32:35 (That is a directory listing; you must select the files you want to download.) 06:32:48 (And be aware that the online help (when you push F1) has some errors in it.) 06:32:54 HAPPY CAPS LOCK DAY 06:33:10 Of course is also possible using C, QBASIC, and whatever else you want to use. 06:33:15 Including paper. 06:40:20 -!- aloril has quit (Ping timeout: 252 seconds). 06:48:17 -!- aloril has joined. 06:56:54 -!- monqy has quit (Quit: hello). 07:05:41 -!- CakeProphet has quit (Ping timeout: 250 seconds). 07:08:18 -!- pikhq has joined. 07:08:27 -!- pikhq_ has quit (Ping timeout: 258 seconds). 07:16:25 -!- CakeProphet has joined. 07:16:25 -!- CakeProphet has quit (Changing host). 07:16:25 -!- CakeProphet has joined. 07:38:56 -!- zzo38 has quit (Remote host closed the connection). 08:03:19 -!- jcp has quit (Ping timeout: 250 seconds). 08:04:35 -!- jcp|1 has quit (Ping timeout: 255 seconds). 08:12:56 -!- jcp has joined. 08:18:32 -!- jcp has quit (Ping timeout: 252 seconds). 08:32:53 -!- Vorpal has joined. 08:35:26 -!- jcp has joined. 08:44:56 -!- jcp has quit (Ping timeout: 252 seconds). 08:47:56 -!- jcp has joined. 08:50:56 -!- foocraft has quit (Ping timeout: 255 seconds). 09:03:42 -!- foocraft has joined. 09:07:11 -!- foocraft has quit (Client Quit). 09:13:26 -!- augur has quit (Ping timeout: 276 seconds). 10:51:23 -!- ais523 has joined. 11:47:50 Java doesn't let you golf enoguh. 11:47:51 enough* 11:48:27 This is bad. 11:55:24 why on Earth would you even expect that from Java. 11:56:17 I think golfing a large project would be fun. It provides some new challenges 11:56:32 and since the byte counts are larger, there's more room to work in fancy tricks to drop the byte count. 12:01:42 for example, with source filters in Perl you could shorten operators and keywords, add semicolons, and have then compress the source. 12:02:54 oh and I guess you could expand macros, since I don't think Perl has macros. 12:09:51 Lymee: have you seen the trick of putting your code in an enum initialiser? 12:26:47 -!- copumpkin has quit (Quit: Computer has gone to sleep.). 12:27:07 i think you could do some interesting golfing in jvm bytecode maybe 12:38:40 ais523, eh? 12:38:52 Lymee: for golfing Java 12:38:58 What's the trick? 12:39:05 it's incredibly bad style, but it actually works 12:39:09 I can't remember the exact way it's done 12:39:13 let me find it on anagolf 12:39:20 CakeProphet, I'd love to have a contest to, say, actually implement an language requiring a complex parser. 12:39:44 Then make examples requiring non-cheating. 12:39:52 I wish you could set it up to make a "generator" program. 12:39:57 Each run, it is fed a random number 12:40:04 It uses this random number to generate input and output set. 12:40:15 Then, cheating implementations are defeated. 12:41:15 -!- CakeProphet has quit (Ping timeout: 244 seconds). 12:41:33 here's an example program using the trick, a golfed Java infinite loop by narb: enum _{_;int i;{for(;i<1;);}} 12:42:15 (I assume the i<1 is in there because unreachable code produces compile errors in Java, so it had to look like it was doing something) 12:43:08 -!- CakeProphet has joined. 12:43:08 -!- CakeProphet has quit (Changing host). 12:43:09 -!- CakeProphet has joined. 12:43:12 ais523, clever. 12:43:31 A compile-time detected infinite loop -- like a for (;;) -- fails with: "initializer must be able to complete normally" 12:43:54 I suppose infinite loops in initializers is not generally a useful thing to be able to do 12:46:50 "enum _{_;{for(;Math.E<3;);}}" would be one character shorter, but unfortunately also gives the same complaint, perhaps because Math.E is "final". 12:51:32 -!- Vorpal has quit (Ping timeout: 240 seconds). 13:37:15 the main problem here 13:37:18 is that you're golfing in Java. 13:41:06 !perl ... 13:41:08 syntax error at /tmp/input.24328 line 1, near "..." 13:41:19 !perl print sub {...} 13:41:19 syntax error at /tmp/input.24391 line 1, near "{..." 13:41:36 hmmm? I thought ... was a legitimate filler-code syntax... 13:42:57 !perl sub test {...} print test 13:42:58 syntax error at /tmp/input.24567 line 1, near "{..." 13:47:18 -!- oerjan has joined. 13:48:05 ... is an operator, at least; a variant of the .. operator. 13:50:37 -!- augur has joined. 13:52:35 It works differently in the strange scalar flip-flop case. 13:53:23 "the strange scalar flip-flop case" sounds like a book title gone awry 13:55:34 !perl for (1..3) { print if ($_ == 2) .. ($_ > 0); } 13:55:34 2 13:55:38 !perl for (1..3) { print if ($_ == 2) ... ($_ > 0); } 13:55:39 23 13:58:04 The .. operator becomes false already on the $_ == 2 round, while the ... operator waits (doesn't evaluate the right side) until the $_ == 3 round. 13:58:52 "Obviously." 14:03:10 Here's another silly thing. 14:03:17 !perl for (1..5) { $v = ($_ == 3 .. $_ == 5); print "($v)" } 14:03:18 ​()()(1)(2)(3E0) 14:04:03 The last returned true value has "E0" after it; doesn't change the numeric value, but is distinguishable if necessary. 14:04:15 Reminds one of the "0 but true" thing. 14:08:37 romance in iwc? truly the world is coming to an end 14:18:44 -!- CakeProphet has quit (Ping timeout: 276 seconds). 14:20:18 -!- CakeProphet has joined. 14:20:18 -!- CakeProphet has quit (Changing host). 14:20:19 -!- CakeProphet has joined. 14:22:42 -!- ais523 has quit (Ping timeout: 252 seconds). 14:52:05 -!- CakeProphet has quit (Ping timeout: 276 seconds). 14:56:23 -!- oerjan has quit (Quit: Later). 15:31:56 -!- Tritonio has joined. 15:49:14 -!- Vorpal has joined. 16:33:45 -!- pikhq_ has joined. 16:34:03 -!- pikhq has quit (Read error: Operation timed out). 16:35:35 -!- Phantom_Hoover has joined. 16:35:43 @messages? 16:35:43 Sorry, no messages today. 16:54:01 -!- SgeoN1 has joined. 16:57:16 -!- SgeoN1 has quit (Read error: Connection reset by peer). 16:57:43 -!- SgeoN1 has joined. 16:59:52 -!- SgeoN1 has quit (Read error: Connection reset by peer). 17:00:16 -!- SgeoN1 has joined. 17:01:48 -!- SgeoN1 has quit (Read error: Connection reset by peer). 17:07:59 !perl time 17:08:31 !javascript 1 17:08:43 It's perl time! 17:19:03 It's Perl Time::HiRes. 17:31:19 -!- Tritonio has quit (Quit: Leaving). 17:33:16 -!- MigoMipo has joined. 17:47:40 -!- sebbu has quit (Read error: Connection reset by peer). 17:48:24 -!- sebbu has joined. 17:48:24 -!- sebbu has quit (Changing host). 17:48:24 -!- sebbu has joined. 17:50:28 -!- derrik has joined. 17:50:43 -!- derrik has left. 18:04:13 -!- monqy has joined. 18:17:56 -!- sebbu2 has joined. 18:17:57 -!- sebbu2 has quit (Changing host). 18:17:57 -!- sebbu2 has joined. 18:20:12 -!- sebbu has quit (Ping timeout: 240 seconds). 18:20:12 -!- sebbu2 has changed nick to sebbu. 18:58:17 * pikhq_ continues to wonder at "The Hobbit" being split into 2 films, but Lord of the Rings not being split into 6. 18:59:54 pikhq_: 4 films if you count the two extended editions (of the two hobbit films) 19:02:15 and iirc the extended lord of the rings films run to about 12h in total, which is close to 6 films if you split it to normal-length films 19:02:31 Okay, true. 19:02:47 That alone testifies that they shouldn't have freaking made LotR into a film series. 19:02:58 It's fundamentally incompatible. 19:08:30 pikhq_, by which you mean it was significantly better than the books 19:08:49 Phantom_Hoover: I won't argue that the books are well-written or anything. 19:09:06 Just that the thing is fundamentally incompatible with the film medium. 19:09:17 And probably also incompatible with the novel medium as well, TBH. 19:09:21 pikhq_, the films were pretty good. 19:09:44 The films were also radically distinct from the books. 19:09:48 Sure, they had pacing problems, but they were a relatively minor detriment. 19:10:19 'Radically distinct' as in 'they got rid of Bombadil and Saruman's invasion of the Shire'? 19:10:46 Also huge swathes of stuff about trees and hills and stuff. 19:10:50 -!- foocraft has joined. 19:13:09 I for one didn't notice any of the differences between the books and the films 19:31:47 -!- oerjan has joined. 19:44:19 -!- jcp|other has joined. 20:11:53 Does anyone here know how to get X working from within a chroot? 20:18:38 My god is this yet more plot development I see in IWC. 20:20:21 phantom: a syscall trace (ie. strace/ktrace/truss) should be helpful in figuring out what X wants 20:20:45 newsham, it simply does not connect to the display. 20:21:00 I know this is an Xauth problem because I solved it before, but I've forgotten how. 20:21:10 probably because its trying to connect to a unix domain socket that is not in its chroot 20:41:09 Yeah, you'll need to link in the unix socket file or use DISPLAY=localhost:0 instead (for TCP), and you'll have to get the .Xauthority file and set XAUTHORITY= 20:41:47 or use "xauth" cmd line to add the specific entries you want 20:42:24 -!- ais523 has joined. 20:44:02 Gregor, I have a bind mount for /tmp, but there doesn't actually seem to be a socket file there. 20:45:11 netstat 20:45:53 ls -a /tmp/.X11-unix shows it as empty. 20:46:38 In my normal root, as well. 20:47:22 and netstat says? 20:47:38 netstat shows /tmp/.X11-unix/X0. 20:47:46 I don't even want to think about this. 20:48:03 I assume it's some deep Unix magic? 20:48:09 maybe you're in a chroot under a chroot under a chroot 20:48:16 inside a simulator inside a virtual world 20:48:48 ls -l /tmp/.X11-unix/X0 shows nada? 20:49:15 Yep. 20:50:08 Gregor, oh, and of course, I don't have a .Xauthority file. 20:50:40 phantom: strace/truss/ktrace "xeyes" see what its doing to reach X and to auth 20:52:37 newsham: /tmp/I/N/C/E/P/T/I/O/N/tmp/.X11-unix/X0 20:53:07 maybe he's on the thirteenth floor 20:53:49 newsham, you know strace is like impossible to extract useful information from, right? 20:54:19 ph: you're on the brainfuck channel. you're kidding, right? 20:54:41 newsham, the *ostensible* brainfuck channel. 20:54:45 Biiiiig difference. 20:55:23 honestly, i've found strace to be very helpful in situations like this. 20:57:15 No mention of 'auth' anywhere. 20:57:43 do you see it connecting to some socket? 20:58:40 Yeah, it connects to X0. 21:29:56 -!- jix has quit (Ping timeout: 260 seconds). 21:40:38 -!- MigoMipo has quit (Read error: Connection reset by peer). 21:45:50 -!- azaq23 has quit (Quit: Leaving.). 22:03:25 -!- CakeProphet has joined. 22:03:26 -!- CakeProphet has quit (Changing host). 22:03:26 -!- CakeProphet has joined. 22:03:43 CakeProphet! 22:04:52 -!- Vorpal has quit (Ping timeout: 250 seconds). 22:18:51 * Phantom_Hoover → sleep 22:18:52 -!- Phantom_Hoover has quit (Quit: Leaving).