[racket] Need some help with planet package

2014-11-14 Thread C K Kashyap
Hi, I am trying to use midi.rkt from http://planet.racket-lang.org/package-source/clements/midi.plt/1/0/midi-read.rkt. I did the following - 1. sudo raco planet url clements midi.plt 1 1 2. curl -O url (the url I got form the step 1) 3. I renamed the downloaded file to midi.plt 4. sudo raco plane

[racket] Is there an org-mode equivalent in DrRacket

2014-11-14 Thread C K Kashyap
Hi, I was wondering if there is an emacs org-mode equivalent in DrRacket? Regards, Kashyap Racket Users list: http://lists.racket-lang.org/users

Re: [racket] PyonR: A Python Implementation for Racket

2014-11-14 Thread Matthew Butterick
Congratulations Pedro. I look forward to trying this. On Fri, Nov 14, 2014 at 3:06 PM, Pedro Ramos wrote: > Hello, > > I'm releasing an implementation of the Python language for Racket, which I > have been developing over the last year as my master thesis in Information > Systems and Computer En

Re: [racket] PyonR: A Python Implementation for Racket

2014-11-14 Thread Pedro Ramos
Indeed, it implements Python's syntax and semantics as a Racket lang (#lang python). It is based on a Python to Racket source-to-source compiler and a runtime environment in Racket. Additionally, it also implements some modifications to DrRacket specific features for Python development, such as sy

Re: [racket] PyonR: A Python Implementation for Racket

2014-11-14 Thread Animesh Pandey
Hi, This looks like an awesome thing. If I am not wrong PyonR will help in running Python on DrRacket? On Fri, Nov 14, 2014 at 6:06 PM, Pedro Ramos wrote: > Hello, > > I'm releasing an implementation of the Python language for Racket, which I > have been developing over the last year as my maste

Re: [racket] Determining if already defined?

2014-11-14 Thread Carl Eastlund
If you install the package "mischief", you can use define-if-unbound and similar forms. http://pkg-build.racket-lang.org/doc/mischief@mischief/Definitions_and_Binding_Forms.html Carl Eastlund On Fri, Nov 14, 2014 at 5:27 PM, Kevin Forchione wrote: > Hi guys, > Is there a way to determine, from

Re: [racket] Determining if already defined?

2014-11-14 Thread Jack Firth
identifier-binding returns #f for a binding that is either unbound or a top-level definition On Fri, Nov 14, 2014 at 2:27 PM, Kevin Forchione wrote: > Hi guys, > Is there a way to d

[racket] PyonR: A Python Implementation for Racket

2014-11-14 Thread Pedro Ramos
Hello, I'm releasing an implementation of the Python language for Racket, which I have been developing over the last year as my master thesis in Information Systems and Computer Engineering at Instituto Superior Técnico, Lisbon. It currently supports most of Python 2.7's statements and some of it

[racket] Determining if already defined?

2014-11-14 Thread Kevin Forchione
Hi guys, Is there a way to determine, from within a macro, if something is already defined and, so that the macro can define it if not and skip the definition if not? -Kevin Racket Users list: http://lists.racket-lang.org/users

Re: [racket] FFI - pointer to an array of structs

2014-11-14 Thread Bartosz Przygoda
Well, the native function doesn't need a size, becaue it is responsible for an allocation - that's why it needs a pointer to a pointer. As I understand i only need to allocate memory for this pointer and for one integer whose address is passęd as well, and this is where native function writes the s

Re: [racket] Extending DrRacket with non-text tabs

2014-11-14 Thread Robby Findler
On Fri, Nov 14, 2014 at 5:36 AM, Dmitry Pavlov wrote: > Robby, > >> Sorry for the long delay in replying. > > > Never mind---I have been distracted by other things recently, and > now I am back to work on this, so your reply is in fact just in time, > thanks :) > >> You should be able to use handl

[racket] FFI - pointer to an array of structs

2014-11-14 Thread Bartosz Przygoda
Hello, I'm struggling with binding libgphoto2. The function: gp_camera_get_storageinfo puts the resulting structures in an array and therefore its argument is: `CameraStorageInformation**`. I've mapped the st

Re: [racket] Extending DrRacket with non-text tabs

2014-11-14 Thread Dmitry Pavlov
Robby, Sorry for the long delay in replying. Never mind---I have been distracted by other things recently, and now I am back to work on this, so your reply is in fact just in time, thanks :) You should be able to use handler:insert-format-handler to open your frame when a file with your exte