Re: Curses alternative for Lisp?



Edi Weitz <spamtrap@xxxxxxxxxx> writes:

On Mon, 31 Dec 2007 16:20:33 +0100, Andreas Davour
<anteRUN@xxxxxxxxxxxxxxxxxxxx> wrote:

If you have to use FFI it usually means two things. First you've
encountered one of the things that Lisp lack, like a standard socket
library,

Nonsense. You don't need the FFI to work with sockets and it doesn't
get any more "standard" if you do.

I sometimes find that the way I express myself is misunderstood, and
since English is not my native language it's no wonder. But this time
even I have a hard time understanding what I wrote. Sorry.

What I meant was that there are no sockets in the CLHS, and you have to
rely on a external library. Sometimes those are just an abstraction
layer over C. For sockets there are excellent libraries, like usocket,
and what lives beneath the hood of that one of beyond me. It works like
a charm, though! Many thanks to whomever made that puppy and decided to
share!

or second that you are trying to do things the C way and not the
Lisp way. If during all these years nobody have made any terminal
handling library I'm beginning to think I'm onto case two.

Maybe nobody needed one? Or maybe the people who needed one where
content with using the FFI approach? Or maybe (gasp!) somebody wrote
such a library and dared not to release it as open source so that you
can use it for free?

I have no problem with someone writing such a libray and not sharing,
it's their option. I just haven't heard of any. Maybe, like you said,
FFI works fine or nobody needed one. I don't know. If the latter is the
case I'm curious about what they use instead for a UI.

As it is low-level stuff I guess FFI is the way to go, but I'm
beginning to wonder how lispers do their (G)UI programming anyway.

No Lisper has ever done GUI programming. That's one of the many
things you simply can't do in Lisp.

Sorry if I seemed dense, I can understand you might sigh and be a bit
sarcastic. I'm just curous about how people do these things. I know of
CLIM (And have even written a few smallish McCLIM programs), but I
understand that it's not universally liked or used. It was just a
curious thought.

--
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
.



Relevant Pages

  • Re: Popularity of programming languages
    ... Immanuel> another language it might have lots of support libs without ... Immanuel> libraries. ... I think perhaps you misunderstand what this "FFI" stuff is about. ... A Lisp "FFI call" is just written as a normal Lisp function call. ...
    (comp.lang.lisp)
  • Re: Popularity of programming languages
    ... It seems to me that ACL (assuming you mean Allegro Common Lisp) ... quite good FFI, TCP and UDP sockets, an OSI module (Operating System ...
    (comp.lang.lisp)
  • Re: How to change peoples minds about LISP?
    ... > So why not call a C library from Lisp, ... > in the CormanCL libraries for that, since it does not offer any ... Why bother with Lisp making GUIs when you can make them with VS/C# with ... And with FFI you have to keep in mind that you'll need to interact ...
    (comp.lang.lisp)
  • Re: Suggested problems?
    ... I would much rather deal with a pure Lisp solution ... >> Why would an FFI wrapper be implementation specific? ... It's another thing entirely to deal with shared libraries ...
    (comp.lang.lisp)
  • Re: How to change peoples minds about LISP?
    ... >> So why not call a C library from Lisp, via the FFI? ... >> in the CormanCL libraries for that, since it does not offer any ... you can "make GUIs with simple clicks" are not free. ...
    (comp.lang.lisp)