Re: [racket-users] How 'Pythonic' Can Racket Be Made?

2023-10-12 Thread Jens Axel Søgaard
Den man. 9. okt. 2023 kl. 19.35 skrev Adam Golding : > I am going to write a language called 'micronatrix' that is pythonic in > its use of whitespace and even with python 2 type print statements but very > minimal and pared down -- has similar ground been trodden? > There a #lang python

Re: [racket-users] Macro generating macro question

2023-05-24 Thread Jens Axel Søgaard
le Groups > "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/6BC84910-3AC4-472

Re: [racket-users] Some DrRacket preferences unreadable

2022-12-29 Thread Jens Axel Søgaard
be 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/4ba70e7b-e7ac-4720-898a-d9548dbc8426n%40googlegroups.com > <https://groups.google

Re: [racket-users] can't open DrRacket 8.5 on M1 macOS

2022-07-04 Thread Jens Axel Søgaard
Also - was Racket moved to the Applications ? It looks like your colleague is opening from the downloaded archive [but I could be wrong]. Den man. 4. jul. 2022 kl. 13.18 skrev Jens Axel Søgaard < jensa...@soegaard.net>: > Can you open it from the terminal: > > open /Applicatio

Re: [racket-users] can't open DrRacket 8.5 on M1 macOS

2022-07-04 Thread Jens Axel Søgaard
racket-users/3ec173be-bfbd-4ba2-a019-12b4479501c9n%40googlegroups.com > <https://groups.google.com/d/msgid/racket-users/3ec173be-bfbd-4ba2-a019-12b4479501c9n%40googlegroups.com?utm_medium=email_source=footer> > . > -- -- Jens Axel Søgaard -- You received this message because you

Re: [racket-users] Beginner's question

2021-12-14 Thread Jens Axel Søgaard
d an > email to racket-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/e72b954e-0b48-4830-b253-34b904d726bcn%40googlegroups.com > <https://groups.google.com/d/msgid/racket-users/e72b954e-0b48-4830-b253-34b90

Re: the end of the [racket-users] mailing list and the migration to Discourse as a forum for Racket

2021-11-22 Thread Jens Axel Søgaard
to receiving as Internet mail the contributions to the > Discursive forum for Racket <https://racket.discourse.group/>. The > stewards of Racket <https://racket-lang.org/> have published a facility > for enlisting as a participant in the Discursive forum for Racket > <https://r

Re: [racket-users] How to discover a struct's interface without Dr Racket?

2021-10-31 Thread Jens Axel Søgaard
e (struct-ref beauty))) (map struct-field-name (struct-info-fields info)) The result is: '(breed color legs) Den søn. 31. okt. 2021 kl. 13.06 skrev David Storrs : > > > On Sun, Oct 31, 2021, 7:49 AM Jens Axel Søgaard > wrote: > >> Hi Brian, >> >> A few random thou

Re: [racket-users] How to discover a struct's interface without Dr Racket?

2021-10-31 Thread Jens Axel Søgaard
t;>>> > >>>>> > (begin-for-syntax >>>>> > (displayln >>>>> >(extract-struct-info >>>>> > (syntax-local-value >>>>> > #'syntax >>>>> > >>>>> > ~~> >>>>

Re: [racket-users] Doc pages search engine difficulties

2021-08-17 Thread Jens Axel Søgaard
Den tir. 17. aug. 2021 kl. 16.34 skrev Dexter Lagan : > Hello there, > > I'm trying to teach one of my coworkers how to search for function names > in the Racket manual, and I'm having serious problems finding very simple > things, such as the function to display the file browser dialog

Re: [racket-users] problem of gui layout using side-by-side frames

2021-08-12 Thread Jens Axel Søgaard
Den tor. 12. aug. 2021 kl. 20.44 skrev George Neuner : > > If I understand correctly, Don seems to want menus in his side-by-side > "panels". > Are we talking menu bar menus or contextual menus? On macOS the menu bar menu belongs to the application and not a window.

Re: [racket-users] frame width and (get-display-size) ...

2021-08-05 Thread Jens Axel Søgaard
n on the web visit > https://groups.google.com/d/msgid/racket-users/1e605128-50b3-4578-bf60-2aaa68016006n%40googlegroups.com > <https://groups.google.com/d/msgid/racket-users/1e605128-50b3-4578-bf60-2aaa68016006n%40googlegroups.com?utm_medium=email_source=footer> > . > --

Re: [racket-users] Speeding up the conversion of flvectors to string

2021-06-27 Thread Jens Axel Søgaard
Den søn. 27. jun. 2021 kl. 18.58 skrev Alessandro Motta : > I also like Jens' code for its pure functional elegance. I'm surprised > that building up a long list of short strings before joining them is so > much faster. After all, isn't the final `string-join` essentially doing > what the

Re: [racket-users] Speeding up the conversion of flvectors to string

2021-06-27 Thread Jens Axel Søgaard
dro > > -- > 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. > To view this discussion

Re: [racket-users] Is it possible to effectively display a window with a bitmap background?

2021-06-25 Thread Jens Axel Søgaard
googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/565f3573-8759-4d72-8277-35bf3297befdn%40googlegroups.com > <https://groups.google.com/d/msgid/racket-users/565f3573-8759-4d72-8277-35bf3297befdn%40googlegroups.com?utm_medium=email_

Re: [racket-users] Can we provide a list of functions?

2021-06-17 Thread Jens Axel Søgaard
Den tor. 17. jun. 2021 kl. 15.37 skrev Yossu Bonkers : > I'm quite new to racket, so please pardon me if this is a dumb question. > > I'm working my way through the first tutorial in Beautiful Racket > , and want to extend it. > He only provides +

Re: [racket-users] canvas% mouse event handling difference in Racket CS?

2021-05-22 Thread Jens Axel Søgaard
Den lør. 22. maj 2021 kl. 05.37 skrev schle...@gmail.com < schleesi...@gmail.com>: > I have a racket gui app that uses a canvas% with overridden on-event and > on-paint methods. > When the user hovers over drawn elements the on-paint is called via (send > this refresh) > to display the element

Re: [racket-users] Is there a good Racket DSL alternative to Image Magick?

2021-05-11 Thread Jens Axel Søgaard
up 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/b6a89a78-c92c-41c1-960a-49d64d8a5366n%40googlegroups.com > . > > -- > You received

Re: [racket-users] macros in Racket repository

2021-05-09 Thread Jens Axel Søgaard
his discussion on the web visit > https://groups.google.com/d/msgid/racket-users/CANy33q%3DsLEH-ooUJxTay6pG1GNcRLZDUotNJ23L1HRTC1XqHwA%40mail.gmail.com > <https://groups.google.com/d/msgid/racket-users/CANy33q%3DsLEH-ooUJxTay6pG1GNcRLZDUotNJ23L1HRTC1XqHwA%40mail.gmail.com?utm_medium=email_source

Re: [racket-users] SRFI 216 "SICP Prerequisites" vs #lang sicp

2021-03-09 Thread Jens Axel Søgaard
Den tir. 9. mar. 2021 kl. 20.38 skrev Tim Lee : > I noticed that SRFI 216 "SICP Prerequisites" reached "final" status in > January 2021. How will this affect #lang sicp? What are the differences > between these two SICP aids? > > SRFI 216 link: https://srfi.schemers.org/srfi-216/srfi-216.html >

Re: [racket-users] Bit Scan Reverse in Racket

2021-02-25 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/a2a4fe83-877d-d7ed-4812-bd628c128659%40trustica.cz > . &g

Re: [racket-users] flomat -- possible typo in documentation

2021-02-23 Thread Jens Axel Søgaard
Den tir. 23. feb. 2021 kl. 14.39 skrev Hendrik Boom : > On > https://docs.racket-lang.org/manual-flomat/index.html#%28part._.Matrix_.Creation%29 > > it says > > > (sub! A i j m n) > > Same as sub, but the elements are copied - the underlying array of > flonums are shared. > > Presumably it should

Re: [racket-users] New to Racket

2021-02-18 Thread Jens Axel Søgaard
Den tor. 18. feb. 2021 kl. 08.09 skrev Rohan Posthumus < rohanposthu...@gmail.com>: > I am a data analyst and uses a lot of data science packages in Python. > In order to learn Racket, I want to translate some of these into Racket. I > need some help with where to start. > >- I finished

Re: [racket-users] Moving a Rust/Haskell abstract algebra library to Racket?

2021-01-30 Thread Jens Axel Søgaard
Den tor. 21. jan. 2021 kl. 05.06 skrev Stuart Hungerford < stuart.hungerf...@gmail.com>: > My project is really aimed at supporting self-directed learning of > concepts from abstract algebra. > I was taught many years ago that to really understand something to try > implementing it in a high

Re: [racket-users] Moving a Rust/Haskell abstract algebra library to Racket?

2021-01-24 Thread Jens Axel Søgaard
Den tor. 21. jan. 2021 kl. 05.06 skrev Stuart Hungerford < stuart.hungerf...@gmail.com>: > On Thursday, 21 January 2021 at 10:22:45 UTC+11 Jens Axel Søgaard wrote: > > > Back to your project - what is the goal of the project? > > Making something like GAP perhaps? &g

Re: [racket-users] Moving a Rust/Haskell abstract algebra library to Racket?

2021-01-20 Thread Jens Axel Søgaard
Den ons. 20. jan. 2021 kl. 08.43 skrev Stuart Hungerford < stuart.hungerf...@gmail.com>: > On Wednesday, 20 January 2021 at 12:34:59 UTC+11 Robby Findler wrote: > > I'm no expert on algebras, but I think the way to work on this is not to >> think "what Racket constructs are close that I might

Re: [racket-users] Linear algebra performance (was: calculations with arrays)

2020-11-24 Thread Jens Axel Søgaard
Den tir. 24. nov. 2020 kl. 15.12 skrev Dominik Pantůček < dominik.pantu...@trustica.cz>: > Hello, > > > If you are after numerical calculations for mxn matrices, then look at > > `flomat` > > which uses the same underlying C/Fortran library that NumPy uses. > > > >

Re: [racket-users] calculations with arrays

2020-11-18 Thread Jens Axel Søgaard
Den ons. 18. nov. 2020 kl. 14.15 skrev Tim Meehan : > Is there a way to use Racket vectors similarly to how one might use NumPy? > (Or are vectors even the right thing to use?) > If you are after numerical calculations for mxn matrices, then look at `flomat` which uses the same underlying

Re: [racket-users] Package Server Update Status

2020-08-18 Thread Jens Axel Søgaard
Den tir. 18. aug. 2020 kl. 16.57 skrev Deren Dohoda : > Hi team, > > I notice on the very nice about page, > https://pkg-build.racket-lang.org/about.html, it does not give an > indication of when packages are rebuilt. I had a package that had doc > problems and conflicts that I resolved (the ol'

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] 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

  1   2   3   4   >