Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. DOOM rewritten in the Haskell programming language.
(David Blubaugh)
2. Re: DOOM rewritten in the Haskell programming language.
(Henk-Jan van Tuyl)
3. Re: Issue with MultiParamTypeClasses (Marcin Mrotek)
4. Re: foldr, Foldable and right-side folding (Raja)
5. Re: foldr, Foldable and right-side folding (Tony Morris)
6. Re: DOOM rewritten in the Haskell programming language.
(Alexander Berntsen)
----------------------------------------------------------------------
Message: 1
Date: Sun, 6 Dec 2015 15:21:15 +0000 (UTC)
From: David Blubaugh <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of Primarily
Beginner-level Topics Related To Haskell <[email protected]>,
Haskell-cafe Cafe <[email protected]>, Haskell
<[email protected]>, GHC Users Mailing List
<[email protected]>, "[email protected]"
<[email protected]>, "[email protected]"
<[email protected]>, "[email protected]"
<[email protected]>, Haskell Mailman-owner
<[email protected]>
Subject: [Haskell-beginners] DOOM rewritten in the Haskell programming
language.
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="utf-8"
TO ALL, ??
Hello My name is David Allen Blubaugh. ?I am currently considering starting a
kick-starter project in redeveloping the DOOM source code with the Haskell
Programming language using the power of functional-oriented programming......
I know that John Carmack was interested in the Haskell programming language and
had even recreated wolfenstein 3D using the Haskell programming language. ?
Does anybody have a copy of John Carmack's recreation of wolfenstein 3D using
haskell ??? ?
Also would anybody enjoy working with this project ??? ??
What benefits would DOOM have enjoyed had ID software created the DOOM source
code in 1993 with Haskell or some other functional-oriented programming
language ?instead of C/assembly programming languages ??? ??
Thanks,
David Allen BlubaughElectrical EngineerATR Associate ??
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20151206/a93ada96/attachment-0001.html>
------------------------------
Message: 2
Date: Sun, 06 Dec 2015 18:19:15 +0100
From: "Henk-Jan van Tuyl" <[email protected]>
To: "The Haskell-Beginners Mailing List - Discussion of Primarily
Beginner-level Topics Related To Haskell" <[email protected]>,
"Haskell-cafe Cafe" <[email protected]>, Haskell
<[email protected]>, "GHC Users Mailing List"
<[email protected]>, "[email protected]"
<[email protected]>, "[email protected]" <[email protected]>,
"[email protected]" <[email protected]>, "Haskell
Mailman-owner" <[email protected]>, "David Blubaugh"
<[email protected]>
Subject: Re: [Haskell-beginners] DOOM rewritten in the Haskell
programming language.
Message-ID: <op.x88fqdiwpz0j5l@alquantor>
Content-Type: text/plain; charset=iso-8859-15; format=flowed;
delsp=yes
On Sun, 06 Dec 2015 16:21:15 +0100, David Blubaugh
<[email protected]> wrote:
> TO ALL,
> Hello My name is David Allen Blubaugh. I am currently considering
> starting a kick-starter project in redeveloping the DOOM source code
> with the Haskell Programming language using the power of
> functional-oriented programming......
> I know that John Carmack was interested in the Haskell programming
> language and had even recreated wolfenstein 3D using the Haskell
> programming language. Does anybody have a copy of John Carmack's
> recreation of wolfenstein 3D using haskell ??? Also would anybody enjoy
> working with this project ??? What benefits would DOOM have enjoyed had
> ID software created the DOOM source code in 1993 with Haskell or some
> other functional-oriented programming language instead of C/assembly
> programming languages ??? Thanks,
> David Allen BlubaughElectrical EngineerATR Associate
I don't know about his source code, but the Games page[0] lists:
- hadoom
A clone of Doom, using reactive-banana, GTK, and the "diagrams"
library.
https://github.com/ocharles/hadoom
- Frag
A 3D first person shooting game
https://wiki.haskell.org/Frag
These might be helpful.
Advantages, when developing software in Haskell, are faster development
with fewer bugs. Disadvantages are: the compiled programs are slower then
when written in C and the garbage collection of a Haskell program (when
compiled with GHC) might sometimes cause delays in screen updates.
Regards,
Henk-Jan van Tuyl
[0] https://wiki.haskell.org/Games
--
Folding@home
What if you could share your unused computer power to help find a cure? In
just 5 minutes you can join the world's biggest networked computer and get
us closer sooner. Watch the video.
http://folding.stanford.edu/
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
------------------------------
Message: 3
Date: Sun, 6 Dec 2015 19:26:59 +0100
From: Marcin Mrotek <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Issue with MultiParamTypeClasses
Message-ID:
<CAJcfPzmdsqwschM8KFVv2pcT3=vpdwzxwkiin_5kabt5afx...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hello,
This is not an issue with MultiParamTypeClasses. It's just that type
synonyms always have to be used fully applied. You can use a newtype
instead:
newtype AdjList a = AdjList [(a,[a])]
instance Graph AdjList Int where
(...)
Best regards,
Marcin Mrotek
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20151206/acc804ba/attachment-0001.html>
------------------------------
Message: 4
Date: Sun, 6 Dec 2015 13:37:35 -0500
From: Raja <[email protected]>
To: Daniel Bergey <[email protected]>
Cc: [email protected]
Subject: Re: [Haskell-beginners] foldr, Foldable and right-side
folding
Message-ID:
<CAPZi6dMKvSswc342PD-2D2ASr=gzhdsokfgo45c93ya7wbg...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Sat, Dec 5, 2015 at 10:24 PM, Daniel Bergey <[email protected]> wrote:
> On 2015-12-05 at 19:20, Raja <[email protected]> wrote:
> > foldr is supposed to start folding from the right side (as the name
> > suggests).
> > and this is why it is synonymous to "list construction" as I'm told
> >
> > for e.g:
> >> foldr (:) [ ] [1,2,3,4,5]
> > [1,2,3,4,5]
> >
> > In the same spirit I'm trying to construct a Foldable instance of my own
> > type:
> >
> > data Li a = Nil | Cons a (Li a)
> > deriving (Show)
> >
> > instance Foldable Li where
> > foldr f b Nil = b
> > foldr f b (Cons a y) = foldr f (f a b) y
> >
> > So I'm trying out foldr for my type:
> >> foldr Cons Nil (Cons 1 (Cons 2 Nil))
> > Cons 2 (Cons 1 Nil)
> >
> > This shows my foldr implementation i'm not folding from right side,
> > but how can I possibly do that - the data could have been an infinite
> > stream.
>
> A right fold on an infinite stream can terminate if the function f
> sometimes discards it's second argument. For example, takeWhile can be
> implemented this way.
>
> You are right that `foldr Cons Nil` or `foldr (:) []` will not terminate
> on an infinite list.
>
> On the bright side, you 've written a perfectly good left fold, even
> though it doesn't have quite the signature Haskell gives foldl.
I see - I did write a foldl impl.
instance Foldable Li where
foldr f b Nil = b
foldr f b (Cons a y) = f a (foldr f b y)
Now the `b' is getting propagated all the way to right.
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20151206/3a8e7478/attachment-0001.html>
------------------------------
Message: 5
Date: Mon, 7 Dec 2015 11:11:28 +1000
From: Tony Morris <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] foldr, Foldable and right-side
folding
Message-ID:
<cajf6usgby4itdv42gnjdopv-0vikfl-ixff6sfewdqq9yde...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
The foldr function does not start from the right. It associates to the
right.
This talk specifically addresses this common mistake.
http://functionaltalks.org/2013/06/19/tony-morris-explain-list-folds-to-yourself/
On 06/12/2015 10:21 AM, "Raja" <[email protected]> wrote:
> foldr is supposed to start folding from the right side (as the name
> suggests).
> and this is why it is synonymous to "list construction" as I'm told
>
> for e.g:
> > foldr (:) [ ] [1,2,3,4,5]
> [1,2,3,4,5]
>
> In the same spirit I'm trying to construct a Foldable instance of my own
> type:
>
> data Li a = Nil | Cons a (Li a)
> deriving (Show)
>
> instance Foldable Li where
> foldr f b Nil = b
> foldr f b (Cons a y) = foldr f (f a b) y
>
> So I'm trying out foldr for my type:
> > foldr Cons Nil (Cons 1 (Cons 2 Nil))
> Cons 2 (Cons 1 Nil)
>
> This shows my foldr implementation i'm not folding from right side,
> but how can I possibly do that - the data could have been an infinite
> stream.
> It feels like I will never be able to truly write a foldr implementation
> with "right" folding mechanism.
>
> Any thoughts?
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20151207/57824399/attachment-0001.html>
------------------------------
Message: 6
Date: Mon, 7 Dec 2015 11:54:45 +0100
From: Alexander Berntsen <[email protected]>
To: David Blubaugh <[email protected]>, The
Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>,
Haskell-cafe Cafe <[email protected]>, Haskell
<[email protected]>, GHC Users Mailing List
<[email protected]>, "[email protected]"
<[email protected]>, "[email protected]" <[email protected]>,
"[email protected]" <[email protected]>, Haskell
Mailman-owner <[email protected]>
Subject: Re: [Haskell-beginners] DOOM rewritten in the Haskell
programming language.
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
David,
I think it would be more valuable to make a DOOM-like game than to
remake DOOM. Especially if you are going to aim for funding. The free
software community has had this problem for years, where we point to
remakes of old games as evidence to viability. It isn't. Nobody will
be swayed by Haskell DOOM. (Although I would, personally, think it
interesting.)
Good luck with your project.
- --
Alexander
[email protected]
https://secure.plaimi.net/~alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCgAGBQJWZWV0AAoJENQqWdRUGk8B0bMQAKu/4hBeS7Iz23IMIatrc5Jd
hkWm/bG8FRCtiLyETiH9NtUL5RPtmS+s3+o05h6fZZ1VFFfzucygsmOTw27kWApc
ZpZiypv22y7uJsrbyxFgXVp2w6vfp6rrdA+vRSOUp/dmJ+vnn7jVeGUInnlAKX50
WAsEUPx0q4IhGnF/2O3kBuKw/baGvp2kne2IjrgdAJ5qptVEvVoAEpIG3WveTnlP
LQMBwTLrB+TkdTIZWTYUT/e8MYZorU5x6LN+GtKuO28PEEG0jS2IgfNeUnzZjalF
p37Av84UCiIhTQD3LV6Eq1sQThQMVMm/S+qkqZrNL3I/+TbS3Ztf6q7u7zDRCsnr
vum2JR0f9vtGfpd5j3hGVXjQTd0jU3uFdY1kHM0ISGTSKYrOGYs4qsCL/VxPubo8
Lh7YfCltXY+LQkz/Q2FElcd9eM9xYWSOBhPhiudXZ3f+PnkBNRwH03eWk/LHgmhB
MByAdf2WCAU4DK7xpJKkCVsyOlsC17t8CtKDIfnt/RkPUr8108i6KOh6zvDR94Du
lJyQWuCbL7FFb7uXVO7cKTeWJFejd/K5GrQBTBpVEy3xA15c8Kj+9ALWrdJAlion
ktS85eEcp/3IzrNpPby8lhjJvujwzbzny+a9Jdn8ZcybBwpF3+IRSARnb7lJ4Yba
Ca972BfXJnFZXiYARfov
=mGnp
-----END PGP SIGNATURE-----
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 90, Issue 10
*****************************************