2015-01-08T00:00:02Z turbofail: the following expressions are what to return from the loop 2015-01-08T00:00:20Z turbofail: in this particular case we don't really care about returning anything 2015-01-08T00:01:08Z Pixel_Outlaw: I think I prefer do to defining a second recursive definition 2015-01-08T00:01:19Z Pixel_Outlaw: It is a lot cleaner and takes less text.\ 2015-01-08T00:01:40Z vanila: I never use do, it seems too basic 2015-01-08T00:01:42Z Pixel_Outlaw: working now, thanks 2015-01-08T00:01:54Z turbofail: do loops are great, but limited 2015-01-08T00:02:15Z turbofail: if you need a fancier loop, there's foof-loop 2015-01-08T00:02:40Z Pixel_Outlaw: does that approach the monstrosity that is the LOOP of Common Lisp? 2015-01-08T00:03:10Z turbofail: no, foof-loop has well-defined semantics 2015-01-08T00:03:56Z vanila: lol 2015-01-08T00:04:01Z vanila: LOOP is something 2015-01-08T00:04:22Z Riastradh: I like to think foof-loop is much nicer than CL loop. 2015-01-08T00:04:29Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T00:04:35Z Pixel_Outlaw: I'm just playing around with R5RS for now. I might take a look at foof-loop 2015-01-08T00:05:03Z jumblerg joined #scheme 2015-01-08T00:05:06Z Riastradh: foof-loop works in R5RS. 2015-01-08T00:05:41Z Pixel_Outlaw: I guess it needs to be copied and pasted in or included as an additional scheme file though. 2015-01-08T00:06:05Z adu joined #scheme 2015-01-08T00:06:38Z Pixel_Outlaw: I'm doing a little Perlin Noise generator and as you can imagine, there is lots of pixel by pixel operations in writing. So I'm using high order functions that can modify the vector of pixels. 2015-01-08T00:06:55Z Pixel_Outlaw: Learning scheme through a small project... 2015-01-08T00:08:14Z Pixel_Outlaw: My problem is that I always learn just enough of a language to make my projects but always miss some of the deeper elements. 2015-01-08T00:10:44Z vdamewood quit (Quit: Computer has gone to sleep.) 2015-01-08T00:10:46Z enitiz joined #scheme 2015-01-08T00:15:45Z zachstone joined #scheme 2015-01-08T00:17:33Z ddp joined #scheme 2015-01-08T00:30:14Z vdamewood joined #scheme 2015-01-08T00:31:41Z hiyosi quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T00:35:10Z vdamewood quit (Quit: Computer has gone to sleep.) 2015-01-08T00:37:16Z kongtomorrow quit 2015-01-08T00:38:19Z ddp quit (Quit: ddp) 2015-01-08T00:40:08Z ddp joined #scheme 2015-01-08T00:40:47Z ddp quit (Client Quit) 2015-01-08T00:45:01Z Vutral quit (Ping timeout: 244 seconds) 2015-01-08T00:45:21Z Riastradh quit (Ping timeout: 250 seconds) 2015-01-08T00:47:14Z rx_ joined #scheme 2015-01-08T00:49:21Z jlongster quit (Ping timeout: 244 seconds) 2015-01-08T00:49:36Z offby1: *shrug* 2015-01-08T00:50:51Z rx_ quit (Client Quit) 2015-01-08T00:59:23Z Vutral joined #scheme 2015-01-08T01:04:28Z sadclown quit (Quit: WeeChat 1.0.1) 2015-01-08T01:04:49Z amgarching quit (Ping timeout: 245 seconds) 2015-01-08T01:07:08Z echo-area joined #scheme 2015-01-08T01:09:03Z zachstone quit (Ping timeout: 264 seconds) 2015-01-08T01:12:42Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T01:13:27Z amgarching joined #scheme 2015-01-08T01:13:34Z jumblerg joined #scheme 2015-01-08T01:20:22Z jlongster joined #scheme 2015-01-08T01:21:22Z davexunit joined #scheme 2015-01-08T01:33:45Z rtra quit (Ping timeout: 265 seconds) 2015-01-08T01:38:52Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T01:39:03Z stepnem quit (Ping timeout: 264 seconds) 2015-01-08T01:39:48Z rtra joined #scheme 2015-01-08T01:40:51Z jumblerg joined #scheme 2015-01-08T01:41:09Z Pixel_Outlaw: http://pastebin.com/LGUhiCvA 2015-01-08T01:45:05Z Pixel_Outlaw: In the spirit of "Write in C" to the tune of "Love Is All You Need" 2015-01-08T01:47:07Z vanila: Do you knwo God Wrote in lisp code?? 2015-01-08T01:47:15Z vanila: https://www.youtube.com/watch?v=5-OjTPj7K54 2015-01-08T01:53:27Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T01:54:11Z Pixel_Outlaw: >:} 2015-01-08T01:56:32Z pnkfelix quit (Ping timeout: 245 seconds) 2015-01-08T01:59:55Z frkout joined #scheme 2015-01-08T02:00:51Z kongtomorrow joined #scheme 2015-01-08T02:11:07Z githogori quit (Ping timeout: 245 seconds) 2015-01-08T02:17:48Z jumblerg joined #scheme 2015-01-08T02:19:15Z excelsior joined #scheme 2015-01-08T02:21:01Z Pixel_Outlaw quit (Quit: Leaving) 2015-01-08T02:24:43Z githogori joined #scheme 2015-01-08T02:31:54Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T02:33:34Z tobik quit (Ping timeout: 245 seconds) 2015-01-08T02:35:59Z tobik joined #scheme 2015-01-08T02:38:20Z robot-beethoven quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2015-01-08T02:39:02Z robot-beethoven joined #scheme 2015-01-08T02:43:46Z zv joined #scheme 2015-01-08T02:43:47Z frkout_ joined #scheme 2015-01-08T02:46:34Z SN0W joined #scheme 2015-01-08T02:47:31Z frkout quit (Ping timeout: 255 seconds) 2015-01-08T02:52:03Z acarrico quit (Ping timeout: 265 seconds) 2015-01-08T02:59:43Z kongtomorrow quit 2015-01-08T03:02:12Z cosmez joined #scheme 2015-01-08T03:04:51Z amgarching quit (Ping timeout: 264 seconds) 2015-01-08T03:05:51Z oleo__ joined #scheme 2015-01-08T03:06:32Z oleo is now known as Guest71246 2015-01-08T03:06:52Z Guest71246 quit (Ping timeout: 240 seconds) 2015-01-08T03:11:13Z bb010g quit (Quit: Connection closed for inactivity) 2015-01-08T03:12:14Z davexunit quit (Quit: Later) 2015-01-08T03:16:27Z pjb quit (Ping timeout: 264 seconds) 2015-01-08T03:23:43Z hiyosi joined #scheme 2015-01-08T03:24:07Z pjb joined #scheme 2015-01-08T03:24:27Z frkout_ quit (Remote host closed the connection) 2015-01-08T03:24:53Z frkout joined #scheme 2015-01-08T03:41:19Z zachstone joined #scheme 2015-01-08T03:44:03Z bb010g joined #scheme 2015-01-08T03:48:28Z kongtomorrow joined #scheme 2015-01-08T03:49:34Z SN0W quit 2015-01-08T03:51:15Z kibo joined #scheme 2015-01-08T03:53:59Z cosmez quit (Ping timeout: 245 seconds) 2015-01-08T04:01:48Z rx joined #scheme 2015-01-08T04:16:18Z kibo quit (Read error: Connection reset by peer) 2015-01-08T04:17:43Z joneshf-laptop joined #scheme 2015-01-08T04:22:41Z cosmez joined #scheme 2015-01-08T04:27:25Z cdidd quit (Ping timeout: 255 seconds) 2015-01-08T04:27:39Z jumblerg joined #scheme 2015-01-08T04:30:45Z frkout_ joined #scheme 2015-01-08T04:32:44Z ecthiender joined #scheme 2015-01-08T04:34:06Z frkout quit (Ping timeout: 244 seconds) 2015-01-08T04:47:53Z ecthiender quit (Ping timeout: 252 seconds) 2015-01-08T04:50:05Z adu quit (Quit: adu) 2015-01-08T04:56:16Z BitPuffin quit (Ping timeout: 265 seconds) 2015-01-08T05:00:32Z frkout_ quit (Remote host closed the connection) 2015-01-08T05:00:59Z frkout joined #scheme 2015-01-08T05:01:21Z adu joined #scheme 2015-01-08T05:02:04Z ecthiender joined #scheme 2015-01-08T05:04:53Z oleo__ quit (Quit: Verlassend) 2015-01-08T05:12:18Z oleo joined #scheme 2015-01-08T05:12:18Z ddp joined #scheme 2015-01-08T05:18:00Z jlongster quit (Remote host closed the connection) 2015-01-08T05:19:50Z kibo joined #scheme 2015-01-08T05:23:11Z cosmez quit (Ping timeout: 244 seconds) 2015-01-08T05:26:54Z ddp quit (Quit: ddp) 2015-01-08T05:36:52Z ddp joined #scheme 2015-01-08T05:41:13Z zachstone quit (Ping timeout: 255 seconds) 2015-01-08T05:46:07Z slucx joined #scheme 2015-01-08T05:55:59Z kibo is now known as cosmez 2015-01-08T05:57:12Z oleo quit (Quit: Verlassend) 2015-01-08T06:02:52Z adu quit (Quit: adu) 2015-01-08T06:05:49Z enitiz quit (Ping timeout: 264 seconds) 2015-01-08T06:06:06Z ddp quit (Quit: ddp) 2015-01-08T06:07:55Z Shadox quit (Quit: Leaving) 2015-01-08T06:29:27Z fsckd quit (Ping timeout: 245 seconds) 2015-01-08T06:41:11Z _sjs joined #scheme 2015-01-08T06:50:51Z adbge quit (Ping timeout: 256 seconds) 2015-01-08T06:51:43Z zachstone joined #scheme 2015-01-08T06:57:52Z mrowe is now known as mrowe_away 2015-01-08T06:58:41Z frkout_ joined #scheme 2015-01-08T07:02:22Z frkout quit (Ping timeout: 245 seconds) 2015-01-08T07:06:25Z adbge joined #scheme 2015-01-08T07:07:46Z ScaryMonster joined #scheme 2015-01-08T07:12:52Z githogori quit (Ping timeout: 240 seconds) 2015-01-08T07:13:14Z ScaryMonster quit (Quit: Kisses) 2015-01-08T07:17:18Z stepnem joined #scheme 2015-01-08T07:22:47Z githogori joined #scheme 2015-01-08T07:23:19Z Bahman joined #scheme 2015-01-08T07:25:26Z zachstone quit (Ping timeout: 244 seconds) 2015-01-08T07:26:14Z frkout_ quit (Remote host closed the connection) 2015-01-08T07:26:41Z frkout joined #scheme 2015-01-08T07:33:54Z choas_ quit (Ping timeout: 244 seconds) 2015-01-08T07:40:57Z rx quit (Ping timeout: 252 seconds) 2015-01-08T07:46:09Z bjz joined #scheme 2015-01-08T07:51:07Z bjz quit (Ping timeout: 245 seconds) 2015-01-08T07:55:35Z fgudin joined #scheme 2015-01-08T07:58:45Z frkout_ joined #scheme 2015-01-08T08:01:48Z frkout quit (Ping timeout: 244 seconds) 2015-01-08T08:05:33Z bjz joined #scheme 2015-01-08T08:07:00Z zachstone joined #scheme 2015-01-08T08:13:34Z benregn joined #scheme 2015-01-08T08:16:57Z slucx quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2015-01-08T08:17:19Z duncanm quit (Ping timeout: 245 seconds) 2015-01-08T08:19:02Z cmatei quit (Read error: No route to host) 2015-01-08T08:22:47Z hive-mind quit (Ping timeout: 244 seconds) 2015-01-08T08:26:27Z mettekou joined #scheme 2015-01-08T08:26:40Z vanila quit (Read error: Connection reset by peer) 2015-01-08T08:30:03Z hive-mind joined #scheme 2015-01-08T08:38:35Z rtra quit (Quit: "") 2015-01-08T08:40:05Z kongtomorrow quit 2015-01-08T08:50:01Z bjz quit (Read error: Connection reset by peer) 2015-01-08T08:53:15Z zachstone quit (Ping timeout: 256 seconds) 2015-01-08T09:01:23Z bjz joined #scheme 2015-01-08T09:03:59Z msgodf joined #scheme 2015-01-08T09:05:39Z masm joined #scheme 2015-01-08T09:13:03Z dongiea quit (Quit: WeeChat 1.0.1) 2015-01-08T09:15:07Z frkout_ quit (Remote host closed the connection) 2015-01-08T09:15:34Z frkout joined #scheme 2015-01-08T09:18:09Z cmatei joined #scheme 2015-01-08T09:22:23Z cdidd joined #scheme 2015-01-08T09:24:27Z excelsior quit (Ping timeout: 245 seconds) 2015-01-08T09:28:35Z fantazo joined #scheme 2015-01-08T09:31:37Z excelsior joined #scheme 2015-01-08T09:45:22Z Natch_c joined #scheme 2015-01-08T09:46:10Z Natch quit (Ping timeout: 244 seconds) 2015-01-08T09:50:10Z bjz quit (Read error: Connection reset by peer) 2015-01-08T09:50:46Z bjz joined #scheme 2015-01-08T09:51:16Z excelsior quit (Quit: Lost terminal) 2015-01-08T10:00:38Z Natch_c left #scheme 2015-01-08T10:00:47Z Natch joined #scheme 2015-01-08T10:02:37Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T10:04:03Z hive-mind quit (Ping timeout: 244 seconds) 2015-01-08T10:05:16Z bjz quit (Read error: Connection reset by peer) 2015-01-08T10:11:30Z hive-mind joined #scheme 2015-01-08T10:14:11Z echo-area quit (Remote host closed the connection) 2015-01-08T10:24:53Z bjz joined #scheme 2015-01-08T10:26:52Z mettekou quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T10:29:33Z psy_ quit (Quit: Leaving) 2015-01-08T10:31:16Z daowee_ joined #scheme 2015-01-08T10:34:32Z daowee quit (Ping timeout: 268 seconds) 2015-01-08T10:36:52Z bjz quit (Ping timeout: 240 seconds) 2015-01-08T10:39:29Z alezost joined #scheme 2015-01-08T10:45:07Z sstrickl_ joined #scheme 2015-01-08T10:45:18Z acieroid quit (Read error: Connection reset by peer) 2015-01-08T10:45:34Z acieroid joined #scheme 2015-01-08T10:45:39Z sstrickl_ is now known as sstrickl 2015-01-08T10:54:39Z bjz joined #scheme 2015-01-08T10:59:45Z AkashicLegend quit (Quit: AkashicLegend) 2015-01-08T11:05:22Z bjz quit (Read error: Connection reset by peer) 2015-01-08T11:09:41Z eli``` joined #scheme 2015-01-08T11:10:16Z eli``` is now known as eli 2015-01-08T11:10:16Z eli quit (Changing host) 2015-01-08T11:10:16Z eli joined #scheme 2015-01-08T11:10:24Z eli quit (Client Quit) 2015-01-08T11:10:52Z Guest28423 joined #scheme 2015-01-08T11:10:57Z Guest28423 quit (Client Quit) 2015-01-08T11:13:27Z eli` joined #scheme 2015-01-08T11:13:40Z eli` quit (Client Quit) 2015-01-08T11:13:57Z eli joined #scheme 2015-01-08T11:14:21Z robot-beethoven quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2015-01-08T11:19:04Z vdamewood joined #scheme 2015-01-08T11:20:05Z bjz joined #scheme 2015-01-08T11:32:37Z pnkfelix joined #scheme 2015-01-08T11:37:15Z bjz quit (Ping timeout: 244 seconds) 2015-01-08T11:44:54Z haroldwu joined #scheme 2015-01-08T11:45:27Z haroldwu quit (Changing host) 2015-01-08T11:45:27Z haroldwu joined #scheme 2015-01-08T11:46:17Z psy_ joined #scheme 2015-01-08T11:46:18Z zv quit (Remote host closed the connection) 2015-01-08T11:51:53Z bjz joined #scheme 2015-01-08T11:53:41Z kibo joined #scheme 2015-01-08T11:56:00Z choas joined #scheme 2015-01-08T11:56:41Z cosmez quit (Ping timeout: 244 seconds) 2015-01-08T11:58:54Z bjz quit (Read error: Connection reset by peer) 2015-01-08T12:29:29Z bjz joined #scheme 2015-01-08T12:35:01Z bjz quit (Read error: Connection reset by peer) 2015-01-08T12:45:29Z acarrico joined #scheme 2015-01-08T12:54:34Z mettekou joined #scheme 2015-01-08T12:54:43Z BitPuffin joined #scheme 2015-01-08T13:01:46Z mettekou quit (Ping timeout: 255 seconds) 2015-01-08T13:04:50Z bjz joined #scheme 2015-01-08T13:09:59Z ecthiender quit (Remote host closed the connection) 2015-01-08T13:14:11Z bjz quit (Ping timeout: 244 seconds) 2015-01-08T13:23:47Z bjz joined #scheme 2015-01-08T13:29:34Z pjb quit (Ping timeout: 265 seconds) 2015-01-08T13:35:25Z pjb joined #scheme 2015-01-08T13:43:28Z eylusion joined #scheme 2015-01-08T13:43:42Z taylanub quit (Disconnected by services) 2015-01-08T13:44:09Z eylusion: hello is there any way I can turn an integer into a list of symbols, for example (* 100 100) = (1 0 0 0 0) ? 2015-01-08T13:44:24Z taylanub joined #scheme 2015-01-08T13:46:38Z narendraj9 joined #scheme 2015-01-08T13:47:42Z eylusion: so I can do like a (list (* 100 100)) = (10000) 2015-01-08T13:47:57Z eylusion: and then do a (= first last) on (10000) 2015-01-08T13:49:31Z davexunit joined #scheme 2015-01-08T13:49:33Z davexunit quit (Changing host) 2015-01-08T13:49:33Z davexunit joined #scheme 2015-01-08T13:50:52Z frkout quit (Ping timeout: 240 seconds) 2015-01-08T13:53:13Z bjz quit (Ping timeout: 264 seconds) 2015-01-08T13:54:19Z bjz joined #scheme 2015-01-08T14:00:40Z eylusion left #scheme 2015-01-08T14:02:10Z fsckd joined #scheme 2015-01-08T14:08:03Z bjz quit (Ping timeout: 264 seconds) 2015-01-08T14:09:15Z pjb: Too bad eylusion left, I would have said him: first, you need to understand how we represent integers in the base system. 2015-01-08T14:09:15Z narendraj9 quit (Quit: WeeChat 1.0.1) 2015-01-08T14:10:24Z b4283 joined #scheme 2015-01-08T14:13:29Z wasamasa: what the hell was that 2015-01-08T14:18:07Z pjb: a newbie who doesn't understand base-system number representation. 2015-01-08T14:19:01Z pjb: You can easily infer the newbie part from the fact he left before obtaining an answer. 2015-01-08T14:20:47Z wasamasa: that's more a sign of impatience/lack of knowledge about IRC 2015-01-08T14:24:48Z taylanub: what's wrong about their question though? that would have worked and returned true, or am I missing something? 2015-01-08T14:25:10Z bjz joined #scheme 2015-01-08T14:25:31Z pjb: Nothing wrong. Only he asked yesterday in #clnoobs, and refused to be helped. 2015-01-08T14:27:41Z z0d: taylanub: which part? first and last would probably throw an undefined variable error 2015-01-08T14:28:17Z z0d: I think he wanted a procedure which would turn an integer into a list of digits 2015-01-08T14:28:54Z fsckd quit (Read error: Connection reset by peer) 2015-01-08T14:29:49Z fsckd joined #scheme 2015-01-08T14:30:34Z oleo joined #scheme 2015-01-08T14:31:25Z taylanub: since I reconnected in that moment, I only received two lines; were there more? 2015-01-08T14:31:53Z taylanub: and it should be safe to assume 'first' and 'last' from SRFI-1 unless specified otherwise 2015-01-08T14:32:24Z pjb: (first digits) and (last digits) then. 2015-01-08T14:32:30Z pnkfelix quit (Quit: rcirc on GNU Emacs 24.3.92.1) 2015-01-08T14:33:05Z z0d: 14:45 hello is there any way I can turn an integer into a list of symbols, for example (* 100 100) = (1 0 0 0 0) ? 2015-01-08T14:33:13Z taylanub: oh heh 2015-01-08T14:33:13Z z0d: that was his original question 2015-01-08T14:34:01Z duggiefresh joined #scheme 2015-01-08T14:34:39Z taylanub: (string->list (number->string x)) 2015-01-08T14:35:10Z pjb: This is excessively complex a solution. 2015-01-08T14:35:15Z taylanub: hahaha 2015-01-08T14:35:35Z taylanub: for a fairly contra-pragmatic definition of "complex" 2015-01-08T14:36:13Z z0d: I'd rather write a procedure for it 2015-01-08T14:36:49Z sonstwo joined #scheme 2015-01-08T14:37:14Z ffs quit (Ping timeout: 265 seconds) 2015-01-08T14:37:26Z taylanub: it would probably depend on the context for me, which I'd prefer; is the intent something "numerologic" or rather textual?.. 2015-01-08T14:37:48Z oleo: since it's for math, it is the numbers realm.... 2015-01-08T14:38:04Z bjz quit (Ping timeout: 255 seconds) 2015-01-08T14:38:20Z pjb: taylanub: context is project Euler #3 2015-01-08T14:38:21Z oleo: welp, pjb already told..... 2015-01-08T14:38:23Z pjb: #4 sorry. 2015-01-08T14:38:35Z taylanub: I see 2015-01-08T14:38:38Z oleo: jep 2015-01-08T14:39:01Z pjb: and since project Euler is not project Lucky Luke, I assume it's about maths, and there's something to learn in finding numbers that are palindromes about the base-system representation. 2015-01-08T14:39:17Z oleo: yes, i think so too 2015-01-08T14:39:43Z oleo: if he is just into a quick hack he can do so by other means.... 2015-01-08T14:39:58Z wasamasa: strings! 2015-01-08T14:40:06Z oleo: otherwise, numerics 2015-01-08T14:41:35Z pjb: Yes, you may reuse the conversion algorithm in integer->string. But if you don't know what you're reusing and why, it's not a good thing to do, for a newbie. 2015-01-08T14:41:51Z pjb: There's a pedagogical aspect to things like project Euler. 2015-01-08T14:42:06Z pjb: Solving those problem without learning anything would be lame. 2015-01-08T14:43:48Z enitiz joined #scheme 2015-01-08T14:47:28Z Riastradh joined #scheme 2015-01-08T14:47:34Z bjz joined #scheme 2015-01-08T14:47:36Z uris77 joined #scheme 2015-01-08T14:51:03Z Bahman quit (Ping timeout: 252 seconds) 2015-01-08T14:53:17Z Bahman joined #scheme 2015-01-08T14:56:07Z stepnem quit (Ping timeout: 245 seconds) 2015-01-08T15:00:42Z tristero joined #scheme 2015-01-08T15:01:33Z stepnem joined #scheme 2015-01-08T15:14:41Z suppi joined #scheme 2015-01-08T15:21:12Z bjz quit (Read error: Connection reset by peer) 2015-01-08T15:30:59Z benregn quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T15:33:20Z bjz joined #scheme 2015-01-08T15:39:37Z tadni is now known as youlysses 2015-01-08T15:39:49Z youlysses is now known as tadni 2015-01-08T15:43:46Z duggiefresh quit (Remote host closed the connection) 2015-01-08T15:47:44Z bjz quit (Read error: Connection reset by peer) 2015-01-08T15:52:20Z bjz joined #scheme 2015-01-08T15:53:27Z duggiefresh joined #scheme 2015-01-08T15:53:43Z excelsior joined #scheme 2015-01-08T15:53:44Z excelsior quit (Client Quit) 2015-01-08T15:56:24Z excelsior joined #scheme 2015-01-08T15:58:25Z benregn joined #scheme 2015-01-08T16:02:23Z fantazo quit (Quit: Verlassend) 2015-01-08T16:02:24Z rx joined #scheme 2015-01-08T16:04:24Z oleo__ joined #scheme 2015-01-08T16:05:06Z oleo is now known as Guest72807 2015-01-08T16:05:13Z bjz quit (Read error: Connection reset by peer) 2015-01-08T16:05:39Z Guest72807 quit (Ping timeout: 245 seconds) 2015-01-08T16:06:42Z zadock joined #scheme 2015-01-08T16:12:31Z oleo__ quit (Quit: Verlassend) 2015-01-08T16:13:15Z oleo__ joined #scheme 2015-01-08T16:13:32Z oleo__ is now known as oleo 2015-01-08T16:15:37Z bjz joined #scheme 2015-01-08T16:20:05Z narendraj9 joined #scheme 2015-01-08T16:25:00Z pera joined #scheme 2015-01-08T16:27:07Z _sjs quit (Ping timeout: 252 seconds) 2015-01-08T16:30:15Z ffs joined #scheme 2015-01-08T16:30:49Z sonstwo quit (Ping timeout: 265 seconds) 2015-01-08T16:44:16Z fgudin quit (Quit: leaving) 2015-01-08T16:50:32Z narendraj9 quit (Quit: WeeChat 1.0.1) 2015-01-08T16:58:21Z msgodf quit (Remote host closed the connection) 2015-01-08T17:01:20Z mettekou joined #scheme 2015-01-08T17:04:56Z _sjs joined #scheme 2015-01-08T17:05:08Z _sjs quit (Client Quit) 2015-01-08T17:05:56Z _sjs joined #scheme 2015-01-08T17:06:44Z narendraj9 joined #scheme 2015-01-08T17:07:11Z statethatiamin joined #scheme 2015-01-08T17:07:53Z statethatiamin: Hi, would somebody be interested in answering a question for me? It's about nested macros 2015-01-08T17:08:43Z wasamasa: that's a great narrative to encourage answers 2015-01-08T17:08:59Z wasamasa: in other words, just ask, someone might reply something helpful 2015-01-08T17:09:05Z bjz quit (Ping timeout: 256 seconds) 2015-01-08T17:09:11Z statethatiamin: Haha, it's not? How come? 2015-01-08T17:09:14Z statethatiamin: Ok, sure 2015-01-08T17:09:52Z narendraj9 quit (Client Quit) 2015-01-08T17:10:10Z wasamasa: on IRC you hope for the best and just ask (and stay for a while) 2015-01-08T17:10:11Z statethatiamin: Well, I have a macro to chain functions together recursively 2015-01-08T17:10:39Z bjz joined #scheme 2015-01-08T17:10:43Z statethatiamin: And I have another macro to reverse the order of the functions 2015-01-08T17:11:08Z statethatiamin: (to make the recursion put them in the right order) 2015-01-08T17:11:13Z bb010g quit (Quit: Connection closed for inactivity) 2015-01-08T17:11:26Z wasamasa: I suspect macros aren't exactly composable since you're essentially defining syntax 2015-01-08T17:11:27Z statethatiamin: So now I have to expand one macro inside of the other 2015-01-08T17:11:42Z statethatiamin: But I can't get it to work, and I've been on it for days :( 2015-01-08T17:12:07Z wasamasa: also, post example code on a website like https://gist.github.com/, that way we have something to work with 2015-01-08T17:12:21Z statethatiamin: Sure, and thank you 2015-01-08T17:12:50Z wasamasa: my earlier remark is pretty much my experience with macros in elisp, it's why I've been using them sparingly 2015-01-08T17:15:05Z wasamasa: anaphoric macros for instance are a good example that demonstrates these pitfalls 2015-01-08T17:19:10Z statethatiamin: I made a gist: https://gist.github.com/tonyfischetti/c5230e63a97d0f1797fe 2015-01-08T17:21:13Z wasamasa: hmm, there must be some way to expand the output of these commands 2015-01-08T17:21:20Z wasamasa: which is tremendously useful for macro development 2015-01-08T17:21:26Z kazimir42 joined #scheme 2015-01-08T17:22:33Z statethatiamin: I tried using DrRacket's macro expander but to no avail 2015-01-08T17:23:59Z bjz quit (Ping timeout: 265 seconds) 2015-01-08T17:29:57Z mettekou quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T17:32:04Z masm quit (Ping timeout: 264 seconds) 2015-01-08T17:33:37Z daviid joined #scheme 2015-01-08T17:37:03Z wasamasa: can you give me something valid that works with >>b? 2015-01-08T17:38:38Z statethatiamin: (>>b '(() (return5) (add6) (display))) 2015-01-08T17:41:01Z wasamasa: hmm 2015-01-08T17:41:07Z wasamasa: >>a won't work with a list though 2015-01-08T17:41:32Z amgarching joined #scheme 2015-01-08T17:41:33Z wasamasa: since it takes the arguments unevaluated 2015-01-08T17:41:47Z wasamasa: >>b gives me a list 2015-01-08T17:42:01Z uris77 quit (Quit: leaving) 2015-01-08T17:43:40Z statethatiamin: I left it quoted so that its easier to see that it expands correctly, but when using it with >>a I would leave it unquoted, i think 2015-01-08T17:45:57Z Nshag joined #scheme 2015-01-08T17:47:45Z mettekou joined #scheme 2015-01-08T17:53:20Z bjz joined #scheme 2015-01-08T17:55:10Z amgarching quit (Ping timeout: 255 seconds) 2015-01-08T17:58:25Z Riastradh quit (Ping timeout: 250 seconds) 2015-01-08T18:00:11Z Riastradh joined #scheme 2015-01-08T18:01:45Z wow joined #scheme 2015-01-08T18:01:58Z wow: Hello, can someone give me a good book on scheme? 2015-01-08T18:02:38Z LeoNerd: I read SICP then R5RS. Not sure I'd call either a "book" though 2015-01-08T18:03:21Z mettekou quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T18:03:46Z mettekou joined #scheme 2015-01-08T18:03:56Z wow: Can you give me a link to it? 2015-01-08T18:04:09Z LeoNerd: I suggest typing SICP into Google 2015-01-08T18:04:11Z LeoNerd: ditto R5RS 2015-01-08T18:04:21Z LeoNerd: That's what I was about ot do to provide you with it; so you might as well do that more directly 2015-01-08T18:04:33Z wow: Thanks. 2015-01-08T18:05:22Z wow: But how do I install an interpreter on linux? 2015-01-08T18:05:38Z LeoNerd: Personally I'd apt-cache search scheme and see what came up 2015-01-08T18:06:00Z wow: a lot of things 2015-01-08T18:06:07Z Bahman quit (Quit: brb) 2015-01-08T18:06:25Z wow: racket? 2015-01-08T18:06:50Z LeoNerd: It's possible 2015-01-08T18:06:51Z stamourv: wow: Racket is good. 2015-01-08T18:06:57Z stamourv is a Racket developer. ;) 2015-01-08T18:07:00Z wow: alright. 2015-01-08T18:07:07Z wow: racket is scheme though, right? 2015-01-08T18:07:14Z stamourv: rudybot: please gom statethatiamin 2015-01-08T18:07:14Z rudybot: stamourv: let's subject ourselves to the gom jabbar test. 2015-01-08T18:07:20Z stamourv: rudybot: please fom statethatiamin 2015-01-08T18:07:20Z rudybot: stamourv: fom me, baby 2015-01-08T18:07:22Z stamourv: er 2015-01-08T18:07:25Z stamourv: rudybot: fom 2015-01-08T18:07:25Z rudybot: stamourv: http://www.greghendershott.com/fear-of-macros/ 2015-01-08T18:07:32Z stamourv: statethatiamin: ^ 2015-01-08T18:07:44Z stamourv: A good resource for learning about macros. 2015-01-08T18:07:46Z wow: so it's not scheme? 2015-01-08T18:07:54Z LeoNerd: It's a Scheme implementation 2015-01-08T18:08:00Z stamourv: wow: Racket is mostly a superset of scheme. 2015-01-08T18:08:10Z wow: so it's scheme? 2015-01-08T18:08:14Z stamourv: wow: You can use it as Scheme if you like. You can also use it as much more. 2015-01-08T18:08:17Z LeoNerd: It's /a/ Scheme, yes. 2015-01-08T18:08:19Z Bahman joined #scheme 2015-01-08T18:08:37Z wow: Thanks guys. 2015-01-08T18:08:40Z LeoNerd: Scheme is a langauge specification. You can't install and run /Scheme/, as Scheme is an idea. but you can install and run some specific program that implements it 2015-01-08T18:08:43Z LeoNerd: Racket is one such program 2015-01-08T18:08:44Z wow: Also, does scheme have a networking library of some sort? 2015-01-08T18:09:16Z LeoNerd: Like all good abstract language specifications, Scheme knows nothing of networking. But most Scheme implementations should provide all sorts of things like that, yes. 2015-01-08T18:09:28Z wow: I've heard of this thing named tcputils that my friend uses 2015-01-08T18:09:30Z wow: does that exist? 2015-01-08T18:10:07Z stamourv: wow: There is no general scheme networking library, but Racket does provide one. 2015-01-08T18:10:44Z wow: which is? 2015-01-08T18:11:02Z stamourv: rudybot: (require racket/tcp) 2015-01-08T18:11:03Z rudybot: stamourv: your sandbox is ready 2015-01-08T18:11:03Z rudybot: stamourv: Done. 2015-01-08T18:11:07Z stamourv: rudybot: doc tcp 2015-01-08T18:11:08Z rudybot: stamourv: not found in any library's documentation: tcp 2015-01-08T18:11:13Z stamourv: rudybot: doc tcp-connect 2015-01-08T18:11:13Z rudybot: stamourv: http://docs.racket-lang.org/reference/tcp.html#(def._((lib._racket%2Ftcp..rkt)._tcp-connect)) 2015-01-08T18:11:18Z wow: Oh, that's great. 2015-01-08T18:11:28Z stamourv: And there's more too. 2015-01-08T18:12:00Z wow: is there a tcputils? 2015-01-08T18:12:06Z wow: rudybot: (require tcputils) 2015-01-08T18:12:07Z rudybot: wow: your sandbox is ready 2015-01-08T18:12:07Z rudybot: wow: error: eval:1:9: collection not found for module path: tcputils collection: "tcputils" in collection directories: /mnt/racket-6.1.1/collects ... [152 additional linked and package directories] 2015-01-08T18:12:34Z stamourv: I don't think there's a library by that name, but I'd expect it to be equivalent. 2015-01-08T18:12:54Z wow: okay. 2015-01-08T18:13:11Z wow: one more thing, how can racket interpret scheme files(.scm) 2015-01-08T18:13:17Z wow: instead of going into the interpreter and typing things 2015-01-08T18:14:01Z stamourv: racket file.scm 2015-01-08T18:14:07Z wow: oh ;) 2015-01-08T18:14:14Z stamourv: That should work if the file is a module. 2015-01-08T18:14:20Z wow: a module? 2015-01-08T18:14:21Z stamourv: Otherwise, you need some flag. 2015-01-08T18:14:23Z stamourv looks. 2015-01-08T18:14:41Z stamourv: -f is the flag you want for a non-module file. 2015-01-08T18:14:50Z wow: racket -f file.scm 2015-01-08T18:15:02Z wow: I guess a module is like a require 2015-01-08T18:15:22Z stamourv: Racket has a module system. It makes it possible to have programs split up in multiple components that depend on each other. 2015-01-08T18:15:41Z stamourv: Right, `require` is what you can use to import a module's definitions from another module. 2015-01-08T18:15:51Z zadock quit (Quit: Leaving) 2015-01-08T18:19:41Z sheilong joined #scheme 2015-01-08T18:20:14Z wow: Thanks for all your help guys. are there things in scheme that I should avoid? 2015-01-08T18:20:20Z pnkfelix joined #scheme 2015-01-08T18:21:03Z stamourv: wow: I'd try to avoid mutation wherever possible. Makes for high coupling. 2015-01-08T18:21:14Z technomancy: mutation, multiple return values, and internal define IMO 2015-01-08T18:21:50Z technomancy: learn pattern matching early on because it will save you a lot of annoyance 2015-01-08T18:21:57Z wow: Then how can I set a compound to another value? 2015-01-08T18:22:10Z stamourv: wow: Also, a lot of powerful, interesting features (macros, continuations, `eval`) tend to be overused. They're very useful in some contexts, but beginners tend to reach for them when simpler, lower-power features would do just fine. This tends to lead to unreliable code. 2015-01-08T18:22:16Z technomancy: wow: don't do that unless you are hurting for performance 2015-01-08T18:22:18Z wasamasa: wow: bind it lexically 2015-01-08T18:22:37Z technomancy: it's much easier to write correct code if you calculate new values based on old values instead of bashing things in place 2015-01-08T18:22:46Z stamourv: wow: To learn how to program more functionally, I highly recommend the HTDP textbook. 2015-01-08T18:22:51Z stamourv: rudybot: HTDP 2015-01-08T18:22:51Z rudybot: stamourv: error: HTDP: undefined; cannot reference an identifier before its definition in module: 'program 2015-01-08T18:22:55Z stamourv: Hmm. 2015-01-08T18:22:56Z technomancy: yeah, HTDP is the best 2015-01-08T18:23:03Z stamourv: wow: http://www.ccs.neu.edu/home/matthias/HtDP2e/ 2015-01-08T18:23:12Z wow: thx 2015-01-08T18:23:19Z stamourv: (For the parts that 2e is missing, you can fall back to the first edition.) 2015-01-08T18:23:26Z stamourv: rudybot: how to design programs 2015-01-08T18:23:27Z rudybot: stamourv: [2] PHP is a good example of how not to design a language, 2015-01-08T18:23:37Z stamourv: offby1: Consider the above a feature request. ;) 2015-01-08T18:24:22Z bjz quit (Ping timeout: 240 seconds) 2015-01-08T18:24:28Z amgarching joined #scheme 2015-01-08T18:24:42Z wow: alright, thanks. 2015-01-08T18:25:42Z bjz joined #scheme 2015-01-08T18:26:48Z wow: Are there bitwise operators in scheme? 2015-01-08T18:27:51Z wasamasa: you'd better ask what's not there 2015-01-08T18:29:08Z wasamasa: or rather, cannot be easily implemented 2015-01-08T18:29:33Z pnkfelix quit (Ping timeout: 256 seconds) 2015-01-08T18:30:56Z cosmez joined #scheme 2015-01-08T18:32:08Z wow: I was just reading HTPD 2015-01-08T18:32:11Z wow: There appear to be some images 2015-01-08T18:33:36Z wasamasa: the appeal of scheme is that you can implement pretty much anything you want (including more esoteric programming paradigms) with relatively low overhead 2015-01-08T18:33:49Z wasamasa: racket extends this idea to language design 2015-01-08T18:33:59Z kibo quit (Ping timeout: 245 seconds) 2015-01-08T18:36:02Z bjz quit (Read error: Connection reset by peer) 2015-01-08T18:36:08Z wow: I just don't like how it mixes pictures and functional programming all over the place. 2015-01-08T18:38:32Z wasamasa: what's the problem with that? 2015-01-08T18:38:59Z wow: Well, i want to learn scheme only. 2015-01-08T18:39:04Z wow: not picolisp or whatever it's called 2015-01-08T18:39:05Z wasamasa: ... 2015-01-08T18:41:39Z wow: By the way, is there a procedure that prints things in scheme? 2015-01-08T18:42:35Z wasamasa: I'll let you figure that one out on your own (hint: how does the commandline interface possibly print out things?) 2015-01-08T18:42:55Z wow: eh... conditions? 2015-01-08T18:43:12Z ecthiender joined #scheme 2015-01-08T18:44:15Z wow: displays them? 2015-01-08T18:44:54Z wasamasa: unless you're speaking of physical printers of course 2015-01-08T18:45:03Z wasamasa: since that's something your operating system is concerned with 2015-01-08T18:45:35Z wow quit (Quit: WeeChat 0.3.8) 2015-01-08T18:48:35Z Riastradh: What was the point of that exercise, wasamasa? 2015-01-08T18:50:43Z b4283 quit (Quit: Konversation terminated!) 2015-01-08T18:51:21Z bjz joined #scheme 2015-01-08T18:52:41Z wasamasa: Riastradh: figuring out whether he actually meant the display of a message or actually printing out stuff 2015-01-08T18:56:25Z xyh joined #scheme 2015-01-08T19:07:03Z hiroakip joined #scheme 2015-01-08T19:08:09Z pnkfelix joined #scheme 2015-01-08T19:09:16Z amgarching quit (Ping timeout: 264 seconds) 2015-01-08T19:15:50Z jumblerg joined #scheme 2015-01-08T19:16:22Z suppi quit (Ping timeout: 244 seconds) 2015-01-08T19:18:53Z suppi joined #scheme 2015-01-08T19:19:52Z pnkfelix quit (Ping timeout: 240 seconds) 2015-01-08T19:26:25Z enitiz quit (Remote host closed the connection) 2015-01-08T19:28:57Z uris77 joined #scheme 2015-01-08T19:30:54Z bb010g joined #scheme 2015-01-08T19:34:52Z ecthiender quit (Ping timeout: 240 seconds) 2015-01-08T19:38:13Z daviid quit (Ping timeout: 264 seconds) 2015-01-08T19:38:36Z enitiz joined #scheme 2015-01-08T19:52:29Z amgarching joined #scheme 2015-01-08T19:54:50Z ecthiender joined #scheme 2015-01-08T19:56:01Z pnkfelix joined #scheme 2015-01-08T19:59:37Z kuribas joined #scheme 2015-01-08T19:59:42Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T20:01:45Z civodul joined #scheme 2015-01-08T20:02:47Z Riastradh quit (Ping timeout: 250 seconds) 2015-01-08T20:05:51Z hiyosi quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T20:08:34Z acarrico quit (Ping timeout: 245 seconds) 2015-01-08T20:14:13Z sheilong quit (Ping timeout: 264 seconds) 2015-01-08T20:18:22Z xyh quit (Ping timeout: 244 seconds) 2015-01-08T20:19:27Z fsckd quit (Remote host closed the connection) 2015-01-08T20:20:35Z fsckd joined #scheme 2015-01-08T20:39:22Z bjz quit (Ping timeout: 240 seconds) 2015-01-08T20:40:39Z bjz joined #scheme 2015-01-08T20:41:49Z senoj joined #scheme 2015-01-08T20:44:04Z turbofail: rudybot: you wouldn't print a scheme, would you? 2015-01-08T20:44:05Z rudybot: turbofail: I've heard you can print millions of forms per hour on them, and that they're used for billing and such. 2015-01-08T20:52:05Z bjz quit (Read error: Connection reset by peer) 2015-01-08T20:52:23Z bjz_ joined #scheme 2015-01-08T21:00:17Z tadni quit (Ping timeout: 245 seconds) 2015-01-08T21:00:45Z davexunit quit (Quit: Later) 2015-01-08T21:01:36Z pnkfelix quit (Quit: rcirc on GNU Emacs 24.3.92.1) 2015-01-08T21:03:32Z pnkfelix joined #scheme 2015-01-08T21:04:34Z tadni joined #scheme 2015-01-08T21:05:35Z hiroakip quit (Ping timeout: 244 seconds) 2015-01-08T21:09:05Z kazimir42 quit (Ping timeout: 250 seconds) 2015-01-08T21:09:39Z _sjs: sorry if this is a stupid question, but I'm having trouble with running a whole scheme file in the scheme interpreter under emacs, is that possible? I can run single expressions using C-x C-e, but that's giving me errors because I have declared my variables outside of the functions I am trying to run 2015-01-08T21:13:15Z wilfredh joined #scheme 2015-01-08T21:13:25Z fschwidom joined #scheme 2015-01-08T21:13:31Z mumptai joined #scheme 2015-01-08T21:18:24Z bjz_ quit (Ping timeout: 265 seconds) 2015-01-08T21:22:53Z pjb: _sjs: it is possible to run a whole scheme file in the scheme interpreter under emacs, yes. 2015-01-08T21:23:12Z wasamasa: _sjs: does C-c C-l work? 2015-01-08T21:23:21Z pjb: _sjs: the simple solution is to type (load "yourfile.scm") in the scheme repl. 2015-01-08T21:23:39Z acarrico joined #scheme 2015-01-08T21:24:07Z pjb: C-c C-l would work with slime, if you have a scheme with a swank backend. At one point in time, there was a swank backend implemented in a couple of scheme implementations AFAIK, but I'm don't know which, and I don't know if this has been maintained at all. 2015-01-08T21:24:27Z wasamasa: _sjs: alternatively, selecting the entire file with C-x h and evaluating the region with C-c C-r should do the trick 2015-01-08T21:24:47Z pjb: You could write easily enough a command to bind to C-c C-l, that would send to the inferior-lisp (which is a comint) buffer running the scheme, the required load expression. 2015-01-08T21:24:57Z excelsior quit (Quit: leaving) 2015-01-08T21:25:42Z pjb: Oh, there is (scheme-load-file FILE-NAME) bound to C-c C-l in run-scheme. So it should work. 2015-01-08T21:26:01Z pjb: What error do you get? (Check the *Messages* buffer) 2015-01-08T21:34:29Z add^_ joined #scheme 2015-01-08T21:34:59Z fschwidom quit (Remote host closed the connection) 2015-01-08T21:35:23Z drinkcoffee joined #scheme 2015-01-08T21:35:55Z fschwidom joined #scheme 2015-01-08T21:36:05Z hiyosi joined #scheme 2015-01-08T21:38:46Z mrowe_away is now known as mrowe 2015-01-08T21:39:22Z fschwidom left #scheme 2015-01-08T21:39:39Z davexunit joined #scheme 2015-01-08T21:40:04Z mrowe is now known as mrowe_away 2015-01-08T21:40:11Z alezost quit (Quit: I use GNU Guix ) 2015-01-08T21:45:42Z acarrico quit (Ping timeout: 245 seconds) 2015-01-08T21:46:02Z AkashicLegend joined #scheme 2015-01-08T21:49:38Z hiroakip joined #scheme 2015-01-08T21:51:41Z jumblerg joined #scheme 2015-01-08T21:55:52Z BitPuffin quit (Ping timeout: 240 seconds) 2015-01-08T22:02:41Z Riastradh joined #scheme 2015-01-08T22:06:50Z BitPuffin joined #scheme 2015-01-08T22:07:14Z mumptai quit (Read error: Connection reset by peer) 2015-01-08T22:12:48Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T22:13:41Z duggiefresh quit 2015-01-08T22:31:52Z fantazo joined #scheme 2015-01-08T22:33:47Z statethatiamin quit (Ping timeout: 252 seconds) 2015-01-08T22:41:31Z zeroish joined #scheme 2015-01-08T22:44:49Z suppi quit (Quit: Leaving) 2015-01-08T22:45:43Z AkashicLegend quit (Read error: Connection reset by peer) 2015-01-08T22:46:15Z mrowe_away is now known as mrowe 2015-01-08T22:46:35Z AkashicLegend joined #scheme 2015-01-08T22:56:15Z adu joined #scheme 2015-01-08T23:06:22Z senoj quit (Ping timeout: 240 seconds) 2015-01-08T23:07:52Z jumblerg joined #scheme 2015-01-08T23:09:52Z jumblerg quit (Client Quit) 2015-01-08T23:15:07Z pnkfelix quit (Ping timeout: 255 seconds) 2015-01-08T23:16:52Z uris77 quit (Ping timeout: 240 seconds) 2015-01-08T23:27:48Z jumblerg joined #scheme 2015-01-08T23:33:02Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T23:38:57Z mettekou quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2015-01-08T23:45:05Z Riastradh quit (Ping timeout: 250 seconds) 2015-01-08T23:45:23Z Riastradh joined #scheme 2015-01-08T23:51:13Z bb010g quit (Quit: Connection closed for inactivity) 2015-01-08T23:56:03Z taylanub quit (Disconnected by services) 2015-01-08T23:56:35Z taylanub joined #scheme