[racket-users] Re: style guide addition?

2020-01-21 Thread Jack Firth
I think that would be a great addition to the style guide. I agree that 
"expression" is clearer than "term", though I'm not too worried about it 
not covering (define(f x)3). We could add stronger language later on as we 
get a sense of how people react to the initial wording.

On Monday, January 20, 2020 at 10:13:40 PM UTC-8, johnbclements wrote:
>
> I’m grading code, and one of my students keeps leaving out spaces in weird 
> places: 
>
> (cond 
>   [(< x 3)(+ x 1)] 
>   [else (f(g 9))]) 
>
> I took a quick look in the style guide, and it doesn’t seem to have much 
> to say about this. Here’s what it has: 
>
> 6.8 Spaces 
>
> Don’t pollute your code with spaces at the end of lines. 
>
> If you find yourself breaking long blocks of code with blank lines to aid 
> readability, consider refactoring your program to introduce auxiliary 
> functions so that you can shorten these long blocks of code. If nothing 
> else helps, consider using (potentially) empty comment lines. 
>
> *** 
>
> To this text, I would like to add: 
>
> “Every pair of expressions on a line should have at least one space 
> between them, even if they’re separated by parens. 
>
> Wrong: [(< x 3)(+ x 1)] 
> Right: [(< x 3) (+ x 1)] 
>
> Wrong: (f(g 3)) 
> Right: (f (g 3)) 
>
>
> Can anyone think of exceptions to this? One possible nit: since the rule 
> refers to “expressions”, it perhaps wouldn’t rule out (define(f x)3) . You 
> could say “term”, but I think it would be less clear. 
>
> John 
>
>
>
>

-- 
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/aa025605-784b-4339-b8b3-b29f05800f45%40googlegroups.com.


Re: [racket-users] Web server + authentication

2020-01-21 Thread Jens Axel Søgaard
Look at `koyo`.

https://docs.racket-lang.org/koyo/index.html?q=koyo

For simple user login with secure sessions look at

https://github.com/soegaard/racket-stories/blob/master/app-racket-stories/control.rkt#L58

But I haven't implemented "reset password" functionality yet. I need to
figure out how best to handle sending mails
from a server. My concern is being flagged for spamming - so I don't dare
use my normal mail.

/Jens Axel


Den tir. 21. jan. 2020 kl. 22.43 skrev Stephen Foster <
step...@thoughtstem.com>:

> Ruby on Rails has a nice package called Devise, which handles things like:
> letting users log into your webapp, letting them reset their passwords,
> etc.  In the Racket ecosystem, I'm struggling even to find examples of
> managing users.
>
> I'm about to start digging here:
> https://github.com/tonyg/racket-pkg-website
>
> Are there other places I could look?
>
>
> --
> 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/93a77b99-f238-4315-9f10-0b1aa6929262%40googlegroups.com
> 
> .
>


-- 
-- 
Jens Axel Søgaard

-- 
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/CABefVgy7WPh4bB%2BZeBM_mdMjJ8%2B_BHvA%2B50Y%2B4LU%3Dmk%3DuVgooQ%40mail.gmail.com.


[racket-users] Web server + authentication

2020-01-21 Thread Stephen Foster
Ruby on Rails has a nice package called Devise, which handles things like: 
letting users log into your webapp, letting them reset their passwords, 
etc.  In the Racket ecosystem, I'm struggling even to find examples of 
managing users.

I'm about to start digging here: https://github.com/tonyg/racket-pkg-website

Are there other places I could look?


-- 
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/93a77b99-f238-4315-9f10-0b1aa6929262%40googlegroups.com.


[racket-users] metapict examples

2020-01-21 Thread Hadi Moshayedi
To teach myself how to use metapict, I have started creating some example
visualizations using it. I am pushing these examples to
https://github.com/pykello/racket-visualization

Some of them which I like are:

*Figure 85 from metapost examples *(fig85.rkt

)
[image: image.png]
*Figure 151 from metapost examples *(fig151.rkt

)
[image: image.png]
*Bird in Flight *(bird-1.rkt

)

[image: image.png]

*Olive Branch *(olive-branch.rkt

)

[image: image.png]
*CMOS NOR *(cmos-nor.rkt

)
[image: image.png]


I'll update this thread as I add some interesting visualizations.

Enjoy!
-- Hadi

-- 
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%3D1%3DWqc87JZwN_uUu%3DP3os0i5Ty-NC64EFW9jD3DNe2RSyYyg%40mail.gmail.com.


Re: [racket-users] Can I embed Racket into another program?

2020-01-21 Thread Ricardo Gabriel Herdt

Hi,

yes, it's possible, but it's not so straightforward as Guile, since 
Guile is designed for this kind of use case:


https://docs.racket-lang.org/inside/embedding.html

Cheers,

Ricardo

Am 21.01.2020 09:52 schrieb 'ZHUO Qingliang (KDr2)' via Racket Users:

Hi all,

I have a program that already has Guile embedded into itself to use
Scheme as an extension language.

For some reason, I'd like to support Racket as well, it is possible
and is there docs about how to do this?

Greetings.

ZHUO Qingliang (KDr2, https://kdr2.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/571329539.9771627.1579596758183%40mail.yahoo.com
[1].


Links:
--
[1]
https://groups.google.com/d/msgid/racket-users/571329539.9771627.1579596758183%40mail.yahoo.com?utm_medium=email&utm_source=footer


--
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/de8a6167170c1c2f38fb46e24c5031a8%40posteo.de.


[racket-users] Can I embed Racket into another program?

2020-01-21 Thread 'ZHUO Qingliang (KDr2)' via Racket Users
Hi all,
I have a program that already has Guile embedded into itself to use Scheme as 
an extension language. 
For some reason, I'd like to support Racket as well, it is possible and is 
there docs about how to do this?

 Greetings.

ZHUO Qingliang (KDr2, https://kdr2.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/571329539.9771627.1579596758183%40mail.yahoo.com.