Chris Osborne | 29 Jul 23:21 2015
Picon

Accessing cons values in C

Hi,
I’ve spent a good while looking through the project’s documentation (and finding useful apparently
undocumented functions such as `ecl_base_string_pointer_safe`) but I cannot for the life of me work out
how to access the values of a list stored in cons cells.
If I have a function that calls back into C with an argument passed as such: (foo ‘(1 2 3)) what’s the best
way to access the values of the cells in that list?

The best I’ve found so far is either using cl_nth or cl_cdr and friends and then converting to a C number
type, this seems a bit silly when I can access the value of a string by following the pointer tree. The
documentation points to a type t_cons in the enum for ecl_t_of, but I can’t find it, or the cons value in
the lispunion.

Am I missing something obvious here or do I just have to use the cl functions in C to access elements of what is
essentially lisp’s simplest data type?

Cheers,
Chris
------------------------------------------------------------------------------
_______________________________________________
Ecls-list mailing list
Ecls-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list
Daniel Kochmański | 25 Jun 11:37 2015
Picon

Re: 回复: 回复: Packaging executable

I think it shouldn't be a problem - most of ecl is compiled while
compiler is present, and after that it works without it.

BR,
Daniel

// sorry for reposting, used wrong address

Rujia Liu writes:

> Thanks! I only want to make executables with asdf:make-build and will not compile any code on end user'
system. is it ok? or rather, is it possible to switch cmp back and forth?
>
> 发自我的iPhone
>
> ------------------ 原始邮件 ------------------
> 发件人: Daniel Kochmański <jackdaniel <at> hellsgate.pl>
> 发送时间: 2015年06月24日 22:08
> 收件人: Rujia Liu <2575127 <at> qq.com>
> 抄送: Evrim Ulu <evrimulu <at> gmail.com>, ecls-list <ecls-list <at> lists.sourceforge.net>
> 主题: Re: [Ecls-list] 回复: Packaging executable
>
>
>
> Hey,
>
> bytecmp is default on windows - in changelog in sources you may read
> under "known issues":
>
>    In Windows ECL comes with bytecodes compiler by default, because C
(Continue reading)

Daniel Kochmański | 24 Jun 16:15 2015
Picon

Re: 回复: Packaging executable

Hey,

bytecmp is default on windows - in changelog in sources you may read
under "known issues":

   In Windows ECL comes with bytecodes compiler by default, because C
   compilers are normally not avaiable. Unfortunately several libraries
   out there are not prepared for this.  If you plan to use quicklisp
   and have a C compiler accessible to ECL, you may use
   (ext:install-c-compiler) to switch back to the Lisp-to-C compiler.

but it requires c compiler to be present on system, what may be a
problem if you deploy application to client.

BR,
Daniel

Rujia Liu writes:

> Yes, I confirmed you are right, but I dont know why I am using it instead of the native compiler. 
>
>
> I did every thing in default (e.g did not change Makefile and did not add any flags to nmake). I am using
vs2008 under windows XP sp2, Chinese edition.
>
>
> Could any one tell me why I am using bytecmp and how can I use native cmp by default? Thanks!
>
>
> Rujia
(Continue reading)

Evrim Ulu | 24 Jun 13:13 2015
Picon

Re: Packaging executable

Is this the case? Are you trying to use the byte-compiler?
Sorry Rujia, I'm pretty busy right atm, I'm trying to finish my dissertation.
I wish I could help you.

evrim.


2015-06-24 13:46 GMT+03:00 Rujia Liu <2575127-9uewiaClKEY@public.gmane.org>:
sorry for the confusion. for some reason I am unable to post the exact error messages. I will try to reproduce the error on my home pc ASAP.

The problem is that make-build calls compile-file-pathname internally and the error is not directly from make-build

When I manually try something like (compile-file-pathname "a" :type :program) it complains that LIB is not supported.

Could you also give me some hints about other points (missing c::build-program, cannot compile usocket and most bundled examples etc)? Thanks!
发自我的iPhone


------------------ 原始邮件 ------------------
发送时间: 2015年06月24日 18:36
主题: Re: [Ecls-list] Packaging executable

Hello,

I'm confused. Please explain the following.

