Re: [racket-users] Is there a function to find and update all compiled directories?

2020-11-01 Thread George Neuner


On 11/1/2020 9:20 PM, Sam Tobin-Hochstadt wrote:


On Sun, Nov 1, 2020, 9:11 PM George Neuner > wrote:



On 11/1/2020 6:50 PM, Shu-Hung You wrote:
> Using the command-line instruction `raco setup` will update all
> obsolete bytecodes. If you are looking for a programmable interface,
> `compiler/cm` is a good starting point.

Note that "raco setup" rebuilds *only* Racket's own modules and
installed extra packages - it does not rebuild any programmer code.


`raco setup` rebuilds all collections, including all installed or 
linked packages. This includes "programmer code" if you make it a 
package or collection, which is usually a good idea for anything long 
lived.


Sam



In general I agree with you (although making packages out of everything 
complicates migrations to new Racket versions).   However what I said 
previously is correct:  "raco setup" only rebuilds stuff that is 
directly under Racket's control  (installed packages or collections).


It is not guaranteed to rebuild every Racket based program on your 
system ... and that is what I intended to convey.


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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/90429cf8-1ada-9a3d-9413-b973120c98e1%40comcast.net.


Re: [racket-users] Is there a function to find and update all compiled directories?

2020-11-01 Thread Sam Tobin-Hochstadt
On Sun, Nov 1, 2020, 9:11 PM George Neuner  wrote:

>
> On 11/1/2020 6:50 PM, Shu-Hung You wrote:
> > Using the command-line instruction `raco setup` will update all
> > obsolete bytecodes. If you are looking for a programmable interface,
> > `compiler/cm` is a good starting point.
>
> Note that "raco setup" rebuilds *only* Racket's own modules and
> installed extra packages - it does not rebuild any programmer code.
>

`raco setup` rebuilds all collections, including all installed or linked
packages. This includes "programmer code" if you make it a package or
collection, which is usually a good idea for anything long lived.

Sam

>

-- 
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/CAK%3DHD%2BZQxPA3p49Pu9jnLZeRKkJmCOve%2Bie7qLfhiAVa3HC6zQ%40mail.gmail.com.


Re: [racket-users] Is there a function to find and update all compiled directories?

2020-11-01 Thread George Neuner



On 11/1/2020 6:50 PM, Shu-Hung You wrote:

Using the command-line instruction `raco setup` will update all
obsolete bytecodes. If you are looking for a programmable interface,
`compiler/cm` is a good starting point.


Note that "raco setup" rebuilds *only* Racket's own modules and 
installed extra packages - it does not rebuild any programmer code.


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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/99286665-fed0-caeb-6eb0-2cb2cac4969f%40comcast.net.


Re: [racket-users] Should I enter racket questions here: https://groups.google.com/g/racket-users

2020-11-01 Thread Sorawee Porncharoenwase
You can certainly ask questions here, but please keep in mind that it is
also a mailing list. If you have many related questions, it would be nice
to create only one thread to ask all related questions, to avoid spamming
emails to the mailing list recipients.

