2014-09-29T00:04:10Z bjz quit (Ping timeout: 250 seconds) 2014-09-29T00:18:55Z ilammy quit (Ping timeout: 246 seconds) 2014-09-29T00:34:30Z offby1: nehaljwani: assoc is indeed in racket. What makes you think it isn't? 2014-09-29T00:34:55Z offby1: rudybot: (assoc 'a ' ((a . "aah") (b . "bumble"))) 2014-09-29T00:34:56Z rudybot: *offby1: your sandbox is ready 2014-09-29T00:34:56Z rudybot: *offby1: ; Value: '(a . "aah") 2014-09-29T00:58:24Z jusss joined #scheme 2014-09-29T01:00:10Z notzmv quit (Remote host closed the connection) 2014-09-29T01:03:16Z phipes joined #scheme 2014-09-29T01:36:15Z rainbyte quit (Ping timeout: 246 seconds) 2014-09-29T01:36:31Z joast joined #scheme 2014-09-29T01:36:38Z kobain quit (Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/) 2014-09-29T01:36:48Z rainbyte joined #scheme 2014-09-29T01:43:15Z mrowe is now known as mrowe_away 2014-09-29T01:45:05Z davexunit quit (Quit: Later) 2014-09-29T01:46:53Z tobik quit (Ping timeout: 258 seconds) 2014-09-29T01:47:25Z tobik joined #scheme 2014-09-29T01:49:16Z kobain joined #scheme 2014-09-29T01:51:19Z atomx quit (Remote host closed the connection) 2014-09-29T01:51:45Z atomx joined #scheme 2014-09-29T01:55:57Z jeapostrophe quit (Ping timeout: 272 seconds) 2014-09-29T01:58:43Z daviid quit (Remote host closed the connection) 2014-09-29T01:59:14Z daviid joined #scheme 2014-09-29T02:00:06Z b4283 joined #scheme 2014-09-29T02:07:04Z robot-beethoven joined #scheme 2014-09-29T02:10:49Z theseb joined #scheme 2014-09-29T02:11:54Z daviid quit (Ping timeout: 244 seconds) 2014-09-29T02:15:39Z sethalves quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-09-29T02:17:04Z sethalves joined #scheme 2014-09-29T02:17:11Z Fare joined #scheme 2014-09-29T02:38:20Z theseb quit (Remote host closed the connection) 2014-09-29T02:45:37Z mrowe_away is now known as mrowe 2014-09-29T02:50:54Z cky quit (Quit: Restarting tmux.) 2014-09-29T02:52:43Z BossKonaSegwaY1 quit (Ping timeout: 244 seconds) 2014-09-29T02:54:06Z cky joined #scheme 2014-09-29T02:54:47Z acarrico quit (Ping timeout: 245 seconds) 2014-09-29T02:59:27Z BossKonaSegwaY joined #scheme 2014-09-29T03:02:38Z rainbyte quit (Read error: Connection reset by peer) 2014-09-29T03:06:24Z balkamos quit (Ping timeout: 260 seconds) 2014-09-29T03:08:47Z balkamos joined #scheme 2014-09-29T03:14:40Z kongtomorrow joined #scheme 2014-09-29T03:31:30Z tobik quit (Ping timeout: 272 seconds) 2014-09-29T03:33:01Z tobik joined #scheme 2014-09-29T03:41:20Z hiyosi quit (Ping timeout: 272 seconds) 2014-09-29T03:54:14Z MichaelRaskin quit (Quit: MichaelRaskin) 2014-09-29T03:55:07Z alexei_ joined #scheme 2014-09-29T03:58:51Z alexei quit (Ping timeout: 244 seconds) 2014-09-29T04:03:03Z b4283 quit (Quit: Konversation terminated!) 2014-09-29T04:07:05Z hiyosi joined #scheme 2014-09-29T04:08:32Z jusss quit (Ping timeout: 245 seconds) 2014-09-29T04:11:47Z hiyosi quit (Ping timeout: 258 seconds) 2014-09-29T04:17:32Z BossKonaSegwaY quit (Ping timeout: 258 seconds) 2014-09-29T04:38:13Z kobain quit (Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/) 2014-09-29T04:38:27Z BossKonaSegwaY joined #scheme 2014-09-29T04:51:06Z Rodya_ quit (Quit: Ex-Chat) 2014-09-29T04:51:33Z tcsc quit (Quit: computer sleeping) 2014-09-29T05:08:00Z hiyosi joined #scheme 2014-09-29T05:09:38Z phipes quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2014-09-29T05:12:32Z jeremyheiler quit (Quit: Computer has gone to sleep.) 2014-09-29T05:12:52Z hiyosi quit (Ping timeout: 260 seconds) 2014-09-29T05:16:06Z work_op joined #scheme 2014-09-29T05:16:27Z vinleod joined #scheme 2014-09-29T05:22:40Z MichaelRaskin joined #scheme 2014-09-29T05:30:02Z nehaljwani: offby1, http://lpaste.net/111787 doesn't work for t1=lambda(x)(y) t2=lambda(y)(y) .. it returns true :'( 2014-09-29T05:32:17Z lrs joined #scheme 2014-09-29T05:32:42Z kobain joined #scheme 2014-09-29T05:32:52Z alexei_ quit (Ping timeout: 240 seconds) 2014-09-29T05:47:55Z kazimir42 quit (Remote host closed the connection) 2014-09-29T05:53:40Z oleo__ quit (Quit: Verlassend) 2014-09-29T06:08:46Z hiyosi joined #scheme 2014-09-29T06:10:37Z Fare quit (Ping timeout: 245 seconds) 2014-09-29T06:13:27Z hiyosi quit (Ping timeout: 246 seconds) 2014-09-29T06:26:09Z drewc quit (Ping timeout: 260 seconds) 2014-09-29T06:29:36Z vinleod quit (Quit: Computer has gone to sleep.) 2014-09-29T06:29:51Z frkout_ joined #scheme 2014-09-29T06:30:26Z drewc joined #scheme 2014-09-29T06:32:42Z frkout quit (Ping timeout: 245 seconds) 2014-09-29T06:34:03Z vinleod joined #scheme 2014-09-29T06:34:23Z akp quit (Ping timeout: 258 seconds) 2014-09-29T06:38:14Z jusss joined #scheme 2014-09-29T06:40:03Z fgudin quit (Ping timeout: 244 seconds) 2014-09-29T06:41:08Z fgudin joined #scheme 2014-09-29T06:42:44Z vinleod quit (Quit: ["Textual IRC Client: www.textualapp.com"]) 2014-09-29T06:52:41Z civodul joined #scheme 2014-09-29T07:00:57Z masm joined #scheme 2014-09-29T07:03:56Z pnkfelix joined #scheme 2014-09-29T07:06:13Z frkout_ quit (Remote host closed the connection) 2014-09-29T07:06:43Z frkout joined #scheme 2014-09-29T07:09:37Z hiyosi joined #scheme 2014-09-29T07:14:21Z hiyosi quit (Ping timeout: 246 seconds) 2014-09-29T07:18:15Z ventonegro joined #scheme 2014-09-29T07:21:28Z lusory quit (Quit: leaving) 2014-09-29T07:22:25Z b4283 joined #scheme 2014-09-29T07:27:59Z drdanmaku quit 2014-09-29T07:28:03Z b4283 quit (Quit: Konversation terminated!) 2014-09-29T07:28:37Z b4283 joined #scheme 2014-09-29T07:29:07Z b4283 quit (Remote host closed the connection) 2014-09-29T07:33:05Z vinleod joined #scheme 2014-09-29T07:35:46Z b4283 joined #scheme 2014-09-29T07:43:36Z ventonegro quit (Remote host closed the connection) 2014-09-29T07:45:01Z BossKonaSegwaY quit (Ping timeout: 260 seconds) 2014-09-29T07:47:08Z mrowe is now known as mrowe_away 2014-09-29T07:50:31Z robot-beethoven quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-09-29T07:50:41Z kongtomorrow quit 2014-09-29T08:05:22Z ventonegro joined #scheme 2014-09-29T08:10:46Z hiyosi joined #scheme 2014-09-29T08:15:12Z hiyosi quit (Ping timeout: 245 seconds) 2014-09-29T08:18:48Z kobain quit (Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/) 2014-09-29T08:24:15Z oleo joined #scheme 2014-09-29T08:27:35Z yacks quit (Quit: Leaving) 2014-09-29T08:29:21Z kongtomorrow joined #scheme 2014-09-29T08:30:22Z BossKonaSegwaY joined #scheme 2014-09-29T08:31:27Z Riastradh quit (Ping timeout: 264 seconds) 2014-09-29T08:34:49Z jusss quit (Remote host closed the connection) 2014-09-29T08:36:10Z jusss joined #scheme 2014-09-29T08:54:50Z Serpentoj left #scheme 2014-09-29T08:58:48Z yacks joined #scheme 2014-09-29T09:09:28Z ft quit (Ping timeout: 260 seconds) 2014-09-29T09:10:15Z ft joined #scheme 2014-09-29T09:11:32Z hiyosi joined #scheme 2014-09-29T09:16:09Z hiyosi quit (Ping timeout: 246 seconds) 2014-09-29T09:16:14Z ggherdov___ joined #scheme 2014-09-29T09:23:39Z stepnem joined #scheme 2014-09-29T09:28:30Z przl joined #scheme 2014-09-29T09:35:21Z gravicappa joined #scheme 2014-09-29T09:37:02Z jusss quit (Quit: ERC Version 5.2 (IRC client for Emacs)) 2014-09-29T09:38:08Z bjz joined #scheme 2014-09-29T09:44:44Z lrs: http://pastebin.com/YGNszfUS I need to rewrite this code so that the dividend, when you use a interval that is across 0 works 2014-09-29T09:44:45Z lrs: Any ideas 2014-09-29T09:58:16Z defanor quit (Ping timeout: 250 seconds) 2014-09-29T10:01:26Z defanor joined #scheme 2014-09-29T10:07:50Z przl_ joined #scheme 2014-09-29T10:10:26Z defanor quit (Quit: giving up on this server) 2014-09-29T10:10:33Z lrs: Anyone? 2014-09-29T10:10:42Z przl quit (Ping timeout: 245 seconds) 2014-09-29T10:12:22Z hiyosi joined #scheme 2014-09-29T10:13:09Z defanor joined #scheme 2014-09-29T10:17:03Z hiyosi quit (Ping timeout: 244 seconds) 2014-09-29T10:32:57Z pjb: lrs: don't divide by zero. 2014-09-29T10:38:07Z przl_ quit (Ping timeout: 245 seconds) 2014-09-29T10:39:39Z BossKonaSegwaY quit (Ping timeout: 272 seconds) 2014-09-29T10:39:39Z MichaelRaskin quit (Ping timeout: 272 seconds) 2014-09-29T10:40:09Z pjb: lrs: alternatively, since you're working on intervals, you can extend ℝ⋆ with ±∞ and ±0, and extend / with 1/+0 = +∞, -1/+0 = -∞, 1/-0 = -∞, -1/-0 = +∞. 1/+∞ = +0, -1/+∞ = -0, 1/-∞ = -0, -1/-∞ = +0. 2014-09-29T10:41:49Z lrs: pjb : I found code snippet to solve it ^^ 2014-09-29T10:41:53Z lrs: Heres the solution 2014-09-29T10:42:15Z lrs: http://pastebin.com/4Era9sYT 2014-09-29T10:43:08Z MouldyOldBones quit (Remote host closed the connection) 2014-09-29T10:55:05Z MouldyOldBones joined #scheme 2014-09-29T11:02:08Z BossKonaSegwaY joined #scheme 2014-09-29T11:08:09Z acarrico joined #scheme 2014-09-29T11:13:09Z hiyosi joined #scheme 2014-09-29T11:17:47Z hiyosi quit (Ping timeout: 245 seconds) 2014-09-29T11:28:04Z pnkfelix quit (Ping timeout: 260 seconds) 2014-09-29T11:34:07Z vanila joined #scheme 2014-09-29T11:41:42Z kongtomorrow quit 2014-09-29T11:41:47Z atomx_ joined #scheme 2014-09-29T11:43:18Z atomx quit (Ping timeout: 272 seconds) 2014-09-29T12:03:14Z daviid joined #scheme 2014-09-29T12:08:37Z przl joined #scheme 2014-09-29T12:13:55Z hiyosi joined #scheme 2014-09-29T12:18:56Z hiyosi quit (Ping timeout: 260 seconds) 2014-09-29T12:19:29Z effy quit (Remote host closed the connection) 2014-09-29T12:22:58Z araujo joined #scheme 2014-09-29T12:22:58Z araujo quit (Changing host) 2014-09-29T12:22:58Z araujo joined #scheme 2014-09-29T12:25:08Z effy joined #scheme 2014-09-29T12:32:42Z yacks quit (Ping timeout: 245 seconds) 2014-09-29T12:32:53Z Elzair quit (Ping timeout: 240 seconds) 2014-09-29T12:35:03Z guampa quit (Ping timeout: 264 seconds) 2014-09-29T12:35:39Z civodul quit (Ping timeout: 264 seconds) 2014-09-29T12:36:16Z MouldyOldBones quit (Ping timeout: 264 seconds) 2014-09-29T12:38:40Z hiyosi joined #scheme 2014-09-29T12:49:25Z guampa joined #scheme 2014-09-29T12:51:23Z DGASAU quit (Ping timeout: 272 seconds) 2014-09-29T12:52:03Z MouldyOldBones joined #scheme 2014-09-29T12:52:28Z mutley89 joined #scheme 2014-09-29T12:59:15Z Guest29331 is now known as hunter 2014-09-29T12:59:45Z hunter is now known as Guest48800 2014-09-29T13:00:08Z Guest48800 quit (Quit: Leaving) 2014-09-29T13:00:10Z nehaljwani: vanila, http://lpaste.net/111787 doesn't work for t1=lambda(x)(y) t2=lambda(y)(y) .. it returns true :'( 2014-09-29T13:00:35Z hjolt joined #scheme 2014-09-29T13:00:56Z vanila: oh goshh im sorry 2014-09-29T13:01:16Z vanila: so we have to distinguish bound and free variables 2014-09-29T13:05:05Z nehaljwani quit (Remote host closed the connection) 2014-09-29T13:07:16Z yacks joined #scheme 2014-09-29T13:08:02Z nehaljwani joined #scheme 2014-09-29T13:08:13Z nehaljwani: vanila, I lost your replies 2014-09-29T13:08:31Z vanila: oh goshh im sorry 2014-09-29T13:08:31Z vanila: so we have to distinguish bound and free variables 2014-09-29T13:08:46Z nehaljwani: Yes. Distinguish. 2014-09-29T13:09:04Z DGASAU joined #scheme 2014-09-29T13:09:45Z BitPuffin joined #scheme 2014-09-29T13:10:45Z jeapostrophe joined #scheme 2014-09-29T13:12:08Z davexunit joined #scheme 2014-09-29T13:12:58Z civodul joined #scheme 2014-09-29T13:13:00Z vanila: http://lpaste.net/111787 2014-09-29T13:14:02Z przl quit (Ping timeout: 245 seconds) 2014-09-29T13:26:07Z nehaljwani: vanila, line 17 (cons t2 bound) is this correct? 2014-09-29T13:26:34Z vanila: no 2014-09-29T13:26:35Z nehaljwani: is bound a list here? 2014-09-29T13:26:42Z vanila: it should be the variable, not t2 2014-09-29T13:26:54Z nehaljwani: okay 2014-09-29T13:26:58Z vanila: (cons (lambda-variable t2) bound) 2014-09-29T13:27:03Z vanila: Ive added 2014-09-29T13:27:05Z nehaljwani: wait.. variable in formal or body? 2014-09-29T13:27:17Z vanila: For t1=lambda(x)(y) t2=lambda(y)(y) 2014-09-29T13:27:18Z vanila: we get 2014-09-29T13:27:25Z vanila: env = (x y), bound = (y) 2014-09-29T13:27:28Z vanila: sorry 2014-09-29T13:27:33Z vanila: env = ((x . y)), bound = (y) 2014-09-29T13:28:28Z jeremyheiler joined #scheme 2014-09-29T13:29:31Z jeremyheiler quit (Client Quit) 2014-09-29T13:31:35Z jeremyheiler joined #scheme 2014-09-29T13:31:45Z daviid quit (Ping timeout: 260 seconds) 2014-09-29T13:32:08Z duggiefresh joined #scheme 2014-09-29T13:34:28Z nehaljwani: vanila, shouldn't it be (not (member t2 bound)) ? 2014-09-29T13:35:12Z vanila: http://lpaste.net/111787 2014-09-29T13:35:27Z vanila: I think that is needed yeah, 2014-09-29T13:36:14Z nehaljwani: I am confused now :P 2014-09-29T13:36:37Z vanila: we should come up with a better way to write the function, so we know it's correct 2014-09-29T13:37:06Z nehaljwani: is that latest annotation correct? 2014-09-29T13:37:11Z vanila: I think so 2014-09-29T13:37:16Z vanila: but I thought the previous two were correct as well 2014-09-29T13:37:33Z ogamita joined #scheme 2014-09-29T13:38:54Z vanila: A good way might be to convert both to de brujn form 2014-09-29T13:38:58Z vanila: then test EQUAL? 2014-09-29T13:39:12Z nehaljwani: What is brujn form? 2014-09-29T13:39:28Z vanila: (define (alpha-equal t1 t2) (equal? (alpha->de-bruijn t1) (alpha->de-bruijn t2))) 2014-09-29T13:39:40Z vanila: de brjuin is when you use numbers to reference lambdas, rather than naming variables 2014-09-29T13:39:41Z vanila: e.g. 2014-09-29T13:39:50Z vanila: (lambda (x) (x (lambda (y) (x y))) 2014-09-29T13:39:52Z vanila: is written 2014-09-29T13:40:00Z vanila: (lambda (0 (lambda (1 0))) 2014-09-29T13:40:30Z vanila: de brjuin form factors out alpha-equivalence so it's good 2014-09-29T13:40:32Z ecraven: the number n references the (single) captured variable by the lambda n steps up the tree 2014-09-29T13:41:17Z nehaljwani: See the annotation: http://lpaste.net/111787 that is how I am using it now. 2014-09-29T13:41:37Z taylanub quit (Disconnected by services) 2014-09-29T13:42:08Z vanila: nehaljwani, line 14 is indented badly 2014-09-29T13:42:16Z taylanub joined #scheme 2014-09-29T13:42:35Z nehaljwani: why 2014-09-29T13:42:42Z vanila: it is too far out 2014-09-29T13:43:12Z nehaljwani: but there is another parent cons 2014-09-29T13:43:39Z vanila: there shouldn't be 2014-09-29T13:46:06Z nehaljwani: vanila, a little more help please: http://fpaste.org/137378/41199834/ 2014-09-29T13:46:59Z jeremyheiler quit (Quit: Computer has gone to sleep.) 2014-09-29T13:50:33Z ecraven: this might help http://lpaste.net/111787 2014-09-29T13:53:24Z elzair joined #scheme 2014-09-29T13:53:50Z przl joined #scheme 2014-09-29T13:56:01Z jeremyheiler joined #scheme 2014-09-29T13:57:32Z jeremyheiler quit (Client Quit) 2014-09-29T14:00:54Z fridim__ joined #scheme 2014-09-29T14:02:09Z BitPuffin quit (Ping timeout: 260 seconds) 2014-09-29T14:04:40Z vanila: nehaljwani, If you use de brujin you don't need to worry about renaming! 2014-09-29T14:04:55Z nehaljwani: :-o 2014-09-29T14:05:12Z vanila: look at the good code ecraven posted 2014-09-29T14:05:43Z ecraven: mind it's only tested on one example, the one vanila posted above :) 2014-09-29T14:05:54Z ecraven: and it just leaves unbound identifiers untouched 2014-09-29T14:07:11Z vanila: http://en.wikipedia.org/wiki/De_Bruijn_index 2014-09-29T14:07:23Z vanila: The colored diagram here explains it very well 2014-09-29T14:07:52Z ecraven: vanila: they start counting at 1, not 0 in that article? 2014-09-29T14:15:47Z jusss joined #scheme 2014-09-29T14:25:36Z vanila: yeah 2014-09-29T14:26:25Z karswell` joined #scheme 2014-09-29T14:28:53Z karswell quit (Ping timeout: 240 seconds) 2014-09-29T14:29:52Z BitPuffin joined #scheme 2014-09-29T14:31:20Z iterrogo joined #scheme 2014-09-29T14:35:34Z jusss quit (Remote host closed the connection) 2014-09-29T14:35:39Z kobain joined #scheme 2014-09-29T14:35:42Z gravicappa quit (Remote host closed the connection) 2014-09-29T14:35:42Z przl quit (Ping timeout: 245 seconds) 2014-09-29T14:46:20Z duggiefresh quit (Read error: Connection reset by peer) 2014-09-29T14:46:23Z duggiefr_ joined #scheme 2014-09-29T14:46:26Z pnkfelix joined #scheme 2014-09-29T14:46:44Z elzair quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-09-29T14:50:11Z duggiefr_ quit (Read error: Connection reset by peer) 2014-09-29T14:50:24Z duggiefresh joined #scheme 2014-09-29T14:52:17Z przl joined #scheme 2014-09-29T15:12:53Z przl quit (Ping timeout: 240 seconds) 2014-09-29T15:18:13Z ogamita quit (Ping timeout: 260 seconds) 2014-09-29T15:20:52Z theseb joined #scheme 2014-09-29T15:26:08Z Shadox joined #scheme 2014-09-29T15:27:02Z daviid joined #scheme 2014-09-29T15:29:43Z theseb quit (Remote host closed the connection) 2014-09-29T15:30:52Z theseb joined #scheme 2014-09-29T15:32:02Z lrs: http://pastebin.com/3zvhUA87 Can you use anything other than "and" to do this? 2014-09-29T15:32:52Z drdanmaku joined #scheme 2014-09-29T15:33:37Z przl joined #scheme 2014-09-29T15:37:57Z przl quit (Ping timeout: 258 seconds) 2014-09-29T15:39:07Z vanila: (<= (lower-bound y) 0 (upper-bound y)) I think 2014-09-29T15:39:10Z vanila: check the R5RS 2014-09-29T15:39:23Z vanila: http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-15.html#%_index_start 2014-09-29T15:39:24Z rudybot: http://tinyurl.com/3xs7wx 2014-09-29T15:39:30Z vanila: http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-9.html#%_idx_260 2014-09-29T15:39:31Z rudybot: http://tinyurl.com/ptrzovx 2014-09-29T15:39:53Z Fare joined #scheme 2014-09-29T15:40:19Z taylanub: (I'd say check the R7RS when possible but doesn't matter here) 2014-09-29T15:41:19Z vanila: taylanub, I'm working on creating a HTML version of R7RS 2014-09-29T15:41:24Z taylanub: great :) 2014-09-29T15:41:35Z vanila: it's hard because I have to do it by hand and R7RS IS SO LONGG! 2014-09-29T15:41:54Z vanila: [im lazy] 2014-09-29T15:42:10Z taylanub: I would've thought there's a way to translate (la)tex to HTML ? 2014-09-29T15:42:23Z vanila: I tried basically every automatic tool, none works well 2014-09-29T15:42:39Z taylanub: :\ 2014-09-29T15:42:46Z vanila: maybe someone smart could touch up the LaTeX a little to make the tools work, but not me 2014-09-29T15:42:59Z lrs: vanila, cond? 2014-09-29T15:44:20Z _tca: taylanub: there is a way and thats how that r5rs page was made http://www.ccs.neu.edu/home/dorai/tex2page/ 2014-09-29T15:45:01Z taylanub: vanila: ^ 2014-09-29T15:45:02Z vanila: lrs, <= 2014-09-29T15:45:02Z _tca: but r7rs tex is broken and is fragmenting the community and making me sad so whoever wrote it is a bully 2014-09-29T15:45:11Z lrs: vanila, ? 2014-09-29T15:45:11Z _tca: taylanub: it doesnt work with r7rs 2014-09-29T15:45:22Z vanila: not COND 2014-09-29T15:45:25Z taylanub: _tca: .. r7rs tex is fragmenting the community? :P 2014-09-29T15:45:48Z taylanub: that's the strangest r7rs complaint I've heard 2014-09-29T15:45:51Z vanila: once we have a nice HTML verison R7RS will create a beautiful unity 2014-09-29T15:53:11Z lrs: vanila, cond worked o.o 2014-09-29T15:53:33Z vanila: what 2014-09-29T15:54:32Z lrs: In the paste i pasted. Nevermind. 2014-09-29T15:56:51Z taylanub: lrs: 'cond' is a generalization of 'if'. it's basically an 'if-else-if-else...' chain 2014-09-29T15:57:05Z lrs: Yup. I know that. 2014-09-29T15:57:13Z lrs: I just found this codesnippet that used "and" 2014-09-29T15:57:21Z lrs: And wondered if it differed from cond in any way. 2014-09-29T15:57:25Z taylanub: I don't see where in that snippet you'd need 'cond' 2014-09-29T15:57:42Z kazimir42 joined #scheme 2014-09-29T15:57:56Z lrs: http://pastebin.com/VkBkSuhi 2014-09-29T15:58:01Z lrs: =.= 2014-09-29T15:58:17Z taylanub: lrs: that's utterly wrong 2014-09-29T15:58:27Z lrs: It works. 2014-09-29T15:58:32Z taylanub: no, it doesn't 2014-09-29T15:58:38Z taylanub: it always returns 0, which is true 2014-09-29T15:58:43Z ogamita joined #scheme 2014-09-29T15:58:47Z lrs: Yes. Thats the point. 2014-09-29T15:58:52Z taylanub: ... 2014-09-29T15:58:55Z taylanub: you use cond totally wrongly 2014-09-29T15:59:02Z taylanub: and just happened to write syntactically valid code which always returns 0 2014-09-29T15:59:08Z taylanub: by chance 2014-09-29T15:59:23Z taylanub: read up on how it's actually used 2014-09-29T15:59:28Z lrs: Its supposed to give a zero when youre dividing with a interval that spans from negative to positive 2014-09-29T15:59:44Z taylanub: it *always* gives 0, even if it doesn't span 0 2014-09-29T16:00:09Z lrs: ... 2014-09-29T16:00:11Z lrs: u.u 2014-09-29T16:00:14Z lrs: Fuck. 2014-09-29T16:00:36Z taylanub: even if it did work, it would be by chance. you should make sure you know what the code you write actually means, precisely 2014-09-29T16:00:55Z taylanub: don't do this "trial and error" programming, it's a horrible practice and won't bring you anywhere 2014-09-29T16:01:01Z taylanub: not to sound mean, but that's how it is 2014-09-29T16:01:11Z lrs: Thats the only way I learn stuff, thats the bitter truth. 2014-09-29T16:01:26Z lrs: I have ADHD-PI so. 2014-09-29T16:01:27Z taylanub: well trial and error is fine in general 2014-09-29T16:01:33Z lrs: (excuse) 2014-09-29T16:01:45Z taylanub: but you should also know *why* it worked or didn't work 2014-09-29T16:02:08Z lrs: Telling me to read 100 pages of something just for me to find what I need in page 78 paragraph 3 will make me nuts. -_- 2014-09-29T16:02:25Z taylanub: the explanation of 'cond' should take 2-3 sentences at most 2014-09-29T16:02:34Z lrs: Yeah, thats why I asked what the difference between cond and and was 2014-09-29T16:02:39Z taylanub: you can search the index of the r5rs for 'cond' 2014-09-29T16:03:10Z taylanub: http://www.schemers.org/Documents/Standards/R5RS/HTML/ 2014-09-29T16:03:23Z taylanub: click on 'index' on the right side 2014-09-29T16:03:30Z lrs: Yeah, Im already there 2014-09-29T16:03:34Z ogamita quit (Ping timeout: 250 seconds) 2014-09-29T16:04:33Z taylanub: any way, you don't need cond in that function. (define (span-zero? y) (<= (lower-bound y) 0 (upper-bound y))) will do 2014-09-29T16:04:44Z taylanub: '<=' already returns a boolean, you can just return it as-is 2014-09-29T16:06:04Z lrs: taylanub, I want it to return an error message though. 2014-09-29T16:06:14Z lrs: Thats why the int-div-2 stuff says.. if spans sero 2014-09-29T16:07:00Z lrs: Cool! It works 2014-09-29T16:07:11Z taylanub: do you understand HOW it works? 2014-09-29T16:07:18Z lrs: Nope. 2014-09-29T16:07:25Z lrs: Please explain. 2014-09-29T16:09:03Z vanila: lrs: I suggested (<= (lower-bound y) 0 (upper-bound y)), not COND 2014-09-29T16:09:11Z taylanub: lrs: you don't want 'span-zero?' to return an error. you want it to tell you if 'y' spans zero. the other function *uses* 'span-zero?' to know whether 'z' spans zero, and throws an error if it does 2014-09-29T16:09:54Z taylanub: lrs: 'span-zero?' is, as its name suggests, a "predicate" -- something that should return "yes"/"no", or rather true/false 2014-09-29T16:10:01Z lrs: Yeah, if i use the int-div2 function on an interval that is between ex: [-2,2] 2014-09-29T16:10:05Z lrs: Its gonna return an error 2014-09-29T16:11:16Z taylanub: (it doesn't really return an error, it throws one and thus doesn't ever return, but anyway) 2014-09-29T16:12:01Z civodul quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-09-29T16:12:32Z benaiah_ joined #scheme 2014-09-29T16:14:38Z guampa quit (Remote host closed the connection) 2014-09-29T16:14:46Z lrs: taylanub, What do you mean 2014-09-29T16:15:17Z guampa joined #scheme 2014-09-29T16:16:25Z taylanub: lrs: when a function "throws" (or "signals" or "raises") an "exception" (or "error" or "condition"), it interrupts execution and jumps to the exception handler. the function doesn't return to who called it 2014-09-29T16:16:44Z lrs: taylanub, I want spans-zero to check if it spans from a negative number to a positive number.... then i want int-div-2 to indicate if it does it will print out error 2014-09-29T16:16:58Z taylanub: ("throwing an exception", "signaling an error", and "raising a condition", or "raising an exception" -- ALL more or less the same thing) 2014-09-29T16:18:24Z taylanub: lrs: it's not really the function that prints an error. first, the 'error' function throws an exception with the message you specified. then, since you didn't specify an exception handler, this exception flies all the way up and your Scheme implementation catches it and prints the message. the function that was executing is never finished 2014-09-29T16:18:50Z taylanub: lrs: for example execute the function (lambda () (error "foo") (display "bar\n")) and see if it displays bar. 2014-09-29T16:19:40Z taylanub: or: (define (first-function) (second-function) (display "foo\n")) (define (second-function) (error "bar")). then call first-function and see if it displays foo. 2014-09-29T16:24:42Z lrs: This is too difficult for me. 2014-09-29T16:24:47Z lrs: I don't get what you mean. 2014-09-29T16:24:56Z lrs: Why doesn't my function work? 2014-09-29T16:26:27Z lrs: Ok I get what you mean 2014-09-29T16:27:09Z lrs: Ok " Error bar" 2014-09-29T16:27:44Z taylanub: not saying your function doesn't work; just explaining how it works 2014-09-29T16:27:52Z taylanub: (assuming it does; I didn't test it) 2014-09-29T16:28:25Z lrs: Yeah I get that 2014-09-29T16:28:26Z lrs: No problem 2014-09-29T16:28:37Z lrs: Its the lowebound => shit that connects to the error stuff I dont get 2014-09-29T16:31:37Z taylanub: lrs: you have to understand code in independent components. the function 'spans-zero?' doesn't know anything about how it's going to be used, it just knows what it does itself 2014-09-29T16:31:49Z taylanub: which is to return true or false depending on whether the argument you give it spans zero 2014-09-29T16:31:58Z taylanub: you then use this function as a component in another function 2014-09-29T16:35:31Z lrs: RIghhht 2014-09-29T16:35:45Z lrs: (if (spans-zero? y) 2014-09-29T16:35:47Z lrs: (<= (lower-bound y) 0 2014-09-29T16:35:48Z lrs: (upper-bound y))) 2014-09-29T16:35:58Z lrs: Thats what I dont get. I get the connection that you just said. 2014-09-29T16:36:33Z taylanub: huh 2014-09-29T16:36:53Z taylanub: when did you write that code? it seems you put the (<= ...) in the wrong place 2014-09-29T16:37:00Z taylanub: that was meant to be the body of 'spans-zero?' 2014-09-29T16:37:20Z lrs: http://pastebin.com/5QHxJLe8 2014-09-29T16:37:53Z taylanub: that looks fine 2014-09-29T16:37:59Z taylanub: except the indentation is screwed 2014-09-29T16:38:06Z lrs: Heh. 2014-09-29T16:38:17Z lrs: I just dont get the stuff that I said 2014-09-29T16:38:23Z lrs: Can you explain it in english? 2014-09-29T16:39:51Z taylanub: maybe it's clearer like this: http://pastebin.com/F35PXu2k 2014-09-29T16:41:06Z lrs: I get that 2014-09-29T16:41:15Z lrs: I just dont really get what <= (lower-bound y) 0 (upper-bound y) means 2014-09-29T16:41:24Z lrs: And (if (spans-zero? y) 2014-09-29T16:41:31Z lrs: Why y 2014-09-29T16:41:42Z lrs: And uh, the => stuff. What does it say 2014-09-29T16:41:51Z taylanub: y is just the 'y' parameter of the lambda you have there 2014-09-29T16:42:04Z taylanub: of course, 'span-zero?' could give it a totally different name 2014-09-29T16:42:25Z taylanub: the definition of 'spans-zero?' could be in a totally different file 2014-09-29T16:42:49Z taylanub: '(<= x y z)' means "x is smaller than or equal to y, which is smaller than or equal to z" 2014-09-29T16:42:51Z przl joined #scheme 2014-09-29T16:43:06Z LeoNerd: "x y z forms a non-decreasing sequence" 2014-09-29T16:43:52Z lrs: Can you explain what it means in that specific problem 2014-09-29T16:44:09Z taylanub: I don't think I can be any clearer 2014-09-29T16:45:13Z lrs: I meant if you could say that in my specific problem 2014-09-29T16:45:26Z taylanub: what exactly? 2014-09-29T16:45:31Z lrs: Instead of x y z 2014-09-29T16:45:57Z taylanub: "the lower bound of y is less than or equal to 0, and 0 is less than or equal to the upper bound of y" 2014-09-29T16:46:11Z taylanub: which is the spelled-out way of saying "y spans 0" 2014-09-29T16:46:52Z taylanub: I need to go. laters. 2014-09-29T16:46:58Z lrs: See ya 2014-09-29T16:47:04Z lrs: Thanks for the help 2014-09-29T16:49:45Z Kruppe quit (Quit: ZNC - http://znc.in) 2014-09-29T16:52:04Z b4283 quit (Quit: Konversation terminated!) 2014-09-29T16:53:25Z Kruppe joined #scheme 2014-09-29T16:59:06Z benaiah_ quit (Quit: Textual IRC Client: www.textualapp.com) 2014-09-29T16:59:37Z MichaelRaskin joined #scheme 2014-09-29T17:02:57Z alexei_ joined #scheme 2014-09-29T17:08:35Z ventonegro quit (Remote host closed the connection) 2014-09-29T17:10:08Z Fare quit (Ping timeout: 260 seconds) 2014-09-29T17:12:45Z przl quit (Quit: leaving) 2014-09-29T17:21:21Z pnkfelix quit (Quit: rcirc on GNU Emacs 24.3.92.1) 2014-09-29T17:22:31Z joneshf-laptop quit (Ping timeout: 272 seconds) 2014-09-29T17:25:58Z theseb quit (Remote host closed the connection) 2014-09-29T17:27:03Z jeapostr1phe joined #scheme 2014-09-29T17:27:27Z theseb joined #scheme 2014-09-29T17:28:43Z Fare joined #scheme 2014-09-29T17:29:39Z jeapostrophe quit (Ping timeout: 246 seconds) 2014-09-29T17:39:24Z joneshf-laptop joined #scheme 2014-09-29T17:41:05Z pnpuff joined #scheme 2014-09-29T17:48:11Z theseb quit (Quit: Leaving) 2014-09-29T17:52:37Z araujo quit (Ping timeout: 260 seconds) 2014-09-29T17:56:12Z kongtomorrow joined #scheme 2014-09-29T18:15:34Z drewc left #scheme 2014-09-29T18:18:22Z Fare quit (Ping timeout: 240 seconds) 2014-09-29T18:19:12Z rtra quit (Ping timeout: 250 seconds) 2014-09-29T18:21:44Z rtra joined #scheme 2014-09-29T18:22:50Z Fare joined #scheme 2014-09-29T18:24:39Z zophy joined #scheme 2014-09-29T18:41:52Z lrs quit (Quit: Leaving) 2014-09-29T18:42:34Z Fare quit (Ping timeout: 272 seconds) 2014-09-29T18:42:49Z Elzair joined #scheme 2014-09-29T18:42:52Z alexei_ quit (Ping timeout: 240 seconds) 2014-09-29T18:43:03Z Elzair quit (Client Quit) 2014-09-29T18:45:28Z alexei_ joined #scheme 2014-09-29T18:53:40Z davexunit quit (Read error: No route to host) 2014-09-29T18:58:20Z davexunit joined #scheme 2014-09-29T18:58:28Z kobain quit (Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/) 2014-09-29T19:02:13Z balkamos quit (Ping timeout: 260 seconds) 2014-09-29T19:02:55Z ivanshmakov is now known as ivanshmakov| 2014-09-29T19:04:11Z balkamos joined #scheme 2014-09-29T19:04:47Z BossKonaSegwaY quit (Ping timeout: 245 seconds) 2014-09-29T19:07:11Z ivanshmakov joined #scheme 2014-09-29T19:17:53Z kobain joined #scheme 2014-09-29T19:18:37Z ivanshmakov| quit (Quit: Moved to a better, newer Emacs!) 2014-09-29T19:19:07Z kobain quit (Max SendQ exceeded) 2014-09-29T19:19:25Z kobain joined #scheme 2014-09-29T19:20:02Z kobain quit (Max SendQ exceeded) 2014-09-29T19:20:19Z kobain joined #scheme 2014-09-29T19:20:36Z BitPuffin quit (Ping timeout: 246 seconds) 2014-09-29T19:20:56Z kobain quit (Max SendQ exceeded) 2014-09-29T19:21:14Z kobain joined #scheme 2014-09-29T19:23:50Z BossKonaSegwaY joined #scheme 2014-09-29T19:25:45Z jeapostr1phe quit (Ping timeout: 244 seconds) 2014-09-29T19:27:35Z vanila quit (Remote host closed the connection) 2014-09-29T19:34:08Z developernotes joined #scheme 2014-09-29T19:37:49Z Serpentoj joined #scheme 2014-09-29T19:40:18Z civodul joined #scheme 2014-09-29T19:42:11Z theseb joined #scheme 2014-09-29T19:49:27Z kazimir42 quit (Ping timeout: 264 seconds) 2014-09-29T19:59:02Z hiyosi quit (Ping timeout: 245 seconds) 2014-09-29T19:59:14Z ogamita joined #scheme 2014-09-29T20:01:10Z araujo joined #scheme 2014-09-29T20:01:10Z araujo quit (Changing host) 2014-09-29T20:01:10Z araujo joined #scheme 2014-09-29T20:06:07Z zophy quit (Ping timeout: 245 seconds) 2014-09-29T20:12:42Z oleo is now known as Guest11612 2014-09-29T20:14:18Z oleo__ joined #scheme 2014-09-29T20:16:18Z Guest11612 quit (Ping timeout: 272 seconds) 2014-09-29T20:19:55Z holst joined #scheme 2014-09-29T20:19:55Z oldskirt joined #scheme 2014-09-29T20:35:31Z duggiefresh quit 2014-09-29T20:35:43Z holst: damn scheme, I cannot even formulate my question! :D 2014-09-29T20:35:56Z holst: "I have a list and bla bla into a tree" 2014-09-29T20:36:10Z holst: looking at the data I want.. I question if its really a tree :P 2014-09-29T20:36:28Z theseb quit (Quit: Leaving) 2014-09-29T20:37:17Z holst: Has anyone here made a "Makefile" like dependency graph code in Scheme? 2014-09-29T20:37:30Z holst: input= list of dependencies between objects 2014-09-29T20:37:55Z holst: output= dependency graph such that it can be evaluated bottom-up for a correct build order 2014-09-29T20:38:50Z jeapostrophe joined #scheme 2014-09-29T20:38:50Z jeapostrophe quit (Changing host) 2014-09-29T20:38:50Z jeapostrophe joined #scheme 2014-09-29T20:38:50Z DerGuteMoritz: are you looking for a topological sort function? 2014-09-29T20:39:08Z mario-goulart: holst: there is a "make" implementation in scheme. here's the port to CHICKEN http://wiki.call-cc.org/eggref/4/make 2014-09-29T20:40:53Z holst: thanks for the like! 2014-09-29T20:40:58Z holst: err. too much facebook 2014-09-29T20:41:00Z holst: link! 2014-09-29T20:41:12Z mario-goulart: :-) 2014-09-29T20:42:28Z gnomon quit (Ping timeout: 260 seconds) 2014-09-29T20:43:52Z hiyosi joined #scheme 2014-09-29T20:48:23Z hiyosi quit (Ping timeout: 240 seconds) 2014-09-29T20:48:41Z kongtomorrow quit 2014-09-29T20:48:53Z gnomon joined #scheme 2014-09-29T20:54:39Z kongtomorrow joined #scheme 2014-09-29T20:58:56Z davexunit quit (Quit: Later) 2014-09-29T21:06:52Z kongtomorrow quit 2014-09-29T21:14:58Z developernotes quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2014-09-29T21:15:56Z developernotes joined #scheme 2014-09-29T21:17:45Z tcsc joined #scheme 2014-09-29T21:20:09Z pera joined #scheme 2014-09-29T21:24:45Z civodul quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-09-29T21:28:02Z hiroakip joined #scheme 2014-09-29T21:39:24Z pnpuff quit (Ping timeout: 256 seconds) 2014-09-29T21:44:37Z hiyosi joined #scheme 2014-09-29T21:49:23Z hiyosi quit (Ping timeout: 240 seconds) 2014-09-29T21:51:23Z kongtomorrow joined #scheme 2014-09-29T21:56:33Z kongtomorrow quit 2014-09-29T21:58:37Z ogamita quit (Ping timeout: 260 seconds) 2014-09-29T22:00:42Z masm quit (Ping timeout: 245 seconds) 2014-09-29T22:03:40Z oldskirt quit (Ping timeout: 260 seconds) 2014-09-29T22:05:00Z robot-beethoven joined #scheme 2014-09-29T22:06:28Z MouldyOl1 joined #scheme 2014-09-29T22:07:27Z MouldyOldBones quit (Ping timeout: 264 seconds) 2014-09-29T22:08:04Z vinleod quit (Quit: ["Textual IRC Client: www.textualapp.com"]) 2014-09-29T22:10:43Z developernotes quit (Remote host closed the connection) 2014-09-29T22:17:43Z kongtomorrow joined #scheme 2014-09-29T22:23:49Z kongtomorrow quit 2014-09-29T22:25:26Z ogamita joined #scheme 2014-09-29T22:26:51Z davexunit joined #scheme 2014-09-29T22:27:06Z kongtomorrow joined #scheme 2014-09-29T22:28:54Z zophy joined #scheme 2014-09-29T22:29:41Z ogamita quit (Ping timeout: 244 seconds) 2014-09-29T22:38:09Z iterrogo quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-09-29T22:40:27Z bjz quit (Ping timeout: 272 seconds) 2014-09-29T22:42:40Z hiroakip quit (Ping timeout: 250 seconds) 2014-09-29T22:42:41Z holst quit (Quit: Lost terminal) 2014-09-29T22:45:34Z hiyosi joined #scheme 2014-09-29T22:50:02Z hiyosi quit (Ping timeout: 250 seconds) 2014-09-29T22:51:21Z stepnem quit (Ping timeout: 260 seconds) 2014-09-29T22:53:30Z fridim__ quit (Ping timeout: 250 seconds) 2014-09-29T22:55:14Z daviid quit (Ping timeout: 250 seconds) 2014-09-29T23:06:25Z alexei_ quit (Ping timeout: 272 seconds) 2014-09-29T23:13:48Z ogamita joined #scheme 2014-09-29T23:17:30Z hiyosi joined #scheme 2014-09-29T23:24:54Z BossKonaSegwaY quit (Ping timeout: 246 seconds) 2014-09-29T23:36:44Z BossKonaSegwaY joined #scheme 2014-09-29T23:43:16Z mrowe_away is now known as mrowe 2014-09-29T23:45:18Z akp__ joined #scheme 2014-09-29T23:50:32Z BossKonaSegwaY quit (Ping timeout: 260 seconds) 2014-09-29T23:52:01Z BossKonaSegwaY joined #scheme