Re: [racket-users] How 'Pythonic' Can Racket Be Made?

2023-10-10 Thread D. Ben Knoble
Nor on Discourse: I use the mailing list mode.

On Tue, Oct 10, 2023 at 12:14 PM Adam Golding  wrote:
>
> ah well the practice of email lists does not depend on google... we should 
> presumbly be using matrix chat instead
>
> On Tue, 10 Oct 2023 at 12:12, Daniel Patterson  wrote:
>>
>> Unlike, e.g., Google?
>>
>> On Oct 10, 2023, at 12:11 PM, Adam Golding  wrote:
>>
>> Yikes, how do we protest introducing a dependency on some corporation?
>>
>> On Tue, 10 Oct 2023 at 12:09, D. Ben Knoble  wrote:
>>>
>>> You'll probably get more replies on Discourse. A short answer is to mention 
>>> Rhombus and to recommend looking at all the #langs on the package server 
>>> and in the docs.
>>>
>>> On Monday, October 9, 2023 at 1:35:11 PM UTC-4 Adam Golding wrote:
>>>>
>>>> I am going to write a language called 'micronatrix' that is pythonic in 
>>>> its use of whitespace and even with python 2 type print statements but 
>>>> very minimal and pared down -- has similar ground been trodden?
>>>> --
>>>> adamgolding.ca
>>>>
>>>> ps I have registered micronatrix.com
>>>
>>>
>>> --
>>> This group is deprecated and retained as an archive.
>>>
>>> Racket discussions have moved to the Racket Discourse at 
>>> https://racket.discourse.group/ .
>>>
>>> ---
>>> 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.
>>> ---
>>> 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/ba2e2e23-c21b-43d0-9649-86a7fefa8d2bn%40googlegroups.com.
>>
>>
>> --
>> This group is deprecated and retained as an archive.
>>
>> Racket discussions have moved to the Racket Discourse at 
>> https://racket.discourse.group/ .
>>
>> ---
>> 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.
>> ---
>> 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/CALiGnDBKj6fz6_Onw1-DVstUHSQPn8T-Qmeir3hnF6k8J_kGmA%40mail.gmail.com.
>>
>>


-- 
D. Ben Knoble

-- 
This group is deprecated and retained as an archive. 

Racket discussions have moved to the Racket Discourse at  
https://racket.discourse.group/ .

---
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.
--- 
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/CALnO6CAEu8xT5rXuR0ZPv0ke66tXeQu3LAV%3D0ADCJrG8QzSVrw%40mail.gmail.com.


[racket-users] Re: How 'Pythonic' Can Racket Be Made?

2023-10-10 Thread D. Ben Knoble
You'll probably get more replies on Discourse. A short answer is to mention 
Rhombus and to recommend looking at all the #langs on the package server 
and in the docs.

On Monday, October 9, 2023 at 1:35:11 PM UTC-4 Adam Golding wrote:

> I am going to write a language called 'micronatrix' that is pythonic in 
> its use of whitespace and even with python 2 type print statements but very 
> minimal and pared down -- has similar ground been trodden?
> --
> adamgolding.ca
>
> ps I have registered micronatrix.com
>

-- 
This group is deprecated and retained as an archive. 

Racket discussions have moved to the Racket Discourse at  
https://racket.discourse.group/ .

---
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.
--- 
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/ba2e2e23-c21b-43d0-9649-86a7fefa8d2bn%40googlegroups.com.


[racket-users] Re: how could I obtain more context to isolate the problem?

2022-08-09 Thread D. Ben Knoble
Are you passing the `?` to `raco setup`? If so, I suspect your shell is 
expanding that to a file or directory named `t` (which matches the glob 
`?`), which is then used as a collection name.

On Monday, August 8, 2022 at 12:43:27 PM UTC-4 infodeve...@gmail.com wrote:

