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.  Clocks, scheduling, jack and supercollider (martin)
   2. Re:  Clocks, scheduling, jack and supercollider (Brent Yorgey)
   3. Re:  development workflow ? (John M. Dlugosz)
   4. Re:  development workflow ? (John M. Dlugosz)
   5.  annoying precedence of unary negate (John M. Dlugosz)
   6. Re:  annoying precedence of unary negate (Magnus Therning)
   7. Re:  annoying precedence of unary negate (Kim-Ee Yeoh)
   8. Re:  annoying precedence of unary negate (Friedrich Wiemer)
   9. Re:  annoying precedence of unary negate (Kim-Ee Yeoh)


----------------------------------------------------------------------

Message: 1
Date: Sun, 27 Apr 2014 20:44:57 +0200
From: martin <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] Clocks, scheduling, jack and
        supercollider
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-15

Hello all,

I just installed the haskell-supercollider bindings ("hsc3") and I am able to 
send events to supercollider and hear
sound. But I have no idea how to schedule events to be sent in the future - a 
prerequisite to play a song.

Ideally I would sync to an external clock source, like a time code 
(SMPTE/MIDI). Also it would be nice to listen to
jack-transport, so I can fast-forward and rewind from another application. But 
the jack bindings for Haskell do not
mention jack-transport.

Do you have any advice where I should look next.


------------------------------

Message: 2
Date: Sun, 27 Apr 2014 15:04:51 -0400
From: Brent Yorgey <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Clocks, scheduling, jack and
        supercollider
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

On Sun, Apr 27, 2014 at 08:44:57PM +0200, martin wrote:
> Hello all,
> 
> I just installed the haskell-supercollider bindings ("hsc3") and I am able to 
> send events to supercollider and hear
> sound. But I have no idea how to schedule events to be sent in the future - a 
> prerequisite to play a song.
> 
> Ideally I would sync to an external clock source, like a time code 
> (SMPTE/MIDI). Also it would be nice to listen to
> jack-transport, so I can fast-forward and rewind from another application. 
> But the jack bindings for Haskell do not
> mention jack-transport.
> 
> Do you have any advice where I should look next.

You might have more luck sending this question to the haskell-art mailing list:

  http://lurk.org/groups/haskell-art/

though I certainly don't intend to discourage such questions here.  If
someone here can answer it, so much the better!

-Brent


------------------------------

Message: 3
Date: Sun, 27 Apr 2014 22:21:41 -0500
From: "John M. Dlugosz" <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] development workflow ?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 4/25/2014 11:26 AM, Daniel Trstenjak wrote:
>

>
> If you can't get your changes merged back - or for the short
> term - it might be easier to just copy the specific
> function, modify and rename it.
>
> I don't know nothing about gloss, so would this approach be possible?
>

The function is an internal back-end detail, not one the program calls 
directly.  So 
renaming it would mean changing the caller, etc.




------------------------------

Message: 4
Date: Sun, 27 Apr 2014 22:24:38 -0500
From: "John M. Dlugosz" <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] development workflow ?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

OK, use sandbox and "add-source".
But does that address the smart "make" concept?  That is, will it automatically 
rebuild 
the gloss package if a file in it changed, when I compile the program that 
imports it?


On 4/25/2014 12:39 PM, Brent Yorgey wrote:
> On Fri, Apr 25, 2014 at 06:59:04PM +0200, Daniel Trstenjak wrote:
>>
>> On Fri, Apr 25, 2014 at 11:26:44AM -0500, John M. Dlugosz wrote:
>>> To be specific, in Graphics/Gloss/Internals/Render/Circle.hs
>>>
>>>     {-# INLINE circleSteps #-}
>>>     circleSteps :: Float -> Int
>>>     circleSteps sDiam
>>>             | sDiam < 8     = 8
>>>             | sDiam < 16    = 16
>>>             | sDiam < 32    = 32
>>>             | otherwise     = round sDiam
>>
>> Ok, I see, if you have to modify such an internal function, then
>> forking the package might really be the only solution.
>>
>> If you're using a cabal sandbox with 'add-source', then you
>> might not need to rename the gloss package, if cabal first searches
>> for dependencies in the added sources and then on hackage.
>
> Yes, that's what it does.  Renaming the package should not be
> necessary.
>
> -Brent
>




------------------------------

Message: 5
Date: Sun, 27 Apr 2014 22:59:27 -0500
From: "John M. Dlugosz" <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] annoying precedence of unary negate
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed


        [ ? , translate (-50) 0 $ color green $ Circle 50 , ?]

