2016-09-11T00:03:57Z White_Flame joined #lisp 2016-09-11T00:05:03Z arescorpio joined #lisp 2016-09-11T00:05:57Z jsgrant joined #lisp 2016-09-11T00:06:28Z JuanDaugherty quit (Quit: Hibernate, reboot, exeunt, etc.) 2016-09-11T00:09:07Z manuel_ quit (Ping timeout: 250 seconds) 2016-09-11T00:10:10Z ukari joined #lisp 2016-09-11T00:11:52Z raydeejay: myrkraverk: I just quickloaded jsown: "http://beta.quicklisp.org/archive/jsown/2016-02-08/jsown-20160208-git.tgz" 2016-09-11T00:12:07Z egnogg joined #lisp 2016-09-11T00:12:23Z egnogg: https://chriskohlhepp.wordpress.com/embedding-lisp-in-cplusplus-a-recipe/ < I'm following along with this tutorial 2016-09-11T00:12:33Z egnogg: and everything but inline C++ works 2016-09-11T00:13:38Z egnogg: I think it's just a setting somewhere in the ECL compiler I need to change - when I attempt to COMPILE-FILE the file containing the FFIs, even though RUN-PROGRAM calls "x86_64-pc-linux-gnu-g++", the file generated is a .c file rather than .cc 2016-09-11T00:13:41Z egnogg: (for c++) 2016-09-11T00:13:52Z egnogg: does anyone in here know their way around the ECL compiler? 2016-09-11T00:14:03Z fiddlerwoaroof: jackdaniel is the maintainer 2016-09-11T00:14:54Z myrkraverk: Hmm, maybe I need to "update" my quicklisp -- but I don't know how yet. 2016-09-11T00:15:00Z Ven_ joined #lisp 2016-09-11T00:15:52Z myrkraverk: egnogg: I haven't used it -- but I used to have around a link to a lisp implementation in C++ templates. 2016-09-11T00:16:17Z myrkraverk: Weird syntax, but still somewhat lispy. 2016-09-11T00:16:25Z egnogg: hmmm 2016-09-11T00:16:38Z egnogg: I got around the previous error just fine by fixing my C++ code. 2016-09-11T00:16:52Z egnogg: But now I can't LOAD the file into the interpreter? 2016-09-11T00:17:15Z egnogg: "the special form CLINES cannot be used in the interpreter: (#include ) 2016-09-11T00:17:16Z egnogg: " 2016-09-11T00:18:59Z egnogg: got it. 2016-09-11T00:19:42Z egnogg: my experience with SBCL caused me to (compile-file "/tmp/lisp-hack.lisp") (load "/tmp/lisp-hack.lisp") rather than (compile-file..) (load "/tmp/lisp-hack") 2016-09-11T00:20:02Z egnogg: which works fine, and is actually written down exactly like that in the tutorial 2016-09-11T00:20:03Z egnogg: my bad 2016-09-11T00:20:08Z egnogg: thanks for rubber ducking lispers 2016-09-11T00:20:12Z egnogg quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2016-09-11T00:20:17Z myrkraverk: egnogg: no problem. 2016-09-11T00:24:52Z pragmata quit (Quit: Textual IRC Client: www.textualapp.com) 2016-09-11T00:31:42Z manuel_ joined #lisp 2016-09-11T00:32:16Z space_otter quit (Remote host closed the connection) 2016-09-11T00:33:48Z holly2 joined #lisp 2016-09-11T00:34:41Z drdo quit (Ping timeout: 250 seconds) 2016-09-11T00:52:24Z adolf_stalin quit (Quit: Leaving...) 2016-09-11T00:52:58Z Josh_2 quit (Remote host closed the connection) 2016-09-11T00:56:49Z ekinmur joined #lisp 2016-09-11T01:01:53Z araujo_ joined #lisp 2016-09-11T01:03:12Z slyrus quit (Ping timeout: 244 seconds) 2016-09-11T01:04:45Z araujo quit (Ping timeout: 244 seconds) 2016-09-11T01:05:27Z wildlander quit (Quit: Saliendo) 2016-09-11T01:06:23Z Karl_Dscc joined #lisp 2016-09-11T01:09:08Z drdo joined #lisp 2016-09-11T01:09:17Z manuel_ quit (Quit: manuel_) 2016-09-11T01:12:03Z mathrick_ quit (Ping timeout: 276 seconds) 2016-09-11T01:12:49Z grublet quit (Ping timeout: 250 seconds) 2016-09-11T01:14:14Z manuel_ joined #lisp 2016-09-11T01:19:41Z mekaj quit (Quit: Connection closed for inactivity) 2016-09-11T01:19:58Z mathrick joined #lisp 2016-09-11T01:24:31Z karswell quit (Ping timeout: 250 seconds) 2016-09-11T01:26:42Z robotoad quit (Quit: Textual IRC Client: www.textualapp.com) 2016-09-11T01:29:20Z robotoad joined #lisp 2016-09-11T01:33:36Z EvW quit (Ping timeout: 250 seconds) 2016-09-11T01:39:31Z ekinmur quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2016-09-11T01:43:52Z ukari quit (Read error: Connection reset by peer) 2016-09-11T01:44:13Z space_otter joined #lisp 2016-09-11T01:47:07Z ukari joined #lisp 2016-09-11T01:49:58Z Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2016-09-11T01:52:13Z scottj joined #lisp 2016-09-11T01:54:46Z manuel_ quit (Quit: manuel_) 2016-09-11T01:57:30Z manuel_ joined #lisp 2016-09-11T01:57:30Z ukari quit (Read error: Connection reset by peer) 2016-09-11T01:59:57Z Excel quit (Remote host closed the connection) 2016-09-11T02:02:00Z Karl_Dscc quit (Remote host closed the connection) 2016-09-11T02:15:45Z pierpa quit (Ping timeout: 276 seconds) 2016-09-11T02:15:48Z ekinmur joined #lisp 2016-09-11T02:19:04Z Fare joined #lisp 2016-09-11T02:23:50Z stardiviner joined #lisp 2016-09-11T02:41:37Z space_otter quit (Remote host closed the connection) 2016-09-11T02:53:57Z jasom: myrkraverk: jsown-20160208 is what I see; you need to update your quicklisp dist 2016-09-11T02:54:13Z myrkraverk: Yeah, I noticed. 2016-09-11T02:54:13Z jasom: (ql:update-dist "quicklisp") 2016-09-11T02:54:20Z myrkraverk: Ah. 2016-09-11T02:56:08Z jasom: myrkraverk: you may want to update your client at some point. 2016-09-11T02:56:22Z myrkraverk: I'm running that now. 2016-09-11T02:56:39Z myrkraverk: You mean re-download quicklisp itself? 2016-09-11T02:57:37Z jasom: myrkraverk: no it's a different function... let me look it up 2016-09-11T02:58:25Z raydeejay: update-client 2016-09-11T02:58:59Z jasom: yup 2016-09-11T02:59:29Z raydeejay: um 2016-09-11T03:00:39Z Harag quit (Remote host closed the connection) 2016-09-11T03:00:44Z raydeejay: why "quicklisp"? 2016-09-11T03:01:44Z jasom: raydeejay: for update-dist? 2016-09-11T03:01:58Z raydeejay: or rather, are there any other public dist(tributions?)? 2016-09-11T03:02:26Z Harag joined #lisp 2016-09-11T03:02:33Z raydeejay: jasom: yes, for update-dist 2016-09-11T03:02:35Z jasom: raydeejay: quicklisp is two projects in one: A tool for managing a group of lisp libraries, and the libraries themselves 2016-09-11T03:03:17Z jasom: raydeejay: I don't know if there are other public ones, but I think theres at least one person using it to manage their libraries locally and pinning versions 2016-09-11T03:11:08Z takitus joined #lisp 2016-09-11T03:17:26Z araujo__ joined #lisp 2016-09-11T03:17:59Z beach: Good morning everyone! 2016-09-11T03:19:25Z sellout- quit (Quit: Leaving.) 2016-09-11T03:20:29Z araujo_ quit (Ping timeout: 244 seconds) 2016-09-11T03:20:37Z k3rn31 joined #lisp 2016-09-11T03:20:40Z xtal_ quit (Quit: Lost terminal) 2016-09-11T03:23:15Z d4ryus quit (Ping timeout: 250 seconds) 2016-09-11T03:24:45Z ekinmur quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2016-09-11T03:25:53Z d4ryus joined #lisp 2016-09-11T03:36:42Z learning joined #lisp 2016-09-11T03:41:02Z loke`: Hello 2016-09-11T03:41:27Z beach: Hello loke`. 2016-09-11T03:41:32Z loke`: Hello beach 2016-09-11T03:49:31Z antonv joined #lisp 2016-09-11T03:49:49Z hhdave quit (Ping timeout: 255 seconds) 2016-09-11T03:50:57Z k3rn31 quit (Quit: Computer has gone to sleep.) 2016-09-11T03:53:38Z Blukunfando quit (Remote host closed the connection) 2016-09-11T03:56:15Z tmtwd joined #lisp 2016-09-11T03:56:57Z learning quit (Remote host closed the connection) 2016-09-11T03:59:15Z manuel__ joined #lisp 2016-09-11T04:01:18Z manuel_ quit (Ping timeout: 244 seconds) 2016-09-11T04:02:55Z manuel_ joined #lisp 2016-09-11T04:04:01Z manuel__ quit (Read error: Connection reset by peer) 2016-09-11T04:04:01Z araujo_ joined #lisp 2016-09-11T04:05:02Z defaultxr quit (Quit: gnight) 2016-09-11T04:05:37Z araujo_ quit (Max SendQ exceeded) 2016-09-11T04:06:39Z araujo_ joined #lisp 2016-09-11T04:07:04Z araujo__ quit (Ping timeout: 264 seconds) 2016-09-11T04:18:42Z antonv quit (Ping timeout: 250 seconds) 2016-09-11T04:21:19Z stardiviner quit (Ping timeout: 250 seconds) 2016-09-11T04:21:22Z karswell joined #lisp 2016-09-11T04:22:02Z stardiviner joined #lisp 2016-09-11T04:22:55Z myrkraverk: In SBCL, is it possible to "read" or access memory allocated with sb-alien:make-alien into lisp? 2016-09-11T04:23:56Z myrkraverk: (on other news, the manual about the posix extension seems somewhat out of sync with reality) 2016-09-11T04:26:25Z manuel_ quit (Quit: manuel_) 2016-09-11T04:27:10Z dan64 quit (Quit: ZNC - http://znc.in) 2016-09-11T04:29:07Z nalik joined #lisp 2016-09-11T04:31:36Z space_otter joined #lisp 2016-09-11T04:32:18Z nalik is now known as InCePt0r 2016-09-11T04:33:02Z myrkraverk: Or, in other words, an actual working example of sb-posix:read would be good; so far, everything I've tried does not allow me to use it to read stuff that I can access in Lisp. 2016-09-11T04:34:04Z mastokley joined #lisp 2016-09-11T04:39:03Z cromachina: assuming sb-posix:read maps to this C function: http://linux.die.net/man/3/read 2016-09-11T04:39:20Z dan64 joined #lisp 2016-09-11T04:39:25Z cromachina: then you need to give it a posix-style file descriptor that it is expecting 2016-09-11T04:39:27Z myrkraverk: Yes, pretty much. 2016-09-11T04:39:44Z cromachina: such as with from sb-posix:open 2016-09-11T04:39:51Z myrkraverk: Yeah, the posix style fd isn't a problem -- I got that with sb-posix:open. It's the buffer that seems to be problematic. 2016-09-11T04:39:54Z jasom: A posix FD and foreign memory that has been allocated 2016-09-11T04:40:20Z myrkraverk: I can allocate memore with sb-alien:make-alien -- but I don't know how to read from that into ilsp. 2016-09-11T04:40:43Z myrkraverk: So far the only thing I can tell is that the read call doesn't throw me into a debugger. 2016-09-11T04:40:54Z H4ns: myrkraverk: have a look at https://searchcode.com/codesearch/view/90451911/ 2016-09-11T04:40:55Z jasom: http://www.sbcl.org/manual/#Operations-On-Foreign-Values 2016-09-11T04:41:11Z jasom: sb-alien:deref 2016-09-11T04:41:15Z cromachina: the docs for make-alien specifies how to dereference them 2016-09-11T04:42:00Z cromachina: (documentation 'sb-alien:make-alien 'function) 2016-09-11T04:42:18Z myrkraverk: cromachina: then I'm just stupid, because I was unable to read anything from the buffer into lisp. 2016-09-11T04:42:38Z cromachina: can you elaborate? 2016-09-11T04:42:40Z cromachina: does it crash? 2016-09-11T04:43:18Z H4ns: myrkraverk: you can allocate a usb8 vector and then use sb-sys:vector-sap to get a pointer to its data so that you can read into it. you'll then just have to deal with the vector. 2016-09-11T04:43:21Z myrkraverk: It throws me into a debugger if the posix call errors out. 2016-09-11T04:43:36Z cromachina: and what error do you get? 2016-09-11T04:43:40Z mastokley quit (Ping timeout: 244 seconds) 2016-09-11T04:43:53Z myrkraverk: None, that's why I was somewhat sure my allocation was successful. 2016-09-11T04:44:31Z cromachina: can you put some sample code on the paste site? 2016-09-11T04:45:36Z ``Erik quit (Read error: Connection reset by peer) 2016-09-11T04:45:42Z myrkraverk: Maybe. 2016-09-11T04:45:53Z ``Erik joined #lisp 2016-09-11T04:50:12Z jasom: myrkraverk: (let ((foo (make-alien (array char 10)))) (sb-posix:read 0 foo 1) (sb-alien:deref foo 0)) 2016-09-11T04:50:16Z myrkraverk: H4ns came to the rescue, vector-sap does the trick, so I'm good for now. 2016-09-11T04:50:31Z myrkraverk: jasom: Ah, thanks. 2016-09-11T04:53:47Z myrkraverk: Using deref, this is what I ended up with: (sb-alien:deref (sb-alien:deref buffer) 0) 2016-09-11T04:55:01Z myrkraverk: It's somewhat confusing to use deref twice. 2016-09-11T04:55:52Z myrkraverk: Though the make-alien documentation string shows that. 2016-09-11T04:57:05Z stepnem joined #lisp 2016-09-11T04:58:49Z cromachina: as confusing as nested structures perhaps. i think you will get better bang for your buck using CFFI 2016-09-11T04:58:59Z cromachina: https://common-lisp.net/project/cffi/ 2016-09-11T04:59:16Z cromachina: which wraps around sb-alien, and whatever other impls have 2016-09-11T05:02:51Z jasom: there's also static-vectors 2016-09-11T05:04:03Z k3rn31 joined #lisp 2016-09-11T05:04:19Z myrkraverk: cromachina: maybe (not so confusing) but I didn't see anything about that in the SBCL manual itself. 2016-09-11T05:04:33Z myrkraverk: That a double deref might be needed. 2016-09-11T05:04:51Z cromachina: a lot of function documentation is not in the manual 2016-09-11T05:05:01Z myrkraverk: *nod* 2016-09-11T05:08:52Z arescorpio quit (Quit: Leaving.) 2016-09-11T05:10:25Z lerax joined #lisp 2016-09-11T05:10:31Z stardiviner quit (Ping timeout: 252 seconds) 2016-09-11T05:24:28Z stardiviner joined #lisp 2016-09-11T05:28:41Z razzy89 joined #lisp 2016-09-11T05:31:50Z myrkraverk: In general, or in sb-posix:syscall-error in particular, is it possible to retrieve the actual function name that threw the error? 2016-09-11T05:34:12Z asc232 joined #lisp 2016-09-11T05:34:36Z asc232 quit (Read error: Connection reset by peer) 2016-09-11T05:36:24Z myrkraverk: That is, without looking at a stacktrace, and it appears it's not possible. 2016-09-11T05:37:03Z FreeBirdLjj joined #lisp 2016-09-11T05:37:40Z tmtwd quit (Ping timeout: 264 seconds) 2016-09-11T05:37:41Z Fare: why without looking at the stacktrace? 2016-09-11T05:39:31Z myrkraverk: Because looking at the stack trace is "outside the scope" of the code I'm writing. 2016-09-11T05:39:58Z Bike: you mean you want the actual function name for further programmatic processing? 2016-09-11T05:44:07Z wheelsucker quit (Ping timeout: 255 seconds) 2016-09-11T05:44:08Z myrkraverk: Yes, if possible. 2016-09-11T05:44:35Z vlatkoB joined #lisp 2016-09-11T05:48:09Z FreeBirdLjj quit (Remote host closed the connection) 2016-09-11T05:50:18Z karswell quit (Remote host closed the connection) 2016-09-11T05:50:39Z karswell` joined #lisp 2016-09-11T05:50:58Z k3rn31_ joined #lisp 2016-09-11T05:51:52Z Harag quit (Ping timeout: 250 seconds) 2016-09-11T05:53:33Z k3rn31 quit (Ping timeout: 240 seconds) 2016-09-11T05:54:57Z k3rn31 joined #lisp 2016-09-11T05:57:10Z k3rn31_ quit (Ping timeout: 255 seconds) 2016-09-11T05:59:03Z BlueRavenGT joined #lisp 2016-09-11T05:59:15Z InCePt0r is now known as nalik891 2016-09-11T06:00:32Z Fare quit (Ping timeout: 250 seconds) 2016-09-11T06:03:37Z ukari joined #lisp 2016-09-11T06:04:02Z FreeBirdLjj joined #lisp 2016-09-11T06:08:33Z gingerale joined #lisp 2016-09-11T06:09:31Z lerax quit (Quit: Leaving) 2016-09-11T06:13:33Z seg quit (Ping timeout: 250 seconds) 2016-09-11T06:14:47Z slyrus joined #lisp 2016-09-11T06:30:20Z seg joined #lisp 2016-09-11T06:34:58Z ggole joined #lisp 2016-09-11T06:35:25Z BlueRavenGT quit (Ping timeout: 255 seconds) 2016-09-11T06:36:04Z kfa joined #lisp 2016-09-11T06:39:41Z shka joined #lisp 2016-09-11T06:41:16Z kfa: :quit 2016-09-11T06:41:28Z kfa: (quit) 2016-09-11T06:42:14Z beach: kfa: Try /part or /quit. 2016-09-11T06:42:53Z Grue`: (sb-ext:quit) 2016-09-11T06:51:14Z vlatkoB_ joined #lisp 2016-09-11T06:55:04Z vlatkoB quit (Ping timeout: 264 seconds) 2016-09-11T06:56:27Z stardiviner quit (Ping timeout: 244 seconds) 2016-09-11T07:05:44Z nalik891 quit (Quit: Leaving) 2016-09-11T07:06:05Z nalik891 joined #lisp 2016-09-11T07:06:46Z aries_liuxueyang quit (Quit: No Ping reply in 180 seconds.) 2016-09-11T07:07:26Z tigg joined #lisp 2016-09-11T07:08:13Z aries_liuxueyang joined #lisp 2016-09-11T07:08:41Z gravicappa joined #lisp 2016-09-11T07:09:21Z stardiviner joined #lisp 2016-09-11T07:14:32Z mathrick quit (Ping timeout: 244 seconds) 2016-09-11T07:18:41Z stardiviner quit (Quit: Code, Sex, Just fucking world.) 2016-09-11T07:19:18Z mishoo joined #lisp 2016-09-11T07:26:41Z manuel_ joined #lisp 2016-09-11T07:26:48Z manuel_ quit (Client Quit) 2016-09-11T07:28:14Z mathrick joined #lisp 2016-09-11T07:37:32Z FreeBird_ joined #lisp 2016-09-11T07:38:28Z FreeBirdLjj quit (Ping timeout: 244 seconds) 2016-09-11T07:40:05Z MoALTz joined #lisp 2016-09-11T07:44:05Z ukari quit (Ping timeout: 265 seconds) 2016-09-11T07:51:06Z ramky joined #lisp 2016-09-11T07:56:30Z FreeBirdLjj joined #lisp 2016-09-11T07:56:37Z ramky quit (Ping timeout: 252 seconds) 2016-09-11T07:57:10Z FreeBird_ quit (Ping timeout: 252 seconds) 2016-09-11T08:03:25Z MoALTz quit (Quit: Leaving) 2016-09-11T08:06:55Z bocaneri joined #lisp 2016-09-11T08:08:20Z bocaneri quit (Max SendQ exceeded) 2016-09-11T08:08:28Z ukari joined #lisp 2016-09-11T08:08:54Z bocaneri joined #lisp 2016-09-11T08:14:29Z angavrilov joined #lisp 2016-09-11T08:23:11Z robotoad quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2016-09-11T08:25:13Z can3p joined #lisp 2016-09-11T08:26:11Z tfeb joined #lisp 2016-09-11T08:26:36Z robotoad joined #lisp 2016-09-11T08:28:56Z Harag joined #lisp 2016-09-11T08:30:17Z Princess17b29a quit (Read error: Connection reset by peer) 2016-09-11T08:30:42Z Princess17b29a joined #lisp 2016-09-11T08:34:38Z ym quit (Quit: Leaving) 2016-09-11T08:38:25Z zm joined #lisp 2016-09-11T08:41:26Z erguven joined #lisp 2016-09-11T08:53:36Z zm quit (Ping timeout: 265 seconds) 2016-09-11T08:59:49Z GyorsCsi1a is now known as GyrosCsiga 2016-09-11T09:03:24Z schjetne quit (Ping timeout: 250 seconds) 2016-09-11T09:03:47Z ovenpasta joined #lisp 2016-09-11T09:03:48Z marsjaninzmarsa quit (Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in) 2016-09-11T09:07:09Z FreeBirdLjj quit (Remote host closed the connection) 2016-09-11T09:07:12Z varjag joined #lisp 2016-09-11T09:13:28Z FreeBirdLjj joined #lisp 2016-09-11T09:16:12Z FreeBirdLjj quit (Remote host closed the connection) 2016-09-11T09:16:35Z marsjaninzmarsa joined #lisp 2016-09-11T09:20:32Z Bike quit (Quit: insult) 2016-09-11T09:20:57Z aries_liuxueyang quit (Quit: No Ping reply in 180 seconds.) 2016-09-11T09:22:21Z aries_liuxueyang joined #lisp 2016-09-11T09:24:36Z robotoad quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2016-09-11T09:32:18Z zacharias joined #lisp 2016-09-11T09:33:50Z dmiles quit (Read error: Connection reset by peer) 2016-09-11T09:34:57Z space_otter quit (Remote host closed the connection) 2016-09-11T09:35:32Z can3p quit (Quit: This computer has gone to sleep) 2016-09-11T09:35:39Z logicmoo joined #lisp 2016-09-11T09:40:11Z can3p joined #lisp 2016-09-11T09:42:59Z zacharias quit (Ping timeout: 260 seconds) 2016-09-11T09:43:12Z pipping quit (Ping timeout: 240 seconds) 2016-09-11T09:43:29Z pipping joined #lisp 2016-09-11T09:54:56Z ym joined #lisp 2016-09-11T09:57:00Z shifty joined #lisp 2016-09-11T10:00:54Z Xizor joined #lisp 2016-09-11T10:06:41Z shka_ joined #lisp 2016-09-11T10:07:37Z shka quit (Ping timeout: 244 seconds) 2016-09-11T10:11:23Z Xizor quit (Ping timeout: 244 seconds) 2016-09-11T10:12:23Z knobo quit (Ping timeout: 265 seconds) 2016-09-11T10:12:39Z knobo joined #lisp 2016-09-11T10:15:25Z zm joined #lisp 2016-09-11T10:22:17Z zm quit (Remote host closed the connection) 2016-09-11T10:22:52Z MoALTz joined #lisp 2016-09-11T10:24:34Z learning joined #lisp 2016-09-11T10:24:38Z learning quit (Remote host closed the connection) 2016-09-11T10:28:39Z lnostdal joined #lisp 2016-09-11T10:32:25Z learning joined #lisp 2016-09-11T10:33:28Z ovenpasta quit (Ping timeout: 255 seconds) 2016-09-11T10:38:29Z eivarv joined #lisp 2016-09-11T10:39:58Z nalik891 quit (Quit: Leaving) 2016-09-11T10:44:40Z manuel_ joined #lisp 2016-09-11T10:44:40Z manuel_ quit (Client Quit) 2016-09-11T10:49:45Z kfa quit (Quit: leaving) 2016-09-11T10:56:10Z manuel_ joined #lisp 2016-09-11T11:08:35Z zacharias joined #lisp 2016-09-11T11:10:20Z can3p quit (Quit: This computer has gone to sleep) 2016-09-11T11:15:08Z Harag quit (Ping timeout: 250 seconds) 2016-09-11T11:21:34Z Harag joined #lisp 2016-09-11T11:39:41Z tigg quit 2016-09-11T11:43:08Z manuel_ quit (Quit: manuel_) 2016-09-11T11:43:56Z myrkraverk: Is it possible to predict the length of a cl-mustache expansion? 2016-09-11T11:44:31Z myrkraverk: Say, if I want to limit the total output to n characters, by controlling the length of the expanded variables. 2016-09-11T11:44:47Z myrkraverk: When I was looking at the docs earlier, I didn't come across anything of the sort. 2016-09-11T11:48:25Z pipping: prediciting the length of the output should be no easier than actually creating the output 2016-09-11T11:49:14Z pipping: and it would assume that the length of everything you're mustaching into a string has a predictable length 2016-09-11T11:51:00Z manuel_ joined #lisp 2016-09-11T11:52:11Z myrkraverk: Well, since my input variables are exactly two it's not too much of a problem. I'm just wondering if using mustache makes sense, or not. On one hand, it makes everything a lot easier to customize, on the other, I do have a fixed output length requirement. 2016-09-11T11:52:33Z myrkraverk: Or max output length. 2016-09-11T11:52:36Z learning quit 2016-09-11T12:00:52Z pipping: you could just use format with padding and/or truncation 2016-09-11T12:04:00Z pierpa joined #lisp 2016-09-11T12:12:12Z atgreen joined #lisp 2016-09-11T12:12:13Z araujo joined #lisp 2016-09-11T12:12:13Z araujo quit (Changing host) 2016-09-11T12:12:13Z araujo joined #lisp 2016-09-11T12:12:20Z ritschmaster quit (Ping timeout: 265 seconds) 2016-09-11T12:12:33Z ritschmaster joined #lisp 2016-09-11T12:14:01Z araujo__ joined #lisp 2016-09-11T12:14:53Z araujo_ quit (Ping timeout: 244 seconds) 2016-09-11T12:15:33Z araujo__ quit (Max SendQ exceeded) 2016-09-11T12:16:41Z araujo__ joined #lisp 2016-09-11T12:17:18Z araujo quit (Ping timeout: 244 seconds) 2016-09-11T12:17:21Z ovenpasta joined #lisp 2016-09-11T12:17:27Z atgreen quit (Ping timeout: 244 seconds) 2016-09-11T12:27:31Z myrkraverk: Yeah, that might work. Though ideally, the format string should be in a config file. 2016-09-11T12:29:18Z myrkraverk: Does format have reorderable variables? Like (mostly unknown though) the C printf function does. 2016-09-11T12:32:42Z pipping: hm. I think I just claimed that format did truncation when I don't think it does 2016-09-11T12:32:44Z pipping blushes 2016-09-11T12:32:57Z myrkraverk: The printf trick looks like this: %3$s for the third string argument. 2016-09-11T12:33:09Z raydeejay: you can certainly truncate strings that you pass to format, pipping 2016-09-11T12:33:21Z raydeejay: but bless me if I recall the syntax off the top of my head xD 2016-09-11T12:33:33Z myrkraverk: I can look up the syntax without too much trouble. 2016-09-11T12:36:11Z raydeejay: or you may be right and I may have dreamed it... 2016-09-11T12:39:31Z EvW joined #lisp 2016-09-11T12:42:17Z alelos joined #lisp 2016-09-11T12:42:37Z schjetne joined #lisp 2016-09-11T12:43:38Z sjl joined #lisp 2016-09-11T12:46:37Z Karl_Dscc joined #lisp 2016-09-11T12:48:50Z knicklux joined #lisp 2016-09-11T12:53:53Z lnostdal quit (Read error: Connection reset by peer) 2016-09-11T12:54:52Z myrkraverk: I find examples of padding, but not truncation. 2016-09-11T12:55:24Z pipping: raydeejay and I apparently both had the same dream 2016-09-11T12:55:30Z raydeejay: yeah 2016-09-11T12:55:31Z pipping: it's a tough awakening now 2016-09-11T12:56:27Z shka joined #lisp 2016-09-11T12:56:30Z raydeejay: still, it's a (subseq str 0 (max (length str) your-desired-max-length)) away 2016-09-11T12:56:35Z myrkraverk: I'll see what I can do with mustache as well. 2016-09-11T12:56:57Z myrkraverk: Yeah, the only issue, is that I want to truncate one of the parameters I want to put into my template. 2016-09-11T12:57:18Z shka_ quit (Ping timeout: 276 seconds) 2016-09-11T12:57:24Z zacharias quit (Ping timeout: 250 seconds) 2016-09-11T12:57:28Z myrkraverk: And as the template changes, the max-length changes with it. 2016-09-11T13:00:18Z raydeejay: you could measure the template first, subtract the length of the tags, then figure out if your parameter is too long... requires knowing the length of the tags 2016-09-11T13:00:45Z myrkraverk: Yeah. 2016-09-11T13:00:52Z raydeejay: or you could generate it once, see if it's too big, then pass a substring of the parameter to the template... which requires instantiating the template twice 2016-09-11T13:01:00Z raydeejay: (potentially) 2016-09-11T13:01:06Z myrkraverk: *nod* 2016-09-11T13:01:18Z zacharias joined #lisp 2016-09-11T13:02:36Z pipping: myrkraverk: when you say you want your string not to exceed a certain length 2016-09-11T13:02:50Z pipping: myrkraverk: is that because you have memory limits or display length limits? 2016-09-11T13:03:57Z myrkraverk: protocol length limits. 2016-09-11T13:04:06Z Fare joined #lisp 2016-09-11T13:05:13Z raydeejay: my thought on this... for a couple of parameters, and given the additional requirements, mustache seems both overkill and not flexible enough :) 2016-09-11T13:06:05Z manuel_ quit (Ping timeout: 250 seconds) 2016-09-11T13:06:21Z pipping: Do you want "this is A: ~a; and this is B: ~a" to truncate into "this is A: foo...; this is B: bar..." if the content of A and B is too long or is truncating it to "this is A: ~a; and this is ..." acceptable? 2016-09-11T13:06:27Z myrkraverk: True. 2016-09-11T13:06:49Z superancetre joined #lisp 2016-09-11T13:07:13Z myrkraverk: pipping: the first ~a needs to be truncated, as I'm thinking about this right now. 2016-09-11T13:07:31Z pipping: myrkraverk: ah, but only that one? never the second one? 2016-09-11T13:07:52Z myrkraverk: Not as things are right now. 2016-09-11T13:07:59Z myrkraverk: It might change later, but I'll deal with it then if it does. 2016-09-11T13:08:28Z myrkraverk: This really wasn't complicated until I needed to put in an extra ~a. 2016-09-11T13:09:37Z myrkraverk: And since I have to add an extra ~a, I want to make it flexible so I can do that without having to recode everything. 2016-09-11T13:09:51Z myrkraverk: So at least a format string-ish template with two ~as. 2016-09-11T13:10:33Z pipping: Well then maybe print "This is A: ~a; and this is B: ~a" is best printed as (let ((str1 "This is A: ") (str2 "; and this is B: ") "~a~a~a~a" str1 (truncate-to-len (- 100 (length str1) (length str2) (length B)) A) str2 B) 2016-09-11T13:10:33Z piterbig joined #lisp 2016-09-11T13:11:12Z pipping: paren missing and 100 is not what you want, but you get the idea 2016-09-11T13:11:58Z myrkraverk: Yeah, that will probably work well enough. 2016-09-11T13:12:19Z piterbig: where can i find the vidos about learning common lisp 2016-09-11T13:13:47Z lnostdal joined #lisp 2016-09-11T13:15:13Z piterbig quit (Client Quit) 2016-09-11T13:15:33Z piterbig joined #lisp 2016-09-11T13:16:28Z EvW quit (Ping timeout: 250 seconds) 2016-09-11T13:16:58Z lnostdal quit (Read error: Connection reset by peer) 2016-09-11T13:17:19Z lnostdal joined #lisp 2016-09-11T13:17:31Z EvW joined #lisp 2016-09-11T13:23:37Z slyrus quit (Read error: Connection reset by peer) 2016-09-11T13:26:47Z lnostdal quit (Read error: Connection reset by peer) 2016-09-11T13:27:30Z lnostdal joined #lisp 2016-09-11T13:31:21Z knicklux quit (Read error: Connection reset by peer) 2016-09-11T13:33:28Z ritschmaster left #lisp 2016-09-11T13:34:48Z ritschmaster joined #lisp 2016-09-11T13:35:12Z dyelar joined #lisp 2016-09-11T13:35:36Z dyelar quit (Client Quit) 2016-09-11T13:37:09Z ritschmaster quit (Remote host closed the connection) 2016-09-11T13:37:20Z atgreen joined #lisp 2016-09-11T13:37:21Z dddddd joined #lisp 2016-09-11T13:39:13Z piterbig quit 2016-09-11T13:44:19Z lnostdal_ joined #lisp 2016-09-11T13:45:25Z lnostdal_ quit (Read error: Connection reset by peer) 2016-09-11T13:45:30Z superancetre quit (Remote host closed the connection) 2016-09-11T13:45:51Z lnostdal_ joined #lisp 2016-09-11T13:48:37Z dddddd quit (Read error: Connection reset by peer) 2016-09-11T13:48:39Z lnostdal quit (Ping timeout: 276 seconds) 2016-09-11T13:50:39Z Yuuhi joined #lisp 2016-09-11T13:51:30Z manuel_ joined #lisp 2016-09-11T13:53:18Z ukari quit (Ping timeout: 250 seconds) 2016-09-11T13:53:51Z pmden left #lisp 2016-09-11T13:56:49Z knicklux joined #lisp 2016-09-11T13:57:11Z lnostdal_ quit (Read error: Connection reset by peer) 2016-09-11T13:58:58Z lnostdal joined #lisp 2016-09-11T14:03:22Z lnostdal_ joined #lisp 2016-09-11T14:03:49Z manuel_ quit (Quit: manuel_) 2016-09-11T14:04:27Z manuel_ joined #lisp 2016-09-11T14:04:45Z manuel_ quit (Client Quit) 2016-09-11T14:04:47Z lnostdal_ quit (Max SendQ exceeded) 2016-09-11T14:06:51Z lnostdal quit (Ping timeout: 276 seconds) 2016-09-11T14:08:12Z ritschmaster joined #lisp 2016-09-11T14:10:27Z lnostdal joined #lisp 2016-09-11T14:14:03Z prole joined #lisp 2016-09-11T14:15:09Z ritschmaster quit (Remote host closed the connection) 2016-09-11T14:15:27Z ritschmaster_ joined #lisp 2016-09-11T14:17:16Z ritschmaster_ quit (Read error: Connection reset by peer) 2016-09-11T14:17:51Z ritschmaster joined #lisp 2016-09-11T14:19:11Z Ven_ joined #lisp 2016-09-11T14:19:12Z ovenpasta quit (Ping timeout: 276 seconds) 2016-09-11T14:19:57Z manuel_ joined #lisp 2016-09-11T14:21:01Z slyrus joined #lisp 2016-09-11T14:28:07Z ritschmaster: /quit 2016-09-11T14:28:48Z ritschmaster quit (Quit: Bye.) 2016-09-11T14:29:38Z ritschmaster joined #lisp 2016-09-11T14:31:10Z ritschmaster quit (Client Quit) 2016-09-11T14:31:41Z ritschmaster joined #lisp 2016-09-11T14:36:49Z DavidGu joined #lisp 2016-09-11T14:36:53Z ritschmaster quit (Quit: Bye.) 2016-09-11T14:37:24Z ritschmaster joined #lisp 2016-09-11T14:39:02Z shifty quit (Ping timeout: 244 seconds) 2016-09-11T14:41:11Z myrkraverk: When I use loop :for var :in list ; and I want to "skip" one if one element of the list, if the preceding (current) var satisfies some condition, can I do that easily? 2016-09-11T14:42:00Z myrkraverk: (ok, I could have written that better, but I think I'm understood) 2016-09-11T14:43:52Z can3p joined #lisp 2016-09-11T14:44:07Z yaroe joined #lisp 2016-09-11T14:44:22Z ritschmaster quit (Quit: Bye.) 2016-09-11T14:44:49Z yaroe: Hello there ! Is there a "reference" library for hierarchical packages ? 2016-09-11T14:45:17Z ritschmaster joined #lisp 2016-09-11T14:46:08Z loke`: myrkraverk: I'd probably do something along the lines of (loop for x = list then (cdr x) ...) 2016-09-11T14:46:48Z loke`: then you can skip an element by using (setf x (cdr x)) 2016-09-11T14:46:56Z loke`: or (pop x) 2016-09-11T14:46:59Z myrkraverk: Oh yeah. 2016-09-11T14:47:35Z loke`: yaroe: I'm not sure I understand your question. 2016-09-11T14:49:20Z impulse joined #lisp 2016-09-11T14:49:47Z ritschmaster: Does anyone of you know a proper Common Lisp to PHP compiler? Not something like Pharen. 2016-09-11T14:50:43Z myrkraverk: Why would you want to do that in the first place? And second, what's wrong with mustache if you want to generate something? 2016-09-11T14:51:47Z ritschmaster: If you have a compiler from Lisp to PHP you could use fairly easily use Lisp withing Apache2. 2016-09-11T14:51:53Z loke`: Or Lofn, which is the fastest template language in existence. :-) 2016-09-11T14:54:20Z myrkraverk: ritschmaster: You can already do that with fastcgi in lisp (though I never got around to try it) or run the webserver directly in lisp. 2016-09-11T14:55:15Z myrkraverk: If you're already using apache, I'd try fastcgi in Lisp. 2016-09-11T14:55:34Z cromachina: i use fastcgi, works fine 2016-09-11T14:55:38Z loke`: I'd recommend using a webserver in Lisp instead 2016-09-11T14:55:39Z cromachina: for lisp 2016-09-11T14:56:11Z loke`: Much more flexible since everything is integrated. Development is a dream too, since it perfectly matches the "live image development" model of Lisp 2016-09-11T14:56:13Z ritschmaster: I've tried that out already but it's painful for simple things as you can't properly get quicklisp and you have to specify everything (content-type etc). 2016-09-11T14:56:35Z cromachina: hunchentoot and others seem more apt for dynamic content. if you need fast static delivery, then engines made for it would probably be a better choices 2016-09-11T14:56:39Z cromachina: nginx for example 2016-09-11T14:56:40Z loke`: ritschmaster: That stuff is only handled once, using some macros. 2016-09-11T14:56:41Z froggey quit (Remote host closed the connection) 2016-09-11T14:57:06Z loke`: croOf course. You only use the Lisp server for the dynamic content 2016-09-11T14:57:55Z lnostdal quit (Ping timeout: 252 seconds) 2016-09-11T14:58:17Z froggey joined #lisp 2016-09-11T14:58:54Z loke`: Here's an example from Potato where the /load_chat web handler is defined (returns a JSON structure describing a chat message) 2016-09-11T14:58:57Z loke`: https://github.com/cicakhq/potato/blob/master/src/potato/channel-web.lisp#L148 2016-09-11T14:59:51Z loke`: Or the one that dosplays the login screen: 2016-09-11T14:59:52Z loke`: https://github.com/cicakhq/potato/blob/master/src/potato/login.lisp#L232 2016-09-11T14:59:57Z loke`: That's how simple it becomes 2016-09-11T15:01:57Z ukari joined #lisp 2016-09-11T15:02:08Z ritschmaster: FYI I will just leave this here: https://github.com/ritschmaster/caveman2-widgets 2016-09-11T15:02:26Z ritschmaster: Feedback is happily welcomed. 2016-09-11T15:03:01Z alelos quit (Ping timeout: 255 seconds) 2016-09-11T15:04:42Z tfeb quit (Ping timeout: 244 seconds) 2016-09-11T15:04:56Z erguven quit (Quit: Connection closed for inactivity) 2016-09-11T15:06:44Z sjl quit (Ping timeout: 260 seconds) 2016-09-11T15:08:17Z piterbig joined #lisp 2016-09-11T15:09:44Z yaroe: loke: it handles packages that are named in a hierarchical way as in pack pack.sub1 pack.sub2 pack2.sub1 2016-09-11T15:10:09Z yaroe: loke: or same thing with / as a separator 2016-09-11T15:10:31Z loke`: yaroe: Interesting idea. I haven't seen any such library. 2016-09-11T15:14:16Z zacharias quit (Read error: Connection reset by peer) 2016-09-11T15:15:27Z zacharias joined #lisp 2016-09-11T15:16:28Z Ipe_ joined #lisp 2016-09-11T15:19:59Z EvW quit (Ping timeout: 250 seconds) 2016-09-11T15:20:32Z zacharias quit (Ping timeout: 240 seconds) 2016-09-11T15:20:55Z zacharias joined #lisp 2016-09-11T15:22:47Z jfrancis quit (Ping timeout: 244 seconds) 2016-09-11T15:23:05Z Josh_2 joined #lisp 2016-09-11T15:26:13Z lnostdal joined #lisp 2016-09-11T15:28:13Z fluter quit (Ping timeout: 250 seconds) 2016-09-11T15:28:56Z Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2016-09-11T15:30:13Z fluter joined #lisp 2016-09-11T15:32:06Z ukari quit (Ping timeout: 250 seconds) 2016-09-11T15:32:33Z Th30n joined #lisp 2016-09-11T15:33:01Z piterbig quit 2016-09-11T15:35:37Z tmtwd joined #lisp 2016-09-11T15:35:58Z FreeBirdLjj joined #lisp 2016-09-11T15:39:33Z razzy89 quit (Quit: razzy89) 2016-09-11T15:40:53Z wildlander joined #lisp 2016-09-11T15:42:31Z sellout- joined #lisp 2016-09-11T15:45:01Z razzy89 joined #lisp 2016-09-11T15:45:09Z Ven_ joined #lisp 2016-09-11T15:45:43Z Ipe_ quit (Quit: Konversation terminated!) 2016-09-11T15:45:47Z wheelsucker joined #lisp 2016-09-11T15:46:01Z Ven_ quit (Client Quit) 2016-09-11T15:46:20Z Ven_ joined #lisp 2016-09-11T15:47:18Z myrkraverk: Is there a simple way to create a string with a newline? 2016-09-11T15:47:39Z myrkraverk: Like, iirc, #\newline is the character, but can I create a literal string with that too? 2016-09-11T15:48:42Z DavidGu quit (Quit: DavidGu) 2016-09-11T15:48:46Z _sjs quit (Ping timeout: 244 seconds) 2016-09-11T15:48:59Z al-damiri joined #lisp 2016-09-11T15:50:41Z Ven_ quit (Ping timeout: 244 seconds) 2016-09-11T15:52:16Z pierpa: #.(coerce '(#\Newline) 'string) 2016-09-11T15:53:11Z pierpa: " 2016-09-11T15:53:13Z pierpa: " 2016-09-11T15:53:14Z myrkraverk: I also found (string #\newline) ; which is shorter ad neater. 2016-09-11T15:53:18Z pierpa: works too, of course 2016-09-11T15:53:27Z myrkraverk: Yeah, " 2016-09-11T15:53:29Z pierpa: ah, right 2016-09-11T15:53:31Z myrkraverk: " is ugly though. 2016-09-11T15:55:32Z manuel_ quit (Quit: manuel_) 2016-09-11T15:56:16Z Bike joined #lisp 2016-09-11T15:59:15Z can3p quit (Quit: This computer has gone to sleep) 2016-09-11T16:00:30Z yaroe quit (Quit: bye.) 2016-09-11T16:03:43Z JoshYoshi joined #lisp 2016-09-11T16:05:51Z Josh_2 quit (Ping timeout: 264 seconds) 2016-09-11T16:07:12Z edgar-rft quit (Quit: edgar-rft) 2016-09-11T16:09:42Z impulse quit (Ping timeout: 276 seconds) 2016-09-11T16:15:19Z yaroe joined #lisp 2016-09-11T16:15:55Z JoshYoshi quit (Ping timeout: 255 seconds) 2016-09-11T16:16:09Z yaroe quit (Client Quit) 2016-09-11T16:18:04Z yaroe joined #lisp 2016-09-11T16:19:21Z yaroe: loke: I think I going to use the package-inferred-system from asdf-3.1. Not exactly what I was looking for but it seems to do a great job 2016-09-11T16:19:35Z yaroe quit (Client Quit) 2016-09-11T16:20:38Z boomer quit (Ping timeout: 250 seconds) 2016-09-11T16:21:19Z wheelsucker quit (Ping timeout: 255 seconds) 2016-09-11T16:21:24Z Fare quit (Ping timeout: 276 seconds) 2016-09-11T16:31:03Z wooden_ quit (Ping timeout: 240 seconds) 2016-09-11T16:31:29Z JuanDaugherty joined #lisp 2016-09-11T16:36:06Z easye-ipad joined #lisp 2016-09-11T16:37:50Z sellout- quit (Quit: Leaving.) 2016-09-11T16:39:07Z easye-ipad quit (Client Quit) 2016-09-11T16:40:07Z wooden_ joined #lisp 2016-09-11T16:40:53Z FreeBirdLjj quit (Remote host closed the connection) 2016-09-11T16:40:55Z sellout- joined #lisp 2016-09-11T16:43:10Z manuel_ joined #lisp 2016-09-11T16:43:26Z Aiwass joined #lisp 2016-09-11T16:43:27Z manuel_ quit (Client Quit) 2016-09-11T16:45:29Z mastokley joined #lisp 2016-09-11T16:46:28Z wheelsucker joined #lisp 2016-09-11T16:46:54Z eivarv quit (Quit: Sleep) 2016-09-11T16:50:52Z eivarv joined #lisp 2016-09-11T16:51:17Z Baggers joined #lisp 2016-09-11T16:53:02Z stux|RC joined #lisp 2016-09-11T16:58:03Z slyrus quit (Remote host closed the connection) 2016-09-11T17:00:39Z can3p joined #lisp 2016-09-11T17:01:27Z stux|RC-only quit (Quit: Aloha!) 2016-09-11T17:05:09Z zacharias quit (Ping timeout: 260 seconds) 2016-09-11T17:07:00Z drdo quit (Ping timeout: 250 seconds) 2016-09-11T17:07:55Z easye-ipad joined #lisp 2016-09-11T17:08:18Z easye-ipad quit (Read error: Connection reset by peer) 2016-09-11T17:08:30Z manuel_ joined #lisp 2016-09-11T17:08:35Z easye-ipad joined #lisp 2016-09-11T17:10:50Z easye-ipad quit (Client Quit) 2016-09-11T17:12:01Z EvW joined #lisp 2016-09-11T17:13:31Z tmtwd quit (Ping timeout: 250 seconds) 2016-09-11T17:13:41Z hudds joined #lisp 2016-09-11T17:15:03Z stux|RC-only joined #lisp 2016-09-11T17:17:00Z Ven_ joined #lisp 2016-09-11T17:17:25Z robotoad joined #lisp 2016-09-11T17:17:30Z sjl joined #lisp 2016-09-11T17:20:45Z phoe quit (Ping timeout: 244 seconds) 2016-09-11T17:21:28Z Ven_ quit (Ping timeout: 264 seconds) 2016-09-11T17:21:34Z stux|RC quit (Quit: Aloha!) 2016-09-11T17:24:44Z Kundry_Wag quit (Remote host closed the connection) 2016-09-11T17:25:19Z Kundry_Wag joined #lisp 2016-09-11T17:25:54Z bo joined #lisp 2016-09-11T17:27:07Z bo is now known as ailisp 2016-09-11T17:28:57Z ailisp is now known as icerove 2016-09-11T17:28:59Z ekinmur joined #lisp 2016-09-11T17:29:22Z Kundry_Wag quit (Ping timeout: 244 seconds) 2016-09-11T17:32:36Z phoe joined #lisp 2016-09-11T17:34:07Z attila_lendvai joined #lisp 2016-09-11T17:40:09Z drdo joined #lisp 2016-09-11T17:45:19Z alelos joined #lisp 2016-09-11T17:55:54Z Kundry_Wag joined #lisp 2016-09-11T18:04:06Z jasom: ritschmaster: looks interesting. It looks like it attempts to "play well with others" more than weblocks? 2016-09-11T18:05:42Z jasom: ritschmaster: that was part of the issue I had with weblocks; the other was how unhackable it was. Every time I found a deficiency, I had to go through about 12 levels of indirection to find the code (which was sometimes an interaction with a value provided about 6 levels of indirection up) that was causing the problem. It was hard with slime to debug, and would have been impossible without. 2016-09-11T18:07:37Z slyrus joined #lisp 2016-09-11T18:16:33Z ekinmur quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2016-09-11T18:21:16Z jasom: I ended up writting my frontend in parenscript/react (then later switched to mithril), and that at least gave me lisp's metaprogramming features for my gui, but I had to restrict my data model to something that would work reliably on both parenscript and lisp. 2016-09-11T18:21:30Z zygentoma joined #lisp 2016-09-11T18:24:39Z razzy89 quit (Quit: razzy89) 2016-09-11T18:25:54Z Baggers quit (Remote host closed the connection) 2016-09-11T18:27:35Z mishoo quit (Remote host closed the connection) 2016-09-11T18:28:34Z mishoo joined #lisp 2016-09-11T18:30:50Z sellout- quit (Quit: Leaving.) 2016-09-11T18:34:03Z jsgrant: jasom: What kind of a project was it? I wish there were more examples of Lisp in Webdev-land. 2016-09-11T18:37:50Z Fare joined #lisp 2016-09-11T18:37:56Z sellout- joined #lisp 2016-09-11T18:38:20Z boomer joined #lisp 2016-09-11T18:44:44Z razzy89 joined #lisp 2016-09-11T18:46:08Z jasom: jsgrant: a character-sheet management tool for an RPG I play 2016-09-11T18:46:22Z jasom: https://github.com/jasom/cl-fccs 2016-09-11T18:46:38Z jasom: I need to do some cleanup on it 2016-09-11T18:46:42Z jasom: but it works 2016-09-11T18:47:31Z attila_lendvai quit (Quit: Leaving.) 2016-09-11T18:47:40Z attila_lendvai joined #lisp 2016-09-11T18:47:40Z attila_lendvai quit (Changing host) 2016-09-11T18:47:40Z attila_lendvai joined #lisp 2016-09-11T18:48:15Z jsgrant: jasom: Oh, neat! 2016-09-11T18:49:09Z jasom: in particular the object system I share between lisp and parenscript was really just a prototype; I ought to make it a bit less hacky. 2016-09-11T18:49:34Z shrdlu68 joined #lisp 2016-09-11T18:50:17Z seg_ joined #lisp 2016-09-11T18:51:07Z jasom: Also I was using ImmutableJS for performance reasons on React, but now that I'm using mithril, unless I memoize the view function I get zero benefit from it. 2016-09-11T18:51:34Z seg quit (Ping timeout: 265 seconds) 2016-09-11T18:52:17Z jasom: so I should either memoize the view function or switch back to more idiomatic javascript. 2016-09-11T18:52:26Z seg_ is now known as seg 2016-09-11T18:52:29Z attila_lendvai quit (Ping timeout: 260 seconds) 2016-09-11T18:54:51Z jackdaniel: /win 26 2016-09-11T18:55:12Z Fare quit (Ping timeout: 240 seconds) 2016-09-11T18:56:28Z manuel_ quit (Quit: manuel_) 2016-09-11T18:58:38Z aries_liuxueyang quit (Quit: No Ping reply in 180 seconds.) 2016-09-11T18:59:13Z can3p quit (Quit: This computer has gone to sleep) 2016-09-11T19:00:05Z aries_liuxueyang joined #lisp 2016-09-11T19:08:49Z gingerale quit (Remote host closed the connection) 2016-09-11T19:10:41Z manuel_ joined #lisp 2016-09-11T19:11:39Z can3p joined #lisp 2016-09-11T19:12:32Z shrdlu68 left #lisp 2016-09-11T19:17:35Z d4ryus quit (Ping timeout: 265 seconds) 2016-09-11T19:19:28Z zacharias joined #lisp 2016-09-11T19:22:31Z MrWoohoo quit (Ping timeout: 244 seconds) 2016-09-11T19:22:38Z boomer quit (Ping timeout: 250 seconds) 2016-09-11T19:22:40Z fortitude joined #lisp 2016-09-11T19:28:03Z vlatkoB_ quit (Remote host closed the connection) 2016-09-11T19:36:46Z attila_lendvai joined #lisp 2016-09-11T19:38:04Z whiteline quit (Ping timeout: 240 seconds) 2016-09-11T19:38:37Z rudolfochrist joined #lisp 2016-09-11T19:38:51Z lnostdal quit (Ping timeout: 265 seconds) 2016-09-11T19:39:35Z whiteline joined #lisp 2016-09-11T19:40:55Z hudds quit (Quit: Lost terminal) 2016-09-11T19:43:00Z space_otter joined #lisp 2016-09-11T19:43:04Z Fare joined #lisp 2016-09-11T19:44:33Z anonymous_ joined #lisp 2016-09-11T19:46:33Z anonymous_ quit (Client Quit) 2016-09-11T19:52:12Z Th30n quit (Quit: leaving) 2016-09-11T19:52:20Z Ven_ joined #lisp 2016-09-11T19:56:36Z lnostdal joined #lisp 2016-09-11T19:56:52Z Ven_ quit (Ping timeout: 240 seconds) 2016-09-11T19:57:36Z FareTower joined #lisp 2016-09-11T20:00:20Z Fare quit (Ping timeout: 250 seconds) 2016-09-11T20:01:58Z manuel_ quit (Ping timeout: 244 seconds) 2016-09-11T20:07:59Z Yuuhi quit (Remote host closed the connection) 2016-09-11T20:08:42Z Princess17b29a quit (Quit: Princess17b29a) 2016-09-11T20:16:52Z mishoo quit (Ping timeout: 240 seconds) 2016-09-11T20:23:40Z boomer joined #lisp 2016-09-11T20:23:50Z manuel_ joined #lisp 2016-09-11T20:26:08Z lnostdal quit (Read error: Connection reset by peer) 2016-09-11T20:26:28Z lnostdal joined #lisp 2016-09-11T20:26:44Z shrdlu68 joined #lisp 2016-09-11T20:29:57Z MoALTz quit (Quit: Leaving) 2016-09-11T20:35:04Z shrdlu68 quit (Ping timeout: 240 seconds) 2016-09-11T20:37:57Z ggole quit 2016-09-11T20:38:48Z stepnem quit (Ping timeout: 276 seconds) 2016-09-11T20:41:03Z fortitude quit (Ping timeout: 240 seconds) 2016-09-11T20:41:40Z Ven_ joined #lisp 2016-09-11T20:46:52Z manuel_ quit (Quit: manuel_) 2016-09-11T20:54:14Z manuel_ joined #lisp 2016-09-11T20:55:42Z gravicappa quit (Ping timeout: 276 seconds) 2016-09-11T20:57:55Z Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2016-09-11T20:58:54Z rjnw joined #lisp 2016-09-11T20:59:39Z jackdaniel: good night lisp o/ 2016-09-11T21:02:33Z elimik31 joined #lisp 2016-09-11T21:07:32Z prxq joined #lisp 2016-09-11T21:09:56Z ovenpasta joined #lisp 2016-09-11T21:14:10Z d4ryus joined #lisp 2016-09-11T21:15:00Z prxq quit (Remote host closed the connection) 2016-09-11T21:15:28Z lnostdal quit (Read error: Connection reset by peer) 2016-09-11T21:16:34Z lnostdal joined #lisp 2016-09-11T21:16:35Z boomer quit (Ping timeout: 250 seconds) 2016-09-11T21:17:59Z lnostdal quit (Read error: Connection reset by peer) 2016-09-11T21:18:40Z lnostdal joined #lisp 2016-09-11T21:21:47Z rudolfochrist quit (Ping timeout: 250 seconds) 2016-09-11T21:22:28Z elimik31 quit (Remote host closed the connection) 2016-09-11T21:22:48Z elimik31 joined #lisp 2016-09-11T21:24:01Z shka quit (Ping timeout: 252 seconds) 2016-09-11T21:28:44Z manuel__ joined #lisp 2016-09-11T21:28:51Z manuel_ quit (Ping timeout: 276 seconds) 2016-09-11T21:28:51Z manuel__ is now known as manuel_ 2016-09-11T21:36:49Z fortitude joined #lisp 2016-09-11T21:37:39Z wildlander quit (Quit: Saliendo) 2016-09-11T21:47:16Z Zhivago quit (Ping timeout: 264 seconds) 2016-09-11T21:53:04Z Zhivago joined #lisp 2016-09-11T21:55:27Z manuel_ quit (Ping timeout: 244 seconds) 2016-09-11T21:55:31Z zygentoma quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) 2016-09-11T22:01:33Z manuel_ joined #lisp 2016-09-11T22:04:13Z Karl_Dscc quit (Remote host closed the connection) 2016-09-11T22:07:29Z zacharias quit (Ping timeout: 244 seconds) 2016-09-11T22:07:51Z Aiwass quit (Ping timeout: 244 seconds) 2016-09-11T22:09:03Z NeverDie quit (Ping timeout: 244 seconds) 2016-09-11T22:10:00Z k3rn31 quit (Quit: Computer has gone to sleep.) 2016-09-11T22:10:33Z angavrilov quit (Remote host closed the connection) 2016-09-11T22:15:40Z shrdlu68 joined #lisp 2016-09-11T22:17:08Z can3p quit (Quit: This computer has gone to sleep) 2016-09-11T22:18:14Z shrdlu68: How does one create an IO stream from a a byte array? 2016-09-11T22:19:36Z shrdlu68: Sort of like with-input-from-string. 2016-09-11T22:21:04Z can3p joined #lisp 2016-09-11T22:21:13Z robotoad quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2016-09-11T22:22:29Z cromachina: shrdlu68: flexi-streams may be able to help you with that 2016-09-11T22:23:20Z cromachina: http://weitz.de/flexi-streams/#make-in-memory-input-stream 2016-09-11T22:23:37Z shrdlu68: cromachina: I've heard of it, but I was wondering if there was a way to just do it in vanilla CL. 2016-09-11T22:24:12Z shrdlu68: Essentially, how to create non-file-based binary IO streams in CL? 2016-09-11T22:24:24Z cromachina: you could use your implementation's gray-streams 2016-09-11T22:24:42Z cromachina: but note that it would not be portable 2016-09-11T22:25:28Z shrdlu68: I've seen traces of those, reading about. Let me learn more about them... 2016-09-11T22:26:58Z EvW quit (Remote host closed the connection) 2016-09-11T22:27:08Z EvW joined #lisp 2016-09-11T22:28:16Z magicuser joined #lisp 2016-09-11T22:28:29Z magicuser: is there any lisp library that does kinda like readline? 2016-09-11T22:28:33Z magicuser: I use rlwrap 2016-09-11T22:28:35Z magicuser: now 2016-09-11T22:28:44Z magicuser: but wow its like 15m in top on freebsd 2016-09-11T22:28:46Z pierpa: emacs? 2016-09-11T22:28:48Z magicuser: 15M! 2016-09-11T22:28:52Z magicuser: vi 2016-09-11T22:28:59Z cromachina: emacs :^) 2016-09-11T22:29:03Z magicuser: yuk 2016-09-11T22:29:14Z cromachina: perhaps this? https://github.com/mrkkrp/cl-readline 2016-09-11T22:37:35Z ekinmur joined #lisp 2016-09-11T22:40:23Z jsgrant quit (Read error: Connection reset by peer) 2016-09-11T22:40:58Z ekinmur quit (Client Quit) 2016-09-11T22:41:16Z magicuser: hmm 2016-09-11T22:41:27Z magicuser: I will just use rlwrap that looks like hell to install. 2016-09-11T22:41:33Z alelos quit (Ping timeout: 240 seconds) 2016-09-11T22:41:36Z magicuser: rlwrap sbcl! 2016-09-11T22:41:39Z magicuser: on freebsd 11 here 2016-09-11T22:45:07Z magicuser: funny some kinda reader thing cant do that in just a few lines of code without using gnu readline... 2016-09-11T22:45:25Z magicuser: adn 2 other libs I never heard of 2016-09-11T22:45:34Z magicuser: and a installer program I never used 2016-09-11T22:46:13Z magicuser: and I cant jsut go mylistpforexsbcl -some-switch-to-load-in-code-from-file readlinelispleanppfile 2016-09-11T22:46:23Z raydeejay: you could use tintin++ 2016-09-11T22:46:26Z pierpa: why do you need such a thing? 2016-09-11T22:47:16Z magicuser: if I compute say length n width for a metal hosue in meters, and want to type up arrow and modify code to do it in feet, since the price in in X per sq foot 2016-09-11T22:47:20Z magicuser: realine si awesome 2016-09-11T22:47:25Z magicuser: tintin++? 2016-09-11T22:47:34Z fortitude quit (Ping timeout: 260 seconds) 2016-09-11T22:47:46Z pierpa: why don't you work in an environment which allows you to do this already? 2016-09-11T22:47:53Z magicuser: its really convenient to use lisp as calculator 2016-09-11T22:47:58Z raydeejay: I'm kidding mostly, but you could use tintin++ to get editing of that kind 2016-09-11T22:48:02Z magicuser: I do but its a lot of ram 2016-09-11T22:48:05Z raydeejay: or, you know, emacs 2016-09-11T22:48:09Z magicuser: rlwrap is very nice but 15m ram 2016-09-11T22:48:30Z magicuser: seems like memorizing last say 50 commands I run in the interpreter should not take 15m 2016-09-11T22:49:27Z cromachina: what constrained system are you working on? 2016-09-11T22:51:00Z magicuser: its not really 2016-09-11T22:51:02Z magicuser: 16g ram pc 2016-09-11T22:51:06Z magicuser: freebsd 11 2016-09-11T22:51:08Z magicuser: 6 cpu 2016-09-11T22:51:10Z raydeejay sighs 2016-09-11T22:51:13Z magicuser: just a code size thing 2016-09-11T22:51:26Z magicuser: its seems as if this should be easy thing for lisp to do in few k 2016-09-11T22:51:28Z magicuser: of code 2016-09-11T22:51:43Z magicuser: 10k is 10,000 lines of text 2016-09-11T22:54:12Z antoszka: magicuser: didn't follow the whole discussion, but for sbcl there linedit 2016-09-11T22:54:23Z antoszka: magicuser: works much better than rlwrap 2016-09-11T22:54:36Z antoszka: (including persistent history) 2016-09-11T22:55:35Z antoszka: http://wklej.org/id/2841429/ ← that's how I set it up 2016-09-11T22:58:37Z cromachina: you will likely pay even more in lisp memory to do the same thing as rlwrap 2016-09-11T22:59:20Z cromachina: also i doubt that is a 10k project 2016-09-11T22:59:33Z cromachina: sounds like less than 300 lines 2016-09-11T23:01:10Z MrWoohoo joined #lisp 2016-09-11T23:02:22Z eivarv quit (Quit: Sleep) 2016-09-11T23:08:30Z shrdlu68 left #lisp 2016-09-11T23:09:38Z Kundry_Wag quit (Remote host closed the connection) 2016-09-11T23:10:11Z Kundry_Wag joined #lisp 2016-09-11T23:12:10Z edgar-rft joined #lisp 2016-09-11T23:14:52Z Kundry_Wag_ joined #lisp 2016-09-11T23:16:46Z ovenpasta quit (Ping timeout: 252 seconds) 2016-09-11T23:16:50Z Kundry_Wag quit (Ping timeout: 265 seconds) 2016-09-11T23:17:24Z fortitude joined #lisp 2016-09-11T23:20:52Z boomer joined #lisp 2016-09-11T23:23:14Z quazimodo joined #lisp 2016-09-11T23:29:52Z varjag quit (Ping timeout: 264 seconds) 2016-09-11T23:32:10Z quazimodo quit (Ping timeout: 252 seconds) 2016-09-11T23:32:54Z space_otter quit (Remote host closed the connection) 2016-09-11T23:37:12Z FareTower quit (Ping timeout: 240 seconds) 2016-09-11T23:39:07Z pipping: magicuser: a cheaper solution than wasting thought on this is just to wait for ram to become even cheaper and buy more of it. 2016-09-11T23:40:39Z attila_lendvai quit (Ping timeout: 260 seconds) 2016-09-11T23:41:29Z manuel_ quit (Ping timeout: 265 seconds) 2016-09-11T23:42:24Z Anselma joined #lisp 2016-09-11T23:42:58Z Anselmo quit (Disconnected by services) 2016-09-11T23:43:00Z Anselma is now known as Anselmo 2016-09-11T23:45:21Z manuel_ joined #lisp 2016-09-11T23:51:43Z `lain quit (Ping timeout: 265 seconds) 2016-09-11T23:52:46Z `lain joined #lisp 2016-09-11T23:54:20Z lnostdal quit (Read error: Connection reset by peer) 2016-09-11T23:55:16Z lnostdal joined #lisp