Re: [fpc-pascal] Super Large Integer Math Calculations

2017-08-10 Thread Stuart Cox

Have a look at http://www.wolfgang-ehrhardt.de/


On 2017-07-11 6:05 AM, nore...@z505.com wrote:

On 2017-07-07 17:08, Bart wrote:

On 7/7/17, nore...@z505.com  wrote:


For integers beyond 64 bit, or even beyond 32 bit on a 64 bit machine,
why can't the math be broken down into peices the way a human does 
it on

paper, and then theoretically any number can be added and subtracted,
even if it is beyond 32/64 bit?

Example:

type TSuperLargeInt = string;

var
   i, j: TSuperLargeInt;
   output: TSuperLargeInt;
begin
   i := '10009';
   j := '10001';
   output := AddLargeInts(i,j);
   writeln(output);
end.


http://svn.code.sf.net/p/flyingsheep/code/trunk/wtf/ncalc.pp does 
exactly that

(all dependenies are also found at
http://svn.code.sf.net/p/flyingsheep/code/trunk/wtf).

...


It's not lightning fast, but there is room for optimization I guess.

Bart


I knew someone had already invented this!
Any idea if it does square roots, and, decimal point numbers too..

Or, what math can it "not" do.. things like sin/tan/cos, or strange 
maths..


Probably a complex question requiring a complex answer

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A jit tool for command line compilation of Pascal?

2017-02-05 Thread Stuart Cox

Yes, thanks.  Couldn't seem to track it down.


On 2017-02-05 5:57 PM, Dmitry Boyarintsev wrote:

InstantFPC ?

http://wiki.freepascal.org/InstantFPC

thanks,
Dmitry

On Sun, Feb 5, 2017 at 8:31 PM, Stuart Cox <scoxb...@shaw.ca 
<mailto:scoxb...@shaw.ca>> wrote:


Several years ago I seem to remember using a FPC tool that allowed
me to write Pascal code and have its source file loaded, compiled
and executed at the command line.  If I remember correctly, it
kept access to the environment that it was being executed
immediately under and so was like a Pascal .bat or .cmd.

Can anyone refresh my memory, please?


___
fpc-pascal maillist  - fpc-pascal@lists.freepascal.org
<mailto:fpc-pascal@lists.freepascal.org>
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
<http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal>




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] A jit tool for command line compilation of Pascal?

2017-02-05 Thread Stuart Cox
Several years ago I seem to remember using a FPC tool that allowed me to 
write Pascal code and have its source file loaded, compiled and executed 
at the command line. If I remember correctly, it kept access to the 
environment that it was being executed immediately under and so was like 
a Pascal .bat or .cmd.


Can anyone refresh my memory, please?

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal