[racket-users] Re: Racket internal error when trying to create an executable

2016-03-31 Thread George Neuner
On Thu, 31 Mar 2016 16:08:56 -0700 (PDT), Alex Harsanyi wrote: >Hi, > >I'm getting an error when trying to create an executable for a program that >uses the math/statistics module. The simplest example that reproduces the >issue is: > > #lang racket > (require

[racket-users] ANN #lang agile

2016-03-31 Thread Benjamin Greenman
Finally, the language for agile software development. https://github.com/bennn/agile (raco pkg install agile) Featuring: - Concise, unambiguous syntax - Time-tested suite of primitive datatypes

Re: [racket-users] How to call a macro on each element of a list

2016-03-31 Thread Neil Van Dyke
I found a solution to my problem. I realised that it was better to use a function instead of a macro to generate the code. I created a list and appended the different parts of the code I wanted to generate in bottom up manner. eval-ing the list can run the code. If that works for you, good.

Re: [racket-users] IO in racket is painful

2016-03-31 Thread m . eckenbach
Isn't it true that the scanf format string is just a poor man's regular expression pattern (i.e. just character classes) that however also allows you to specify how to convert matches? It may be a succinct notation, but it is also misleading (for example, a single space in the format string

[racket-users] Racket internal error when trying to create an executable

2016-03-31 Thread Alex Harsanyi
Hi, I'm getting an error when trying to create an executable for a program that uses the math/statistics module. The simplest example that reproduces the issue is: #lang racket (require math/statistics) (let* ([s empty-statistics] [s (update-statistics s 1)] [s

Re: [racket-users] How to call a macro on each element of a list

2016-03-31 Thread cnandi
On Thursday, March 31, 2016 at 1:00:55 AM UTC-7, cna...@cs.washington.edu wrote: > On Wednesday, March 30, 2016 at 5:37:08 PM UTC-7, Neil Van Dyke wrote: > > Does either the below `fun-now` or `make-fun-for-later` do what you want? > > > > BEGIN CODE > > #lang racket/base > > > >

Re: [racket-users] FFI | Unions

2016-03-31 Thread Matthew Flatt
At Thu, 31 Mar 2016 15:00:35 -0700 (PDT), Pedro Caldeira wrote: > Hello everyone, > > I am trying to use a set of bindings to SDL2 and I am at loss on how to use C > unions. > > If I understood correctly both make-union-type and _union procedures create a > new ctype; but how do you actually

[racket-users] FFI | Unions

2016-03-31 Thread Pedro Caldeira
Hello everyone, I am trying to use a set of bindings to SDL2 and I am at loss on how to use C unions. If I understood correctly both make-union-type and _union procedures create a new ctype; but how do you actually create instances of these unions? Thank you for your attention. -- You

Re: [racket-users] using a different "scribble.tex"

2016-03-31 Thread Spencer Florence
Oops, guess I forgot to update this thread. This commit ( https://github.com/racket/scribble/commit/2881ef290ddfef6b645eaabc997c9bd6fddaa641) tries to address this problem. Roughly, you can use `latex-defaults+replacements` to replace `scribble-load-replace.tex` and override the macros that

Re: [racket-users] Embed Racket in C and call Racket procedure

2016-03-31 Thread Anthony Sterrett
On Wednesday, 30 March 2016 22:33:35 UTC-4, Matthew Flatt wrote: > You were close with > > ((dynamic-require 'hw 'hw)) > > but you're missing a quote: > > ((dynamic-require ''hw 'hw)) > > > When you make "base.c" as > > raco ctool --c-mods base.c hw.rkt > > then it's like > > (module

Re: [racket-users] How to call a macro on each element of a list

2016-03-31 Thread cnandi
On Wednesday, March 30, 2016 at 5:37:08 PM UTC-7, Neil Van Dyke wrote: > Does either the below `fun-now` or `make-fun-for-later` do what you want? > > BEGIN CODE > #lang racket/base > > (define conditional-actions >(list (cons (lambda () (= 2 (+ 1 1))) >(lambda ()

Re: [racket-users] serialization of math/array

2016-03-31 Thread Berthold Bäuml
Thanks, but this does not solve the problem. I would need a solution which also works more generally, e.g., for arrays nested in structs etc.. As far as I understand, the canonical way to extend serialize is to add the prop:serializable property to the struct representing an array. But that

Re: [racket-users] using a different "scribble.tex"

2016-03-31 Thread Tim Jervis
Commenting out scribble.tex with an open comment in prefix.tex and closing comment in scribble.tex works, to a point. It hides scribble.tex, but it also hides any dynamic inclusions such as figure.tex. I have been trying to use the longtable package in preference to the stabular-based package