Re: Parameters considered often harmful (was: Re: [racket-users] Re: A (long) question regarding parameters and scope)

2018-08-03 Thread Carlos Lopez
Hello everyone, Thanks for all the responses, they have been very clarifying. I'd like to add the following for your consideration of using parameters. When using the plot package, I really like to setup common parameters using parameterize and then tweak others using the named parameters in

[racket-users] Re: A (long) question regarding parameters and scope

2018-08-02 Thread Carlos Lopez
kt > > Could you post some code illustrating what you are trying to do and does > not work? > > Alex. > > On Thursday, August 2, 2018 at 10:58:35 AM UTC+8, Carlos Lopez wrote: >> >> Hello Racket friends, >> >> I was playing with the plot module (w

[racket-users] A (long) question regarding parameters and scope

2018-08-01 Thread Carlos Lopez
Hello Racket friends, I was playing with the plot module (which is very nice, btw) and discovered that the parameter plot-decorations? is ignored when plotting to a new window. The file plot3d.rkt (plot\plot-gui-lib\plot\private\gui) is where plot-new-window? makes a distinction of the cases

[racket-users] Re: linking with raco ctool : unable to find libracket3mxxxxxxx.lib

2017-03-15 Thread Carlos Lopez
Thanks for the clarification. On Tuesday, March 14, 2017 at 11:30:57 AM UTC-4, Alexander McLin wrote: > You need to compile Racket from source to generate the .lib file, it is not > distributed with the installation. > > You need to make sure the source is the same version as your installed

[racket-users] linking with raco ctool : unable to find libracket3mxxxxxxx.lib

2017-03-13 Thread Carlos Lopez
Hi, I'm compiling portaudio's callbacks.dll to have it with debug symbols but I'm running into a configuration issue. when running raco ctool --ld ... I get the message that libracket3mxxx.lib is not found. I tried running racket -l setup/winvers but did not see any change. what would be

Re: [racket-users] defstruct* fails for a (long long long) long struct name

2017-03-11 Thread Carlos Lopez
tly. > > > * "They" = the struct's name + the first field's name (if present) + some > padding > > > On Sat, Mar 11, 2017 at 5:36 PM, Carlos Lopez <rcou...@gmail.com> wrote: > Hi, > > > > While writing some documentation in scribble,

[racket-users] defstruct* fails for a (long long long) long struct name

2017-03-11 Thread Carlos Lopez
Hi, While writing some documentation in scribble, I've discovered that using defstruct with really long names gives an error: the following code fails: #lang scribble/manual @require[@for-label[racket]] @defstruct*[(abcdefghijklmnopqrstuvwxyzABCDEEFGHIJKLMNOPQRSTUVWX-Z ABCD) ()]{} yet

[racket-users] Cpointers lose tags when moving between places

2016-09-14 Thread Carlos Lopez
Hi Everyone, I'm moving cpointers between places and discovered that when these have multiple tags attached, they appear untagged at the receiving end. Here's a quick test file to show the problem: ; Worker file: #lang racket (require racket/place ffi/unsafe

Re: [racket-users] Creating c pointers with multiple tags by default

2016-07-01 Thread Carlos Lopez
`#f` if `#:tag` is not also provided. > > I'll push a repair. Meanwhile, you can add `#:tag #f` after your > `c->scheme` function to work around the bug. > > At Thu, 30 Jun 2016 17:07:57 -0700 (PDT), Carlos Lopez wrote: > > Hi Everyone, > > > > I'm writing a c wr

[racket-users] Creating c pointers with multiple tags by default

2016-06-30 Thread Carlos Lopez
Hi Everyone, I'm writing a c wrapper for a small part of the VTK (vtk.org) library and would like to see if it is possible to generate c pointers with multiple tags. VTK uses inheritance extensively so it is possible to write functions in C that take different objects as parameters as long as

Re: [racket-users] Using Futures with FFI functions

2016-06-27 Thread Carlos Lopez
ending a future. Supporting that operation is not out of the > question, but I don't think it will be easy. > > Would using places work in this case --- creating one or more places on > start-up to serve data from the C library? > > At Fri, 24 Jun 2016 08:05:25 -0700 (PDT), Ca