2014-11-09T00:00:13Z petercommand quit (Ping timeout: 265 seconds) 2014-11-09T00:00:32Z Riastradh joined #scheme 2014-11-09T00:00:58Z petercommand joined #scheme 2014-11-09T00:02:21Z peterhil joined #scheme 2014-11-09T00:21:29Z mdibound joined #scheme 2014-11-09T00:25:37Z funktionsRkewl: vanila: sorry, what's reading? 2014-11-09T00:25:46Z mdibound quit (Ping timeout: 255 seconds) 2014-11-09T00:26:08Z vanila: lisp is so simple you don't have to parse it, just read it 2014-11-09T00:27:10Z ivan\ joined #scheme 2014-11-09T00:29:27Z funktionsRkewl: right, going to hit google, I thought parsing was just the stuff before evaluating, like making sure all the tokens have meaning 2014-11-09T00:33:32Z leppie quit (Ping timeout: 256 seconds) 2014-11-09T00:34:24Z joast quit (Ping timeout: 245 seconds) 2014-11-09T00:48:45Z leppie joined #scheme 2014-11-09T00:53:02Z mdibound joined #scheme 2014-11-09T00:54:29Z leppie quit (Ping timeout: 264 seconds) 2014-11-09T01:01:47Z leppie joined #scheme 2014-11-09T01:18:53Z githogori quit (Ping timeout: 240 seconds) 2014-11-09T01:32:53Z amgarchIn9 quit (Ping timeout: 255 seconds) 2014-11-09T01:40:15Z kongtomorrow quit 2014-11-09T01:45:44Z vanila quit (Quit: Leaving) 2014-11-09T01:47:54Z kongtomorrow joined #scheme 2014-11-09T02:07:23Z nerock398 joined #scheme 2014-11-09T02:08:56Z nerock398: Hello everyone 2014-11-09T02:25:14Z tobik quit (Ping timeout: 245 seconds) 2014-11-09T02:26:16Z tobik joined #scheme 2014-11-09T02:27:58Z jeapostrophe quit (Ping timeout: 250 seconds) 2014-11-09T02:31:55Z kongtomorrow quit 2014-11-09T02:44:25Z githogori joined #scheme 2014-11-09T02:48:26Z nerock398: Hello anyone there 2014-11-09T02:48:50Z githogori quit (Ping timeout: 258 seconds) 2014-11-09T02:49:34Z offby1: nobody here but us zombie processes. 2014-11-09T02:52:39Z nerock398: are you a scheme programmer? 2014-11-09T02:52:40Z nerock398: lol 2014-11-09T02:59:10Z rudybot: nerock398: he claims to be a scheme programmer, but you can't trust anything he says 2014-11-09T03:02:28Z githogori joined #scheme 2014-11-09T03:08:47Z githogori quit (Ping timeout: 265 seconds) 2014-11-09T03:13:06Z githogori joined #scheme 2014-11-09T03:14:16Z nerock398: I really need help on somethign i cant quite figure out 2014-11-09T03:15:02Z nerock398: Does anyone in here know scheme? 2014-11-09T03:16:57Z mdibound quit (Quit: Be back later ...) 2014-11-09T03:17:29Z mdibound joined #scheme 2014-11-09T03:23:34Z cojy: what do you need help with 2014-11-09T03:25:59Z offby1: rudybot knows scheme pretty well 2014-11-09T03:25:59Z offby1: rudybot: (+ 1 2 3 (* 8 9 10) (exp 2 20)) 2014-11-09T03:25:59Z rudybot: *offby1: error: exp: arity mismatch; the expected number of arguments does not match the given number expected: 1 given: 2 arguments...: 2 20 2014-11-09T03:25:59Z offby1: heh 2014-11-09T03:25:59Z offby1: rudybot: (+ 1 2 3 (* 8 9 10) (expt 2 20)) 2014-11-09T03:25:59Z rudybot: *offby1: ; Value: 1049302 2014-11-09T03:28:22Z funktionsRkewl quit (Ping timeout: 246 seconds) 2014-11-09T03:35:59Z nerock398: http://ideone.com/ZroAbu 2014-11-09T03:36:03Z nerock398: with that 2014-11-09T03:36:44Z nerock398: I made a function but i dont understand why when i do (test '(1 2 3 4)) 2014-11-09T03:36:55Z nerock398: it gives me back (1 2 3 4) 2014-11-09T03:37:49Z kongtomorrow joined #scheme 2014-11-09T03:37:51Z kongtomorrow quit (Client Quit) 2014-11-09T03:38:22Z nerock398: cojy: do you know what my problem is? 2014-11-09T03:38:34Z mdibound quit (Quit: Be back later ...) 2014-11-09T03:39:12Z mdibound joined #scheme 2014-11-09T03:39:26Z kongtomorrow joined #scheme 2014-11-09T03:41:07Z cojy: im not sure its a problem but i can tell you why it happens 2014-11-09T03:41:21Z cojy: (define (revhalf x L) L) 2014-11-09T03:41:33Z cojy: that wont do anything other than return L 2014-11-09T03:41:37Z nerock398: see, i thought thats what it was 2014-11-09T03:41:45Z nerock398: how can i get it to return me a number 2014-11-09T03:41:56Z nerock398: i mean list 2014-11-09T03:43:33Z cojy: it does return a list 2014-11-09T03:43:35Z cojy: the one you put in 2014-11-09T03:43:37Z mdibound quit (Ping timeout: 260 seconds) 2014-11-09T03:43:51Z cojy: do you want it to do something to the list before returning it 2014-11-09T03:43:58Z cojy: like use the rest of the code thats there 2014-11-09T03:44:03Z mdibound joined #scheme 2014-11-09T03:45:32Z nerock398: yeah, i want it to basically reverse the lists in half For example: (reverseListHalves '(1 2 3 4 5 6 7 8 9)) would return (4 3 2 1 5 9 8 7 6). 2014-11-09T03:45:58Z nerock398: if its odd it leaves the middle number alone 2014-11-09T03:47:33Z nerock398: I was thinking counting the list splitting it in half then reversing the right side then do the same to the left side 2014-11-09T03:47:43Z nerock398: and concatenate the whole thing together into one list 2014-11-09T03:49:51Z cojy: that sounds like a good plan to me 2014-11-09T03:50:40Z davexunit quit (Quit: Later) 2014-11-09T03:56:58Z cojy: nerock398: you can do it in a single function pretty easy, take the length with (length some-list) 2014-11-09T03:57:47Z cojy: then test if its even with (even? len), then you can (/ len 2) to get the spot you want to split at 2014-11-09T03:58:25Z cojy: traverse the list till that point collecting what you've passed and incrementing/decrementing a counter until you hit the middle 2014-11-09T03:58:33Z cojy: and return what you've collected with what's left 2014-11-09T03:58:38Z cojy: appended with* 2014-11-09T04:02:20Z cojy: https://www.refheap.com/92950 2014-11-09T04:09:51Z cojy: does that help nerock398 2014-11-09T04:13:34Z pjb: nerock398: http://paste.lisp.org/+33CR 2014-11-09T04:24:34Z mdibound quit (Quit: Be back later ...) 2014-11-09T04:24:36Z pjb: nerock398: actually, I meant the following, in a single pass: http://paste.lisp.org/+33CR/1 2014-11-09T04:25:05Z cojy: did you benchmark it against mine pjb 2014-11-09T04:25:08Z mdibound joined #scheme 2014-11-09T04:25:53Z pjb: cojy: no need. Mine doesn't conses three times the length of the list like yours. 2014-11-09T04:27:13Z cojy: i wonder why it would go and do that 2014-11-09T04:28:04Z pjb: append and length are O(n) operations. 2014-11-09T04:28:26Z pjb: It's even worse that that, you're using append in a loop, so you have a O(n²) operation here. 2014-11-09T04:28:36Z cojy: did you read the code? 2014-11-09T04:28:54Z cojy: it doesn't append in a loop 2014-11-09T04:29:19Z pjb: Ok, but append copies l or (cdr l). 2014-11-09T04:29:22Z nerock398 quit (Ping timeout: 240 seconds) 2014-11-09T04:29:44Z mdibound quit (Ping timeout: 255 seconds) 2014-11-09T04:35:01Z cojy: i think it might have been intentional for readability 2014-11-09T04:35:11Z cojy: but who knows why code does the thing it does 2014-11-09T04:39:31Z pjb: I don't mind (define (revhalf lst) (let ((mid (truncate (length lst) 2))) (append (reverse (subseq lst 0 mid)) (reverse (subseq lst mid))))), but if you consider it as an exercise in list manipulation, perhaps we want to minimize memory accesses. (also, notice I didn't left the middle element in the middle in the case of an odd length). 2014-11-09T04:50:36Z goglosh joined #scheme 2014-11-09T04:56:33Z leo2007 quit (Quit: rcirc on GNU Emacs 25.0.50.1) 2014-11-09T04:59:08Z mdibound joined #scheme 2014-11-09T05:02:52Z leo2007 joined #scheme 2014-11-09T05:03:50Z mdibound quit (Ping timeout: 256 seconds) 2014-11-09T05:04:28Z goglosh quit (Quit: leaving) 2014-11-09T05:04:52Z mdibound joined #scheme 2014-11-09T05:16:32Z BossKonaSegwaY1 quit (Ping timeout: 250 seconds) 2014-11-09T05:35:37Z BossKonaSegwaY joined #scheme 2014-11-09T05:57:49Z kilimanjaro quit (Changing host) 2014-11-09T05:57:49Z kilimanjaro joined #scheme 2014-11-09T06:08:17Z tcsc_ quit (Quit: computer sleeping) 2014-11-09T06:19:48Z githogori quit (Ping timeout: 250 seconds) 2014-11-09T06:21:11Z githogori_ joined #scheme 2014-11-09T06:38:14Z kazimir42 joined #scheme 2014-11-09T06:46:59Z Nizumzen quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) 2014-11-09T06:58:57Z jusss` joined #scheme 2014-11-09T07:04:26Z jusss` is now known as jusss 2014-11-09T07:23:53Z gravicappa joined #scheme 2014-11-09T07:24:28Z mdibound quit (Quit: Be back later ...) 2014-11-09T07:25:04Z mdibound joined #scheme 2014-11-09T07:26:00Z mdibound quit (Read error: Connection reset by peer) 2014-11-09T07:26:36Z mdibound joined #scheme 2014-11-09T07:37:59Z oleo__ joined #scheme 2014-11-09T07:38:41Z oleo is now known as Guest59548 2014-11-09T07:39:24Z Guest59548 quit (Ping timeout: 258 seconds) 2014-11-09T07:41:23Z acarrico quit (Ping timeout: 240 seconds) 2014-11-09T07:42:20Z pjb quit (Ping timeout: 255 seconds) 2014-11-09T07:43:19Z rsf quit (Ping timeout: 265 seconds) 2014-11-09T07:45:40Z mdibound quit (Quit: Be back later ...) 2014-11-09T07:46:14Z mdibound joined #scheme 2014-11-09T07:46:55Z rsf joined #scheme 2014-11-09T07:48:26Z mdibound quit (Read error: Connection reset by peer) 2014-11-09T07:48:53Z mdibound joined #scheme 2014-11-09T07:51:06Z pjb joined #scheme 2014-11-09T07:52:11Z jumblerg joined #scheme 2014-11-09T07:52:41Z rsf quit (Ping timeout: 264 seconds) 2014-11-09T08:00:55Z mdibound quit (Quit: Be back later ...) 2014-11-09T08:01:29Z mdibound joined #scheme 2014-11-09T08:05:37Z mdibound quit (Ping timeout: 244 seconds) 2014-11-09T08:13:08Z mdibound joined #scheme 2014-11-09T08:14:20Z xyh joined #scheme 2014-11-09T08:14:26Z xyh left #scheme 2014-11-09T08:17:21Z BossKonaSegwaY quit (Ping timeout: 258 seconds) 2014-11-09T08:19:35Z rsf joined #scheme 2014-11-09T08:24:52Z rsf quit (Ping timeout: 240 seconds) 2014-11-09T08:30:02Z BossKonaSegwaY joined #scheme 2014-11-09T08:37:04Z bb010g quit (Quit: Connection closed for inactivity) 2014-11-09T08:41:19Z masm joined #scheme 2014-11-09T08:57:33Z Nizumzen joined #scheme 2014-11-09T09:16:51Z gravicappa quit (Read error: Connection reset by peer) 2014-11-09T09:32:35Z aftershave joined #scheme 2014-11-09T09:36:16Z aftershave quit (Client Quit) 2014-11-09T09:42:52Z stepnem joined #scheme 2014-11-09T09:54:20Z leo2007 quit (Ping timeout: 258 seconds) 2014-11-09T09:55:18Z sonstwo joined #scheme 2014-11-09T09:55:41Z ffs quit (Ping timeout: 265 seconds) 2014-11-09T09:56:14Z jusss quit (Ping timeout: 256 seconds) 2014-11-09T10:01:46Z leo2007 joined #scheme 2014-11-09T10:04:17Z Isp-sec joined #scheme 2014-11-09T10:16:36Z amgarchIn9 joined #scheme 2014-11-09T10:17:47Z oleo__ quit (Quit: Verlassend) 2014-11-09T10:18:53Z Nizumzen quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) 2014-11-09T10:19:06Z agumonkey joined #scheme 2014-11-09T10:19:49Z agumonkey quit (Client Quit) 2014-11-09T10:20:20Z agumonkey joined #scheme 2014-11-09T10:22:59Z FracV quit (Ping timeout: 255 seconds) 2014-11-09T10:23:53Z FracV joined #scheme 2014-11-09T10:32:18Z hiroakip joined #scheme 2014-11-09T10:34:43Z oleo joined #scheme 2014-11-09T10:37:17Z agumonkey quit (Quit: ZNC - http://znc.in) 2014-11-09T10:37:23Z mmc joined #scheme 2014-11-09T10:38:01Z agumonkey joined #scheme 2014-11-09T10:41:42Z agumonkey quit (Client Quit) 2014-11-09T10:42:13Z agumonkey joined #scheme 2014-11-09T10:44:03Z robot-beethoven quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-09T11:06:24Z amgarchIn9 quit (Ping timeout: 258 seconds) 2014-11-09T11:12:55Z rsf joined #scheme 2014-11-09T11:20:11Z rsf quit (Ping timeout: 264 seconds) 2014-11-09T11:20:15Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-09T11:28:54Z FracV quit (Changing host) 2014-11-09T11:28:54Z FracV joined #scheme 2014-11-09T11:34:46Z hiroakip quit (Ping timeout: 265 seconds) 2014-11-09T11:43:28Z mmc quit (Ping timeout: 265 seconds) 2014-11-09T11:47:04Z teiresias quit (Ping timeout: 255 seconds) 2014-11-09T11:47:56Z BossKonaSegwaY quit (Read error: Connection reset by peer) 2014-11-09T11:48:07Z teiresias joined #scheme 2014-11-09T11:48:32Z BossKonaSegwaY joined #scheme 2014-11-09T11:48:52Z rsf joined #scheme 2014-11-09T11:53:50Z hiroakip joined #scheme 2014-11-09T11:54:35Z rsf quit (Ping timeout: 265 seconds) 2014-11-09T12:15:55Z MouldyOldBones quit (Ping timeout: 250 seconds) 2014-11-09T12:20:22Z phipes quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2014-11-09T12:21:03Z rsf joined #scheme 2014-11-09T12:25:14Z Nerock joined #scheme 2014-11-09T12:27:03Z Nerock: can someone help me reverse a list and truncate the end? 2014-11-09T12:27:30Z Nerock: i basically have the functions i just cant seem to implement them or see whats wrong 2014-11-09T12:27:45Z Nerock: http://ideone.com/GQRSQc 2014-11-09T12:28:48Z Nerock: when i do (revhalf '(1 2 3 4 5 6)) i just get back (6 5 4 3 2 1) 2014-11-09T12:29:26Z davexunit joined #scheme 2014-11-09T12:32:29Z MouldyOldBones joined #scheme 2014-11-09T12:34:20Z kongtomorrow quit 2014-11-09T12:40:24Z BitPuffin joined #scheme 2014-11-09T12:42:32Z pjdelport quit (Quit: Connection closed for inactivity) 2014-11-09T12:44:47Z jusss joined #scheme 2014-11-09T12:51:27Z kazimir42 quit (Ping timeout: 250 seconds) 2014-11-09T12:53:09Z acarrico joined #scheme 2014-11-09T12:55:51Z Imk0tter quit (Ping timeout: 272 seconds) 2014-11-09T13:04:38Z fizzie: Nerock: "removelastHalf" seems to take the first x elements, and you give it (Length L) as x, so it won't really do anything, as that's all of the list. (The code in general is also somewhat messy.) 2014-11-09T13:09:52Z haroldwu quit (Ping timeout: 240 seconds) 2014-11-09T13:10:24Z haroldwu joined #scheme 2014-11-09T13:11:40Z BossKonaSegwaY quit (Ping timeout: 255 seconds) 2014-11-09T13:18:58Z xyh joined #scheme 2014-11-09T13:23:30Z jusss` joined #scheme 2014-11-09T13:25:23Z jusss quit (Ping timeout: 240 seconds) 2014-11-09T13:26:34Z vanila joined #scheme 2014-11-09T13:31:32Z cdan joined #scheme 2014-11-09T13:43:04Z taylanub quit (Disconnected by services) 2014-11-09T13:43:59Z taylanub joined #scheme 2014-11-09T13:50:41Z BossKonaSegwaY joined #scheme 2014-11-09T14:02:47Z jusss` quit (Remote host closed the connection) 2014-11-09T14:03:37Z oldskirt_ joined #scheme 2014-11-09T14:07:05Z oldskirt quit (Ping timeout: 264 seconds) 2014-11-09T14:25:22Z jusss joined #scheme 2014-11-09T14:26:47Z MouldyOldBones quit (Ping timeout: 250 seconds) 2014-11-09T14:33:00Z jusss quit (Read error: Connection reset by peer) 2014-11-09T14:33:38Z jusss joined #scheme 2014-11-09T14:43:55Z hiroakip quit (Remote host closed the connection) 2014-11-09T14:45:32Z kazimir42 joined #scheme 2014-11-09T14:56:00Z oldskirt_ quit (Ping timeout: 256 seconds) 2014-11-09T15:06:37Z jusss quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-09T15:11:17Z BitPuffin quit (Ping timeout: 264 seconds) 2014-11-09T15:12:20Z BitPuffin joined #scheme 2014-11-09T15:12:23Z Nerock quit (Ping timeout: 240 seconds) 2014-11-09T15:12:39Z tcsc joined #scheme 2014-11-09T15:14:12Z xyh quit (Remote host closed the connection) 2014-11-09T15:14:43Z xyh joined #scheme 2014-11-09T15:16:30Z mdibound quit (Quit: Be back later ...) 2014-11-09T15:26:21Z davexunit quit (Quit: Later) 2014-11-09T15:39:25Z b4283 joined #scheme 2014-11-09T15:43:52Z oldskirt joined #scheme 2014-11-09T15:49:49Z xyh quit (Remote host closed the connection) 2014-11-09T16:06:56Z ijp joined #scheme 2014-11-09T16:09:48Z xyh joined #scheme 2014-11-09T16:17:18Z mdibound joined #scheme 2014-11-09T16:21:46Z hiroakip joined #scheme 2014-11-09T16:21:53Z mdibound quit (Ping timeout: 258 seconds) 2014-11-09T16:23:34Z hiroakip quit (Max SendQ exceeded) 2014-11-09T16:23:57Z hiroakip joined #scheme 2014-11-09T16:35:05Z daviid joined #scheme 2014-11-09T16:39:24Z mdibound joined #scheme 2014-11-09T16:40:41Z visualshock joined #scheme 2014-11-09T16:45:14Z hiroakip quit (Ping timeout: 245 seconds) 2014-11-09T16:45:52Z hiroakip joined #scheme 2014-11-09T16:48:08Z jusss joined #scheme 2014-11-09T16:49:10Z visualshock quit (Quit: Leaving) 2014-11-09T16:55:05Z tcsc quit (Quit: computer sleeping) 2014-11-09T16:56:59Z amgarchIn9 joined #scheme 2014-11-09T16:59:10Z jusss quit (Quit: Bye) 2014-11-09T16:59:12Z mdibound quit (Quit: Be back later ...) 2014-11-09T16:59:28Z civodul joined #scheme 2014-11-09T16:59:48Z mdibound joined #scheme 2014-11-09T17:03:52Z mdibound quit (Ping timeout: 240 seconds) 2014-11-09T17:08:55Z macdice quit (Remote host closed the connection) 2014-11-09T17:09:09Z macdice joined #scheme 2014-11-09T17:10:01Z tcsc joined #scheme 2014-11-09T17:23:26Z catcherx joined #scheme 2014-11-09T17:40:34Z pjb quit (Remote host closed the connection) 2014-11-09T17:41:42Z pjb joined #scheme 2014-11-09T17:42:05Z pjb is now known as Guest18024 2014-11-09T17:42:16Z xyh quit (Read error: Connection reset by peer) 2014-11-09T17:43:17Z Guest18024 is now known as pjb 2014-11-09T17:47:07Z pjb quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-09T17:47:27Z pjb joined #scheme 2014-11-09T17:51:12Z amgarchIn9 quit (Ping timeout: 258 seconds) 2014-11-09T17:54:00Z BitPuffin quit (Ping timeout: 250 seconds) 2014-11-09T17:54:08Z mmc joined #scheme 2014-11-09T18:00:17Z mdibound joined #scheme 2014-11-09T18:04:37Z mdibound quit (Ping timeout: 258 seconds) 2014-11-09T18:09:49Z hiroakip quit (Ping timeout: 245 seconds) 2014-11-09T18:18:29Z acarrico quit (Ping timeout: 264 seconds) 2014-11-09T18:26:59Z kongtomorrow joined #scheme 2014-11-09T18:30:42Z acarrico joined #scheme 2014-11-09T18:31:49Z b4283 quit (Quit: Konversation terminated!) 2014-11-09T18:32:57Z amgarchIn9 joined #scheme 2014-11-09T18:48:59Z mdibound joined #scheme 2014-11-09T18:55:23Z xyh joined #scheme 2014-11-09T19:03:41Z githogori_ quit (Ping timeout: 250 seconds) 2014-11-09T19:05:09Z sheilong joined #scheme 2014-11-09T19:06:07Z gravicappa joined #scheme 2014-11-09T19:06:53Z BitPuffin joined #scheme 2014-11-09T19:15:17Z zacts joined #scheme 2014-11-09T19:21:04Z kongtomorrow quit 2014-11-09T19:24:25Z amgarchIn9 quit (Ping timeout: 260 seconds) 2014-11-09T19:25:48Z oldskirt quit (Read error: Connection reset by peer) 2014-11-09T19:26:20Z oldskirt joined #scheme 2014-11-09T19:31:57Z visualshock joined #scheme 2014-11-09T19:32:56Z kongtomorrow joined #scheme 2014-11-09T19:33:44Z visualshock quit (Client Quit) 2014-11-09T19:34:35Z visualshock joined #scheme 2014-11-09T19:43:52Z xyh quit (Read error: Connection reset by peer) 2014-11-09T19:49:54Z jeapostrophe joined #scheme 2014-11-09T19:50:03Z jeapostrophe quit (Changing host) 2014-11-09T19:50:03Z jeapostrophe joined #scheme 2014-11-09T19:57:45Z phipes joined #scheme 2014-11-09T20:02:17Z sheilong quit (Quit: Konversation terminated!) 2014-11-09T20:03:13Z askatasuna joined #scheme 2014-11-09T20:06:27Z oleo__ joined #scheme 2014-11-09T20:06:56Z kazimir42 quit (Remote host closed the connection) 2014-11-09T20:07:11Z oleo is now known as Guest37634 2014-11-09T20:07:45Z oleo__ quit (Read error: Connection reset by peer) 2014-11-09T20:08:03Z Guest37634 quit (Ping timeout: 258 seconds) 2014-11-09T20:11:33Z oleo__ joined #scheme 2014-11-09T20:11:54Z oleo__ is now known as oleo 2014-11-09T20:12:34Z pjdelport joined #scheme 2014-11-09T20:24:17Z joneshf-laptop quit (Read error: Connection reset by peer) 2014-11-09T20:24:24Z joneshf-laptop_ joined #scheme 2014-11-09T20:26:50Z joneshf-laptop_ quit (Max SendQ exceeded) 2014-11-09T20:27:27Z joneshf-laptop_ joined #scheme 2014-11-09T20:40:23Z ffs joined #scheme 2014-11-09T20:40:28Z sonstwo quit (Ping timeout: 244 seconds) 2014-11-09T20:42:39Z kazimir42 joined #scheme 2014-11-09T20:44:08Z phipes quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2014-11-09T20:51:17Z oldskirt_ joined #scheme 2014-11-09T20:54:24Z oldskirt quit (Ping timeout: 264 seconds) 2014-11-09T20:58:37Z bb010g joined #scheme 2014-11-09T21:00:12Z phipes joined #scheme 2014-11-09T21:00:15Z kazimir42 quit (Ping timeout: 250 seconds) 2014-11-09T21:05:35Z gf3 quit (Ping timeout: 255 seconds) 2014-11-09T21:06:28Z gf3 joined #scheme 2014-11-09T21:11:12Z Isp-sec quit (Ping timeout: 264 seconds) 2014-11-09T21:19:26Z BossKonaSegwaY quit (Ping timeout: 244 seconds) 2014-11-09T21:34:21Z BossKonaSegwaY joined #scheme 2014-11-09T21:34:41Z xyh joined #scheme 2014-11-09T21:36:00Z githogori joined #scheme 2014-11-09T21:40:09Z gravicappa quit (Remote host closed the connection) 2014-11-09T21:40:32Z mrowez is now known as mrowe 2014-11-09T21:46:04Z phipes quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2014-11-09T21:49:02Z alezost quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-09T21:51:46Z cdan quit (Quit: Leaving) 2014-11-09T21:53:50Z micahjam97 joined #scheme 2014-11-09T21:54:41Z micahjam97: hello every body! 2014-11-09T21:55:15Z micahjam97: I wanted to learn Lisp and wasn't wether to try learning Common Lisp or Scheme first 2014-11-09T21:55:42Z MichaelRaskin: Scheme is smaller and cleaner 2014-11-09T21:56:02Z MichaelRaskin: (And I use Common Lisp in my day job, so not just a Scheme fanatic) 2014-11-09T21:56:48Z MichaelRaskin: So if the question is about learning, grab any Scheme that looks nice (or Racket, which is Scheme descendant) and learn it 2014-11-09T21:57:12Z micahjam97: what does scheme have over CL 2014-11-09T21:57:23Z MichaelRaskin: The language specification is shorter 2014-11-09T21:57:47Z antoszka: micahjam97: http://c2.com/cgi/wiki?LispSchemeDifferences 2014-11-09T21:58:49Z offby1: micahjam97: scheme is probably improving faster 2014-11-09T21:59:00Z offby1: not all that fast, but faster than CL 2014-11-09T21:59:32Z cojy: scheme has better learning materials 2014-11-09T21:59:37Z cojy: is the most important thing 2014-11-09T22:00:06Z MichaelRaskin: Especially if you want to learn it systematically… 2014-11-09T22:00:13Z MichaelRaskin: Even the standard is readable 2014-11-09T22:00:20Z antoszka: CL is improving in the form of libraries. There won't be an updated CL ANSI spec any time soon. 2014-11-09T22:00:47Z MichaelRaskin: Tutorials for Lisp teach you to hack your way through the problem to get to the level where you can read the specification 2014-11-09T22:00:51Z antoszka: (and implementations, some of which are excellent). They're just different languages with different goals in mind. 2014-11-09T22:01:03Z antoszka: Superficially similar. 2014-11-09T22:01:11Z antoszka: Learn both. 2014-11-09T22:01:22Z micahjam97 quit (Ping timeout: 246 seconds) 2014-11-09T22:01:34Z MichaelRaskin: Also, Scheme thinks that functions are ordinary values and Lisp differentiates functions-stored-in-variables and globally-defined functions in more interesting ways 2014-11-09T22:06:07Z MichaelRaskin quit (Ping timeout: 250 seconds) 2014-11-09T22:08:10Z xyh quit (Remote host closed the connection) 2014-11-09T22:10:01Z githogori quit (Ping timeout: 272 seconds) 2014-11-09T22:20:22Z MichaelRaskin joined #scheme 2014-11-09T22:23:19Z stepnem quit (Ping timeout: 272 seconds) 2014-11-09T22:24:41Z xyh joined #scheme 2014-11-09T22:35:57Z goglosh joined #scheme 2014-11-09T22:45:15Z civodul quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-09T22:46:14Z oldskirt joined #scheme 2014-11-09T22:47:47Z oldskirt_ quit (Ping timeout: 245 seconds) 2014-11-09T22:54:02Z masm quit (Ping timeout: 258 seconds) 2014-11-09T23:04:22Z stamourv` joined #scheme 2014-11-09T23:04:39Z pjb` joined #scheme 2014-11-09T23:05:29Z rudybot quit (Ping timeout: 250 seconds) 2014-11-09T23:06:18Z rudybot joined #scheme 2014-11-09T23:06:21Z Riastradh quit (Ping timeout: 250 seconds) 2014-11-09T23:08:04Z taylanub: MichaelRaskin: functions are ordinary values in any lisp; in lisp-2 there's just an additional function namespace where symbols can refer to said functions. 2014-11-09T23:08:31Z stamourv quit (Ping timeout: 250 seconds) 2014-11-09T23:08:37Z taylanub: or are 'defun'ed functions and those created with 'lambda' somehow fundamentally different in CL? 2014-11-09T23:08:57Z pjb quit (Ping timeout: 250 seconds) 2014-11-09T23:09:14Z MichaelRaskin: No, not fundamentally 2014-11-09T23:09:18Z MichaelRaskin: Only naming 2014-11-09T23:10:09Z MichaelRaskin: You can extract function-value out of defun'ed symbol, or change defun'ed symbol function to a function value you provide 2014-11-09T23:19:52Z sigjuice: Can someone help me understand a basic math thing from SICP? 2014-11-09T23:22:22Z vanila: yes 2014-11-09T23:24:15Z sigjuice: The section 'Streams and Delayed Evaluation' talks about solving the differential equation dy/dt = f(y) 2014-11-09T23:24:27Z micahjam97 joined #scheme 2014-11-09T23:24:33Z Nerock joined #scheme 2014-11-09T23:25:06Z sigjuice: Is y supposed to be a function in t? If yes, then I am not sure what f(y) refers to. 2014-11-09T23:25:07Z visualshock quit (Quit: Leaving) 2014-11-09T23:25:58Z vanila: which section is that? 2014-11-09T23:26:02Z vanila: if they write dy/dt then y must be a function of t 2014-11-09T23:26:10Z vanila: f(y) could be short for f(y(t)) 2014-11-09T23:26:31Z sigjuice: http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-24.html#%_sec_3.5.4 2014-11-09T23:28:57Z vanila: the example they give is to solve dy/dt = y 2014-11-09T23:29:04Z vanila: wth y(0) = 1 2014-11-09T23:29:05Z micahjam97: are you talking about calculus? 2014-11-09T23:29:11Z vanila: yes 2014-11-09T23:30:01Z vanila: so that's a function whose slope is equal to itself 2014-11-09T23:30:11Z vanila: remember that d/dx exp(x) = exp(x) 2014-11-09T23:30:25Z vanila: so y = exp(t) solves this, 2014-11-09T23:30:38Z vanila: that's just one example 2014-11-09T23:31:05Z vanila: I guess this procedure can find almost any function whose slope is some given function 2014-11-09T23:33:33Z micahjam97: dy/dt is the same as y = (lim Dt -> 0)( (f(t + Dt) - f(t)) / Dt) in mathe mathmatical notation 2014-11-09T23:34:42Z micahjam97: Dt is the change in t 2014-11-09T23:37:36Z daviid quit (Ping timeout: 264 seconds) 2014-11-09T23:39:16Z sigjuice: I understand that the left side is the derivative of a function. i.e. the operator d/dt applied to a function y(t) 2014-11-09T23:40:31Z sigjuice: I am still not clear on what the right side f(y) means. (or f(y(t)) as vanilla suggested) 2014-11-09T23:40:53Z vanila: so the LHS is a function of t 2014-11-09T23:41:00Z vanila: since it's the derivative of a function of t 2014-11-09T23:41:07Z vanila: an the RHS must be the same thing too, then 2014-11-09T23:41:34Z bjz quit (Ping timeout: 258 seconds) 2014-11-09T23:41:46Z vanila: although it defines a function implicitly 2014-11-09T23:41:56Z sigjuice: that makes sense. but then why not say the right side is f(t), in that case? 2014-11-09T23:42:06Z Nerock: is this the scheme progranming lang chatroom? 2014-11-09T23:42:11Z vanila: Nerock, yes 2014-11-09T23:42:27Z vanila: sigjuice, I think that's because it can't be any old function of t, must be a function of y of t 2014-11-09T23:42:51Z oldskirt quit (Ping timeout: 244 seconds) 2014-11-09T23:43:13Z micahjam97 quit (Ping timeout: 246 seconds) 2014-11-09T23:43:38Z Nerock: weuld anyone be willing to help me with this? I just want to reverse half of the list and trow the rest away http://ideone.com/GQRSQc 2014-11-09T23:47:42Z catcherx quit (Ping timeout: 258 seconds) 2014-11-09T23:50:31Z cojy: Nerock: did you see my paste last night 2014-11-09T23:56:29Z amgarchIn9 joined #scheme