author | Claus Gittinger <cg@exept.de> |
Wed, 18 Dec 1996 14:02:49 +0100 | |
changeset 181 | 4f41c57d2c4f |
parent 180 | 6b0985611def |
child 182 | 0f0ce432de5e |
permissions | -rw-r--r-- |
4 | 1 |
"* |
2 |
* $Header$ |
|
3 |
* |
|
4 |
* sample private.rc - file |
|
5 |
* |
|
52 | 6 |
* a copy of this file can (should) reside in $home/.smalltalk/private.rc or |
7 |
* in the current directory - put all private preferences in here. |
|
41 | 8 |
* |
9 |
* |
|
25 | 10 |
* notice, you will find some things enclosed in |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
11 |
* ... claus ifTrue:[ |
25 | 12 |
* |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
13 |
* these are my personal preferences which will be |
25 | 14 |
* ignored in your environment, but are taken in mine. |
15 |
* That way, I dont have to maintain two different 'private.rc' files. |
|
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
16 |
* (you may want to have a look into it - some is of general interest) |
4 | 17 |
*" |
18 |
||
25 | 19 |
"/ |
167 | 20 |
"/ enable the justInTimeCompiler. |
21 |
"/ This is still somewhat experimental, therefore it is |
|
22 |
"/ turned on maunally here .... |
|
23 |
"/ ... it will be always on, once we have it running for half |
|
24 |
"/ a year or so ;-) |
|
25 |
"/ |
|
168 | 26 |
ObjectMemory justInTimeCompilation:true. |
181 | 27 |
ObjectMemory dynamicCodeLimit:64000. |
167 | 28 |
|
29 |
"/ |
|
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
30 |
"/ If local sources have preference over source code managment |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
31 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
32 |
"/Class tryLocalSourceFirst:true. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
33 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
34 |
"/ |
26 | 35 |
"/ I want the hostname to be prepended to a windows label |
36 |
"/ |
|
37 |
StandardSystemView includeHostNameInLabel:true. |
|
38 |
||
39 |
"/ |
|
25 | 40 |
"/ this turns off error/fatal messages from the VM |
41 |
"/ (it does not really make sense to turn them off) |
|
42 |
"/ |
|
43 |
"/ Smalltalk debugPrinting:false. |
|
44 |
||
45 |
"/ |
|
46 |
"/ set the package for fileIns done below |
|
47 |
"/ |
|
24 | 48 |
Project notNil ifTrue:[ |
49 |
Project setDefaultProject. |
|
25 | 50 |
Project current packageName:#'goody-fileIn'. |
24 | 51 |
]. |
52 |
! |
|
53 |
||
166 | 54 |
|whoAmI thisIsMySystem conf systemType| |
91 | 55 |
|
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
56 |
'reading keyboard.rc ...' infoPrintCR. |
41 | 57 |
Smalltalk fileIn:'keyboard.rc'. |
26 | 58 |
|
59 |
"/ |
|
60 |
"/ no matter what the 'display.rc' says: |
|
61 |
"/ I want my #iris style ... |
|
62 |
"/ |
|
77 | 63 |
View defaultStyle:#iris. |
64 |
"/ View defaultStyle:#motif. |
|
25 | 65 |
|
104 | 66 |
|
67 |
||
25 | 68 |
"/ add my private directories to the searchPath ... |
69 |
"/ This does not make sense in your environment. |
|
70 |
"/ However, I leave the code here to show how its done. |
|
71 |
"/ |
|
24 | 72 |
Smalltalk systemPath addFirst:'../..'. |
73 |
||
91 | 74 |
whoAmI := OperatingSystem getLoginName. |
152 | 75 |
thisIsMySystem := whoAmI = 'claus' or:[whoAmI = 'cg']. |
91 | 76 |
|
152 | 77 |
thisIsMySystem ifTrue:[ |
161 | 78 |
MenuView defaultFont:(MenuView defaultFont size:10). |
79 |
||
26 | 80 |
Smalltalk systemPath addFirst:'../../not_delivered'. |
81 |
Smalltalk systemPath addFirst:'../../private_classes'. |
|
82 |
Smalltalk systemPath addFirst:'../../fileIn/not_delivered'. |
|
25 | 83 |
Smalltalk systemPath addFirst:'../../libpro'. |
16 | 84 |
]. |
25 | 85 |
|
86 |
"/ since smalltalk keeps track of which directories exist |
|
87 |
"/ in the path, this cache has to be flushed whenever new directories |
|
88 |
"/ are added to the path: |
|
89 |
"/ |
|
24 | 90 |
Smalltalk flushPathCaches. |
16 | 91 |
|
25 | 92 |
"/ |
93 |
"/ color allocation strategy: |
|
94 |
"/ |
|
95 |
"/ the default is to allocate from the colormap as required. |
|
96 |
"/ As long as the number of distinct colors used is less than the number |
|
97 |
"/ of available colors (which is usually the case) this leads to better looking |
|
98 |
"/ images. |
|
99 |
"/ However, if many images are to be displayed simulatiously, images displayed |
|
100 |
"/ first may steal too many colors required in images displayed later. |
|
101 |
"/ In this case, it is better to preallocate some colors, and dither all images |
|
102 |
"/ using theese. Of course, while making the worst case better, this makes |
|
103 |
"/ the best case worse. You can decide ... |
|
104 |
"/ |
|
10 | 105 |
"/ Color getColors6x6x4. |
106 |
||
107 |
||
152 | 108 |
"/ The following enables some nice cursors; for example thumbsUp and thumbsDown |
25 | 109 |
"/ |
110 |
"/ claus: |
|
111 |
"/ I like those fancy cursors :-) |
|
112 |
"/ if you think this is too 'childish', remove the line below ... |
|
113 |
"/ |
|
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
114 |
"/ 'loading fancy cursors ...' infoPrintCR. |
118 | 115 |
Cursor initializeNewCursors. |
10 | 116 |
|
25 | 117 |
|
118 |
"/ claus: |
|
26 | 119 |
"/ The history manager automatically adds a history line to changed |
120 |
"/ methods and optionally to a classes history method. |
|
121 |
"/ |
|
152 | 122 |
thisIsMySystem ifTrue:[ |
26 | 123 |
HistoryManager notNil ifTrue:[ |
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
124 |
'activating HistoryManager ...' infoPrintCR. |
26 | 125 |
HistoryManager activate. |
126 |
] |
|
7 | 127 |
]. |
41 | 128 |
|
129 |
"/ claus: |
|
180 | 130 |
"/ I startup the rdoit server process; |
131 |
"/ (using rdoit to start ST/X views via window manager menus ...) |
|
132 |
"/ |
|
133 |
thisIsMySystem ifTrue:[ |
|
134 |
'starting RDoItServer ...' infoPrintCR. |
|
181 | 135 |
Smalltalk fileIn:'../../goodies/rdoit/NewLauncher.chg'. |
180 | 136 |
RDoItServer autoload. |
137 |
RDoItServer start. |
|
138 |
RDoItServer allowHost:'localhost'. |
|
139 |
]. |
|
140 |
||
141 |
"/ claus: |
|
41 | 142 |
"/ I dont want those warnings about stx features being non-portable ... |
143 |
"/ However, you should (at least when new to the system) see them. |
|
144 |
"/ Once you get bored about them, make the below unconditional. |
|
152 | 145 |
"/ (you can also turn them off in the Launchers settings menu ...) |
41 | 146 |
"/ |
26 | 147 |
Compiler allowUnderscoreInIdentifier:true. |
148 |
Compiler warnUnderscoreInIdentifier:false. |
|
141 | 149 |
Compiler warnSTXSpecials:false. |
10 | 150 |
|
25 | 151 |
|
152 |
"/ this is a temporary kludge: specify the flags to be used |
|
153 |
"/ when compiling via stc. Primitive compilation (from within the browser) |
|
154 |
"/ is still experimental. So you better not care (yet) |
|
152 | 155 |
"/ BTW: its only supported on ELF systems and Linux - anyway |
25 | 156 |
"/ (and not in the free demo release). |
157 |
"/ |
|
166 | 158 |
conf := Smalltalk configuration. |
159 |
(conf includesString:'gcc') ifTrue:[ |
|
160 |
Compiler ccPath:'gcc' |
|
161 |
] ifFalse:[ |
|
162 |
Compiler ccPath:'cc' |
|
163 |
]. |
|
164 |
||
25 | 165 |
Compiler stcCompilation:#default. |
166 | 166 |
Compiler stcCompilationOptions:'+optinline +inlineNew'. |
167 |
||
168 |
"/ special options req'd for some systems (should be done in the host file ...) |
|
152 | 169 |
|
166 | 170 |
systemType := OperatingSystem getOSType. |
171 |
||
181 | 172 |
Compiler stcCompilationIncludes:'-I../../include'. |
26 | 173 |
|
181 | 174 |
thisIsMySystem ifTrue:[ |
175 |
"/ |
|
176 |
"/ for myself: preset flags, so that I |
|
177 |
"/ can accept GLXWorkstation code |
|
152 | 178 |
"/ |
181 | 179 |
Display supportsGLDrawing ifTrue:[ |
180 |
systemType = 'irix' ifTrue:[ |
|
181 |
Display isOpenGL ifTrue:[ |
|
182 |
Compiler stcCompilationDefines:'-DOPENGL'. |
|
183 |
] ifFalse:[ |
|
184 |
Compiler stcCompilationDefines:'-DGLX'. |
|
185 |
] |
|
186 |
] ifFalse:[ |
|
187 |
Display isOpenGL ifTrue:[ |
|
188 |
Compiler stcCompilationIncludes:'-I../../include -I../../support/MESA/Mesa1.2.5/include'. |
|
189 |
Compiler stcCompilationDefines:'-DOPENGL -DMESA'. |
|
190 |
] ifFalse:[ |
|
191 |
Compiler stcCompilationIncludes:'-I../../include -I../../support/VGL/vogl/src'. |
|
192 |
Compiler stcCompilationDefines:'-DVGL'. |
|
193 |
]. |
|
26 | 194 |
|
181 | 195 |
"/ specify additional link libraries. |
196 |
"/ Disabled; thats the default anyway .... |
|
197 |
"/ |
|
198 |
"/ OperatingSystem getOSType = 'linux' ifTrue:[ |
|
199 |
"/ ObjectFileLoader searchedLibraries:#('/usr/lib/libc.a') |
|
200 |
"/ ] |
|
201 |
||
202 |
]. |
|
203 |
] |
|
25 | 204 |
]. |
7 | 205 |
|
166 | 206 |
Compiler ccCompilationOptions:'-O'. |
207 |
||
208 |
systemType = 'solaris' ifTrue:[ |
|
209 |
Compiler ccCompilationOptions:'-O -fPIC' |
|
210 |
]. |
|
211 |
||
25 | 212 |
"/ experimental: try to always keep some bytes in the pocket |
64 | 213 |
"/ this changes the memory policy, to start the background collector whenever |
25 | 214 |
"/ freespace drops below 250k or 500k have been allocated since the last GC. |
215 |
"/ AND to allocate more memory, if (after the collect) less than 1Mb is free. |
|
216 |
"/ Doing so makes the system behave better if lots of memory is required |
|
64 | 217 |
"/ for short periods of time, since it prepares itself for that situation |
25 | 218 |
"/ during idle time. (I often walk around in the fileBrowser, loading big |
219 |
"/ files like XWorkstation.st or SystemBrowser.st ....) |
|
220 |
"/ |
|
26 | 221 |
ObjectMemory freeSpaceGCAmount:1000000. |
222 |
ObjectMemory freeSpaceGCLimit:250000. |
|
223 |
ObjectMemory incrementalGCLimit:500000. |
|
224 |
ObjectMemory startBackgroundCollectorAt:5. |
|
225 |
ObjectMemory startBackgroundFinalizationAt:5. |
|
25 | 226 |
|
227 |
"/ experimental: configure the memory manager to quickly increase |
|
228 |
"/ its oldSpace, as long as it stays below 8Mb (i.e. do not enter |
|
229 |
"/ a blocking mark&sweep or compress, but go straight ahead increasing |
|
230 |
"/ the oldSpace). Above that, behave as usual, i.e. try a GC first, |
|
231 |
"/ then increase the oldSpace size if that did not help. |
|
232 |
"/ If you have a machine with lots of (real) memory, you may want to |
|
233 |
"/ increase the number. The value below should be ok for 16-32Mb machines. |
|
234 |
"/ |
|
26 | 235 |
ObjectMemory fastMoreOldSpaceLimit:8*1024*1024. |
236 |
ObjectMemory fastMoreOldSpaceAllocation:true. |
|
16 | 237 |
! |
238 |
||
25 | 239 |
"/ another experimental (and a secret for now, since I dont want |
240 |
"/ you to play with those ;-) |
|
241 |
"/ For now, this is experimental. Once the best numbers |
|
242 |
"/ have been found, I'll hardwire them and document it ... |
|
243 |
||
8 | 244 |
|a| |
245 |
ObjectMemory newSpaceSize > (500*1024) ifTrue:[ |
|
246 |
a := #(nil nil nil nil -16 -4 -2 -2 0 0 16 nil) copy. |
|
247 |
] ifFalse:[ |
|
17 | 248 |
"/ min max cpy /32 /16 /8 /4 /2 /4 /8 /16 /32 " |
25 | 249 |
"/ |
250 |
"/ slow tenure - keeps objects longer in newSpace, |
|
251 |
"/ producing more scavenge overhead, but releasing IGC somewhat |
|
252 |
"/ |
|
17 | 253 |
"/ a := #(nil nil nil -100 -8 -4 -1 1 2 4 8 16 nil) copy. |
254 |
"/ a := #(nil nil nil nil -16 -4 0 0 0 4 16 nil) copy. |
|
25 | 255 |
|
17 | 256 |
"fast tenure" |
25 | 257 |
"/ |
258 |
"/ fast tenure - moves objects earlier into oldSpace, |
|
259 |
"/ releasing newSpace collector; however, the oldSpace IGC |
|
260 |
"/ may have more work to do. |
|
261 |
"/ |
|
16 | 262 |
a := #(nil nil nil nil -20 -8 -3 -1 -1 1 16 nil) copy. |
8 | 263 |
]. |
264 |
ObjectMemory tenureParameters:a. |
|
25 | 265 |
|
266 |
||
267 |
"/ set the package back to some useful default for programming |
|
268 |
"/ this is the package token assigned (by default) to all new methods/classes |
|
269 |
"/ (so you can use a browser on package=#private to find all of your new |
|
270 |
"/ stuff easily. (the conditional on Project being nonNil is for stripped down |
|
271 |
"/ systems without a Project class) |
|
272 |
||
273 |
Project notNil ifTrue:[ |
|
274 |
Project setDefaultProject. |
|
275 |
Project current packageName:#'private'. |
|
276 |
]. |
|
8 | 277 |
! |
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
278 |
|
126 | 279 |
(Smalltalk commandLine includes:'-q') ifFalse:[ |
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
280 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
281 |
"/ this turns off/on information messages from classes |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
282 |
"/ (such as 'D8IMAGE: allocating colors ...' |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
283 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
284 |
"/ Object infoPrinting:false. |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
285 |
Object infoPrinting:true. |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
286 |
|
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
287 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
288 |
"/ this turns off/on information messages from the VM |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
289 |
"/ (such as 'MEM: chitty chatty ...' |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
290 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
291 |
"/ ObjectMemory infoPrinting:false. |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
292 |
ObjectMemory infoPrinting:true. |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
293 |
]. |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
294 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
295 |
Smalltalk addStartBlock:[ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
296 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
297 |
"/ start some views ... |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
298 |
"/ you can add all stuff you'd like to come up by default |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
299 |
"/ the first time. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
300 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
301 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
302 |
'starting main-menu ...' infoPrintCR. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
303 |
Launcher open |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
304 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
305 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
306 |
"/ start a SystemBrowser |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
307 |
"/ - I dont want one (using Launcher) |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
308 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
309 |
"/ SystemBrowser open. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
310 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
311 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
312 |
"/ start a FileBrowser |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
313 |
"/ - I dont want one (using Launcher) |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
314 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
315 |
"/ FileBrowser open. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
316 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
317 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
318 |
"/ start a Workspace |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
319 |
"/ - I dont want one (using Launcher) |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
320 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
321 |
"/ Workspace open. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
322 |
]. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
323 |
|
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
324 |
! |