Colin Gilbert | 24 Aug 22:44 2014
Picon

C standard in use?

Hi,

I was wondering as to which standard of C that ECL conforms. Does it make use of any extensions such as Gnu-C or specific coding styles that may interrupt a compiler? When I generate code to embed, will it require any specific options? I checked the FAQ and docs, but to no avail.

Thanks,
Colin

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list
Fausto Saporito | 14 Aug 11:37 2014
Picon

Re: quite successfull build Tru64 (ev68) 5.1 with gcc 4.2.3

Hello all,

eventually I completed the build.

In order to avoid some arbitrary change in the code, I adopted a
different solution.
So, just to recap:

1) build gmp outside the process (using native compiler but using the
source provided in the package). I found some asm errors compiling
within the building process. So I preferred to build separately with
the Compaq CC.

2) some missing definition : UULONG_MAX, etc. I added in src/c/main.d
the following lines (borrowed by INTERNET ... if I remember well they
are from Bruno Haible)

# define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))

# define TYPE_MAXIMUM(t) \
    ((t) (! TYPE_SIGNED (t) \
      ? (t) -1 \
     : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))

# ifndef ULONG_LONG_MAX
#  define ULONG_LONG_MAX TYPE_MAXIMUM (unsigned long long)
# endif
# ifndef LONG_LONG_MAX
#  define LONG_LONG_MAX TYPE_MAXIMUM (long long int)
# endif
# ifndef LONG_LONG_MIN
#  define LONG_LONG_MIN TYPE_MINIMUM (long long int)
# endif

3) setup these env variable, before to run configure:

   a) LIBS="-lpthread -lrt"
   b) CFLAGS="-D_POSIX_PII_SOCKET -DAF_LOCAL=AF_UNIX"

then I used this parameters to configure:

./configure --without-x --disable-shared --enable-c99complex

The item 2) should be fixed in a different way, but I don't know how
to do this... i.e. create a new include file ? or modify source.d in a
permanent way with some #ifdef.

regards,
Fausto

2014-08-13 21:31 GMT+02:00 Fausto Saporito <fausto.saporito@...>:
> Hello all,
>
> just to say I was quite able to build ecl-13.5.1
>
> some changes to the standard build process:
>
> 1) build gmp outside the process (using native compiler but using the
> source provided in the package). I found some asm errors compiling
> within the building process. So I preferred to build separately with
> the Compaq CC.
>
> 2) ecl_min building: is missing -lpthread and -lrt otherwise we have
> undefined symbols
>
> 3) some missing definition : UULONG_MAX, etc. I added in src/c/main.d
> the following lines (borrowed by INTERNET ... if I remember well they
> are from Bruno Haible)
>
> # define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
>
> # define TYPE_MAXIMUM(t) \
>     ((t) (! TYPE_SIGNED (t) \
>       ? (t) -1 \
>      : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
>
> # ifndef ULONG_LONG_MAX
> #  define ULONG_LONG_MAX TYPE_MAXIMUM (unsigned long long)
> # endif
> # ifndef LONG_LONG_MAX
> #  define LONG_LONG_MAX TYPE_MAXIMUM (long long int)
> # endif
> # ifndef LONG_LONG_MIN
> #  define LONG_LONG_MIN TYPE_MINIMUM (long long int)
> # endif
>
> quite at end I have a serious error, compiling ext/socket.c
> complaining that socklen_t is not defined... so I added
>
> typedef unsigned long socklen_t; /* 64-bits */ in ecl-cmp.h
>
> but now, running again the make I have an error:
>
> ;;; Compiling #<concatenated stream 0000000144c36e60>
> (compile-file "ext:sockets;sockets.lisp" :output-file
> #P"BUILD:EXT;SOCKETS.O.NEWEST" :SYSTEM-P T :C-FILE T :DATA-FILE T
> :H-FILE T)
> ;;;
> ;;; Compiling EXT:SOCKETS;SOCKETS.LISP.
> ;;; OPTIMIZE levels: Safety=2, Space=1, Speed=1, Debug=1
> ;;;
>
> Condition of type: SIMPLE-PACKAGE-ERROR
> There exists no package with name "SB-BSD-SOCKETS"
>
> Should I delete build directory and make again everything ?
>
> I used --without-x and --enable-c99complex options, the other ones are
> the default ones.
>
> regards
> Fausto

------------------------------------------------------------------------------
Fausto Saporito | 13 Aug 21:31 2014
Picon

quite successfull build Tru64 (ev68) 5.1 with gcc 4.2.3

Hello all,

just to say I was quite able to build ecl-13.5.1

some changes to the standard build process:

1) build gmp outside the process (using native compiler but using the
source provided in the package). I found some asm errors compiling
within the building process. So I preferred to build separately with
the Compaq CC.

2) ecl_min building: is missing -lpthread and -lrt otherwise we have
undefined symbols

