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

2019-06-15 Thread Sanjeev Sharma
a different identifier in the for(). On Friday, June 14, 2019 at 12:46:54 PM UTC-4, David Storrs wrote: > > > > On Fri, Jun 14, 2019 at 10:45 AM Sanjeev Sharma > wrote: > >> within this for loop is there any way to access different pieces of the >> description and amt? c

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

2019-06-14 Thread Sanjeev Sharma
cat is from srfi/54 On Friday, June 14, 2019 at 10:45:10 AM UTC-4, Sanjeev Sharma wrote: > > within this for loop is there any way to access different pieces of the > description and amt? car-ing and cdr-ing for example? > > Or move the identifier definitions into the let*,

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

2019-06-14 Thread Sanjeev Sharma
within this for loop is there any way to access different pieces of the description and amt? car-ing and cdr-ing for example? Or move the identifier definitions into the let*, and pass those to for in some way? (let*((ratio 9/12)) (for((description(list "this" "that")) (amt(list

[racket-users] Re: RacketCon: These 8 INSANE talks about Racket will change your life! I can't believe #7! --- (ninth RacketCon) on July 13th, 2019 --- Speakers Announced!

2019-04-29 Thread Sanjeev Sharma
I believe "you won't believe ..." tests out better (higher click through) in scientific advertising circles than "I can't believe ..." . On Thursday, April 25, 2019 at 4:06:41 PM UTC-4, Jay McCarthy wrote: > > (ninth RacketCon) on July 13th, 2019 > > Speakers Announced! > >

[racket-users] Re: printing decimals

2019-03-19 Thread Sanjeev Sharma
WHOPS ... SRFI/54 On Friday, March 15, 2019 at 1:57:03 PM UTC-4, sdgu...@gmail.com wrote: > > Hi all, > > I've been looking through the docs for a way to print decimals to a > defined precision. > > I can get close to what I want using something like ~a and giving it a set > width without

[racket-users] Re: printing decimals

2019-03-19 Thread Sanjeev Sharma
SRFI 57, the function cat differs from ~r in several areas, but looks like a decent alternative On Friday, March 15, 2019 at 1:57:03 PM UTC-4, sdgu...@gmail.com wrote: > > Hi all, > > I've been looking through the docs for a way to print decimals to a > defined precision. > > I can get close

Re: [racket-users] Racket-on-Chez snapshot builds

2018-11-20 Thread Sanjeev Sharma
I'm getting much faster startup times. And the initial freeze when loading a file after initial startup - is that actually faster or has it been amortized using lazy techniques? On Monday, November 19, 2018 at 6:35:43 PM UTC-5, Matthew Butterick wrote: > > > > On Nov 19, 2018, at 2:06 PM,

[racket-users] Re: 2018 SIGPLAN Software Award

2018-09-28 Thread Sanjeev Sharma
Hope you get many more accolades. Your work keeps me curious & engaged intellectually long after I left programming partly due to lack of curiosity among my colleagues and my own lack of curiosity with the methods available to me. On Wednesday, September 26, 2018 at 6:53:34 PM UTC-4,

Re: [racket-users] Thank you Racket!

2018-08-24 Thread Sanjeev Sharma
I didn't realize (though I should have) that the comment could be taken that way. I realize you were not writing anything about the Turing language, but the title of the essay triggered some memories for me of what my classmates and later my professional colleagues used to talk about. And

Re: [racket-users] Thank you Racket!

2018-08-24 Thread Sanjeev Sharma
"Turing is useless" ... While I worked as a programmer I used to complain quite bitterly about university comp sci departments that had NIH (not invented here) syndrome and a captive audience. I learned Turing as my 2nd programming language. I'm sure the only reason it could have been

Re: [racket-users] parameterize and keyword - doable?

2018-08-04 Thread Sanjeev Sharma
the specific case I had in mind was near this (let ([unless? odd?]) (for/sum ([x '(1 2 3 4 5)] #:unless (uless? x)) x)) ;6 but as long as one is defaulting #:unless PLUS #unless is common to all the for's across some arbitrary scope, ideally one could

[racket-users] current build instructions for racketcs?

2018-08-04 Thread Sanjeev Sharma
I haven't done this in a while & the config / build from src/cs/c/ using racket 7 source with built packages failed this morning. Are the READMEs still up to date? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this

Re: [racket-users] parameterize and keyword - doable?

2018-08-03 Thread Sanjeev Sharma
, gneuner2 wrote: > > > On 8/2/2018 7:45 PM, Sanjeev Sharma wrote: > > can racket's #: keywords be finagled / coerced into a parameterizable > > form? > > ??? > > Certainly you can pass a parameter to a keyword argument, and/or make a > parameter the default v

[racket-users] parameterize and keyword - doable?

2018-08-02 Thread Sanjeev Sharma
can racket's #: keywords be finagled / coerced into a parameterizable form? -- 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] Re: what do people use for number formatting?

2018-05-08 Thread Sanjeev Sharma
SRFI 54 - ever need a 4-character "thousands" separator? Bharat has units called lakhs & crores, instead of thousands I think there was a numberphile episode on it. French, Dutch, Babylonian, Indian ... Just one of the things I needed recently; I've used a bunch of SRFI 54 features over

Re: [racket-users] sharing an awesome plot - warms the cockles of my heart

2018-03-29 Thread Sanjeev Sharma
my animated-canvas% >>>> package, which is still on planet. I've also attached a gif of it. [I had >>>> never used the animated gif routines in Racket before, but they were pretty >>>> easy to use.] I've also attached an an animation of one of the 3D plots >>

Re: [racket-users] sharing an awesome plot - warms the cockles of my heart

2018-03-26 Thread Sanjeev Sharma
what. the. heck. is going on here? On Monday, March 26, 2018 at 10:49:45 AM UTC-4, m.douglas.williams wrote: > > And, I made a gif of the animated 3D plot. > > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group

[racket-users] Re: sharing an awesome plot - warms the cockles of my heart

2018-03-25 Thread Sanjeev Sharma
, March 23, 2018 at 5:17:03 PM UTC-4, Sanjeev Sharma wrote: > > I've done no math in 20 years - used to do tons (with the not so great > graphics of the time) saw this intriguing plot & banged my head against a > wall for a couple of hours. > > Then I just settled

[racket-users] Re: sharing an awesome plot - warms the cockles of my heart

2018-03-25 Thread Sanjeev Sharma
, Sanjeev Sharma wrote: > > I've done no math in 20 years - used to do tons (with the not so great > graphics of the time) saw this intriguing plot & banged my head against a > wall for a couple of hours. > > Then I just settled down & read the manual systematically, pret

[racket-users] sharing an awesome plot - warms the cockles of my heart

2018-03-23 Thread Sanjeev Sharma
I've done no math in 20 years - used to do tons (with the not so great graphics of the time) saw this intriguing plot & banged my head against a wall for a couple of hours. Then I just settled down & read the manual systematically, pretending it may have some info, followed the examples and

[racket-users] windows nightly builds -run beside the stable version?

2018-03-07 Thread Sanjeev Sharma
Is there a self-contained nightly build without the installer which sets defaults and icons and shortcuts? I'd like to test out the nightly builds but they occasionally step over the stable version. -- You received this message because you are subscribed to the Google Groups "Racket Users"

Re: [racket-users] Olin Shivers's loop is supposed to be around somewhere

2017-07-25 Thread Sanjeev Sharma
sigh ... meant to get this part into the reply (from the same paper) The original version of the loop macro consists of 1840 lines of code, not counting comments and empty lines. The implementation of the loop keyword macros takes 387 lines; the rest includes the implementation of its various

[racket-users] Re: Olin Shivers's loop is supposed to be around somewhere

2017-07-25 Thread Sanjeev Sharma
hirty-one CPS macros [Hilsdale and Friedman 2000] for loop > clauses such as for and do. > > CPS macros pose challenges for generating good erro So it looks like Ryan Culpepper has a racket version? I didn't see anything obvious on his github account. On Friday, July 21, 2017 at 6:32:43 A

[racket-users] Olin Shivers's loop is supposed to be around somewhere

2017-07-21 Thread Sanjeev Sharma
anyone have a working implemntation? Just a little while ago I read something to the effect that Shivers thought error handling would be a huge mess but there's a Racket implementation that does a lot of error handling cheaply. -- You received this message because you are subscribed to the

[racket-users] Re: emacs keybinding behaviour - is this as designed?

2017-06-26 Thread Sanjeev Sharma
addenda are becoming a habit with me ... a vague memory stirs. Was there an article discouraging the use of these bindings and giving good reasons for doing so a long time ago? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe

[racket-users] emacs keybinding behaviour - is this as designed?

2017-06-26 Thread Sanjeev Sharma
The issue is with marking a region at s-expr boundary (start or end) I start the marking (C-space) and move forward (C-f or right arrow) and the region is marked as I expect, whether I cross an s-expr boundary or not. and some results I didn't expect I start the marking (C-space) and move

Re: [racket-users] threading macros

2017-06-26 Thread Sanjeev Sharma
f threading with a more powerful binding form, though if you > can come up with a syntax that accomplishes what you’re getting at, I’d > certainly at least be interested by it. > > > On Jun 25, 2017, at 09:44, Sanjeev Sharma wrote: > > > > is there a way to do a calculation in

Re: [racket-users] Re: lambda and the equivalent define / "defun"

2016-09-07 Thread Sanjeev Sharma
'() for the parameter For the usual (no ) function call It's not an issue for the standard car/cdr idiom of walking down recursive structures. On Wednesday, September 7, 2016 at 9:28:23 AM UTC-4, Jon Zeppieri wrote: > On Wed, Sep 7, 2016 at 8:33 AM, Sanjeev Sharma <thro...@gmail.com&

Re: [racket-users] Re: lambda and the equivalent define / "defun"

2016-09-07 Thread Sanjeev Sharma
Thanks for joining in. The amended question had nothing to do with the earlier example I'm wondering if there's a quick, standard (and easily understood) idiom (without an internal helper function) to recur on the variable argument list y The flatten's not ideal - I may want to retain some

[racket-users] Re: lambda and the equivalent define / "defun"

2016-09-06 Thread Sanjeev Sharma
sday, September 6, 2016 at 7:39:59 AM UTC-4, gneuner2 wrote: > On Sun, 4 Sep 2016 10:36:21 -0700 (PDT), Sanjeev Sharma wrote: > > >two "x" 's also work > > > >(define list (lambda x x)) > > (lambda x x x) works because the evaluation of the middle x is a side &g

Re: [racket-users] Re: lambda and the equivalent define / "defun"

2016-09-04 Thread Sanjeev Sharma
if anyone stumbles on this later this is also discussed in Kent Dybvig's TSPL4 http://www.scheme.com/tspl4/start.html#./start:h6 from section 2.6: For example, the definitions of cadr and list might be written as follows. (define (cadr x) (car (cdr x))) (define (list . x) x) -- You

Re: [racket-users] Re: lambda and the equivalent define / "defun"

2016-09-04 Thread Sanjeev Sharma
merci & danker - I had just done same-parity exercise using this but did not see the equivalence -- 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] Re: lambda and the equivalent define / "defun"

2016-09-04 Thread Sanjeev Sharma
two "x" 's also work (define list (lambda x x)) -- 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,

[racket-users] lambda and the equivalent define / "defun"

2016-09-04 Thread Sanjeev Sharma
is there a define syntax equivalent to this lambda (define list (lambda x x x)) (list 1 2 3 4 5 "a") ;returns ;'(1 2 3 4 5 "a") I wanted to write subsets from SICP without passing the parameter as a list, and a simiar version of average (define nil '()) (define (subsets s) (if (null? s)

Re: [racket-users] values - should this work?

2016-08-18 Thread Sanjeev Sharma
very cool let-values is does what I need On Thursday, August 18, 2016 at 1:50:18 PM UTC-4, Jens Axel Søgaard wrote: > No, (list (values 1 2 3)) is not supposed to work. > Multiple values can be cumbersome to work with. > In this case you want: > > >     (call-with-values (λ () (values 1 2 3))

[racket-users] values - should this work?

2016-08-18 Thread Sanjeev Sharma
(list(values 1 2 3)) result arity mismatch; expected number of values not received expected: 1 received: 3 values...: I've been under the impression this should be identical to (list 1 2 3) -- You received this message because you are subscribed to the Google Groups "Racket Users"

Re: [racket-users] colorizing code in html - scribble or the GUI?

2016-03-19 Thread Sanjeev Sharma
thanks folks - marked completed but please share more if there are more I was going to use hilite.me but I prefer having something resembling the racket documents -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group

[racket-users] colorizing code in html - scribble or the GUI?

2016-03-15 Thread Sanjeev Sharma
is there a quick & dirty way to use scribble or the drracket GUI to generate html for random code snippets? -- 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] listing the identifiers from "all-defined-out" and "all-from-out"

2015-12-18 Thread Sanjeev Sharma
how can I get lists of identifiers im/exported when one uses all-defined-out all-from-out I can't yet make sense of regprov.rkt -- 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

Re: [racket-users] keep everything in each in-place install

2015-08-02 Thread Sanjeev Sharma
thanks same versions - I was trying to see the effects of different gcc optimization flags, especially with Pict3D some math. On Saturday, August 1, 2015 at 10:35:55 PM UTC-4, Matthew Flatt wrote: Are you seeing conflicts with different installations that have the same version number? Or

[racket-users] keep everything in each in-place install

2015-08-01 Thread Sanjeev Sharma
I am getting conflicts between the global install and in-place installs, especially in document searches not working. I'm guessing the issue is with user preferences. Is there a way to do the in-place install such that everything gets put in the in-place install's tree? -- You received

[racket-users] overlapping fields in windows, DrRacket user interface (preferences, choose language)

2015-06-29 Thread Sanjeev Sharma
windows 7; it's most obvious in preferences - warnings also choose language - details I can ivoke and reverse it from this screen: Control Panel\Appearance and Personalization\Display - make text and other items larger or smaller - medium -- You received this message because you are