[Haskell-cafe] Haskell-Cafe Digest, Vol 232, Issue 6

Douglas McIlroy douglas.mcilroy at dartmouth.edu
Mon Dec 19 15:05:07 UTC 2022


This note is to suggest an approach to introducing Haskell. It is not
a pitch for a gig to do so.

A big selling point for Haskell is how clean and simple some kinds of
Haskell code are. My personal hobby horse of this type is stream
processing. Lazy evaluation makes for dramatic simplification, as can
be seen in a couple of offerings on my website. I have given talks
based on this theme to (mathematically inclined) audiences who have
absolutely no Haskell nous.

For folks who know freshman calculus, power series computations in
Haskell are an eye-opener--no  fussing with storage allocation and no
subscripts at all! Only rudimentary Haskell ideas need to be discussed
to make these functions intelligible.
https://www.cs.dartmouth.edu/~doug/powser.html.

Another Haskell example, a basic prime-number sieve, reduces a page of
C code, or a half-page of shell script to two elegant lines of code.
https://www.cs.dartmouth.edu/~doug/sieve/sieve.pdf


Doug McIlroy

On Mon, Dec 19, 2022 at 7:19 AM <haskell-cafe-request at haskell.org> wrote:
>
> Send Haskell-Cafe mailing list submissions to
>         haskell-cafe at haskell.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> or, via email, send a message with subject or body 'help' to
>         haskell-cafe-request at haskell.org
>
> You can reach the person managing the list at
>         haskell-cafe-owner at haskell.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Haskell-Cafe digest..."
>
>
> Today's Topics:
>
>    1. Request for a presentation on Haskell (Jonathan Drews)
>    2. Re: Request for a presentation on Haskell (Ivan Perez)
>    3. Re: Request for a presentation on Haskell (Jonathan Drews)
>    4. Re: Request for a presentation on Haskell (Ivan Perez)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 18 Dec 2022 18:13:02 -0700
> From: Jonathan Drews <jondrews at fastmail.com>
> To: haskell-cafe at haskell.org
> Subject: [Haskell-cafe] Request for a presentation on Haskell
> Message-ID: <Y5+6ntGmiRUZ4xd1 at leo.my.domain>
> Content-Type: text/plain; charset=us-ascii
>
> Hi Folks:
>
>  I would like to know if anyone from the Haskell organization would
> like to give a presentation on Haskell to our BSD User Group (BSD =
> Berkeley Software Development). We are the South Eastern Michigan BSD
> User Group (http://www.semibug.org/). Myself and several other members
> are very intereested in Haskell and would like to learn more about
> this language.
>
> You would make the presentation online, by means of Jitsi. The date I
> am hoping for is January 17th, 2023. I can move that date if need be.
> The talks are usually given in the evenings. Contact me off list for
> more details.
>
> Thanks in advance.
>
> --
> Kind regards,
> Jonathan
>
> ~
> ~
> ~
> ~
> ~
> ~
> ~
> ~
> ~
> ~
> ~
> ~
> ~
> ~
> ~
> ~
> ~
> ~
> ~
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 18 Dec 2022 20:02:35 -0800
> From: Ivan Perez <ivanperezdominguez at gmail.com>
> To: Jonathan Drews <jondrews at fastmail.com>, Haskell Cafe
>         <haskell-cafe at haskell.org>
> Subject: Re: [Haskell-cafe] Request for a presentation on Haskell
> Message-ID:
>         <CACZKWELYiL7qUP_qJ733PhZHHRcve0-OYO6iV8PZdMt5Lj5sSA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Jonathan,
>
> I might be available, if you are interested. Most of my work is
> Haskell-centric. I've made commercial games and apps (mobile, desktop,
> web). In the last 5y I've focused on runtime monitoring and language
> transformation (very broadly speaking).
>
> See https://ivanperez.io/ for details.
>
> If you are interested, we can continue the discussion off-list.
>
> Thanks,
>
> Ivan
>
> On Sun, 18 Dec 2022 at 17:13, Jonathan Drews <jondrews at fastmail.com> wrote:
>
> > Hi Folks:
> >
> >  I would like to know if anyone from the Haskell organization would
> > like to give a presentation on Haskell to our BSD User Group (BSD =
> > Berkeley Software Development). We are the South Eastern Michigan BSD
> > User Group (http://www.semibug.org/). Myself and several other members
> > are very intereested in Haskell and would like to learn more about
> > this language.
> >
> > You would make the presentation online, by means of Jitsi. The date I
> > am hoping for is January 17th, 2023. I can move that date if need be.
> > The talks are usually given in the evenings. Contact me off list for
> > more details.
> >
> > Thanks in advance.
> >
> > --
> > Kind regards,
> > Jonathan
> >
> > ~
> > ~
> > ~
> > ~
> > ~
> > ~
> > ~
> > ~
> > ~
> > ~
> > ~
> > ~
> > ~
> > ~
> > ~
> > ~
> > ~
> > ~
> > ~
> >
> > _______________________________________________
> > Haskell-Cafe mailing list
> > To (un)subscribe, modify options or view archives go to:
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> > Only members subscribed via the mailman list are allowed to post.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20221218/ebfd0429/attachment-0001.html>
>
> ------------------------------
>
> Message: 3
> Date: Sun, 18 Dec 2022 23:28:49 -0700
> From: Jonathan Drews <jondrews at fastmail.com>
> To: haskell-cafe at haskell.org
> Subject: Re: [Haskell-cafe] Request for a presentation on Haskell
> Message-ID: <Y6AEoXSrzmNrfj8L at leo.my.domain>
> Content-Type: text/plain; charset=us-ascii
>
> On Sun, Dec 18, 2022 at 08:02:35PM -0800, Ivan Perez wrote:
> > Jonathan,
> >
> > I might be available, if you are interested. Most of my work is
> > Haskell-centric. I've made commercial games and apps (mobile, desktop,
> > web). In the last 5y I've focused on runtime monitoring and language
> > transformation (very broadly speaking).
> >
> > See https://ivanperez.io/ for details.
> >
> > If you are interested, we can continue the discussion off-list.
> >
> > Thanks,
> >
> > Ivan
> >
> Hello Ivan:
>
>  I am impressed with your experience. Originally, I asked Emily Pillmore
> to give the presentation in January and she said yes but the date was
> not firm. See http://www.semibug.org/
> She just wrote me an hour ago saying she would like to do the January
> presentation. I can move the date for her to accommodate her schedule.
>
> For most people Haskell is something they are completely unfamiliar
> with. The whole concept of functional programming is foreign to their
> programming experience. So for a first presentation I would like to
> see:
>
> * What are the advantages of Functional programming as opposed to a
> procedural language like C?
>
> * What does the Haskell Foundation do?
>
> * What resources and books are good for learning Haskell?
>
>  My members would be keenly interested in learning about Haskell. I am
> already convinced it's a terrific language. I am a complete novice
> programmer and I was able to write a simple program to evaluate double
> integrals. I did this after reading Scott Walck's book and Miran
> Lipovaca's book. Look, this is something I never could get to work in
> C:
>
> -- Computes the double integral by the trapezoid rule
> -- n is half the number of steps for the interval of integraion.
> -- See the book "Differential and Integral Calculus"
> -- by Richard Courant,Volume 1, page 343
> {-
>
>    /b /d
>    |  |
>    |  | f(x,y) dydx
>    |  |
>    /a /c
> or in polar coordinates
>
>    /R /2*pi
>    |  |
>    |  | f(r,q) r*dqdr
>    |  |
>    /0 /0
>
> dblIntgTrap.hs
> https://tinyurl.com/38wzfkst
>
>  Anyway Ivan, you could do a future presentaion on the games and other
> routines you wrote in Haskell. It's going to take more than one talk
> for most people to get the hang of Haskell and functional programming.
>
> --
> Kind regards,
> Jonathan
>
>
>
> ------------------------------
>
> Message: 4
> Date: Sun, 18 Dec 2022 22:36:52 -0800
> From: Ivan Perez <ivanperezdominguez at gmail.com>
> To: Jonathan Drews <jondrews at fastmail.com>
> Cc: haskell-cafe at haskell.org
> Subject: Re: [Haskell-cafe] Request for a presentation on Haskell
> Message-ID:
>         <CACZKWEJDS71SUQ3RduoYSAb7mqVOtr=n6XsMV_Bv=qwRtrxHjg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> On Sun, 18 Dec 2022 at 22:29, Jonathan Drews <jondrews at fastmail.com> wrote:
>
> > On Sun, Dec 18, 2022 at 08:02:35PM -0800, Ivan Perez wrote:
> > > Jonathan,
> > >
> > > [...] I am a complete novice
> > programmer and I was able to write a simple program to evaluate double
> > integrals. I did this after reading Scott Walck's book and Miran
> > Lipovaca's book. Look, this is something I never could get to work in
> > C
> >
>
> Nice!
>
>
> >  Anyway Ivan, you could do a future presentaion on the games and other
> > routines you wrote in Haskell. It's going to take more than one talk
> > for most people to get the hang of Haskell and functional programming.
> >
> >
> Sounds good. Let me know. Talks about games are relatively easy to do on a
> shorter notice (2-3 weeks are good). Talks about my NASA work may require a
> longer heads up because they require going through a formal approval
> process (4 weeks are good).
>
> All the best, and welcome to the Haskell club :)
>
> Ivan
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20221218/9ee938b3/attachment-0001.html>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>
>
> ------------------------------
>
> End of Haskell-Cafe Digest, Vol 232, Issue 6
> ********************************************


More information about the Haskell-Cafe mailing list