[racket-users] Re: Help creating a distributable version of my app

2020-08-17 Thread Deren Dohoda
Hello,

The main submodule is intended to be a way to have execution when run from 
racket/drracket. Maybe there is a way to use ++lib or ++named-lib flags to 
raco exe but I can't tell from the docs. I just removed your (module+ main 
...) wrapper and used the default tool settings from DrRacket and it works 
fine. So you might consider a separate file which isn't "main" which 
doesn't have this wrapper simply for distribution packaging purposes.

Regards,
Deren

On Monday, August 17, 2020 at 12:53:27 PM UTC-4 an...@andregarzia.com wrote:

> Good afternoon friends,
>
> I'm trying to build a distributable version of my little Gemini browser:
>
>   https://git.sr.ht/~soapdog/fafi-browser
>
> The source folder contains a `main.rkt` which has `(module+ main ...)` in 
> it. I thought that selecting that file and using the menu to create a 
> distribution should work. I also tried to come up with a build script based 
> on Alex build script for ActivityLog2:
>
>   https://git.sr.ht/~soapdog/fafi-browser/tree/maybe-build/build.rkt
>
> What is happening is that everything appears to build correctly on first 
> glance but nothing happens when I try running the `Fafi.exe` file. If I try 
> running it like `Fafi.exe -v` I get a `Racket v7.7` banner which makes me 
> think that my main module is not executing. This happens if I use my build 
> script or if I use the menu in DrRacket.
>
> Can someone share some pointers or feedback about where to look to fix 
> this? I greatly appreciate any feedback.
>
> Kind regards
> A.
>
> -- 
> https://www.andregarzia.com 
> Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia
>

-- 
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/1d8e4cf3-e286-4827-91d4-367b453597a3n%40googlegroups.com.


Re: saneboxes: welcome remedies for a world in turmoil [racket-users]

2020-08-17 Thread Tim Meehan
Perhaps you meant 1600 Pennsylvania ave.?

> On Aug 16, 2020, at 13:46, Etan Wexler  wrote:
> 
> Matthew Flatt recommended “wrapping the sanebox creation”. Matthew, these 
> saneboxes that you’ve invented seem to be just the devices that we’ve needed. 
> We’d like an initial batch of 5000 saneboxes, as soon as you can manage, even 
> if unwrapped. Please send the bill to 1500, Pennsylvania Avenue, Northwest, 
> District of Columbia, 20220, United States of America. We appreciate your 
> timely help!
> 
> -- 
> 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/2020-08-16_saneboxes%40r-6.org.

-- 
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/30A8BB44-1FE6-40E5-87BC-023DB8FEB25F%40gmail.com.


Re: [racket-users] lsp server

2020-08-17 Thread Catonano
Il giorno dom 16 ago 2020 alle ore 15:48 Philip McGrath <
phi...@philipmcgrath.com> ha scritto:

> On Fri, Jul 31, 2020 at 2:46 PM Catonano  wrote:
>
>> I'm playing with a toy project in #Racket
>> 
>>
> I'd like to use the lsp server…
>>
> how do I connect to it from my Emacs based client ?
>>
>
> Just in case by "use the lsp server" you meant "set up Emacs to work on a
> Racket project" (rather than working *on* the lsp server or client), the
> generally preferred way to edit Racket in Emacs is with Greg Hendershott's
> Racket Mode (actually a package with a few major and minor modes):
> https://www.racket-mode.com
>

Thank you Phillip, I know that the preferred way is the Racket Mode

The reason why I was interested in an lsp server is not that I wanted to
use it to work on some racket based project

The reason is that I am considering implementing an lsp server myself and I
wanted to get my feet wet with the protocol and with some code dealing with
that

I wanted to use a Racket based lsp server as a training ship

Admittedly, after having seen it work, I somewhat lost interest in it

In fact, the part of the protocol is not that difficult

what is harder is the part of dealing with the language implementation to
fetch the information that needs to be sent to the client through the lsp
protocol

So there is not so much value in exploring a racked based lsp server, well,
there's less value than I have hoped

But I still am reassured that I managed to make it work, so I don't feel
like an idiot

Thanks for your help ☺


>
> -Philip
>
> --
> 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/01000173f78714a6-5170a43f-d553-407e-89e8-db6db26d911e-00%40email.amazonses.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/CAJ98PDyA01WpzgW%2BYZMmvG8NT-Z-gM8XY23xmqybd9W8bzAuuQ%40mail.gmail.com.


