Search found 96 matches

by dmitry_vk
Tue Jul 28, 2009 12:05 pm
Forum: Common Lisp
Topic: cffi-clutter
Replies: 19
Views: 21053

Re: cffi-clutter

Ramarren , if you are interested, I've made documentation for my GObject binding (http://common-lisp.net/project/cl-gtk2/doc/gobject/index.html). It may make task of creating clutter binding a little easier (but I don't insist on it). You can see my attempt at http://paste.lisp.org/display/84338. T...
by dmitry_vk
Tue Jul 21, 2009 12:05 pm
Forum: Common Lisp
Topic: Where to start?
Replies: 20
Views: 43870

Re: Where to start?

Paul Donnelly wrote: What makes Emacs so confusing compared to Eclipse? It sure looks simpler to me. A window, some code. And a menu and tool bar for people who haven't turned them off yet.
Emacs is different and its concepts confuse people who are used to Eclipse, Visual Studio and similar environments.
by dmitry_vk
Tue Jul 21, 2009 4:07 am
Forum: Common Lisp
Topic: Where to start?
Replies: 20
Views: 43870

Re: Where to start?

As already mentioned, emacs is the almost only choice for Lisp programming (at the moment, at least). There are probably other ways (like ABLE or CUSP), but they are inferior to SLIME (in terms of features). As for implementation and libraries, I highly recommend using Gentoo Linux with Lisp overlay...
by dmitry_vk
Fri Jul 17, 2009 5:45 pm
Forum: Common Lisp
Topic: cffi-clutter
Replies: 19
Views: 21053

Re: cffi-clutter

Note that the bindings are for recently released version 0.9.6 , which breaks API compatibility with 0.8 series. I have no idea what versions are in package managers. In portage there is none, so I compiled Clutter from sources, which only compounds the paths issue. According to the blog post you m...
by dmitry_vk
Thu Jul 09, 2009 6:41 am
Forum: Common Lisp
Topic: Different behavior between compiled and uncompiled code
Replies: 8
Views: 8418

Re: Different behavior between compiled and uncompiled code

Ben wrote:Well, the application has about one thousand global variables, parameters and constants. ;)
All it takes is just to have a function that will gather a list of package's special variables and run the application instance inside a progv.
by dmitry_vk
Thu Jul 09, 2009 2:34 am
Forum: Common Lisp
Topic: cffi-clutter
Replies: 19
Views: 21053

Re: cffi-clutter

I actually checked for that, and GObjects do get collected Actually, what I meant is that you do not use GC, but manually specify what objects should be collected. Enums/flags need mapping from C-names to Lisp-names anyway, even if I used GObject to map to them from values, so I might just as well ...
by dmitry_vk
Thu Jul 09, 2009 1:22 am
Forum: Common Lisp
Topic: cffi-clutter
Replies: 19
Views: 21053

Re: cffi-clutter

That sounds interesting. I've been coding my cl-gtk2 binding for some time and have some experience working with GObject. It looks like that you do not use the GObject system properly. First, it has a first-class support for using closures as callbacks (no need to defcallback every callback type and...
by dmitry_vk
Tue Jul 07, 2009 4:38 am
Forum: Common Lisp
Topic: On lambda function
Replies: 5
Views: 6861

Re: On lambda function

Yeah that works. Thanks for you explanation. BTW, I did tried this, and also failed: (funcall #'+(add-n 1) 2) Probably because add-n is just an anonymous function? Add-n is a function. (add-n 1) is an expression that when evaluated returns the anonymous function. #' is a "function designator&q...
by dmitry_vk
Tue Jul 07, 2009 1:17 am
Forum: Common Lisp
Topic: On lambda function
Replies: 5
Views: 6861

Re: On lambda function

Here's a function that takes a number N, and returns a function that adds N to its argument (taken from Practical Common Lisp): (defun add-n (n) #'(lambda (x) (+ x n))) My guess was something like this should work: ((add-n 1) 2) Unfortunately, it doesn't work. Further investigation: ? (functionp 'a...
by dmitry_vk
Mon Jul 06, 2009 8:32 pm
Forum: Common Lisp
Topic: Quotes inside a string
Replies: 3
Views: 4794

Re: Quotes inside a string

meijin wrote: "Alfa "alfa" beta"

Code: Select all

"Alfa \"alfa\" beta"