![]() |
![]() |
#34 |
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
220528 Posts |
Your conversation with wc sounds very much like the bulk of that famous thread:
"Just to be pedantic, if it's a PROBABLE prime factor then all we know for certain is that we don't actually know the answer" = "If the line is not finished (e.g. the human who typed it died in the middle of the line and left it unfi...), then it is not a 'line', so I am not counting it. I am only counting fully factored lines", says wc. |
![]() |
![]() |
![]() |
#35 | |
"Mihai Preda"
Apr 2015
2×23×29 Posts |
![]() Quote:
In file A.txt we have: AAA BBB In file B.txt we have: CCC DDD Then one would naturally expect that their concatenation to be AAA BBB CCC DDD and not AAA BBBCCC DDD Also, it is nice to have a way to "append a line" to a text file in a simple way, meaning without having to process the file first. And one more thing: If you accept not-newline-terminated lines, then how do you know how many empty lines are there after the final newline in a file? (hah!) (appending an empty and not-line-terminated line does not, in fact, change the file) |
|
![]() |
![]() |
![]() |
#36 |
Undefined
"The unspeakable one"
Jun 2006
My evil lair
2·34·37 Posts |
![]()
Why would I care? I don't care how many blank lines a file has. I just like things to work as expected. If it has a few extra blank lines in places, well so what? It's not like it is some sort of literary work of art or something.
|
![]() |
![]() |
![]() |
#37 |
"Bill Staffen"
Jan 2013
Pittsburgh, PA, USA
19B16 Posts |
![]()
Well that's just imprecise, not caring about those lines. Sloppy work, Retina!
|
![]() |
![]() |
![]() |
#38 | |
Undefined
"The unspeakable one"
Jun 2006
My evil lair
2·34·37 Posts |
![]() Quote:
a) Have the program just do-the-right-thing and run the test, or b) Print an error and do nothing for a few days until you discover it isn't running (because of OCDing it to the extreme)? Never let perfection get in the way of actually doing things. |
|
![]() |
![]() |
![]() |
#39 | |
"Viliam FurÃk"
Jul 2018
Martin, Slovakia
3×109 Posts |
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#40 |
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
29×167 Posts |
![]()
Another way of thinking about it is the more tolerant of human error the program is, the more likely the program is to find the next probable prime Mersenne, rather than sit idle and frustrate the user, possibly to the point of choosing to run something else, or run it less and something else more.
The program is good and actively maintained. It doesn't seem to me it ought be necessary to choose between it leaving a gpu idle or kludging it with a batch wrapper. Uncompromising reliability and performance in the ftt is good. Uncompromising demands upon the user behavior not so much. (No record terminator after the last entry? NO SOUP FOR YOU!) Last fiddled with by kriesel on 2020-10-30 at 15:19 |
![]() |
![]() |
![]() |
#41 | |
"Mihai Preda"
Apr 2015
53616 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#42 |
Jun 2003
113528 Posts |
![]()
How difficult/complex will it be to rewrite the file handling logics to handle the "missing end-of-line at the end-of-file" condition?
Last fiddled with by preda on 2020-10-31 at 06:26 Reason: edit by mistake, fixed, sorry |
![]() |
![]() |
![]() |
#43 | |
"Mihai Preda"
Apr 2015
2×23×29 Posts |
![]() Quote:
Surely somebody will be unhappy about the way that would turn out if I were to do it. OTOH maybe it's a good sign that we spend so much time discussing the proper way to help the user type the newline that ends the line.. Nothing more important left to do I guess. Last fiddled with by preda on 2020-10-31 at 06:30 |
|
![]() |
![]() |
![]() |
#44 | ||
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest
29×167 Posts |
![]() Quote:
The newline termination requirement was applied also to gpuowl's config.txt, which is not normally subject to programs appending content, like more work entries to worktodo. Quote:
As I recall, no other GIMPS application requires the last record of a configuration file or worktodo file to end in a newline, refusing to run in the case of eof not being immediately preceded by newline. Checking now: Not CUDALucas v2.06beta's CUDALucas.ini or worktodo.txt; not CUDAPm1 v0.21's or V0.20's cudapm1.ini or worktodo.txt; not mfaktc v0.21's mfaktc.ini or worktodo.txt; not mfakto v0.15pre6's mfakto.ini or worktodo.txt; not mlucas v17.0's worktodo.ini; not prime95 v30.3b6's local.txt, prime.txt, or worktodo.txt. (I haven't specifically checked for the issue in CUDALucas or CUDAPm1 fft or threads files, or mlucas .cfg, but those are program generated. Presumably program input is compatible with program output. I've not encountered issues with eol/eof incompatibility, in creating dozens of installations of each.) Prime95 generally continues with the next work to do if it rejects a worker's worktodo line as invalid. Gpuowl does not. CUDALucas tries different fft lengths to continue making progress on a worktodo line despite a detected error. Gpuowl does not. These are valued and useful features. Their incorporation in gpuowl would be useful. One can work around their absence, and other stability issues, somewhat, such as by batch scripting, multiple instances, etc. at the costs of more user effort, longer latency, or occasional memory issues. Handling these two exceptions in gpuowl, worktodo or config line not terminated how Preda would prefer, and error occurred during performance of first worktodo line, would make gpuowl's continuing productive execution much more robust than it now is. Some of the code to adjust to add OS-appropriate record terminator already exists in the handling of a worktodo line completed. It is likely that most of the client management software have already dealt with the case of worktodo eof not immediately preceded by newline. Last fiddled with by kriesel on 2020-10-31 at 19:06 |
||
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Errors | kriesel | kriesel | 4 | 2019-05-21 20:51 |
Prime95 errors ( 29.4 v8) under Win 10 x64 | pepi37 | Software | 0 | 2018-11-29 08:17 |
ERRORS | Unregistered | Information & Answers | 2 | 2013-04-01 04:14 |
Prime 95 errors | Wychi | Hardware | 9 | 2004-10-09 16:01 |
heat and errors | crash893 | Hardware | 37 | 2002-11-12 16:33 |