Debian Codegraph @

TODO

raw
1 $Id: TODO 1576 2018-01-28 22:33:17Z dezperado $
2
3 This file is a melange of ideas aimed towards further development.
4 If you are interested into Fim internals, philosophy, or get some
5 inspiration, you are welcome to give a look here.
6 You can propose ideas to the fim-devel mailing list:
7 [email protected]
8
9 Warning : This file is outdated; actual development notes are taken elsewhere.
10
11 -------------------------------------------------------------------------------
12 Misc Current development directions
13
14
15 20141130 disabling convert or bmp can break test8 -- shall fix this, perhaps by ignoring the *.svg file there.
16 20141130 shall support a dual configure style: for each $LIBRARY, $FIM_LIBRARY_LIBS/$FIM_LIBRARY_CXXFLAGS and LIBS/CXXFLAGS.
17 20141130 rename configure options w.r.t. program options; e.g. --raw-bits-rendering to -o bit1/ -o bit24
18 20141130 configure output shall fit in one screen
19 20141129 the configure is not well made w.r.t. exif, jasper, ...
20 20141129 setGlobalVariable -> setGV
21 20141129 setGlobalVariable("i:",FIM_VID_WANT_AUTOCENTER,1);
22 20141123 clean up Image::getInfo
23 20141122 document/expand the FIM_WANT_EXPERIMENTAL_BASENAME functionality.
24 20140830 need a precise control of scaling rules and viewports cache, as well to extend the viewport cache to scaled images
25 20131107 fix --disable-scripting case !
26 20131107 this is spurious: fim::string execute(const std::vector<fim::string> &args)
27 20131107 getIntVariable(varname) -> getIntVariable(varname, domain)
28 20131010 text/ascii/bits ascii renderer as funny fallback renderers
29 20131010 shall configure default tmpdir to /dev/shmem/something
30 20131009 may interface to http://www.feep.net/libtar/
31 20130902 add a simple menu e.g.: using Motif (http://www.opengroup.org/desktop/motif.html), or buttons; e.g.: using X: http://www.x.org/releases/X11R7.7/doc/libX11/libX11/libX11.html#XEvent
32 20130829 interface to a library for gestures, someday.
33 20130824 need a "verbose pressed keys" mode, to help when guessing key bindings.
34 20130725 shall add autodetection of file format to "fim -"
35 20130702 "nextindir" function
36 20130702 http://dvdhrm.wordpress.com/2012/12/10/kmscon-introduction/
37 20130620 need a minimal ppm file for testing
38 20130523 fix the bug when loading say, a a/1.fake and getting the files list shortened by two instead of one.
39 20130505 glob() on non existent files
40 20130412 may use a library like http://www.littlecms.com/
41 20120811 need proper jpeg error handling
42 20120805 feeding a .png named PS file can lead to segfault. why ?
43 20120804 should create a general 'filter' autocmd trigger
44 20120804 negate and desaturate should be either applied instantly or accumulated in queue as transformations
45 20120718 " - multiple internal windows with indipendent images displayed at once" is discontinued!
46 20120705 some day would be nice to use dnotify
47 20120407 to clone a whole fim instance in a new process
48 20120130 to open svg files "natively"
49 20120129 for scalings that are multiples of an integer, may write a specific code
50 20120108 use zzuf; e.g.: for ((seed=0;seed<4;++seed));do zzuf -I jpg -s $seed src/fim media/ -c quit ; done
51 20111202 seem like an empty eps file crashes fim
52 20111122 fim inverts the colours of eps files
53 20111112 font resources:
54 psf tools: http://www.seasip.info/Unix/PSF
55 sigma consolefont: http://homepage.ntlworld.com/zarniwhoop/consolefonts/sigma.html
56 an old kbd HOWTO http://www.win.tue.nl/~aeb/linux/kbd/font-formats-1.html
57 psf format specs: http://tph16.tuwien.ac.at/cgi-bin/dwww/usr/share/doc/console-tools/file-formats/psf
58 an ancient article about linux 2.4 font handling: http://linuxgazette.net/issue91/loozzr.html
59 a bibliography (loosely related to psf): http://fontforge.sourceforge.net/bibliography.html
60 20111111 may use libgunzip / gzip decoding library ?
61 20111107 what about uploading nightly versions to savannah ? shall upload fim to savannah !
62 20111025 seems like putting an invalid entry in the fonts list breaks list scanning
63 20111016 in the cookbook: how to 'catch' images in a directory full of oddly named files ?
64 20111008 decouple strings location from executable (e.g.: allow for a memory-mapped help/strings file)
65 20111005 imlib2 shall be suggested among devices on device fail. on hlst3, 'w' rendering bug. screen-patch should be optional at runtime when selecting the fbdev device
66 20111005 enable verbose keys specific to a device
67 20111003 http://tronche.com/gui/x/xlib/input/keyboard-encoding.html#KeySym
68 20110930 hand-based panning in fim; see feh
69 20110930 fim+sdl with an extra monitor aside fails. but mplayer seems to work, in this case. why ?
70 20110929 shall give a recipe and render possible to view a 100%-scaled image with zero scaling.
71 20110927 fix the bug opening the gif icon in media/ through graphicsmagick; manifests on hlst3
72 20110926 every bit of fim functioning shall be documented
73 20110926 fim manual sections in hardcoded strings shall be systematically coherent
74 20110926 shall be able to open movie files and displaying them (not cacheably), frame by frame
75 20110926 shall handle timeout handling when reading from a pipe
76 20110922 plugins shall be able to return variables
77 20110921 need mipmap scaled versions of images; plugins as the opencv one may operate on a selected mipmap, and then incrementally go up
78 20110913 shall use AC_ARG_VAR in configure.ac, so ./configure --help displays the 'precious' variables
79 20110909 tty control stuff (e.g.:saved_attributes_) shall be compile time optional
80 20110907 vedi liburiparser
81 20110904 buffering stdin/whatever shall be tmpname/fd backed
82 20110904 shall introduce more verbosity levels
83 20110904 see http://barre.nom.fr/medical/samples/ for sample DICOM files
84 20110902 'cd' should (may?) have vim's semantics
85 20110902 every command should be profilable: how ?
86 20110902 need fim-recipes (1) to collect misc wisdom
87 20110901 should provide an easy and benchmarkable method (variable based) to load a big list of files (thousands) with maximum speed (that is, without checking the signatures)
88 20110831 insert macros here and there for random or controlled error injection
89 20110831 whenever possible, error strings shall be printed out escaped; if not possible, this should be reported.
90 20110831 program return codes should reflect failure reason (e.g.: generic unspecified, input, internal, device, memory exhaustion, etc)
91 20110830 should provide some statistics/microbenchmarks; e.g.: pixels/s in resize, or bytes/s in disk I/O, etc.
92 20110830 write an 'interruptible' interface for heavier functions
93 20110830 very big files should be allowed to be read with no big copy
94 20110830 smaller files should be allowed to be read with copy (so, a single from-disk copy)
95 20110829 I am not sure whether --cd-and-readdir works; shall write an accurate test for this
96 20110824 need statistics on memory usage, from within fim.
97 20110824 need help [ "grep" | "find" ]
98 20110823 need to interface to zip.h and libzip -- and define a 'buffered', or 'virtual' files abstraction
99 20110917 should build a separate fim-main program, in order to generate a valid man help when the user manual will not be online (e.g.: in a minimalistically configured fim, with all inner docs cut out)
100 20110820 should have a way to disable terminal control flow (thus allowing C-s, C-q)
101 20110817 need macros to check for allowed width/height/bpp/... values
102 20110816 fim.h should be an #include-only container !
103 20110816 repeat should become a standard argument of commands
104 20110801 is there a way to make fim load . if no file is specified ?
105 20110801 a pensarci bene, bottoni in sdl mode non sono poi cosi' impossibili
106 20110724 program 'fimtutor' as 'fim --tutorial'
107 20110724 Ctrl-C shall prompt for quitting (or optionally, quit), interrupting any interruptible task
108 20110724 allow plugins which can only load metainfo (user variables) from under-loading files (e.g.: plugins using specialized libraries)
109 20110713 semi-colons terminating commands can be misleading
110 20110713 parse errors should be verbose
111 20110713 dez@nino:~ $ fim -c 'variables;stdout _last_system_output;quit'
112 20110711 autocompletion of varname = <unescaped variable value> would be both cool and useful
113 20110711 shall give the user chance to specify the position of an autocommand (e.g.: -1, +1, etc) within the current autocommands list
114 20110711 shall give the user chance to push dirs contents sorted
115 20110709 need to write to fim-users mentioning the ChangeLog and the solved bugs
116 20110709 grep .. | sed .. | fim_h_autocmds.h
117 20110709 grep .. | sed .. | fim_h_error_codes.h
118 20110709 grep .. | sed .. | fim_h_variables.h
119 20110711 may use ESC as a readline-exiting key
120 20110702 bind '\\' 'scale "100%"'; # is not accepted; this is bad
121 20110701 shall establish a policy in using #error
122 20110701 an easy way for window resize on 'next', in sdl mode
123 20110629 use CHAR_BIT in src/FbiStuffBit1.cpp
124 20110624 vedi se e' possibile 'goto last' e se PostNext e' ancora li da qualche parte
125 20110623 2. does not work
126 20110623 one may add :{+number}
127 20110623 missing :+//
128 20110622 test7 was modified to work after some horrible page/cache hacks. consider rewriting the test
129 20110622 the cache/goto code now is a complete mess (page-wise next interacts with cache)
130 20110622 shall fix the FIM_HORRIBLE_CACHE_INVALIDATING_HACK
131 20110620 the lock/unlock usage style in the SDL case may not be correct in many situations, leading to system lock errors
132 20110620 sdl is still flawed without an interactive shell underneath; libreadline used in non-callback mode uses the terminal, and this is bad (verify this by running from within nautilus scripts)
133 20110620 need a user friendly, self-uninstalling warning message on empty files list, on startup
134 20110620 tab based files autocompletion has problems (may show only partial results)
135 20110620 init feature-check routine with some regexp/regsubst functionality testing
136 20110621 shall expose a regexp substition command
137 20110619 need an option for non-name-based, but loader-based directory scanning
138
139 -------------------------------------------------------------------------------
140 Documentation features/fixes:
141
142 20110129 incongruences in FIM.TXT: the system command is declared to be non active. this is wrong.
143 20090512 TODO : implement a regexp-based search, to give the user hints. (20090512) (like vim's helpgrep, helpfind)
144 20090418 fimtutor
145
146 -------------------------------------------------------------------------------
147 Major language clarity features/fixes:
148
149 20110620 many commands shall be documented conditionally
150 20110517 may consider distinguishing "options" from "variables", as vim does
151 20110507 need a special mention for special variables (and their namespaces), in the documentation
152 20070417 It has come the time to decide the future developments of Fim.
153 A lot of doubts arose. Here they are:
154 - integration of the command line completion with the lexer/parser, to gain consistency
155 - decisions about the nature of the language:
156 - should the variables be accessed like Bash,Perl, or C?
157 - should strings exist?
158 - should arrays exist ?
159 - should types exist ?
160 - should boolean options exist (like in Vim's paste/nopaste) ?
161 - should multi (quad/..) options exist (like in Mutt) ?
162 - could it be nice to attach options set to an image/browser (e.g.:
163 autowidth in only a window in a multiwindow scenario )?
164 - integration with external libraries/scripts/etc.. ?
165
166 These issues need reflection and study of the practical and theoretical
167 advantages/possibilities/limitations of the alternatives.
168 Meanwhile, the current development effort will be focused on enhancing
169 the existing code, possibly not adding features but enhancing the code
170 structure and converting the odd Fbi code in elegant, or possibly more
171 optimized, (especially the hacked, critical parts concerning mirroring
172 and flipping! ) Fim code.
173 20070903 these features are currently going to be worked in the near future:
174 - arbitrary long key sequence bindings (mutt-like)
175 - shortcuts algebra for commands
176 - parameter passing to commands
177 - variables scoped inside viewport (v:), window (w:), image (i: or l:), global (g:), script (s:)
178 - (to study) lookup tables to string to integer token conversion of variable names
179 (to gain speedup and increase variables impact)
180 - (to study) active variables - variables triggering actions
181 - vim like 'set', 'let', 'unlet' commands..
182
183 -------------------------------------------------------------------------------
184 Minor language clarity features/fixes:
185
186 20110615 scale_increment & co -> in the "default aliases" section
187 20110615 set_commandline_mode -> cmdline on ; set_interactive_mode -> cmdline off ; clear -> console [clear|info]
188 20110615 color [negate|gray]
189 20110615 redisplay = display 'force' ; reload = load 'force'
190 20110615 info [size|width|...]
191 20110613 need a single variable for flip,mirror, and eventually rotation (e.g.:fmr90)
192 20110613 shall reintroduce many composite commands tokens (e.g.: "pan 'up'")
193 20110612 scrolldown,scrollforward -> [pan|scroll] forward|read
194 20110612 dump_key_codes -> dump key_codes|variables|commands|aliases
195 20110612 clear -> console clear
196 20110612 shall rename from _varname to v:varname, whenever this has sense.
197 20110610 shall unify the scaling-control variables
198 20110504 aa driver swaps pageup/pagedown ?
199 20071127 histall, histdell
200 20071006 implement mechanisms or policies for namespace inheritage on windows split
201
202 -------------------------------------------------------------------------------
203 Major and tricky (time consuming) features:
204
205 20111003 need a function checking if all sym_keys in some device are populated.
206 20110604 may consider usage of ffmpeg's libswscale for image scaling
207 20110615 collate/permute args in aliases (for ensuring primitive recursive computability, with some other features) ?
208 20110530 in some contexts, using libsvga (see http://www.svgalib.org/jay/beginners_guide/beginners_guide.html) may be interesting
209 20110516 shall foresee a mechanism for `stacked decoding'of `container' files (e.g.: gz,tar,tar.gz,bz,...)
210 20110516 shall foresee support for dynamically lodaded modules, for a number of operations (e.g.: file decoding/loading using custom external programs or libraries); see also http://tldp.org/HOWTO/Program-Library-HOWTO/dl-libraries.html
211 20110506 shall see libicu http://userguide.icu-project.org/, for internationalization/unicode
212 20110127 consider making the program ready for GNU gettext: http://www.gnu.org/software/hello/manual/gettext/index.html#Top
213 20110117 could develop a "stack of windows" idea, for zooming or such stuff.
214 20110108 use static_cast, for it is not ambiguous with conversions
215 20090512 argument to aliases
216 20080127 think about a multi-monitor strategy for a single instance of Fim: note that currently it is possible to specify a framebuffer device (therefore a monitor) via -d (--device)
217
218 -------------------------------------------------------------------------------
219 Minor but tricky (time consuming) features/issues:
220
221 20110618 cd dir ; push /regexp/
222 20110617 may honour command line options parsing features of aalib
223 20110521 autocompletion shall be escaped (for opening filenames containing quoting chars)
224 20110612 using up and down keys in / mode seems to recall general history, not search history (even in old fim revisions)!
225 20110615 '3g'-like interactive command ? right now, it will repeat 3 times 'g', but we may internally switch the while to a special argument
226 20110530 need some "emergency" command and/or mechanism for freeing/reclaiming memory (e.g.:caches, buffers)
227 20110507 the generated man output shall print out examples which are also a correctness test
228 20110202 DICOM integration ? see libmdc2-dev / man medcon
229 20110503 it would be cool to allow bindings valid in consolemode
230 20080430 find a way to catch the console signal C-s in fim in a way to make C-s bindable
231 20080313 make each cpp file include exactly the header files used
232 20080216 add textureview mode
233 20091214 consider using libmagic
234 20090810 :|ocr - or :<scan -
235 20090218 implement a printf() like interface for customizing the status bar information (format specifiers)
236 20090401 should use aa_getevent
237 20081230 need of a square angle rotation support, especially for reading text documents
238 20081230 multipage caching and prefetching support still missing
239 20080502 reintroduce X custom font support
240 20071127 fim -q --quiet, vs warning on first run ?
241 20071127 proposal of a 'cropped view' functionality to ease sequent joint pages reading
242 20080430 add support for probing/scanning in byte ranges in file systems/files for known image types
243 20070812 study the benefits of integration with libraries like:
244 DirectFB : for a simpler driver and display mechanism
245 SDL : to use X ( 20081018 : enable it at configure time with ./configure --enable-sdl )
246 MXK : for fancy input devices and capabilities
247 BOOST
248 integrate with external libraries for image analysis (like ANIMAL)
249 20070812 integrate the freshmeat-submit script (now seems like the freshmeat api is broken)
250
251 -------------------------------------------------------------------------------
252 Minor and easy (not time consuming) feature:
253
254 20110620 need an option for displaying the filename as a relative path
255 20110601 shall use fim_byte_t instead of unsigned char's
256 20110523 shall use autocommands for printing out status messages on loading,prefetching,etc
257 20110615 shall prepare thorough test cases for scale and page goto subcases
258 20110528 may introduce a push/pop mechanism for the status bar
259 20080430 use tmpfile() instead FIM_TMP_FILENAME
260 20080414 to use mkstemp() in src/FbiStuff.cpp
261 20080414 introduce fim_fatal(), fim_warn(), fim_fail(), ...
262 20080414 use rand48, and more options on random behaviour
263 20091017 actually, postscript header can be optional for postscript rendering. shall we introduce forced ps rendering?
264 20090820 should offer EXIF data to fim displaying
265 20091004 should deny execution of sick things as 'alias "n" "n"'
266 20091004 scroll amount should be a string. e.g.: "20%","20",".2"
267 20091004 in book viewing mode (and a single loaded file), typing :N should jump to the N'th inner page : DOCUMENT THIS FEATURE
268 20091004 PostLoad -> PostFileRead
269 20090513 _seek_magic : if set, this pattern will be searched before going to the next image or seek_next {pattern} ?, associando ad Image l'offset .. (a' la multipage)
270 20090318 minicheck to detect wrong permissions on fb file ?!
271 20081228 marked pictures should have at least some asterisk and the user should be able to unmark them.
272 20080903 introduce a variable for handling centering style : sticky, proportional, smart, ... (see Viewport)
273
274 -------------------------------------------------------------------------------
275 Test & correctness oriented features:
276
277 20110620 use cpp instead of grep when autogenerating doc files
278 20110612 the parser should be strictly checked for leaks
279 20110612 need a runtime method for diverting stdout ? may ease debugging.
280 20110602 need a test for the goodness of the 'random' variable numbers.
281 20110516 invoking fim in sdl mode with very low resolutions/window sizes is crashy. this is bad.
282 20110515 shall preprocessor-conditionally catch std::exception's and cout'ing this info or activate some debug channel.
283 20110515 shall use clear() resize(0) instead of clear() alone (which does not resize arrays)
284 20110515 shall check against end() after each erase() operation on vectors
285 20110507 need a macro to avoid X == "" comparisons
286 20110129 all of the scripts/rc scripts should be tested for compliance
287 20110108 use google's cpplint for a cleaner code: http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py
288 20110108 apply the 'explicit' keywords to constructors
289 20101007 the use find_key_for_bound_cmd() should be avoided in status line update
290 20091220 consider distributing a font file or simply to embed a freely licensed one in the sources, with an eye on portability
291 20091116 write some miniprogram for debugging keyboard input.
292 20091004 pdf picture viewing is memory greedy - be it a leak ?
293 20090820 should add a quick sanity check flag ( e.g.: --sanity-check )
294 20090711 should develop some quick benchmark to evaluate some drawing operations (e.g.: blanking, color fill, etc)
295 20090603 fix Adobe CS3 created jpg files opening
296 20090530 crop = gTrue; // fix this
297 20090419 serious exception handling for out of memory conditions for push_back's and stuff
298 20090412 fbi bugs: http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=fbi
299 20090404 could use dejagnu for interactive (keyboard interaction based) testing
300 http://www.kegel.com/xgcc3/ng1.txt, although first tests with expect (http://expect.nist.gov/) showed it
301 doesn't handle well input exchange with fim
302 20090318 static checkers ?
303 stllint : aszt.inf.elte.hu/~gsd/s/cikkek/concepts/2006/GregorSchuppSPE05.pdf
304 cppcheck : http://sourceforge.net/projects/cppcheck/
305 using astyle for code readability ?
306 could use flawfinder
307 20090305 moritz suggests fimgs with :
308 src/fim -c 'autoheight=0;autowidth=0;v:auto_scale_v=0;'\
309 'autocmd "PostRedisplay" "" "g:oscale=scale;";'\
310 'autocmd "PostReload" "" "scale g:oscale.\"%\";";' *pages*
311 20090223 http://www.cubewano.org/oink <- use this automated checker, as well as other tools, possibily at least for format string vulnerabilities
312 20090224 to test better, develop some simple string functions and f(){}, a=f(x,y) , f , f x y , in vim style if possible, regexp_search
313 20090212 fix problems deriving from missing binaries and stuff
314 20090110 write a test case with memory constraints (in a way to stress say, failing mallocs)
315 20090108 write a test for corrupt image resilience (testing skip functionalities)
316 20081229 write a malloc and calloc wrapper, for the future
317 20081221 get rid of designated initializers (-pedantic) for ISO-C++
318 20080509 very long strings in input may cause problems :)
319 20070812 examine fbi's weak points like http://freshmeat.net/articles/view/2203/ and fix them in Fim, if present.
320
321 -------------------------------------------------------------------------------
322 Minor but not easy (time consuming) features:
323
324 20110516 shall enable building with SDL only, without using Unix syscalls.
325 20081227 http://www-masu.ist.osaka-u.ac.jp/~kakugawa/TeX-Guy/ for dvi support
326 20080908 pdflib would be a nice try to view pdf files from within fim, but multiple anonymous images should be supported
327
328 -------------------------------------------------------------------------------
329 Optimization related ideas:
330
331 20090213 rewrite the core in a way to avoid convert_line: there is a potentially big performance gain
332 20080826 refine and optimize the rotation mechanism into a smarter, smoother, rendering based one
333 20090108 write some multi-mode optimizing blitting code generating m4 macro
334
335 -------------------------------------------------------------------------------
336 Documentation related ideas:
337
338 20071230 UNIX domain sockets communication and multithreaded Fim
339 20071230 A decent Features section in the web site, from the top.
340 20071127 in-depth study of Vim documentation to uniform languages as much as possible
341 20071127 prepare a cookbook
342 20071127 inspiration : # vim +':help eval'
343
344
345 -------------------------------------------------------------------------------
346 Language related ideas:
347
348 20080502 find a syntactical solution for ;; handling (extra semicolons) in the parser
349 20080223 fine grain the grammar using whitespaces too
350 20080216 add a third optional argument to bind : a description
351 20071127 possible namespaces :
352 w:... window variables
353 g:... global variables
354 l:... local variables
355 s:... script variables
356 t:... tab variables
357 v:... vim variables
358 20071127 functions, return status, stdout, stderr ?
359 20071025 introduce a namespace : 'e:', to get environment variables!
360 20070921 argument passing to aliases, bash like ?! or vim-like ?
361 20070920 as much as possible of Vim's language intuitive syntax
362
363 -------------------------------------------------------------------------------
364 Debug related ideas:
365
366 20080414 follow -Weffc++ g++ flag guidelines, and -Werror
367 20080414 instead of malloc() to use calloc() and MALLOC_PERTURB, M_PERTURB on mallopt()
368 20080414 use mtrace() sometimes, MALLOC_TRACE=mout
369 20080414 use the dmalloc library (DMALLOC_OPTIONS), ElectricFence,
370 20080414 use valgrind
371 20080414 use mudflap library
372 20080414 compile with -D_GLIBCXX_DEBUG for having a bug-aware C++ standard library
373 20080414 experiment with libsegfault, <execinfo.h>
374 20080414 use lint from time to time
375 20080414 to add scripts to check for memory leaks and related bugs and build problems,
376 in a way contributors could run cron scripts with svn export / build capabilities
377
378 -------------------------------------------------------------------------------
379 Debian oriented stuff:
380
381 20090226 debianize:
382 dpkg-buildpackage -rfakeroot -k0x0xE0E669C8EF1258B8
383 fakeroot debian/rules binary
384 http://www.debian.org/doc/debian-policy/
385 http://www.debian.org/doc/maint-guide/ch-build.en.html
386 http://pbuilder.alioth.debian.org/#IRCchannel
387 http://www.ibm.com/developerworks/linux/library/l-debpkg.html
388 http://www.debian-administration.org/articles/488
389 http://www.debian-administration.org/articles/337
390 debuild -us -uc
391 http://people.debian.org/~codehelp/#sponsor
392 http://dl.bytesex.org/releases/fbida/ida_0.21.dsc
393 20090223 dput, dupload, svn-autoreleasedeb, devscripts, debsecan
394
395
396 -------------------------------------------------------------------------------
397 Optimization:
398
399 20070418 Got ~400% speedup on image display thanks to trivial changes in
400 the drawing code : memset and memcpy instead of assignments, and a less
401 trivial change by swapping RGB channels on loading time instead that on
402 drawing time. The analysis was made with the gprof profiler, nicely.
403
404 Maybe one day me or some contributor will read
405 http://www.cvl.isy.liu.se/ScOut/Publications/PaperInfo/sf05.html
406 or
407 Example 4.14 of the Intel Architecture SW Manual Optimization explains how to
408 and find some useful idea.
409 use PSHUFLW,PSHUFW,PSHUFD to reverse contiguous words in registers.
410
411 -------------------------------------------------------------------------------
412
413 This file is often outdated : Fim is far better than it seems here :)
414
415 Please read the FIM.TXT file and the fimrc template to discover nice Fim features.
416
417 OPEN BUGS:
418
419 20080323 65535 byte limit for a script size (stored in a fim::string) causes problems
420 ( see scripts/tests/maxlenscript.fim for this )
421 20070210 fix properly the file parser and max script filelength limit
422 20070129 control 4 crashes the prog with code 42 ... why ? :)
423
424 MISSING SMALL FIXES:
425 20070303 fix rar and zip dependencies in Makefiles and such for fimgs.sh
426 20070303 see if while-nesting is a real danger combined with interruption handling
427 20070303 update the while construct documentation and fix the while command execution bugs
428 20070303 add an interface for setting exitBinding (now Enter!)
429 20070210 add an interface to modify key bindings and keycode bindings.
430 20070401 variables : $VARNAME or $(VARNAME) or VARNAME ?
431
432 SCIENCE FICTION WISHED ADD-ONS:
433 20070307 someday: to integrate with a speech recognizer for command issuing
434 20070323 image understanding language - based pattern selection
435 20070401 ?= /semanticexp/ operator
436
437 ADD:
438 20070401 find's -exec '{}' ';' -like predicate syntax
439 20070125 add pipe to other commands and exec and system (screenshot with fbgrab, for example)
440 20070128 add support for command renaming with checks...
441 20070130 proper signal handing for while cycle interruption..
442 20070201 cwd,ls,pwd,stat,file...
443
444 MISC IDEAS :
445 20070303
446 load cfg, save cfg
447 flip=yes|no
448 scale=i|i:i|:i|i:|
449 fit =width|height|none|image|min|max
450 center=t|b|l|r|tl|tr|bl|br|center
451 orientation=90|... [cw|ccw] | flip
452 mirror=yes|no
453 persistent_options= word*|'*'
454 transient_options = word*
455 logfile=...
456 debugfile=..
457 cwd=word
458 negative=..
459 interpolator=..
460 options_style=stacked|trasient|permanent_save
461 function :
462 [n]%[r|l]
463 +|-n[%]
464 20070401 better variable handling : boolean variables, conversion, 'no' prefixing,
465 completion fitting the language rules..
466
467 DATES:
468 20061223 inception
469 20070202 stress testing (1000+d-) gave : CommandConsole.cpp:577: "pipe error"
470 20070204 make stricter the policy of recording (only aliases and/or lines.complete the time behaviour
471 IDEAS
472 20070210 eliminate the fresh variable from the config?
473 20070216 eliminate image tearing by studying the framebuffer device
474 repeat_last N ?!
475 TIPS
476 20070302 use __FUNCTION__ : is not ANSI, but GCC
477