[racket-users] Re: Pretty Printing for ASTs represented as structs

2020-08-17 Thread Jeremy Siek
Thanks for the tip!

I found the following to work pretty well :)

#lang racket
(require racket/match)
(require racket/struct)

(struct Var (name)
   #:methods gen:custom-write
  [(define (write-proc ast port mode)
 (match ast
   [(Var x)
(write x port)]))])

(struct Num (value) 
   #:methods gen:custom-write
  [(define (write-proc ast port mode)
 (match ast
   [(Num n)
(write n port)]))])

(struct Let (var rhs body)
  #:methods gen:custom-write
  [(define write-proc
 (make-constructor-style-printer
  (lambda (obj) 'let)
  (lambda (obj) (list (unquoted-printing-string "([")
  (Let-var obj)
  (Let-rhs obj)
  (unquoted-printing-string "])\n")
  (Let-body obj)])
  
(define x (Var 'x))
(define y (Var 'y))
(define n (Num 42))
(define l (Let x n (Let y n x)))
(pretty-print l)

Produced the output:

(let ([ x 42 ])
 (let ([ y 42 ])
 x))


On Sunday, August 16, 2020 at 5:10:20 PM UTC-4 jackh...@gmail.com wrote:

> I recommend using make-constructor-style-printer 
> ,
>  
> which automates a lot of the fiddly indentation-handling you'd have to do 
> otherwise.
> On Sunday, August 16, 2020 at 1:48:50 PM UTC-7 jerem...@gmail.com wrote:
>
>>
>> Hi All,
>>
>> I'm looking into using Racket structs to represent abstract syntax trees.
>> I've gotten as far as defining gen:custom-write properties, but have not
>> yet figured out how to control indenting. Also, I'm not sure I'm just 
>> calling
>> write-string, write, and newline in my gen:custom-write methods, which I
>> suspect is not exactly correct.
>>
>> Are there some good up-to-date examples of this that I could look at?
>>
>> Thanks,
>> Jeremy
>>
>

-- 
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/0bf543ed-3587-4fed-a527-49ebad106eafn%40googlegroups.com.


[racket-users] Can OpenSSL be upgraded for the next Racket release?

2020-08-17 Thread Andre Garzia
Hi Folks,

The OpenSSL DLLs being shipped with Racket (in version 7.7 at least) is
v1.1.0.8 which has already been EOLd. Version 1.1.1 is the stable version.
Version 1.1.1 is LTS and supported until 2023. In theory 1.1.1 is a drop-in
replacement for 1.1.0.8 since it is ABI and binary compatible with the
older version. Having that version available would allow us to benefit from
TLSv1.3:

https://wiki.openssl.org/index.php/TLS1.3

And also benefit from many other bug fixes.

Best
Andre



-- 
https://www.andregarzia.com 
Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia

-- 
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/CAF3jwT%3DwQ2wo4i3RA27%3DdYCFN7p3gZv2bOf46-pX5ckiW%3DGBbw%40mail.gmail.com.


[racket-users] Help creating a distributable version of my app

2020-08-17 Thread Andre Garzia
Good afternoon friends,

I'm trying to build a distributable version of my little Gemini browser:

  https://git.sr.ht/~soapdog/fafi-browser

The source folder contains a `main.rkt` which has `(module+ main ...)` in
it. I thought that selecting that file and using the menu to create a
distribution should work. I also tried to come up with a build script based
on Alex build script for ActivityLog2:

  https://git.sr.ht/~soapdog/fafi-browser/tree/maybe-build/build.rkt

What is happening is that everything appears to build correctly on first
glance but nothing happens when I try running the `Fafi.exe` file. If I try
running it like `Fafi.exe -v` I get a `Racket v7.7` banner which makes me
think that my main module is not executing. This happens if I use my build
script or if I use the menu in DrRacket.

Can someone share some pointers or feedback about where to look to fix
this? I greatly appreciate any feedback.

Kind regards
A.

-- 
https://www.andregarzia.com 
Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia

-- 
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/CAF3jwTnonsCdUJ-%3D-pwK4sLNBmkK2-XXJZDAe2oVEnmt8hY4eg%40mail.gmail.com.