cm | 26 May 04:58
Picon

Hi Juanjo,Chinese words work in windows console now!

Hi Juanjo,I update to new version Ecl. The Chinese words work in windows console now. Thank for your help.
But if I  write the code into a lisp file and use load command in repl. it report error:

> (load "code/hello.lisp")
;;; Loading "D:/ecl/code/hello.lisp"

Condition of type: STREAM-DECODING-ERROR
decoding error on stream #<input stream #P"D:/ecl/code/hello.lisp"> (:EXTERNAL-F
ORMAT (:UTF-8 :LF)): the octet sequence (255) cannot be decoded.
Available restarts:

1. (CONTINUE) Read next character
2. (USE-VALUE) Replace the bogus sequence with a character
3. (RESTART-TOPLEVEL) Go back to Top-Level REPL.

Broken at SI:BYTECODES. [Evaluation of: (LOAD "code/hello.lisp")] In: #<process
TOP-LEVEL>.

I export the file as utf-8 or utf-16, it's all failed.

C.M.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list
red plait | 25 May 18:02
Picon

cannot build ecl 12.5.1 on windows xp 64

I used visual studio 2008
It seems that both 32 and 64bit versions fails with assertion in
function ecl_stream_to_handle where s->stream.mode == 0x11
(sww_io_wcon)
Full stack traces: http://redplait.blogspot.com/2012/05/ecl-1251-on-xp64.html

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
cm | 23 May 07:10
Picon

how to get the line number of code from error message!

I write a hello.lisp file like this:
(print "hi")
(length '(a . b 1))

and I load it in to ecl:
> (load "code/hello.lisp")

;;; Loading "D:/ECL/code/hello.lisp"

"hi"
Condition of type: SIMPLE-READER-ERROR
Reader error in file #<input stream #P"D:/ECL/code/hello.lisp">, position 30:
Too many objects after a list dot

Available restarts:

1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.

Broken at SI:BYTECODES. [Evaluation of: (LOAD "code/hello.lisp")] In: #<process
TOP-LEVEL>.

It has not line number in error message but postion 30.
I found it is the position of characters.  how to get the line number of code from error message?

Thank for your help!

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list
lookwong | 21 May 05:09
Picon

how to build static lib of ecl.dll under windows(with msvc2010)?

I want to build a program without the need of ecl.dll,  Is there anyone can help me ?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list

Codepage problems in Windows' console

Hi everybody,


after spending two days reading stuff about documented and undocumented functionality in Microsoft's API and CRT, I have come to the following conclusions:

* In Windows, it is impossible to reasonably use POSIX functions to read/write text from the console without letting the console do some translation for you.
* Moreover, POSIX's functions do not work, because read() and write() may actually read or write more bytes from the buffer thant you would want, precisely due to this "clever" translation.
* This all renders the CRT unusable, and as stated in a MSDN blog from Windows, one should stick to the Console read and write operations and forget about C entirely.

Well, I have coded a prototype of a Lisp stream for the console. ECL now has code that will detect whether the input/output/error channels are consoles and wrap them around with these streams. Moreover, it will also detect the current codepage and use it as external format for the stream.

All this is pretty much experimental and I need your help testing it. Please report problems.

BTW, as usual, all this is only available in git/CVS

Juanjo

--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list

Need help testing this...

ECL now implements asynchronous signal handlers through a secondary thread and these handlers can now be customized. The interface is given by the functions


(EXT:GET-SIGNAL-HANDLER signal-code)
(EXT:SET-SIGNAL-HANDLER signal-code closure-or-symbol)

where the signal handler function should have the signature (LAMBDA (&KEY PROCESS)).

On a multithreaded ECL, instead of having a thread that relies on sigwait(), we have a thread that gets messages from other threads, which are the ones that received the signals. In principle we could optionally add a feature such that these threads get suspended until the signal is processed. This does not seem critical to me, but it might help cope with the problem of synchronous signals (SIGSEGV, SIGFPE, etc) which are not allowed to execute arbitrary code.

In any case, these are refinements for the future. I would like to ask you to help debugging and perfect the changes I just introduced, and which for me are the final milestone for a release (apart from testing and integrating the ASDF extensions).

Juanjo

--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list
cm | 17 May 06:31
Picon

ECL 12.2.1 can not work with CJK language!

I build Ecl on Window XP with Visual Studio.

the code page of cmd console is cp936.

D:\ECL>ecl
ECL (Embeddable Common-Lisp) 12.2.1 (git:UNKNOWN)
Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya
Copyright (C) 1993 Giuseppe Attardi
Copyright (C) 2000 Juan J. Garcia-Ripoll
ECL is free software, and you are welcome to redistribute it
under certain conditions; see file 'Copyright' for details.
Type :h for Help.
Top level in: #<process TOP-LEVEL>.
> *features*

(:ECL-BYTECMP :WIN32 :FORMATTER :LITTLE-ENDIAN :UINT32-T :UINT16-T
 :RELATIVE-PACKAGE-NAMES :UNICODE :DFFI :CLOS-STREAMS :CMU-FORMAT :WINDOWS
 :MSVC :ECL-PDE :DLOPEN :CLOS :THREADS :BOEHM-GC :ANSI-CL :COMMON-LISP
 :IEEE-FLOATING-POINT :PREFIXED-API :FFI :PENTIUM4 :COMMON :ECL)

> (sys:stream-external-format-

set *standard-input* :windows-cp936)

> (sys:stream-external-format-set *standard-output* :windows-cp936)

> (print "好") ;<==============================================chinese language

Condition of type: SIMPLE-ERROR
Read or write operation to stream #<input file "stdin"> signaled an error.
Explanation: Invalid argument.

Available restarts:

1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.

Broken at SI:BYTECODES. [Evaluation of: (SI:TOP-LEVEL T)] In: #<process TOP-LEVE
L>.
>>

thanks for help!
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list
Matthew Mondor | 16 May 22:27

Decent HTTPd uptime since recent threading/locking changes

I had to reboot the system for another reason, but before I did, I
checked the uptime of my HTTPd and it was up online during 30 days.
Most of the connections were from google and vulnerability probing
spiders, although interspersed with my Apache ab(8) test floods.  This
was still using a non-shrinking threads pool for now.  Awesome :)
--

