Monad Presentation

View: New views
9 Messages — Rating Filter:   Alert me  

Monad Presentation

by Randin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Here is a talk on Monads from the melbourne Scala User Group

User Group

Re: [scala] Monad Presentation

by Pedro-45 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Login fails with:

"If you did not expect to see this page, or if you are sure your
password is correct but you still can't log in, then this drop may
have expired"

Available anywhere else?

On Fri, Oct 30, 2009 at 10:32 PM, Randin <randinn@...> wrote:

>
> Here is a talk on Monads from the melbourne Scala User Group
>
> http://groups.google.com/group/scala-melb/browse_thread/thread/11218ababa696c61
> User Group
> --
> View this message in context: http://old.nabble.com/Monad--Presentation-tp26139081p26139081.html
> Sent from the Scala mailing list archive at Nabble.com.
>
>

Re: [scala] Monad Presentation

by Randin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I got rid of the password so there should be no problem....


Pedro-45 wrote:
Login fails with:

"If you did not expect to see this page, or if you are sure your
password is correct but you still can't log in, then this drop may
have expired"

Available anywhere else?

On Fri, Oct 30, 2009 at 10:32 PM, Randin <randinn@hotmail.com> wrote:
>
> Here is a talk on Monads from the melbourne Scala User Group
>
> http://groups.google.com/group/scala-melb/browse_thread/thread/11218ababa696c61
> User Group
> --
> View this message in context: http://old.nabble.com/Monad--Presentation-tp26139081p26139081.html
> Sent from the Scala mailing list archive at Nabble.com.
>
>

Re: [scala] Monad Presentation

by Randall Schulz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Friday October 30 2009, Randin wrote:
> I got rid of the password so there should be no problem....

Thanks, I can retrieve the audio. The nature of the browser interface is
a little odd and it cancels the playback if you click outside the
overlay.

Anyway, I was wondering if there were any slides to go with the talk?


Randall Schulz

Re: [scala] Monad Presentation

by Ben Hutchison :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Oct 31, 2009 at 3:45 PM, Randall R Schulz <rschulz@...> wrote:
>
> Anyway, I was wondering if there were any slides to go with the talk?

Yes, I guess it would be hard to follow without these slides to refer to:

http://scala-melb.googlegroups.com/web/scala_monads.pdf

-Ben

Re: [scala] Monad Presentation

by Luc Duponcheel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,


I like the title:

The story behind monads
The quest for modular semantics


monads achieve semantic modularity
(a uniform computation model for adding sematic aspects)
in fact, this is more about monad transformers
Monad Transformers and Modular Interpreters

catamorphisms (also metioned in the discussion on concurrency)
achieve syntactic modularity
(by separating recursion from summing)

together, monad transformers and catamorphisms achieve 'true' modularity
[ cfr. slides: for writing interpreter modules (for sum, product, ...) in different files  ]

I have once (1995)) implemented all of this in Haskell and written a technical report on this
(it is never published (but nevertheless it is cited from time to time (as a draft))).

What I wanted to say is the following:

In Scala it is also possible to work with catamorphisms
and, probably also to work with monad transformers
(and combine everything to obtain 'true' modularity).

for the catamorphism part you can use something similar to:

trait Structures {
type Struct[+A] <: Structure[A]

trait Structure[+A] { self: Struct[A] =>
def struct[B](a2b: A => B): Struct[B]
}

trait Rec {
def open: Struct[Rec]
def fold[A](algebra: Struct[A] => A): A = algebra(open struct (_.fold(algebra)))
}

}

the real question is, probably,
if Scala's type system can cope with all of this in an elegant way


by the way:

modularity can, at the syntactic level,
also be modeled nicely using attribute grammars,
so any nice implementation of attribute grammars
[ maybe as a DSL] combined with monads is also a way to go
(maybe even a better one)

Luc








Luc

On Sat, Oct 31, 2009 at 7:17 AM, Ben Hutchison <ben@...> wrote:
On Sat, Oct 31, 2009 at 3:45 PM, Randall R Schulz <rschulz@...> wrote:
>
> Anyway, I was wondering if there were any slides to go with the talk?

Yes, I guess it would be hard to follow without these slides to refer to:

http://scala-melb.googlegroups.com/web/scala_monads.pdf

-Ben



--
  __~O
 -\ <,
(*)/ (*)

reality goes far beyond imagination


Re: [scala] Monad Presentation

by Tony Sloane :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 31/10/2009, at 6:43 PM, Luc Duponcheel wrote:

by the way:

modularity can, at the syntactic level,
also be modeled nicely using attribute grammars,
so any nice implementation of attribute grammars
[ maybe as a DSL] combined with monads is also a way to go
(maybe even a better one)

I agree completely, at least about the attribute grammar part.

At the risk of being accused of tooting my own horn, I will point out
that our Kiama library for Scala has a DSL embedding of attribute
grammars.  For information see, in particular, 


and a paper published in LDTA 09:


cheers,
Tony




Re: [scala] Monad Presentation

by Randall Schulz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Friday October 30 2009, Ben Hutchison wrote:
> On Sat, Oct 31, 2009 at 3:45 PM, Randall R Schulz <rschulz@...>
wrote:
> > Anyway, I was wondering if there were any slides to go with the
> > talk?
>
> Yes, I guess it would be hard to follow without these slides to refer
> to:
>
> http://scala-melb.googlegroups.com/web/scala_monads.pdf

Thank you!

By the way, was it you who posted the earlier messages as "Randin?"


> -Ben


Randall Schulz

Re: [scala] Monad Presentation

by Randin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No, Ben started the group, I recorded it, there has been some great presentations unfortunately we haven't recorded them I was hoping we could and we had a partial success (the second one didn't sound well)

Randall Schulz wrote:
On Friday October 30 2009, Ben Hutchison wrote:
> On Sat, Oct 31, 2009 at 3:45 PM, Randall R Schulz <rschulz@sonic.net>
wrote:
> > Anyway, I was wondering if there were any slides to go with the
> > talk?
>
> Yes, I guess it would be hard to follow without these slides to refer
> to:
>
> http://scala-melb.googlegroups.com/web/scala_monads.pdf

Thank you!

By the way, was it you who posted the earlier messages as "Randin?"


> -Ben


Randall Schulz