Re: [racket-users] A language for command line interfaces

2021-07-24 Thread Siddhartha Kasivajhula
;https://docs.racket-lang.org/natural-cli/index.html> by Sage Gerard. > Looks like it provides some interesting features and in particular > subcommands, which are absent in #lang cli. It very well may be that this > package should be leveraged for semantics in #lang cli in the future (Sage > if y

Re: [racket-users] A language for command line interfaces

2021-07-24 Thread Sage Gerard
ge should be leveraged for semantics in #lang cli in the future (Sage if > you'd like to add anything about what this package offers, please do). > Enjoy, > -Sid > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" gro

[racket-users] A language for command line interfaces

2021-07-24 Thread Siddhartha Kasivajhula
e if you'd like to add anything about what this package offers, please do). Enjoy, -Sid -- 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...@

[racket-users] Re: get-scaled-client-size and high-DPI on Windows

2021-07-24 Thread Ryan Kramer
set (+ x-offset (/ size 2)))] > #:when #t > [y (list y-offset (+ y-offset (/ size 2)))]) > (send dc draw-rectangle x y (/ size 2) (/ size 2 > > (define canvas > (new canvas% > [parent frame] >[paint-callback paint])) > > (send fram

[racket-users] get-scaled-client-size and high-DPI on Windows