3) some missing definition : UULONG_MAX, etc. I added in src/c/main.d
the following lines (borrowed by INTERNET ... if I remember well they
are from Bruno Haible)

# define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))

# define TYPE_MAXIMUM(t) \
    ((t) (! TYPE_SIGNED (t) \
      ? (t) -1 \
     : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))

# ifndef ULONG_LONG_MAX
#  define ULONG_LONG_MAX TYPE_MAXIMUM (unsigned long long)
# endif
# ifndef LONG_LONG_MAX
#  define LONG_LONG_MAX TYPE_MAXIMUM (long long int)
# endif
# ifndef LONG_LONG_MIN
#  define LONG_LONG_MIN TYPE_MINIMUM (long long int)
# endif

quite at end I have a serious error, compiling ext/socket.c
complaining that socklen_t is not defined... so I added

typedef unsigned long socklen_t; /* 64-bits */ in ecl-cmp.h

but now, running again the make I have an error:

;;; Compiling #<concatenated stream 0000000144c36e60>
(compile-file "ext:sockets;sockets.lisp" :output-file
#P"BUILD:EXT;SOCKETS.O.NEWEST" :SYSTEM-P T :C-FILE T :DATA-FILE T
:H-FILE T)
;;;
;;; Compiling EXT:SOCKETS;SOCKETS.LISP.
;;; OPTIMIZE levels: Safety=2, Space=1, Speed=1, Debug=1
;;;

Condition of type: SIMPLE-PACKAGE-ERROR
There exists no package with name "SB-BSD-SOCKETS"

Should I delete build directory and make again everything ?

I used --without-x and --enable-c99complex options, the other ones are
the default ones.

regards
Fausto

------------------------------------------------------------------------------
Gergely Buday | 17 Jul 14:40 2014
Picon

saving the state of the compiler

Hi there,

I am new to lisp in general. By accident and because it works well
with the archaic theorem prover nqthm, I chose ECL.

I have an 1500 line long nqthm proof script that I need to evaluate on
every start. I look for a function that saves the state of the
compiler after this evaluation so that I can load the image upon
startup in seconds. I could not find such a function here:

http://ecls.sourceforge.net/new-manual/

I thought that ECL has this feature as Standard ML of New Jersey has it:

"Exporting Heaps"

http://www.cs.cmu.edu/afs/cs/local/sml/common/smlguide/smlnj.htm#export

How can I do this in ECL?

- Gergely

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
Michal | 12 Jul 14:11 2014
Picon

How to manually invoke garbage collector?

Hello,

In Guile we can manually trigger garbage collector using
    (gc)
or
    scm_gc()
from Scheme or C code respectively. Is there such possibility in ECL?

------------------------------------------------------------------------------
Didier Verna | 10 Jul 17:24 2014
Face
Picon
Picon
Picon
Picon

[CfPart] International Lisp Conference 2014, August 15-17, Montreal


	       ILC 2014 - International Lisp Conference
			  "Lisp on the Move"

     August 15-17 2014, Université de Montréal, Montréal, Canada

	      Sponsored by the Association of Lisp Users
		   In cooperation with: ACM SIGPLAN

		   http://ilc2014.iro.umontreal.ca/

