mersenneforum.org  

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

Reply
 
Thread Tools
Old 2023-02-04, 00:15   #1
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

17×487 Posts
Default Eliminate local.txt. Bad idea?

I've long regretted the decision to have both a prime.txt and local.txt file to store prime95 settings. I often have no idea which .txt file is supposed to have a particular setting. The original idea was one could set up a new computer by copying a prime95 install from one computer to the new computer and delete the local.txt file. a) I doubt anyone uses that "feature". b) I doubt it works.

I could fix this in 30.10 by moving every local.txt option to prime.txt and deleting local.txt. From then on, all options are read from prime.txt.

Bad idea? Could this break any scripts users have? Thoughts?
Prime95 is offline   Reply With Quote
Old 2023-02-04, 00:27   #2
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013
https://pedan.tech/

24×199 Posts
Default

I think it's a fantastic idea. I never know where settings are supposed to go.

I often copy my mprime install from computer to computer and all I do is remove the ComputerID and ComputerGUID lines (as well as worktodo.txt and results.txt). I'll tweak the CoresPerTest and Memory lines if necessary.
Mark Rose is offline   Reply With Quote
Old 2023-02-04, 00:51   #3
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2·112·47 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Bad idea? Could this break any scripts users have? Thoughts?
Good idea. And this would break no scripts I have, nor any I know of.

Tech debt is a thing. So is refactoring.
chalsall is offline   Reply With Quote
Old 2023-02-04, 01:17   #4
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
San Diego, Calif.

32·7·163 Posts
Default

Thirded!
Batalov is offline   Reply With Quote
Old 2023-02-04, 02:14   #5
techn1ciaN
 
techn1ciaN's Avatar
 
Oct 2021
U. S. / New York, NY

2×3×52 Posts
Default

Sounds like a great idea. My only question is, will there be some kind of automatic handler for anyone upgrading an existing installation (is this what you mean by "moving every local.txt option to prime.txt and deleting local.txt"?), or will recovering any custom local.txt values be incumbent upon the user?
techn1ciaN is offline   Reply With Quote
Old 2023-02-04, 03:19   #6
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

17·487 Posts
Default

Quote:
Originally Posted by techn1ciaN View Post
Sounds like a great idea. My only question is, will there be some kind of automatic handler for anyone upgrading an existing installation (is this what you mean by "moving every local.txt option to prime.txt and deleting local.txt"?), or will recovering any custom local.txt values be incumbent upon the user?
Yes, handled automatically.
Prime95 is offline   Reply With Quote
Old 2023-02-04, 03:34   #7
axn
 
axn's Avatar
 
Jun 2003

23·683 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Could this break any scripts users have?
1172

But seriously, this one is long overdue
axn is offline   Reply With Quote
Old 2023-02-04, 06:14   #8
preda
 
preda's Avatar
 
"Mihai Preda"
Apr 2015

22·3·112 Posts
Default

No problem with removing local.txt

I would also like to mention:
- when mprime runs out of work (empties worktodo.txt), it sets UsePrimenet=0 and NoMoreWork=0 (which wore set to UsePrimenet=1 and NoMoreWork=1 initially). This looks like a bug.
- it would be great if prime.txt would never be written by mprime. The user writes prime.txt, mprime *only* reads it.

If for some reason some options in prime.txt need to be written by the software, thouse are the ones that should be extracted from prime.txt to a separate file, such that prime.txt becomes read-only.

Last fiddled with by preda on 2023-02-04 at 06:15
preda is offline   Reply With Quote
Old 2023-02-04, 06:27   #9
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013
https://pedan.tech/

24×199 Posts
Default

Quote:
Originally Posted by preda View Post
- when mprime runs out of work (empties worktodo.txt), it sets UsePrimenet=0 and NoMoreWork=0 (which wore set to UsePrimenet=1 and NoMoreWork=1 initially). This looks like a bug.
This has been the behaviour for many years. It's a little annoying, but I mostly keep a buffer of work personally, so I don't run into it often.
Mark Rose is offline   Reply With Quote
Old 2023-02-04, 06:37   #10
bur
 
bur's Avatar
 
Aug 2020
79*6581e-4;3*2539e-3

2·5·73 Posts
Default

For what it's worth, I'd also be happy with getting rid of local.txt

If you absolutely want to retain compatability, you could allow both files to be used interchangeably. That doesn't sound like a good idea though.
bur is offline   Reply With Quote
Old 2023-02-04, 10:35   #11
S485122
 
S485122's Avatar
 
"Jacob"
Sep 2006
Brussels, Belgium

2·977 Posts
Default

Quote:
Originally Posted by preda View Post
...
- it would be great if prime.txt would never be written by mprime. The user writes prime.txt, mprime *only* reads it.

If for some reason some options in prime.txt need to be written by the software, those are the ones that should be extracted from prime.txt to a separate file, such that prime.txt becomes read-only.
I suppose some you mean something like :
"The values that the software generates should be in another file than prime.txt which should only contain user settable settings."
Most users set at least some of their preferences and work settings through the menu, which implies the software must be able to change them in prime.txt.
S485122 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why prime.txt AND local.txt? SWWright Software 5 2020-09-26 10:59
If you could, what race would you eliminate, and why? The Carnivore Hobbies 16 2019-02-14 13:55
Windows 10 in Ubuntu, good idea, bad idea, or...? jasong jasong 8 2017-04-07 00:23
Does a large P-1 test eliminate need for ECM tests UberNumberGeek Factoring 53 2009-07-11 08:24
Using Factors to Eliminate Candidates Mivacca2 Math 8 2003-03-25 16:52

All times are UTC. The time now is 14:11.


Fri Jul 7 14:11:24 UTC 2023 up 323 days, 11:39, 0 users, load averages: 1.24, 1.31, 1.23

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