2021-07-24 Thread Ryan Kramer
) (send dc draw-rectangle x y (/ size 2) (/ size 2 (define canvas (new canvas% [parent frame] [paint-callback paint])) (send frame show #t) -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe fr

[racket-users] Here's a makefile to build Racket binaries for different platforms

2021-07-21 Thread Stefan Schwarzer
push`, so I can create build files which contain the version number. -- 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...@google

Re: [racket-users] Security advisory for racket/sandbox; fixed in v8.2

2021-07-19 Thread Sage Gerard
ered in > Racket, is welcome at secur...@racket-lang.org > > [1] the `#:requires` argument to `make-evaluator`, or the `requires` > arguments to `make-evaluator/submission` and similar. > > Sam, for the Racket team > > -- > You received this message because you are

[racket-users] Security advisory for racket/sandbox; fixed in v8.2

2021-07-19 Thread Sam Tobin-Hochstadt
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 on the web visit https://groups.google.com/d/msgid/racket

Re: [racket-users] Can I get the behavior of `overment` followed by `augride` with a single class?

2021-07-19 Thread Matthew Flatt
) > (send obj m #t) ; => '(baz (foo #t)) > (send obj m #f) ; => 'skip > > I think this is kind of cute, since it makes it possible to effectively > conditionally interpose on method dispatch. However, it’s rather awkward to > write. This brings me to my question: is there any sim

[racket-users] Racket v8.2

2021-07-18 Thread 'John Clements' via Racket Users
and minor-change. Feedback Welcome -- -- 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 em

Re: [racket-users] Can I get the behavior of `overment` followed by `augride` with a single class?

2021-07-17 Thread George Neuner
-like generic methods are what you want (else you wouldn't have started with classes), but it seems that you are trying to achieve similar functionality. George -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from

[racket-users] Can I get the behavior of `overment` followed by `augride` with a single class?

2021-07-16 Thread Alexis King
ly conditionally interpose on method dispatch. However, it’s rather awkward to write. This brings me to my question: is there any simpler way to do this? And are there any hidden gotchas to my technique? Thanks, Alexis -- You received this message because you are subscribed to the Google Group

Re: [racket-users] How to set type signature for recursive lazy list

2021-07-14 Thread Ben Greenman
On 7/14/21, Kiong-Gē Liāu wrote: > Thanks, following Ben's suggestion that follow code works Great! -- 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 ema

Re: [racket-users] How to set type signature for recursive lazy list

2021-07-14 Thread Kiong-Gē Liāu
ure how to deal with this issue. > > I think the problem is 2 different type variables that both print as > the letter A. > > When I remove the "All" from the type for gfib_t (FibStreamCons A), it > typechecks. > -- 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 on the web visit https://groups.google.com/d/msgid/racket-users/441cdf96-532a-4c7e-9f03-dedce52508c3n%40googlegroups.com.

Re: [racket-users] How to set type signature for recursive lazy list

2021-07-13 Thread Ben Greenman
is error message, expected and given types are exactly > the same, not sure how to deal with this issue. I think the problem is 2 different type variables that both print as the letter A. When I remove the "All" from the type for gfib_t (FibStreamCons A), it typechecks. -- You r

Re: [racket-users] How to set type signature for recursive lazy list

2021-07-13 Thread Kiong-Gē Liāu
t; in: (stream-append (stream (drop-right xs 1)) (gfib_t xs)) > > Change (stream (drop-right xs 1)) to (apply stream (drop-right xs 1)) > and you should be OK. > > (It might be possible to call stream-append with a list and a stream > --- like the untyped code does --- but I haven

Re: [racket-users] Question from a beginner. Why Racket Over Scheme?

2021-07-13 Thread 'John Clements' via Racket Users
, a lazy Racket, and various DSLs > (domain languages) which compile to and (mostly) freely intermix with Racket. > > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop re

[racket-users] Re: Racket web-server question

2021-07-13 Thread Rohan Posthumus
the data until I restart the server. I >> tried a few things, but all in vain. >> >> Any suggestions? >> >> Kind regards >> Rohan >> > -- You received this message because you are subscribed to the Google Groups "Racket Users" gro

Re: [racket-users] Right click on hierarchical-list-item?

2021-07-13 Thread Chris Lemmer-Webber
f the > overridden on-event never gets called. Not sure why. Does on-event > never get passed through to the snips inside of heirarchical list menu > items? > > Is there a better, simpler solution? -- You received this message because you are subscribed to the Google Groups "Racket Users

[racket-users] Right click on hierarchical-list-item?

2021-07-13 Thread Chris Lemmer-Webber
ridden on-event never gets called. Not sure why. Does on-event never get passed through to the snips inside of heirarchical list menu items? Is there a better, simpler solution? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To

Re: [racket-users] Question from a beginner. Why Racket Over Scheme?

2021-07-13 Thread Robby Findler
languages: there also is a typed Racket, a lazy Racket, and various DSLs >> (domain languages) which compile to and (mostly) freely intermix with >> Racket. >> >> -- > You received this message because you are subscribed to the Google Groups > "Racket Users&q

Re: [racket-users] Question from a beginner. Why Racket Over Scheme?

2021-07-13 Thread joseph turco
t; module language instead. > > George > [*] At least the untyped Racket language. Racket really is a /suite/ of > languages: there also is a typed Racket, a lazy Racket, and various DSLs > (domain languages) which compile to and (mostly) freely intermix with > Racket. >

Re: [racket-users] Question from a beginner. Why Racket Over Scheme?

2021-07-13 Thread George Neuner
nd (mostly) freely intermix with Racket. -- 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 discuss

Re: [racket-users] Question from a beginner. Why Racket Over Scheme?

2021-07-13 Thread joseph turco
g deep enough. Maybe if you fine folk don't mind > pointing me in the right direction? Please excuse my ignorance. > > > > -- Joseph T > > > > > > -- > > You received this message because you are subscribed to the Google > Groups "Racket Users"

Re: [racket-users] Question from a beginner. Why Racket Over Scheme?

2021-07-13 Thread 'John Clements' via Racket Users
? Please excuse my ignorance. > > -- Joseph T > > > -- > 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-user

[racket-users] Question from a beginner. Why Racket Over Scheme?

2021-07-13 Thread joseph turco
- Joseph T -- 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 on the web visit https:/

Re: [racket-users] Syntax Parse Bee 2021

2021-07-13 Thread Stephen De Gabrielle
tly use syntax-parse). Try to >make the old macro more maintainable, more robust against errors, and/or >more flexible. > > Updates will be via Racket News, Racket-Users, Slack, Discord & Reddit. > > Whatever you decide, we hope that you learn and have fun! > > - Ben + Stephe

Re: [racket-users] Rosette variable definitions from an s-expression (I'm new to Rosette)

2021-07-12 Thread Sorawee Porncharoenwase
there's a more "normal" way to do this, i.e., to > extract all names not it (make-base-namespace) from an s-expression and > then make symbolics for some/all of them as if with define-symbolic. > > Perhaps this is easy, or perhaps this is just not something one could d

[racket-users] Rosette variable definitions from an s-expression (I'm new to Rosette)

2021-07-12 Thread David Wonnacott
expression and then make symbolics for some/all of them as if with define-symbolic. Perhaps this is easy, or perhaps this is just not something one could do with Rosette, or perhaps something in between? Dave W -- You received this message because you are subscribed to the Google Groups "

Re: [racket-users] Differences between execution in DrRacket and Command Line

2021-07-12 Thread Shu-Hung You
t;year-1-analysis.rkt" from the very beginning and never left the module or re-required it. However, I don't see how that could trigger the current issue. The error message suggests that the module defining the trade structure has been instantiated multiple times in different namespaces.

Re: [racket-users] How to set type signature for recursive lazy list

2021-07-12 Thread Ben Greenman
in: (stream-append (stream (drop-right xs 1)) (gfib_t xs)) Change (stream (drop-right xs 1)) to (apply stream (drop-right xs 1)) and you should be OK. (It might be possible to call stream-append with a list and a stream --- like the untyped code does --- but I haven't figured out how to

Re: [racket-users] How to set type signature for recursive lazy list

2021-07-12 Thread Shu-Hung You
the > same result generated non-typed racket code ? > > Thanks, > Kiong-Ge. > > > > -- > 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, sen

[racket-users] How to set type signature for recursive lazy list

2021-07-11 Thread Kiong-Gē Liāu
-Ge. -- 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 on the web visit https://grou

[racket-users] Is anyone looking to hire a junior web developer?

2021-07-10 Thread David Storrs
a link? -- 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 on the web vi

[racket-users] IFL'21 Third call for papers

2021-07-08 Thread Pieter Koopman
f the Radboud university registration is free of charge. [image: beacon] -- 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...@googleg

[racket-users] Re: Racket web-server question

2021-07-08 Thread schle...@gmail.com
lite database does not update the data until I restart the server. I > tried a few things, but all in vain. > > Any suggestions? > > Kind regards > Rohan > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscri

Re: [racket-users] Inspiration for pict and 2htdp/image ?

2021-07-07 Thread Stephen De Gabrielle
spiration for the pict and 2htdp/image functional picture libraries? > > > > Bw > > Stephen > > > > https://eprints.soton.ac.uk/257577/1/funcgeo2.pdf > > > > -- > > > > > > -- > > You received this message because you

Re: [racket-users] Inspiration for pict and 2htdp/image ?

2021-07-07 Thread Shu-Hung You
- > > -- > 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 on the w

[racket-users] Inspiration for pict and 2htdp/image ?

2021-07-07 Thread Stephen De Gabrielle
"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/CAGHj7-%2B%2B2tq2FJUNb27xw0%3DtHypq%2BgfMW9vWH4fxTt

[racket-users] First contribution! Re: Syntax Parse Bee 2021

2021-07-07 Thread Stephen De Gabrielle
gt;2. *Macro Engineering* : Use the tools in syntax-parse to improve an >existing macro (which may or may not currently use syntax-parse). Try to >make the old macro more maintainable, more robust against errors, and/or >more flexible. > > Updates will be via Racket

[racket-users] Racket web-server question

2021-07-06 Thread Rohan Posthumus
suggestions? Kind regards Rohan -- 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 on the

[racket-users] CFP: PLOS '21: 11th Workshop on Programming Languages and Operating Systems

2021-07-05 Thread Eric Eide
MMITTEE Antonio Barbalace, The University of Edinburgh Eric Eide, University of Utah Pierre Olivier, The University of Manchester Olaf Spinczyk, Osnabrueck University -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from thi

Re: [racket-users] Re: [ANN] megaparsack 1.4 — support for user-defined parser state

2021-07-05 Thread Siddhartha Kasivajhula
t;> update in a long while, so I figured I’d give a heads-up. If you’ve counted >> the library out in the past for missing this feature, consider giving it >> another look. And if you’re interested in learning more, the gory details >> are described in the documentation, along w

Re: [racket-users] parenthesis colours

2021-07-05 Thread Robby Findler
especially when the error-reporting mechanism highlights a part of > the > > > > > code it thinks is in error -- using red highlighting, obscuring the > > > > > possibly unbalanced parentheses completely. > > > > > > > > > > Is it possible t

Re: [racket-users] parenthesis colours

2021-07-05 Thread Hendrik Boom
w crucial parentheses are in Racket, this is an obstacle, > > > > especially when the error-reporting mechanism highlights a part of the > > > > code it thinks is in error -- using red highlighting, obscuring the > > > > possibly unbalanced parentheses completely. > > &

[racket-users] Re: [ANN] megaparsack 1.4 — support for user-defined parser state

2021-07-04 Thread Alexis King
heads-up. If you’ve counted > the library out in the past for missing this feature, consider giving it > another look. And if you’re interested in learning more, the gory details > are described in the documentation, along with some additional examples (at > the time of this writing, p

Re: [racket-users] parenthesis colours

2021-07-04 Thread Robby Findler
set parenthese to be some other colour, such as, say, > a bright green or white? > > -- hendrik > > -- > 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] Re: machine and network outage at Northeastern

2021-07-04 Thread Robby Findler
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 on the web visit > https://groups.google.com/d/msgid/racket

[racket-users] parenthesis colours

2021-07-04 Thread Hendrik Boom
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 on the web visit https://groups.google.com/d/msgid/racket-users/20210704122648.hbztac

[racket-users] [ANN] megaparsack 1.4 — support for user-defined parser state

2021-07-04 Thread Alexis King
examples (at the time of this writing, pkg-build hasn’t rebuilt the docs just yet, but that should be resolved with tomorrow’s daily refresh). Happy parsing, Alexis -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe f

Re: [racket-users] Re: machine and network outage at Northeastern

2021-07-02 Thread Shu-Hung You
The PLaneT website (https://planet.racket-lang.org/) is currently unreachable. The error message is ERR_CONNECTION_REFUSED. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails fro

Re: [racket-users] Show & Tell - Xiden Documentation Revamp

2021-07-02 Thread Sage Gerard
just the > guide and the transition to the exercises? What do you find clear/confusing? > Did the examples work on your machine? etc. -- ~slg -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop rece

[racket-users] Show & Tell - Xiden Documentation Revamp

2021-07-02 Thread Sage Gerard
essage 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 on the web visit https://groups.google.com/d/msgid/racket-use

[racket-users] Differences between execution in DrRacket and Command Line

2021-07-02 Thread Rhazes Spell
) (transaction 29556891965 (date* 0 0 0 23 04 2017 3 294 #t -25200 0 "PDT") "simInvest" 'PYPL 'B... My question is what are the differences between using a module in DrRacket versus on the command line? Thank you in advance for your assistance. Cheers, r.. -- You received

[racket-users] Racket News - Issue 52

2021-07-02 Thread Paulo Matos
Issue 52 of RN is here: https://racket-news.com/2021/07/racket-news-issue-52.html Enjoy! Paulo Matos -- 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

Re: [racket-users] raco pkg migrate

2021-07-02 Thread Laurent
ed 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 on the web visit > https

[racket-users] raco pkg migrate

2021-07-01 Thread Curtis Dutton
previously installed version? Ideally I'd like to automate that so when I apt-get upgrade the packages are migrated for me. Thanks, Curt -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiv

Re: [racket-users] SISAL like interpreters in racket/scheme

2021-07-01 Thread Stephen De Gabrielle
t/ > > -- > 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 on the web

Re: [racket-users] Moving a function into a different `place?`

2021-07-01 Thread George Neuner
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 on the web visit https://groups.google.c

Re: [racket-users] build error on the package server for a package whose source is a simple URL (not a Git repo)

2021-07-01 Thread Matthew Flatt
ype in the > server's response, but barring that, calling the `file` utility will reveal > it's a gzip'd tar file, etc.), and we're off to the races. Am I thinking > about things incorrectly? Are my expectations too high? What can I do? > (Please don't tell me to just use Git!) >

[racket-users] build error on the package server for a package whose source is a simple URL (not a Git repo)

2021-07-01 Thread je...@lisp.sh
etc.), and we're off to the races. Am I thinking about things incorrectly? Are my expectations too high? What can I do? (Please don't tell me to just use Git!) Jesse -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from

Re: [racket-users] Moving a function into a different `place?`

2021-07-01 Thread Sam Tobin-Hochstadt
> fine but then your interface doesn't match what the user is expecting. > > https://groups.google.com/g/racket-users/c/wexYxYYU7GE/m/3zXxn6NoAwAJ?pli=1 > >> >> Sam >> >> On Thu, Jul 1, 2021 at 2:36 PM David Storrs wrote: >> > >> > What is t

Re: [racket-users] Moving a function into a different `place?`

2021-07-01 Thread David Storrs
fine but then your interface doesn't match what the user is expecting. https://groups.google.com/g/racket-users/c/wexYxYYU7GE/m/3zXxn6NoAwAJ?pli=1 > Sam > > On Thu, Jul 1, 2021 at 2:36 PM David Storrs > wrote: > > > > What is the best way to pass a function into a child `pla

Re: [racket-users] Moving a function into a different `place?`

2021-07-01 Thread Sam Tobin-Hochstadt
out. Since it's all of Racket that's being frozen > and not just the current thread it's necessary to put the server code into an > entirely different `place`. > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users&quo

[racket-users] Moving a function into a different `place?`

2021-07-01 Thread David Storrs
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/CAE8gKoemyTeoP2GW5-_h6rGxW_1YcfyCQfHSs9ee

Re: [racket-users] machine and network outage at Northeastern

2021-07-01 Thread Sam Tobin-Hochstadt
last from today June 30 through July 2. We have been reassured > that it will come back then several times. The most observable effect for > Racket > Users is the absence of `planet`. > > — Matthias > > -- > You received this message because you are subscribed to th

[racket-users] Syntax Parse Bee 2021

2021-06-30 Thread Ben Greenman
against errors, and/or more flexible. Updates will be via Racket News, Racket-Users, Slack, Discord & Reddit. Whatever you decide, we hope that you learn and have fun! - Ben + Stephen PS a 'Bee' is a community effort toward a common goal. A quilting bee is for making a quilt. In this

[racket-users] machine and network outage at Northeastern

2021-06-30 Thread matthias
Northeastern has taken down its research machines and network for major repairs. The outage will last from today June 30 through July 2. We have been reassured that it will come back then several times. The most observable effect for Racket Users is the absence of `planet`. — Matthias

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

2021-06-29 Thread Jonathan Simpson
master/racket/src/cs/rumble/number.ss#L364 >> >> It uses the term "contract", and the exception is an instance of >> `exn:fail:contract`, but it is not generated by the `racket/contract` >> library. >> >> > I take it that the contract error above was

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

2021-06-29 Thread Robby Findler
e `racket/contract` > library. > > > I take it that the contract error above was generated by a lower-level > contract then. I've only glanced at contracts, so I assume this is > documented somewhere. Is this section of the Reference referring to the > simple contracts that you m

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

2021-06-29 Thread Sam Tobin-Hochstadt
a lower-level > contract then. I've only glanced at contracts, so I assume this is documented > somewhere. Is this section of the Reference referring to the simple contracts > that you mention? From https://docs.racket-lang.org/reference/contracts.html: > --- > Contracts come in two

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

2021-06-29 Thread Jonathan Simpson
Contracts come in two forms: those constructed by the various operations listed in this section of the manual, and various ordinary Racket values that double as contracts, including... --- Once again, thanks for the information. -- Jonathan -- You received this message because you are subscr

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

2021-06-29 Thread Stefan Schwarzer
overwhelming first, but with some time and experimentation it becomes better (like with so many things regarding Racket ;-) ). Stefan -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving e

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

2021-06-28 Thread Sam Tobin-Hochstadt
eck can be removed in the simplest of cases; the second kind is basically never removed by the compiler. There are other cases where macros can generate code that omits contract checks, as with the `for` forms when used with sequence generators like `in-list`, but that is again for simple checks. S

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

2021-06-28 Thread Jonathan Simpson
s, but can we rely on others? Thanks, Jonathan -- 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 discus

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

2021-06-28 Thread Robby Findler
allocations and garbage collection are not > tracked by the profiler? > > Thinking about it: Does garbage collection also pause the profiler's > sampler thread? That would explain the lack of samples from these code > paths, of course. > > > All the best, > Alessandro >

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

2021-06-28 Thread Alessandro Motta
memory allocations and garbage collection are not tracked by the profiler? Thinking about it: Does garbage collection also pause the profiler's sampler thread? That would explain the lack of samples from these code paths, of course. All the best, Alessandro -- You received this message because you

Re: [racket-users] Top-level unbound identifiers during expansion

2021-06-28 Thread Greg Rosenblatt
ts/racket/repl.rkt:11:26 > > > > > > I can work around this issue by altering issue-syntax to forward-define > names before using set! to initialize them: > > > > (define-syntax (issue-syntax stx) > > (syntax-case stx () > > ((_ ((name param ...) body

Re: [racket-users] Top-level unbound identifiers during expansion

2021-06-28 Thread Sam Tobin-Hochstadt
am ...) body ...) ...) > (with-syntax (((name.r ...) (generate-temporaries #'(name ... >#'(begin (define-syntax (name stx) > (syntax-case stx () > ((_ . args) #'(name.r . args)) > (_ #'name.r))) ... > (defi

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

2021-06-28 Thread Bogdan Popa
newly-allocated string before copying, I wonder if that would be a worthwhile improvement to make to it. -- 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

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

2021-06-27 Thread Bogdan Popa
c behavior. Ah! You're right. When I make the change you suggest, the program takes 5s to run. Filed under "Accidentally Not Quadratic" . -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group

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

2021-06-27 Thread Matthew Flatt
which apparently (and sensibly) doesn't do anything if the source and destination are the same. Try copying to a `dst2` to get quadratic behavior. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop

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

2021-06-27 Thread jackh...@gmail.com
; > > > Because in (cons x xs) the existing list xs isn't copied. > > The steps are > > 1. a new pair with two cells (the car and the cdr) are allocated > > 2. the contents of the car is set to x > > 3. the contents of the cdr is set to xs. > > > > This al

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

2021-06-27 Thread Bogdan Popa
are >1. a new pair with two cells (the car and the cdr) are allocated >2. the contents of the car is set to x >3. the contents of the cdr is set to xs. > > This always takes the same amount of time, no matter how long the list xs > is. > This means that the

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

2021-06-27 Thread Jens Axel Søgaard
phenomenon that using string-append in a loop is not a Racket only problem. It is a common pitfall in many languages. [1] Remember the famous story of Gauss as a child that calculated 1+2+...1000 ? https://www.youtube.com/watch?v=Dd81F6-Ar_0 /Jens Axel - https://racket-

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

2021-06-27 Thread Robby Findler
much to allocate before a second pass to filling in the string). hth, Robby -- 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+uns

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

2021-06-27 Thread Alessandro Motta
s->string x y))) > > All the calls to `string-append` in your original program end up > allocating larger and larger strings and then immediately discarding > them on subsequent iterations, which is costly over many iterations. > > Hope that helps, >

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

2021-06-27 Thread Robby Findler
ating larger and larger strings and then immediately discarding > them on subsequent iterations, which is costly over many iterations. > > Hope that helps, > Bogdan > > Alessandro Motta writes: > > > Hi racket-users! > > > > I've recently become interest

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

2021-06-27 Thread Bogdan Popa
(xy-vectors->string x y))) > > All the calls to `string-append` in your original program end up > allocating larger and larger strings and then immediately discarding > them on subsequent iterations, which is costly over many iterations. > > Hope that helps, > Bogdan >

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

2021-06-27 Thread Jens Axel Søgaard
21 kl. 15.26 skrev Alessandro Motta : > Hi racket-users! > > I've recently become interested in Lisp/Scheme and have started to hack > in Racket. The excellent documentation, the fast integrated search, and > DrRacket have made that a real pleasure. > > Thank you for tha

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

2021-06-27 Thread Bogdan Popa
ding them on subsequent iterations, which is costly over many iterations. Hope that helps, Bogdan Alessandro Motta writes: > Hi racket-users! > > I've recently become interested in Lisp/Scheme and have started to hack > in Racket. The excellent documentation, the fast integrated search, and

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

2021-06-27 Thread Alessandro Motta
Hi racket-users! I've recently become interested in Lisp/Scheme and have started to hack in Racket. The excellent documentation, the fast integrated search, and DrRacket have made that a real pleasure. Thank you for that! I've been working on a tool to convert notes from the reMarkable 2 tablet

[racket-users] Second CfP: Scheme 2021 *Extended Deadline* - 22nd Scheme and Functional Programming Workshop (Co-located with ICFP 2021)

2021-06-26 Thread web...@gmail.com
edman, Indiana University Olin Shivers, Northeastern University William E. Byrd, University of Alabama at Birmingham -- 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

[racket-users] Re: Is it possible to specify a hierarchy of menu-item options in racket/gui more than 2 deep?

2021-06-26 Thread schle...@gmail.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...@googlegroups.com. To view this discussion on the web visit https://groups.google.c

[racket-users] Re: Trying to specify resize-border for instance of dialog

2021-06-26 Thread schle...@gmail.com
The docs say style: (listof (or/c 'no-caption 'resize-border 'no-sheet 'close-button)) = null so either (style (list 'resize-border)) or (style '(resize-border)) -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from

Re: [racket-users] Trying to specify resize-border for instance of dialog

2021-06-25 Thread Stefan Schwarzer
gt; resize-border: unbound identifier in: resize-border I guess you want 'resize-border (as a symbol). :-) -- 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 emai

[racket-users] How do I create a scrollable popup window?

2021-06-25 Thread Don Green
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 on the web visit https://groups.google.com/d/msgid/racket-users/c50eaeeb-2690-4da4-b7a0-43b

Re: [racket-users] Trying to specify resize-border for instance of dialog

2021-06-25 Thread Sorawee Porncharoenwase
gt; resize-border: unbound identifier in: resize-border > > -- > 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...@goo

[racket-users] Is it possible to specify a hierarchy of menu-item options in racket/gui more than 2 deep?

2021-06-25 Thread Don Green
far not been successful at creating a deeper hierarchy of subsuboptions. -- 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-user

[racket-users] Trying to specify resize-border for instance of dialog

2021-06-25 Thread Don Green
ge 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 on the web visit https://groups.google.com/d/msgid/racket-user

<    3   4   5   6   7   8   9   10   11   12   >