Latest News:

  * Only 4 days left before the early registration deadline!

  * Registration is now open.
    See http://ilc2014.iro.umontreal.ca/registration.php

  * Invited speakers announced.
    Christian Queinnec, Ambrose Bonnaire-Sergeant, Stefan Monnier,
    Marc Battyani.

Scope:

Lisp is one of the greatest ideas from computer science and a major
influence for almost all programming languages and for all
sufficiently complex software applications.

The International Lisp Conference is a forum for the discussion of
Lisp and, in particular, the design, implementation and application of
any of the Lisp dialects.  We encourage everyone interested in Lisp to
participate.

This year's focus is directed towards integrated solutions, including
mobile computing. The conference also provides slots for lightning talks,
to be registered on-site every day.

The full programme is available here:
http://ilc2014.iro.umontreal.ca/program.php

Important Dates:

 - July   14, 2014: Early registration deadline
 - August 15, 2014: Conference starts

Organizing Committee:

General Chair:   Marc Feeley (Université de Montréal, Montréal, Canada)
Programme Chair: Didier Verna (EPITA Research lab, Paris, France)
Local chair:     Marc Feeley (Université de Montréal, Montréal, Canada)

Programme Committee:
Charlotte Herzeel, IMEC, ExaScience Life Lab, Belgium
Dave Herman, Mozilla Research, USA
Greg Pfeil, Clozure Associates, USA
Irène Anne Durand, LaBRI University of Bordeaux, France
Jim Newton, Cadence Design Systems, France
Kuroda Hisao, Mathematical Systems Inc., Japan
Matthew Might, University of Utah, USA
Nicolas Neuss, Friedrich Alexander Universitat, Germany
Ralf Möller, TUHH, Germany
Sam Tobin-Hochstadt, Northeastern University, USA
William Byrd, University of Utah, USA

Contact: ilc14-organizing-committee at alu.org

For more information, see http://ilc2014.iro.umontreal.ca/

--

-- 
Resistance is futile. You will be jazzimilated.

Lisp, Jazz, Aïkido: http://www.didierverna.info

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Ecls-list mailing list
Ecls-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list
Didier Verna | 27 Jun 10:08 2014
X-Face
Face
Picon
Picon
Picon
Picon

[CfPart] International Lisp Conference 2014, August 15-17, Montreal


	       ILC 2014 - International Lisp Conference
			  "Lisp on the Move"

     August 15-17 2014, Université de Montréal, Montréal, Canada

	      Sponsored by the Association of Lisp Users
		   In cooperation with: ACM SIGPLAN

		   http://ilc2014.iro.umontreal.ca/

Latest News:

  * Registration is now open.
    See http://ilc2014.iro.umontreal.ca/registration.php

  * Invited speakers announced.
    Christian Queinnec, Ambrose Bonnaire-Sergeant, Stefan Monnier,
    Marc Battyani.

Scope:

Lisp is one of the greatest ideas from computer science and a major
influence for almost all programming languages and for all
sufficiently complex software applications.

The International Lisp Conference is a forum for the discussion of
Lisp and, in particular, the design, implementation and application of
any of the Lisp dialects.  We encourage everyone interested in Lisp to
participate.

This year's focus is directed towards integrated solutions, including
mobile computing. The conference also provides slots for lightning talks,
to be registered on-site every day.

The full programme is available here:
http://ilc2014.iro.umontreal.ca/program.php

Important Dates:

 - July   14, 2014: Early registration deadline
 - August 15, 2014: Conference starts

Organizing Committee:

General Chair:   Marc Feeley (Université de Montréal, Montréal, Canada)
Programme Chair: Didier Verna (EPITA Research lab, Paris, France)
Local chair:     Marc Feeley (Université de Montréal, Montréal, Canada)

Programme Committee:
Charlotte Herzeel, IMEC, ExaScience Life Lab, Belgium
Dave Herman, Mozilla Research, USA
Greg Pfeil, Clozure Associates, USA
Irène Anne Durand, LaBRI University of Bordeaux, France
Jim Newton, Cadence Design Systems, France
Kuroda Hisao, Mathematical Systems Inc., Japan
Matthew Might, University of Utah, USA
Nicolas Neuss, Friedrich Alexander Universitat, Germany
Ralf Möller, TUHH, Germany
Sam Tobin-Hochstadt, Northeastern University, USA
William Byrd, University of Utah, USA

