mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2018-06-25, 13:11   #45
M344587487
 
M344587487's Avatar
 
"Composite as Heck"
Oct 2017

3×52×11 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
Because sooner or later they will find themselves on a box with vi as the only editor that's been installed. If they are really unlucky the only editor will be ed (or something even less friendly). BDDTGTTS.

Chris
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
M344587487 is offline   Reply With Quote
Old 2018-06-27, 14:22   #46
Dylan14
 
Dylan14's Avatar
 
"Dylan"
Mar 2017

24316 Posts
Default more tests of separators

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.
Attached Thumbnails
Click image for larger version

Name:	emacsrecordtest.png
Views:	126
Size:	71.4 KB
ID:	18633   Click image for larger version

Name:	nanorecordtest.png
Views:	126
Size:	73.1 KB
ID:	18634   Click image for larger version

Name:	vimrecordtest.png
Views:	121
Size:	61.8 KB
ID:	18635  
Attached Files
File Type: txt nanotest.txt (560 Bytes, 121 views)
Dylan14 is offline   Reply With Quote
Old 2018-06-27, 17:32   #47
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

152A16 Posts
Default

Quote:
Originally Posted by Dylan14 View Post
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.
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
kriesel is online now   Reply With Quote
Old 2018-06-27, 18:10   #48
SELROC
 

22×5×139 Posts
Default

Quote:
Originally Posted by Dylan14 View Post
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.

In nano if the line goes beyond the terminal window this is indicated with a $ and you can scroll the line
  Reply With Quote
Old 2018-07-19, 17:43   #49
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

10101001010102 Posts
Default res64

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).
kriesel is online now   Reply With Quote
Old 2018-08-15, 23:28   #50
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

2×32×7×43 Posts
Default Mersenne Neutral Exchange Format standard draft 5

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.
Attached Files
File Type: pdf Mersenne neutral exchange format draft 5.pdf (79.0 KB, 114 views)

Last fiddled with by kriesel on 2018-08-15 at 23:39
kriesel is online now   Reply With Quote
Reply

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

All times are UTC. The time now is 17:36.


Sun Aug 1 17:36:56 UTC 2021 up 9 days, 12:05, 0 users, load averages: 1.80, 1.71, 1.50

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.