Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/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. Re: Performance problem with Haskell/OpenGL/GLFW
(Brandon Allbery)
2. Re: Performance problem with Haskell/OpenGL/GLFW
(Hollister Herhold)
3. Re: Create new value for given type (Kim-Ee Yeoh)
4. Re: Performance problem with Haskell/OpenGL/GLFW
(Brandon Allbery)
5. Re: Performance problem with Haskell/OpenGL/GLFW
(Hollister Herhold)
6. Re: Performance problem with Haskell/OpenGL/GLFW
(Hollister Herhold)
----------------------------------------------------------------------
Message: 1
Date: Sun, 10 Mar 2013 13:09:24 -0400
From: Brandon Allbery <[email protected]>
Subject: Re: [Haskell-beginners] Performance problem with
Haskell/OpenGL/GLFW
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<cakfcl4weuya58ic7blbs5v_qdaktx0h9a5lfarj9boxnyfa...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Sun, Mar 10, 2013 at 5:38 AM, Jesper S?rnesj? <[email protected]> wrote:
> To remove any possibility of the problem being in GLFW-b or OpenGLRaw,
> I created two new programs, one in Haskell [1] and one in C [2], that
> don't import or include anything related to OpenGL, and that simply
> create a context, check if it is hardware accelerated, and then exit.
> That is all. And still, the Haskell program receives a software
> renderer, while the C program receives a hardware one:
>
Check whether the Haskell OpenGL binding is using the X11 libraries instead
of native GUI. My (possibly incorrect) understanding is that XQuartz does
not yet support OpenGL 3.x directly, so it falls back to software rendering.
--
brandon s allbery kf8nh sine nomine associates
[email protected] [email protected]
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130310/87c8d748/attachment-0001.htm>
------------------------------
Message: 2
Date: Sun, 10 Mar 2013 12:27:39 -0500
From: Hollister Herhold <[email protected]>
Subject: Re: [Haskell-beginners] Performance problem with
Haskell/OpenGL/GLFW
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
Digging... Is that a configurable thing?
On Mar 10, 2013, at 12:09 PM, Brandon Allbery wrote:
> On Sun, Mar 10, 2013 at 5:38 AM, Jesper S?rnesj? <[email protected]> wrote:
> To remove any possibility of the problem being in GLFW-b or OpenGLRaw,
> I created two new programs, one in Haskell [1] and one in C [2], that
> don't import or include anything related to OpenGL, and that simply
> create a context, check if it is hardware accelerated, and then exit.
> That is all. And still, the Haskell program receives a software
> renderer, while the C program receives a hardware one:
>
> Check whether the Haskell OpenGL binding is using the X11 libraries instead
> of native GUI. My (possibly incorrect) understanding is that XQuartz does not
> yet support OpenGL 3.x directly, so it falls back to software rendering.
>
> --
> brandon s allbery kf8nh sine nomine associates
> [email protected] [email protected]
> unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130310/d572c2f2/attachment-0001.htm>
------------------------------
Message: 3
Date: Mon, 11 Mar 2013 01:33:10 +0700
From: Kim-Ee Yeoh <[email protected]>
Subject: Re: [Haskell-beginners] Create new value for given type
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<capy+zdrhncpovuvz1pq1vjelpo_ltf3ognxu_fupfxzfox7...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
On Sat, Mar 9, 2013 at 7:25 AM, Heinrich Ody <[email protected]> wrote:
> I'm given a type 'a' (lets assume the type is infinite) and a set finite
> 'xs'. Now I want to create a new value of type 'a' that does not occur in
> 'xs' and return a set 'ys' that consists of 'xs' and also contains the new
> value.
Is this a wish to explore some variant of a choice axiom in Haskell?
I'm afraid there's no such thing. Being given a type is not the same
as being given a set, notwithstanding the modelling of list
comprehension after set comprehension.
Much of this becomes totally obvious when you look at System F, a
variant of which forms the lower-level core language of GHC.
And the way to approach System F, which is forbidding at first glance,
is that it's just Haskell except that all the type functions and
applications are made explicit.
p.s. You can actually roll your own set theory using type classes:
class MyTheory a where
someKindOfChoice :: a -> [a] -> [a]
-- Kim-Ee
------------------------------
Message: 4
Date: Sun, 10 Mar 2013 14:47:40 -0400
From: Brandon Allbery <[email protected]>
Subject: Re: [Haskell-beginners] Performance problem with
Haskell/OpenGL/GLFW
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID:
<CAKFCL4U5S+q8HgHKYnOmCq_r74hrdA4CdPsWxe9=y1s7gpj...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Sun, Mar 10, 2013 at 1:27 PM, Hollister Herhold <[email protected]>wrote:
> On Mar 10, 2013, at 12:09 PM, Brandon Allbery wrote:
>
> On Sun, Mar 10, 2013 at 5:38 AM, Jesper S?rnesj? <[email protected]>
> wrote:
>
>> To remove any possibility of the problem being in GLFW-b or OpenGLRaw,
>> I created two new programs, one in Haskell [1] and one in C [2], that
>>
> Check whether the Haskell OpenGL binding is using the X11 libraries
> instead of native GUI. My
>
> Digging... Is that a configurable thing?
>
I just checked and it looks like it's at least trying to use the native
framework.
--
brandon s allbery kf8nh sine nomine associates
[email protected] [email protected]
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130310/49aa930a/attachment-0001.htm>
------------------------------
Message: 5
Date: Sun, 10 Mar 2013 15:10:21 -0500
From: Hollister Herhold <[email protected]>
Subject: Re: [Haskell-beginners] Performance problem with
Haskell/OpenGL/GLFW
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
That's what I thought from looking at the output from dtruss.
Is this a GLFW-only issue? It seems unlikely that Haskell OpenGL apps in
general have been using the software renderer.
On Mar 10, 2013, at 1:47 PM, Brandon Allbery wrote:
> On Sun, Mar 10, 2013 at 1:27 PM, Hollister Herhold <[email protected]>
> wrote:
> On Mar 10, 2013, at 12:09 PM, Brandon Allbery wrote:
>> On Sun, Mar 10, 2013 at 5:38 AM, Jesper S?rnesj? <[email protected]> wrote:
>> To remove any possibility of the problem being in GLFW-b or OpenGLRaw,
>> I created two new programs, one in Haskell [1] and one in C [2], that
>> Check whether the Haskell OpenGL binding is using the X11 libraries instead
>> of native GUI. My
>
> Digging... Is that a configurable thing?
>
> I just checked and it looks like it's at least trying to use the native
> framework.
>
> --
> brandon s allbery kf8nh sine nomine associates
> [email protected] [email protected]
> unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130310/2c6108a8/attachment-0001.htm>
------------------------------
Message: 6
Date: Sun, 10 Mar 2013 15:17:30 -0500
From: Hollister Herhold <[email protected]>
Subject: Re: [Haskell-beginners] Performance problem with
Haskell/OpenGL/GLFW
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
Okay, I think I just figured this out. Well, HOW to get it working with the
accelerated renderer.
I was wondering a simple way to check renderer info so I ran glxinfo. This
(automatically) fired up X11, and then on a hunch I re-ran Test2 with X11
running and got this:
hhmacbook:~/Development/haskell/OpenGL:57> ./Test2
hardware
(2,7,7)
(3,2,0)
hhmacbook:~/Development/haskell/OpenGL:58>
AH HA! I then quit X11 and re-ran Test2, and got this:
hhmacbook:~/Development/haskell/OpenGL:58> ./Test2
software
(2,7,7)
(3,2,0)
hhmacbook:~/Development/haskell/OpenGL:59>
SO- If you want the accelerated renderer, you need to have X11 running.
Now, I have no idea WHY this is the case, but there you go.
Hope this helps.
-Hollister
On Mar 10, 2013, at 3:10 PM, Hollister Herhold wrote:
>
> That's what I thought from looking at the output from dtruss.
>
> Is this a GLFW-only issue? It seems unlikely that Haskell OpenGL apps in
> general have been using the software renderer.
>
>
>
> On Mar 10, 2013, at 1:47 PM, Brandon Allbery wrote:
>
>> On Sun, Mar 10, 2013 at 1:27 PM, Hollister Herhold <[email protected]>
>> wrote:
>> On Mar 10, 2013, at 12:09 PM, Brandon Allbery wrote:
>>> On Sun, Mar 10, 2013 at 5:38 AM, Jesper S?rnesj? <[email protected]> wrote:
>>> To remove any possibility of the problem being in GLFW-b or OpenGLRaw,
>>> I created two new programs, one in Haskell [1] and one in C [2], that
>>> Check whether the Haskell OpenGL binding is using the X11 libraries instead
>>> of native GUI. My
>>
>> Digging... Is that a configurable thing?
>>
>> I just checked and it looks like it's at least trying to use the native
>> framework.
>>
>> --
>> brandon s allbery kf8nh sine nomine associates
>> [email protected] [email protected]
>> unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20130310/507c98a7/attachment.htm>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 57, Issue 11
*****************************************