2014-11-17T00:02:10Z kuimacro joined #lisp 2014-11-17T00:02:22Z MoALTz__ quit (Ping timeout: 245 seconds) 2014-11-17T00:02:38Z kuimacro` joined #lisp 2014-11-17T00:04:54Z innertracks joined #lisp 2014-11-17T00:05:29Z K1rk quit (Ping timeout: 250 seconds) 2014-11-17T00:06:37Z manuel__ joined #lisp 2014-11-17T00:06:56Z K1rk joined #lisp 2014-11-17T00:08:28Z kuimacro` quit (Remote host closed the connection) 2014-11-17T00:09:31Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-17T00:10:17Z csziacobus quit (Quit: csziacobus) 2014-11-17T00:15:49Z nha_ joined #lisp 2014-11-17T00:16:11Z Bicyclidine quit (Ping timeout: 272 seconds) 2014-11-17T00:17:28Z innertracks quit (Quit: innertracks) 2014-11-17T00:18:30Z nha quit (Ping timeout: 258 seconds) 2014-11-17T00:18:49Z Ethan- joined #lisp 2014-11-17T00:19:08Z dagnachew quit (Quit: WeeChat 1.0.1) 2014-11-17T00:19:27Z JuanDaugherty quit (Remote host closed the connection) 2014-11-17T00:20:05Z uber quit (Quit: bye) 2014-11-17T00:20:56Z JuanDaugherty joined #lisp 2014-11-17T00:21:33Z usrj quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )) 2014-11-17T00:21:59Z usrj joined #lisp 2014-11-17T00:22:48Z uber joined #lisp 2014-11-17T00:24:18Z kuimacro quit (Remote host closed the connection) 2014-11-17T00:26:12Z dagnachew joined #lisp 2014-11-17T00:30:55Z vaporatorius quit (Remote host closed the connection) 2014-11-17T00:33:39Z lommm quit (Ping timeout: 250 seconds) 2014-11-17T00:33:58Z dagnachew quit (Quit: WeeChat 1.0.1) 2014-11-17T00:34:24Z munksgaard quit (Ping timeout: 255 seconds) 2014-11-17T00:36:26Z zRecursi` joined #lisp 2014-11-17T00:36:43Z harish quit (Ping timeout: 265 seconds) 2014-11-17T00:37:02Z uber quit (Changing host) 2014-11-17T00:37:02Z uber joined #lisp 2014-11-17T00:38:12Z zRecursive quit (Ping timeout: 245 seconds) 2014-11-17T00:46:46Z k-dawg joined #lisp 2014-11-17T00:52:08Z atgreen joined #lisp 2014-11-17T00:55:41Z phserr joined #lisp 2014-11-17T00:55:56Z urandom__ quit (Quit: Konversation terminated!) 2014-11-17T00:56:17Z phserr left #lisp 2014-11-17T00:57:47Z zxq9 quit (Read error: Connection reset by peer) 2014-11-17T01:00:11Z innertracks joined #lisp 2014-11-17T01:04:16Z BitPuffin quit (Ping timeout: 265 seconds) 2014-11-17T01:06:41Z EvW quit (Ping timeout: 265 seconds) 2014-11-17T01:06:51Z mishoo_ quit (Ping timeout: 272 seconds) 2014-11-17T01:10:28Z attila_lendvai quit (Quit: Leaving.) 2014-11-17T01:14:28Z ivan4th quit (Read error: Connection reset by peer) 2014-11-17T01:14:55Z ivan4th joined #lisp 2014-11-17T01:15:48Z gingerale quit (Ping timeout: 256 seconds) 2014-11-17T01:15:59Z chu quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-17T01:17:28Z usrj quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )) 2014-11-17T01:22:50Z usrj joined #lisp 2014-11-17T01:29:58Z s00pcan joined #lisp 2014-11-17T01:30:52Z manuel__ quit (Quit: manuel__) 2014-11-17T01:31:16Z k-dawg quit (Quit: This computer has gone to sleep) 2014-11-17T01:38:37Z gabriel_laddel quit (Ping timeout: 240 seconds) 2014-11-17T01:46:19Z kanru` joined #lisp 2014-11-17T01:49:27Z Vutral quit (Ping timeout: 245 seconds) 2014-11-17T01:53:15Z harish joined #lisp 2014-11-17T01:59:36Z oleo__ joined #lisp 2014-11-17T02:00:08Z oleo is now known as Guest52034 2014-11-17T02:00:43Z Guest79152 is now known as cyphase 2014-11-17T02:00:47Z Guest52034 quit (Ping timeout: 255 seconds) 2014-11-17T02:00:49Z cyphase quit (Changing host) 2014-11-17T02:00:49Z cyphase joined #lisp 2014-11-17T02:02:07Z Vutral joined #lisp 2014-11-17T02:13:50Z chu joined #lisp 2014-11-17T02:16:19Z wjiang joined #lisp 2014-11-17T02:19:30Z innertracks quit (Quit: innertracks) 2014-11-17T02:20:03Z innertracks joined #lisp 2014-11-17T02:26:09Z nydel quit (Quit: WeeChat 0.4.2) 2014-11-17T02:26:19Z nydel joined #lisp 2014-11-17T02:30:47Z frkout_ joined #lisp 2014-11-17T02:34:12Z frkout quit (Ping timeout: 250 seconds) 2014-11-17T02:39:17Z hiyosi quit (Ping timeout: 240 seconds) 2014-11-17T02:56:08Z usrj quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-17T03:05:56Z cpc26 quit (Ping timeout: 264 seconds) 2014-11-17T03:06:56Z baotiao joined #lisp 2014-11-17T03:08:37Z jumblerg joined #lisp 2014-11-17T03:09:06Z jumblerg quit (Client Quit) 2014-11-17T03:11:52Z frkout_ quit (Read error: Connection reset by peer) 2014-11-17T03:12:18Z frkout joined #lisp 2014-11-17T03:19:33Z zxq9 joined #lisp 2014-11-17T03:20:56Z dagnachew joined #lisp 2014-11-17T03:36:09Z hiyosi joined #lisp 2014-11-17T03:36:35Z bgs100 quit (Quit: bgs100) 2014-11-17T03:40:07Z cpc26 joined #lisp 2014-11-17T03:41:21Z hiyosi quit (Ping timeout: 265 seconds) 2014-11-17T03:46:04Z kristof quit (Ping timeout: 244 seconds) 2014-11-17T03:54:59Z ered-away joined #lisp 2014-11-17T03:55:05Z ered quit (Ping timeout: 258 seconds) 2014-11-17T03:55:09Z ered-away quit (Read error: Connection reset by peer) 2014-11-17T03:55:33Z ered joined #lisp 2014-11-17T03:56:06Z dagnachew quit (Quit: WeeChat 1.0.1) 2014-11-17T03:59:42Z jusss joined #lisp 2014-11-17T03:59:54Z beach joined #lisp 2014-11-17T04:00:02Z beach: Good morning everyone! 2014-11-17T04:00:20Z drmeister: Hello beach. 2014-11-17T04:00:59Z drmeister: I set up code to ram all of the ECL/Clasp source code through Cleavir. 2014-11-17T04:01:07Z nyef: Hello beach. 2014-11-17T04:01:33Z drmeister: To see if I could generate ASTs for every form. 2014-11-17T04:01:52Z cyan is now known as cy 2014-11-17T04:01:52Z beach: drmeister: That's ambitious. 2014-11-17T04:02:04Z beach: But a great test of course. 2014-11-17T04:02:38Z beach: And it runs natively, right? 2014-11-17T04:03:30Z drmeister: I don't understand, what is it that runs natively? The code is all compiled by Clasp's compiler. 2014-11-17T04:03:47Z drmeister: Did I answer the question? 2014-11-17T04:03:54Z beach: Yes. 2014-11-17T04:04:02Z beach: So it will be a great test of Clasp as well. 2014-11-17T04:04:36Z drmeister: Right, Clasp running Cleavir compiling Clasp. It's like the movie Inception - but it makes sense. 2014-11-17T04:05:16Z ggole joined #lisp 2014-11-17T04:05:17Z kcj joined #lisp 2014-11-17T04:05:53Z drmeister: I sent you several emails - if it's too much tell me and I'll try and slow down. 2014-11-17T04:06:05Z TheMoonMaster left #lisp 2014-11-17T04:06:10Z beach: Oh, just saw them now. 2014-11-17T04:06:21Z beach: It will take some time to process. 2014-11-17T04:06:30Z baotiao quit (Ping timeout: 250 seconds) 2014-11-17T04:06:31Z drmeister: No problem. I'm going to bed soon. 2014-11-17T04:07:12Z beach: ... and I'm not awake yet. 2014-11-17T04:07:16Z heurist quit (Remote host closed the connection) 2014-11-17T04:07:53Z beach: I'm having my coffee but it takes a while to kick in. 2014-11-17T04:07:58Z baotiao joined #lisp 2014-11-17T04:08:06Z jusss quit (Read error: Connection reset by peer) 2014-11-17T04:08:23Z jusss joined #lisp 2014-11-17T04:10:44Z TDog quit (Ping timeout: 264 seconds) 2014-11-17T04:11:31Z jusss quit (Read error: Connection reset by peer) 2014-11-17T04:11:59Z jusss joined #lisp 2014-11-17T04:12:22Z _5kg quit (Ping timeout: 240 seconds) 2014-11-17T04:15:56Z k-dawg joined #lisp 2014-11-17T04:21:00Z xrash quit (Remote host closed the connection) 2014-11-17T04:23:31Z jlarocco joined #lisp 2014-11-17T04:25:27Z chu quit (Quit: ERC Version 5.3 (IRC client for Emacs)) 2014-11-17T04:25:30Z meiji11 joined #lisp 2014-11-17T04:28:40Z heurist joined #lisp 2014-11-17T04:29:13Z kushal joined #lisp 2014-11-17T04:30:08Z nydel quit (Quit: leaving) 2014-11-17T04:30:58Z drmeister: beach: No problem. I'm working on something else at the moment. 2014-11-17T04:33:29Z heurist quit (Remote host closed the connection) 2014-11-17T04:34:27Z beach: drmeister: I looked at the form you posted: (defun codegen ...) 2014-11-17T04:35:12Z beach: I saw that generate-ast does not handle undefined symbols very well. I should copy the code I did for minimal compilation that signals an error and provides restarts. 2014-11-17T04:37:09Z drmeister: I thought it might be something to do with generating ASTs on source code out of context. 2014-11-17T04:37:36Z drmeister: Wouldn't it be better to accumulate compilation errors and warnings? 2014-11-17T04:37:37Z beach: I don't know yet. The reason it failed here is that I don't have the same environment as you do. 2014-11-17T04:38:24Z beach: Let me process your email messages and I'll let you know how to proceed. 2014-11-17T04:38:37Z drmeister: That is a form snipped out of my source code. That's why I started setting up to compile everything in the proper order. 2014-11-17T04:38:47Z beach: Yeah, you are right. 2014-11-17T04:39:04Z drmeister: I thought without the context it might run into trouble. 2014-11-17T04:39:15Z beach: Indeed. 2014-11-17T04:39:46Z drmeister: A problem that I ran into when I tried to compile from the beginning is that Cleavir doesn't like to generate ASTs for single SETQ forms like: (setq core:*echo-repl-tpl-read* nil) 2014-11-17T04:40:00Z izirku quit 2014-11-17T04:40:09Z drmeister: Where core:*echo-repl-tpl-read* is a global/special. 2014-11-17T04:40:23Z drmeister: Here's the error I get: 2014-11-17T04:40:26Z drmeister: https://www.irccloud.com/pastebin/D8mDqsdd 2014-11-17T04:41:24Z drmeister: Whoops - forgot to generate a backtrace and print the environment in the lowest Cleavir function: 2014-11-17T04:41:27Z drmeister: https://www.irccloud.com/pastebin/R1XRM1AF 2014-11-17T04:42:25Z beach: I don't recognize that at all. 2014-11-17T04:43:15Z beach: Perhaps you can interpret the information for me? 2014-11-17T04:43:24Z drmeister: Sure - hang on. 2014-11-17T04:44:41Z drmeister: https://www.irccloud.com/pastebin/18tF18xf 2014-11-17T04:44:46Z drmeister: Ugh 2014-11-17T04:44:46Z vinleod joined #lisp 2014-11-17T04:44:53Z drmeister: In convert-special.lisp on line 438 is a LET statement: 2014-11-17T04:45:30Z drmeister: (let* ((info (cleavir-env:variable-info env var)) (identity (cleavir-env:identity info))) ... 2014-11-17T04:45:49Z beach: OK, that looks fishy. 2014-11-17T04:45:57Z beach: I'll look into it. 2014-11-17T04:46:04Z drmeister: info is being bound to NIL and so the call (cleavir-env:identity info) is failing. 2014-11-17T04:46:31Z drmeister: Ooops. I think that's my bad. The env is the global environment. 2014-11-17T04:46:56Z beach: I think this is a case where I should signal an error and provide a restart. 2014-11-17T04:47:05Z beach: Currently, it just fails. 2014-11-17T04:47:34Z beach: It happens when the environment returns NIL for some query. 2014-11-17T04:47:55Z drmeister: Yeah, "env" is bound to the bogus clasp global environment. I'm returning NIL from (cleavir-env:variable-info env var). var is CORE::*ECHO-REPL-TPL-READ* 2014-11-17T04:48:33Z beach: Right, so it is not considered special in the environment, and Cleavir should signal an error that you can then capture and invoke a restart. 2014-11-17T04:48:52Z beach: But I don't do that yet in GENERATE-AST. I should do that. 2014-11-17T04:49:21Z beach: Without it, things are impossible to debug. 2014-11-17T04:49:38Z beach: So let me work on that today, and let you run your tests again after that. 2014-11-17T04:49:42Z beach: How does that sound? 2014-11-17T04:50:01Z jlongster joined #lisp 2014-11-17T04:50:23Z drmeister: Sure, no problem. I don't understand why cleavir-env:variable-info is returning NIL. Investigating. 2014-11-17T04:50:34Z beach: I can't answer that :) 2014-11-17T04:50:42Z k-dawg quit (Quit: This computer has gone to sleep) 2014-11-17T04:51:32Z beach: I need to vanish for half an hour or so. We can continue later or after you had some sleep. 2014-11-17T04:51:49Z drmeister: Hmm, when I call it from the debugger it's returning: a CLEAVIR-ENVIRONMENT:SPECIAL-VARIABLE-INFO#<0x114bd66a8> as it should. 2014-11-17T04:52:07Z beach: oops! 2014-11-17T04:52:15Z drmeister: I'll be indisposed until Wednesday - so take your time. 2014-11-17T04:52:22Z beach: OK. 2014-11-17T04:52:25Z beach: Good. 2014-11-17T04:53:10Z drmeister: Wait - no, I interpreted the error incorrectly... working. 2014-11-17T04:53:38Z radioninja joined #lisp 2014-11-17T04:53:54Z drmeister: Gah, I have to learn to read my own freakin error messages properly. 2014-11-17T04:54:16Z nyef quit (Quit: G'night all) 2014-11-17T04:55:14Z drmeister: It's complaining that there is no method cleavir-env:identity specialized to #S(# (make-instance 'class "foo" "bar")), what would I need to redefine? Even if I try writing my own INITIALIZE-INSTNACE, it still complains that "foo" is not a keyword. Or should I better evade such a way of abusing MOP? 2014-11-17T16:53:39Z stassats: can't do that 2014-11-17T16:53:53Z alexey quit (Ping timeout: 264 seconds) 2014-11-17T16:53:57Z hitecnologys: I see. 2014-11-17T16:54:14Z Grue`: you need to use a function that is not make-instance 2014-11-17T16:54:15Z stassats: (make-instance 'class "foo") wouldn't work 2014-11-17T16:54:15Z protist quit (Quit: Konversation terminated!) 2014-11-17T16:54:49Z hitecnologys: Is writing a wrapper that would iterate over slots and then pass correct initargs list to MAKE-INSTANCE an appropriate solution? 2014-11-17T16:55:04Z Grue`: yes 2014-11-17T16:55:12Z Krystof: except that it seems like a bit of a weird thing to want to do 2014-11-17T16:55:17Z jasom: hitecnologys: yes. Typically it will be called make-foo (where foo is your class) 2014-11-17T16:55:19Z stassats: you don't have to iterate 2014-11-17T16:55:28Z jasom: Krystof: well not that weird, defstruct has that feature built in 2014-11-17T16:55:33Z stassats: (defun make-class (&optional a b c d e f)) 2014-11-17T16:55:46Z alexey joined #lisp 2014-11-17T16:55:54Z Krystof: jasom: defstruct also doesn't have any dynamicity 2014-11-17T16:56:12Z hitecnologys: Krystof: indeed it does. I'm currently exploring different ways of solving my problem. 2014-11-17T16:56:29Z Grue`: i don't think it's unusual at all to write constructors like that 2014-11-17T16:56:55Z Grue`: though only on per-class basis 2014-11-17T16:57:10Z Krystof: I think to write a _specific_ constructor like that might not be weird, though it can be deeply annoying because it basically doesn't allow subclassing by third-parties 2014-11-17T16:57:18Z hitecnologys: stassats: how would that help me not to iterate over slots to get correct initargs? 2014-11-17T16:57:31Z Krystof: to write a generic constructor with positional arguments is like, I don't know, C++ weird 2014-11-17T16:57:59Z hugoduncan is now known as hugod 2014-11-17T16:58:03Z stassats: it's fast 2014-11-17T16:59:16Z milanj joined #lisp 2014-11-17T17:00:35Z EvW joined #lisp 2014-11-17T17:02:05Z alexey quit (Remote host closed the connection) 2014-11-17T17:02:50Z przl quit (Ping timeout: 258 seconds) 2014-11-17T17:03:34Z hitecnologys: Krystof: I'm using custom metaclasses to store structure of networking packets. To define packets I define class with "Packet" as metaclass and then slots are interpreted as packet fields if they have specific keywords in them. What I need positional arguments for is simplifying the way instances of parsed packets are created: parser will only need to APPLY parsed fields to MAKE-PACKET instead of first finding 2014-11-17T17:03:36Z hitecnologys: out how there fields are actually called in code. 2014-11-17T17:04:34Z hitecnologys: Krystof: it might sound weird but it works and looks much better than what I used to use before. 2014-11-17T17:05:34Z hitecnologys: s/there/these/ 2014-11-17T17:07:04Z Krystof: ok, interesting 2014-11-17T17:07:11Z Krystof: I suspect I would break up your thing into two parts 2014-11-17T17:07:47Z Krystof: one thing which creates the binary packet data from arguments, and one thing that wraps a class around that binary packet data 2014-11-17T17:08:21Z Krystof: but your domain constrains against arbitrary subclassing / redefinition, so I think this is a bit less weird :) 2014-11-17T17:08:30Z stassats: why not use structures? 2014-11-17T17:09:12Z moore33 quit 2014-11-17T17:09:25Z hitecnologys: Krystof: I used to have approximately what use suggest but it was a bit clumsy. 2014-11-17T17:09:52Z hitecnologys: stassats: I can't simply redefine them. That's critical. 2014-11-17T17:10:02Z Krystof: I sort of still don't like the positional arguments because I might well want to leave things blank 2014-11-17T17:10:05Z cy joined #lisp 2014-11-17T17:10:10Z mvilleneuve quit (Quit: This computer has gone to sleep) 2014-11-17T17:10:20Z stassats: you can redefine them 2014-11-17T17:10:41Z hitecnologys: Krystof: not in my case. All fields must be there or packet is considered invalid. 2014-11-17T17:10:46Z pjb: hitecnologys: you can define YOUR-LISP:MAKE-INSTANCE as you wish, calling CL:MAKE-INSTANCE. 2014-11-17T17:10:50Z mrSpec quit (Ping timeout: 250 seconds) 2014-11-17T17:11:04Z hitecnologys: stassats: how? Last time I did that, it broke things. 2014-11-17T17:11:24Z stassats: recompile all the code that uses it, get rid of all the old instances 2014-11-17T17:12:03Z hitecnologys: pjb: I think I'll better stick to MAKE-PACKET that calls CL:MAKE-INSTNACE. This way no one will get confused too much. 2014-11-17T17:12:15Z hitecnologys: stassats: that's too much trouble. 2014-11-17T17:12:21Z stassats: it's not 2014-11-17T17:12:35Z hitecnologys: Getting rid of all the instances can be. 2014-11-17T17:13:10Z stassats: just parse everything anew 2014-11-17T17:15:05Z xrash joined #lisp 2014-11-17T17:15:33Z madmalik quit (Quit: Connection closed for inactivity) 2014-11-17T17:15:48Z hitecnologys: I also need to do magic with stuff passed as initargs to slots and then store this data somewhere close to class. I don't see how that can be easily doable with structures. 2014-11-17T17:16:54Z hitecnologys: Of course, I can split stuff into two parts, but I didn't like that approach much. 2014-11-17T17:16:59Z k-dawg quit (Quit: This computer has gone to sleep) 2014-11-17T17:19:52Z Ethan- quit (Ping timeout: 245 seconds) 2014-11-17T17:20:04Z tkhoa2711 quit (Quit: tkhoa2711) 2014-11-17T17:21:25Z beach joined #lisp 2014-11-17T17:21:34Z beach: Good evening everyone! 2014-11-17T17:22:04Z hitecnologys: beach: evening. 2014-11-17T17:22:40Z innertracks joined #lisp 2014-11-17T17:24:36Z nyef: Hello beach. 2014-11-17T17:24:58Z mrSpec joined #lisp 2014-11-17T17:26:00Z Patzy quit (Ping timeout: 255 seconds) 2014-11-17T17:26:35Z Patzy joined #lisp 2014-11-17T17:28:31Z zacharias quit (Ping timeout: 272 seconds) 2014-11-17T17:32:21Z rszeno quit (Ping timeout: 258 seconds) 2014-11-17T17:33:36Z ggole: beach: I'm curious, have you reached any conclusion on the unknown-values problem? 2014-11-17T17:33:49Z beach: I think so, yes. 2014-11-17T17:34:13Z beach: Introduce a variable that can hold multiple values. 2014-11-17T17:34:37Z beach: Make RETURN take such a variable as input and CALL generate such a variable as output. 2014-11-17T17:35:23Z ggole: Ah, and then lowering it can be done in whatever way is convenient. 2014-11-17T17:35:27Z beach: Provide instruction FIXED-TO-MULTIPLE that takes a fixed number of lexical locations as input and generates a multiple values on output. 2014-11-17T17:35:40Z beach: Provide instruction MULTIPLE-TO-FIXED that does the inverse. 2014-11-17T17:35:57Z beach: Lowering? 2014-11-17T17:36:29Z ggole: Transforming to lower-level constructs 2014-11-17T17:36:36Z beach: Right. 2014-11-17T17:36:50Z ggole: Eg, a loop of copy instructions 2014-11-17T17:37:11Z beach: Yes, and that would have to be implementation-dependent. 2014-11-17T17:37:23Z hiroakip quit (Ping timeout: 272 seconds) 2014-11-17T17:41:20Z beach: I would have implemented it today, but drmeister has kept me busy :) 2014-11-17T17:41:39Z Karl_Dscc quit (Remote host closed the connection) 2014-11-17T17:41:44Z beach: ... and now it's so late that if I try I will make lots of mistakes. 2014-11-17T17:42:16Z k-stz joined #lisp 2014-11-17T17:42:30Z hiroakip joined #lisp 2014-11-17T17:44:46Z drmeister cracks a whip 2014-11-17T17:45:48Z drmeister: beach: I'm working on providing more details on the NIL environments that are being passed to VARIABLE-INFO and FUNCTION-INFO. 2014-11-17T17:46:18Z beach: Thanks! 2014-11-17T17:46:37Z beach: Dinner. I must go. I might be back later. 2014-11-17T17:46:59Z drmeister: I'm enjoying this new concept of "mutually ensured debugging". 2014-11-17T17:47:23Z stassats: it's actually an interesting idea, writing a compiler without a backend 2014-11-17T17:47:58Z drmeister: It's like LLVM. 2014-11-17T17:48:14Z rszeno joined #lisp 2014-11-17T17:48:59Z drmeister: This could provide all sorts of new introspection tools for Common Lisp. 2014-11-17T17:49:02Z MoALTz joined #lisp 2014-11-17T17:51:22Z slyrus quit (Ping timeout: 240 seconds) 2014-11-17T17:52:14Z drmeister: It's more like Clang - a compiler front end and what I'm bringing to it is more like LLVM (the backend). Uh wait, what I'm bringing IS LLVM plus some other stuff (GC, reader, a Common Lisp implementation to run Cleavir). 2014-11-17T17:52:23Z pt1 joined #lisp 2014-11-17T17:52:38Z stassats: ha, caught a memory coruption with my memtester 2014-11-17T17:53:19Z lavokad quit (Remote host closed the connection) 2014-11-17T17:53:44Z drmeister: Is it a Common Lisp gamma ray detector? 2014-11-17T17:53:58Z nyef: minion: advice on bad ram? 2014-11-17T17:53:58Z minion: #11952: In my experience that is a bad strategy, because the people who ask such questions are the ones who paste the answer into their program without understanding it and then complain that it `does not work'. 2014-11-17T17:54:01Z nyef: Aww. 2014-11-17T17:54:05Z nyef: minion: advice on ram? 2014-11-17T17:54:05Z minion: #11924: Well, if you don't know what it does, why did you put it in your program? 2014-11-17T17:54:08Z nyef: Hrm. 2014-11-17T17:54:16Z stassats: minion: advice on hardware 2014-11-17T17:54:16Z minion: You can't expect automated advice for everything. 2014-11-17T17:54:20Z stassats: minion: advice on compiler 2014-11-17T17:54:20Z minion: #12000: Looking for a compiler bug is the second-to-last resort. The last resort is blaming bad RAM. It's never the correct hypothesis. 2014-11-17T17:54:26Z nyef: There we go, that's the one! 2014-11-17T17:55:05Z stassats: now i didn't write an examiner 2014-11-17T17:55:43Z fragamus joined #lisp 2014-11-17T17:55:45Z stassats: i actually think it's something with the motherboard, not supplying enough voltage or something 2014-11-17T17:56:21Z dlowe: bad caps, maybe 2014-11-17T17:56:23Z nyef: Or bogus bus clock speeds or something... 2014-11-17T17:56:25Z stassats: i think this time i'll use a single vector with increasing sequential integers, and print out indexes which do not match 2014-11-17T17:57:06Z nyef: Or there's a memory range that should be reserved to the power-management system but isn't exported as such to the OS... 2014-11-17T17:57:22Z stassats: things mostly work, i.e. it wakes up 2014-11-17T17:57:46Z stassats: although i have 16GB of ram, not much is needed to work 2014-11-17T17:58:02Z lavokad joined #lisp 2014-11-17T17:59:03Z ndrei joined #lisp 2014-11-17T17:59:17Z lommm quit (Ping timeout: 250 seconds) 2014-11-17T17:59:48Z pt1 quit (Read error: Connection reset by peer) 2014-11-17T18:00:43Z ioanna joined #lisp 2014-11-17T18:01:01Z pt1 joined #lisp 2014-11-17T18:03:32Z drmeister: beach: I see where the NIL environments are coming from. convert-special.lsp line 376 (let ((new-env (augment-environment-with-declarations env declarations)) ...) The variable "env" is bound to the global environment and the returned "new-env" is nil. declarations -> ((COMMON-LISP:DECLARE (COMMON-LISP:SPECIAL CORE:+ECL-SYNTAX-PROGV-LIST+ ) ) ) 2014-11-17T18:03:37Z hiyosi quit (Ping timeout: 265 seconds) 2014-11-17T18:06:37Z drmeister: beach: I sent you an email with more details. 2014-11-17T18:06:44Z nyef: stassats: Mismatched RAM types within a bank, maybe? 2014-11-17T18:07:04Z stassats: nyef: it seem to work fine when powered on 2014-11-17T18:07:09Z stassats: so, something weird is going on 2014-11-17T18:07:30Z stassats: priting memory now to see if it's zeroed or garbled or what 2014-11-17T18:07:41Z stassats: then switching slots, ram, bios settings, etc. 2014-11-17T18:09:23Z nyef: Also try with a bare minimum of RAM? 2014-11-17T18:09:49Z stassats: what complicates things is that i have to wait some time for it to become bad 2014-11-17T18:09:50Z nyef: But yeah, anything going wrong during suspend counts as "something weird". 2014-11-17T18:09:51Z hitecnologys: Do I have to write effective slots handling code if I don't care about inheritance? 2014-11-17T18:10:00Z stassats: let's try 5 minutes 2014-11-17T18:10:20Z rszeno: memtest? 2014-11-17T18:11:38Z stassats: hitecnologys: do it before you will 2014-11-17T18:12:17Z stassats: besides, you have to have effective slot definitions even if you don't inherit anything 2014-11-17T18:12:37Z hitecnologys: I see. 2014-11-17T18:13:13Z mindCrime_ quit (Quit: Konversation terminated!) 2014-11-17T18:13:32Z kushal quit (Ping timeout: 256 seconds) 2014-11-17T18:13:44Z stassats imagines finding a defective RAM module and calling the manufacturer with "i wrote a small lisp program and it says your ram is bad" 2014-11-17T18:13:47Z hitecnologys: I think I got enough information for now. Thanks for help. 2014-11-17T18:17:08Z milanj quit (Ping timeout: 250 seconds) 2014-11-17T18:19:49Z arenz quit (Ping timeout: 272 seconds) 2014-11-17T18:27:27Z stacksmith quit (Remote host closed the connection) 2014-11-17T18:28:36Z beach: drmeister: Thanks, I'll look at it tomorrow. 2014-11-17T18:29:03Z xrash quit (Ping timeout: 244 seconds) 2014-11-17T18:30:18Z stassats: so, it's one bit flipped 2014-11-17T18:30:58Z dlowe: you should avoid using that bit. 2014-11-17T18:31:06Z dlowe is full of helpful advice. 2014-11-17T18:32:01Z stassats: but not in one array index, in 7, but i mucked up the format statement so i don't know what's in the rest of them 2014-11-17T18:32:25Z stassats: now to wait 10 more minutes 2014-11-17T18:32:51Z Grue`: what if the program itself is corrupted 2014-11-17T18:33:11Z dlowe: it's corruption all the way down 2014-11-17T18:34:01Z xrash joined #lisp 2014-11-17T18:34:28Z przl joined #lisp 2014-11-17T18:38:05Z rszeno quit (Quit: Leaving.) 2014-11-17T18:39:05Z drmeister: beach: Should I be providing a method for AUGMENT-ENVIRONMENT-WITH-DECLARATIONS specialized to the CLASP-GLOBAL-ENVIRONMENT? It sounds like a great opportunity to set things up so that I don't modify the global environment directly but just add annotations to the CLASP-GLOBAL-ENVIRONMENT. 2014-11-17T18:40:04Z hardenedapple quit (Quit: WeeChat 1.0.1) 2014-11-17T18:40:15Z Patzy quit (Ping timeout: 255 seconds) 2014-11-17T18:40:53Z Patzy joined #lisp 2014-11-17T18:43:15Z drmeister: beach: Or - as you said - look at it tomorrow and we can talk later. 2014-11-17T18:44:27Z yrk joined #lisp 2014-11-17T18:44:58Z yrk quit (Changing host) 2014-11-17T18:44:58Z yrk joined #lisp 2014-11-17T18:46:50Z beach: I'll think about it. 2014-11-17T18:47:53Z Harag joined #lisp 2014-11-17T18:48:17Z hiroakip quit (Ping timeout: 240 seconds) 2014-11-17T18:48:31Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-17T18:53:18Z beach left #lisp 2014-11-17T18:54:39Z LoicLisp quit (Ping timeout: 255 seconds) 2014-11-17T18:59:39Z hiyosi joined #lisp 2014-11-17T18:59:39Z corni joined #lisp 2014-11-17T18:59:39Z corni quit (Changing host) 2014-11-17T18:59:39Z corni joined #lisp 2014-11-17T19:05:24Z Adlai` joined #lisp 2014-11-17T19:05:52Z hiyosi quit (Ping timeout: 240 seconds) 2014-11-17T19:06:01Z Adlai quit (Ping timeout: 250 seconds) 2014-11-17T19:06:07Z fantazo joined #lisp 2014-11-17T19:13:24Z sheilong joined #lisp 2014-11-17T19:14:16Z rhollor joined #lisp 2014-11-17T19:14:22Z Ranis quit (Ping timeout: 255 seconds) 2014-11-17T19:14:29Z gabnet joined #lisp 2014-11-17T19:14:42Z alexey joined #lisp 2014-11-17T19:16:49Z Harag quit (Ping timeout: 272 seconds) 2014-11-17T19:17:24Z zacharias joined #lisp 2014-11-17T19:17:46Z Petit_Dejeuner_ quit (Ping timeout: 258 seconds) 2014-11-17T19:18:24Z LoicLisp joined #lisp 2014-11-17T19:19:18Z innertracks quit (Quit: innertracks) 2014-11-17T19:19:52Z thawes quit (Ping timeout: 245 seconds) 2014-11-17T19:20:28Z thawes joined #lisp 2014-11-17T19:22:24Z rhollor left #lisp 2014-11-17T19:22:26Z bobbysmith007 left #lisp 2014-11-17T19:23:00Z jumblerg joined #lisp 2014-11-17T19:24:02Z ggole quit (Ping timeout: 245 seconds) 2014-11-17T19:25:52Z alexey quit (Remote host closed the connection) 2014-11-17T19:25:54Z pt1 quit (Remote host closed the connection) 2014-11-17T19:26:37Z munksgaard quit (Ping timeout: 240 seconds) 2014-11-17T19:26:46Z bobbysmith007 joined #lisp 2014-11-17T19:26:46Z innertracks joined #lisp 2014-11-17T19:28:36Z lavokad quit (Remote host closed the connection) 2014-11-17T19:29:54Z pt1 joined #lisp 2014-11-17T19:31:26Z khisanth_ joined #lisp 2014-11-17T19:31:44Z Khisanth quit (Ping timeout: 264 seconds) 2014-11-17T19:31:54Z khisanth_ is now known as Guest38330 2014-11-17T19:32:02Z fragamus quit (Quit: My iMac has gone to sleep. ZZZzzz…) 2014-11-17T19:35:23Z Vutral joined #lisp 2014-11-17T19:35:32Z cy is now known as Guest30504 2014-11-17T19:36:09Z lavokad joined #lisp 2014-11-17T19:36:53Z alexey joined #lisp 2014-11-17T19:43:02Z gendl joined #lisp 2014-11-17T19:44:47Z Vutral quit (Ping timeout: 244 seconds) 2014-11-17T19:45:31Z ered quit (Read error: Connection reset by peer) 2014-11-17T19:46:03Z slyrus joined #lisp 2014-11-17T19:47:03Z gabnet quit (Quit: Quitte) 2014-11-17T19:50:06Z Vutral joined #lisp 2014-11-17T19:51:47Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-17T19:55:05Z lavokad: how do I start these few expression without going to slime's buffer and writing? 2014-11-17T19:55:11Z lavokad: (ql:quickload 'qt) 2014-11-17T19:55:12Z lavokad: (in-package :qt) 2014-11-17T19:55:12Z lavokad: (make-qapplication) 2014-11-17T19:55:12Z lavokad: (with-objects ((window (#_new QWidget))) 2014-11-17T19:55:15Z lavokad: (#_show window) 2014-11-17T19:55:18Z lavokad: (#_exec *qapplication*)) 2014-11-17T19:55:21Z lavokad: 2014-11-17T19:55:34Z stassats: don't paste here 2014-11-17T19:55:38Z lavokad: sorry 2014-11-17T19:55:58Z stassats: i don't understand your question 2014-11-17T19:56:14Z lavokad: ok, I asked very pourly 2014-11-17T19:56:47Z stassats: by the way, that whole thing can be replaced with (with-main-window (x (#_new QWidget))) 2014-11-17T19:56:56Z lavokad: if I open x.lisp and write some expression, I evaluate it in mini buffer 2014-11-17T19:57:25Z slyrus_ joined #lisp 2014-11-17T19:58:01Z lavokad: but to start a window, I only achieve it, compliling the .lisp writing in slime 2014-11-17T19:58:28Z stassats: when you evaluate expressions with C-c C-k or C-x C-e in a buffer, they are run in a new thread 2014-11-17T19:58:35Z stassats: Qt wants the GUI to run in a single thread 2014-11-17T19:58:49Z stassats: so, always run your main function from the repl 2014-11-17T19:58:56Z lavokad: thanks 2014-11-17T19:59:17Z slyrus quit (Ping timeout: 264 seconds) 2014-11-17T19:59:19Z slyrus_ is now known as slyrus 2014-11-17T19:59:47Z rhollor joined #lisp 2014-11-17T20:00:07Z pt1 quit (Remote host closed the connection) 2014-11-17T20:03:05Z yeticry quit (Ping timeout: 244 seconds) 2014-11-17T20:05:08Z yeticry joined #lisp 2014-11-17T20:10:09Z tesuji quit (Ping timeout: 264 seconds) 2014-11-17T20:11:53Z slyrus_ joined #lisp 2014-11-17T20:12:32Z slyrus quit (Ping timeout: 256 seconds) 2014-11-17T20:12:58Z slyrus_ is now known as slyrus 2014-11-17T20:14:47Z Adlai` is now known as adlai 2014-11-17T20:16:39Z lxsameer joined #lisp 2014-11-17T20:17:16Z lxsameer: hey guys, I need a web framework for lisp , What framework is the "RubyonRials" of lisp ? 2014-11-17T20:19:02Z Shinmera: There is no such thing. 2014-11-17T20:19:15Z stassats: Lisp on LSD? 2014-11-17T20:20:20Z lxsameer: stassats: thanks, so what is the common web framework of lisp ? 2014-11-17T20:20:30Z stassats: don't thank me 2014-11-17T20:21:07Z stassats: the most common web thing is huchentoot 2014-11-17T20:21:12Z stassats: hunchentoot 2014-11-17T20:21:33Z eschulte joined #lisp 2014-11-17T20:22:03Z josteink quit (Ping timeout: 272 seconds) 2014-11-17T20:22:27Z tadni: lxsameer: The only lisp-like lang I know that has anything equivalent to RoR is Clojure. Maybe ask around in #clojure? 2014-11-17T20:22:49Z tadni: I know of no such thing via CL. 2014-11-17T20:22:53Z Bicyclidine joined #lisp 2014-11-17T20:23:07Z lxsameer: thanks guys 2014-11-17T20:23:12Z josteink joined #lisp 2014-11-17T20:23:38Z stassats: if there were such a thing, Common Lisp on Cobbles could be a name for it 2014-11-17T20:23:44Z eschulte: if by RoR you mean ruby on rails maybe http://8arrow.org/caveman/ <- would work? 2014-11-17T20:23:59Z tadni: stassats: Cobbles? 2014-11-17T20:24:39Z tadni: eschulte: Ah, never heard of that. Around the same line. 2014-11-17T20:24:44Z tadni: lxsameer: ^ 2014-11-17T20:25:11Z lxsameer: thanks 2014-11-17T20:26:06Z gendl: Hi, as anyone seen a CL-based network license manager? 2014-11-17T20:26:25Z lxsameer left #lisp 2014-11-17T20:26:41Z tadni: gendl: That autodesk thing? 2014-11-17T20:27:00Z gendl: is that CL based or autolisp based? 2014-11-17T20:27:22Z tadni: gendl: I'd suspect, if it uses any Lisp, it would be autolisp. 2014-11-17T20:27:44Z tadni: That being said, I think autolisp is more used for configuration not really core bits of the software itself. 2014-11-17T20:27:53Z tadni: Could be COMPLETLY wrong though. 2014-11-17T20:28:38Z gendl: yeah, i’m wondering about a simple CL based license manager, something which itself is probably node-locked to a MAC address, and counts active sessions of software on a network, probably with a simple http protocol with some light encryption. 2014-11-17T20:28:42Z eschulte: If I link a static library with sbcl could I then access functions defined in that library with sb-alien? (I'd prefer to use CFFI, but it might not be possible to compile a shared version of this library) 2014-11-17T20:29:12Z Xach: gendl: i know gensym had some kind of license manager, but i think it was board- or dongle-based 2014-11-17T20:29:20Z gendl: counting licenses sort of goes against the open-source mentality, so I kind of doubt I would find such a thing in Quicklisp ;) 2014-11-17T20:29:21Z stassats: eschulte: you have to make sure they are not elided 2014-11-17T20:29:35Z stassats: and cffi is sb-alien 2014-11-17T20:29:43Z stassats: (without types_ 2014-11-17T20:29:44Z stassats: ) 2014-11-17T20:29:49Z eschulte: elided because they aren't used at link time? 2014-11-17T20:29:53Z gendl: it seems seductively “easy” to try to write such a thing myself, and I’m tempted… but of course don’t want to reinvent any wheels which don’t need reinventing 2014-11-17T20:29:55Z tadni: gendl: Oh, sorry. I'm REALLY out of it. 2014-11-17T20:29:56Z stassats: yes 2014-11-17T20:30:02Z fantazo quit (Quit: Verlassend) 2014-11-17T20:30:02Z tadni: Probably 20 minutes from a nap. 2014-11-17T20:30:43Z tadni: I'm assuming something like LispWorks have one, no? 2014-11-17T20:30:52Z eschulte: stassats: thanks, good to know that it should be possible if I have to go that route 2014-11-17T20:31:02Z gendl: Any library I would buy for the purpose would almost certainly be C-based (like LM-X), so it would require integration effort - 2014-11-17T20:31:16Z gendl: I would rather spend that effort (and same some bank) by just doing something nice and simple natively in Lisp 2014-11-17T20:31:28Z gendl: same -> save 2014-11-17T20:31:38Z munksgaard joined #lisp 2014-11-17T20:31:44Z gendl: LispWorks just has local licenses, as far as I’ve seen 2014-11-17T20:31:54Z gendl: local activation key, not a floating network-based license manager 2014-11-17T20:32:31Z tadni: gendl: Then I would have no idea if there is any example implementation floating around then. :^P 2014-11-17T20:32:57Z tadni writes a licensing conformation system for Emacs. 2014-11-17T20:37:51Z ioanna: hey all, i'm a newbie with a silly question, could anyone tell me how "true" is defined in common-lisp? as opposed to "nil" which is defined as the empty list i mean. everywhere i search it says it can be seen as a primitive, but i really want to know how it is defined. 2014-11-17T20:38:12Z gendl: “true” is anything other than nil. 2014-11-17T20:38:16Z ioanna: by "true" i mean "T" 2014-11-17T20:38:26Z gendl: anything which is not nil (or the empty list) is considered “true” for logical purposes. 2014-11-17T20:38:32Z stassats: t is a constant variable, it's bound to the symbol t 2014-11-17T20:38:39Z stassats: there's nothing special about it 2014-11-17T20:38:41Z alexey quit (Remote host closed the connection) 2014-11-17T20:38:50Z ioanna: so just (not nil) then 2014-11-17T20:39:22Z madmalik joined #lisp 2014-11-17T20:39:44Z stassats: that will return T 2014-11-17T20:39:54Z pt1 joined #lisp 2014-11-17T20:41:17Z Lefeni quit (Ping timeout: 240 seconds) 2014-11-17T20:42:00Z josteink quit (Ping timeout: 256 seconds) 2014-11-17T20:43:11Z ioanna: i'll just go read up some more theory, i think there's something i'm not understanding very well, thanks :) 2014-11-17T20:43:41Z stassats: you shouldn't, there's nothing profound about T 2014-11-17T20:43:43Z josteink joined #lisp 2014-11-17T20:43:52Z ioanna: i don't expect there to be :) 2014-11-17T20:44:08Z stassats: and you don't need to know, unless you're trying to implement it 2014-11-17T20:44:19Z stassats: and if you need to implement it, then you're doing something wrong 2014-11-17T20:44:45Z ioanna: haha, well, sometimes i like to know things just because i'm curious, nothing to implement here 2014-11-17T20:44:49Z ioanna: :) 2014-11-17T20:45:25Z stassats: and i'm surprised that you think T is interesting, NIL is far more complicated 2014-11-17T20:45:42Z manuel__ quit (Quit: manuel__) 2014-11-17T20:45:59Z eschulte: ioanna: I think stassats first response should answer your question. I read his answer as simply (defconstant t 't). 2014-11-17T20:46:20Z dlowe: for a good time in sbcl, check out the error on (set t nil) and (set nil t) 2014-11-17T20:46:44Z stassats: was there a bug about bad latin? 2014-11-17T20:46:44Z ioanna: statssats, i don't think T is either interesting or uninteresting, yes i did have trouble with nil last week.. 2014-11-17T20:46:51Z nyef: stassats: Yes. Yes, there was. 2014-11-17T20:47:01Z dlowe: yeah, the set nil case is bad. 2014-11-17T20:47:03Z JuanDaugherty quit (Remote host closed the connection) 2014-11-17T20:47:14Z ioanna: eschulte: thanks 2014-11-17T20:47:21Z slyrus quit (Ping timeout: 264 seconds) 2014-11-17T20:47:21Z stassats: lp 504819 2014-11-17T20:47:21Z specbot: https://bugs.launchpad.net/bugs/504819 2014-11-17T20:47:27Z dlowe: it should be nihil ex nihilo 2014-11-17T20:47:37Z nyef: Which leads, of course, to the question "ancient latin, not-so-ancient latin, ecclesiastical latin, or legal latin?" 2014-11-17T20:47:55Z dlowe: "Nothing comes from nothing (Latin: ex nihilo nihil fit) is a philosophical expression of a thesis first argued by Parmenides." 2014-11-17T20:48:24Z stassats: nyef: pig latin 2014-11-17T20:48:25Z ioanna: dlowe that was funny thanks :) now i proved the consistency of my logic, i can go to sleep :P 2014-11-17T20:49:15Z nyef: stassats: And "easy latin", also known as "italian". 2014-11-17T20:49:38Z nyef: And there's probably a "late latin" as well. 2014-11-17T20:50:09Z stassats: it's in latin1 2014-11-17T20:50:12Z hiyosi joined #lisp 2014-11-17T20:50:23Z stassats: that i'm sure of 2014-11-17T20:51:31Z sheilong quit (Quit: Konversation terminated!) 2014-11-17T20:52:21Z nyef: Why would you even need that much? Surely ASCII is more than sufficient? 2014-11-17T20:53:02Z rhollor quit (Quit: rhollor) 2014-11-17T20:54:15Z nyef: (Good old ASCII, from ^@ to ^?, or from NUL to DEL.) 2014-11-17T20:54:52Z hiyosi quit (Ping timeout: 240 seconds) 2014-11-17T20:55:09Z jumblerg joined #lisp 2014-11-17T20:55:29Z manuel_ joined #lisp 2014-11-17T20:56:10Z rhollor joined #lisp 2014-11-17T20:57:38Z manuel_ quit (Client Quit) 2014-11-17T20:58:59Z ioanna left #lisp 2014-11-17T21:01:10Z MrWoohoo quit (Quit: ["Textual IRC Client: www.textualapp.com"]) 2014-11-17T21:01:24Z manuel_ joined #lisp 2014-11-17T21:01:45Z fragamus joined #lisp 2014-11-17T21:03:25Z manuel_ quit (Client Quit) 2014-11-17T21:04:17Z rhollor: Does any one know if there is a way to run a bash command from sbcl? 2014-11-17T21:04:49Z Xach: rhollor: yes. (sb-ext:run-program "bash" (list "-c" ) :search t) 2014-11-17T21:04:58Z Xach: err, not quite that. 2014-11-17T21:05:06Z MrWoohoo joined #lisp 2014-11-17T21:05:08Z Xach: should be the command-line string. there are other options too. 2014-11-17T21:06:10Z Guest38330 quit (Quit: Leaving) 2014-11-17T21:06:26Z Khisanth joined #lisp 2014-11-17T21:07:32Z rhollor: Xach: thanks, I needed p to run a program in Land of Lisp, but they used (ext:shell) because he uses clisp or something 2014-11-17T21:10:11Z rak[1]: rhollor: ^Land of Lisp expects Clisp 2014-11-17T21:10:50Z Xach: rhollor: sb-ext:run-program is the thing to use on sbcl, or you can use a portability layer 2014-11-17T21:11:22Z rak[1]: Xach: what package is used for portable externally running a programming? 2014-11-17T21:11:32Z rak[1]: assuming a *nix system underneath of course 2014-11-17T21:11:56Z gravicappa quit (Remote host closed the connection) 2014-11-17T21:12:02Z Shinmera: uiop 2014-11-17T21:12:18Z Shinmera: as in, uiop:run-program 2014-11-17T21:12:26Z rak[1]: Shinmera: thanks. 2014-11-17T21:14:25Z pt1 quit (Remote host closed the connection) 2014-11-17T21:15:08Z zygentoma joined #lisp 2014-11-17T21:17:14Z eschulte quit (Quit: leaving) 2014-11-17T21:17:29Z Subfusc quit (Ping timeout: 260 seconds) 2014-11-17T21:18:02Z StevePerkins joined #lisp 2014-11-17T21:18:05Z StevePerkins left #lisp 2014-11-17T21:18:11Z adlai quit (Ping timeout: 250 seconds) 2014-11-17T21:18:15Z fantazo joined #lisp 2014-11-17T21:20:48Z maxdev joined #lisp 2014-11-17T21:21:00Z Petit_Dejeuner joined #lisp 2014-11-17T21:21:01Z maxdev left #lisp 2014-11-17T21:24:43Z adlai joined #lisp 2014-11-17T21:26:52Z slyrus joined #lisp 2014-11-17T21:26:54Z slyrus quit (Remote host closed the connection) 2014-11-17T21:26:57Z oleo quit (Read error: Connection reset by peer) 2014-11-17T21:29:37Z reb quit (Remote host closed the connection) 2014-11-17T21:31:25Z pt1 joined #lisp 2014-11-17T21:31:47Z pt1 quit (Remote host closed the connection) 2014-11-17T21:33:59Z Vutral quit (Excess Flood) 2014-11-17T21:35:37Z Vutral joined #lisp 2014-11-17T21:38:36Z pecg quit (Quit: WeeChat 1.0.1) 2014-11-17T21:38:54Z nha_ joined #lisp 2014-11-17T21:38:57Z pecg joined #lisp 2014-11-17T21:38:57Z pecg quit (Changing host) 2014-11-17T21:38:57Z pecg joined #lisp 2014-11-17T21:39:39Z rhollor: I just learned the loop command. How do you remember all those keywords! 2014-11-17T21:39:42Z oleo joined #lisp 2014-11-17T21:39:55Z Shinmera: Repeated use over time. 2014-11-17T21:40:45Z Bicyclidine: look em up online 2014-11-17T21:41:36Z Xach: use a subset 2014-11-17T21:42:13Z reb joined #lisp 2014-11-17T21:44:03Z Baggers joined #lisp 2014-11-17T21:44:47Z rhollor: whatever happend to the good old for/while loops? they seem simple enough 2014-11-17T21:44:52Z rhollor quit (Quit: rhollor) 2014-11-17T21:44:53Z dlowe: the only one you really need is (loop while x do y) 2014-11-17T21:45:26Z dlowe: (don't show him the DO form) 2014-11-17T21:45:41Z Shinmera: He quit, so talk about do all you like. 2014-11-17T21:46:15Z dlowe: heh. 2014-11-17T21:47:07Z Vutral quit (Excess Flood) 2014-11-17T21:47:45Z resttime joined #lisp 2014-11-17T21:48:32Z hiyosi joined #lisp 2014-11-17T21:48:50Z manuel_ joined #lisp 2014-11-17T21:49:55Z manuel_ quit (Client Quit) 2014-11-17T21:52:04Z octophore quit (Quit: Bye) 2014-11-17T21:53:02Z ahungry quit (Quit: leaving) 2014-11-17T21:53:47Z rhollor joined #lisp 2014-11-17T21:54:28Z pjb: rhollor: the only one you really need is (loop while x do y) 2014-11-17T21:55:30Z pjb: rhollor: so, what do you say of that? 2014-11-17T21:55:33Z rhollor: pjb: true enough 2014-11-17T21:56:17Z ndrei quit (Ping timeout: 264 seconds) 2014-11-17T22:01:52Z ioanna joined #lisp 2014-11-17T22:01:54Z Bicyclidine quit (Ping timeout: 265 seconds) 2014-11-17T22:03:29Z LoicLisp quit (Remote host closed the connection) 2014-11-17T22:04:01Z rvchangue quit (Ping timeout: 272 seconds) 2014-11-17T22:05:43Z rvchangue joined #lisp 2014-11-17T22:06:02Z Vivitron: rhollor: DO is similar to a for loop, but imo tends to be harder to read than an equivalent LOOP 2014-11-17T22:06:49Z Shinmera: You can just write your own FOR macro. 2014-11-17T22:07:37Z hiroakip joined #lisp 2014-11-17T22:08:48Z mhd_ joined #lisp 2014-11-17T22:09:19Z cosmicexplorer quit (Ping timeout: 250 seconds) 2014-11-17T22:09:32Z rhollor: Shinmera: I just might, as a project 2014-11-17T22:09:54Z cosmicexplorer joined #lisp 2014-11-17T22:12:55Z Bicyclidine joined #lisp 2014-11-17T22:14:33Z EvW1 joined #lisp 2014-11-17T22:14:39Z rhollor: Shinmera: or maybe not a project, I don't how difficult it is to write a macro yet because learned how yet 2014-11-17T22:14:57Z EvW quit (Ping timeout: 265 seconds) 2014-11-17T22:15:17Z Shinmera: I'd say it's a good, small challenge to study/learn macros by once you get there. 2014-11-17T22:15:42Z jumblerg quit (Quit: My Mac has gone to sleep. ZZZzzz…) 2014-11-17T22:17:43Z TomRS joined #lisp 2014-11-17T22:18:18Z rhollor: is there any purely functional programming languages? I mean languages that don't do any side effects at all. is something like that even practical? It has to at least write to something, right? 2014-11-17T22:18:23Z pnpuff joined #lisp 2014-11-17T22:20:38Z Karl_Dscc joined #lisp 2014-11-17T22:21:07Z Bicyclidine: lambda calculus, haskell, being off topic 2014-11-17T22:21:11Z wow4 joined #lisp 2014-11-17T22:23:12Z wow4: In lisp implementations (parsing) how remove comments?....what if var has ; in name?!?! 2014-11-17T22:23:24Z rhollor: wouldn't a programming language writing to standard output kind of break the barrier though? 2014-11-17T22:23:25Z Subfusc joined #lisp 2014-11-17T22:23:27Z wow4: se 2014-11-17T22:23:37Z stassats: wow4: lisp implementations do not parse lisp 2014-11-17T22:23:39Z EvW1 quit (Ping timeout: 265 seconds) 2014-11-17T22:23:41Z wow4: e pro lem? 2014-11-17T22:24:04Z hitecnologys quit (Ping timeout: 258 seconds) 2014-11-17T22:25:40Z hitecnologys joined #lisp 2014-11-17T22:25:45Z mrSpec quit (Quit: mrSpec) 2014-11-17T22:26:26Z wow4: if you wanted to remove comments how do so? 2014-11-17T22:26:38Z attila_lendvai joined #lisp 2014-11-17T22:26:38Z attila_lendvai quit (Changing host) 2014-11-17T22:26:38Z attila_lendvai joined #lisp 2014-11-17T22:26:45Z wow4 is now known as theseb 2014-11-17T22:26:59Z stassats: in general, you can't do that 2014-11-17T22:28:17Z theseb: what if not limited to lisp? 2014-11-17T22:29:13Z stassats: as usual, i do not understand your form of communication 2014-11-17T22:30:11Z k-stz quit (Remote host closed the connection) 2014-11-17T22:30:38Z pnpuff left #lisp 2014-11-17T22:33:00Z mhd_ quit (Remote host closed the connection) 2014-11-17T22:33:54Z Vutral joined #lisp 2014-11-17T22:34:09Z przl quit (Ping timeout: 264 seconds) 2014-11-17T22:35:52Z pecg quit (Quit: WeeChat 1.0.1) 2014-11-17T22:37:57Z stassats quit (Ping timeout: 240 seconds) 2014-11-17T22:39:13Z clop3 quit (Quit: Leaving) 2014-11-17T22:39:17Z theseb: stassats: if you were implementing lisp... removing comments in a preprocessing step is trickier than it may seem 2014-11-17T22:39:45Z lommm joined #lisp 2014-11-17T22:43:29Z resttime: does anyone have a problem loading the latest CFFI repo from git? 2014-11-17T22:43:47Z resttime: with SBCL 2014-11-17T22:44:11Z resttime: seems to complain for somebody else and me 2014-11-17T22:44:20Z resttime: durin compile time 2014-11-17T22:44:23Z BitPuffin quit (Ping timeout: 258 seconds) 2014-11-17T22:44:56Z Xach: resttime: I think I saw that issue as well. I usually use the release, not git head. 2014-11-17T22:45:48Z resttime: Xach, I think I have solution in that case https://github.com/cffi/cffi/issues/50 2014-11-17T22:46:52Z rhollor quit (Quit: rhollor) 2014-11-17T22:47:01Z mhd_ joined #lisp 2014-11-17T22:48:05Z pnpuff joined #lisp 2014-11-17T22:49:22Z Joreji quit (Ping timeout: 240 seconds) 2014-11-17T22:51:34Z tessier quit (Read error: Connection reset by peer) 2014-11-17T22:52:16Z Baggers: Any Oslo based lispers hiding out here? 2014-11-17T22:52:27Z innertracks quit (Remote host closed the connection) 2014-11-17T22:52:30Z tessier joined #lisp 2014-11-17T22:53:05Z thawes quit (Remote host closed the connection) 2014-11-17T22:53:40Z jasom: theseb: removing comments in a preprocessing step would be disallowed, as someone could modify the readtable at runtime 2014-11-17T22:54:05Z jasom: s/runtime/readtime 2014-11-17T22:55:01Z usrj joined #lisp 2014-11-17T22:56:07Z rvchangue quit (Ping timeout: 245 seconds) 2014-11-17T22:56:39Z jasom: theseb: in any event, clhs chapter 2 has a complete description of how lisp is parsed 2014-11-17T22:57:19Z rvchangue joined #lisp 2014-11-17T22:58:04Z jasom: theseb: note that if a symbol-name contains a semicolon, it will need to be escaped for the reader to parse it as part of the symbol 2014-11-17T22:58:56Z innertracks joined #lisp 2014-11-17T22:59:14Z pillton: jasom: Thanks for posting the issue on GitHub. I'll take a look sometime this week. 2014-11-17T22:59:19Z LiamH quit (Quit: Leaving.) 2014-11-17T22:59:24Z jasom: theseb: e.g. "foo;bar\n" is the symbol named "foo" followed by a comment and "foo\;bar" or "|foo;bar|" is the symbol named "foo;bar" 2014-11-17T22:59:41Z jasom: pillton: no problem; did I tell you I got "woo" working with basic-binary-ipc instead of cl-async? 2014-11-17T23:00:05Z pillton: jasom: No. What is "woo"? 2014-11-17T23:00:13Z jtza8 quit (Remote host closed the connection) 2014-11-17T23:00:18Z jasom: https://github.com/fukamachi/woo 2014-11-17T23:00:19Z zxq9 quit (Quit: Konversation terminated!) 2014-11-17T23:00:23Z corni quit (Ping timeout: 265 seconds) 2014-11-17T23:00:25Z przl joined #lisp 2014-11-17T23:00:28Z wheelsucker quit (Quit: Client Quit) 2014-11-17T23:00:43Z pillton: Ah cool! 2014-11-17T23:01:15Z Bicyclidine quit (Ping timeout: 255 seconds) 2014-11-17T23:01:25Z jasom: pillton: it benchmarks at about 97% the req/s of woo with cl-async, but I had to write a server-loop (since cl-async already has one) and I haven't optimized that much yet. 2014-11-17T23:02:42Z pillton: Nice. 2014-11-17T23:02:53Z jasom: I haven't tried on windows yet 2014-11-17T23:03:08Z pillton: Oh windows. There is a bug in CFFI that prevents it from working at the moment. 2014-11-17T23:03:21Z jasom: doh! 2014-11-17T23:03:22Z pillton: I've been meaning to report that for a while now. 2014-11-17T23:03:44Z jasom: after all that lovely work with overlapped i/o too 2014-11-17T23:03:52Z pillton: The groveller doesn't handle unsigned int as a :base-type correctly. 2014-11-17T23:04:06Z pillton: The patch is easy. 2014-11-17T23:04:40Z Shinmera quit (Quit: しつれいしなければならないんです。) 2014-11-17T23:04:51Z pillton: I started looking in to implementing RUN-PROGRAM and lisp streams. 2014-11-17T23:04:54Z jasom: I also have only benchmarked with the standard poll interface; on a benchmark that ought-not matter much though since all sockets will be active no gain is to be had from epoll 2014-11-17T23:05:10Z pnpuff quit (Ping timeout: 256 seconds) 2014-11-17T23:05:22Z przl quit (Ping timeout: 256 seconds) 2014-11-17T23:05:55Z jasom: and it was the woo benchmark that uncovered the EPOLL issue too 2014-11-17T23:06:26Z pillton: Thanks again. It is much appreciated. The documentation on POLLERR is vague. 2014-11-17T23:06:49Z jasom: pillton: I found a few referrences for a RST causing it on linux 2014-11-17T23:07:34Z jasom: the docs are indeed vague; it basically just means "something went wrong" and it could be as bad as "this fd doesn't support poll" or as benign as "the TCP state machine for this fd isn't in a state where we can complete the poll operation" 2014-11-17T23:08:09Z pillton: There is no way to get a message about why POLLERR is being signalled? 2014-11-17T23:08:23Z mhd_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) 2014-11-17T23:08:26Z Bicyclidine joined #lisp 2014-11-17T23:08:30Z robot-beethoven joined #lisp 2014-11-17T23:09:05Z farhaven quit (Ping timeout: 265 seconds) 2014-11-17T23:09:13Z jasom: pillton: not that I could find 2014-11-17T23:10:41Z farhaven joined #lisp 2014-11-17T23:11:51Z jasom: pillton: it might be best to just propogate the values up to the application 2014-11-17T23:12:27Z jasom: just like data-available-p &ct 2014-11-17T23:13:32Z lavokad quit (Ping timeout: 250 seconds) 2014-11-17T23:13:43Z jasom: though I suppose you have the opportunity to be smarter, since you happen to already know what kind of socket it is 2014-11-17T23:13:46Z jasom: (TCP, UNIX) 2014-11-17T23:14:33Z jasom: getsockopt can return information in that case, IIRC 2014-11-17T23:16:29Z adlai quit (Ping timeout: 250 seconds) 2014-11-17T23:16:32Z munksgaard quit (Ping timeout: 245 seconds) 2014-11-17T23:16:47Z munksgaard joined #lisp 2014-11-17T23:16:53Z pillton: I'll see what happens when I remove the POLLERR symbol from the DEFINE-POLL-FD-EVENT forms. If that works, I'll add another socket state symbol e.g. EXCEPTIONAL-CONDITION-P. 2014-11-17T23:17:55Z cyphase_ joined #lisp 2014-11-17T23:18:13Z zygentoma quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) 2014-11-17T23:18:20Z manuel_ joined #lisp 2014-11-17T23:18:41Z stassats joined #lisp 2014-11-17T23:18:55Z pillton: Anyway, this is my last day of work before I'm on holidays. I'll investigate the issue later in the week. 2014-11-17T23:19:15Z ioanna left #lisp 2014-11-17T23:20:20Z vputin joined #lisp 2014-11-17T23:23:53Z vputin left #lisp 2014-11-17T23:25:45Z hiroakip quit (Ping timeout: 264 seconds) 2014-11-17T23:25:53Z rus` joined #lisp 2014-11-17T23:26:08Z pavelpenev quit (Ping timeout: 256 seconds) 2014-11-17T23:26:57Z Bicyclidine quit (Ping timeout: 240 seconds) 2014-11-17T23:28:03Z pjb: jasom: notice that foo;bar is read as the symbol named "FOO;BAR". Try it if you don't believe me (copy and paste it in a REPL, prefixed with a '). 2014-11-17T23:28:17Z jasom: pjb: bah, forgot that it was non-terminating 2014-11-17T23:28:26Z pjb: jasom: nope, you didn't forgot. 2014-11-17T23:28:31Z pjb: foo;bar would read as you said. 2014-11-17T23:28:37Z jasom: it is terminating 2014-11-17T23:28:57Z Bicyclidine joined #lisp 2014-11-17T23:29:24Z jasom: (read-from-string "foo;bar") => FOO ; 3 2014-11-17T23:29:30Z pjb: (not (eq 'foo;bar \n 'foo;bar)) --> T 2014-11-17T23:29:54Z pjb: (read-from-string "foo;bar") -> foo;bar ; 7 2014-11-17T23:30:02Z pjb: try it, copy and paste this read-from-string form. 2014-11-17T23:31:05Z drmeister: Is it acceptable to define a class that inherits from an undefined class? In this case it appears that one-successors-mixin has not been defined when short-float-add-instruction is defined: (defclass short-float-add-instruction (instruction one-successors-mixin) ... ) 2014-11-17T23:31:11Z jasom: pjb: greek_question_mark 2014-11-17T23:31:15Z pjb: drmeister: yes. 2014-11-17T23:31:18Z pjb: jasom: yes. 2014-11-17T23:31:26Z jasom: (map 'list #'char-name "foo;bar") => ("LATIN_SMALL_LETTER_F" "LATIN_SMALL_LETTER_O" "LATIN_SMALL_LETTER_O" "GREEK_QUESTION_MARK" "LATIN_SMALL_LETTER_B" "LATIN_SMALL_LETTER_A" "LATIN_SMALL_LETTER_R") 2014-11-17T23:31:40Z Bicyclidine: drmeister: yeah, it's a forward-defined-class, or something along those lines 2014-11-17T23:31:40Z stassats: drmeister: it'll be forward referenced, naturally you can't finalize or instantiate it 2014-11-17T23:31:42Z pjb: unicode is funny :-) 2014-11-17T23:31:55Z theseb quit (Ping timeout: 246 seconds) 2014-11-17T23:32:39Z pjb: jasom: (not (eq 'bаr 'bar)) -> T 2014-11-17T23:32:43Z jasom: pjb: now I want to find a unicode enabled C and write an entire program with only that character used in identifiers 2014-11-17T23:33:00Z manuel_ quit (Quit: manuel_) 2014-11-17T23:33:15Z drmeister: Ok, I'll have to see why my(ECL) CLOS throws an error - maybe I broke something in the months that it took me to get CLOS to work. 2014-11-17T23:33:15Z rus` quit (Ping timeout: 265 seconds) 2014-11-17T23:33:57Z pjb: jasom: https://gcc.gnu.org/onlinedocs/cpp/Character-sets.html 2014-11-17T23:33:59Z jasom: ;=2;;;=2*;; 2014-11-17T23:34:31Z pjb: http://llvm.org/releases/3.3/tools/clang/docs/ReleaseNotes.html 2014-11-17T23:34:37Z pjb: both support it. 2014-11-17T23:35:05Z pjb: jasom: it's more pernicious to just substitute one character per file :-) 2014-11-17T23:35:22Z pjb: (and push it to git :-)) 2014-11-17T23:36:07Z jasom: pjb: need to make a comment change on the same line so that nobody notices with line-based diffs 2014-11-17T23:36:19Z jasom: or include it with a "reindent whole file" commit 2014-11-17T23:36:22Z pjb: Yes. 2014-11-17T23:36:24Z pjb: :-) 2014-11-17T23:36:30Z pjb: Let's write a script. 2014-11-17T23:36:40Z pjb: (in clisp to stay on topic). 2014-11-17T23:42:07Z cods quit (Ping timeout: 255 seconds) 2014-11-17T23:45:06Z przl joined #lisp 2014-11-17T23:45:28Z defaultxr joined #lisp 2014-11-17T23:45:33Z madmalik quit (Quit: Connection closed for inactivity) 2014-11-17T23:45:35Z xrash quit (Remote host closed the connection) 2014-11-17T23:46:10Z Vutral quit (Ping timeout: 256 seconds) 2014-11-17T23:46:19Z meiji11 joined #lisp 2014-11-17T23:49:03Z cods joined #lisp 2014-11-17T23:49:57Z przl quit (Ping timeout: 240 seconds) 2014-11-17T23:50:32Z Ethan- joined #lisp 2014-11-17T23:55:54Z Vutral joined #lisp 2014-11-17T23:56:26Z edgar-rft quit (Quit: no meaningful message available) 2014-11-17T23:56:53Z chu joined #lisp 2014-11-17T23:57:44Z fragamus quit (Quit: My iMac has gone to sleep. ZZZzzz…)