Re: [racket-users] Starting racket with at-exp

2020-03-02 Thread Alexis King
The -l option loads a module path. As `racket --help` documents, `-l ` is 
equivalent to `-e '(require (lib ""))'`. Since (require (lib "at-exp 
racket")) won’t help you much, neither will `-l 'at-exp racket'`. I’m not 
totally sure why you thought `-l` was the right option here, but it doesn’t set 
the language.

It would be useful to have an option that does set the language, but it isn’t 
completely clear precisely what such an option ought to do. Unfortunately, the 
way the #lang protocol interacts with the REPL is indirect and complicated. The 
protocol is documented in the section of the reference entitled “Language 
Run-Time Configuration”: 
https://docs.racket-lang.org/reference/running-sa.html#%28part._configure-runtime%29
 


The root problem is the protocol operates on a module. A module written in a 
given #lang can generate a configure-runtime submodule or attach a syntax 
property property to its read body, but these both require a module written in 
the #lang already exist. The DrRacket REPL always operates in the context of 
some module (given in the definitions window), but the REPL run from the 
command line has no such luxury. Theoretically, some option could be added to 
generate an empty module in a specified #lang and use it to configure the REPL 
environment, but an empty module may not be a legal program in every #lang.

Furthermore, `at-exp racket` is not really a #lang, anyway. The #lang is just 
`at-exp`; the body of the module happens to start with the symbol `racket`. The 
`at-exp` reader reads the first symbol of its body and uses that symbol as a 
language path, then calls that language’s reader after installing the 
@-expression readtable. Again, this protocol only makes sense in the context of 
reading a module, and a module that starts with `#lang at-exp racket` doesn’t 
really have an empty body at all.

> On Mar 2, 2020, at 18:52, Faré  wrote:
> 
> On Mon, Mar 2, 2020 at 5:22 PM Michael MacLeod
>  wrote:
>> 
>> $ racket -i -l scribble/reader -e "(use-at-readtable)" -l 
>> your-lang-without-@-support
>> 
>> should do the trick.
>> 
> Thanks. It works like a charm. But isn't a very nice recipe.
> Are there reasons why -l 'at-exp racket' sdhouln't be made to work?
> (Beside resource availability)
> 
> —♯ƒ • François-René ÐVB Rideau •Reflection• http://fare.tunes.org
> The people cannot delegate to government the power to do
> anything which would be unlawful for them to do themselves.
>— John Locke, "A Treatise Concerning Civil Government"

-- 
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/68443BE8-9CE7-4417-82CC-C727CAFDB38D%40gmail.com.


Re: [racket-users] Starting racket with at-exp

2020-03-02 Thread Faré
On Mon, Mar 2, 2020 at 5:22 PM Michael MacLeod
 wrote:
>
> $ racket -i -l scribble/reader -e "(use-at-readtable)" -l 
> your-lang-without-@-support
>
> should do the trick.
>
Thanks. It works like a charm. But isn't a very nice recipe.
Are there reasons why -l 'at-exp racket' sdhouln't be made to work?
(Beside resource availability)

—♯ƒ • François-René ÐVB Rideau •Reflection• http://fare.tunes.org
The people cannot delegate to government the power to do
anything which would be unlawful for them to do themselves.
— John Locke, "A Treatise Concerning Civil Government"

-- 
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/CAN7nBXfawF6q%2B9bVy67XEhhuUFLO6XGr4bm7YyhhdReLcW%3DzSg%40mail.gmail.com.


Re: [racket-users] Today’s Easter egg?

2020-03-02 Thread Robby Findler
Yes. Racket was born in Texas, so it is an homage (not a political statement :)

On Mon, Mar 2, 2020 at 2:26 PM Stephen De Gabrielle
 wrote:
>
> Hi,
>
> Is the star/lambda Easter egg something to do with independence? (Referencing 
> Texas March 2nd)
>
> S.
> --
> 
>
> --
> 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/CAGHj7-%2BqQc35jKfntebKYvRxYMxT4O4xpPw1iyKf4d7UH%2B3zdQ%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/CAL3TdOPsvRhzkExR-439P0e0pDiZQK%2BEjU34QqrCiqNpJw9juA%40mail.gmail.com.


[racket-users] Racket News - Issue 27

2020-03-02 Thread Paulo Matos
Hi!

For the first time, I published RN and forgot to send an email the list 
straight away. My apologies for that - here's the email a few hours late.

Issue 27 is here, enjoy!

https://racket-news.com/2020/03/racket-news-issue-27.html
-- 
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 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/1D710A46-3DB9-4EA1-AA97-0114A69BE50D%40linki.tools.


Re: [racket-users] Starting racket with at-exp

2020-03-02 Thread Michael MacLeod
$ racket -i -l scribble/reader -e "(use-at-readtable)" -l
your-lang-without-@-support

should do the trick. For example, to start a REPL in typed/racket with
@-reader support, you would use:

$ racket -i -l scribble/reader -e "(use-at-readtable)" -l typed/racket
> @+[2 3]
  - : Integer [more precisely: Positive-Index]
5

Documentation source:
https://docs.racket-lang.org/scribble/reader-internals.html

On Mon, Mar 2, 2020, 1:24 PM Stephen De Gabrielle 
wrote:

>
> I tried this but had no luck;
>
> Miriams-MBP:~ spdegabrielle$ cat start.rkt
>
> #lang at-exp racket/base
>
> (require racket/format)
>
> (displayln "try me")
>
> (~a "foo bar")
>
> @~a{foo bar}
>
>
> Miriams-MBP:~ spdegabrielle$ racket -t ~/start.rkt -i
>
> Welcome to Racket v7.6.
>
> try me
>
> "foo bar"
>
> "foo bar"
>
> > (~a "foo bar")
>
> ; readline-input:1:0: #%top-interaction: unbound identifier;
>
> ;  also, no #%app syntax transformer is bound
>
> ;   at: #%top-interaction
>
> ;   in: (#%top-interaction ~a "foo bar")
>
> ; [,bt for context]
>
> > @~a{foo bar}
>
>   ; readline-input:2:0: #%top-interaction: unbound identifier;
>
> ;  also, no #%app syntax transformer is bound
>
> ;   at: #%top-interaction
>
> ;   in: (#%top-interaction ~a "foo bar")
>
> ; [,bt for context]
>
>
>
> On Mon, Mar 2, 2020 at 4:57 PM Faré  wrote:
>
>> How may I start a racket command-line (or emacs subprocess) with the
>> at-exp racket language? (or at-exp something else) The obvious
>> racket -l 'at-exp racket'
>> doesn't work.
>>
>> —♯ƒ • François-René ÐVB Rideau •Reflection•
>> http://fare.tunes.org
>> The universe isn't made of atoms, it's made of stories — Muriel Rukeyser
>>
>> --
>> 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/CAN7nBXeD%3DspMKcN4Dz3zxoYJTo3vTwpVXNy6%3DHBP3e0tevaZBw%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/CAGHj7-JHX3b%2BG-2czkcQUd3b_k3VXyd%3D_XwAMw7-kWvR6mtEgg%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/CACehHmC%3Dm27CC1FjXFA6c5vxs7eOszC72ChpgOwWb08TquRaXg%40mail.gmail.com.


Re: [racket-users] Starting racket with at-exp

2020-03-02 Thread Stephen De Gabrielle
I tried this but had no luck;

Miriams-MBP:~ spdegabrielle$ cat start.rkt

#lang at-exp racket/base

(require racket/format)

(displayln "try me")

(~a "foo bar")

@~a{foo bar}


Miriams-MBP:~ spdegabrielle$ racket -t ~/start.rkt -i

Welcome to Racket v7.6.

try me

"foo bar"

"foo bar"

> (~a "foo bar")

; readline-input:1:0: #%top-interaction: unbound identifier;

;  also, no #%app syntax transformer is bound

;   at: #%top-interaction

;   in: (#%top-interaction ~a "foo bar")

; [,bt for context]

> @~a{foo bar}

  ; readline-input:2:0: #%top-interaction: unbound identifier;

;  also, no #%app syntax transformer is bound

;   at: #%top-interaction

;   in: (#%top-interaction ~a "foo bar")

; [,bt for context]



On Mon, Mar 2, 2020 at 4:57 PM Faré  wrote:

> How may I start a racket command-line (or emacs subprocess) with the
> at-exp racket language? (or at-exp something else) The obvious
> racket -l 'at-exp racket'
> doesn't work.
>
> —♯ƒ • François-René ÐVB Rideau •Reflection•
> http://fare.tunes.org
> The universe isn't made of atoms, it's made of stories — Muriel Rukeyser
>
> --
> 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/CAN7nBXeD%3DspMKcN4Dz3zxoYJTo3vTwpVXNy6%3DHBP3e0tevaZBw%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/CAGHj7-JHX3b%2BG-2czkcQUd3b_k3VXyd%3D_XwAMw7-kWvR6mtEgg%40mail.gmail.com.


[racket-users] Today’s Easter egg?

2020-03-02 Thread Stephen De Gabrielle
Hi,

Is the star/lambda Easter egg something to do with independence?
(Referencing Texas March 2nd)

S.
-- 


-- 
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/CAGHj7-%2BqQc35jKfntebKYvRxYMxT4O4xpPw1iyKf4d7UH%2B3zdQ%40mail.gmail.com.


Re: [racket-users] bad response from server

2020-03-02 Thread Matthew Flatt
A snapshot catalog only lasts for a limited time, and v7.4.0.1 was a
very long time ago in snapshot terms.

So, the short answer is to upgrade to a new snapshot --- or switch to a
release, which doesn't time out.

At Mon, 2 Mar 2020 14:46:25 -0500, Hendrik Boom wrote:
> When trying to u[dat catalog I get a message
> 
> get-all-pkg-details-from-catalogs: bad response from server
>   url: 
> https://www.cs.utah.edu/plt/snapshots/20190720-93f4c9226b/catalog/pkgs-all?vers
> ion=7.4.0.1
>   response: #f
> 
>   (for-loop . #(struct:srcloc 
> # 299 2 
> 11021 1759))
>   (for-loop . #(struct:srcloc 
> # 
> 37 4 1350 2495))
>   (pkg-catalog-update-local13 . #(struct:srcloc 
> # 
> 15 0 286 3561))
>   (#f . #(struct:srcloc 
> # first.rkt> 555 3 23822 3167))
>   (for-loop . #(struct:srcloc 
> # ate/catalog-update.rkt> 99 7 3851 437))
>   (.../more-scheme.rkt:261:28 . #f)
> 
> 
> I'm running using an old nightly build.
> Does this mean I need to install a new daily build?
> Or is the regular Racket distribution 
> already more up-tp-date them 2019 07 20?
> 
> -- 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, 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/20200302194625.bnkor6si3bkecxsx%
> 40topoi.pooq.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/20200302195441.BF4C46501C6%40mail-svr1.cs.utah.edu.


[racket-users] bad response from server

2020-03-02 Thread Hendrik Boom
When trying to u[dat catalog I get a message

get-all-pkg-details-from-catalogs: bad response from server
  url: 
https://www.cs.utah.edu/plt/snapshots/20190720-93f4c9226b/catalog/pkgs-all?version=7.4.0.1
  response: #f

  (for-loop . #(struct:srcloc 
# 299 2 
11021 1759))
  (for-loop . #(struct:srcloc 
# 37 
4 1350 2495))
  (pkg-catalog-update-local13 . #(struct:srcloc 
# 15 
0 286 3561))
  (#f . #(struct:srcloc 
#
 555 3 23822 3167))
  (for-loop . #(struct:srcloc 
#
 99 7 3851 437))
  (.../more-scheme.rkt:261:28 . #f)


I'm running using an old nightly build.
Does this mean I need to install a new daily build?
Or is the regular Racket distribution 
already more up-tp-date them 2019 07 20?

-- 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, 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/20200302194625.bnkor6si3bkecxsx%40topoi.pooq.com.


[racket-users] Re: Do you have Racket programs whose performance you care about?

2020-03-02 Thread Lukas Lazarek
That sounds like a great idea, though it's not our current aim. We do hope 
to eventually build a benchmark suite for the community, and that may 
enable improvement of profiling tools down the line.

Lukas

On Sunday, March 1, 2020 at 7:01:43 AM UTC-6, evdubs wrote:
>
> Is this perhaps something that will help improve the available profiling 
> tools? Something like VisualVM  would be 
> amazing for Racket!
>
> On Friday, February 28, 2020 at 8:31:18 AM UTC-10, Lukas Lazarek wrote:
>>
>> PLT @ Northwestern is seeking out programs to help us understand the 
>> performance of Racket "in the wild".
>> If you have any Racket applications that you use and care about how it 
>> performs, please let us know about them in the following survey:  
>>
>> https://forms.gle/b2eKMZdvXjpRHKL38
>>
>> Thank you!
>> PLT @ Northwestern
>>
>

-- 
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/50c32c7b-afdf-49c3-8f7d-70c6ca72c0ee%40googlegroups.com.


Re: [racket-users] Implementation of paraeters

2020-03-02 Thread Ryan Culpepper
A parameter object itself is essentially just a key. To get its value, you
first look up the current parameterization in the current continuation's
continuation-marks. The parameterization contains an immutable eq?-hash
mapping parameter keys to thread cells. The parameter's value is the value
of the thread cell in the current thread. Setting the parameter mutates the
thread cell, but using parameterize with the parameter remaps the parameter
to a new thread cell. (Actually, a parameter stores its initial thread
cell, so a parameterization's size is limited to the number of distinct
parameterized parameters, not the number of all created parameters.)

The Racket CS implementation of parameters is here:
https://github.com/racket/racket/blob/master/racket/src/cs/rumble/parameter.ss
.

Ryan


On Mon, Mar 2, 2020 at 6:45 PM Hendrik Boom  wrote:

> How are parameters implemented.  My conceptial model is an association
> list (like in the original Lisp 1.5 manuel) would suffice, but that can
> lead to long searches.
>
> What is actually done in Racket?
>
> -- 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, 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/20200302174453.7lpltlzivo6iids7%40topoi.pooq.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/CANy33qmDdW%3DoGKboLV5SS0AjxRUMpJB0uVdSonEs2C5MMc4QFA%40mail.gmail.com.


[racket-users] Implementation of paraeters

2020-03-02 Thread Hendrik Boom
How are parameters implemented.  My conceptial model is an association 
list (like in the original Lisp 1.5 manuel) would suffice, but that can 
lead to long searches.

What is actually done in Racket?

-- 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, 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/20200302174453.7lpltlzivo6iids7%40topoi.pooq.com.


[racket-users] Starting racket with at-exp

2020-03-02 Thread Faré
How may I start a racket command-line (or emacs subprocess) with the
at-exp racket language? (or at-exp something else) The obvious
racket -l 'at-exp racket'
doesn't work.

—♯ƒ • François-René ÐVB Rideau •Reflection• http://fare.tunes.org
The universe isn't made of atoms, it's made of stories — Muriel Rukeyser

-- 
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/CAN7nBXeD%3DspMKcN4Dz3zxoYJTo3vTwpVXNy6%3DHBP3e0tevaZBw%40mail.gmail.com.