Re: Curses alternative for Lisp?
- From: Andreas Davour <anteRUN@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 31 Dec 2007 16:20:33 +0100
grue@xxxxxxx (Timofei Shatrov) writes:
(check out curses.lisp; it also contains some bloat such as REPL
implementation; oh, there is also a whole game that uses the library)
Ouch! I sense a lack, or maybe I'm into unidiomatic territory.
I don't see how Lisp is different from C in this case. In either case
you have to call some external library. The fact that curses
implementations are written in C doesn't matter. This is extremely
low-level OS-specific stuff, and perhaps C is the best language to
implement that stuff in. Once you have FFI bindings, curses is just as
easy and natural to use in Lisp as in C.
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, 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.
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.
/Andreas
--
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?
.
- Follow-Ups:
- Re: Curses alternative for Lisp?
- From: Pascal Bourguignon
- Re: Curses alternative for Lisp?
- From: Edi Weitz
- How do lispers do their GUI programming anyway? (was Re: Curses alternative for Lisp?)
- From: Peter Hildebrandt
- Re: Curses alternative for Lisp?
- References:
- Curses alternative for Lisp?
- From: Andreas Davour
- Re: Curses alternative for Lisp?
- From: Timofei Shatrov
- Re: Curses alternative for Lisp?
- From: Andreas Davour
- Re: Curses alternative for Lisp?
- From: Timofei Shatrov
- Curses alternative for Lisp?
- Prev by Date: Re: #;
- Next by Date: Class slots in CLOS
- Previous by thread: Re: Curses alternative for Lisp?
- Next by thread: How do lispers do their GUI programming anyway? (was Re: Curses alternative for Lisp?)
- Index(es):
Relevant Pages
|