2014-10-26T00:02:56Z Rodya_ quit (Read error: No route to host) 2014-10-26T00:07:06Z kuribas quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-26T00:12:16Z Rodya_ joined #scheme 2014-10-26T00:29:31Z cbsw joined #scheme 2014-10-26T00:48:23Z zmv joined #scheme 2014-10-26T00:50:20Z SHODAN quit (Remote host closed the connection) 2014-10-26T00:51:06Z robot-beethoven joined #scheme 2014-10-26T00:52:49Z cbsw quit (Ping timeout: 260 seconds) 2014-10-26T00:53:27Z SHODAN joined #scheme 2014-10-26T00:53:32Z cbsw joined #scheme 2014-10-26T00:57:00Z ehaliewicz quit (Ping timeout: 250 seconds) 2014-10-26T01:00:54Z zmv quit (Read error: Connection reset by peer) 2014-10-26T01:20:06Z _tca is now known as cojy 2014-10-26T01:21:10Z Fare quit (Ping timeout: 258 seconds) 2014-10-26T01:41:00Z hiyosi_ quit (Read error: Connection reset by peer) 2014-10-26T01:42:35Z hiyosi joined #scheme 2014-10-26T01:54:30Z githogori joined #scheme 2014-10-26T01:55:24Z Rodya_ quit (Remote host closed the connection) 2014-10-26T02:07:57Z cbsw quit (Ping timeout: 260 seconds) 2014-10-26T02:18:21Z oldskirt joined #scheme 2014-10-26T02:18:25Z oldskirt quit (Changing host) 2014-10-26T02:18:25Z oldskirt joined #scheme 2014-10-26T02:18:29Z cutgovspend: vot republican 2014-10-26T02:18:31Z cutgovspend: I do 2014-10-26T02:18:40Z vanila: that's offtopic 2014-10-26T02:18:47Z oldskirt_ quit (Ping timeout: 255 seconds) 2014-10-26T02:20:59Z cutgovspend: true 2014-10-26T02:21:13Z cutgovspend: vanila: how old are u 2014-10-26T02:21:23Z vanila: 25 2014-10-26T02:21:33Z cutgovspend: democrat? 2014-10-26T02:21:42Z cbsw joined #scheme 2014-10-26T02:22:00Z cutgovspend: married? 2014-10-26T02:25:12Z cutgovspend: well 2014-10-26T02:25:22Z cutgovspend: my advice is go out to a hallween party 2014-10-26T02:25:24Z cutgovspend: get some action 2014-10-26T02:25:30Z cutgovspend: its saturday night!!! 2014-10-26T02:25:33Z cutgovspend: you know I am 2014-10-26T02:25:36Z cutgovspend: im suiting up now!! 2014-10-26T02:25:39Z cutgovspend: aw yeah!!! 2014-10-26T02:25:48Z cojy: what is your costume 2014-10-26T02:25:52Z cutgovspend quit (Remote host closed the connection) 2014-10-26T02:26:04Z vanila: sexy ebola nurse 2014-10-26T02:35:14Z tobik quit (Ping timeout: 245 seconds) 2014-10-26T02:37:12Z vanila quit (Quit: Leaving) 2014-10-26T02:37:16Z tobik joined #scheme 2014-10-26T02:44:18Z cbsw quit (Ping timeout: 265 seconds) 2014-10-26T02:51:45Z cbsw joined #scheme 2014-10-26T03:05:26Z cbsw quit (Ping timeout: 258 seconds) 2014-10-26T03:10:30Z cbsw joined #scheme 2014-10-26T03:15:24Z amgarchIn9 quit (Ping timeout: 258 seconds) 2014-10-26T03:40:47Z cbsw quit (Ping timeout: 272 seconds) 2014-10-26T03:47:28Z zacts- joined #scheme 2014-10-26T03:48:12Z rtra quit (Ping timeout: 245 seconds) 2014-10-26T03:49:06Z oldskirt is now known as oldskirt_ 2014-10-26T03:50:39Z rtra joined #scheme 2014-10-26T04:02:20Z cbsw joined #scheme 2014-10-26T04:09:31Z ijp quit (Quit: zzzz) 2014-10-26T04:09:53Z ehaliewicz joined #scheme 2014-10-26T04:27:37Z hiyosi quit (Read error: Connection reset by peer) 2014-10-26T04:28:29Z hiyosi joined #scheme 2014-10-26T04:42:10Z nisstyre quit (Ping timeout: 265 seconds) 2014-10-26T04:43:48Z araujo quit (Quit: Leaving) 2014-10-26T04:50:35Z alezost joined #scheme 2014-10-26T04:51:38Z stamourv` joined #scheme 2014-10-26T04:53:37Z stamourv quit (Ping timeout: 272 seconds) 2014-10-26T04:53:37Z jrslepak quit (Ping timeout: 272 seconds) 2014-10-26T04:55:05Z jrslepak joined #scheme 2014-10-26T05:19:58Z leb quit (Quit: Computer has gone to sleep.) 2014-10-26T05:25:17Z ehaliewicz quit (Remote host closed the connection) 2014-10-26T05:29:04Z dmiles_afk joined #scheme 2014-10-26T05:43:26Z daviid quit (Ping timeout: 250 seconds) 2014-10-26T06:10:06Z lolcow joined #scheme 2014-10-26T06:13:02Z leppie quit (Ping timeout: 256 seconds) 2014-10-26T06:14:36Z Vutral__ joined #scheme 2014-10-26T06:16:04Z Vutral_ quit (Ping timeout: 245 seconds) 2014-10-26T06:18:25Z oleo is now known as Guest31007 2014-10-26T06:19:50Z oleo__ joined #scheme 2014-10-26T06:20:55Z Guest31007 quit (Ping timeout: 244 seconds) 2014-10-26T06:57:16Z tadni joined #scheme 2014-10-26T07:01:11Z bb010g quit (Quit: Connection closed for inactivity) 2014-10-26T07:35:45Z tadni quit (Ping timeout: 272 seconds) 2014-10-26T07:41:02Z tadni joined #scheme 2014-10-26T08:16:20Z b4283 joined #scheme 2014-10-26T08:17:19Z tobik quit (Ping timeout: 245 seconds) 2014-10-26T08:18:13Z zacts- quit (Ping timeout: 265 seconds) 2014-10-26T08:18:21Z tobik joined #scheme 2014-10-26T08:21:54Z jewel quit (Ping timeout: 245 seconds) 2014-10-26T08:42:52Z jewel joined #scheme 2014-10-26T08:48:14Z wingo joined #scheme 2014-10-26T09:23:47Z stepnem joined #scheme 2014-10-26T10:03:28Z robot-beethoven quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-26T10:21:14Z b4283 quit (Remote host closed the connection) 2014-10-26T10:30:41Z majere joined #scheme 2014-10-26T11:04:56Z gravicappa joined #scheme 2014-10-26T11:08:34Z DGASAU quit (Ping timeout: 245 seconds) 2014-10-26T11:08:59Z drewc quit (Ping timeout: 245 seconds) 2014-10-26T11:10:05Z DGASAU joined #scheme 2014-10-26T11:51:09Z amgarchIn9 joined #scheme 2014-10-26T11:53:45Z davexunit joined #scheme 2014-10-26T11:56:49Z drewc joined #scheme 2014-10-26T12:02:36Z wingo quit (Ping timeout: 250 seconds) 2014-10-26T12:06:05Z oleo__ is now known as oleo 2014-10-26T12:08:18Z oleo quit (Remote host closed the connection) 2014-10-26T12:11:34Z oleo joined #scheme 2014-10-26T12:18:09Z amgarchIn9 quit (Ping timeout: 244 seconds) 2014-10-26T12:24:36Z amgarchIn9 joined #scheme 2014-10-26T12:33:02Z amgarchIn9 quit (Ping timeout: 255 seconds) 2014-10-26T12:41:37Z leo2007 quit (Quit: rcirc on GNU Emacs 25.0.50.5) 2014-10-26T12:42:41Z leo2007 joined #scheme 2014-10-26T12:47:17Z girrig quit (Ping timeout: 260 seconds) 2014-10-26T12:54:43Z pjdelport_ joined #scheme 2014-10-26T12:55:43Z ec__ joined #scheme 2014-10-26T12:56:00Z em_ joined #scheme 2014-10-26T12:56:41Z pjdelport quit (Ping timeout: 260 seconds) 2014-10-26T12:56:41Z ec quit (Ping timeout: 260 seconds) 2014-10-26T12:56:41Z ggherdov quit (Ping timeout: 260 seconds) 2014-10-26T12:56:42Z pchrist quit (Ping timeout: 260 seconds) 2014-10-26T12:56:42Z LeoNerd quit (Ping timeout: 260 seconds) 2014-10-26T12:56:42Z dlowe quit (Ping timeout: 260 seconds) 2014-10-26T12:56:43Z stamourv` quit (Ping timeout: 260 seconds) 2014-10-26T12:56:43Z Vutral quit (Ping timeout: 260 seconds) 2014-10-26T12:56:43Z ivanshmakov quit (Ping timeout: 260 seconds) 2014-10-26T12:56:43Z Blkt quit (Ping timeout: 260 seconds) 2014-10-26T12:56:43Z Tbone139 quit (Ping timeout: 260 seconds) 2014-10-26T12:56:43Z em quit (Ping timeout: 260 seconds) 2014-10-26T12:56:44Z diginet quit (Ping timeout: 260 seconds) 2014-10-26T12:56:44Z LeoNerd joined #scheme 2014-10-26T12:56:44Z DerGuteMoritz quit (Ping timeout: 260 seconds) 2014-10-26T12:56:44Z Blkt joined #scheme 2014-10-26T12:56:47Z pjdelport_ is now known as pjdelport 2014-10-26T12:56:57Z diginet_ joined #scheme 2014-10-26T12:57:05Z cdidd quit (Ping timeout: 260 seconds) 2014-10-26T12:57:09Z dlowe_ joined #scheme 2014-10-26T12:57:11Z dlowe_ is now known as dlowe 2014-10-26T12:57:25Z cdidd joined #scheme 2014-10-26T12:57:26Z DerGuteMoritz joined #scheme 2014-10-26T12:57:51Z ggherdov joined #scheme 2014-10-26T12:58:21Z girrig joined #scheme 2014-10-26T12:58:24Z Tbone139 joined #scheme 2014-10-26T13:00:09Z ivanshmakov joined #scheme 2014-10-26T13:00:34Z pchrist joined #scheme 2014-10-26T13:02:35Z Vutral joined #scheme 2014-10-26T13:04:58Z em_ quit (Quit: ♥) 2014-10-26T13:05:15Z emma joined #scheme 2014-10-26T13:11:38Z vanila joined #scheme 2014-10-26T13:16:19Z oldskirt joined #scheme 2014-10-26T13:18:46Z oldskirt_ quit (Ping timeout: 258 seconds) 2014-10-26T13:21:24Z cibs quit (*.net *.split) 2014-10-26T13:21:24Z tali713 quit (*.net *.split) 2014-10-26T13:26:28Z cibs joined #scheme 2014-10-26T13:26:28Z tali713 joined #scheme 2014-10-26T13:26:55Z przl joined #scheme 2014-10-26T13:28:59Z jusss joined #scheme 2014-10-26T13:33:27Z pjb` joined #scheme 2014-10-26T13:34:34Z twem2_ joined #scheme 2014-10-26T13:35:16Z ByronJoh1son joined #scheme 2014-10-26T13:35:21Z kilimanj1ro joined #scheme 2014-10-26T13:39:52Z pjdelport quit (*.net *.split) 2014-10-26T13:39:52Z pjb quit (*.net *.split) 2014-10-26T13:39:52Z ByronJohnson quit (*.net *.split) 2014-10-26T13:39:52Z twem2 quit (*.net *.split) 2014-10-26T13:39:52Z kilimanjaro quit (*.net *.split) 2014-10-26T13:39:53Z guampa quit (*.net *.split) 2014-10-26T13:41:09Z oldskirt is now known as oldskirt_ 2014-10-26T13:41:21Z pjdelport_ joined #scheme 2014-10-26T13:42:45Z taylanub quit (Disconnected by services) 2014-10-26T13:43:17Z taylanub joined #scheme 2014-10-26T13:54:47Z przl quit (Quit: leaving) 2014-10-26T13:55:52Z przl joined #scheme 2014-10-26T14:02:19Z choas_ quit (Ping timeout: 244 seconds) 2014-10-26T14:02:44Z choas joined #scheme 2014-10-26T14:03:01Z juanfra quit (Remote host closed the connection) 2014-10-26T14:03:18Z bpalmer quit (Changing host) 2014-10-26T14:03:18Z bpalmer joined #scheme 2014-10-26T14:05:02Z juanfra10 joined #scheme 2014-10-26T14:05:03Z karswell` joined #scheme 2014-10-26T14:07:03Z taylanub: I'm frustrated. SRFI-2 is really hard to implement with syntax-rules. 2014-10-26T14:07:21Z karswell quit (Read error: Connection reset by peer) 2014-10-26T14:07:58Z pjdelport_ quit (Changing host) 2014-10-26T14:07:58Z pjdelport_ joined #scheme 2014-10-26T14:10:09Z amoe quit (Ping timeout: 269 seconds) 2014-10-26T14:10:30Z amoe joined #scheme 2014-10-26T14:19:40Z taylanub: I'm frustrated again. The HTML page http://srfi.schemers.org/srfi-3/srfi-3.html seems broken and the reference implementation link gives me some source that has a comment saying I'm looking at an obsolete draft version. WTF? 2014-10-26T14:20:38Z taylanub: the page looks like someone didn't manage to resolve some merge conflicts? :\ 2014-10-26T14:21:03Z taylanub: oh wait, SRFI-3 is withdrawn. move on. 2014-10-26T14:25:14Z b4283 joined #scheme 2014-10-26T14:33:17Z guampa joined #scheme 2014-10-26T14:37:09Z kwmiebach quit (Ping timeout: 265 seconds) 2014-10-26T14:37:20Z cojy quit (Read error: Connection reset by peer) 2014-10-26T14:37:34Z superjudge quit (Ping timeout: 272 seconds) 2014-10-26T14:37:38Z gluegadget quit (Ping timeout: 265 seconds) 2014-10-26T14:39:49Z przl quit (Ping timeout: 245 seconds) 2014-10-26T14:45:16Z jffmcc joined #scheme 2014-10-26T14:46:14Z Blkt quit (Remote host closed the connection) 2014-10-26T14:46:23Z Blkt joined #scheme 2014-10-26T14:48:02Z jffmcc: Hi. Please point out the error: http://pastebin.com/JbtSVb3V The code is supposed to test whether the elements in a list are equal 2014-10-26T14:49:37Z dmiles joined #scheme 2014-10-26T14:49:57Z przl joined #scheme 2014-10-26T14:50:21Z dmiles_afk quit (Ping timeout: 244 seconds) 2014-10-26T14:52:37Z acarrico quit (Ping timeout: 265 seconds) 2014-10-26T14:55:27Z taylanub: jffmcc: homework? 2014-10-26T14:55:37Z jffmcc: Yeah 2014-10-26T14:55:50Z taylanub: otherwise (apply equal? l) and be done with it :P 2014-10-26T14:56:15Z jffmcc: Oh XD Thanks 2014-10-26T14:56:41Z jffmcc: I keep forgetting to use equal? for lists 2014-10-26T14:57:20Z taylanub: .oO( indeed, I guess (equal? l) is the same as (apply equal? l). ) 2014-10-26T14:57:46Z ecraven: (equal? l) is an arity error 2014-10-26T14:57:58Z taylanub: er .. my brain is fried 2014-10-26T14:58:43Z jffmcc: Still got an error: . . mcar: contract violation expected: mpair? given: () 2014-10-26T14:58:53Z taylanub: jffmcc: from what code? 2014-10-26T14:59:02Z jffmcc: Lines 2-3 2014-10-26T14:59:09Z jffmcc: http://pastebin.com/JbtSVb3V 2014-10-26T15:00:47Z jffmcc: Wait a sec. I will be right back. Need to restart my computer 2014-10-26T15:00:57Z jffmcc quit (Quit: Page closed) 2014-10-26T15:01:30Z jusss quit (Quit: ERC Version 5.2 (IRC client for Emacs)) 2014-10-26T15:07:27Z jffmcc joined #scheme 2014-10-26T15:08:03Z jffmcc: Alright any thoughts? 2014-10-26T15:09:04Z ecraven: jffmcc: yes 2014-10-26T15:09:14Z ecraven: jffmcc: think about what you are doing here, and in which order the cond clauses are checked 2014-10-26T15:09:23Z bpalmer quit (Changing host) 2014-10-26T15:09:23Z bpalmer joined #scheme 2014-10-26T15:09:26Z ecraven: what does the first check do? 2014-10-26T15:09:56Z ecraven: or alternatively, what does (allequal? '()) do? what does (allequal? '(1)) do? 2014-10-26T15:09:59Z jffmcc: Checks if the length of the list is 2, and if it is, it checks if the first and last elements of that list are euqla 2014-10-26T15:10:01Z jffmcc: * equal 2014-10-26T15:10:26Z jffmcc: (allequal? '(1)) gives and error 2014-10-26T15:10:31Z ecraven: why? 2014-10-26T15:10:49Z jffmcc: Oh its given that allequal? is a function that is given a list of at least 2 elementrs 2014-10-26T15:10:53Z jffmcc: * elements 2014-10-26T15:11:01Z jffmcc: So I dont need to worry about that 2014-10-26T15:11:30Z jffmcc: ^^^^ * an 2014-10-26T15:14:54Z jffmcc: ecraven? 2014-10-26T15:17:25Z ecraven: you do, because you call (cdr l), so it will then be a shorter list 2014-10-26T15:19:37Z jffmcc: Oh I see. Thanks! 2014-10-26T15:19:54Z jffmcc: So, cdr l if length is greater than 2 2014-10-26T15:20:57Z hiroakip joined #scheme 2014-10-26T15:21:57Z ecraven: well, the problem is, the order of your cond clauses seems wrong, your second clause assumes there is a car and a cdr, even though you never check for it (it might go to the second clause because the length is not 2 or because car and cadr aren't equal) 2014-10-26T15:22:15Z ecraven: personally, i'd write it so that it first checks the length (in increasing order), then does something 2014-10-26T15:31:08Z jffmcc: Ok I dont get an error now, but I get a #f for a true stateent 2014-10-26T15:31:16Z jffmcc: * #f when it is true 2014-10-26T15:31:23Z ecraven: paste your code on pastebin 2014-10-26T15:32:01Z przl quit (Ping timeout: 260 seconds) 2014-10-26T15:32:07Z jffmcc: Wait, I dont want to rely too much. I'll try to think it out a bit 2014-10-26T15:35:54Z jffmcc: For cond, if a clause is true, it stops evaluating the code or keeps going? 2014-10-26T15:43:30Z jffmcc: encraven, I still get #f no matter what I do 2014-10-26T15:44:45Z jffmcc: http://pastebin.com/y54vV1bw -> I tried using if 2014-10-26T15:48:00Z daviid joined #scheme 2014-10-26T15:50:45Z przl joined #scheme 2014-10-26T15:52:15Z ddp joined #scheme 2014-10-26T15:53:15Z oldskirt_ is now known as oldskirt 2014-10-26T15:56:44Z taylanub: hmm, so there's ##lisp for talk about lisp in general. (not like #lisp which is about CL.) not many people there though. I hope it'll grow. 2014-10-26T15:57:24Z superjudge joined #scheme 2014-10-26T15:57:38Z jffmcc: taylanub, seems like ecraven is afk 2014-10-26T15:57:39Z kwmiebach joined #scheme 2014-10-26T15:58:09Z jffmcc: Could you help me out? http://pastebin.com/y54vV1bw I get #f for both of the tests... Dont know whats wrong 2014-10-26T15:58:38Z cojy joined #scheme 2014-10-26T15:58:55Z taylanub: jffmcc: tip: if you use a literal #t or #f somewhere, there's a good chance your code isn't in typical scheme style. usually you just let the truthiness or falseness come from somewhere. 2014-10-26T15:59:50Z taylanub: for example (if (something) #t #f) is the same as just (something), except in the former case you're forcing it to return #t when normally it could return some more meaningful value (all values except #f count as true) 2014-10-26T16:01:30Z jffmcc: So how would I make it return #t if the clause is true and #f if its not? 2014-10-26T16:01:55Z taylanub: do you *have* to make it return #t? if so, fine I guess. 2014-10-26T16:02:21Z jffmcc: I have to make it return #t if the clause is true 2014-10-26T16:03:08Z taylanub: well, in this case, = and equal? already return #t, so you can strip off the (if ... #t f), and it will still be sure to return #t or #f 2014-10-26T16:03:31Z fizzie: (equal? (car l) (allequal? ...)) is rather unlikely to be correct, though. 2014-10-26T16:04:51Z fizzie: (Given that l contains numbers and allequal?, as was just established, returns either #t or #f.) 2014-10-26T16:06:18Z jffmcc: The elements can be letters 2014-10-26T16:06:33Z jffmcc: I just used numbers for the test... 2014-10-26T16:06:34Z fizzie: Even if they're letters, they won't be equal to #t or #f. 2014-10-26T16:06:57Z jffmcc: Alright Ill try rewriting the code from scratch 2014-10-26T16:07:00Z fizzie: You're comparing (car l) and the result of (allequal? (cdr l)) there. Those are not going to be the same thing. 2014-10-26T16:07:12Z fizzie: (Unless the list is full of #t's or #f's, I guess.) 2014-10-26T16:07:32Z jffmcc is busy writing the new code 2014-10-26T16:10:13Z gluegadget joined #scheme 2014-10-26T16:11:18Z taylanub: jffmcc: another tip: try to write your procedure in such a way that it will "walk through" the list, carrying values with it, instead of diving down, getting values, and carrying them back up. here's an example that might convey the idea: http://sprunge.us/UHdM (both implementations are otherwise pretty stupid, but they showcase the contrast between the methods) 2014-10-26T16:16:43Z przl quit (Ping timeout: 265 seconds) 2014-10-26T16:18:03Z przl joined #scheme 2014-10-26T16:45:37Z jffmcc quit (Quit: Page closed) 2014-10-26T16:48:05Z przl quit (Ping timeout: 260 seconds) 2014-10-26T16:48:20Z taylanub notices one can use e.g. (let ((x #f)) #f) as sort of an (identifier? x) guard in macros. 2014-10-26T16:49:09Z przl joined #scheme 2014-10-26T16:50:37Z karswell` quit (Read error: Connection reset by peer) 2014-10-26T16:51:08Z taylanub: grrrrrrrrrr, who let SRFI-2 pass 2014-10-26T16:53:10Z phipes joined #scheme 2014-10-26T16:55:13Z taylanub: even let* allows the same identifier to be bound multiple times. the test-suite in the and-let* reference implementation mark it as a syntax error 2014-10-26T16:55:38Z cbsw quit (Ping timeout: 272 seconds) 2014-10-26T16:58:27Z wingo joined #scheme 2014-10-26T17:00:11Z ehaliewicz joined #scheme 2014-10-26T17:00:58Z taylanub: ah, up to and including in R5RS it was vague whether let* allows the same variable to reappear, and apparently the SRFI-2 author interpreted it as being invalid and followed that. R6 and 7RS explicitly allow it. Guile's SRFI-2 implementation also allows it. mine will too then; I doubt many programs rely on this historical bug. 2014-10-26T17:03:37Z b4283 quit (Quit: Konversation terminated!) 2014-10-26T17:15:01Z taylanub: Racket's and Chicken's implementations allow it too so the deal is sealed. 2014-10-26T17:29:12Z hiroakip quit (Ping timeout: 272 seconds) 2014-10-26T17:35:36Z leb joined #scheme 2014-10-26T17:36:28Z leb quit (Client Quit) 2014-10-26T17:40:46Z mark_wea` joined #scheme 2014-10-26T17:40:53Z mark_weaver quit (Read error: Connection reset by peer) 2014-10-26T17:41:55Z mark_wea` is now known as mark_weaver 2014-10-26T17:43:14Z majere quit (Quit: Reconnecting) 2014-10-26T17:43:22Z majere joined #scheme 2014-10-26T17:48:30Z majere quit (Quit: Reconnecting) 2014-10-26T17:48:36Z majere joined #scheme 2014-10-26T17:50:09Z pjdelport_ is now known as pjdelport 2014-10-26T17:54:20Z upinthemorning joined #scheme 2014-10-26T17:59:05Z ddp quit (Quit: ddp) 2014-10-26T17:59:17Z ddp joined #scheme 2014-10-26T18:17:01Z bjz_ quit (Read error: Connection reset by peer) 2014-10-26T18:17:17Z bjz joined #scheme 2014-10-26T18:22:31Z askatasuna joined #scheme 2014-10-26T18:26:13Z ehaliewicz quit (Ping timeout: 255 seconds) 2014-10-26T18:27:00Z leo2007 quit (Quit: rcirc on GNU Emacs 25.0.50.7) 2014-10-26T18:27:22Z jewel quit (Ping timeout: 245 seconds) 2014-10-26T18:44:42Z jaccas joined #scheme 2014-10-26T18:47:06Z ByronJoh1son is now known as ByronJohnson 2014-10-26T18:50:23Z przl quit (Ping timeout: 240 seconds) 2014-10-26T18:50:44Z oleo is now known as Guest88284 2014-10-26T18:52:20Z oleo__ joined #scheme 2014-10-26T18:54:17Z Guest88284 quit (Ping timeout: 265 seconds) 2014-10-26T19:12:51Z diginet_ quit (Quit: diginet has quit!) 2014-10-26T19:13:46Z diginet joined #scheme 2014-10-26T19:13:48Z leo2007 joined #scheme 2014-10-26T19:15:44Z askatasuna quit (Quit: WeeChat 1.0.1) 2014-10-26T19:17:44Z amgarchIn9 joined #scheme 2014-10-26T19:18:12Z leo2007 quit (Ping timeout: 245 seconds) 2014-10-26T19:20:17Z ijp joined #scheme 2014-10-26T19:21:18Z przl joined #scheme 2014-10-26T19:22:30Z oleo__ quit (Quit: Verlassend) 2014-10-26T19:25:50Z oleo__ joined #scheme 2014-10-26T19:39:48Z jewel joined #scheme 2014-10-26T19:41:33Z leo2007 joined #scheme 2014-10-26T19:41:52Z przl quit (Ping timeout: 240 seconds) 2014-10-26T19:46:08Z przl joined #scheme 2014-10-26T19:46:19Z upinthemorning quit (Quit: Changing server) 2014-10-26T19:46:35Z hiroakip joined #scheme 2014-10-26T19:48:08Z oleo__ is now known as oleo 2014-10-26T19:50:03Z upinthemorning joined #scheme 2014-10-26T19:59:44Z s41t joined #scheme 2014-10-26T20:04:29Z hiroakip quit (Ping timeout: 244 seconds) 2014-10-26T20:07:05Z s41t: Hello. How would I create a function that counts the number of zeros at the end of a number? Ex: 0 -> 1; 100 -> 2; 5 -> 0 2014-10-26T20:08:34Z juanfra10 quit (Quit: juanfra10) 2014-10-26T20:08:42Z ijp: s41t: when does a decimal have a zero at the end of the number? 2014-10-26T20:09:08Z juanfra joined #scheme 2014-10-26T20:10:30Z ehaliewicz joined #scheme 2014-10-26T20:11:14Z s41t: ijp, the number must be a whole number. Sorry for the inconvenience. 2014-10-26T20:11:37Z ijp: okay, but which whole numbers 2014-10-26T20:12:02Z s41t: ijp, any. Recursion must be used. 2014-10-26T20:12:17Z ijp: 5 does not have a 0 at the end 2014-10-26T20:12:26Z ijp: so it can't be *any* whole number 2014-10-26T20:13:36Z s41t: [16:06] Hello. How would I create a function that counts the number of zeros at the end of a number? -> Please notice the word "counts". 5 does not have a 0 at the end, as you pointed out. Therefore, (function 5) should give 0. 2014-10-26T20:14:25Z ijp: I read your question, but you haven't read mine 2014-10-26T20:15:12Z bb010g joined #scheme 2014-10-26T20:15:20Z ehaliewicz quit (Ping timeout: 244 seconds) 2014-10-26T20:16:33Z s41t: ijp, I believe I answered your question. The number given does not have to have a 0 at the end. 2014-10-26T20:17:14Z ijp: s41t: can you give a rule for "has a zero at the end" that works for any whole number? 2014-10-26T20:17:18Z pjdelport: s41t: Do you know how to extract digits using division and modulus? 2014-10-26T20:17:34Z ijp: focus on the case with one, then iterate 2014-10-26T20:17:53Z daviid quit (Ping timeout: 255 seconds) 2014-10-26T20:18:22Z s41t: pjdelport, meaning quotient and modulo? 2014-10-26T20:18:35Z pjdelport: s41t: Right, yes. 2014-10-26T20:18:45Z s41t: ijp, 100 is a whole number that has a zero at the end. 2014-10-26T20:19:13Z ijp: s41t: what's the rule? 2014-10-26T20:19:48Z ijp: you would have learned it round about age 5 or 6 2014-10-26T20:20:09Z phipes quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2014-10-26T20:20:24Z s41t: pjdelport, meaning if the modulo of the number and 10 is 1, 2, 3, 4, 5, 6, 7, 8, or 9, the answer is 0? 2014-10-26T20:20:46Z pjdelport: s41t: Well, i just mean digit extraction in general. 2014-10-26T20:20:53Z upinthemorning: s41t: think of the prime factors a number must have in order for it to end in a 0. 2014-10-26T20:20:53Z hiroakip joined #scheme 2014-10-26T20:21:10Z upinthemorning: 10 = 2*5 2014-10-26T20:21:17Z ijp: prime is a red herring 2014-10-26T20:21:21Z upinthemorning: 100 = 2**2 * 5**2 2014-10-26T20:21:22Z pjdelport: s41t: There are basically two components to this problem: the first is the problem of extracting the decimal digits from a number. 2014-10-26T20:21:44Z pjdelport: And the second is counting how many of the extracted lower-order digits are zero. 2014-10-26T20:21:51Z upinthemorning: ijp: I think just counting the number of factors of 5 a number has will work, no? 2014-10-26T20:22:15Z pjdelport: s41t: So, as a first step, towards solving this problem, can you write a function that converts a number to a list of its decimal digits? 2014-10-26T20:22:22Z ijp: upinthemorning: the rule I was hoping s41t would say is "a number has a 0 at the end, if it is divisible by 10" 2014-10-26T20:23:10Z upinthemorning: ijp: ah yes. I was just thinking of basically the same rule but with 10 = 2*5. 2014-10-26T20:23:28Z s41t: pjdelport, Sorry. I dont understand. The number given must be a whole number. There are no decimal digits. 2014-10-26T20:23:45Z pjdelport: s41t: I don't mean fractional digits. 2014-10-26T20:23:46Z upinthemorning: ijp: so you count the number of prime factor pairs (2, 5).... i.e., as you said, count the number of factors of 10. 2014-10-26T20:23:53Z pjdelport: s41t: I mean the base-10 digits of the whole number :) 2014-10-26T20:24:01Z upinthemorning: s41t: he means an integer in base 10. 2014-10-26T20:24:13Z upinthemorning: pjdelport: yeah, sorry. 2014-10-26T20:24:25Z ijp: upinthemorning: but you can just test for divisibility of 10 straight away, without decomposing into factors 2014-10-26T20:24:28Z s41t: So, 5 would be 1 digit? 2014-10-26T20:24:44Z wingo quit (Ping timeout: 265 seconds) 2014-10-26T20:24:46Z upinthemorning: ijp: Yeah, that is obviously the better way. I was massively over-thinking it. 2014-10-26T20:24:47Z ijp: and loop, counting the times you can divide 2014-10-26T20:25:37Z pjdelport: s41t: Right; 123 would be 3 digits, and so on 2014-10-26T20:27:09Z ehaliewicz joined #scheme 2014-10-26T20:27:16Z ehaliewicz quit (Remote host closed the connection) 2014-10-26T20:53:00Z girrig quit (Ping timeout: 250 seconds) 2014-10-26T20:53:22Z upinthemorning quit (Quit: Excusez-moi, je dois faire les mathematiques.) 2014-10-26T21:00:27Z girrig joined #scheme 2014-10-26T21:01:30Z jar_ joined #scheme 2014-10-26T21:01:40Z daviid joined #scheme 2014-10-26T21:02:38Z phipes joined #scheme 2014-10-26T21:03:10Z phipes quit (Client Quit) 2014-10-26T21:05:40Z jar_ quit (Client Quit) 2014-10-26T21:09:15Z acarrico joined #scheme 2014-10-26T21:11:32Z phipes joined #scheme 2014-10-26T21:14:52Z leb joined #scheme 2014-10-26T21:15:57Z Gyps joined #scheme 2014-10-26T21:21:14Z sorressean joined #scheme 2014-10-26T21:21:44Z sorressean: I want to try to make a scheme mud just for... fun. Is there a way with scheme (chicken scheme preferably() to define a sort of structure to hold player information? 2014-10-26T21:21:58Z vanila: sorressean, you could use define-record 2014-10-26T21:22:12Z vanila: check it out http://wiki.call-cc.org/eggref/4/records 2014-10-26T21:22:15Z sorressean: vanila: awesome, thanks a lot. 2014-10-26T21:22:26Z vanila: it'snot part of standard scheme so you need (require-extension records) 2014-10-26T21:22:41Z sorressean: sweet. I'll look it up. 2014-10-26T21:26:04Z tadni quit (Ping timeout: 245 seconds) 2014-10-26T21:26:12Z sorressean: ah, I need to install this somehow. 2014-10-26T21:26:38Z cojy: chicken-install records 2014-10-26T21:26:43Z vanila: chicken-install might work, although shouldn't there be a built in record system? 2014-10-26T21:26:46Z vanila: maybe ask #chicken 2014-10-26T21:27:04Z cojy: yea i think it should be build in 2014-10-26T21:27:22Z cojy: http://wiki.call-cc.org/man/4/Non-standard%20macros%20and%20special%20forms#record-structures 2014-10-26T21:27:23Z rudybot: http://tinyurl.com/m9msbjb 2014-10-26T21:28:01Z hiroakip quit (Ping timeout: 255 seconds) 2014-10-26T21:28:56Z hiroakip joined #scheme 2014-10-26T21:29:40Z sorressean: should I use this instead? I'm sorry, I am 100% new to scheme. I know some tiny bit of ilsp and figured I'd give this a try. 2014-10-26T21:31:32Z vanila: yeah sorry for being confusing 2014-10-26T21:31:34Z przl quit (Ping timeout: 250 seconds) 2014-10-26T21:31:38Z vanila: that define-record cojy linked is what I meant earlier 2014-10-26T21:33:47Z gravicappa quit (Ping timeout: 265 seconds) 2014-10-26T21:40:22Z ddp quit (Quit: ddp) 2014-10-26T21:40:43Z ddp joined #scheme 2014-10-26T21:51:06Z taylanub: TIL R7RS library declarations are basically SRFI-7 2014-10-26T21:54:19Z alezost quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-10-26T21:56:33Z nisstyre joined #scheme 2014-10-26T21:58:32Z nisstyre quit (Changing host) 2014-10-26T21:58:32Z nisstyre joined #scheme 2014-10-26T21:59:32Z taylanub: https://gitorious.org/taylan-scheme/srfi/ 6 implemented, <70 to go! (some get dropped because they must be implemented on the platform, or R7RS subsumed them.) that's like 1/10 progress, but without test-suites. 2014-10-26T22:05:49Z hiroakip quit (Ping timeout: 255 seconds) 2014-10-26T22:24:16Z leb quit (Ping timeout: 255 seconds) 2014-10-26T22:27:23Z sorressean: ah sweet, that works then. thanks. 2014-10-26T22:39:36Z Steverman joined #scheme 2014-10-26T22:41:02Z stepnem quit (Ping timeout: 265 seconds) 2014-10-26T22:43:31Z ijp` joined #scheme 2014-10-26T22:43:55Z ijp quit (Remote host closed the connection) 2014-10-26T22:46:41Z ijp` is now known as ijp 2014-10-26T22:47:59Z ddp quit (Quit: ddp) 2014-10-26T22:50:55Z Riastradh joined #scheme 2014-10-26T22:53:17Z jaccas quit (Remote host closed the connection) 2014-10-26T23:00:47Z Riastradh quit (Ping timeout: 246 seconds) 2014-10-26T23:14:11Z ddp joined #scheme 2014-10-26T23:14:24Z karswell` joined #scheme 2014-10-26T23:15:16Z ddp quit (Client Quit) 2014-10-26T23:22:37Z atomx_ joined #scheme 2014-10-26T23:23:06Z atomx_ quit (Remote host closed the connection) 2014-10-26T23:23:45Z atomx_ joined #scheme 2014-10-26T23:24:19Z karswell` is now known as karswell 2014-10-26T23:24:24Z atomx_ quit (Remote host closed the connection) 2014-10-26T23:24:40Z atomx quit (Ping timeout: 250 seconds) 2014-10-26T23:25:05Z atomx_ joined #scheme 2014-10-26T23:25:17Z atomx_ quit (Remote host closed the connection) 2014-10-26T23:39:24Z tobik quit (Ping timeout: 245 seconds) 2014-10-26T23:41:44Z tobik joined #scheme 2014-10-26T23:45:20Z araujo joined #scheme 2014-10-26T23:45:20Z fikusz quit (Quit: Leaving) 2014-10-26T23:45:20Z araujo quit (Changing host) 2014-10-26T23:45:20Z araujo joined #scheme 2014-10-26T23:50:12Z fikusz joined #scheme 2014-10-26T23:50:41Z mrowe_away is now known as mrowe