> $ raco setup ?
> collection-path: collection not found
>   collection: "t"
>   in collection directories:
>/home/don/.plt-scheme/4.2.1/collects
>/home/don/.racket/8.1/collects
>/home/don/racket/collects/
>... [175 additional linked and package directories]
>
> Thanks
>
>

-- 
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/9d90c018-ae66-4a9a-bd27-c381227b636cn%40googlegroups.com.


[racket-users] Re: Is this "inside out" macro technique common?

2021-08-13 Thread D. Ben Knoble
Ah, I'm now seeing that with-quasi implicitly #`s the body; I believe with 
syntax-parse, #:with, and #' + template vars + #` when needed you might be 
ok.

-- 
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/2ede4034-80ec-49ad-9782-8883f8d47085n%40googlegroups.com.


[racket-users] Re: Is this "inside out" macro technique common?

2021-08-13 Thread D. Ben Knoble
> A shortcut to answering my question would be to tell me that 
`with-quasisyntax` in the following paste already exists: 
http://pasterack.org/pastes/48885

Without taking a detailed look, is there anything about with-quasisyntax 
that with-syntax 

 
(https://docs.racket-lang.org/reference/stx-patterns.html#%28form._%28%28lib._racket%2Fprivate%2Fstxcase-scheme..rkt%29._with-syntax%29%29)
 doesn't 
do?

I would also highly recommend syntax-parse and it's various abstractions.

-- 
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/5c89cbd3-0b4a-4d60-ab23-6456225b4a80n%40googlegroups.com.


Re: [racket-users] Equivalent of exec

2021-08-04 Thread D. Ben Knoble
Hi Norman,

> It's slightly unfortunate that Racket's
> start-up time make it slightly suboptimal as a command-line tool, but
> raco make helps with that.

With 8.0+/CS, even without make I've had a good experience. As you
say, setup or make makes things even faster, though.

If you weren't already aware, using #lang racket/base has a faster
startup-time than #lang racket, though you have to (require) things
not provided by the smaller base language.

-- 
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/CALnO6CA6CzTQs2pCuypG6%2BaH7ciEjKvwbNXavJxpp%3DWL3SFFBA%40mail.gmail.com.


Re: [racket-users] Equivalent of exec

2021-08-04 Thread D. Ben Knoble
> (exit (system*/exit-code "/usr/bin/vi" "filename")) 

On a slightly unrelated note, if this for consumption by anyone other than 
just you, I would use (getenv "EDITOR") (or VISUAL, if you prefer) rather 
than hard-code the path to vi.

Best,
D. Ben Knoble

-- 
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/079555c4-3e03-4f75-92d2-81cf4b4f220fn%40googlegroups.com.


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

2021-07-25 Thread D. Ben Knoble
> Right, thank you for bringing that up. I should have mentioned that the #lang 
> provides all of racket/base at the module level, so you can write normal 
> Racket code (including `require`), and any imports at the module level would 
> be available within the `program` body since it compiles down to a normal 
> function.
>
> You can also use `provide`, so once you define your command using `program`, 
> you can provide it the same as any function. The client module requiring your 
> command would need to be a #lang cli module (at least at the moment) so that 
> it can actually run the imported command using `run`.

That would be good to add to the docs in my opinion.

-- 
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/CALnO6CAsxaJ%3DHsPJE1ZnOJXs9yVobiRiSBOj9UV4cxC%2BLRqiiw%40mail.gmail.com.


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

2021-07-25 Thread D. Ben Knoble


> The language is composed of 5 forms - help, flag, constraint, program, 
> and run. With these 5 forms, you get all of the functionality of the 
> built-in parse-command-line form, and with syntax that's much simpler. In 
> fact, the nontrivial forms of the language simply use Racket's normal 
> function definition syntax, so there's very little to learn -- you 
> basically write normal functions and they are implicitly wired to accept 
> their inputs via the command line.
>

Could we add require? I can think of two compelling reasons:

1. What else is available in the program form? All of racket, or just 
racket/base? And either way, what if I want to use procedures from other 
packages?
2. What if I want to write a bunch of library code, and expose some of it 
in a CLI script? I do this now in different ways: a module+ main that uses 
code defined in the enclosing module, or a script that requires auxiliary 
modules. Often the "body" of the program form isn't more than a call to a 
"main" procedure: this enables me to provide that procedure as part of the 
library, too.

-- 
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/a0a0ffba-b8a5-4b57-8fc1-b24a821de85cn%40googlegroups.com.


Re: [racket-users] Could Racket be used as a "frontend" for a non-Racket language?

2021-06-22 Thread D. Ben Knoble
No idea if this is what you're looking for, but I have a feeling it 
wouldn't be terribly difficult to design a #lang where modules were 
programs that, when run, output C# code (kind of like how scribble & pollen 
can output HTML). Then you could have a language (w/ or w/o) macros that 
gets run down to C# and let the C# compiler and project toolchain take care 
of the rest? Essentially it's only a syntax—the semantics is "turn it into 
this C# code."