Another place to ask questions is Slack channel (sign up at
https://racket-slack.herokuapp.com/, visit the channel at
https://racket.slack.com/). Slack has a chat interface, so it might be more
suitable for several short questions.

On Sun, Nov 1, 2020 at 1:11 PM infodeveloperdon 
wrote:

>
> Should I enter racket questions here:
> https://groups.google.com/g/racket-users
>
> --
> 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/8ebd713e-eb8f-422d-80d9-2c7b3edb55dbn%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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CADcuegv1d3WiZ98qn%2BKFk43aFpg5CeWa8JvTjkE_g%2B51HFqYxA%40mail.gmail.com.


Re: [racket-users] Is there a function to find and update all compiled directories?

2020-11-01 Thread Shu-Hung You
Using the command-line instruction `raco setup` will update all
obsolete bytecodes. If you are looking for a programmable interface,
`compiler/cm` is a good starting point.

On Sun, Nov 1, 2020 at 5:43 PM infodeveloperdon
 wrote:
>
> I've never had problems with the .zo files being auto-created during 
> development, only when update the Racket version because of course then a new 
> compiler is involved. If I am remembering correctly, any time I've had issues 
> with the compiled files, I've resolved them by deleting the compiled 
> directory identified by the error message. Which only makes me wonder if 
> there is some function I am unaware of that will update compiled directories 
> without needing to specify the path to each one, or find and delete them all 
> (Racket recreates them).
>
> --
> 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/1169e7cf-80b2-4093-b3be-f9253993188cn%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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAMTzy%2BaUhRQWt_LkeKgJxsOL33-sd6Hbv7Qgu5oCVvXti0cHFA%40mail.gmail.com.


[racket-users] Is there a function to find and update all compiled directories?

2020-11-01 Thread infodeveloperdon
I've never had problems with the .zo files being auto-created during 
development, only when update the Racket version because of course then a 
new compiler is involved. If I am remembering correctly, any time I've had 
issues with the compiled files, I've resolved them by deleting the compiled 
directory identified by the error message. Which only makes me wonder if 
there is some function I am unaware of that will update compiled 
directories without needing to specify the path to each one, or find and 
delete them all (Racket recreates them).

-- 
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/1169e7cf-80b2-4093-b3be-f9253993188cn%40googlegroups.com.


Re: [racket-users] Which action should I take: (a) go back to using Racket v.7.7 or (b) resolve issues.

2020-11-01 Thread George Neuner



On 11/1/2020 5:10 PM, infodeveloperdon wrote:
I'm nervous. After installing racket version 7.8 on linux (Ubuntu) at 
a time when I really should not have done only because I'm in the 
middle of development and would much prefer to change the version at a 
later date.  The installation did not go without a hitch this time, 
meaning the problem seems to be minor but will take me time to 
resolve. I am inclined to return to version 7.7, if that is possible.
Q. Is it a mistake to simply reinstall racket v.7.7? Does that action 
make it the current version even though version 7.8 is now installed.


On Linux it's better to uninstall the current version before installing 
another (unless you want to install multiple versions in parallel).  The 
main thing is to AVOID a "Unix-style" installation which sticks things 
in many different places.


see https://ostechnix.com/install-racket-programming-language-on-linux/



Q. To change the current racket version should I be using:
a)  raco setup...
or possibly:
b)  raco pkg remove
and
      raco pkg install
Q. I've been reading up on "Getting Started with Packages" but am I 
correct in thinking they are conceptually within a racket version 
rather than the complete definition of a racket version.

Thanks
Don


Sorry, I don't have a lot of use for packages that aren't included in 
the distribution, so I can't help you here.  If you have installed extra 
packages, they DO need to be migrated into (recompiled for) a new Racket 
version.


If you install multiple versions of Racket (in different directories), 
you can just modify your path to reference the one you want.  Or if you 
use DrRacket, create multiple launchers - one for each version.



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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/70c541d5-9eac-988a-935c-706b28e3d767%40comcast.net.


Re: [racket-users] After installing new racket version it seems that I need to find and delete all 'compiled' dirs...

2020-11-01 Thread George Neuner

On 11/1/2020 4:37 PM, infodeveloperdon wrote:
How do I avoid the auto-creation of the 'compiled' directory which 
currently occurs every time I create a module?


If you're using DrRacket, it's an option:  under "Language -> Choose 
Language ..."


Select the Racket language and press "Show Details" at the bottom of the 
dialog.  The dialog will expand to show more options at the right, one 
of which is "populate 'compiled' directories".  If you turn that off, 
DrRacket won't create and cache .zo files for your source files.  [You 
still need to delete any that already exist.]



If you are using a different editor, then don't try to build your 
program using "raco"[1].  You can execute your program from the command 
line with "racket "  but you have to rely on 
logging or "print" style debugging.  As your programs get more complex, 
you may also find some racket's command line options[2] to be useful.


