Re: [racket] slow g^x=h mod p meet in the middle code

2014-02-28 Thread Cristian Baboi
On Thu, 27 Feb 2014 23:29:36 +0200, Eric Dong wrote: I have a 2.4 GHz machine (n-core does not matter; Racket only uses one core), and I get cpu time: 25228 real time: 25202 gc time: 18840 on Linux x86. Are you sure you ran the "Rackety" program Matthias posted? On Linux x64 Debian 6 compil

Re: [racket] slow g^x=h mod p meet in the middle code

2014-02-27 Thread Cristian Baboi
În data de Thu, 27 Feb 2014 18:07:58 +0200, Sam Tobin-Hochstadt a scris: On Thu, Feb 27, 2014 at 11:03 AM, Cristian Baboi wrote: În data de Thu, 27 Feb 2014 17:40:16 +0200, Matthias Felleisen a scris: $ racket yourprogram.rkt cpu time: 21269 real time: 21571 gc time: 14551 The

Re: [racket] slow g^x=h mod p meet in the middle code

2014-02-27 Thread Cristian Baboi
În data de Thu, 27 Feb 2014 17:40:16 +0200, Matthias Felleisen a scris: $ racket yourprogram.rkt cpu time: 21269 real time: 21571 gc time: 14551 The Rackety version. DrRacket on my computer cpu time: 218495 real time: 225567 gc time: 176686 Racket Users list: http:

Re: [racket] slow g^x=h mod p meet in the middle code

2014-02-27 Thread Cristian Baboi
În data de Thu, 27 Feb 2014 17:41:06 +0200, Neil Toronto a scris: On 02/27/2014 08:33 AM, Cristian Baboi wrote: În data de Thu, 27 Feb 2014 17:04:51 +0200, Neil Toronto a scris: On 02/27/2014 07:55 AM, Jens Axel Søgaard wrote: 2014-02-27 15:23 GMT+01:00 Cristian Baboi : Hello

Re: [racket] slow g^x=h mod p meet in the middle code

2014-02-27 Thread Cristian Baboi
În data de Thu, 27 Feb 2014 17:33:32 +0200, Cristian Baboi a scris: Second: (modulo (* l gm1) p) looks inefficient. If l and gm1 are large, then it is more efficient to reduce modulo p first, then multiply, then reduce again. Well, gm1 and gB are already

Re: [racket] slow g^x=h mod p meet in the middle code

2014-02-27 Thread Cristian Baboi
În data de Thu, 27 Feb 2014 17:04:51 +0200, Neil Toronto a scris: On 02/27/2014 07:55 AM, Jens Axel Søgaard wrote: 2014-02-27 15:23 GMT+01:00 Cristian Baboi : Hello, I recently used racket for a math assignment in a crypto class because of big numbers support. Others used python, java

[racket] Strange HKEY_CLASSES_ROOT\Racket.Document\DefaultIcon

2014-02-27 Thread Cristian Baboi
I installed racket 6.0 x64 on windows7 and this is what I found for the default icon in the registry: HKEY_CLASSES_ROOT\Racket.Document\DefaultIcon C:\Program Files\Racket\lib\C:\cygwin64\home\pltbuild\build\plt-release-64\bundle\racket\share\pkgs\drracket\drracket\doc.ico _

[racket] slow g^x=h mod p meet in the middle code

2014-02-27 Thread Cristian Baboi
Hello, I recently used racket for a math assignment in a crypto class because of big numbers support. Others used python, java, haskell and bragged with short execution times. Is there anything I can do to speed up the following code or is my computer too old ? The code solves g^x=h mod p

[racket] Default icon for rkt file type

2014-02-15 Thread Cristian Baboi
After I installed racket on windows7 x64, the icon for .rkt files is not the DrRacket.exe icon. Do you know a way to fix it? Racket Users list: http://lists.racket-lang.org/users

Re: [racket] MSB8012 conversion error compiling Racket with VS2010

2012-06-16 Thread Cristian Baboi
ng: mred raco setup: post-installing: mysterx MysterX: Unable to register library myspage.dll <--- MysterX: Unable to register library myssink.dll <--- raco setup: post-installing: mzcom raco setup: post-installing: mzscheme raco setup: post-installing: racket/gui Î

[racket] MSB8012 conversion error compiling Racket with VS2010

2012-06-15 Thread Cristian Baboi
After converting solution files from VS2008 to VS2010, I get errors like MSB8012: $(TargetName) ('libmzgc') does not match the Linker's OutputFile property value '..\..\..\lib\libmzgcxxx.dll' ('libmzgcxxx') in project configuration 'Release|x64'. This may cause your project to build