[racket-users] Haskell Syntax -> S-expression

2021-06-13 Thread rd
Hello List

I'm posting this here because when looking for information about non 
S-expression syntax for Lisps I came across the Racket2 threads.

Recently I've been using a simple Haskell Syntax -> S-expression translator 
to work interactively with a Scheme interpreter and I'm surprised by how 
pleasant it's been.

I don't really know if or how this might relate to the Racket2 situation, 
I'm sure wholesale adoption of an existing syntax, parser and abstract 
syntax tree is a very uninteresting idea in that context.

But for some problem domains, and for people who already know Haskell, this 
may be useful?

It is, in any case, very simple to implement.

The Haskell module is at: 

https://gitlab.com/rd--/hsc3-lisp/-/blob/master/Sound/SC3/Lisp/Haskell.hs 

There's a brief note about the translation rules at: 

https://gitlab.com/rd--/hsc3-lisp/-/blob/master/md/sexp.md

Best,
Rohan

-- 
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/553df1b8-8520-4730-bfe7-574621db5bafn%40googlegroups.com.


Re: [racket-users] Haskell

2019-05-16 Thread Siddhartha Kasivajhula
This may be of interest:
https://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours

Though, as others have said, this sounds like a more typical usecase for
racket.


On Tue, May 14, 2019 at 8:23 AM Josh Rubin  wrote:

> It just occurred to me that Haskell could be a powerful way to manipulate
> programs in other languages (like Scheme or Racket). Unfortunately, I don't
> know Haskell. Has anybody been down this path?
>
> --
> Josh rubinjlru...@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/d2961559-f8af-c6d0-15e1-9c20b3dab959%40gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CACQBWFmzjq6tYc-W0WaY5VgP73uTSzqbS6DZ82Uk9kXjOTq1og%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Haskell

2019-05-15 Thread Matthias Felleisen



> On May 15, 2019, at 1:26 PM, Josh Rubin  wrote:
> 
> Type inference; laziness as the default; the language forces me to think in a 
> different way than racket (or scheme) makes me think.
> 
> The examples I have seen have a breath-taking level of abstraction that 
> appeals to the mathematician in me.


That’s precisely why developers don’t really take to it. 

-- 
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/3BE177C3-A2E8-493D-94EA-BA82E66EC899%40felleisen.org.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Haskell

2019-05-15 Thread Josh Rubin
Type inference; laziness as the default; the language forces me to think 
in a different way than racket (or scheme) makes me think.


The examples I have seen have a breath-taking level of abstraction that 
appeals to the mathematician in me.



On 5/15/2019 12:46 PM, David Storrs wrote:
What specific feature does Haskell offer that makes you select it for 
this purpose as opposed to a different language?  It's possible that 
some other language (e.g. Racket) offers that feature and also others.


On Tue, May 14, 2019 at 11:23 AM Josh Rubin > wrote:


It just occurred to me that Haskell could be a powerful way to
manipulate programs in other languages (like Scheme or Racket).
Unfortunately, I don't know Haskell. Has anybody been down this path?

-- 
Josh Rubin

jlru...@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/d2961559-f8af-c6d0-15e1-9c20b3dab959%40gmail.com

.
For more options, visit https://groups.google.com/d/optout.



--
Josh Rubin
jlru...@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/051f1575-4b4a-4ad8-589e-a782e1619179%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Haskell

2019-05-15 Thread David Storrs
What specific feature does Haskell offer that makes you select it for this
purpose as opposed to a different language?  It's possible that some other
language (e.g. Racket) offers that feature and also others.

On Tue, May 14, 2019 at 11:23 AM Josh Rubin  wrote:

> It just occurred to me that Haskell could be a powerful way to manipulate
> programs in other languages (like Scheme or Racket). Unfortunately, I don't
> know Haskell. Has anybody been down this path?
>
> --
> Josh rubinjlru...@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/d2961559-f8af-c6d0-15e1-9c20b3dab959%40gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAE8gKofV6GU05uvmk21V%3DsBtDWEMsEvMnV-O%3D7a%3D2%3DG5fiXWsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Haskell

2019-05-14 Thread Matt Jadud
The last time I saw a colleague sit down to write a compiler in Haskell,
they first had to do a bunch of heavy lifting to get the type system to
play along sensibly.

http://offog.org/publications/fita200811-generics.pdf

Your mileage may vary. I'd just use Racket. (See John's note.)

Cheers,
Matt

On Tue, May 14, 2019 at 11:23 AM Josh Rubin  wrote:

> It just occurred to me that Haskell could be a powerful way to manipulate
> programs in other languages (like Scheme or Racket). Unfortunately, I don't
> know Haskell. Has anybody been down this path?
>
> --
> Josh rubinjlru...@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/d2961559-f8af-c6d0-15e1-9c20b3dab959%40gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAGM4551VVwp-QLVpMWw2nHd16SHOin-UoJi6w6JyG%2BnnQMDGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Haskell

2019-05-14 Thread Tom Gillespie
Hackett  comes to mind, but that
might be going in the opposite direction of what you are thinking.

On Tue, May 14, 2019 at 11:40 AM 'John Clements' via Racket Users <
racket-users@googlegroups.com> wrote:

> Hmm… While I certainly agree that functional languages are good at
> manipulating program representations, this job (manipulating programs) is
> more or less *the one thing* that Racket does better than any other
> language. So… I guess I’d be more likely to use Racket to manipulate
> Haskell programs than vice versa. Of course, your mileage may vary… :)
>
> John Clements
>
>
> > On May 14, 2019, at 8:23 AM, Josh Rubin  wrote:
> >
> > It just occurred to me that Haskell could be a powerful way to
> manipulate programs in other languages (like Scheme or Racket).
> Unfortunately, I don't know Haskell. Has anybody been down this path?
> > --
> > Josh Rubin
> >
> > jlru...@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/d2961559-f8af-c6d0-15e1-9c20b3dab959%40gmail.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> 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/a2d3bd9a-5057-4c36-aa52-0862ad103a0b%40mtasv.net
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BG3_PPT2PDAw9CE_QvRnsjKnJ29xRrNNoVEMnJkjD2PPo00Aw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Haskell

2019-05-14 Thread 'John Clements' via Racket Users
Hmm… While I certainly agree that functional languages are good at manipulating 
program representations, this job (manipulating programs) is more or less *the 
one thing* that Racket does better than any other language. So… I guess I’d be 
more likely to use Racket to manipulate Haskell programs than vice versa. Of 
course, your mileage may vary… :)

John Clements


> On May 14, 2019, at 8:23 AM, Josh Rubin  wrote:
> 
> It just occurred to me that Haskell could be a powerful way to manipulate 
> programs in other languages (like Scheme or Racket). Unfortunately, I don't 
> know Haskell. Has anybody been down this path?
> -- 
> Josh Rubin
> 
> jlru...@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/d2961559-f8af-c6d0-15e1-9c20b3dab959%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
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/a2d3bd9a-5057-4c36-aa52-0862ad103a0b%40mtasv.net.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Haskell

2019-05-14 Thread Josh Rubin
It just occurred to me that Haskell could be a powerful way to 
manipulate programs in other languages (like Scheme or Racket). 
Unfortunately, I don't know Haskell. Has anybody been down this path?


--
Josh Rubin
jlru...@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/d2961559-f8af-c6d0-15e1-9c20b3dab959%40gmail.com.
For more options, visit https://groups.google.com/d/optout.