Contact: ilc14-organizing-committee at alu.org

For more information, see http://ilc2014.iro.umontreal.ca/

--

-- 
Resistance is futile. You will be jazzimilated.

Lisp, Jazz, Aïkido: http://www.didierverna.info

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Ecls-list mailing list
Ecls-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list
Andrew Lyon | 21 Jun 02:05 2014
Picon

Possible bug: segfault when setting slots in CFFI struct (Windows, C compiled, MinGW)

Hey everyone (again). Since my last email, I found what appears to be a weird CFFI/ECL bug. This was the cause of the problem I reported earlier today. It seems like the code in the function runs fine, but on return it barfs a segfault:

https://gist.github.com/orthecreedence/15dea89a0a7d591bba51

Note that I ended up working around this problem using ffi:c-inline to set the values in the struct manually, but I consider this an ugly fix that I'd rather not have there.

Any ideas on what's wrong? Thanks!

Andrew
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list
Andrew Lyon | 20 Jun 20:19 2014
Picon

Segfault in windows using cl-async

Hello all. I'm the author of cl-async (https://github.com/orthecreedence/cl-async) and I'm getting segfaults when using it in Windows with ECL (Windows 7 x64, ECL git (52bbd351500), libffi 3.0.11, libevent 2.0.21, all compiled via 32bit MinGW gcc 4.8.1. I'm using ECL's c compiler for everything (same mingw).

Everything compiles and runs fine, until I do anything with socket IO, then I get a segfault.

See https://gist.github.com/orthecreedence/a2b666419fe220bfae31 (backtrace in comments)

I believe this *may* be related to a bug I reported a while back (https://sourceforge.net/p/ecls/bugs/204/) because the backtrace on the segfault is completely empty (like in the bug). However it's off that some callbacks work and others don't because they all make use of arguments.

Instead of just whining and hoping someone fixes it, I'd like to jump in and give it a shot myself (unless it's a quick fix that someone can make easily). I've been meaning to get to know ECL better because I'm trying to use it for a largish project and I think knowing the internals better would help me out. I'd also like to eventually get to the point where I can help out with various contributions when I have time. I'm ok with C but have never touched a compiler before, so any sort of guidance I can get on solving this issue would be great.

Thanks!
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list
Dave Richards | 8 Jun 21:19 2014

Visual Studio 2013

Ecl-13.5.1 builds with no issues with Visual Studio 2012, but I get build
errors with Visual Studio 2013.  Has anyone successfully built ecl on Visual
Studio 2013?

	Thanks!

	Dave

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
Peter Vaňušanik | 8 Jun 20:10 2014
Picon

Compilation with MSVS 2013 fails in number_equalp.d

Trying to compile the ecl with visual studio, but it ends with this error:

        C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\stdarg.h(
37) : see previous definition of 'va_copy'
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(289) : war
ning C4005: 'isnan' : macro redefinition
        ../ecl/config.h(450) : see previous definition of 'isnan'
../../src/c/numbers/number_equalp.d(106) : error C2059: syntax error : 'type'
../../src/c/numbers/number_equalp.d(109) : error C2143: syntax error : missing '
;' before ':'
../../src/c/numbers/number_equalp.d(113) : error C2196: case value '4' already u
sed
../../src/c/numbers/number_equalp.d(114) : error C2196: case value '5' already u
sed
../../src/c/numbers/number_equalp.d(117) : error C2196: case value '6' already u
sed
../../src/c/numbers/number_equalp.d(119) : error C2196: case value '7' already u
sed
../../src/c/numbers/number_equalp.d(157) : error C2046: illegal case
../../src/c/numbers/number_equalp.d(174) : error C2047: illegal default
../../src/c/numbers/number_equalp.d(177) : error C2059: syntax error : '}'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

Any idea what to try to compile it?
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list

Gmane