Questions tagged [ecl]

Embeddable Common Lisp (ECL) is an open source Common Lisp implementation aimed at producing a small-footprint Lisp system that can be integrated with C-based applications.

56 questions
2
votes
1 answer

What are the differences between Bigloo and ECL from an embedding standpoint?

I've been looking to embed Lisp in some C++ code. Two options I'm interested in is Bigloo Scheme and ECL (Common Lisp). Reading through the docs they seem to support a very similar feature set. Obviously Bigloo is Scheme and ECL is CLisp, but what…
Pubby
  • 51,882
  • 13
  • 139
  • 180
2
votes
1 answer

Compiling UFFI dependent programs on ECL

Is there a way of compiling UFFI dependent lisp programs on Embeddable Common Lisp without modifying them? For example when i try to load CLSQL via Quicklisp i get the below error: > (ql:quickload "clsql") Condition of type:…
oakenshield1
  • 851
  • 1
  • 11
  • 26
2
votes
1 answer

How can I execute step-by-step debugging in Common Lisp ECL?

I am studying Common Lisp using ECL. I tried referring to https://malisper.me/debugging-lisp-part-1-recompilation/ for the debugging method, but the step execution did not work properly. When I insert "(break)" and select "RETRY", processing stops…
NOEU
  • 21
  • 2
2
votes
0 answers

Why load-foreign-library does not work in ECL?

I compiled ECL 16.1.3 on Windows and I want to load the shared library but FFI does not work. At first I used CFFI and then got the error 'unable to load'. Then I found the ECL limitation (On platforms where ECL’s dynamic FFI is not supported (ie.…
George
  • 31
  • 4
2
votes
0 answers

Embeddable common lisp only builds .fasc not .o

The documentation for ECL suggests that (compile-file "hello.lisp" :system-p t) should produce a .o file however I instead get a .fasc file and the ouput > (compile-file "hello.lisp" :system-p t) ;;; Compiling hello.lisp;;; Compiling #
Dan Harmon
  • 313
  • 1
  • 13
2
votes
1 answer

How can I return a string from a call to ffi:c-inline in ecl?

How can I return a string constant from a call to ffi:c-inline? I've tried variations of the following without success (ORGANIZATION is a constant defined in constants.h): (ffi:clines "#include \"./constants.h\"") (ffi:c-inline () () :string…
pdoherty926
  • 9,895
  • 4
  • 37
  • 68
2
votes
1 answer

Embeddable Common Lisp (ECL): load shared library with extension functions

Is it possible to load a shared library in ECL, import some C functions which receive and return cl_object (as if they were defined with ecl_def_c_function()) and invoke them in REPL (without compiling a *.lisp file)? For example: // file…
AlexDarkVoid
  • 485
  • 3
  • 12
2
votes
1 answer

Debugging Quicklisp when the backtrace lacks information

What's your general approach when quickload fails? I guess I'd like to know the line that provoked the problem, but all I'm given is a backtrace with a reference to a bytecompiled-function. How should I proceed to determine which package, file and…
Michael Fox
  • 3,632
  • 1
  • 17
  • 27
2
votes
1 answer

Getting ECL symbol name as string in C++

I'm working on embedding Embeddable Common Lisp into a library and I've been writing utility functions to convert ECL's cl_object to various C/C++ types - e.g. to convert a cl_object representing a string to a std::string. My question is this - why…
Chazu
  • 1,010
  • 1
  • 9
  • 20
2
votes
1 answer

How to distribute the asdf/quicklisp dependencies along with an app compiled with Embeddable Common Lisp?

I have tried this example ECL repository asdf example , it works fine but it doesn't have any asdf dependencies. If i add :depends-on (#:inferior-shell) to example.asd then running the compiled standalone executable gives this error: Condition of…
smokeink
  • 101
  • 6
2
votes
0 answers

Installing ECL on OSX

I need to try embeddable common lisp on my OSX. Unfortunately I think a ran into problems installing and have no idea why. I installed ecl-13.5.1 and followed the instructions on http://ecls.sourceforge.net/new-manual/pr01s06.html but ran into…
2
votes
1 answer

How can ecl include asdf dependencies in an executable? (take 2)

This question was asked and answered by ayrnieu at How can ECL include ASDF dependencies in an executable? But the example code he linked to does not actually involve any dependencies. I've tried copying the model in the stumpwm code he refers to…
2
votes
1 answer

How to build static lib of ecl.dll under Windows with MSVC2010?

I want to build a program ("exe" or "static lib") using ECL, but under windows. My application must depend on "ecl.dll". How to modify the MSVC makefile to build ECL statically?
looklook
  • 21
  • 3
1
vote
1 answer

Embedded ECL lisp error handling

Task: Embed ECL lisp in my project, setup error handling and detailed error reporting (where occurred, kind of error, etc.) I tried to do that such way: cl_def_c_function_va( c_string_to_object("SYSTEM:UNIVERSAL-ERROR-HANDLER"), …
The Architect
  • 665
  • 9
  • 22
1
vote
2 answers

Compiling ECL 11.1.1 on Mac OS X 10.7 (Lion)

I have been trying to build ECL under OS X 10.7 and I have been running into trouble. When I try building it I end up getting a segfault on the ecl_min stage. I configure with the following line: ./configure --build=x86_64 --target=x86_64…
Rontologist
  • 3,568
  • 1
  • 20
  • 23