Re: bc cannot calculate very big number

2024-11-04 Thread hahahahacker2009
Vào Th 2, 4 thg 11, 2024 vào lúc 03:33 Otto Moerbeek đã viết: > > On Sun, Nov 03, 2024 at 08:55:18AM +0100, Otto Moerbeek wrote: > > > On Sun, Nov 03, 2024 at 08:44:26AM +0100, Sebastien Marie wrote: > > > > > Otto Moerbeek writes: > > > > > > > On Sun, Nov 03, 2024 at 08:13:20AM +0100, Otto Mo

Re: bc cannot calculate very big number

2024-11-04 Thread Sebastien Marie
Otto Moerbeek writes: > > That day came sooner than expected. > > The root cause of the speed difference is that my dc/bc compute in > binary, while the others compute in base 10. So they basically do not > need to do a conversion for outputting in base 10. > > By avoiding a lot of memory allocati

Re: bc cannot calculate very big number

2024-11-03 Thread Otto Moerbeek
On Sun, Nov 03, 2024 at 08:55:18AM +0100, Otto Moerbeek wrote: > On Sun, Nov 03, 2024 at 08:44:26AM +0100, Sebastien Marie wrote: > > > Otto Moerbeek writes: > > > > > On Sun, Nov 03, 2024 at 08:13:20AM +0100, Otto Moerbeek wrote: > > > > > >> On Sun, Nov 03, 2024 at 09:38:47AM +0700, hahahahac

Re: bc cannot calculate very big number

2024-11-03 Thread Otto Moerbeek
On Sun, Nov 03, 2024 at 08:44:26AM +0100, Sebastien Marie wrote: > Otto Moerbeek writes: > > > On Sun, Nov 03, 2024 at 08:13:20AM +0100, Otto Moerbeek wrote: > > > >> On Sun, Nov 03, 2024 at 09:38:47AM +0700, hahahahacker2009 wrote: > >> > >> > Hello, > >> > OpenBSD bc(1) is unable to calculate

Re: bc cannot calculate very big number

2024-11-03 Thread Sebastien Marie
Otto Moerbeek writes: > On Sun, Nov 03, 2024 at 08:13:20AM +0100, Otto Moerbeek wrote: > >> On Sun, Nov 03, 2024 at 09:38:47AM +0700, hahahahacker2009 wrote: >> >> > Hello, >> > OpenBSD bc(1) is unable to calculate very big number, >> > for example, (1024*1024)^(1024*1024) run for an hour and st

Re: bc cannot calculate very big number

2024-11-03 Thread Otto Moerbeek
On Sun, Nov 03, 2024 at 08:13:20AM +0100, Otto Moerbeek wrote: > On Sun, Nov 03, 2024 at 09:38:47AM +0700, hahahahacker2009 wrote: > > > Hello, > > OpenBSD bc(1) is unable to calculate very big number, > > for example, (1024*1024)^(1024*1024) run for an hour and still cannot > > give me the resul

Re: bc cannot calculate very big number

2024-11-03 Thread Otto Moerbeek
On Sun, Nov 03, 2024 at 09:38:47AM +0700, hahahahacker2009 wrote: > Hello, > OpenBSD bc(1) is unable to calculate very big number, > for example, (1024*1024)^(1024*1024) run for an hour and still cannot > give me the result. > It just use about 11M of memory and 100% CPU. > Gavin Howard's bc port