[racket-users] Please can I use sgl to draw to a bitmap

2022-04-24 Thread Hendrik Boom
I am currently using sgl to draw to a window, and using the screenshot progrm to convert tie picture to a .png file. Unfortunately, this seems to linut the png to screen size, and I need more pixels thatn that for my application. So my guess is that I need to create an sgl-compatible opengl

Re: [racket-users] Possible options for stopping spam

2021-12-15 Thread Hendrik Boom
On Wed, Dec 15, 2021 at 12:54:30PM -0500, George Neuner wrote: > > Is there a way to whitelist / trust posters.  One of the other groups I > follow is moderated, but is set up so that messages from trusted posters go > straight through.  The moderator(s) only have to look at posts coming from >

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

2021-11-22 Thread Hendrik Boom
First reason for ignoring this message: It's an html-only post on a text mailing list. -- hendrik On Mon, Nov 22, 2021 at 08:06:01AM -0500, Etan Wexler wrote: -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group

Re: [racket-users] What are the most used Racket libraries, applications and languages?

2021-11-14 Thread Hendrik Boom
On Fri, Nov 12, 2021 at 11:46:02PM +, Stephen De Gabrielle wrote: > What are the most used Racket libraries, applications and languages? > > I’ll admit I’m guilty of going whole releases without installing anything > because the distribution has so much included. > > If you reply with what

Re: [racket-users] Re: [ANN] fmt: a Racket code formatter

2021-10-19 Thread Hendrik Boom
On Tue, Oct 19, 2021 at 11:07:58AM -0700, Sorawee Porncharoenwase wrote: > On Tue, Oct 19, 2021 at 7:01 AM Diego Crespo > mycontributiontothewo...@gmail.com > wrote: > > If you are curious about what the output looked like before, here is the > >

Re: [racket-users] Re: [ANN] fmt: a Racket code formatter

2021-10-19 Thread Hendrik Boom
When I read this: > On Mon, Oct 18, 2021 at 6:14 PM Diego Crespo < > mycontributiontothewo...@gmail.com> wrote: > > > This is really cool. Between this, a Racket linter, and an LSP, Racket is > > seriously looking a lot better for larger teams. I ran it through some of > > my code and I'm

Re: [racket-users] Racket meeting tomorrow?

2021-10-01 Thread Hendrik Boom
h I haven't been doing much Racketting lately. I didn't see it announced in Racket News, so I asked. -- hendrik > > Cheers, > Sam > > On Fri, Oct 1, 2021 at 9:49 AM Hendrik Boom wrote: > > > > Is there going to be a Racket online meeting at the gather site tomorrow &g

Re: [racket-users] Re: Escape continuations for fussy code

2021-10-01 Thread Hendrik Boom
On Fri, Oct 01, 2021 at 02:32:52PM -0400, David Storrs wrote: > On Fri, Oct 1, 2021 at 11:58 AM Hendrik Boom wrote: > > > On Fri, Oct 01, 2021 at 02:22:14PM +, Jesse Alama wrote: > > > Hello, > > > > > > Have you ever wished you could do a C-styl

[racket-users] Racket meeting tomorrow?

2021-10-01 Thread Hendrik Boom
Is there going to be a Racket online meeting at the gather site tomorrow on October 2? There have been on previous first-Saturdays-in-the-month.If so, at what time, and what's the URL? -- hendrik -- You received this message because you are subscribed to the Google Groups "Racket Users"

[racket-users] Re: Escape continuations for fussy code

2021-10-01 Thread Hendrik Boom
On Fri, Oct 01, 2021 at 02:22:14PM +, Jesse Alama wrote: > Hello, > > Have you ever wished you could do a C-style return in the middle > of a block of Racket code? When you're in the heat of things with > a complicated problem where input values need a fair amount of > multi-stage extraction

Re: [racket-users] Fix linux (play-sound) sound output as aplay does not work, swap for something else

2021-08-24 Thread Hendrik Boom
On Tue, Aug 24, 2021 at 12:19:25PM -0700, jest array wrote: > https://github.com/racket/gui/issues/239 > > So this does not work on both Arch Linux with prebuilt racket binaries and > Debian with built from source binaries(according to a user JSGRANT on the > racket discord server >

Re: [racket-users] parenthesis colours

2021-07-05 Thread Hendrik Boom
ade default? -- hendrik > > Robby > > On Mon, Jul 5, 2021 at 7:02 AM Hendrik Boom wrote: > > > On Sun, Jul 04, 2021 at 08:18:24AM -0500, Robby Findler wrote: > > > If you go to the preference dialog, choose "Colors", and then choose > > &

[racket-users] parenthesis colours

2021-07-04 Thread Hendrik Boom
I use drracket in what I call night mode -- dark backgroun and bright letters. It's easier on the eyes, except when I have to see parentheses. They are presented in a dark shade of red. Given how crucial parentheses are in Racket, this is an obstacle, especially when the error-reporting mechanism

Re: [racket-users] Registered on irc.libera.chat

2021-05-24 Thread Hendrik Boom
On Mon, May 24, 2021 at 08:14:07AM +0200, Dominik Pantůček wrote: > Hello, > > I am always advocating for being cautious - rather than rushing into > quick decisions (which may prove wrong later on). However, given known > facts, the situation with Freenode won't probably change for any better >

Re: [racket-users] Injecting local contracts for prefab constructors

2021-05-10 Thread Hendrik Boom
On Sun, May 09, 2021 at 10:23:34PM +, Sage Gerard wrote: > I have a project with 57 prefab structure types. I need to construct > instances using a local contract (module level contracts do not fit my needs > here). Since I cannot define guards, the solution is easy enough. > > (struct foo

Re: [racket-users] Typed Racket: type relations

2021-04-19 Thread Hendrik Boom
On Sun, Apr 18, 2021 at 09:05:11AM +0200, Dominik Pantůček wrote: ... ... > > I would really like to be able to reason about the Integer bounds (and > therefore signs) dynamically. So that when you have something like: > > (: square (-> Fixnum Nonnegative-Fixnum)) > (define (square x) > (fx* x

Re: [racket-users] Polished 3D package for some simulations

2021-04-12 Thread Hendrik Boom
- hendrik > > Nate > > > On Apr 8, 2021, at 2:59 PM, Hendrik Boom wrote: > > > > On Thu, Apr 08, 2021 at 11:22:10AM -0700, kamist...@gmail.com wrote: > >> Have you tried out Pict3D [1]? > > > > Two significant flaws with Pict3D: > > > >

Re: [racket-users] Re: Polished 3D package for some simulations

2021-04-08 Thread Hendrik Boom
On Thu, Apr 08, 2021 at 11:22:10AM -0700, kamist...@gmail.com wrote: > Have you tried out Pict3D [1]? Two significant flaws with Pict3D: * It does not have a mechanism for attaching a texture to an object. * It does not allow one to cut one #D object out of another. (such as using a cylinder

Re: [racket-users] fluent: unix style pipes and lambda shorthand to make your code more readable

2021-03-10 Thread Hendrik Boom
On Wed, Mar 10, 2021 at 08:23:46PM +0700, Roger Keays wrote: > > I've been using the Clojure-like threading package for a while now and this > > has > > some nice advantages that are mentioned in the docs, like blending the first > > arg > and last arg >> variants easily in a sequence. > > > >

Re: [racket-users] public email addresses on packages server

2021-02-23 Thread Hendrik Boom
On Sat, Feb 20, 2021 at 11:47:19PM +0700, Roger Keays wrote: > Has any consideration been given to concealing email addresses on > pkgs.racket-lang.org for privacy purposes? Aren't those email addresses available anyway from github? -- hendrik -- You received this message because you are

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

2021-02-23 Thread Hendrik Boom
On Mon, Feb 22, 2021 at 10:26:09PM -0800, Rohan Posthumus wrote: > > Just in case you haven't found them already, if you need matrices over > > real floating points, > > take a look at: > > > > https://docs.racket-lang.org/manual-flomat/index.html Looked at that. On

[racket-users] [Funny] Package server registration/reset email code flow changed

2021-02-18 Thread Hendrik Boom
Funny. Thus message about Racket paskages arrived immediately after a message from the post office ttiled: Tips for receiving and sending packages telling me how to register an alternative package destination in case I'm no thome. So when I got this message, titled Package server

Re: [racket-users] Racket v8.0 (!)

2021-02-17 Thread Hendrik Boom
> > John > > > On Feb 16, 2021, at 15:27, Hendrik Boom wrote: > > > > On Tue, Feb 16, 2021 at 12:26:50PM -0500, John Clements wrote: > >> Help me out: which platform are you referring to? > > > > The Linux one that was on everybody's PC before PC'

Re: [racket-users] Racket v8.0 (!)

2021-02-16 Thread Hendrik Boom
ugh normally at home I have a 64-bit one). -- hendrik > > John > > > On Feb 16, 2021, at 8:10 AM, Hendrik Boom wrote: > > > > On Sat, Feb 13, 2021 at 09:17:26PM -0500, 'John Clements' via Racket Users > > wrote: > >> *** Racket 8.0 is here! *** > &

Re: [racket-users] Racket v8.0 (!)

2021-02-16 Thread Hendrik Boom
On Sat, Feb 13, 2021 at 09:17:26PM -0500, 'John Clements' via Racket Users wrote: > *** Racket 8.0 is here! *** > > Racket version 8.0 is now available from > > https://racket-lang.org/ Are there no 32-bit intel binaries available? Or did I just look too soon? -- hendrik -- You received

[racket-users] Coordinates in draw and pict

2021-02-06 Thread Hendrik Boom
How are the coordinate systems in draw and pict related? I suspect that one step in the pict coordinates aren't necessarily one step in the draw coordinate system. Is this so? Do the various scaling operators in pict do their own scaling instead of delegating it to draw? -- hendrik -- You

Re: [racket-users] Racket v7.9.0.900 is available for testing

2021-01-22 Thread Hendrik Boom
On Fri, Jan 22, 2021 at 02:49:44PM -0500, 'John Clements' via Racket Users wrote: > Hello, most excellent Racket Users! > > Version 7.9.0.900 is now available for testing from > > https://pre-release.racket-lang.org/ > > (Note that this is not available from the usual download

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

2021-01-21 Thread Hendrik Boom
On Wed, Jan 20, 2021 at 08:06:45PM -0800, Stuart Hungerford wrote: > On Thursday, 21 January 2021 at 10:22:45 UTC+11 Jens Axel Søgaard wrote: > > Den ons. 20. jan. 2021 kl. 08.43 skrev Stuart Hungerford < > > stuart.h...@gmail.com>: > > > >> On Wednesday, 20 January 2021 at 12:34:59 UTC+11 Robby

Re: [racket-users] Can someone please override the Reply-To so that normal replies go to the list?

2021-01-01 Thread Hendrik Boom
> If that's true, is there something wrong with making the default behavior > more accessible to more clients? It *is* possible to list more than one recipient in the To line. -- hendrik > > > ~slg > > ‐‐‐ Original Message ‐‐‐ > On Friday, January 1,

Re: [racket-users] Can someone please override the Reply-To so that normal replies go to the list?

2021-01-01 Thread Hendrik Boom
On Fri, Jan 01, 2021 at 10:53:14PM +0100, Dominik Pantůček wrote: > > > > > Proper mail systems also provide a command "reply to list". The proper > > fix is to make sure your mail system supports reply to list. > > > > Which seems to work only if the list is in the "To:" header - not "Cc:".

Re: [racket-users] Can someone please override the Reply-To so that normal replies go to the list?

2021-01-01 Thread Hendrik Boom
On Fri, Jan 01, 2021 at 04:31:56PM +, Sage Gerard wrote: > The Reply-To experience for this list seems wrong. > > Clicking normal "Reply" sets the reply to the person who last sent an email > to the thread, but not the list address. > > Clicking "Reply All" sends a copy of the email to an

Re: [racket-users] Racket and Assembly

2020-12-30 Thread Hendrik Boom
On Wed, Dec 30, 2020 at 02:44:35PM -0500, Matt Jadud wrote: > Hi Daniel, > > As a start to answering your question(s), you might try the 2019 ICFP > experience report on rebuilding Racket on top of Chez Scheme is probably a > good place to look. > >

[racket-users] Split-pane editing

2020-12-29 Thread Hendrik Boom
When editing code in emacs, I oftern split the pane so I have views on two parts of a file. Typically, this is so I can see a function definition in one pane at the same time as I see a corresponding function application in another pane. Sometimes, this escalates to three panes. Is there any

Re: [racket-users] Towards an Incremental Racket Parser for better IDE experience?

2020-12-14 Thread Hendrik Boom
On Mon, Dec 14, 2020 at 04:43:24PM -0700, William G Hatch wrote: > On Wed, Dec 02, 2020 at 01:56:41PM -0500, Sam Tobin-Hochstadt wrote: > > A few thoughts on these topics, which I've been thinking about for a while. > > > > First, let's distinguish two things. One is an _incremental_ system, > >

Re: [racket-users] compose in Typed Racket

2020-12-10 Thread Hendrik Boom
On Wed, Dec 09, 2020 at 10:16:16PM -0800, unlimitedscolobb wrote: > On Wednesday, December 9, 2020 at 11:50:26 PM UTC+1 Ben Greenman wrote: > > > > If the answer is no, is there any interest in including these three > > > functions (as well as compose-5, 6, 7, 8) into Typed Racket? > > > > I

Re: [racket-users] I‘m new to racket, i want to know the best resources of learning racket

2020-12-03 Thread Hendrik Boom
On Thu, Dec 03, 2020 at 02:19:43AM -0800, Yi Chen wrote: > Any suggestions? Thanx for you guys When my eldest started learning Racket, she had an introduction that early on, had her doing an animation of a rocket taking off. She then changed it to do other things with the rocket. Fun. I

Re: [racket-users] I‘m new to racket, i want to know the best resources of learning racket

2020-12-03 Thread Hendrik Boom
On Thu, Dec 03, 2020 at 02:19:43AM -0800, Yi Chen wrote: > Any suggestions? Thanx for you guys Start with How To Design Programs., which is available as a free .pdf. By the time that bores you, you'll likely have found other resources. -- hendrik > > -- > You received this message because you

[racket-users] compiler books

2020-11-27 Thread Hendrik Boom
On Wed, Nov 25, 2020 at 09:46:21AM -0600, Tim Meehan wrote: > Hi George, thanks for the reply! > > I work a bit with hardware, but I'm not terribly good with assembly. I know > enough about hardware to know how hard this must be to get working - but it > does interest me a lot. The more I learn,

[racket-users] Historical note.

2020-11-08 Thread Hendrik Boom
On Sun, Nov 08, 2020 at 12:47:11PM -0800, unlimitedscolobb wrote: > Thank you for you answer! I'll need to think more about it. The idea of > having structs whose fields contain functions has never occurred to me, but > it may actually fit my relatively simple use case (and the planned >

Re: [racket-users] Help implementing an early return macro

2020-10-28 Thread Hendrik Boom
On Wed, Oct 28, 2020 at 03:54:29AM -0700, Jack Firth wrote: > So I'm a little tired of writing code like this: > > (define x ...) > (cond > [(take-shortcut? x) (shortcut x)] > [else >(define y (compute-y x)) >(cond > [(take-other-shortcut? x y) (other-shortcut x y)] > [else >

Re: [racket-users] garbage collection

2020-10-25 Thread Hendrik Boom
On Sun, Oct 25, 2020 at 04:41:41PM -0400, 'John Clements' via Racket Users wrote: > It depends a lot on what you mean by a “Lisp-y” language. I’m certainly not > going to disagree with the sentiments expressed in the stack overflow post > that Dan Prager posted… after all, I wrote the

Re: [racket-users] Re: hashcons

2020-09-14 Thread Hendrik Boom
On Mon, Sep 14, 2020 at 01:11:34AM -0700, Tony Garnock-Jones wrote: > On Sunday, September 13, 2020 at 12:41:15 AM UTC+2 hen...@topoi.pooq.com > wrote: > > > True, but that would require rewriting list, and quasiquote, ans > > others like that to use the hashcons. > > > > Not impossible. > >

Re: [racket-users] Incorporating Markdown documents into Scribble

2020-09-13 Thread Hendrik Boom
On Sun, Sep 13, 2020 at 07:50:01AM -0400, Shriram Krishnamurthi wrote: > It's useful to have this behave like a `#include`. There are settings where > you want to have a non-Scribble person author things that go "in the > middle"; you want to think of this as just a more convenient way of writing

Re: [racket-users] Re: hashcons

2020-09-12 Thread Hendrik Boom
On Sat, Sep 12, 2020 at 01:23:24PM -0700, jackh...@gmail.com wrote: > Not automatically, but you can make your own wrapper function around cons > that interns them using a weak hash table and then you can use that wrapper > function everywhere. True, but that would require rewriting list, and

Re: [racket-users] Incorporating Markdown documents into Scribble

2020-09-12 Thread Hendrik Boom
On Sat, Sep 12, 2020 at 06:14:53AM -0700, Shriram Krishnamurthi wrote: > I need a little help with `decode` vs `decode-flow` in Scribble. (Also, > this thread is about a question I wasn't able to find answered anywhere, so > hopefully it will lead to a solution that others can also use.) > >

Re: [racket-users] package manager woes on Windows 10?

2020-09-11 Thread Hendrik Boom
On Thu, Sep 10, 2020 at 10:27:39AM -0400, George Neuner wrote: > > > On 9/10/2020 10:06 AM, Philip McGrath wrote: > > Also, this is happening over encrypted HTTPS: no one is sniffing the > > User-Agent header. > > While it may not be the issue here, you need to understand that appliance >

[racket-users] hashcons

2020-09-10 Thread Hendrik Boom
Is there a way to run Racket so that every immuable cons is made with a hashcons operation; i.e. it makes a new cons scel only if there isn't already one in memory somewhere with the same car and cdr values? -- hendrik -- You received this message because you are subscribed to the Google

Re: [racket-users] package manager woes on Windows 10?

2020-09-10 Thread Hendrik Boom
On Thu, Sep 10, 2020 at 12:49:25AM -0400, George Neuner wrote: > > I don't know if DrRacket even sends a "user agent" string. If DrRacket can send a user agent string, so can malware. So it's not really reliable to filter on the user agent string. -- hendrik -- You received this message

Re: [racket-users] Create C functions for embedded Racket CS

2020-09-02 Thread Hendrik Boom
On Wed, Sep 02, 2020 at 02:05:11PM -0700, dotoscat wrote: > There are a function such scheme_make_prim_w_arity > > for the CS version? > The idea is to use Racket > as a scripting language for a C program.

Re: [racket-users] abstraction suggestion?

2020-08-31 Thread Hendrik Boom
On Mon, Aug 31, 2020 at 10:06:42AM -0700, Shriram Krishnamurthi wrote: > I'm having some trouble abstracting over this code. Any suggestions? > > I have numerous files that follow this boilerplate: > > #lang racket > > (require ) > > (provide (rename-out [mod-begin #%module-begin] >

Re: [racket-users] Proper place to store log file

2020-08-25 Thread Hendrik Boom
On Mon, Aug 24, 2020 at 11:02:35AM -0700, Thomas Del Vecchio wrote: > Hi everyone! > > I'm currently working on some usage logging for a language we're > developing. We need to store a persistent file that is shared across a > given device (so that the same log file is used regardless of where

Re: [racket-users] Re: Application Templates!

2020-08-20 Thread Hendrik Boom
On Wed, Aug 19, 2020 at 09:33:01PM -0700, Alex Harsanyi wrote: ... ... > I think Racket would benefit by a suite of applications which are small but > not trivial and with a source code which is commented in more detail than a > regular application. Every regular application would also benefit

Re: [racket-users] Strange behaviour on re-executing an sgl program

2020-08-16 Thread Hendrik Boom
reruns. -- hendrik On Sun, Aug 16, 2020 at 09:32:19AM -0400, Hendrik Boom wrote: > I hauled the sgl-hello-world program (attached below) into drrracket, version > 7.6, english by PLT. > > I click on 'run'I click on 'run'. > It creates a small window containing a small white squar

[racket-users] Strange behaviour on re-executing an sgl program

2020-08-16 Thread Hendrik Boom
I hauled the sgl-hello-world program (attached below) into drrracket, version 7.6, english by PLT. I click on 'run'I click on 'run'. It creates a small window containing a small white square. I click on 'run' again. It deetes that window, and creates another small window containing a small

Re: [racket-users] slideshow -> google slides?

2020-08-07 Thread Hendrik Boom
On Thu, Aug 06, 2020 at 06:58:28PM -0400, 'John Clements' via Racket Users wrote: > Has anyone here developed a reasonable workflow for exporting slideshow > presentations to google slides? It appears that google slides cannot import > PDFs or SVGs. It looks like it has support for importing

Re: [racket-users] slideshow -> google slides?

2020-08-07 Thread Hendrik Boom
On Fri, Aug 07, 2020 at 09:58:15AM -0400, David Storrs wrote: > On Thu, Aug 6, 2020, 10:34 PM Hendrik Boom wrote: > > > On Thu, Aug 06, 2020 at 06:58:28PM -0400, 'John Clements' via Racket Users > > wrote: > > > Has anyone here developed a reasonable workf

Re: [racket-users] slideshow -> google slides?

2020-08-06 Thread Hendrik Boom
On Thu, Aug 06, 2020 at 06:58:28PM -0400, 'John Clements' via Racket Users wrote: > Has anyone here developed a reasonable workflow for exporting slideshow > presentations to google slides? It appears that google slides cannot import > PDFs or SVGs. It looks like it has support for importing

Re: [racket-users] Advice wanted about new opengl binding

2020-08-03 Thread Hendrik Boom
ithub.com/racket/sgl/tree/master where I find multiple files, including main.rkt, sgl.rlt, and gl.rkt. Am I correct that main.rkt is what I get with (require sgl) and that gl.rkt is what I get with (require sgl/gl)? -- hendrik > > > On Sun, Aug 2, 2020 at 5:51 PM Hendrik Boom wrote: >

Re: [racket-users] ask the type of a value (partial solution)

2020-08-03 Thread Hendrik Boom
the struct’s name, 'procedure, or > > 'evt? It’s not really clear. You might be able to come up with some more > > sophisticated system with (potentially multiple) inheritance that could > > capture these relationships, but I can say with confidence that no such > > system current

[racket-users] ask the type of a value

2020-08-03 Thread Hendrik Boom
In plain, untyped Racket: It is possible to ask if a value is a symbol with symbol? It is possible to ask if a value is a string with string? etc. Is there a way to ask the type of a value without having to guess it first? -- hendrik -- You received this message because you are subscribed to

Re: [racket-users] pictures in code?

2020-08-03 Thread Hendrik Boom
or is it some other type of object? -- hendrik > > On Sun, Aug 2, 2020 at 7:07 PM Hendrik Boom wrote: > > > Is there any way to include pictures in Racket code? > > Perhaps as constants or as prts of identifiers? > > The idea is that when editing the program in t

[racket-users] pictures in code?

2020-08-02 Thread Hendrik Boom
Is there any way to include pictures in Racket code? Perhaps as constants or as prts of identifiers? The idea is that when editing the program in the Racket editor, the pictures are visible as part of the code, making the code itself more visually self-evident, not as file names to be read from

Re: [racket-users] Advice wanted about new opengl binding

2020-08-02 Thread Hendrik Boom
Time to rethink everything before I go further. So far I've found several opengl bindings. There's opengl, documented here: https://docs.racket-lang.org/opengl/index.html There are sgl and sgl/gl, documented here: https://docs.racket-lang.org/sgl/index.html and there's a typed opengl hidden

Re: [racket-users] Advice wanted about new opengl binding

2020-08-01 Thread Hendrik Boom
On Sat, Aug 01, 2020 at 11:48:06AM -0600, Matthew Flatt wrote: > At Fri, 31 Jul 2020 17:05:27 -0400, Hendrik Boom wrote: > > For example, there's glGetCompressedTexImageARB. It receivees a > > pointer to an image area and fills it in with a compressed image. > > Accor

[racket-users] Advice wanted about new opengl binding

2020-07-31 Thread Hendrik Boom
I need advice from someone with more experience with openGL and/or Racket. I am still working on updating the Racket openGL binding to the current openGL spec. I'm doing this as in the old binding, machine-translating the formal part of the openGl standard, which now uses a competely new

Re: [racket-users] Does Racket interpreter exist?

2020-07-29 Thread Hendrik Boom
On Wed, Jul 29, 2020 at 01:56:05AM -0700, zeRusski wrote: > This is a really cool piece of history! Thank you. > > I'll admit I'm somewhat fuzzy here - it maybe a bit too meta for me or > perhaps I don't quite understand what you're trying to say. Isn't > interpreting n levels deep also linear

Re: [racket-users] Does Racket interpreter exist?

2020-07-28 Thread Hendrik Boom
On Mon, Jul 27, 2020 at 11:07:43AM -0700, zeRusski wrote: > > > > > The best way to distinguish compilers from interpreters is that a > > compiler takes a program and produces another program, whereas an > > interpreter takes a program (along with some input) and produces an > > answer. > > >

[racket-users] reading s-expressions from a file

2020-07-17 Thread Hendrik Boom
Yes, I know the functino for reading s-expressions seems to be (read [in]). I want a loop that reads S-expressions and does something to each one, until there are no more to be found in a file. Now of course that's absurdly easy to do with a tail-recursice loop. But I's like it to look like a

[racket-users] Screen readers

2020-07-07 Thread Hendrik Boom
On Tue, Jul 07, 2020 at 11:44:53AM +0200, Jens Axel Søgaard wrote: > The upside is that using standard elements work with custom themes used > in the OS. Screen readers for blind also work with standard elements. Just wondering. What is available in the way of screen readers on a Linux system?

[racket-users] bracket meme

2020-07-06 Thread Hendrik Boom
Found this signature quote: -- Put not your faith in parenthesis, nor trust in dotted pears, says speech therapist. used by DannyB on Soyent News Thought it might be amusing here. -- hendrik -- You received this message because you are subscribed to the Google Groups "Racket Users" group.

Re: [racket-users] Re: note about parsing speed of xml vs sxml?

2020-06-29 Thread Hendrik Boom
On Sun, Jun 28, 2020 at 06:01:27PM -0700, Alex Harsanyi wrote: > I tested the your string port version and I also wrote a "string-append" > version of the xml reader and they are both slower by about 10-15% on my > machine, when compared to the current read-xml implementation which uses >

Re: [racket-users] Re: note about parsing speed of xml vs sxml?

2020-06-28 Thread Hendrik Boom
On Sun, Jun 28, 2020 at 11:30:27PM +0200, Ryan Culpepper wrote: > Thanks Alex for pointing out the use of list->string. I've created a PR ( > https://github.com/racket/racket/pull/3275) that changes that code to use > string ports instead (similar to Hendrik's suggestion, but the string port >

Re: [racket-users] Re: note about parsing speed of xml vs sxml?

2020-06-28 Thread Hendrik Boom
On Sat, Jun 27, 2020 at 05:16:34PM -0700, Alex Harsanyi wrote: > Looking at the source for `read-xml`, it seems to be using `list->string` > in several places. That is, it reads characters one-by-one and constructs > a list by appending a character to the end of it, than calls `list->string` >

[racket-users] xml vs sxml?

2020-06-27 Thread Hendrik Boom
On Sat, Jun 27, 2020 at 12:33:02AM -0400, Neil Van Dyke wrote: > I think anyone using XML or HTML seriously with Racket should probably at > least be told of the SXML family of tools.  And warned about the > compatibility problems. > > Though not tell them *everywhere* XML in the docs.  For

Re: [racket-users] Should I stop sending packages to the catalog?

2020-06-19 Thread Hendrik Boom
On Fri, Jun 19, 2020 at 01:09:08PM -0700, Brian Adkins wrote: > > I'm hoping the main scenario I'm concerned about (a bug is introduced in an > update of a package) is rare, although that's exactly what motivated Alex > to create his system. If it is a rare scenario for me, then I'd like to do

Re: [racket-users] Should I stop sending packages to the catalog?

2020-06-19 Thread Hendrik Boom
On Fri, Jun 19, 2020 at 07:54:29AM -0700, Brian Adkins wrote: > On Friday, June 19, 2020 at 8:09:04 AM UTC-4, Neil Van Dyke wrote: > > > > For an important production system, you probably want the source of any > > third-party packages on which you depend to be in Git (or another SCM > > system)

[racket-users] About FEXPRS

2020-06-07 Thread Hendrik Boom
On Sun, Jun 07, 2020 at 08:09:40PM +0800, Siyuan Chen wrote: ... ... > > There is an alternative of Lisp macros called FEXPRs, see > https://en.wikipedia.org/wiki/Macro_(computer_science)#Early_Lisp_macros > > > Early Lisp macros > > Before Lisp had macros, it had so-called FEXPRs, function-like

Re: [racket-users] Poor documentation of List*

2020-06-03 Thread Hendrik Boom
phen > > ps i use > https://blog.racket-lang.org/2017/09/tutorial-contributing-to-racket.html & > lots of kind guidance from other racketeers :0 > pps: if you make a successful pr you get credit in the frankly wonderful > racket news https://racket-news.com/2020/06/racket-news-issue-32.

[racket-users] Poor documentation of List*

2020-06-02 Thread Hendrik Boom
In the Typed Racket Reference, List* is defined as follows: (List* t t1 ... s) is equivalent to (Pairof t (List* t1 ... s)). Following this definition down, we get (List* a b c) -> (Pairof a (List* b c)) -> (Pairof a (Pairof b (List* c))) But what's (List* c) ? I see no explanatory

Re: [racket-users] syntax woe with typed Racket 'let'

2020-06-01 Thread Hendrik Boom
tring *]) : Number (+ x (length y))) > > > > See the documentation for `define` in Typed Racket here: > > https://docs.racket-lang.org/ts-reference/special-forms.html?q=define#%28form._%28%28lib._typed-racket%2Fbase-env%2Fprims..rkt%29._define%29%29 > > in particular the `rst` production

Re: [racket-users] syntax woe with typed Racket 'let'

2020-06-01 Thread Hendrik Boom
be made available as a list? Thank you for the hint. -- hendrik > > Sam > > On Sat, May 30, 2020 at 1:32 PM Hendrik Boom wrote: > > > > I'm sorry to keep pestering this list, but I'm out of my depth with the > > detailed syntax (and semantics) of typed

[racket-users] syntax woe with typed Racket 'let'

2020-05-30 Thread Hendrik Boom
I'm sorry to keep pestering this list, but I'm out of my depth with the detailed syntax (and semantics) of typed Racket. But I'm doggedly ploughing on. I'm having trouble with the 'let' line in the 'pointer-to' function listed later: (let ([vt : Ffi-type (cast ((inst hash-ref Ffi-type

[racket-users] coding style query

2020-05-27 Thread 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? -- hendrik -- You received this message because you are subscribed to the Google Groups "Racket Users"

Re: [racket-users] inconvenience in typed Racket

2020-05-22 Thread Hendrik Boom
ut what's really needed. I think there's a need to embed untyped expressions in a typed program, just as there's a mechanism to do the reverse. -- hendrik > > Sam > > On Fri, May 22, 2020 at 5:21 PM Hendrik Boom > wrote: > > > > Here's the code it's complaining ab

[racket-users] inconvenience in typed Racket

2020-05-22 Thread Hendrik Boom
Here's the code it's complaining about. `(,@params -> ,rettype) And here's the message: Type Checker: Polymorphic function `qq-append' could not be applied to arguments: Types: (Listof a) (Listof b) -> (Listof (U a b)) Arguments: (Listof (List Any ': Any)) (List '-> Ffi-type) Expected result:

Re: [racket-users] Inference for polymorphic functions not supported?

2020-05-19 Thread Hendrik Boom
tself doesn't generate 'inst's. I do not understand how eliminating the temporary variably 'y' made it all work. -- hendrik > > Sam > > On Mon, May 18, 2020 at 4:33 PM Hendrik Boom wrote: > > > > I keep getting the messages like > > > > Type Checker: Inferenc

Re: [racket-users] Inference for polymorphic functions not supported?

2020-05-18 Thread Hendrik Boom
(v : Natural (in-value (cdr p))) > #:when (not (= v 1)) > ) > (cons k v)) > > Sam > > On Mon, May 18, 2020 at 4:33 PM Hendrik Boom wrote: > > > > I keep getting the messages like > > >

[racket-users] Inference for polymorphic functions not supported?

2020-05-18 Thread Hendrik Boom
I keep getting the messages like Type Checker: Inference for polymorphic keyword functions not supported in: (sort hash-list stringstring (car p))) #:cache-keys? #t) or Type Checker: Polymorphic function `cons' could not be applied to arguments: Types: a (Listof a) -> (Listof a) a b ->

[racket-users] SOLVED BUT needs documentation change: printing structures in typed Racket

2020-05-15 Thread Hendrik Boom
reference, #:property is not one of the allowed options in struct. Perhaps the documentation needs to be updated/ -- hendrik > > On Fri, May 15, 2020 at 8:00 AM Hendrik Boom wrote: > > > > How does one provide a method to print strutures in typed Racket? > > > >

[racket-users] at sign in scribble

2020-05-15 Thread Hendrik Boom
I hae not been able to figure out from the scribble documentation how to produce a document containing an at sign. Just putting the desired at sign into the source file of course doesn't work, since the at-reader intercepts it. -- hendrik -- You received this message because you are

[racket-users] printing structures in typed Racket

2020-05-15 Thread Hendrik Boom
How does one provide a method to print strutures in typed Racket? (struct parameter ([type : XML] [name : Symbol] [len : (Option String)] [const? : Boolean] [stars : Integer]) #:methods gen:custom-write [(define write-proc parameter-print)] ) seems not to work. But something like this

Re: [racket-users] Re: Requesting feedback on CSS3 parser and tokenizer

2020-05-12 Thread Hendrik Boom
On Tue, May 12, 2020 at 05:35:59PM -0700, Alex Harsanyi wrote: > I now very little about web technologies and web development, so this might > be a stupid question: could you explain what types of applications might > need a to parse CSS files? I can only think of one, and that is a web >

[racket-users] SOLVED: Mysterious multiple values in a typed-racket program

2020-05-09 Thread Hendrik Boom
On Sat, May 09, 2020 at 12:24:16PM -0400, Ben Greenman wrote: > On 5/9/20, Hendrik Boom wrote: > > I get the message > > > > readspec.rkt:195:8: Type Checker: Expression should produce 3 values, but > > produces 1 values of types String in: (for/set : (Setof Strin

[racket-users] Mysterious multiple values in a typed-racket program

2020-05-09 Thread Hendrik Boom
I get the message readspec.rkt:195:8: Type Checker: Expression should produce 3 values, but produces 1 values of types String in: (for/set : (Setof String) (((l : String) (cast (in-lines input-port) (Sequenceof String (cast (string-trim l) String)) from the following function: (define

Re: [racket-users] for/set

2020-05-08 Thread Hendrik Boom
racket-lang.org/search/index.html?q=for%2Fset>. Here, the first > result > <https://docs.racket-lang.org/reference/sets.html?q=for%2Fset#%28form._%28%28lib._racket%2Fset..rkt%29._for%2Fset%29%29> > is what you want. Excellemt! -- hendrik > > On Fri, May 8, 2020 at 4:

[racket-users] for/set

2020-05-08 Thread Hendrik Boom
Where is for/set documented? What does it do? It is mentioned in the typed Racket menual, but oly to say it has the same meaning as the unannotated version. -- hendrik -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from

Re: [racket-users] Finding bound occurrences

2020-05-07 Thread Hendrik Boom
e include linr for debugging that other file. Thanks. I'm still learning. -- hendrik > > > On Thu, May 7, 2020 at 9:55 AM Hendrik Boom wrote: > > > I have several tabs open in DrRacket. > > On two of them, when I mouse over a symbol, it provides very > > visibl

[racket-users] Finding bound occurrences

2020-05-07 Thread Hendrik Boom
I have several tabs open in DrRacket. On two of them, when I mouse over a symbol, it provides very visible links to binding or bound occurrences On the third, it doesn't. There is a right-click mey item to jump to the binding occurrence, but no menu item to find next bound occurrence. One

Re: [racket-users] Should I stop sending packages to the catalog?

2020-05-01 Thread Hendrik Boom
On Fri, May 01, 2020 at 06:12:55AM -0700, Jesse Alama wrote: > On Thursday, April 30, 2020 at 2:57:45 PM UTC+2, Jay McCarthy wrote: > > > > > > This is simply a social standard though. There is nothing that > > technically prevents you from breaking compatibility, except that your > > users may

Re: [racket-users] Reducing parentheses without language damage.

2020-05-01 Thread Hendrik Boom
On Thu, Apr 30, 2020 at 02:40:00PM -0700, Sorawee Porncharoenwase wrote: > > This is Nia's parendown: https://docs.racket-lang.org/parendown/index.html Just wondering: Is there a way to write division if Nia's parendown is in effect? There would be no problem with this if it was originally

  1   2   3   4   >