George

[1] https://docs.racket-lang.org/raco/make.html
[2] https://docs.racket-lang.org/reference/running-sa.html

--
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/50c3ef6f-c210-7cd7-1d47-66fb928e5645%40comcast.net.


Re: [racket-users] After installing new racket version it seems that I need to find and delete all 'compiled' dirs...

2020-11-01 Thread Robby Findler
On Sun, Nov 1, 2020 at 4:12 PM George Neuner  wrote:

>
> On 11/1/2020 4:45 PM, Robby Findler wrote:
> > It is true that running just "racket x.rkt" will not notice some
> > situations where your .zo files are wrong and thus lead to the bad
> > behavior George describes below but I find it quite handy to use .zo
> > files during development, as they can speed things up considerably
> > depending on what's happening in your application. If you are working
> > at the command line and using something like "racket x.rkt" to run
> > your program, then changing to "raco make x.rkt && racket x.rkt" will
> > keep your .zo files all sync'd up.
>
> Dunno ... too many times debugging in DrRacket I've run into situations
> where having .zo files screwed up tracing calls across modules in
> different source files.
>

I'm not sure it would affect tracing but there definitely is a bug in
DrRacket where it manages the .zo files for you, but in certain situations
it will screw them up :( That's a problem I've long had on my list.

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAL3TdOOFY82utjdRwAKrrQr-ri_ztvhbbrjO2LkG9vUb25mmPw%40mail.gmail.com.


Re: [racket-users] After installing new racket version it seems that I need to find and delete all 'compiled' dirs...

2020-11-01 Thread George Neuner



On 11/1/2020 4:45 PM, Robby Findler wrote:
It is true that running just "racket x.rkt" will not notice some 
situations where your .zo files are wrong and thus lead to the bad 
behavior George describes below but I find it quite handy to use .zo 
files during development, as they can speed things up considerably 
depending on what's happening in your application. If you are working 
at the command line and using something like "racket x.rkt" to run 
your program, then changing to "raco make x.rkt && racket x.rkt" will 
keep your .zo files all sync'd up.


Dunno ... too many times debugging in DrRacket I've run into situations 
where having .zo files screwed up tracing calls across modules in 
different source files.


In Racket's defense, I will say I haven't tried to do it with any recent 
versions ... my machines have always been fast, and (other than for 
performance testing or deployments) I gave up on caching .zo files a 
long time ago.


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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/a5b8d35c-c21b-4f87-208d-98aa12174a34%40comcast.net.


[racket-users] Which action should I take: (a) go back to using Racket v.7.7 or (b) resolve issues.

2020-11-01 Thread infodeveloperdon
I'm nervous. After installing racket version 7.8 on linux (Ubuntu) at a 
time when I really should not have done only because I'm in the middle of 
development and would much prefer to change the version at a later date.  
The installation did not go without a hitch this time, meaning the problem 
seems to be minor but will take me time to resolve. I am inclined to return 
to version 7.7, if that is possible.
Q. Is it a mistake to simply reinstall racket v.7.7? Does that action make 
it the current version even though version 7.8 is now installed.
Q. To change the current racket version should I be using:
a)  raco setup... 
or possibly:
b)  raco pkg remove
and
  raco pkg install
Q. I've been reading up on "Getting Started with Packages" but am I correct 
in thinking they are conceptually within a racket version rather than the 
complete definition of a racket version.
Thanks
Don

-- 
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/e45ac1e8-379f-445b-ad1b-8181512e8231n%40googlegroups.com.


Re: [racket-users] After installing new racket version it seems that I need to find and delete all 'compiled' dirs...

2020-11-01 Thread Robby Findler
It is true that running just "racket x.rkt" will not notice some situations
where your .zo files are wrong and thus lead to the bad behavior George
describes below but I find it quite handy to use .zo files during
development, as they can speed things up considerably depending on what's
happening in your application. If you are working at the command line and
using something like "racket x.rkt" to run your program, then changing to
"raco make x.rkt && racket x.rkt" will keep your .zo files all sync'd up.

