Re: Safely calling lisp lambda function from C?

2015-09-08 Thread PR
2015-09-08 18:15 GMT+02:00, bruce li : > cl_object callback_wrapper(cl_object lambda, cl_object ...) { > cl_funcall(2, lambda, some_params); > } > > It works OK if the passed in lambda function is syntactically correct. > But it fails disastrously if the function contains errors... Please note

EQL5 is a port of EQL to Qt5

2016-11-25 Thread PR
Hi list, EQL5 (EQL for Qt5) can be found here: https://gitlab.com/eql/EQL5 Nothing new has been added (yet), it's just a simple port of EQL/Qt4 to Qt5. Paul P.S. If you want to help testing on OSX, you're welcome! (I don't own a Mac anymore.)

EQL5: QML/Lisp bridge (for desktop)

2017-01-19 Thread PR
For those interested in the progress of EQL5: Two new modules have been added lately: "multimedia" and "quick". The most interesting part is the QML / Lisp bridge, which allows creating applications using only QML (declarative UI) and Lisp (instead of JavaScript). For examples of calling Lisp fr

Android question (for porting EQL5 to that platform)

2017-06-25 Thread PR
Hi all, I'm currently trying to port EQL5 to the android platform. There is a big show-stopper to this: - building ECL for android only works with NDK r9 (which is really old already) - building EQL5 for android only works with NDK r15 (for Qt 5.9; but Qt5 requires a recent NDK anyway) Since I n

Re: Android question (for porting EQL5 to that platform)

2017-06-25 Thread PR
2017-06-25 18:20 GMT+02:00, PR : > - building ECL for android only works with NDK r9 (which is really old > already) Providing more info: attached you find the point where it's bailing out trying to build with NDK r15. ;;; Invoking external command: ;;; arm-linux-androideabi-gcc

Re: Android question (for porting EQL5 to that platform)

2017-06-26 Thread PR
will be building the EQL5 library and an example (hopefully soon on Google Play)... Paul 2017-06-25 19:25 GMT+02:00, PR : > 2017-06-25 18:20 GMT+02:00, PR : >> - building ECL for android only works with NDK r9 (which is really old >> already) > > Providing more info: attache

Re: Android question (for porting EQL5 to that platform)

