Skip to content

Int with Prelude-functions works, but Integer with generic-list-functions doesn't

Hello,

I've written a program for fast online multiplication of real numbers, it should produce for an infinite input-sequence an infinite output-sequence. If I'm using Integer with related generic-list-functions, computation stops at step 32777. Windows Task-Manager tells me: CPU-Usage 100% , Memory-Allocation increasing. After a few minutes over 600MB memory is used by my program. But if I'm using Int with Prelude-functions computation doesn't stop and this is exactly what I'm expecting. I tried to overwrite the type of the Prelude functions /length/, /take/ etc. to Integer, but the same problem at the same step occurs. A friend of mine compiled my program under Linux and got this error message:

32779 : 1 1 ---32776--> 0

32780 : 1 0 ---32777--> -1

Main: Ix{Integer}.index: Index (32766) out of range ((0,32765))

I don't know, whether this is a bug nor where the problem exactly is. My Source-Code is avaialable under [www.romeinf04.de].

Best regards,

Roman

Trac metadata
Trac field Value
Version 6.6.1
Type Bug
TypeOfFailure OtherFailure
Priority low
Resolution Unresolved
Component Prelude
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
0\r\n\r\n32780 : 1 0 ---32777--> -1\r\n\r\nMain: Ix{Integer}.index: Index (32766) out of range ((0,32765))\r\n\r\nI don't know, whether this is a bug nor where the problem exactly is.\r\nMy Source-Code is avaialable under [www.romeinf04.de].\r\n\r\nBest regards,\r\n\r\nRoman","type_of_failure":"OtherFailure","blocking":[]} -->
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information