Robby


On Sun, Nov 1, 2020 at 3:27 PM George Neuner  wrote:

>
> On 11/1/2020 11:34 AM, infodeveloperdon wrote:
> > so that when I run Racket it recreates the 'compiled' directories
> > using the latest compiler.
> > Or is there a better way?
>
> Yeah ... don't use 'compiled' directories for development - they can get
> out of sync and screw up your debugging.
>
> They really are only useful for performance testing or for deployment in
> situations where you don't want to (or can't) build a single executable.
>
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/b83b03b4-f2a8-2b6c-7ac8-00caa1e6d104%40comcast.net
> .
>

-- 
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/CAL3TdOPf70L21NT%2Bn4%2B62OHYQtRXJA1wP%2BTVE-HzjenjQsS1Tw%40mail.gmail.com.


Re: [racket-users] After installing new racket version it seems that I need to find and delete all 'compiled' dirs...

2020-11-01 Thread infodeveloperdon
How do I avoid the auto-creation of the 'compiled' directory which 
currently occurs every time I create a module?  Don
On Sunday, November 1, 2020 at 2:27:57 PM UTC-7 gneuner2 wrote:

>
> On 11/1/2020 11:34 AM, infodeveloperdon wrote:
> > so that when I run Racket it recreates the 'compiled' directories 
> > using the latest compiler.
> > Or is there a better way?
>
> Yeah ... don't use 'compiled' directories for development - they can get 
> out of sync and screw up your debugging.
>
> They really are only useful for performance testing or for deployment in 
> situations where you don't want to (or can't) build a single executable.
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/7826da5f-e661-483e-8998-f64ac243834bn%40googlegroups.com.


Re: [racket-users] After installing new racket version it seems that I need to find and delete all 'compiled' dirs...

2020-11-01 Thread George Neuner



On 11/1/2020 11:34 AM, infodeveloperdon wrote:
so that when I run Racket it recreates the 'compiled' directories 
using the latest compiler.

Or is there a better way?


Yeah ... don't use 'compiled' directories for development - they can get 
out of sync and screw up your debugging.


They really are only useful for performance testing or for deployment in 
situations where you don't want to (or can't) build a single executable.


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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/b83b03b4-f2a8-2b6c-7ac8-00caa1e6d104%40comcast.net.


Re: [racket-users] Where to specify a previously installed racket version or...

2020-11-01 Thread George Neuner



On 11/1/2020 11:15 AM, infodeveloperdon wrote:

Where to specify a previously installed racket version or...
is the only way to change back from version 7.8 to 7.7 to re-install 
version 7.7?


You can install multiple versions in parallel as long as they are kept 
aprat in separate directory hierarchies.  This is the default on 
Windows, but on Linux be sure to choose an install option that keeps 
everything together and doesn't create extraneous links in the top level 
system directories.


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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/bbb875dd-462e-a4bc-bf8e-eb69997c3c78%40comcast.net.


[racket-users] Should I enter racket questions here: https://groups.google.com/g/racket-users

2020-11-01 Thread infodeveloperdon

Should I enter racket questions here: 
https://groups.google.com/g/racket-users

-- 
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/8ebd713e-eb8f-422d-80d9-2c7b3edb55dbn%40googlegroups.com.


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

2020-11-01 Thread George Neuner
On Sat, 31 Oct 2020 03:25:32 -0700 (PDT),
"jackh...@gmail.com"
 wrote:

