2014-09-27T00:06:25Z Mso150_l quit (Ping timeout: 248 seconds) 2014-09-27T00:06:30Z Mso150_l_x joined #scheme 2014-09-27T00:19:54Z kongtomorrow joined #scheme 2014-09-27T00:38:10Z pera quit (Quit: leaving) 2014-09-27T00:39:16Z mrowe is now known as mrowe_away 2014-09-27T00:42:59Z kongtomorrow quit 2014-09-27T00:43:45Z Mso150_l_x quit (Ping timeout: 248 seconds) 2014-09-27T00:43:49Z Mso150_l_x_g joined #scheme 2014-09-27T00:44:53Z ovidnis joined #scheme 2014-09-27T00:58:03Z kongtomorrow joined #scheme 2014-09-27T01:07:32Z ovidnis quit (Quit: Lost terminal) 2014-09-27T01:13:56Z mrowe_away is now known as mrowe 2014-09-27T01:36:32Z Neet quit (Ping timeout: 260 seconds) 2014-09-27T01:37:26Z ggherdov___ quit (Ping timeout: 272 seconds) 2014-09-27T01:37:26Z ELLIOTTCABLE quit (Ping timeout: 272 seconds) 2014-09-27T01:37:26Z aksatac___ quit (Ping timeout: 272 seconds) 2014-09-27T01:37:28Z pjdelport quit (Ping timeout: 260 seconds) 2014-09-27T01:46:27Z tobik quit (Ping timeout: 245 seconds) 2014-09-27T01:47:25Z tobik joined #scheme 2014-09-27T01:50:37Z jeapostrophe quit (Ping timeout: 260 seconds) 2014-09-27T02:16:45Z akkad quit (Ping timeout: 260 seconds) 2014-09-27T02:22:58Z akkad joined #scheme 2014-09-27T02:25:32Z c107 quit (Remote host closed the connection) 2014-09-27T02:32:35Z davexunit quit (Quit: Later) 2014-09-27T02:41:26Z work_op joined #scheme 2014-09-27T02:57:37Z kongtomorrow quit 2014-09-27T03:07:29Z mrowe is now known as mrowe_away 2014-09-27T03:20:21Z kongtomorrow joined #scheme 2014-09-27T03:26:24Z acarrico quit (Ping timeout: 244 seconds) 2014-09-27T03:44:54Z gravicappa joined #scheme 2014-09-27T03:56:43Z carc quit (Quit: QUIT) 2014-09-27T03:57:24Z carc joined #scheme 2014-09-27T03:57:54Z alexei joined #scheme 2014-09-27T04:01:40Z amgarchIn9 quit (Ping timeout: 260 seconds) 2014-09-27T04:03:36Z vinleod joined #scheme 2014-09-27T04:11:59Z Neet joined #scheme 2014-09-27T04:12:31Z ELLIOTTCABLE joined #scheme 2014-09-27T04:14:38Z _tca: which scheme has the "fastest" implementation of continuations? (preferably natively delimited) 2014-09-27T04:15:08Z _tca: I want to play around with some thins that require very heavy shift/reset usage so it's important 2014-09-27T04:24:37Z kongtomorrow quit (Read error: Connection reset by peer) 2014-09-27T04:24:43Z kongtomo_ joined #scheme 2014-09-27T04:25:28Z ggherdov___ joined #scheme 2014-09-27T04:25:43Z aksatac___ joined #scheme 2014-09-27T04:33:06Z acarrico joined #scheme 2014-09-27T04:37:13Z defanor quit (Ping timeout: 260 seconds) 2014-09-27T04:38:36Z pjdelport joined #scheme 2014-09-27T04:39:01Z acarrico quit (Ping timeout: 260 seconds) 2014-09-27T05:14:28Z anannie quit (Ping timeout: 260 seconds) 2014-09-27T05:20:10Z Guest13405 joined #scheme 2014-09-27T05:24:49Z Guest13405 quit (Ping timeout: 260 seconds) 2014-09-27T05:29:17Z kongtomo_ quit 2014-09-27T05:32:24Z kongtomorrow joined #scheme 2014-09-27T05:37:44Z pnpuff joined #scheme 2014-09-27T05:40:12Z alexei quit (Ping timeout: 245 seconds) 2014-09-27T05:41:44Z DGASAU quit (Remote host closed the connection) 2014-09-27T05:45:21Z bjz_ quit (Read error: Connection reset by peer) 2014-09-27T05:45:44Z bjz joined #scheme 2014-09-27T05:54:21Z c107 joined #scheme 2014-09-27T05:55:33Z c107 quit (Remote host closed the connection) 2014-09-27T05:59:26Z ananna joined #scheme 2014-09-27T06:00:26Z gravicappa quit (Ping timeout: 250 seconds) 2014-09-27T06:02:22Z DGASAU joined #scheme 2014-09-27T06:16:14Z gravicappa joined #scheme 2014-09-27T06:16:46Z emma quit (Ping timeout: 258 seconds) 2014-09-27T06:25:58Z vanila joined #scheme 2014-09-27T06:25:58Z vanila quit (Changing host) 2014-09-27T06:25:58Z vanila joined #scheme 2014-09-27T06:29:21Z emma joined #scheme 2014-09-27T06:30:05Z kobain quit (Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/) 2014-09-27T06:31:21Z defanor joined #scheme 2014-09-27T06:36:25Z vanila: "To choose an implementation is to choose a tribe. Since Scheme is so minimal, you begin to rely on extensions that are only present in your implementation, and so through code you bind yourself to [an implementation]" 2014-09-27T06:36:56Z vanila: but now with R7RS, there's hope against this right? We actually write code that has some chance of working across implementations 2014-09-27T06:41:07Z daviid quit (Ping timeout: 245 seconds) 2014-09-27T06:43:06Z defanor quit (Quit: giving up on this server) 2014-09-27T06:44:07Z defanor joined #scheme 2014-09-27T07:03:50Z hiyosi_ quit (Quit: WeeChat 1.0) 2014-09-27T07:03:56Z masm joined #scheme 2014-09-27T07:05:04Z hiyosi joined #scheme 2014-09-27T07:06:55Z hiyosi quit (Client Quit) 2014-09-27T07:07:32Z hiyosi joined #scheme 2014-09-27T07:11:05Z tcsc quit (Quit: computer sleeping) 2014-09-27T07:11:14Z gravicappa quit (Remote host closed the connection) 2014-09-27T07:22:31Z vinleod quit (Quit: ["Textual IRC Client: www.textualapp.com"]) 2014-09-27T07:25:44Z dytrivedi_ quit (K-Lined) 2014-09-27T07:25:45Z _tca quit (K-Lined) 2014-09-27T07:25:45Z ggherdov___ quit (K-Lined) 2014-09-27T07:25:45Z drdanmaku quit (K-Lined) 2014-09-27T07:25:45Z aksatac___ quit (K-Lined) 2014-09-27T07:25:45Z Neet quit (K-Lined) 2014-09-27T07:25:45Z greghendershott quit (K-Lined) 2014-09-27T07:25:45Z gluegadget quit (K-Lined) 2014-09-27T07:25:45Z samth quit (K-Lined) 2014-09-27T07:25:45Z pjdelport quit (K-Lined) 2014-09-27T07:25:46Z ELLIOTTCABLE quit (K-Lined) 2014-09-27T07:25:47Z jcloud quit (K-Lined) 2014-09-27T07:25:48Z superjudge____ quit (K-Lined) 2014-09-27T07:25:48Z kwmiebach______ quit (K-Lined) 2014-09-27T07:32:03Z Riastradh quit (Ping timeout: 264 seconds) 2014-09-27T07:35:51Z drdanmaku joined #scheme 2014-09-27T07:36:50Z ELLIOTTCABLE_ joined #scheme 2014-09-27T07:38:32Z ELLIOTTCABLE_ is now known as ELLIOTTCABLE 2014-09-27T07:41:47Z vanila quit (Remote host closed the connection) 2014-09-27T08:21:16Z vinleod joined #scheme 2014-09-27T08:21:58Z oleo is now known as Guest24335 2014-09-27T08:22:27Z joneshf-laptop_ quit (Read error: Connection reset by peer) 2014-09-27T08:22:46Z joneshf-laptop joined #scheme 2014-09-27T08:23:34Z oleo__ joined #scheme 2014-09-27T08:25:02Z Guest24335 quit (Ping timeout: 244 seconds) 2014-09-27T08:30:15Z Riastradh joined #scheme 2014-09-27T08:38:36Z DGASAU quit (Ping timeout: 258 seconds) 2014-09-27T08:40:43Z pjdelport joined #scheme 2014-09-27T08:42:40Z civodul joined #scheme 2014-09-27T08:44:12Z stepnem joined #scheme 2014-09-27T08:47:39Z Riastradh quit (Ping timeout: 264 seconds) 2014-09-27T08:56:43Z yacks quit (Ping timeout: 272 seconds) 2014-09-27T09:00:19Z atomx: if in racket I want to make a compound unit of 2 units that export the same signature, how can I unify the 2 units, such that the symbols do not conflict ? 2014-09-27T09:14:29Z Mso150_l_x_g quit (Read error: Connection reset by peer) 2014-09-27T09:21:51Z ELLIOTTCABLE is now known as skoobettoille 2014-09-27T09:24:08Z skoobettoille is now known as ELLIOTTCABLE 2014-09-27T09:33:18Z atomx quit (Remote host closed the connection) 2014-09-27T09:38:27Z atomx joined #scheme 2014-09-27T09:50:13Z jusss joined #scheme 2014-09-27T09:51:46Z pnpuff quit (Quit: leaving) 2014-09-27T09:52:32Z ilammy joined #scheme 2014-09-27T09:52:45Z pnpuff joined #scheme 2014-09-27T09:54:00Z ilammy_ joined #scheme 2014-09-27T09:55:30Z ilammy quit (Read error: Connection reset by peer) 2014-09-27T09:56:54Z ilammy_ is now known as ilammy 2014-09-27T09:56:59Z vanila joined #scheme 2014-09-27T10:03:52Z yacks joined #scheme 2014-09-27T10:05:36Z robot-beethoven quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-09-27T10:07:33Z alexei joined #scheme 2014-09-27T10:09:14Z jeremyheiler joined #scheme 2014-09-27T10:13:07Z bit` quit (Quit: Leaving.) 2014-09-27T10:24:07Z ilammy_ joined #scheme 2014-09-27T10:27:28Z ilammy quit (Ping timeout: 258 seconds) 2014-09-27T10:33:25Z MouldyOldBones joined #scheme 2014-09-27T10:39:53Z alexei quit (Ping timeout: 244 seconds) 2014-09-27T10:43:28Z kongtomorrow quit 2014-09-27T10:44:19Z Riastradh joined #scheme 2014-09-27T10:46:08Z jeremyheiler quit (Quit: Computer has gone to sleep.) 2014-09-27T10:49:38Z pnpuff quit (Ping timeout: 256 seconds) 2014-09-27T10:52:50Z jeremyheiler joined #scheme 2014-09-27T10:54:51Z Riastradh quit (Ping timeout: 264 seconds) 2014-09-27T10:55:05Z ilammy_ quit (Read error: Connection reset by peer) 2014-09-27T10:55:13Z Riastradh joined #scheme 2014-09-27T10:59:44Z alexei joined #scheme 2014-09-27T11:05:51Z _tca joined #scheme 2014-09-27T11:08:51Z ohama quit (Read error: Connection reset by peer) 2014-09-27T11:10:04Z jusss quit (Ping timeout: 260 seconds) 2014-09-27T11:10:06Z ohama joined #scheme 2014-09-27T11:11:48Z aksatac___ joined #scheme 2014-09-27T11:14:17Z vinleod quit (Quit: ["Textual IRC Client: www.textualapp.com"]) 2014-09-27T11:24:33Z alexei quit (Ping timeout: 260 seconds) 2014-09-27T11:25:50Z alexei joined #scheme 2014-09-27T11:26:03Z Riastradh quit (Ping timeout: 264 seconds) 2014-09-27T11:38:08Z DGASAU joined #scheme 2014-09-27T11:51:11Z b4283 joined #scheme 2014-09-27T12:01:38Z drdanmaku quit (Quit: Connection closed for inactivity) 2014-09-27T12:05:32Z davexunit joined #scheme 2014-09-27T12:18:17Z Kabaka quit (Ping timeout: 260 seconds) 2014-09-27T12:19:01Z samth joined #scheme 2014-09-27T12:22:33Z alexei quit (Ping timeout: 272 seconds) 2014-09-27T12:24:09Z Kabaka joined #scheme 2014-09-27T12:28:27Z alexei joined #scheme 2014-09-27T12:29:24Z jeapostrophe joined #scheme 2014-09-27T12:36:53Z alexei quit (Ping timeout: 260 seconds) 2014-09-27T12:43:24Z kazimir42 quit (Remote host closed the connection) 2014-09-27T12:47:46Z civodul quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-09-27T12:49:02Z vinleod joined #scheme 2014-09-27T12:52:11Z Nizumzen joined #scheme 2014-09-27T12:57:58Z acarrico joined #scheme 2014-09-27T13:00:18Z Fare quit (Quit: Leaving) 2014-09-27T13:06:17Z klltkr joined #scheme 2014-09-27T13:21:16Z vinleod quit (Quit: ["Textual IRC Client: www.textualapp.com"]) 2014-09-27T13:38:57Z klltkr quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2014-09-27T13:41:47Z taylanub quit (Disconnected by services) 2014-09-27T13:42:19Z taylanub joined #scheme 2014-09-27T13:47:14Z civodul joined #scheme 2014-09-27T13:48:28Z jeapostrophe quit (Ping timeout: 244 seconds) 2014-09-27T13:52:04Z wingo joined #scheme 2014-09-27T13:55:46Z Nizumzen quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) 2014-09-27T13:55:56Z jusss` joined #scheme 2014-09-27T14:17:24Z drdanmaku joined #scheme 2014-09-27T14:18:30Z pnpuff joined #scheme 2014-09-27T14:27:36Z Riastradh joined #scheme 2014-09-27T14:41:59Z Nizumzen joined #scheme 2014-09-27T14:43:47Z work_op quit (Ping timeout: 272 seconds) 2014-09-27T14:45:06Z jeapostrophe joined #scheme 2014-09-27T14:45:06Z jeapostrophe quit (Changing host) 2014-09-27T14:45:06Z jeapostrophe joined #scheme 2014-09-27T14:46:47Z Shadox joined #scheme 2014-09-27T14:49:40Z jeapostrophe quit (Ping timeout: 258 seconds) 2014-09-27T14:58:43Z dan64 quit (Quit: ZNC - http://znc.in) 2014-09-27T14:59:26Z dan64 joined #scheme 2014-09-27T15:00:51Z jusss` quit (Quit: ERC Version 5.2 (IRC client for Emacs)) 2014-09-27T15:09:56Z greghendershott joined #scheme 2014-09-27T15:11:39Z Riastradh quit (Ping timeout: 264 seconds) 2014-09-27T15:12:15Z civodul quit (Ping timeout: 264 seconds) 2014-09-27T15:13:57Z wingo quit (Ping timeout: 245 seconds) 2014-09-27T15:15:49Z civodul joined #scheme 2014-09-27T15:20:55Z daviid joined #scheme 2014-09-27T15:29:44Z wingo joined #scheme 2014-09-27T15:33:53Z alexei joined #scheme 2014-09-27T15:38:57Z BossKonaSegwaY quit (Ping timeout: 245 seconds) 2014-09-27T15:46:32Z kobain joined #scheme 2014-09-27T15:51:17Z itsarellano joined #scheme 2014-09-27T15:52:18Z BossKonaSegwaY joined #scheme 2014-09-27T15:52:28Z itsarellano: hi everyone 2014-09-27T15:53:36Z vanila: hi 2014-09-27T15:57:45Z oleo__ is now known as oleo 2014-09-27T15:58:12Z itsarellano: vanila, what video do you recommend about scheme ? (apart from the SICP lectures). 2014-09-27T15:58:46Z vanila: apart from SICP? but that's the one I was abot to recomment :( 2014-09-27T15:59:07Z itsarellano: i'm currenly on 6A 2014-09-27T15:59:34Z vanila: good stuff! 2014-09-27T15:59:37Z vanila: 7 is really awesome 2014-09-27T16:00:27Z tcsc joined #scheme 2014-09-27T16:01:17Z alexei quit (Ping timeout: 260 seconds) 2014-09-27T16:08:55Z itsarellano: have to go. bye 2014-09-27T16:08:57Z itsarellano left #scheme 2014-09-27T16:11:09Z wingo quit (Ping timeout: 260 seconds) 2014-09-27T16:14:52Z hiroakip joined #scheme 2014-09-27T16:18:58Z wingo joined #scheme 2014-09-27T16:26:08Z jeremyheiler quit (Quit: Computer has gone to sleep.) 2014-09-27T16:27:32Z klltkr joined #scheme 2014-09-27T16:28:33Z alexei joined #scheme 2014-09-27T16:30:06Z hiroakip quit (Ping timeout: 258 seconds) 2014-09-27T16:35:37Z kongtomorrow joined #scheme 2014-09-27T16:42:13Z GGMethos quit (Ping timeout: 272 seconds) 2014-09-27T16:45:03Z alexei quit (Ping timeout: 246 seconds) 2014-09-27T16:45:40Z alexei joined #scheme 2014-09-27T16:49:16Z wingo quit (Ping timeout: 258 seconds) 2014-09-27T16:51:09Z klltkr quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2014-09-27T16:54:38Z jeapostrophe joined #scheme 2014-09-27T16:59:04Z jeremyheiler joined #scheme 2014-09-27T17:03:05Z lrs joined #scheme 2014-09-27T17:04:24Z lrs: Anyone good at creating construtors and selectors to represent points in the plane? 2014-09-27T17:08:13Z pjdelport: lrs: Pairs? 2014-09-27T17:09:25Z GGMethos joined #scheme 2014-09-27T17:16:16Z alexei quit (Ping timeout: 272 seconds) 2014-09-27T17:19:49Z b4283 quit (Quit: Konversation terminated!) 2014-09-27T17:21:18Z gravicappa joined #scheme 2014-09-27T17:21:42Z alexei joined #scheme 2014-09-27T17:21:44Z kobain quit (Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/) 2014-09-27T17:22:05Z MichaelRaskin joined #scheme 2014-09-27T17:23:54Z acarrico quit (Ping timeout: 246 seconds) 2014-09-27T17:27:41Z BossKonaSegwaY quit (Ping timeout: 260 seconds) 2014-09-27T17:28:35Z civodul quit (Remote host closed the connection) 2014-09-27T17:28:59Z civodul joined #scheme 2014-09-27T17:31:06Z anannie joined #scheme 2014-09-27T17:31:42Z zbigniew_ joined #scheme 2014-09-27T17:31:52Z jjjj2_ joined #scheme 2014-09-27T17:37:40Z alexei quit (*.net *.split) 2014-09-27T17:37:40Z ananna quit (*.net *.split) 2014-09-27T17:37:40Z tobik quit (*.net *.split) 2014-09-27T17:37:40Z jrslepak quit (*.net *.split) 2014-09-27T17:37:40Z drewc quit (*.net *.split) 2014-09-27T17:37:40Z eMBee quit (*.net *.split) 2014-09-27T17:37:40Z copec quit (*.net *.split) 2014-09-27T17:37:40Z cmatei quit (*.net *.split) 2014-09-27T17:37:40Z karswell quit (*.net *.split) 2014-09-27T17:37:41Z Guest91815 quit (*.net *.split) 2014-09-27T17:37:41Z ski quit (*.net *.split) 2014-09-27T17:37:41Z mark_weaver quit (*.net *.split) 2014-09-27T17:37:41Z cdidd quit (*.net *.split) 2014-09-27T17:37:41Z rudybot quit (*.net *.split) 2014-09-27T17:37:41Z necronian quit (*.net *.split) 2014-09-27T17:37:41Z Razz quit (*.net *.split) 2014-09-27T17:37:41Z SirDayBat quit (*.net *.split) 2014-09-27T17:37:42Z zbigniew quit (*.net *.split) 2014-09-27T17:37:42Z tsuyoshi quit (*.net *.split) 2014-09-27T17:38:26Z hiroakip joined #scheme 2014-09-27T17:44:40Z lrs: pjdelport, I just dont get... the "plane" thing maybe 2014-09-27T17:46:49Z BossKonaSegwaY joined #scheme 2014-09-27T17:46:50Z alexei joined #scheme 2014-09-27T17:46:50Z tobik joined #scheme 2014-09-27T17:46:50Z jrslepak joined #scheme 2014-09-27T17:46:50Z drewc joined #scheme 2014-09-27T17:46:50Z eMBee joined #scheme 2014-09-27T17:46:50Z copec joined #scheme 2014-09-27T17:46:50Z cmatei joined #scheme 2014-09-27T17:46:50Z karswell joined #scheme 2014-09-27T17:46:50Z Guest91815 joined #scheme 2014-09-27T17:46:50Z ski joined #scheme 2014-09-27T17:46:50Z mark_weaver joined #scheme 2014-09-27T17:46:50Z cdidd joined #scheme 2014-09-27T17:46:50Z rudybot joined #scheme 2014-09-27T17:46:50Z necronian joined #scheme 2014-09-27T17:46:50Z Razz joined #scheme 2014-09-27T17:46:50Z SirDayBat joined #scheme 2014-09-27T17:46:50Z tsuyoshi joined #scheme 2014-09-27T17:48:00Z theseb joined #scheme 2014-09-27T17:48:05Z rudybot: la la la 2014-09-27T17:48:05Z rudybot bows deeply before his master, inventor of incubot 2014-09-27T17:51:14Z Mso150 joined #scheme 2014-09-27T17:52:45Z civodul quit (Remote host closed the connection) 2014-09-27T17:53:06Z civodul joined #scheme 2014-09-27T17:58:20Z kobain joined #scheme 2014-09-27T17:59:35Z kobain quit (Max SendQ exceeded) 2014-09-27T17:59:53Z kobain joined #scheme 2014-09-27T18:00:34Z hiyosi quit (Ping timeout: 258 seconds) 2014-09-27T18:02:48Z pjdelport: lrs: Can you explain your conundrum in a bit more detail? 2014-09-27T18:03:32Z lrs: pjdelport, If you want to represent points in the "plane" (assuming 3d plane) this can be done with a pair of numbers and lines in the plane can be represented with a pair of dots 2014-09-27T18:03:58Z lrs: Now i need to create a constructor and selector to repreent lines in the plane 2014-09-27T18:04:01Z pjdelport: lrs: Do you mean a 2D plane embedded in a 3D space? 2014-09-27T18:04:21Z lrs: Im not sure 2014-09-27T18:04:25Z lrs: It just says plane 2014-09-27T18:04:30Z pjdelport: What do you mean by "3D plane"? 2014-09-27T18:04:32Z pjdelport: Ah 2014-09-27T18:04:43Z pjdelport: Well, a plane is usually 2D only, by definition. 2014-09-27T18:05:24Z hiroakip quit (Ping timeout: 260 seconds) 2014-09-27T18:05:26Z pjdelport: So yes, a pair of numbers as coordinates is the canonical way to represent points on a plane. 2014-09-27T18:05:55Z pjdelport: And a pair of (distinct) points is enough to define a line on the plane. 2014-09-27T18:06:01Z lrs: http://pastebin.com/J9KEQ4Gg 2014-09-27T18:06:04Z lrs: Is this a constructor? 2014-09-27T18:06:35Z pjdelport: Perhaps; what's "makeGraph"? 2014-09-27T18:06:53Z pjdelport: (What text or source or tutorial are you working from?) 2014-09-27T18:07:54Z lrs: http://pastebin.com/DCi7rKZp 2014-09-27T18:09:03Z pjdelport: lrs: Ah, okay, that looks reasonable, yeah. 2014-09-27T18:09:36Z pjdelport: lrs: So yes, that's a data representation using a tagged list. 2014-09-27T18:10:31Z pjdelport: And (makePoint 2 3) will be a constructor for a point, which will be represented as (list 'point 2 3) 2014-09-27T18:10:42Z lrs: And the selecto? 2014-09-27T18:10:55Z gravicappa quit (Ping timeout: 258 seconds) 2014-09-27T18:11:19Z pjdelport: For the selectors, you'll probably want functions that take a point like that, and extract either the x or y coordinate. 2014-09-27T18:11:47Z pjdelport: (The selector might also check that the type tag is 'point, if that's your goal.) 2014-09-27T18:12:17Z lrs: Hm 2014-09-27T18:13:25Z pjdelport: So in other words, you might have (define p (makePoint 2 3)), and then (getPointX p) → 2 and (getPointY p) → 3. 2014-09-27T18:13:43Z pjdelport: (or however your naming convention is.) 2014-09-27T18:15:44Z lrs: Right 2014-09-27T18:16:45Z lrs: pjdelport, http://pastebin.com/SScWRALw 2014-09-27T18:16:46Z lrs: ? 2014-09-27T18:17:18Z pjdelport: Hmm, i'm not sure about that. 2014-09-27T18:18:38Z pjdelport: There is the other sense of "selector", where you provide a function that accepts the parts of your data type. 2014-09-27T18:18:43Z pjdelport: Is that what you're trying to do? 2014-09-27T18:19:00Z lrs: I think so 2014-09-27T18:20:56Z pjdelport: Okay, i'm not 100% sure what the most idiomatic approach would be for the context you're in, but the idea is *probably* that the interface might look something like: (selectPoint p (lambda (x y) <...do something with x / y...>)) 2014-09-27T18:21:49Z lrs: HMm, I dont really get what you mean 2014-09-27T18:22:03Z pjdelport: And the selectPoint would be: (define (selectPoint p selector) <...apply selector to the parts of p...>) 2014-09-27T18:35:45Z lrs: pjdelport, I dont get it 2014-09-27T18:36:16Z pjdelport: lrs: Hmm, okay, what are your working from? 2014-09-27T18:36:31Z pjdelport: SICP? 2014-09-27T18:37:36Z lrs: Rackety 2014-09-27T18:38:14Z pjdelport: lrs: I mean, the tutorial, or text? 2014-09-27T18:38:24Z pjdelport: Just so i have some context to try and explain in. 2014-09-27T18:40:05Z lrs: Its in swedish so I dont know if it works, but I just picked the selectos from this skeleton 2014-09-27T18:40:16Z pnpuff quit (Quit: Lost terminal) 2014-09-27T18:41:01Z lrs: http://pastebin.com/gXZ7J6Rs 2014-09-27T18:41:25Z jeapostrophe quit (Ping timeout: 244 seconds) 2014-09-27T18:42:46Z pjdelport: lrs: Ah, okay. 2014-09-27T18:42:59Z pjdelport: Looks like you already have "name" and "shape" selectors. 2014-09-27T18:43:22Z pjdelport: Those are generic for any graphical unit defined with makeGraph 2014-09-27T18:43:45Z pjdelport: That shows you the idea of a selector: it extracts smaller parts out of a bigger structure. 2014-09-27T18:43:59Z pjdelport: So "makeGraph" is a constructor that combines a name and a shape. 2014-09-27T18:44:39Z lrs: Right 2014-09-27T18:44:54Z lrs: Its the selectors stuff I have a bit more trouble with -_- 2014-09-27T18:44:57Z pjdelport: "name" is a selector that extracts the original name you passed to the constructor, and "shape" is a selector that extracts the shape that you passed to the constructor. 2014-09-27T18:45:07Z pjdelport: That's all there is to it, really. 2014-09-27T18:45:45Z pjdelport: If you think back to basic Scheme cons pairs, (cons a d) is a constructor, and car and cdr are just its selectors. 2014-09-27T18:45:47Z pjdelport: Does that make sense? 2014-09-27T18:45:53Z lrs: So why doesnt that first stuff i wrote you work? 2014-09-27T18:46:00Z lrs: (define selectorPoint 2014-09-27T18:46:00Z lrs: (lambda (point) 2014-09-27T18:46:00Z lrs: point)) 2014-09-27T18:46:02Z lrs: -_- 2014-09-27T18:46:21Z pjdelport: What do you want selectorPoint to do? 2014-09-27T18:46:35Z lrs: I want it to be a selector for point u.u 2014-09-27T18:47:01Z pjdelport: Well, what are you selecting? 2014-09-27T18:47:05Z pjdelport: A selector extracts things. 2014-09-27T18:47:22Z pjdelport: So the selectors for point would probably be X_coord and Y_coord 2014-09-27T18:47:31Z pjdelport: Those are the parts of a point that you can select. 2014-09-27T18:47:42Z lrs: Well, cant I just pick out point 2014-09-27T18:47:48Z lrs: Or do I need to use X_coord and Y_coord 2014-09-27T18:48:27Z pjdelport: You could pick out a point from something *else*, but that would be a different selector. 2014-09-27T18:48:54Z pjdelport: The way to think about it is that selectors are always paired up with some constructor: the selector just does the inverse of the constructor. 2014-09-27T18:49:26Z pjdelport: So makePoint is the constructor that goes with the selectors X_coord and Y_coord 2014-09-27T18:50:05Z pjdelport: makePoint turns two coordinates into a "point" value, and X_coord / Y_coord turn that "point" value back into its two coordinates. 2014-09-27T18:50:13Z pjdelport: Does that make sense? 2014-09-27T18:53:15Z lrs: pjdelport, So you mean I need to use both X and Y coord to createa point from it if I want to do a selector 2014-09-27T18:54:21Z lrs: pjdelport, http://pastebin.com/SScWRALw -_- 2014-09-27T18:54:26Z oldskirt joined #scheme 2014-09-27T18:54:39Z pjdelport: Well, the X_coord and Y_coord functions you have in there are already the selectors for point. 2014-09-27T18:54:57Z pjdelport: So you don't need to implement anything else. 2014-09-27T18:55:12Z lrs: Yeah, but what do I do if I want to select the whole poitn 2014-09-27T18:55:16Z lrs: Now its just X and y 2014-09-27T18:56:19Z pjdelport: lrs: Do you need a selector like that? 2014-09-27T18:56:32Z lrs: YEs 2014-09-27T18:56:38Z pjdelport: What do you need it for? 2014-09-27T18:56:41Z lrs: That uses both x and y 2014-09-27T18:56:45Z Soft quit (Ping timeout: 260 seconds) 2014-09-27T18:56:48Z lrs: Well, the problem is a separate one 2014-09-27T18:57:01Z lrs: I just used this source to look at how you do a constructor and selector 2014-09-27T18:57:22Z hiyosi joined #scheme 2014-09-27T18:58:13Z pjdelport: Well, the usual way you would define the selectors for point would be like that source defines X_coord and Y_coord. 2014-09-27T18:58:36Z pjdelport: You *could* define other, additional selectors, but then it depends a bit on what exactly you need them for. 2014-09-27T18:58:36Z lrs: But I need t o use car or cadr 2014-09-27T18:58:40Z lrs: Because point doesnt work :| 2014-09-27T18:58:52Z pjdelport: X_coord and Y_coord do use car and cadr 2014-09-27T18:58:59Z lrs: Yes 2014-09-27T18:59:06Z lrs: But I want both X and Y. 2014-09-27T19:02:17Z hiyosi quit (Ping timeout: 258 seconds) 2014-09-27T19:03:07Z Mso150 quit (Ping timeout: 245 seconds) 2014-09-27T19:03:40Z lrs: pjdelport, Do you know how you do that? 2014-09-27T19:04:08Z Mso150 joined #scheme 2014-09-27T19:09:49Z pjdelport: lrs: Why nod just use X_coord and Y_coord? 2014-09-27T19:10:00Z pjdelport: lrs: If you need both in a different form, what form would that be? 2014-09-27T19:10:15Z pjdelport: "Why not just", even 2014-09-27T19:10:24Z lrs: Huh 2014-09-27T19:10:31Z lrs: I just want something that selects the point. 2014-09-27T19:10:31Z lrs: :| 2014-09-27T19:11:19Z pjdelport: lrs: But then you have to define what that actually means. 2014-09-27T19:11:39Z pjdelport: You can select the *coordinates* from a point, because those are what a point is made out of. 2014-09-27T19:12:10Z pjdelport: You *can* also extract it in some other form, but what form would that be? 2014-09-27T19:12:33Z pjdelport: (And do you really need it?) 2014-09-27T19:13:07Z pjdelport: lrs: The way you use the above selectors would be, for example: (draw-a-point (X_coord object) (Y_coord object)) 2014-09-27T19:13:29Z lrs: I want to select the coordinates from a point 2014-09-27T19:14:06Z pjdelport: Okay, so that is exactly what X_coord and Y_coord does :) 2014-09-27T19:14:17Z lrs: Yeah but I want the whole point 2014-09-27T19:14:22Z Soft joined #scheme 2014-09-27T19:14:27Z pjdelport: Then you just use both selectors. 2014-09-27T19:14:28Z lrs: I want (x,y) 2014-09-27T19:14:38Z lrs: Why cant I create a selector that does that for me 2014-09-27T19:14:48Z pjdelport: If you want them in a list, you can just say (list (X_coord object) (Y_coord object)) 2014-09-27T19:14:59Z pjdelport: You can. 2014-09-27T19:15:12Z lrs: How 2014-09-27T19:15:31Z kongtomorrow quit 2014-09-27T19:16:09Z pjdelport: Well, you can either use the above, or if you want to be more direct, you can implement it exactly the same as X_coord and Y_coord, except that instead only returning one coordinate, you return a list of both. 2014-09-27T19:16:25Z pjdelport: So that might give you a point-as-list selector 2014-09-27T19:16:52Z pjdelport: And in fact, because of the graphic units are represented, the generic "shape" selector will already do that for you, for points. 2014-09-27T19:18:15Z lrs: How do I do that 2014-09-27T19:22:39Z Nizumzen quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) 2014-09-27T19:26:46Z pjdelport: lrs: Well, "shape" already does it. 2014-09-27T19:26:58Z lrs: pjdelport, Hmmm? 2014-09-27T19:27:02Z lrs: I dont get it 2014-09-27T19:27:04Z pjdelport: If you give it a point, it will give you a list of the two coordinates that the point was constructed with. 2014-09-27T19:27:05Z lrs: What do I need to write 2014-09-27T19:27:14Z pjdelport: Isn't that what you want the selector to do? 2014-09-27T19:27:14Z lrs: Right 2014-09-27T19:27:17Z lrs: Yeah 2014-09-27T19:27:20Z pjdelport: Well, it's already written. 2014-09-27T19:27:22Z pjdelport: :) 2014-09-27T19:27:26Z pjdelport: That's all it is. 2014-09-27T19:27:27Z lrs: Where 2014-09-27T19:27:30Z pjdelport: "shape" 2014-09-27T19:27:38Z lrs: So what do I write to get the coordinates 2014-09-27T19:27:40Z pjdelport: In that big source paste. 2014-09-27T19:27:57Z pjdelport: Nothing else: for points, that will give you a list of the two coordinates. 2014-09-27T19:28:23Z lrs: http://pastebin.com/RJ4XUVaj 2014-09-27T19:28:24Z pjdelport: So (shape (makePoint 2 3)) should give you '(2 3) 2014-09-27T19:28:27Z lrs: This ish ow its gonna look 2014-09-27T19:29:27Z lrs: Shape undefined 2014-09-27T19:30:18Z pjdelport: Look at the definition of shape in http://pastebin.com/gXZ7J6Rs (line 63) 2014-09-27T19:30:22Z pjdelport: That's the basic idea. 2014-09-27T19:30:43Z pjdelport: You'll see that X_coord and Y_coord just use the "shape" selector themselves. 2014-09-27T19:31:42Z pjdelport: X_coord just does (car (shape point)), and so on. 2014-09-27T19:32:08Z lrs: Why does shape use cdr 2014-09-27T19:34:32Z pjdelport: lrs: Because it extracts from the structure that makeGraph created. 2014-09-27T19:34:45Z pjdelport: "shape" is a selector for what makeGraph constructs. 2014-09-27T19:34:57Z lrs: Its the last in the list of name and shape 2014-09-27T19:35:00Z lrs: Cool I get it now 2014-09-27T19:35:04Z pjdelport: Right. 2014-09-27T19:35:25Z pjdelport: So makePoint is the constructor related to the selectors X_coord and Y_coord 2014-09-27T19:35:36Z pjdelport: makeGraph is the constructor related to the selectors "name" and "shape" 2014-09-27T19:35:57Z lrs: And if you wanted a selector from them youd need to make a cons/list of X_coord and Y_ 2014-09-27T19:36:04Z pjdelport: The constructors and selectors are just inverses of each other. 2014-09-27T19:36:11Z pjdelport: (in general) 2014-09-27T19:36:15Z lrs: Which is not needed since its already defined in uh makegraph 2014-09-27T19:36:27Z pjdelport: Right. 2014-09-27T19:36:44Z pjdelport: But you can always build more complicated selectors out of simpler ones. 2014-09-27T19:36:55Z pjdelport: (those are sometimes called "views") 2014-09-27T19:37:14Z pjdelport: For example, you might want to get the coordinates of a point in polar form, rather than rectangular. 2014-09-27T19:37:36Z pjdelport: (but that's probably getting ahead) 2014-09-27T19:38:09Z pjdelport: The point is just that you can select and view and transform data in many ways: it's just a question of what you have, and what you want. 2014-09-27T19:40:48Z jcloud joined #scheme 2014-09-27T19:43:05Z lrs: pjdelport, Hmm 2014-09-27T19:43:21Z lrs: Like a shell? 2014-09-27T19:43:26Z lrs: Im not really sure what you mean 2014-09-27T19:43:31Z lrs: Its probably ahead of me 2014-09-27T19:43:44Z lrs: What you have -> What you want 2014-09-27T19:43:55Z lrs: Maybe Im just drunk and tired -_ 2014-09-27T19:45:08Z pjdelport: lrs: What i mean is, in general, for any question like this, you just have to think in terms of what you have and what you want. 2014-09-27T19:45:19Z pjdelport: If you can clearly define that, then you can figure out how to get between them. 2014-09-27T19:47:06Z lrs: Right 2014-09-27T19:47:20Z lrs: My problem was basically if you could just write a defintion and write point and you would get the coordinate 2014-09-27T19:47:25Z lrs: That was kind of what I didnt get 2014-09-27T19:47:36Z lrs: Since cdr point gave x 2014-09-27T19:51:36Z lrs: Well, time for me to sleep 2014-09-27T19:51:41Z lrs: Thansk for the help pjdelport 2014-09-27T19:52:03Z theseb quit (Quit: Leaving) 2014-09-27T19:54:37Z pjdelport: Cool :) 2014-09-27T19:58:30Z hiyosi joined #scheme 2014-09-27T20:02:52Z hiyosi quit (Ping timeout: 240 seconds) 2014-09-27T20:03:56Z lrs quit (Ping timeout: 260 seconds) 2014-09-27T20:07:45Z boycottg00gle joined #scheme 2014-09-27T20:09:16Z hiroakip joined #scheme 2014-09-27T20:26:20Z hiyosi joined #scheme 2014-09-27T20:26:52Z BossKonaSegwaY quit (Ping timeout: 240 seconds) 2014-09-27T20:31:54Z DKordic`` joined #scheme 2014-09-27T20:32:23Z DKordic` quit (Write error: Broken pipe) 2014-09-27T20:32:25Z bjz quit (Excess Flood) 2014-09-27T20:33:08Z bjz joined #scheme 2014-09-27T20:34:48Z tcsc_ joined #scheme 2014-09-27T20:36:16Z girrig_ joined #scheme 2014-09-27T20:37:20Z davexuni` joined #scheme 2014-09-27T20:38:44Z aranhoide quit (Ping timeout: 260 seconds) 2014-09-27T20:38:44Z girrig quit (Ping timeout: 260 seconds) 2014-09-27T20:38:44Z tcsc quit (Ping timeout: 260 seconds) 2014-09-27T20:38:45Z davexunit quit (Ping timeout: 260 seconds) 2014-09-27T20:38:45Z emma quit (Ping timeout: 260 seconds) 2014-09-27T20:38:47Z ohama quit (Ping timeout: 260 seconds) 2014-09-27T20:38:53Z emma joined #scheme 2014-09-27T20:39:20Z ohama joined #scheme 2014-09-27T20:41:30Z Riviera_ joined #scheme 2014-09-27T20:43:08Z civodul quit (Remote host closed the connection) 2014-09-27T20:43:27Z civodul joined #scheme 2014-09-27T20:43:34Z Riviera quit (Disconnected by services) 2014-09-27T20:43:36Z ozzloy_ joined #scheme 2014-09-27T20:43:40Z teiresia1 joined #scheme 2014-09-27T20:43:48Z kbtr_ joined #scheme 2014-09-27T20:43:54Z zacts_ joined #scheme 2014-09-27T20:44:07Z kbtr quit (Remote host closed the connection) 2014-09-27T20:44:20Z ByronJoh1son joined #scheme 2014-09-27T20:44:28Z zacts quit (Remote host closed the connection) 2014-09-27T20:44:31Z ozzloy quit (Write error: Broken pipe) 2014-09-27T20:44:31Z ByronJohnson quit (Remote host closed the connection) 2014-09-27T20:44:31Z teiresias quit (Read error: Connection reset by peer) 2014-09-27T20:44:37Z ByronJoh1son is now known as ByronJohnson 2014-09-27T20:45:13Z Riviera_ is now known as Riviera 2014-09-27T20:49:05Z zacts_ quit (Ping timeout: 272 seconds) 2014-09-27T20:49:42Z zacts joined #scheme 2014-09-27T20:49:43Z Riastradh joined #scheme 2014-09-27T20:50:17Z sigjuice joined #scheme 2014-09-27T20:51:04Z weinholt quit (Ping timeout: 260 seconds) 2014-09-27T20:51:11Z davexuni` is now known as davexunit 2014-09-27T20:51:30Z davexunit quit (Changing host) 2014-09-27T20:51:30Z davexunit joined #scheme 2014-09-27T20:51:40Z BossKonaSegwaY joined #scheme 2014-09-27T20:51:50Z weinholt joined #scheme 2014-09-27T21:01:15Z oleo quit (Ping timeout: 272 seconds) 2014-09-27T21:01:51Z oleo joined #scheme 2014-09-27T21:14:57Z BossKonaSegwaY quit (Ping timeout: 260 seconds) 2014-09-27T21:19:19Z teiresia1 quit (Changing host) 2014-09-27T21:19:19Z teiresia1 joined #scheme 2014-09-27T21:20:53Z acarrico joined #scheme 2014-09-27T21:25:17Z boycottg00gle quit (Remote host closed the connection) 2014-09-27T21:27:14Z BossKonaSegwaY joined #scheme 2014-09-27T21:32:11Z rtra joined #scheme 2014-09-27T21:46:07Z BossKonaSegwaY quit (Ping timeout: 245 seconds) 2014-09-27T21:47:12Z jjjj2_ quit (Ping timeout: 246 seconds) 2014-09-27T21:47:22Z kongtomorrow joined #scheme 2014-09-27T21:47:29Z jjjj2_ joined #scheme 2014-09-27T21:49:12Z Shadox quit (Ping timeout: 246 seconds) 2014-09-27T21:49:29Z Shadox joined #scheme 2014-09-27T22:03:26Z BossKonaSegwaY joined #scheme 2014-09-27T22:15:40Z Nizumzen joined #scheme 2014-09-27T22:19:39Z hiroakip quit (Ping timeout: 272 seconds) 2014-09-27T22:21:32Z oldskirt quit (Read error: Connection reset by peer) 2014-09-27T22:24:52Z BossKonaSegwaY quit (Ping timeout: 240 seconds) 2014-09-27T22:34:28Z BossKonaSegwaY joined #scheme 2014-09-27T22:39:02Z mutley89 quit (Ping timeout: 245 seconds) 2014-09-27T22:44:51Z jeapostrophe joined #scheme 2014-09-27T22:50:48Z Mso150 quit (Remote host closed the connection) 2014-09-27T23:00:08Z robot-beethoven joined #scheme 2014-09-27T23:03:47Z Nizumzen quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) 2014-09-27T23:09:46Z civodul quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-09-27T23:10:34Z Nizumzen joined #scheme 2014-09-27T23:15:00Z jao joined #scheme 2014-09-27T23:18:03Z vanila quit (Remote host closed the connection) 2014-09-27T23:26:56Z masm quit (Quit: Leaving.) 2014-09-27T23:35:55Z atomx quit (Ping timeout: 244 seconds) 2014-09-27T23:47:13Z Nizumzen quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) 2014-09-27T23:47:33Z stepnem quit (Ping timeout: 260 seconds) 2014-09-27T23:53:20Z visualshock joined #scheme