I'm not working in J, here.

I'm working in [redshift] SQL.

Still interested?

-- 
Raul


On Thu, Dec 29, 2016 at 12:22 PM, Robert Bernecky
<[email protected]> wrote:
> If I understand your problem correctly, then any decent optimizing
> functional array language compiler would automatically lift the date
> conversion
> (to constant) out of any loops, and give you the same performance
> as if you had hand-coded the constant.
>
> If you email me the relevant code (or suitable fragment thereof),
> I'll attempt to prove my claim.
>
> Bob
>
> On 2016-12-29 11:40 AM, Raul Miller wrote:
>>
>> On Thu, Dec 29, 2016 at 6:39 AM, Jack Andrews <[email protected]> wrote:
>>>
>>> For those who've used static typed languages, have you ever programmed in
>>> a
>>> dynamic typed language said to yourself, "static types would have
>>> prevented
>>> that problem"?   Just curious.
>>
>> Rarely, but yes.
>>
>> Currently, though, I'm struggling with a problem where using a
>> reasonable way of expressing a date makes a calculation take 15
>> minutes while hard coding the date as a constant makes the same
>> calculation take 33 seconds. (And I need to implement this so it runs
>> every hour - or, preferably, every five minutes - on an ongoing
>> basis.)
>>
>> I expect there's a lot of static type skeletons buried here.
>>
>
> --
> Robert Bernecky
> Snake Island Research Inc
> 18 Fifth Street
> Ward's Island
> Toronto, Ontario M5J 2B9
>
> [email protected]
> tel: +1 416 203 0854
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to