Search found 13 matches

by ekd123
Sat Mar 30, 2013 8:42 am
Forum: newLISP in the real world
Topic: Does newLISP have &rest and big numbers...?
Replies: 10
Views: 7883

Re: Does newLISP have &rest and big numbers...?

I tried use them together and just found it successful.

Code: Select all

(define-with-keys (together a (b nil)) (list a b c d))

(together 'a 'b 'c 1 'd 2) ; ==> (a b 1 2)
Just right!
by ekd123
Thu Mar 28, 2013 4:52 am
Forum: newLISP in the real world
Topic: Does newLISP have &rest and big numbers...?
Replies: 10
Views: 7883

Re: Does newLISP have &rest and big numbers...?

WOW GR8! Thank you very much XD

Well, but is there a way to mix them up?
by ekd123
Wed Mar 27, 2013 1:49 pm
Forum: newLISP in the real world
Topic: Does newLISP have &rest and big numbers...?
Replies: 10
Views: 7883

Re: Does newLISP have &rest and big numbers...?

Thank you very much. Now I'm ready to do something in realworld =)
by ekd123
Wed Mar 27, 2013 4:59 am
Forum: newLISP in the real world
Topic: Does newLISP have &rest and big numbers...?
Replies: 10
Views: 7883

Another question

Thanks. They worked with some hacks for gmp.lsp. (GMP in Fedora 64bit is located /usr/lib64/libgmp.so.10) Well, another question. Has newLISP got &key and &optional? They are useful features, too. ;; Common Lisp example (defun keylist (a &key x y z) (list a x y z)) (defun ) (keylist 1 :z 5 :y 3) => ...
by ekd123
Tue Mar 26, 2013 2:22 pm
Forum: Anything else we might add?
Topic: C-made module support?
Replies: 12
Views: 9485

Re: C-made module support?

Any activities on this?

C-API for extensibility is really a neccessary feature for modern scripting :-O
by ekd123
Tue Mar 26, 2013 2:10 pm
Forum: newLISP in the real world
Topic: Does newLISP have &rest and big numbers...?
Replies: 10
Views: 7883

Does newLISP have &rest and big numbers...?

CL has a nice feature

Code: Select all

(defun my-list (&rest list)
    list)
(my-list 'a 'b 'c 'd) => (a b c d)
Has newlisp got &rest? I haven't found anything about that. :-(

Also, big numbers are also very useful. It's here or not?

Thanks.

-- ekd123
by ekd123
Mon Mar 18, 2013 5:22 am
Forum: Anything else we might add?
Topic: C-made module support?
Replies: 12
Views: 9485

Re: C-made module support?

>> First, I'm sure we agree that library developers foreign to newLISP are not going to code their libraries this way (unless I'm unaware that this is some universally adopted convention or standard). So that means that, in essence, newLISP developers will be the library writers. They can do it when...
by ekd123
Sun Mar 17, 2013 2:15 pm
Forum: Anything else we might add?
Topic: C-made module support?
Replies: 12
Views: 9485

Re: C-made module support?

Not sure what your "case" means? ... In my opionion, Lisp is powerful enough to do such thing. But if there's some thing more low-level, it's easier. That's the only advantage. :-/ For example, here is a function called "H", which loads a metadata file (filled with function info of library L), loads...
by ekd123
Sun Mar 17, 2013 5:39 am
Forum: Anything else we might add?
Topic: C-made module support?
Replies: 12
Views: 9485

Re: C-made module support?

Well, that's not the advantage of "c-made module" itself, but GObjectIntrospection's.

Making a lot of bindings by hand is annoying. in this case, GI helps us out. You could check out the homepage of GI to find out how great it is.
by ekd123
Sun Mar 17, 2013 4:07 am
Forum: Anything else we might add?
Topic: C-made module support?
Replies: 12
Views: 9485

Re: C-made module support?

Do you mean that "the first one" is the linking of C procedures to newLISP (like the primitives, but users could write them)? I think that's what you meant but I'm not entirely sure. Yes, but they're not linked in newLISP. They can be loaded and unloaded easily. This would mean, at least at a low l...
by ekd123
Sat Mar 16, 2013 8:20 pm
Forum: Anything else we might add?
Topic: C-made module support?
Replies: 12
Views: 9485

Re: C-made module support?

That's not exactly what I'm talking about. I meant "write module in C and newLisp calls it" not "write a dynamic library in C and newLisp calls it". They're similar but completely different. The first one is inside the Lisp environment and the last one is out of it. We need a lot of work to make the...
by ekd123
Sat Mar 16, 2013 6:07 pm
Forum: Anything else we might add?
Topic: C-made module support?
Replies: 12
Views: 9485

Re: C-made module support?

It seems quite a simple work: if we don't wanna compile our code to executables, just let the interpreter load dynamic libraries after loading the main library. Unfortunately, newLISP's interpreter is combined with the code which is supposed to be a standalone library... Maybe we need to split them ...
by ekd123
Sat Mar 16, 2013 5:54 pm
Forum: Anything else we might add?
Topic: C-made module support?
Replies: 12
Views: 9485

C-made module support?

Hi there, I'm playing newLisp and having fun. But one thing, there aren't many libraries. So I think we can make a module for GObject Introspection, then we'll get a lot of libraries out of box (https://live.gnome.org/GObjectIntrospection) Just copy PyGObject. It's written in C ;-) I checked, and fo...