Re: [racket] forward pointer declarations

2015-02-01 Thread Matthew Flatt
At Sun, 01 Feb 2015 19:08:08 -0500, Anthony Carrico wrote: > On 02/01/2015 05:57 PM, Anthony Carrico wrote: > > I get a "duplicate definition" error if I declare a pointer ahead: > > > > (define _wl_interface-pointer (_cpointer 'wl_interface)) > > This isn't perfectly satisfying, but one option i

Re: [racket] Retrieving OS file handle from file ports

2015-02-01 Thread Matthew Flatt
The Racket C API provides intptr_t scheme_get_port_fd(Scheme_Object* port); which you can access through the FFI: (require ffi/unsafe) (define scheme_get_port_fd (get-ffi-obj 'scheme_get_port_fd #f (_fun _racket -> _intptr))) (scheme_get_port_fd (current-output-port)) At Sun, 1 Feb 20

Re: [racket] forward pointer declarations

2015-02-01 Thread Anthony Carrico
On 02/01/2015 05:57 PM, Anthony Carrico wrote: > I get a "duplicate definition" error if I declare a pointer ahead: > > (define _wl_interface-pointer (_cpointer 'wl_interface)) This isn't perfectly satisfying, but one option is to use a different name for the forward declaration: (define _wl_int

[racket] forward pointer declarations

2015-02-01 Thread Anthony Carrico
I get a "duplicate definition" error if I declare a pointer ahead: (define _wl_interface-pointer (_cpointer 'wl_interface)) (define-cstruct _wl_interface ((name _string/utf-8) (version _int) (method_count _int) (methods _wl_message-pointer) (event_count _int) (events _wl_message-

[racket] Retrieving OS file handle from file ports

2015-02-01 Thread Bartosz Przygoda
Hello, It is possible to communicate via serial port by using input/output ports. However, to achieve greater level of control, one needs to use other means - for linux systems one may want to use API defined in termios.h. I wanted to use Racket FFI for those functions, however, they require file

Re: [racket] racket/serialize example in The Racket Guide does not work

2015-02-01 Thread Greg Hendershott
Huh. It seems to fail with a similar error message using pasterack.org: http://pasterack.org/pastes/72311 But it works for me on all the various Racket versions I happen to have installed on OS X (5.3.5, 6.0, 6.1.1, 6.1.16) as well as on 6.0.1 on Ubuntu. Racket Users list:

[racket] surprise)))

2015-02-01 Thread arabdurrehman
Hi! How are you? It works! http://angelamassages.nl/useruploads/images/Pascal.php?arabdurrehman_gmail_com arabdurreh...@gmail.com Racket Users list: http://lists.racket-lang.org/users

[racket] racket and lisp/scheme

2015-02-01 Thread Catonano
In what is racket different from Scheme ? I read that the racket language is a "descendent" of Lisp and Scheme While I know the differences between Clojure and Scheme (or Lisp) I know nothing about racket. Is there an overview anywhere ? Thanks Racket Users list: http:/

[racket] Updated Liitin project page

2015-02-01 Thread Jukka Tuominen
Dear Racketeers, for those interested in Liitin development, the project home page has just been updated. "Liitin is a profoundly new approach to computing aiming to make the Future Internet more useful by means of improved compatibility of software and hardware and providing permanent data sto

Re: [racket] first racket attempt -- need advice

2015-02-01 Thread Dmitry Pavlov
Jimmy, It seems that the links to pastebin that you gave do not work, the code is not (no longer) there. Regards, Dmitry On 8:47PM, Jan 31, 2015, at 8:47PM, Jimmy McNutt wrote: >Hello Racketeers, > >The source code linked below is my first attempt at racket (or any >programming language, mo