![]() |
|
|
#45 |
|
"Composite as Heck"
Oct 2017
3×52×11 Posts |
I'd argue if you're going to become a sysadmin (or whatever) and haven't taken the initiative to familiarise yourself with the core tools you're likely to use you deserve to learn the hard way. I don't really care and shouldn't be arguing the point but I guess this shows I have too much free time today :P
|
|
|
|
|
|
#46 |
|
"Dylan"
Mar 2017
24316 Posts |
I have used the recordtest.txt provided in post 34 to test the other popular text editors in Linux. Attached are the results from emacs (25.2.2), vim (8.0.1453) and nano (2.9.3). These were tested on Ubuntu 18.04 "Bionic". Note with nano the output is the result after soft wrapping is enabled as by default it is not and the first line goes well beyond the limits of the terminal window.
Also attached is the test file after resaving in nano, which shows a change in file size (560 vs. 563). Not sure why this is happening. |
|
|
|
|
|
#47 |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
152A16 Posts |
Records 8 and 9 don't say so, but as I posted the file, they had the same CR LF termination as record 7. Nano is probably quietly deleting those CR's at save time.
Last fiddled with by kriesel on 2018-06-27 at 17:33 |
|
|
|
|
|
#48 | |
|
22×5×139 Posts |
Quote:
In nano if the line goes beyond the terminal window this is indicated with a $ and you can scroll the line |
|
|
|
|
#49 |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
10101001010102 Posts |
I find myself using export code more often to peek into the application interim file contents, than to do export.
A useful addition, not to the draft standard, but to export software behavior, is to take the least significant 8 bytes of the binary data and output to the console the properly human-readable ordered hexadecimal representation. In the data, the bytes are 01234567 (least significant first). The res64 hexadecimal output is MSB first, 0x7766554433221100, so that it is directly comparable to what shows up in application console output or logs (such as CUDALucas, CUDAPm1, etc). |
|
|
|
|
|
#50 |
|
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
2×32×7×43 Posts |
Revised the draft standard to draft 5. See especially a few numbered questions/comments in red text in the attached pdf file.
Constructive comments are encouraged. Sample program run: Code:
C:\Users\Ken\Documents\starfish>cudapm1export.pl CUDAPm1export for Windows V0.1 2018-08-15 Input file name for export please (output will be to same name, type .mne.txt): c312000049s1. Input file name received as <c312000049s1. Extracted exponent q 312000049 from filename Opened file c312000049s1 for read Length of input file data read is 39000108 bytes, 9750027 words. Exported file's header will read as follows: Format Mersenne Neutral Exchange V1.0 FileOrigin "CUDAPm1export for Windows" "V0.1 2018-08-15" c312000049s1 2018 Aug 15 23:12:33 UTC Type P-1 stage 2 Exponent 312000049 Iteration 3598983 N 17920000 AccumulatedTime 156999 B1 2495000 Reserved6 0 Reserved7 0 Reserved8 0 Reserved9 0 B2 0 D 0 E 0 NRP 0 M 0 K 0 T 0 Midpasstransforms 0 Itran_done 0 PtrandonePlusNumtran 0 Itime 0 Ptime 0 Reserved22 0 Reserved23 0 Reserved24 0 DataFormat binary bytes CRC32 0x5660f8fc DataBinaryByteCount 39000008 EndOfHeader 0x73503f16 Exported file header has length 547 including record terminators. Processing bulk binary data input without output to console, please wait until program indicates Done. Res64 of binary form of data is: 0xd1f1908c8f75b4c0 Printing 39000008 bytes bulk binary data in binary form. Done. Last fiddled with by kriesel on 2018-08-15 at 23:39 |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Available software for pursuing mersenne primes | kriesel | GPU Computing | 48 | 2020-01-14 02:56 |
| Converting CWI format to ggnfs format | xilman | Msieve | 2 | 2015-11-27 09:54 |
| LLT Cycles for Mersenne primality test: a draft | T.Rex | Math | 1 | 2010-01-03 11:34 |
| Trial division software for Mersenne | SPWorley | Factoring | 7 | 2009-08-16 00:23 |
| Speeding up Mersenne hunting | m_f_h | Math | 8 | 2007-05-18 13:49 |