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
27
votes
3 answers

What are the main differences between CLISP, ECL, and SBCL?

I want to do some simulations with ACT-R and I will need a Common Lisp implementation. I have three Common Lisp implementations available: (1) CLISP [1], (2) ECL [1], and (3) SBCL [1]. As you might have gathered from the links I have read a bit…
lord.garbage
  • 5,884
  • 5
  • 36
  • 55
11
votes
2 answers

Has anyone got any code examples of ECL Lisp for Iphone development?

I found out about Lisp for the Iphone recently and wanted to find some code examples. https://github.com/TerjeNorderhaug/ecl-iphone-builder/#readme
yazz.com
  • 57,320
  • 66
  • 234
  • 385
7
votes
2 answers

What is the correct way to compile a file using Embeddable Common Lisp?

I attempting to use ECL to create a .o file with the intention of using its feature of compiling to C however I am receiving an error when trying to build a program as the documentation lists. I am running: (c:build-program "CompiledFile"…
Dan Harmon
  • 313
  • 1
  • 13
7
votes
1 answer

ECL - dump c source for every compilation unit and its dependencies?

I have the following package definition. How do I compile all the components recursively, as well as their dependencies to C source? In other words, I want to preserve all C files that go into building the native executable. Currently, i use…
Robin B
  • 183
  • 5
4
votes
1 answer

Does ECL support callbacks?

Trivial as the question sounds, but after some time looking through the ECL documentation, CFFI documentation and resorting to google, I still could not arrive to a definitive answer. ECL docs mention nothing of a callback syntax, CFFI docs do not…
Andrei
  • 2,585
  • 1
  • 14
  • 17
4
votes
1 answer

emacs shell: type once, run everywhere

Within emacs, I want to have multiple shells open, type a command once, and have it run in each shell -- similar to the way multixterm ( http://freecode.com/projects/multixterm ) does.
Ishpeck
  • 2,001
  • 1
  • 19
  • 21
4
votes
2 answers

Saving lisp state

I am a beginner in lisp and have a question. When I writing some code directly in REPL (without any .lisp file!), how can I save my work/state of the interpreter to restore it next time and continue working? (I am using ECL) Thanx! And sorry for my…
The Architect
  • 665
  • 9
  • 22
4
votes
1 answer

How can ECL include ASDF dependencies in an executable?

I have this ecl-make.lisp: (asdf:oos 'asdf:compile-op :stumpwm) (defun system-objects (system) (loop for component in (asdf:module-components (asdf:find-system system)) for pathname = (asdf:component-pathname component) for directory =…
ayrnieu
  • 1,839
  • 14
  • 15
4
votes
4 answers

Pass a string from ECL to C++

I'm trying to get into the fascinating world of Common Lisp embedded in C++. My problem is that I can't manage to read and print from c++ a string returned by a lisp function defined in ECL. In C++ I have this function to run arbitrary Lisp…
4
votes
1 answer

Embeddable Common-Lisp asdf:defsystem returning invalid relative pathname

I'm trying to learn how to use Common-Lisp's asdf, and I have the following code: (asdf:defsystem example :serial t :components ((:file "first") (:file "second"))) However, I keep getting the error: Condition of type:…
jefftime
  • 442
  • 5
  • 14
4
votes
1 answer

How to create a closure for a C function

I am using the C API to interact with ECL and I am trying to create a closure object from a native function that has some stored state. I have tried this: cl_object f(long nargs, ...) { std::cout << nargs << std::endl; std::cout << "has…
Cpp Man
  • 108
  • 5
3
votes
1 answer

Why does (probe-file #P"/") return nil?

This seems like it could be a bug in ECL's implementation -- or due to some detail in the standard: > (probe-file #P"/usr") #P"/usr/" > (probe-file #P"/usr/") #P"/usr/" > (probe-file #P"/") NIL > (probe-file #P"//") …
Michael Fox
  • 3,632
  • 1
  • 17
  • 27
3
votes
0 answers

How can *standard-input* and *standard-output* be redirected to another PTY, FIFO or socket?

I was wondering if it's possible to redirect ECL's Linux stdio so that it does not share streams with the application that it's embedded in. My problem is that the host application takes over stdin, stdout and stderr for its own purposes. So, I'd…
Michael Fox
  • 3,632
  • 1
  • 17
  • 27
3
votes
0 answers

Embeddable Common Lisp (ECL) with D Programming Language?

Is there a way to use the Embeddable Common Lisp with the D Programming Language? Something like a Derelict library?
Redger
  • 573
  • 3
  • 11
3
votes
2 answers

Specifying external-format on ECL

How can I specify external-format (for example (:crlf :|cp932|)) on ECL? I want to write string to file with some encoding. So I type in my REPL like this: (with-open-file (out "test.txt" :direction :output …
t-sin
  • 31
  • 1
1
2 3 4