2015-06-24 13:12 GMT+03:00 Rujia Liu <2575127-9uewiaClKEY@public.gmane.org>:

However, I ran into an error when calling it: compile-file-pathname does not support OBJECT when i use type :fasl and does not support LIB for type :program



:program should give you executable. :shared-lib or static-lib should be enough if you are calling lisp from other programs.

evrim.

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list
Evrim Ulu | 24 Jun 12:36 2015
Picon

Re: Packaging executable

Hello,

I'm confused. Please explain the following.

2015-06-24 13:12 GMT+03:00 Rujia Liu <2575127-9uewiaClKEY@public.gmane.org>:

However, I ran into an error when calling it: compile-file-pathname does not support OBJECT when i use type :fasl and does not support LIB for type :program



:program should give you executable. :shared-lib or static-lib should be enough if you are calling lisp from other programs.

evrim.
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list
ThutmoseIII Thoth | 24 Jun 09:58 2015
Picon

What do I do after compiling ECL Android

All,

I finally got ECL android to compile, and I wish to proceed. Specifically,

  1. Where do I put the ECL files on my android device?
  2. Do I need root privileges? (I've tried copying the ECL binary with "adb push"and the android OS won't even let me try to run it.
  3. How do I start the swank server, and how do I connect to it from emacs?

I've looked for the answers to these questions in README and other project files and can't find anything. I Also have read through past mailing list messages. Please let me know if I am missing anything, and let me know how to proceed to get ECL running on my android device and connect to it via slime.

Thanks for all the help!


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Ecls-list mailing list
Ecls-list@...
https://lists.sourceforge.net/lists/listinfo/ecls-list
Dima Pasechnik | 13 Jun 15:21 2015
Picon

porting to ecl question: "lambda lists are not congruent"

We are trying to compile a project that is known to work on CLisp,
Lispworks, and SBCL, namely: https://github.com/gheber/kenzo

(asdf:load-system :kenzo)

aborts with
....
;;;...
;;; Finished compiling /home/dima/Downloads/kenzo/src/effective-homology.lisp.
;;;
;;; Warning: Lisp compilation had style-warnings while
             compiling #<cl-source-file "kenzo" "src" "effective-homology">

Condition of type: SIMPLE-ERROR
Cannot add the method #<standard-method UNNAMED (#<a
CLOS:EQL-SPECIALIZER> #<The BUILT-IN-CLASS T>)> to the generic
function #<standard-generic-function CAT::BUILD-HMEQ> because their
lambda lists (KEYWORD1 LRDCT ...) and (KEYWORD1 LF ...) are not
congruent.
Available restarts:

1. (TRY-RECOMPILING) Recompile effective-homology and try loading it again
2. (RETRY) Retry loading FASL for #<cl-source-file "kenzo" "src"
"effective-homology">.
3. (ACCEPT) Continue, treating loading FASL for #<cl-source-file
"kenzo" "src" "effective-homology"> as having been successful.
4. (RESTART-TOPLEVEL) Go back to Top-Level REPL.

Broken at SI:BYTECODES. [Evaluation of: (ASDF/OPERATE:LOAD-SYSTEM :KENZO)]

Any clues as to how to proceed?
Dima

------------------------------------------------------------------------------
Daniel Kochmański | 12 May 11:45 2015
Picon

Re: ecl-15.3.7 does not built with "--enable-unicode=no"


Resending (sent from wrong address).

Daniel Kochmański writes:

> Hello,
>
> thanks for pointing this out. Fixed on develop branch. You can apply
> attached patch to fix a problem on your sources.
>
> Best regards,
> Daniel
>
>
> HIRAMATSU Yoshifumi writes:
>
>> Hello,
>>
>> I cannot build ecl-15.3.7 with "--enable-unicode=no" option.
>>
>> % cd ecl-15.3.7
>> % ./configure --enable-unicode=no
>> % make
>>
>> On NetBSD 6, make failed with this message.
>>
>> gcc -DECLDIR="\"/usr/local/lib/ecl-15.3.7\"" -I. -I/home/hiramatsu/tmp/ecl-15.3.7/build
-I/home/hiramatsu/tmp/ecl-15.3.7/src/c -I../ecl/gc -DECL_API -DECL_NO_LEGACY    -g -O2 -fPIC 
-Dnetbsd -c -o package.o package.o.c
>> /home/hiramatsu/tmp/ecl-15.3.7/src/c/package.d: In function ‘cl_use_package’:
>> /home/hiramatsu/tmp/ecl-15.3.7/src/c/package.d:1049:7: error: ‘t_string’ undeclared
(first use in this function)
>> /home/hiramatsu/tmp/ecl-15.3.7/src/c/package.d:1049:7: note: each undeclared identifier is
reported only once for each function it appears in
>> /home/hiramatsu/tmp/ecl-15.3.7/src/c/package.d: In function ‘cl_unuse_package’:
>> /home/hiramatsu/tmp/ecl-15.3.7/src/c/package.d:1072:7: error: ‘t_string’ undeclared
(first use in this function)
>> *** Error code 1
>>
>> When I run configure without giving any option, make finished successfully.
>>
>> % ./configure
>> % make
>> -> succeeded.
>>
>> I tried on Mac OS X 10.10, but failed too.
>>
>> "--enable-unicode=no" does not work right now?
>>
>> Kind regards,
>> HIRAMATSU, Yoshifumi
>>
>> ------------------------------------------------------------------------------
>> One dashboard for servers and applications across Physical-Virtual-Cloud 
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Ecls-list mailing list
>> Ecls-list <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/ecls-list

--

-- 
Daniel Kochmański | Poznań, Poland
;; aka jackdaniel

"Be the change that you wish to see in the world." - Mahatma Gandhi

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ecls-list mailing list
Ecls-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list
HIRAMATSU Yoshifumi | 10 May 16:47 2015
Picon

ecl-15.3.7 does not built with "--enable-unicode=no"

Hello,

I cannot build ecl-15.3.7 with "--enable-unicode=no" option.

% cd ecl-15.3.7
% ./configure --enable-unicode=no
% make

On NetBSD 6, make failed with this message.

gcc -DECLDIR="\"/usr/local/lib/ecl-15.3.7\"" -I. -I/home/hiramatsu/tmp/ecl-15.3.7/build
-I/home/hiramatsu/tmp/ecl-15.3.7/src/c -I../ecl/gc -DECL_API -DECL_NO_LEGACY    -g -O2 -fPIC 
-Dnetbsd -c -o package.o package.o.c
/home/hiramatsu/tmp/ecl-15.3.7/src/c/package.d: In function ‘cl_use_package’:
/home/hiramatsu/tmp/ecl-15.3.7/src/c/package.d:1049:7: error: ‘t_string’ undeclared (first
use in this function)
/home/hiramatsu/tmp/ecl-15.3.7/src/c/package.d:1049:7: note: each undeclared identifier is
reported only once for each function it appears in
/home/hiramatsu/tmp/ecl-15.3.7/src/c/package.d: In function ‘cl_unuse_package’:
/home/hiramatsu/tmp/ecl-15.3.7/src/c/package.d:1072:7: error: ‘t_string’ undeclared (first
use in this function)
*** Error code 1

When I run configure without giving any option, make finished successfully.

% ./configure
% make
-> succeeded.

I tried on Mac OS X 10.10, but failed too.

"--enable-unicode=no" does not work right now?

Kind regards,
HIRAMATSU, Yoshifumi

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ecls-list mailing list
Ecls-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list
Faré | 8 May 01:53 2015
Picon

make-encoding

Dear ECL developers,

it looks like ext:make-encoding was a casualty of a recent
refactoring, which completely breaks asdf-encodings. Can you fix this?

—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http://fare.tunes.org
Always remember that you are unique.  Just like everyone else.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ecls-list mailing list
Ecls-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list
Daniel Kochmański | 1 May 14:32 2015
Picon

[ecl-quarterly]

Dear all,

I have commited news post at:
https://sourceforge.net/p/ecls/news/2015/05/ecl-quarterly---volume-i/

Please let me know, if you like it or not, and feedback, plus what do
you think- what should land there in next three months :-)

Thanks,
Daniel Kochmański

--

-- 
Daniel Kochmański | Poznań, Poland
;; aka jackdaniel

"Be the change that you wish to see in the world." - Mahatma Gandhi

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ecls-list mailing list
Ecls-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecls-list

Gmane