[sf-perl] Farmer Puzzle
David Christensen
dpchrist at holgerdanske.com
Wed Aug 26 08:37:06 PDT 2026
On 8/26/26 05:05, Shlomi Fish wrote:
> hi David.
Hi Shlomi.
> On Wed, 26 Aug 2026 00:50:28 -0700
> David Christensen wrote:
> ...
>> Is there a way for an inner scope/block to undeclare/forget lexical
>> variables declared in an enclosing scope/block?
>>
>
> I suggest avoiding using this feature , if it existed.
Okay.
>> Adding "use integer" and doing the monetary math in cents both improves
>> performance and prevents floating point representation errors:
>> ...
>> Unfortunately, "use bigint" is not a good solution -- 100_000/200 = 500
>> times slower:
>> ...
>
> I see. 128bits integer might help here:
>
> https://www.nu42.com/2016/01/excellent-optimization-story.html
>
> [via perl weekly]
Thank you for the reference.
David
More information about the SanFrancisco-pm
mailing list