file-open location preference not persistent
by Sven Schreiber
Hi,
just noticed (in a very recent snapshot on Windows 10) that in the
window to set gretl's CWD the lower option concerning the behavior of
the file open dialog window isn't kept active: That is, I click the
bottom radio button ("always start in CWD") and click OK, but when I
open the CWD dialog again, the other option ("remember last open dir")
is active again.
cheers,
sven
7 years, 11 months
Boolean expression evaluation timings
by Marcin Błażejowski
Hi,
simple script: tree functions which do nothing but if/boolean evaluate.
It looks like strings evaluation is faster than scalars and integers
evaluation. Isn't it surprising?
Regards,
Marcin
--
Marcin Błażejowski
GG: 203127
7 years, 11 months
imposed paths for shell commands
by Sven Schreiber
Hi,
I'm trying out something that involves launching external programs, and
I have (re-) discovered the "launch" command (only actively remembered
the "!" command for synchronous invocation).
But I noticed a surprising difference which I think could be a bug:
While gretl's current CWD setting is passed to the external program as
its active directory when using "!", another path/directory is used when
using "launch".
That other directory is not gretl's dotdir, either. My suspicion is that
it might be the last-opened directory (the one which is also remembered
by the datafile-open window, if the user chooses it that way).
I hope that explanation was clear enough. I don't see any reason why "!"
and "launch" should behave differently in that respect.
(Also, "launch" isn't syntax-colored.)
thanks,
sven
7 years, 11 months
how to modify bundles in an array?
by Sven Schreiber
Hi,
I'm trying to modify bundles that were previously put into an array (of
bundles):
<hansl>
bundles bs = array(1)
bundle singleb
# try to stuff into the array:
bs[1] = singleb # works
# and modify:
scalar bs[1].num = 3 # fails "not acceptable with arrays"
bs[1].num = 2 # fails "no formula in genr"
</hansl>
So is it simply the case that every bundle must be "finalized" before
putting into a bundles array and then becomes immutable by design, or is
there a bug?
Thanks,
sven
7 years, 11 months
extra output from gretlcli.exe
by Sven Schreiber
Hi,
I started gretlcli.exe (recent snapshot) on the Windows CLI and I see
some unusual output:
"reset_local_decpoint: returning '.'"
and "calling reset_local_decpoint()"
Not intended, I guess?
thanks,
sven
7 years, 11 months
translating gretl docs
by Allin Cottrell
I've been working lately on making the production of the PDF Command
(and function) Reference from the XML source files more robust. This
leads me to a couple of observations and a question.
First, translating the User's Guide is by now a massive task --
equivalent to translating a big book. But translating the two
reference XML files (gretl_commands_en.xml and
gretl_functions_en.xml) is relatively manageable, and doing so
basically gets you the PDF Reference "for free". There's a certain
amount of supplementary text in a few TeX files, namely cmdref.tex,
funcref.tex, operators.tex, comments.tex, optarg.tex and
reftables.tex (about 20 kbytes total); if these are translated too
then the whole Reference is internationalized.
I see that the front page of the Italian Reference has a note saying
that the translation is frozen as of gretl 1.7.1 but actually that's
not true: since the Italian XML files are up to date, so (basically)
is the Reference. So maybe we could remove that note?
Now for the question. The big problem with translation of the XML
files is ensuring that the translations stay up to date. I'm
wondering if xml2po might be helpful here. I think Alexander
Gedranovich raised this question a while back. I didn't look into it
at the time but now I've done so. Xml2po offers the facility of
stripping the translatable material out of an XML file and making a
pot file (essentially each paragraph becomes a "msgid"), and it also
gives a means of merging translations in a po file back into XML. So
we could use the usual "gettext" procedure, meaning that any updates
to the English versions would be immediately apparent to translators
-- and any newly added material would appear in the translated
versions in English (until it gets translated).
I've put a sample pot file (for the function reference) at
http://users.wfu.edu/cottrell/tmp/gretl_functions.pot . Comments
invited.
Allin
7 years, 11 months
Draft: CfP for 2017, please check (Ioannis, Jack, Ignacio, Oleh especially, and Allin of course)
by Sven Schreiber
Hi all,
based on Ignacio's existing document for the last conference I have put
together a first draft of the call for papers, attached. (I hope it goes
through the list as it's <200KB here.)
Please check the contents of the call in general, for example if the
described idea of the "coding sprint" is appropriate and practical, and
the dates given in general. This general check would be especially
important for the central players Ioannis and Allin.
Also there are some "fixme" places in the document with some of your
names; so Jack, Oleh, and Ignacio, please respond whether the respective
part of the document should be changed or if it is OK.
It would be nice if you could answer before the holidays.
thanks,
sven
7 years, 11 months