2017-06-27 Thread PR
the GC sources of ECL). So: issue closed. 2017-06-26 22:03 GMT+02:00, PR : > Update: the mentioned issue could already be solved (by a small patch > to the GC sources). > Now both ECL and EQL5 are already cross-compiled for Android, using NDK 15. > > (And since I'm new to

Android question: does cross-compiling require a 32 bit host ECL?

2017-07-01 Thread PR
Hi again, In the process of porting EQL5 to Android, I stumbled upon this problem: The app crashes on Android during read_VV(), if the lisp library has been cross-compiled using a 64 bit ECL. To solve this problem, I need to use a 32 bit ECL for cross-compiling: but this would mean that for cross

Re: Android question: does cross-compiling require a 32 bit host ECL?

2017-07-01 Thread PR
mething what will be fixed in > the upcoming release. Definetely doable though (and useful). > > > On 01.07.2017 20:37, PR wrote: >> Hi again, >> >> In the process of porting EQL5 to Android, I stumbled upon this problem: >> The app crashes on Android during read_V

EQL5-Android (port of EQL5 to the Android platform): a first example

2017-07-04 Thread PR
For those interested in tablet / mobile development: I finally got a first example of EQL5 to work on Android, see 'tic-tac-toe' example, of course using both QML and Lisp! https://gitlab.com/eql/EQL5-Android Paul

Re: EQL5-Android (port of EQL5 to the Android platform): a first example

2017-07-04 Thread PR
2017-07-04 16:45 GMT+02:00, Daniel Kochmański : > I've seen you mention in the README , that programmer should use > official release (not git snapshot). I fully agree that it is a > preferred choice for development, but I'm curious if this remark is > caused by some regression? Hi Daniel, thanks

Android question: how to connect to swank, running on android?

2017-08-19 Thread PR
Hi again, so, the progress of the new android REPL is going well, it already runs Quicklisp and can start swank, and right there I'm stuck now: How does one connect from the local computer to the android device, which is running the SLIME-listener? They are connected via USB, and the device is /n

Re: Android question: how to connect to swank, running on android?

2017-08-19 Thread PR
r :port 4005 > :dont-close t > ;; :style nil #|:spawn|# > ) > > (defun stop-swank () >(format t "Stopping swank server~%") >(swank:stop-server 4005) >(format t ";; Swank off-line~%

Re: Android question: how to connect to swank, running on android?

2017-08-20 Thread PR
onnection closed unexpectedly Error running timer `slime-process-available-input': (error "Selecting deleted buffer") So, still no luck... Paul > > Daniel > > > On 19.08.2017 22:24, PR wrote: >> thanks to both of you, but it still doesn't work

Re: Android question: how to connect to swank, running on android?

2017-08-20 Thread PR
about things you didn't even intend to learn!) Paul > > > On 20.08.2017 21:39, PR wrote: >> 2017-08-19 23:25 GMT+02:00, Daniel Kochmański : >>> AFAIR I was connecting over wifi to the REPL on my Android device. >>> >>> If the port forwarding works

Re: Android question: how to connect to swank, running on android?

2017-08-21 Thread PR
Next update: attached there are 2 logs from swank (I enabled swank:*log-events*). - log 1 is from desktop REPL (which works) - log 2 is from tablet REPL, which disconnects after 1, sometimes 2 seconds The error message shown in Emacs is: Error running timer `slime process available input':

Re: Tail self-call optimization in generated C code?

2017-08-21 Thread PR
2017-08-21 14:11 GMT+02:00, Eric Brunel : > Hello all, > > I'm trying to get ECL to optimize tail self-calls in the C code > generated from the Lisp files and it looks like I'm missing something, > because I can't find a way to do that. Here is an example that works (not written by me, it's from c

Re: Android question: how to connect to swank, running on android?

2017-08-24 Thread PR
2017-08-21 12:14 GMT+02:00, PR : > ... Well, I'm not really happy to announce that it (kind of) works now, but only with an ugly hack: As suggested by Luís Oliveira (Slime mailing list), I added a 'break' at the start of function 'swank::close-connection%' (in fi

Re: Android question: how to connect to swank, running on android?

2017-08-25 Thread PR
...and finally the OK: problem solved (thanks to Luís Oliveira / Slime mailing list): This would be a possible patch to 'swank.lisp': (defun repl-input-stream-read (connection stdin) (loop (let* ((socket (connection.socket-io connection)) + (inputs (list socket #-android stdin))

Re: Android question: how to connect to swank, running on android?

2017-08-26 Thread PR
Since Daniel suggested the new :spawn style as swank:*communiication-style*, which works on the PC, I tried it on android, but there it gives this error: Condition of type: SIMPLE-ERROR Timed condition variables are not supported. Paul

Re: Android question: how to connect to swank, running on android?

2017-09-02 Thread PR
as above; and if I really, really want to edit (on the PC) and reload (on android) the QML files directly from the device, I can do so quite easily, and without Slime (see README-1 of REPL example). Paul > > Regards, > > Daniel > > On 26.08.2017 10:02, PR wrote: >> Since

How to build ECL from sources to be able to debug itself?

2017-09-07 Thread PR
Hi, I need to debug a possible socket bug on android; I've set up everything to be able to use a gdbserver on it, but it doesn't show anything useful (only a disassembly, which is cryptic to me). Is there a simple way to build all of prebuilt ECL (including sockets etc.) in debug mode? I already

Re: Android question: how to connect to swank, running on android?

2017-09-24 Thread PR
2017-09-03 1:22 GMT+02:00, PR : > ... Hi again, so let's disentangle some confusion (partially created by me, sorry for that): I have good news (for android) and bad news (for current Slime v2.20): * First the good one: I found out that old Slime v2.19 is stable on android (even t

Re: ECL + EQL Standalone Binary

2017-09-25 Thread PR
2017-09-25 19:19 GMT+02:00, John Mercouris : > Any ideas on how to proceed would be very useful, thank you, Hi John, the only thing that currently comes to mind is trying to comment out the line EQL::ini(argv); in your main.cpp (this function simply calls cl_boot(); I remember that I needed t

Re: ECL + EQL Standalone Binary

2017-09-26 Thread PR
2017-09-25 19:19 GMT+02:00, John Mercouris : > Any ideas on how to proceed would be very useful, thank you, Another (generic) observation: It seems that your terminal uses a debugger (automatically?). If I want to use gdb on Linux, I need a ~/.gdbinit file with these lines: handle SIGPWR nost

Re: Android question: how to connect to swank, running on android?

2017-09-30 Thread PR
ble now. Thanks! Paul > > Regards, > > Daniel > > > On 29.09.2017 12:07, Daniel Kochmański wrote: >> Hello, >> >> Thanks for the report. Regarding bad news, can your confirm that this >> still happening with ecl from development branch? >> >> Best

Re: Broken link in _Lisp (ECL) and QML (Qt5) on Android?_

2017-11-25 Thread PR
2017-11-25 2:17 GMT+01:00, pdoherty : > Hi all, > > I'm new here, so apologies if this is not the proper forum for the following > report. > > I was just reading the post, [Lisp (ECL) and QML (Qt5) on > Android?](https://common-lisp.net/project/ecl/posts/Lisp-ECL-and-QML-Qt5-on-Android.html), > and

A few basic Lisp commands while in debugger (gdb)?

2018-02-01 Thread PR
Hi, I remember vaguely that there have been added a few useful, simple functions for Lisp, which can be used during a gdb session, but I can't currently find them... Could anybody please point me to them? Thanks, Paul P.S. This would probably help debugging an android thread issue, happening

Re: A few basic Lisp commands while in debugger (gdb)?

2018-02-01 Thread PR
2018-02-01 11:19 GMT+01:00, Daniel Kochmański : > Hey Paul, > > check out src/util/gdbinit, I think that this is the file you are > referring to. Yep. Thanks Daniel! > > Regards, > > Daniel > > > On 01.02.2018 11:16, PR wrote: >> Hi, >> >>

Re: Is this thing on? Cross-compiling for ARM

2019-02-18 Thread PR
2019-02-18 12:10 GMT+01:00, Erik Winkels : > ...but I'm unclear how EQL fits in here due to > Sailfish's own layer on top of QT (Silica). That's not a problem: Silica is written in QML, in order to provide custom look and feel for Sailfish, so you only need to import Silica at the top of your QML

ECL cross-compiled for 'aarch64' considered stable?

2019-03-10 Thread PR
Hi, I have a question about 'aarch64' cross compiling: Using a recent ECL git snapshot (2019-03-06) I could successfully cross-compile ECL to aarch64 (applying a small patch, more on this later), using android NDK 18b (which uses llvm). Did anybody here run ECL on aarch64, and is it considered to

Re: ECL cross-compiled for 'aarch64' considered stable?

2019-03-11 Thread PR
2019-03-10 23:59 GMT+01:00, PR : > Did anybody here run ECL on aarch64, and is it considered to be stable? > > I'm asking because of my EQL5-Android project: I successfully compiled > the REPL example to aarch64, but I encountered a severe memory > corruption at startup [...]

Re: ECL cross-compiled for 'aarch64' considered stable?

2019-03-11 Thread PR
2019-03-11 10:35 GMT+01:00, Daniel Kochmański : > Hay Paul, > > it is worth noting that there are some unresolved issues on aarch64 due > to calling convention for variadic functions is differnt. Please see this > summary: > > https://gitlab.com/embeddable-common-lisp/ecl/issues/224 > > apparently

Script to build ECL for iOS using XCode 10 tools?

2019-09-06 Thread PR
Hi, I've been searching for a more recent version of this script: https://github.com/cbbaker/ecl-iphone-builder/blob/master/build.sh but without success. Does anyone reading this have a version sitting around which would work with current Xcode 10, that is: compile ECL for iOS using the clang com

Re: Script to build ECL for iOS using XCode 10 tools?

2019-09-09 Thread PR
On 9/6/19, PR wrote: > Does anyone reading this have a version sitting around which would > work with current Xcode 10, that is: compile ECL for iOS using the > clang compiler and targeting the arm64 architecture? never mind, asking around helped (this branch is not cleaned-up, as t

Re: Script to build ECL for iOS using XCode 10 tools?

2019-09-18 Thread PR
On 9/9/19, PR wrote: > never mind, asking around helped (this branch is not cleaned-up, as > the author says, but surely a very good start for somebody willing to > pick up from there): > > https://gitlab.com/embeddable-common-lisp/ecl/blob/arm64-port/ios_build.md ok, so having

Re: Script to build ECL for iOS using XCode 10 tools?

2019-09-19 Thread PR
On 9/18/19, Gunter Königsmann wrote: > Would it be possible for you to provide backtraces for a few different > crashes? Thanks for your input, now let me explain better: A few days ago I tested with a little different configuration, and the backtrace was just a few frames. Some 'cl_object' poin

Re: Script to build ECL for iOS using XCode 10 tools?

2019-09-20 Thread PR
On 9/19/19, PR wrote: > On 9/18/19, Gunter Königsmann wrote: >> Would it be possible for you to provide backtraces for a few different >> crashes? > (to be continued...) Here another backtrace. I just commented out the following lines in 'cl_boot' (on the desktop I

Re: Script to build ECL for iOS using XCode 10 tools?

2019-09-23 Thread PR
On 9/21/19, Marius Gerbershagen wrote: > Can you please confirm that USE_C_COMPATIBLE_VARIADIC_DISPATCH is > defined while compiling src/c/cfun.d, e.g. by inserting > > #ifndef USE_C_COMPATIBLE_VARIADIC_DISPATCH > #error "undefined" > #endif Many thanks Marius, your insight helped a lot! The vari

Re: Script to build ECL for iOS using XCode 10 tools?

2019-09-25 Thread PR
On 9/23/19, PR wrote: > On 9/21/19, Marius Gerbershagen wrote: >> [...] So, ECL starts up without problems now, but there is an (apparently) known issue with GC. The app crashes, seemingly during the first cycle of GC, see attached backtrace. But I noticed these lines in the &#x

Re: Script to build ECL for iOS using XCode 10 tools?

2019-09-26 Thread PR
On 9/25/19, PR wrote: > Does anybody know why this is needed, and what it is doing? Because if > my Lisp app grows (I tried to include :cl-ppcre), then the app crashes > again, despite the above hack (and with the same backtrace of the > attachment). Answering myself both questions

Re: Script to build ECL for iOS using XCode 10 tools?

2019-10-06 Thread PR
On 9/26/19, some wrote: [...] ...and if you were wondering if this got somewhere, here a practical link: https://gitlab.com/eql/eql5-ios

Re: Is this thing on? Cross-compiling for ARM

2019-11-15 Thread PR
On 11/8/19, Erik Winkels wrote: > Have you been able to "import EQL5 1.0" the quick module? just a generic note: as soon as you load the quick module from Lisp using: (eql:qrequire :quick) the EQL5 1.0 module is available in QML. If you are using Qt Creator to edit QML (surely the preferred wa

Re: [ecl 20.1.x][rc testing]

2020-01-03 Thread PR
On 12/30/19, Daniel Kochmański wrote: > Dear All, > > After three years of development we are closing to a new release. During > this time many important features and fixes has been made. We also have > a new co-maintainer of the project – Marius Gerbershagen, what is a > fantastic news (especiall

ECL crashes on iOS loading ASDF libs with several dependencies

2020-05-23 Thread PR
Hi, ECL on iOS seems to run fine so far, but there is an issue when trying to load ASDF systems which depend on several other ones. The full description of the issue can be found here (including a backtrace): https://gitlab.com/eql/eql5-ios/-/issues/3 It would be great if somebody with experienc

Re: ECL crashes on iOS loading ASDF libs with several dependencies

2020-05-31 Thread PR
On 5/23/20, PR wrote: > https://gitlab.com/eql/eql5-ios/-/issues/3 The problem here is simply the quite limited C stack size on iOS, which can't be extended on moblle devices, as it seems (I tried to no avail). So, the solution would be to use already cross-compiled ASDF libraries, whi

Re: ECL crashes on iOS loading ASDF libs with several dependencies

2020-06-02 Thread PR
On 5/31/20, PR wrote: > On 5/23/20, PR wrote: >> https://gitlab.com/eql/eql5-ios/-/issues/3 I was able to double the C stack size on iOS following a hint from Marius Gebershagen (see issue tracker link above). Now Quicklisp libraries like cl-fad install just fine (live on the dev

Windows annoyance building ECL in Windows 10 with (free) MSVC compiler

2020-09-29 Thread PR
Hi, since I needed to build latest ECL for current Windows 10 (free! did you know? I didn't!) with the command line tools included in (free as in "register first") Visual Studio Express 2015, I encountered an annoyance while building the garbage collector library: The build in 'ecl/msvc' (using n

Re: ecl + Windows + GUI

2020-10-07 Thread PR
On 10/7/20, d...@synergy.org wrote: > Is there a GUI package for ecl on Windows? > > Dave Only if you are passionate about QML/Qt5 I would consider EQL5, which I recently used for a desktop QML app on Windows 10, and it worked great. Even deploying was much simpler than expected (see update

Re: Static Compilation Issues

2020-11-27 Thread PR
On 11/27/20, Ava Fox wrote: > Daniel, > > drakma does not list uiop/asdf/sb-bsd-sockets in it's asd system > definition. > > I did try and add those systems into the example system definition, but > I ended up with the same result: lisp compiles fine, gcc compiles fine, > but then the static execu

Re: Windows 10

2020-11-29 Thread PR
On 11/25/20, Garrett Dangerfield wrote: > I got the 20.4.24 tarball and actually managed to compile it on Windows 10 > using cygwin gcc. Here is my experience with (latest) ECL on Windows 10: I installed the (free) MSVC compiler (which is the natural choice on Windows, has fewer dependencies and

Re: Where to go with EQL5 and QT specific questions?

2020-12-09 Thread PR
On 12/6/20, Erik Winkels wrote: > I know little of QT however and looking at the EQL5 examples only gets > me so far. What would be a good venue to ask my (initially really > basic) questions on the combination of ECL, EQL and QT? I mean, I want > to ask questions to people who also like to prog

Re: [EQL5] Making a model available for a ListView in QML

2020-12-16 Thread PR
On 12/16/20, Erik Winkels wrote: > However, I'm not sure what to do with the `qml:*quick-view*` In the C++ template you cited there is this call: eql_fun ("app/qml:ini-lib", Q_ARG (QQuickView*, view.data ()), Q_ARG (const char*, mainQml.toLocalFile ().toLatin1 ().constData ()),

Re: [EQL5] Making a model available for a ListView in QML

2020-12-16 Thread PR
On 12/16/20, Erik Winkels wrote: > So hopefully I just need to call the EQL5 version of `qmlRegisterType` > as is done here: > https://github.com/sailfishos/cppqml-sample/blob/master/src/cppqml.cpp > > But I cannot find any examples of it, nor do I see it available in EQL5. This would only make s

Re: [EQL5] `init_lib_APP__ALL_SYSTEMS` strangeness

2020-12-18 Thread PR
On 12/18/20, Erik Winkels wrote: > eql5-sfos.o: in function `main': > eql5-sfos.cc:(.text.startup+0x2c8): undefined reference to > `init_lib_APP__ALL_SYSTEMS' > collect2: error: ld returned 1 exit status > make: *** [Makefile:170: eql5-sfos] Error 1 In your 'make.lisp' in 'asdf:mak

Re: [EQL5] Slow startup

2021-01-01 Thread PR
On 12/28/20, Erik Winkels wrote: > ;;; Loading #P"/usr/lib/ecl-20.4.24/asdf.fas" > --> > Reading config "/home/nemo/.config/pusfofefe/config.lisp"... Config Loading ASDF on mobile _is_ slow, and there is nothing we can do about it, unfortunately. ASDF should therefore never be a depend

Re: [EQL5] Slow startup

2021-01-01 Thread PR
On 1/1/21, Erik Winkels wrote: > Ah yes, welcome to Sailfish! Thanks, yeah it's a great OS, it's hard not to love it, once you've played around with it! I will try to add some example myself, so in future this (almost empty) repo will hopefully get populated: https://gitlab.com/eql/eql5-sailfis

Re: (log #c(0 1) #c(0 -1)) errors

2023-03-21 Thread PR
> With 21.2.1 I get: > > > > (log #c(0 1) #c(0 -1)) > > > Debugger received error of type: DIVISION-BY-ZERO > # I also noticed that setting: (si::trap-fpe t nil) changes the result to: (log #c(0 1) #c(0 -1)) #C(# #) Paul

Re: [release candidate][23.x.x]

2023-06-18 Thread PR
On Saturday, June 17th, 2023 at 3:56 PM, Daniel Kochmański wrote: > Dear All, > > we've decided that it is a good time to go for the new release. The current > release candidate is in the develop branch, testing is tracked in this issue: > > https://gitlab.com/embeddable-common-lisp/ecl/-/is