Re: [Ecls-list] (require 'sockets) doesn't work
On Sun, 15 Jan 2012 14:49:04 +0800 Stas Boukarev stass...@gmail.com wrote: Juan Jose Garcia-Ripoll juanjose.garciarip...@googlemail.com writes: What configuration and version (see first lines of ECL's prompt) are you using? That was the latest git revision at the moment, with --enable-threads and --enable-unicode. I use the latest git ECL on NetBSD/i686 with --enable-threads and --enable-unicode yet I cannot reproduce the problem either -- Matt -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Ecls-list mailing list Ecls-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ecls-list
Re: [Ecls-list] Hang opening named pipe?
Hmm, I do not know much about pipes. Inspecting a running ECL, I see that it does not hang in ECL, but in the C library: in open() Attaching to program: `/Users/jjgarcia/bin/ecl', process 49213. Reading symbols for shared libraries ++.. done 0x7fff86e3543e in open () (gdb) info threads 2 0x7fff86e8c99e in __sigwait () * 1 com.apple.main-thread 0x7fff86e3543e in open () (gdb) bt #0 0x7fff86e3543e in open () #1 0x0001000f71d4 in ecl_open_stream (fn=0x10311bf30, smm=smm_output, if_exists=0x1002167c8, if_does_not_exist=0x100216e90, byte_size=0, flags=256, external_format=0x100216b80) at file.d:4804 Do you have any idea why this might happen? ECL is resolving the fifo name to a full path, btw. I do not know whether this might cause part of the problem. I've had strace running on ECL, and got this: cl-user (open /tmp/a :direction :output :if-exists :overwrite) open(/tmp/a, O_RDONLY So apparently even with :direction :output the filename gets opened for read (perhaps to see whether it already exists?) - and this hangs, as open() on a FIFO blocks until there's a reader and a writer. (Yes, I've had a reader waiting.) Anyway, IMO the file must be opened only _once_ - with appropriate O_ flags. I think the various :if-exists flags can all be done via these flags. Not only FIFOs, unix sockets and devices might give problems for occasional opens. (Think about eg. opening the watchdog device, where you have to send a specific token before closing - else the machine just reboots!) Regards, Phil -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Ecls-list mailing list Ecls-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ecls-list
Re: [Ecls-list] (require 'sockets) doesn't work
I also need the operating system version. Could you also try with ecl -norc, just to make sure? On Sun, Jan 15, 2012 at 7:49 AM, Stas Boukarev stass...@gmail.com wrote: Juan Jose Garcia-Ripoll juanjose.garciarip...@googlemail.com writes: What configuration and version (see first lines of ECL's prompt) are you using? That was the latest git revision at the moment, with --enable-threads and --enable-unicode. -- With best regards, Stas. -- Instituto de Física Fundamental, CSIC c/ Serrano, 113b, Madrid 28006 (Spain) http://juanjose.garciaripoll.googlepages.com -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2___ Ecls-list mailing list Ecls-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ecls-list
Re: [Ecls-list] Hang opening named pipe?
On Sun, Jan 15, 2012 at 9:28 AM, Philipp Marek phil...@marek.priv.atwrote: I've had strace running on ECL, and got this: cl-user (open /tmp/a :direction :output :if-exists :overwrite) open(/tmp/a, O_RDONLY I see. I did not notice the line where gdb stopped. It seems this is legacy code that avoids using probe-file, but, of course, breaks with a pipe, which is not a file. Juanjo -- Instituto de Física Fundamental, CSIC c/ Serrano, 113b, Madrid 28006 (Spain) http://juanjose.garciaripoll.googlepages.com -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2___ Ecls-list mailing list Ecls-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ecls-list
Re: [Ecls-list] how to prevent ECL entering debugger when C compiler fails?
2012/1/12 Anton Vodonosov avodono...@yandex.ru Take into account, that right after ECL startup, compiler:*compiler-break-enable* is NIL: So I suppose something sets it to T during compile-file. I stand corrected. There is a function, FIX-READ-ONLY-VARIABLE-TYPE that contained a debug statement setting compiler-break-enable to T. Apart from that, I cannot see any other places where it might have been set. I will upload a fix. Juanjo -- Instituto de Física Fundamental, CSIC c/ Serrano, 113b, Madrid 28006 (Spain) http://juanjose.garciaripoll.googlepages.com -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2___ Ecls-list mailing list Ecls-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ecls-list
Re: [Ecls-list] slime
Hi Juanjo, it is the package named swank. It downloads all slime files. Or, to install and configure SLIME in one step, you can use: (ql:quickload quicklisp-slime-helper) Alessandro On Sun, Jan 15, 2012 at 12:55 AM, Juan Jose Garcia-Ripoll juanjose.garciarip...@googlemail.com wrote: Thanks for reporting this problem, Alessandro. I will look into it. BTW, how does one use the slime from quicklisp? I have always relied on the CVS version, but it would be nice to be able to test the one in this distribution as well. Juanjo -- Instituto de Física Fundamental, CSIC c/ Serrano, 113b, Madrid 28006 (Spain) http://juanjose.garciaripoll.googlepages.com -- The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words. How To Build A Universe That Doesn't Fall Apart Two Days Later Philip K. Dick -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Ecls-list mailing list Ecls-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ecls-list
[Ecls-list] bug loading a compiled file containing unicode characters
Hi all, When I try to load the following compiled file: -- (defvar a Медвед) -- I obtein the following error condition: Unexpected end of file on #string-input stream from commo [Condition of type end-of-file] I met this error trying to compile the examples of gtk-cffi. Best Regards, Alessandro -- The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words. How To Build A Universe That Doesn't Fall Apart Two Days Later Philip K. Dick -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Ecls-list mailing list Ecls-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ecls-list
Re: [Ecls-list] regression involving macro expansion, GETHASH, SETF, and HASH-SET
On Sun, Jan 1, 2012 at 1:14 PM, Juan Jose Garcia-Ripoll juanjose.garciarip...@googlemail.com wrote: On Sun, Jan 1, 2012 at 7:34 PM, Gabriel Dos Reis g...@cs.tamu.edu wrote: A fresh update of my local copy of ECL CVS version shows a regression involving macro expansion, GETHASH, SETF and HASH-SET. In short, after expansion, the arguments to HASH-SET seems to be switched. Thanks for reporting. The problem is not actually related to the hash functions. ECL now includes a tiny SETF form optimizer that simplifies some expressions, trying to reduce the number of LET bindings that are generated. Your macro reordered the list of arguments w.r.t the list produced by the get-setf-expansion and this confused the optimizer. I will upload a patch tonight. Juanjo Hi Juanjo, did you get a chance to commit the patch? It appears I may have missed it. -- Gaby -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 ___ Ecls-list mailing list Ecls-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ecls-list
Re: [Ecls-list] regression involving macro expansion, GETHASH, SETF, and HASH-SET
On Sun, Jan 15, 2012 at 8:46 PM, Gabriel Dos Reis g...@integrable-solutions.net wrote: Hi Juanjo, did you get a chance to commit the patch? It appears I may have missed it. Yes, indeed, it is in git/CVS HEAD. I just checked with tonight's build and I also verified that the sources in my laptop match those in Sourceforge. Juanjo -- Instituto de Física Fundamental, CSIC c/ Serrano, 113b, Madrid 28006 (Spain) http://juanjose.garciaripoll.googlepages.com -- RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2___ Ecls-list mailing list Ecls-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ecls-list