-- 
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/a70bff98-e143-4c85-bcc9-2d919927764dn%40googlegroups.com.


[racket-users] Racket Slack archive update: privacy concerns

2021-06-09 Thread D. Ben Knoble
Update on the project to host an archive of the Racket Slack: I have been
directed to some privacy issues with the current proof-of-concept. Until 
these
issues are resolved, I have made the repository private and taken down the 
site.

If you have a copy of the archive files or site, I must ask that you refrain
from using them publicly until those impacted have a chance to decide what 
to
do.

If you wish to participate in the discussion, please join the Racket Slack 
[1,2]
and use the channel #slack-archive. You can also reach out privately to me 
and
Sam Tobin-Hochstadt, as we have become the organizers behind the archive. So
that I remain accountable and transparent, I would prefer any private
communication with me to include Sam.

The crux of the issue is data privacy: What data is in the archive? What 
are we
doing with private data? How are we using data from the archive? How are we
going to explain that to people? What will opt-in/opt-out look like?  
More
details in Slack.

[1] https://racket.slack.com/
[2] https://racket-slack.herokuapp.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/9d5115ae-45fa-451d-a6c1-c6df506dd61en%40googlegroups.com.


Re: [racket-users] Racket Slack archive [help wanted]

2021-06-08 Thread Ben Knoble


D. Ben Knoble

> 1) It wasn’t immediately clear to me that the links were the names of 
> channels. It seems painfully obvious to me now, but perhaps it’s worth 
> starting all the names with hashes?


Great idea, thanks. 

> 2) Clicking on the channel name “general” appears to melt down somehow, 
> presumably because the page is really really really big. Is pagination near 
> the top of most-desired-new-features?

Yeah, this is one of my top priorities. I’m thinking I’ll break it down by 
date. But I may want to rewrite the static generation in Racket first (to get 
it off Ruby + Jekyll, which may be unfamiliar to the community).


> Again, I think it’s great that you’re doing this!

Thanks :)

-- 
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/A2CF171A-71F5-4C75-9705-53A0F1419F00%40gmail.com.


[racket-users] Racket Slack archive [help wanted]

2021-06-08 Thread D. Ben Knoble
In case you missed it/aren't on Slack:

The latest version of the Slack archive is up-and-running at 
https://benknoble.github.io/racket-slack-archive/ (extends through roughly 
2021-06-07).

The site is now built using a mix of 
- Racket (data processing, mostly the json, hash, and unzip modules)
- Jekyll/Ruby (site-generation; a plugin makes pages out of all the channel 
directories, which are then rendered via a set of HTML templates)

I have some todos to make a nicer experience, and help is welcome. Also if 
anyone wants to start working porting the Jekyll + Ruby stuff to Racket, 
feel free.

-- 
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/a8efd2e6-ffb9-48d3-8b98-2d3da9551e70n%40googlegroups.com.