The parens around -50 are necessary.
Is there a more elegant way to write it?

Without the parens, I don't understand what the compiler sees it as, based on 
the error 
message.  How does the compiler parse it in that case?

Also, is the comma in a list different from the operator comma which is noted 
as 
right-associative precedence 5?  I had thought that the item separator in the 
list was 
special syntax that had very low precedence.  After all, I can write f$g as a 
list item 
without parens, and $ is lower than comma.
What is comma (as an operator) used for?



------------------------------

Message: 6
Date: Mon, 28 Apr 2014 06:24:47 +0200
From: Magnus Therning <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] annoying precedence of unary negate
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

On Sun, Apr 27, 2014 at 10:59:27PM -0500, John M. Dlugosz wrote:
> 
>       [ ? , translate (-50) 0 $ color green $ Circle 50 , ?]
> 
> The parens around -50 are necessary.
> Is there a more elegant way to write it?
> 
> Without the parens, I don't understand what the compiler sees it as, based
> on the error message.  How does the compiler parse it in that case?

It most likely  sees it as the binary minus rather than the unary minus.

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: [email protected]   jabber: [email protected]
twitter: magthe               http://therning.org/magnus

The results point out the fragility of programmer expertise: advanced
programmers have strong expectations about what programs should look like,
and when those expectations are violated--in seemingly innocuous
ways--their performance drops drastically.
     -- Elliot Soloway and Kate Ehrlich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20140428/cdb85061/attachment-0001.sig>

------------------------------

Message: 7
Date: Mon, 28 Apr 2014 12:13:58 +0700
From: Kim-Ee Yeoh <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] annoying precedence of unary negate
Message-ID:
        <CAPY+ZdQiCmW94Fy3m6F_QQF7=jV8O-PM-eFzWYrVo+NL3E0o=q...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Mon, Apr 28, 2014 at 10:59 AM, John M. Dlugosz
<[email protected]>wrote:

>
>         [ ? , translate (-50) 0 $ color green $ Circle 50 , ?]
>
> The parens around -50 are necessary.
> Is there a more elegant way to write it?
>
> Without the parens, I don't understand what the compiler sees it as, based
> on the error message.  How does the compiler parse it in that case?


Without the parens, minus would be parsed just like plus.

What would 'translate +50 0 blah' parse into?

-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20140428/d560f426/attachment-0001.html>

------------------------------

Message: 8
Date: Mon, 28 Apr 2014 08:53:14 +0200
From: Friedrich Wiemer <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] annoying precedence of unary negate
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

> What is comma (as an operator) used for?

it's used to build tuples:

> ?: (,) 4 2
> (4,2)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20140428/d0b953d0/attachment-0001.sig>

------------------------------

Message: 9
Date: Mon, 28 Apr 2014 14:08:24 +0700
From: Kim-Ee Yeoh <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] annoying precedence of unary negate
Message-ID:
        <CAPY+ZdR9csn11QoVzoVxTiKQJn7jVMj=tfnavkce6dtjpab...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On Mon, Apr 28, 2014 at 10:59 AM, John M. Dlugosz
<[email protected]>wrote:

> Also, is the comma in a list different from the operator comma which is
> noted as right-associative precedence 5?  I had thought that the item
> separator in the list was special syntax that had very low precedence.


The _colon_ is a non-rebindable special-syntax operator with infixr 5.

Otoh, the _comma_ in a list is _not_ an operator but merely an item
separator.

Comma-separated list notation e.g. [1,2,3] is special syntax that desugars
to e.g. 1:2:3:[].

Other than that, the colon and comma don't have anything else in common.

-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20140428/54ccfac0/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 70, Issue 49
*****************************************

Reply via email to