>Wow, these are a lot of great responses. First of all, *awesome* job Ryan. 
>That implementation is exactly what I needed to figure out. I'm definitely 
>starting there first.
>
>> Are you looking for `let/ec`?
>
>I'd forgotten about that one. That has the *syntax* I want. However my 
>issue with continuation-based approaches isn't the syntax, or even the 
>performance. It's the semantics. What if someone writes code like this?
>
>(guarded-block
>  (define x (random 10))
>  (thread
>(lambda ()
>  (guard (even? x) else #false)
>  ...)))
>
>If I implemented guarded-block in terms of let/ec, then what does this code 
>even *do*? I honestly don't know. It would probably run without error and 
>do... something. 

(let/ec return
  (thread
   (lambda ()
 (return -1)
 42)))

throws an error:  "continuation application: attempt to jump into an
escape continuation"

There is a continuation barrier between the threads.


However, let/cc works: e.g.,

(let/cc return
  (thread
   (lambda ()
 (return -1)
 42)))

returns -1.


>I am extremely sure that regardless of what it did, it 
>would be confusing and it wouldn't solve any problem I had. 

I am sure it would solve *some* problems.


>I just flat out don't want to allow this or any related nonsense, 
>such as:
>
>; Aliasing
>(define return guard)
>
>; Higher-order usage
>(map guard (some-list ...))
>
>; Capturing via closure
>(guarded-block
>  (define (check-foo x) (guard (foo? x) else #false))
>  (check-foo ...)
>  ...)
>
>; Capturing via mutation
>(set! previous-guard guard)
>
>; Oh great, now I have to think about even more continuation jumps
>(dynamic-wind
>  (lambda () (guard ...))
>  (lambda () ...)
>  (lambda () ...))
>
>There might be valid use cases for some of these, but I certainly don't 
>understand those use cases well enough to commit to a semantics for them.

It always is safe to jump upwards OUT of a lower level computation.
The sticky issues [and mental gyrations] with continuations all have
to do with jumping downwards or sideways.

I'm not sure what problems you might have with continuation barriers:
the example of the thread shows that (upward-only) "escape"
continuations don't work across threads ... but "full" continations do
work, and would still work even if the threads were siblings rather
than in a parent/child relationship.

The issue for your purpose would be making sure the continuation is
called from a position that is guaranteed to terminate the errant
thread: you might need to recognize a thread as a special case, wrap
it and (like an exception) catch/rethrow the continuation.


Or, if you don't care about sibling threads, just use exceptions which
always can be thrown upward out of child threads.

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/2r6upftjom3aipt0g32nkcmikdc37je2t6%404ax.com.


Re: [racket-users] multi line scribble text body in web-server template

2020-11-01 Thread krs...@gmail.com
This is so cool, thank you both!

So my quick fix is:
@when[#t]{
@list{
line1
line2
line3
}
}

And I have been using that Iteration Gotchas code, but I was using it 
blindly.
Now I can reason thru it better.  


On Sunday, November 1, 2020 at 12:41:22 PM UTC-5 jay.mc...@gmail.com wrote:

> This section of the documentation discusses a similar issue that may help 
> you:
>
>
> https://docs.racket-lang.org/web-server/templates.html?q=web%20server#%28part._.Gotchas__.Iteration%29
>
> --
> Jay McCarthy
> Associate Professor @ CS @ UMass Lowell
> http://jeapostrophe.github.io
> Vincit qui se vincit.
>
>
> On Sun, Nov 1, 2020 at 12:22 PM Ben Greenman  
> wrote:
>
>> Thats the nor
>>
>> On 11/1/20, krs...@gmail.com  wrote:
>> >
>> > Hi!,
>> >
>> > I am using web-server/templates
>> > > >.
>> > I am confused why this just displays the last line?:
>> >
>> > @when[#t]{
>> > first
>> > second
>> > }
>>
>> That's normal "when" behavior
>>
>> ```
>> Welcome to Racket v7.8.0.5 [cs].
>> > (when #t "first" "second")
>> "second"
>> ```
>>
>> One fix is to put a list of text in the `when` body. He's how I'd write 
>> it:
>>
>> ```
>> #lang at-exp racket
>>
>> @(define (when-logged-in . pc*)
>>(when #t
>>  pc*))
>>
>> @when-logged-in{
>>   first
>>   second
>> }
>> ```
>>
>> -- 
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/racket-users/CAFUu9R5y6%2B6dCeEYEYRTmKVcHr%3DgZQ9UbztXyy82hKD6AxjPNA%40mail.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.com/d/msgid/racket-users/614a71f9-dc41-4c8a-80c3-a4c144c8600en%40googlegroups.com.


Re: [racket-users] multi line scribble text body in web-server template

2020-11-01 Thread Jay McCarthy
This section of the documentation discusses a similar issue that may help
you:

https://docs.racket-lang.org/web-server/templates.html?q=web%20server#%28part._.Gotchas__.Iteration%29

--
Jay McCarthy
Associate Professor @ CS @ UMass Lowell
http://jeapostrophe.github.io
Vincit qui se vincit.


On Sun, Nov 1, 2020 at 12:22 PM Ben Greenman 
wrote:

> Thats the nor
>
> On 11/1/20, krs...@gmail.com  wrote:
> >
> > Hi!,
> >
> > I am using web-server/templates
> > .
> > I am confused why this just displays the last line?:
> >
> > @when[#t]{
> > first
> > second
> > }
>
> That's normal "when" behavior
>
> ```
> Welcome to Racket v7.8.0.5 [cs].
> > (when #t "first" "second")
> "second"
> ```
>
> One fix is to put a list of text in the `when` body. He's how I'd write it:
>
> ```
> #lang at-exp racket
>
> @(define (when-logged-in . pc*)
>(when #t
>  pc*))
>
> @when-logged-in{
>   first
>   second
> }
> ```
>
> --
> 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/CAFUu9R5y6%2B6dCeEYEYRTmKVcHr%3DgZQ9UbztXyy82hKD6AxjPNA%40mail.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.com/d/msgid/racket-users/CAJYbDanKtsLhNXG8T2jo5MGsk9n8hZv5nHd0DbhVS%3DXR46ZLdw%40mail.gmail.com.


Re: [racket-users] multi line scribble text body in web-server template

2020-11-01 Thread Ben Greenman
Thats the nor

On 11/1/20, krs...@gmail.com  wrote:
>
> Hi!,
>
> I am using web-server/templates
> .
> I am confused why this just displays the last line?:
>
> @when[#t]{
> first
> second
> }

That's normal "when" behavior

```
Welcome to Racket v7.8.0.5 [cs].
> (when #t "first" "second")
"second"
```

One fix is to put a list of text in the `when` body. He's how I'd write it:

```
#lang at-exp racket

@(define (when-logged-in . pc*)
   (when #t
 pc*))

@when-logged-in{
  first
  second
}
```

-- 
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/CAFUu9R5y6%2B6dCeEYEYRTmKVcHr%3DgZQ9UbztXyy82hKD6AxjPNA%40mail.gmail.com.


[racket-users] multi line scribble text body in web-server template

2020-11-01 Thread krs...@gmail.com

Hi!,

I am using web-server/templates 
.
I am confused why this just displays the last line?:

@when[#t]{
first
second
}

I including html only when a user is logged in, and my issue can be 
distilled to the above template syntax.

Happy to elaborate, thank!

--
Paul

-- 
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/0061e4f9-cef1-4d8f-8542-b875c3973159n%40googlegroups.com.


[racket-users] After installing new racket version it seems that I need to find and delete all 'compiled' dirs...

2020-11-01 Thread infodeveloperdon
so that when I run Racket it recreates the 'compiled' directories using the 
latest compiler.
Or is there a better way?

-- 
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/d3e0f45a-7b85-40d7-8a1a-460583e66be0n%40googlegroups.com.


[racket-users] Where to specify a previously installed racket version or...

2020-11-01 Thread infodeveloperdon
Where to specify a previously installed racket version or...
is the only way to change back from version 7.8 to 7.7 to re-install 
version 7.7?

-- 
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/41de345b-0846-43d1-a390-dd8bd7d6534en%40googlegroups.com.