Re: [racket-users] [racket users] %app question

2020-08-13 Thread Jens Axel Søgaard
Den tor. 13. aug. 2020 kl. 21.55 skrev Kevin Forchione : > Hi guys, > > Pollen makes use of something like this: > > (require syntax/parse/define) > > (define-simple-macro (#%top . x) 'x) > > > and it comes in handy in some of my projects. But I’m wondering if there’s > an equivalent for

Re: [racket-users] macro hiding in raco expand

2020-08-10 Thread Jens Axel Søgaard
et Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/94E20736-F1F7-4073-B3FA-505ADD71DB4F%40dcc.

Re: [racket-users] namespaces + eval + reader

2020-07-31 Thread Jens Axel Søgaard
Den fre. 31. jul. 2020 kl. 04.01 skrev Shriram Krishnamurthi < shri...@gmail.com>: > want to create a namespace for (say) the BSL language in DrRacket. > Critically, I need the *reader* to be aligned with this language. > Otherwise, small semantic discrepancies creep in. ... > The expressions

Re: [racket-users] combining require, build-path, and namespaces

2020-07-21 Thread Jens Axel Søgaard
Den tir. 21. jul. 2020 kl. 20.25 skrev Sorawee Porncharoenwase < sorawee.pw...@gmail.com>: > This is weird. I usually parameterize current-namespace when using > namespace-* functions, and in this particular case it works fine. > > On Tue, Jul 21, 2020 at 11:05 AM Shriram Krishnamurthi > wrote:

Re: [racket-users] combining require, build-path, and namespaces

2020-07-21 Thread Jens Axel Søgaard
Den tir. 21. jul. 2020 kl. 17.45 skrev Shriram Krishnamurthi < shri...@gmail.com>: > How I can combine these three? I want to do something like this: > > (define n (make-base-namespace)) > (define p (build-path f)) > (eval `(require ,p) n) > > Racket doesn't like that: bad syntax for

Re: [racket-users] Font bearing - lining up texts and outlines

2020-07-21 Thread Jens Axel Søgaard
Den man. 20. jul. 2020 kl. 19.14 skrev Jens Axel Søgaard < jensa...@soegaard.net>: > Thanks for the response. > > I have attempted to go in your foot steps and have made a single file > example, so it is easy to try out. > Just to recap, the goal is to get the vertical bearin

Re: [racket-users] Layout + styling in racket/gui

2020-07-07 Thread Jens Axel Søgaard
Hi Travis, Den tir. 7. jul. 2020 kl. 00.18 skrev Travis Kiefer : > Thank you for the example links. The spreadsheet example gets closer to > the right direction of a non-trivial example. What's missing from these is > the ability to add styles to the elements... Background colors, gradients, >

Re: [racket-users] Layout + styling in racket/gui

2020-07-06 Thread Jens Axel Søgaard
ps.com > <https://groups.google.com/d/msgid/racket-users/b88bc758-75bb-4620-b29f-c4f9b1ddf915o%40googlegroups.com?utm_medium=email_source=footer> > . > -- -- Jens Axel Søgaard -- You received this message because you are subscribed to the Google Groups "Racket Users" gro

Re: [racket-users] Is it possible to simulate FEXPRs in Racket?

2020-06-07 Thread Jens Axel Søgaard
Den søn. 7. jun. 2020 kl. 14.09 skrev Siyuan Chen : Unfortunately, this code doesn't work, because it lacks two functions, > `get-current-env` and `extends-env`. > These are not available since static lexical scope makes it possible for the compiler to determine where a variable is stored at

Re: [racket-users] Some stuff about "case".

2020-06-01 Thread Jens Axel Søgaard
Den man. 1. jun. 2020 kl. 20.53 skrev Christopher Lemmer Webber < cweb...@dustycloud.org>: > As I started typing this email and looking into the definition of case, > I realized my assumptions are wrong. > > What I needed: something like case which dispatches on symbols, except > not auto-quoting

Re: [racket-users] Re: How to make DrRacket interactions window use the same reader as the definitions window?

2020-05-29 Thread Jens Axel Søgaard
There may be other solutions, but one way to control the evaluation of expressions entered in the REPL is to provide an #%top-interaction, which sets the appropriate parameters. /Jens Axel -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To

Re: [racket-users] Re: Typing lag with DrRacket on Linux

2020-05-28 Thread Jens Axel Søgaard
gt; >>> > > >>> > >>> > > >>> > >>> > > On Friday, February 9, 2018 at 7:00:18 PM UTC-10, Evan Whitmer >>> wrote: >>> > >>> > >> >>> > >>> > >> I, too, am

Re: [racket-users] coding style query

2020-05-27 Thread Jens Axel Søgaard
Den ons. 27. maj 2020 kl. 19.56 skrev Hendrik Boom : > Is there an accepted convention about how to use a symbol used in a > program within a comment so it's clear the comment is using it as a > program symbol and not as an ordinary English word? > Not sure. Sometimes I surround the symbol with

Re: [racket-users] Function that potentially can return more than one value

2020-05-27 Thread Jens Axel Søgaard
Den ons. 27. maj 2020 kl. 19.27 skrev George Neuner : > > On 5/27/2020 6:34 AM, Jens Axel Søgaard wrote: > > > > In standard Racket an application doesn't communicate how many values > > a function is expected to produce. > > You can ask: see procedure-result-ar

Re: [racket-users] Migrating from a "model-driven" language framework to Racket

2020-05-25 Thread Jens Axel Søgaard
ubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/3ee19998-88bf-48f7-8129-c1be9419d4c9%40googlegroups.com > <https://grou

Re: [racket-users] Re: Practical HTTP requests?

2020-05-17 Thread Jens Axel Søgaard
is >>> together, I'm struggling as a new user to figure out what libraries are >>> recommended and, more importantly, how to put them together to accomplish >>> the above points. >>> >>> Thank you. >>> >>> p.s. The Racket documentation is by far the

Re: [racket-users] Re: Strange behaviour of ptr-ref + ptr-add(?)

2020-05-10 Thread Jens Axel Søgaard
iving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/CABNTSaFmfgTpTrWzfcxL%2BxQCqtge5Ls1eKW%2Bp0ftd%3D0q554ALg%40mail.gmail.com > <https://groups.google.c

Re: [racket-users] A convenient assertion macro - with one caveat

2020-05-07 Thread Jens Axel Søgaard
ogle.com/d/msgid/racket-users/CACUENrLX%3D9ix2kv9MNpp3nNoSN%3DsWBx%2BFTRdwNyNA7EiVWQ0mA%40mail.gmail.com > <https://groups.google.com/d/msgid/racket-users/CACUENrLX%3D9ix2kv9MNpp3nNoSN%3DsWBx%2BFTRdwNyNA7EiVWQ0mA%40mail.gmail.com?utm_medium=email_source=footer> > . > -- -- Jens A

Re: [racket-users] a minor regexp question (and a how-could-I-answer-it-myself? question)

2020-05-01 Thread Jens Axel Søgaard
Den fre. 1. maj 2020 kl. 14.20 skrev Tim Hanson : > hi, just now I'm debugging a regular expression and trying to understand > why this: > > > (regexp-match-positions #rx"[-+][0-9]+" "-0500") > '((0 . 5)) > > works as I expect, whereas this: > > > (regexp-match-positions #rx"[-+][0-9]{4}"

Re: [racket-users] Question on test failures sorting a BTS

2020-04-27 Thread Jens Axel Søgaard
> "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/e5e05ebe-87ed-4d49-8a

Re: [racket-users] rename-in issue

2020-04-09 Thread Jens Axel Søgaard
Den tor. 9. apr. 2020 kl. 11.04 skrev Lucas Liendo : > Hi everyone! I've a very dumb question (as still not very experienced > Racket programmer), I'm doing the following: > > (require net/url > web-server/dispatchers/filesystem-map > (rename-in

Re: [racket-users] BLAS and LAPACK bindings for operations over math/matrix

2020-03-28 Thread Jens Axel Søgaard
Den lør. 28. mar. 2020 kl. 12.37 skrev Pratyush Das : > So, this is what I found when I was looking for a Racket library with BLAS > and LAPACK bindings - > https://github.com/soegaard/flmatrix > https://github.com/farr/PLT-Racket-Linear-Algebra-Bindings > > But they implement their own matrices

Re: [racket-users] Help with vector-sort

2020-02-15 Thread Jens Axel Søgaard
Den lør. 15. feb. 2020 kl. 13.44 skrev greadey : > I have written a programme to compute a bootstrapped mean etc. I > successfully wrote it using lists both untyped and in typed/racket. > I am interested in optimising the code and having seen that typed racket > performs faster (for lists) I am

Re: [racket-users] resources for learning JS / React?

2020-01-26 Thread Jens Axel Søgaard
-993a-210a364c70f7%40googlegroups.com > . > > > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@

Re: [racket-users] Web server + authentication

2020-01-23 Thread Jens Axel Søgaard
Den tor. 23. jan. 2020 kl. 01.47 skrev Matthew Butterick : > I concur on Postmark. For 2+ yrs I've used it with the Racket web server > for mbtype.com. I pass the server settings to `smtp-send-message` from ` > net/smtp`. > > On 22 Jan 20, at 3:00 AM, Bogdan Popa wrote: > > I like using

Re: [racket-users] Web server + authentication

2020-01-21 Thread Jens Axel Søgaard
cr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/93a77b99-f238-4315-9f10-0b1aa6929262%40googlegroups.com > <https://groups.google.com/d/msgid/racket-users/93a77b99-f238-4315-9f10-0b1aa6929262%40googlegroups.com?utm_medium=email_sourc

Re: [racket-users] GUI (get-directory)

2019-12-05 Thread Jens Axel Søgaard
the web visit > https://groups.google.com/d/msgid/racket-users/67dff8ff-cbd2-4d26-8901-34fc2be43928%40googlegroups.com > <https://groups.google.com/d/msgid/racket-users/67dff8ff-cbd2-4d26-8901-34fc2be43928%40googlegroups.com?utm_medium=email_source=footer> > . > -- -- Jens Ax

Re: [racket-users] Question regarding use of Scribble PDF button (and scribble-math) under Windows

2019-11-25 Thread Jens Axel Søgaard
Den tir. 26. nov. 2019 kl. 01.18 skrev E Comer : > Hi Racket friends: > > The running of the following code produce an error under Windows, when I > try to generate a PDF with the Scribble PDF button under DrRacket 7.5. > > Which error? /Jens Axel -- You received this message because you are

[racket-users] Parameters and dynamic-require

2019-11-10 Thread Jens Axel Søgaard
Hi All, How can I set a parameter used in a dynamically required module? Example: A parameter `out` is defined in a module p. Before requiring (dynamically) module a, we want to set the parameter. The attempt below fails. (module p racket/base (define out (make-parameter 'original-value))

Re: [racket-users] eq? of quoted expressions

2019-10-25 Thread Jens Axel Søgaard
Den fre. 25. okt. 2019 kl. 16.35 skrev wanderley.guimar...@gmail.com < wanderley.guimar...@gmail.com>: > Why (eq? (quote a) (quote a)) is #t but (eq? (quote (a)) (quote (a))) > is #f? I would expect that if (quote (a)) was a mutable pair but it > is not since (quote (a)) returns #f. It seems

Re: [racket-users] Some guidance in setting up Racket as a game scripting language.

2019-10-07 Thread Jens Axel Søgaard
Den man. 7. okt. 2019 kl. 20.15 skrev Hans Sjunnesson < hans.sjunnes...@gmail.com>: > I'm sorry Jens - I'm using Visual Studio on Windows to compile this > project. > I've initially built libracket, and SDL, which I'm linking against. > I can zip the entire solution and upload it somewhere for

Re: [racket-users] Some guidance in setting up Racket as a game scripting language.

2019-10-05 Thread Jens Axel Søgaard
Den ons. 2. okt. 2019 kl. 15.31 skrev Hans Sjunnesson < hans.sjunnes...@gmail.com>: > This is a hobby project of mine - a game in C, using SDL. I'd like to only > use C for the rendering part - rather use a scripting language for all of > the gameplay code. I want to try to use Racket for this -

[racket-users] Racket Stories

2019-10-02 Thread Jens Axel Søgaard
Hi All, As the Slack users already know, I have created a little web-site to share interesting stories/links/blogs/packages/papers on everything Racket-related. https://racket-stories.com Click "submit" to submit your own stories. /Jens Axel -- You received this message because you are

Re: [racket-users] General ways and concrete examples of approaching web dev

2019-09-30 Thread Jens Axel Søgaard
Hi Marc, Den tir. 24. sep. 2019 kl. 21.28 skrev Marc Kaufmann < marc.kaufman...@gmail.com>: > TL;DR: What are some patterns/approaches for web sites for which Racket is > particularly suited *and* for which you can point at decently written up > examples in Racket or other languages that share

Re: [racket-users] syntax-parse ellipsis question

2019-09-21 Thread Jens Axel Søgaard
Den lør. 21. sep. 2019 kl. 22.15 skrev Jonathan Simpson : > Given this macro that I'm experimenting with: > > (syntax-parse #'(1 2 2 a 2 2 b 2 c) [(1 (~seq n:nat ...+ x) ...) #'((n ... > x) ...)]) > > How would I change it so that it returns #'(2 2 a 2 2 b 2 c) instead of > #'((2 2 a) (2 2 b) (2

Re: [racket-users] How to disable back button in web application

2019-09-21 Thread Jens Axel Søgaard
Den lør. 21. sep. 2019 kl. 10.05 skrev Marc Kaufmann < marc.kaufman...@gmail.com>: > Could I use the send/forward to essentially disable forms if I use as the > `action` attribute on the form an (embed-url ...), which will no longer > work later on? This will probably through an error if people

Re: [racket-users] How to disable back button in web application

2019-09-20 Thread Jens Axel Søgaard
Den fre. 20. sep. 2019 kl. 13.51 skrev Marc Kaufmann < marc.kaufman...@gmail.com>: > Thanks Jens, yes the send/forward seems to at least address a few of the > cases that I have - not sure if it disallows the forms unless I use > continuations in the forms (right now I am not, mostly just sending

Re: [racket-users] How to disable back button in web application

2019-09-20 Thread Jens Axel Søgaard
oups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/7e356eb4-e886-4f9c-90cd-0db658d14a91%40googlegroups.com > <https://groups.google.com/d/msgid/racket-users/7e356eb4-e886-4f9c-90cd-0db658d14a91%40googlegroups.com?utm_medium=email_source=fo

Re: [racket-users] FFI and immovable pointers for input/output (featuring automatic cropping for picts)

2019-09-19 Thread Jens Axel Søgaard
Den tor. 19. sep. 2019 kl. 17.05 skrev Matthew Flatt : > I don't think you need immobile memory. There are no callbacks to > Racket involved with `cairo_recording_surface_ink_extents`, and you're > not using `#:blocking? #t`, so no memory-moving GC will happen during > the foreign call. That

[racket-users] FFI and immovable pointers for input/output (featuring automatic cropping for picts)

2019-09-19 Thread Jens Axel Søgaard
Hi All, I am working on automatic cropping for picts. Here automatic means the pict will be cropped (or extended) to include what will be inked when the pict is drawn. The function crop/inked seems to work fine (see attached file), but the functions in draw/unsage/cairo uses the following for

Re: [racket-users] Running Big Bang applications in the browser

2019-09-16 Thread Jens Axel Søgaard
web visit > https://groups.google.com/d/msgid/racket-users/8ece7940-39d0-42a6-9ede-1ca2f9b071c1%40googlegroups.com > <https://groups.google.com/d/msgid/racket-users/8ece7940-39d0-42a6-9ede-1ca2f9b071c1%40googlegroups.com?utm_medium=email_source=footer> > . > -- -- Je

Re: [racket-users] transparency in Pict

2019-09-10 Thread Jens Axel Søgaard
Den tir. 10. sep. 2019 kl. 17.04 skrev Hendrik Boom : > On Tue, Sep 10, 2019 at 03:23:43PM +0200, Jens Axel Søgaard wrote: > > > I have extended "clipped" to handle regions defined by more than one > path. > > Now (clipped c ... p) will make a region from the curv

Re: [racket-users] transparency in Pict

2019-09-10 Thread Jens Axel Søgaard
Den tir. 10. sep. 2019 kl. 14.54 skrev George Neuner : > > Or create a region with a hole through it and use it to clip the drawing. > Great suggestion. That's much better than using pict->bitmap. I have extended "clipped" to handle regions defined by more than one path. Now (clipped c ... p)

Re: [racket-users] transparency in Pict

2019-09-09 Thread Jens Axel Søgaard
sit > https://groups.google.com/d/msgid/racket-users/20190909182018.74o322qfwehrmqaz%40topoi.pooq.com > . > -- -- Jens Axel Søgaard -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receivi

Re: [racket-users] Downloadable tutorials (e.g. on github)? Tutorial example source codes samples attached to DrRacket instalation?

2019-09-09 Thread Jens Axel Søgaard
from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/254a1ad3-637c-46d1-9466-3a10599af180%40googlegroups.com > <https://grou

Re: [racket-users] Listing All Programs

2019-09-05 Thread Jens Axel Søgaard
Den tor. 5. sep. 2019 kl. 23.27 skrev Josh Rubin : > > On 9/5/2019 9:05 AM, Adam Golding wrote: > > What is the shortest/smallest racket program (ithat enumerates all and > > only valid racket programs? > > > > You might be interested in the logic-programming/constraint-solving > language named

Re: [racket-users] I'd like clarification about scribble and pollen.

2019-08-28 Thread Jens Axel Søgaard
Den ons. 28. aug. 2019 kl. 20.45 skrev Hendrik Boom : > > There is even a documented trick that enables a user to > discover the s-expression resulting from a particular @-expression. > But this trick does not show the s-expression resulting from an entire > #lang scribble file. Is there a way

Re: [racket-users] running the wrong sqlite3

2019-08-20 Thread Jens Axel Søgaard
t; "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/433b3b19-e6ef-43b6-957f-e58da37675f6%

Re: [racket-users] Unwelcome surprises using Scribble on a 90,000-word novel

2019-08-02 Thread Jens Axel Søgaard
Den tor. 1. aug. 2019 kl. 13.25 skrev Hendrik Boom : > (2) When I use include-section from the main file, the actual text in > the main file appears first, and the included files are all saved up ane > emitted after the text in the main file. I expected the sections to be > included where the

Re: [racket-users] Calling function with Scribble text as argument(s)

2019-07-30 Thread Jens Axel Søgaard
Den tir. 30. jul. 2019 kl. 19.02 skrev Hendrik Boom : > I've found this as an example for getting coloured text: > > #lang scribble/base > > @(require scribble/core) > > @(define (colorize #:color c . content) > (elem #:style (style #f (list (color-property c))) >

Re: [racket-users] Re: (ninth RacketCon) videos

2019-07-22 Thread Jens Axel Søgaard
> > > On Friday, July 19, 2019 at 12:19:44 PM UTC-7, Matthew Flatt wrote: >> >> Individual videos for this year's RacketCon talks are now available: >> >> https://www.youtube.com/playlist?list=PLXr4KViVC0qJp4_2uTTAOjt-4URQBAR4c >> > Den man. 22. jul. 2019 kl. 23.36 skrev Kees-Jochem Wehrmeijer <

Re: [racket-users] Re: Thinking in scheme / racket

2019-07-11 Thread Jens Axel Søgaard
Den tor. 11. jul. 2019 kl. 15.40 skrev Bob Heffernan < bob.heffer...@gmail.com>: > On 19-07-11 09:31, James Geddes wrote: > > Indeed, I would have thought that the calculation time would be > > entirely dominated by the test for primality, and especially what > > happens once the candidate primes

[racket-users] Specializing functions accepting keywords

2019-07-10 Thread Jens Axel Søgaard
Consider the following fishy example wherein we try to reuse a function with keyword arguments. (define (fish #:name[name #f] #:color [color #f] #:studio [studio #f] #:eyes[eyes 2]) (~a "The fish " name " is " color ", appears in a

Re: [racket-users] HTML rendering

2019-06-21 Thread Jens Axel Søgaard
Den fre. 21. jun. 2019 kl. 21.10 skrev James Platt : > I've been looking at HTML rendering in Racket and the Browser package > looks interesting, especially since it can execute Racket code from a > special HTML tag. > > https://docs.racket-lang.org/browser/index.html > > The problem is that the

Re: [racket-users] for loop: any way to access the whole list?

2019-06-14 Thread Jens Axel Søgaard
he web visit > https://groups.google.com/d/msgid/racket-users/07ad5ce3-0ba8-48a5-a356-5cb1545de4cd%40googlegroups.com > <https://groups.google.com/d/msgid/racket-users/07ad5ce3-0ba8-48a5-a356-5cb1545de4cd%40googlegroups.com?utm_medium=email_source=footer> > . > For more options,

Re: [racket-users] Re: How would you implement autoquoted atoms?

2019-04-23 Thread Jens Axel Søgaard
because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --

Re: [racket-users] question about matching with "(? ...)"

2019-04-21 Thread Jens Axel Søgaard
; > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.

Re: [racket-users] make extensions or replacements

2019-04-16 Thread Jens Axel Søgaard
obscure. > > > > Sure, I could invent something. But chances are, someone else already > > has invented something better than I'd improvise. > > > > -- hendrik > > -- > You received this message because you are subscribed to the Google Groups > "Racket U

Re: [racket-users] Pattern: reusing the same name in macro-generated definitions

2019-04-05 Thread Jens Axel Søgaard
Yes! fre. 5. apr. 2019 kl. 13.52 skrev Hendrik Boom : > On Fri, Apr 05, 2019 at 01:35:37PM +0200, Jens Axel Søgaard wrote: > > Den tor. 4. apr. 2019 kl. 21.58 skrev zeRusski >: > > > > (define-simple-macro (define-foo (name:id formal:id ...) body:expr ...) > >

Re: [racket-users] Pattern: reusing the same name in macro-generated definitions

2019-04-05 Thread Jens Axel Søgaard
Den tor. 4. apr. 2019 kl. 21.58 skrev zeRusski : (define-simple-macro (define-foo (name:id formal:id ...) body:expr ...) >> (begin >> (define (foo-impl formal ...) body ...) >> (define-syntax (name stx) >> (syntax-parse stx >> [(_ . args) #'(foo-impl . args)] >>

Re: [racket-users] color-maps for the plot package

2019-03-22 Thread Jens Axel Søgaard
t; >> (plot (list (function sin -5 5) (function cos -5 5))) >> >> If others think that (1) and (2) are worthwhile doing, I will submit a >> PR, so >> we can discuss the API an implementation over something more concrete. I >> am >> open discussion

Re: [racket-users] color-maps for the plot package

2019-03-20 Thread Jens Axel Søgaard
Den tir. 19. mar. 2019 kl. 23.03 skrev Alex Harsanyi : > On Tuesday, March 19, 2019 at 9:53:23 PM UTC+8, Jens Axel Søgaard wrote: >> >> This is a great idea. >> >> It would be really nice to be able to use the colors also from non-plot >> programs. >> &

Re: [racket-users] color-maps for the plot package

2019-03-19 Thread Jens Axel Søgaard
FWIW see also the Mathematica documentation on ColorSchemes and related functions for inspiration. https://reference.wolfram.com/language/guide/ColorSchemes.html /Jens Axel -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from

Re: [racket-users] color-maps for the plot package

2019-03-19 Thread Jens Axel Søgaard
lots for a lot less effort. > > Do others think this would be useful? > > Alex. > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to

Re: [racket-users] Cannot use case+else inside match+else

2019-02-27 Thread Jens Axel Søgaard
oup. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- Jens Axel Søgaard -- You received this message because you are subscribed to the Google G

Re: [racket-users] Help with generators from python land!

2019-02-20 Thread Jens Axel Søgaard
Den ons. 20. feb. 2019 kl. 22.25 skrev Dave McDaniel : > Hello, > > I have interest in picking up racket and have done some koans and also > have been doing the racket track on exercism. > > There is a fairly simple exercise called `etl` on exercism related to > taking a hash for scoring scrabble

Re: [racket-users] Wishlist for regexen: x mode, named captures, embeddable regexn

2019-02-14 Thread Jens Axel Søgaard
Den tor. 14. feb. 2019 kl. 16.16 skrev Greg Hendershott < greghendersh...@gmail.com>: > > When I do use regexps in Racket, I almost always use them with `match` > and the `pregexp` pattern, to bind the groups to identifiers. > > There is some space between trivial regexps and a full/"real"

Re: [racket-users] Loading foreign libraries on Windows

2019-02-12 Thread Jens Axel Søgaard
int me to > the file(s).] > > George > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com.

Re: [racket-users] Re: nested for loops and suggested alternatives

2019-02-10 Thread Jens Axel Søgaard
rove that (the timings are old - perhaps it has become better already). /Jens Axel -- -- Jens Axel Søgaard -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it,

Re: [racket-users] Guide and reference

2019-02-08 Thread Jens Axel Søgaard
Den ons. 6. feb. 2019 kl. 12.33 skrev James Geddes : > There was a recent discussion on this list about the Racket guides and > manuals. Without wishing to comment on the suggestions therein, I did want > to say what I really, really like about the Racket documentation. > > There are two things.

Re: [racket-users] Real-world examples of XML usage?

2019-02-04 Thread Jens Axel Søgaard
Den søn. 3. feb. 2019 kl. 05.57 skrev David Storrs : > There was a discussion in another thread lately about various ways of > representing XML. It got me thinking, and I wanted to ask about > people's practical experience. > > What projects have y'all done where XML was the best choice for a >

Re: [racket-users] Python's append vs Racket's append and helping novices understand the implications

2019-02-03 Thread Jens Axel Søgaard
re meeting >> with GvR), I used Python’s append and was annoyed beyond belief. ]] >> >> >> -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, s

Re: [racket-users] Beginning of the end for googlegroups?

2019-01-29 Thread Jens Axel Søgaard
message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. &g

Re: [racket-users] Problem controlling macro expansion

2019-01-27 Thread Jens Axel Søgaard
Den søn. 27. jan. 2019 kl. 22.06 skrev Jonathan Simpson : > I'm having macro troubles with a DSL I'm writing. I have a macro that > looks something like this: > > (define-syntax (query stx) > (let ([lines (cdr (syntax->datum stx))]) > (define lines-syntax-tree (parse-to-tree lines)) >

Re: [racket-users] Weird behavior when a ‘set’ is the result of ‘eval’

2019-01-10 Thread Jens Axel Søgaard
; > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://gro

Re: [racket-users] Re: Functional augmenting

2019-01-08 Thread Jens Axel Søgaard
Den tir. 8. jan. 2019 kl. 21.40 skrev David Storrs : > > This. In an ideal world, before/after/around would be parameterized so > that you can make the change only for a defined scope. > Still, the intent was never that it would extend its effects outside the > current module. > In that case

Re: [racket-users] Help debugging a custom language read/expansion error

2018-12-30 Thread Jens Axel Søgaard
Den søn. 30. dec. 2018 kl. 22.33 skrev Jonathan Simpson : > On Sunday, December 30, 2018 at 3:58:50 PM UTC-5, Jens Axel Søgaard wrote: > >> The error >> >> line: bad syntax >> (line (offset 0) (type (string8 "string")) (test (strtest "MZ"

Re: [racket-users] Help debugging a custom language read/expansion error

2018-12-30 Thread Jens Axel Søgaard
PE executable (MS-Windows) > >>(0x3c.l) string LX\0\0 LX executable (OS/2) > > I know that the procedure application will eventually fail because > magic-test doesn't return a function. This code is a work in progress. I > just want to know if the reading/expansion is

Re: [racket-users] hackernews

2018-12-29 Thread Jens Axel Søgaard
Den lør. 29. dec. 2018 kl. 19.48 skrev Tomasz Rola : > and last but not least, > > http://scheme.dk/planet/ > http://planet.lisp.org/ > > Apropos - if you want your blog on Planet Scheme, send me a mail. /Jens Axel -- You received this message because you are subscribed to the Google Groups

Re: [racket-users] Reasons not to use match or define/match?

2018-12-17 Thread Jens Axel Søgaard
Den man. 17. dec. 2018 kl. 16.58 skrev Will Jukes : > After learning more Haskell I've been playing around with match and > define/match, and I'm wondering if there's any particular reason to prefer > more traditional Scheme forms over match (I vastly prefer match in most > cases). Glancing at

Re: [racket-users] hackernews

2018-12-15 Thread Jens Axel Søgaard
Den fre. 14. dec. 2018 kl. 00.53 skrev Neil Van Dyke : > This might be a bad idea, and normally I disapprove of this sort of > thing, but... does anyone want to take on the job of RACKET EVANGELISM > STRIKE FORCE, among a concentration of startup-types and other software > practitioners? > >

Re: [racket-users] Macro introducing definitions from list of ids

2018-12-12 Thread Jens Axel Søgaard
do what I want to do. > > Cheers, > Matt > > > > > > > > > > On Tue, Dec 11, 2018 at 9:13 PM Matt Jadud wrote: > >> Ha! A new question! >> >>> >>>>> -- > You received this message because you are subscribed to the Google

Re: [racket-users] Macro introducing definitions from list of ids

2018-12-11 Thread Jens Axel Søgaard
I'm >> dealing with as I look at my code. Hence, I'm asking for a nudge in the >> right direction. >> > >> > Cheers, >> > Matt >> > >> > >> > >> > -- >> > You received this message because you are subscribed to the Goo

Re: [racket-users] The performance of ‘set’ vs. lists+‘remove-duplicates’

2018-12-04 Thread Jens Axel Søgaard
m it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- Jens Axel Søgaard -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this

Re: [racket-users] arbitrary currying at run time?

2018-10-12 Thread Jens Axel Søgaard
)) > (check-equal? (f 1 2 3 4) (g 2 4)) > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@

Re: [racket-users] Matrix Indexing Operations in "math/matrix"

2018-10-07 Thread Jens Axel Søgaard
> -- > > You received this message because you are subscribed to the Google > Groups "Racket Users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to racket-users+unsubscr...@googlegroups.com. > > For more options, visi

Re: [racket-users] Using DrRacket for MIT Scheme

2018-09-30 Thread Jens Axel Søgaard
I can get load to work as it did earlier? > > On Monday, October 1, 2018 at 1:35:23 AM UTC+5:30, Jens Axel Søgaard wrote: >> >> That's because load only works in the repl. >> >> Consider using require instead. >> >> >> >> Den søn. 30. sep. 201

Re: [racket-users] Using DrRacket for MIT Scheme

2018-09-30 Thread Jens Axel Søgaard
uot;foo.rkt". > > On Monday, October 1, 2018 at 1:22:58 AM UTC+5:30, Jens Axel Søgaard wrote: >> >> >> Den søn. 30. sep. 2018 kl. 21.32 skrev Yasser Hussain < >> yasserhu...@gmail.com>: >> >>> Yeah. I was using the `sicp` package, s

Re: [racket-users] Using DrRacket for MIT Scheme

2018-09-30 Thread Jens Axel Søgaard
Den søn. 30. sep. 2018 kl. 21.32 skrev Yasser Hussain < yasserhussain1...@gmail.com>: > Yeah. I was using the `sicp` package, still wasn't able to get `load` to > work. :( > Can you please go ahead and make the temporary replacement so I can start > working with the sicp package ? :) > #lang

Re: [racket-users] Non-ASCII characters stripped from input in macOS Terminal

2018-09-14 Thread Jens Axel Søgaard
nal REPL handle these > Norwegian characters better? > In the DrRacket REPL this strange translation and stripping does not > happen. > FWIW It is more a terminal problem than a Racket problem. If I paste høy into the terminal, I see h\U+FFC3\U+FFB8y. My "Text Encoding" in the "A

Re: [racket-users] Converting bulleted list to s-expression?

2018-08-18 Thread Jens Axel Søgaard
Den lør. 18. aug. 2018 kl. 03.31 skrev Andrew J : > Hi. In a little side project, I'm looking for an simple Racket-y way to > transform a bulleted list into a tree structure, maybe like sxml. > > As an example, this... > > - a > - b c > - d e f > - g h > > would get transformed into

Re: [racket-users] why doesn't this macro produce an "identifier already defined" error?

2018-05-21 Thread Jens Axel Søgaard
(displayln (format "submac foo = ~a" FOO-ID])) > > (mac (submac)) ; why not an "identifier already defined" error? > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsub

Re: [racket-users] Unicode identifiers

2018-05-16 Thread Jens Axel Søgaard
t; (string->symbol "map") > > Thanks, > Raghu. > > -- > N. Raghavendra <ra...@hri.res.in>, http://www.retrotexts.net/ > Harish-Chandra Research Institute, http://www.hri.res.in/ > > -- > You received this message because you are subscribed to the Googl

Re: [racket-users] Edmond's Blossom Algorithm

2018-05-15 Thread Jens Axel Søgaard
(F (C O Y)) > (G (E C I)) > (H (I W M)) > (I (V G W)) > (J (H Z T)) > (K (O M Q)) > (L (K V T)) > (M (Y R E)) > (N (M D J)) > (O (N K P)) > (P (W R C)) > (Q (T O E)) > (R (C F Y)) > (S (N E U)) > (T (B S H)) > (U (V N K)) > (V (L U Q)) > (W (B O X))

[racket-users] Edmond's Blossom Algorithm

2018-05-14 Thread Jens Axel Søgaard
Context: I have students A, B, C, ..., Z that needs to work in pairs for their exam. Each student has made a wish list with 3 other students that they'd like to work with. I need to find the maximum possible pairing. I think - maybe - that the algorithm I need is Edmond's blossom algorithm. Am

Re: [racket-users] Is there an actor based library for Racket available?

2018-05-10 Thread Jens Axel Søgaard
To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- Jens Axel Søgaard -- You received this message because you are subscribed to the Google

Re: [racket-users] Any place to get keywords and constants of Racket?

2018-05-05 Thread Jens Axel Søgaard
Looking at the documentation of ACE: It seems it is possible to import TextMate / Sublime Grammars. Therefore I think you can use the files used for the Github highlighting directly. /Jens Axel 2018-05-05 17:32 GMT+02:00 Jens Axel Søgaard <jensa...@soegaard.net>: > Look in

Re: [racket-users] Any place to get keywords and constants of Racket?

2018-05-05 Thread Jens Axel Søgaard
gt; > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ra

Re: [racket-users] Cubic bezier curves in racket gui

2018-04-28 Thread Jens Axel Søgaard
isit https://groups.google.com/d/optout. > -- -- Jens Axel Søgaard -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.

Re: [racket-users] New eyes needed for opengl problem

2018-04-08 Thread Jens Axel Søgaard
e the > window bigger the blue triangle slowly fades in once it gets near to > fullscreen. Do you see this as well? > > On Sun, Apr 8, 2018 at 9:45 AM, Jens Axel Søgaard <jensa...@soegaard.net> > wrote: > >> Hi David, >> >> Thanks for the viewport suggestion. &

  1   2   3   >