-- 
Matt

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Matthew Mondor | 16 May 22:20

Slime lambda-list auto-help

Hello again,

Although it's a minor issue, I noticed lately that when entering Lisp
the following form using latest ECL (head) and latest Slime, I'm
getting the following error in the command buffer:

(with-open-file 

    error in process filter: Wrong number of arguments: nil, 137

I'm not sure if the problem is in Slime or in ECL.

Also, is it expected that this help only is available for
implementation functions and bytecode compiled custom fonctions?  I
built my code with the debug level 3, but I cannot get that automatic
interactive help for the functions of those files.

Example:

(defun foo (a b c)
  (list a b c))

(foo<space>[I get the lambda-list help here]

(compile 'foo)

(foo<space>[I no longer get it]

Thanks,
--

-- 
Matt

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
ke n | 11 May 12:54
Picon

Re: [Ecls-cvs] compiling to a standalone exe win7 visual studio 2010 (SOLVED)

Thank you!  Once I did this one other thing came up so I'll just document the short process here for future travelers:


> (require :cmp)
> (setf C::*COMPILE-IN-CONSTANTS* t)
> (compile-file "hello.lisp" :system-p t)
> (c:build-program "myecl" :lisp-files '("hello.obj"))

The resulting exe was 7.16 kB, very nice!

On Fri, May 11, 2012 at 5:04 AM, Juan Jose Garcia-Ripoll <jjgarcia-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> wrote:

You are using the bytecodes compiler -- it is active by default in Windows because there are normally no compilers around. Use (require :cmp) before the process.

Juanjo 

--
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list
ke n | 11 May 05:11
Picon

compiling to a standalone exe win7 visual studio 2010

I tried copy-pasting the hello example out of section 1.6.3 and am getting an error:

-=-=-=-=-=-START COPY PASTE-=-=-=-=-
> *features*

(:ECL-BYTECMP :WIN32 :FORMATTER :LITTLE-ENDIAN :LONG-LONG :UINT64-T :UINT32-T
 :UINT16-T :RELATIVE-PACKAGE-NAMES :UNICODE :DFFI :CLOS-STREAMS :CMU-FORMAT
 :WINDOWS :MSVC :ECL-PDE :DLOPEN :CLOS :THREADS :BOEHM-GC :ANSI-CL :COMMON-LISP
 :IEEE-FLOATING-POINT :PREFIXED-API :FFI :PENTIUM4 :COMMON :ECL)
> (compile-file "hello.lisp" :system-p t)

;;; Compiling hello.lisp
;;; Compiling #<input stream hello.lisp>
#P"hello.fasc"
NIL
NIL
> (c:build-program "myecl" :lisp-files '("hello.o"))

Condition of type: SIMPLE-ERROR
Cannot find the external symbol BUILD-PROGRAM in #<"C" package>.

Available restarts:

1. (RESTART-TOPLEVEL) Go back to Top-Level REPL.

Broken at SI:BYTECODES. [Evaluation of: (SI:TOP-LEVEL T)] In: #<process TOP-LEVE
L>.
>>
"myecl"
>> Unknown top level command: :LISP-FILES
>> (c:build-program "myecl" :lisp-files '("hello.fasc"))

Debugger received error of type: SIMPLE-ERROR
Cannot find the external symbol BUILD-PROGRAM in #<"C" package>.
Error flushed.
>>
"myecl"
>> Unknown top level command: :LISP-FILES
>>

-=-=-=-=-=-END COPY PASTE-=-=-=-=-
I noticed at the point where I compile, I see #P"hello.fasc" while the webpage says #P"hello.o".
Also I don't see any mention of 'invoking the compiler'.
I looked through the makefile and didn't see any switches.

Is there something easy I'm missing?  Thank you!

Ken

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list

Gmane