2020-10-26 GnuCash IRC logs

00:12:09 *** angel has joined #gnucash
00:59:26 *** angel has quit IRC
01:08:58 *** CDB-Man_ has quit IRC
01:09:39 *** CDB-Man has joined #gnucash
01:09:39 *** ChanServ sets mode: +v CDB-Man
01:43:07 *** Hamaryns has joined #gnucash
01:43:08 *** ChanServ sets mode: +v Hamaryns
01:51:10 *** giuseppef has quit IRC
01:51:41 *** giuseppef has joined #gnucash
01:51:42 *** ChanServ sets mode: +v giuseppef
01:56:14 *** kcexn has left #gnucash
02:08:37 *** Hamaryns has quit IRC
02:13:46 *** fell has quit IRC
02:15:05 *** fell has joined #gnucash
02:15:05 *** ChanServ sets mode: +o fell
02:40:10 *** sbluhm has joined #gnucash
02:40:10 *** ChanServ sets mode: +v sbluhm
02:55:10 *** Mechtilde has joined #gnucash
02:59:41 *** Mechtilde has quit IRC
03:08:18 *** JayC has joined #gnucash
03:08:18 *** ChanServ sets mode: +v JayC
03:41:00 *** giuseppef has quit IRC
03:41:02 *** giuseppef has joined #gnucash
03:41:02 *** ChanServ sets mode: +v giuseppef
03:49:00 *** bertbob has quit IRC
03:51:29 *** bertbob has joined #gnucash
03:51:30 *** ChanServ sets mode: +v bertbob
03:54:33 *** hussam has quit IRC
04:03:48 *** vuamw has joined #gnucash
04:04:48 *** bertbob has quit IRC
04:06:17 *** bertbob has joined #gnucash
04:06:18 *** ChanServ sets mode: +v bertbob
04:13:29 *** bertbob has quit IRC
04:18:15 *** User_ has joined #gnucash
04:22:52 *** jervin has joined #gnucash
04:23:23 *** jervin has quit IRC
04:25:51 *** bertbob has joined #gnucash
04:25:52 *** ChanServ sets mode: +v bertbob
04:30:46 *** bertbob has quit IRC
04:32:55 *** bertbob has joined #gnucash
04:32:55 *** ChanServ sets mode: +v bertbob
05:07:23 *** Aussie_matt has quit IRC
05:40:22 *** User_ has quit IRC
05:51:29 *** hussam has joined #gnucash
05:51:29 *** ChanServ sets mode: +v hussam
05:54:43 *** giuseppef has quit IRC
05:55:31 *** giuseppef has joined #gnucash
05:55:31 *** ChanServ sets mode: +v giuseppef
06:07:20 *** Mechtilde has joined #gnucash
06:18:08 *** Aussie_matt has joined #gnucash
06:37:06 *** Hamaryns has joined #gnucash
06:37:06 *** ChanServ sets mode: +v Hamaryns
07:04:21 *** Herbert has joined #gnucash
07:20:23 *** jw4 has quit IRC
07:20:46 *** jw4 has joined #gnucash
07:21:45 *** ramontjunior has joined #gnucash
07:22:42 *** Hamaryns has quit IRC
07:58:04 *** halipaul has joined #gnucash
08:00:25 *** hussam has quit IRC
08:21:46 *** chris has joined #gnucash
08:21:47 *** ChanServ sets mode: +v chris
08:21:50 *** gncbot sets mode: +o chris
08:53:58 *** Agfarmer18 has joined #gnucash
08:55:06 *** Agfarmer18 has quit IRC
08:59:32 *** Aussie_matt has quit IRC
09:10:30 *** Agfarmer18 has joined #gnucash
09:15:42 *** Agfarmer18 has quit IRC
09:26:30 <warlord> .
09:31:38 <chris> :
09:39:24 *** giuseppef has quit IRC
09:58:37 *** giuseppef has joined #gnucash
09:58:37 *** ChanServ sets mode: +v giuseppef
10:26:48 *** Agfarmer18 has joined #gnucash
10:31:50 *** TownsendHardware has joined #gnucash
10:33:41 *** ArtGravity has joined #gnucash
10:33:41 *** ChanServ sets mode: +v ArtGravity
10:54:02 * chris still prefers scheme > C
11:19:29 *** vuamw has quit IRC
11:19:45 *** vuamw has joined #gnucash
11:20:56 *** vuamw has joined #gnucash
11:35:56 *** guak has joined #gnucash
11:38:23 *** jervin has joined #gnucash
11:39:02 *** Mechtilde has quit IRC
11:40:53 *** David has quit IRC
11:40:59 *** David has joined #gnucash
11:52:55 *** sbluhm has quit IRC
12:00:16 * chris just discovered that a merge commit can be reverted as easily as any other.. just need the parent number 1 or 2
12:01:59 *** David has quit IRC
12:02:22 *** David has joined #gnucash
12:06:06 *** CDB-Work has joined #gnucash
12:06:06 *** ChanServ sets mode: +v CDB-Work
12:11:23 *** sbluhm has joined #gnucash
12:11:23 *** ChanServ sets mode: +v sbluhm
12:25:38 *** sbluhm has quit IRC
12:33:19 *** giuseppef has quit IRC
12:47:44 *** bertbob has quit IRC
12:48:40 *** Agfarmer18 has quit IRC
13:14:48 *** sbluhm has joined #gnucash
13:14:48 *** ChanServ sets mode: +v sbluhm
13:15:54 <jralls> chris should try C++. It has a lot more support of the functional paradigm than C does.
13:21:49 *** Agfarmer18 has joined #gnucash
13:29:03 *** sbluhm has quit IRC
13:30:49 *** Agfarmer18 has quit IRC
13:31:36 *** gjanssens has joined #gnucash
13:31:36 *** gncbot sets mode: +o gjanssens
13:31:36 *** ChanServ sets mode: +o gjanssens
13:33:48 *** suukim has joined #gnucash
13:36:33 *** giuseppef has joined #gnucash
13:36:33 *** ChanServ sets mode: +v giuseppef
13:38:03 *** giuseppef has quit IRC
13:38:26 *** giuseppef has joined #gnucash
13:38:27 *** ChanServ sets mode: +v giuseppef
13:54:41 *** sbluhm has joined #gnucash
13:54:42 *** ChanServ sets mode: +v sbluhm
14:02:36 *** Agfarmer18 has joined #gnucash
14:02:37 *** giuseppef has quit IRC
14:02:39 *** giuseppef has joined #gnucash
14:02:39 *** ChanServ sets mode: +v giuseppef
14:11:52 <fell> chris, https://github.com/Gnucash/gnucash/blob/92f272786219adee04b7ce96bb15abc864cbb15e/gnucash/report/html-utilities.scm#L228 ff.: Please use a format string as your form is not translatable to ru etc. They have more plural forms.
14:12:15 <fell> with ngettext
14:15:49 <fell> and they see 11, 21, … as 10+1, … and use the singular again.
14:15:49 *** giuseppef has quit IRC
14:24:41 *** sbluhm has quit IRC
14:27:18 *** Agfarmer18 has quit IRC
14:29:44 *** halipaul has quit IRC
14:30:33 *** halipaul has joined #gnucash
14:37:35 *** suukim has quit IRC
14:46:07 *** lmat_ has joined #gnucash
14:46:09 *** lmat_ has left #gnucash
15:06:51 *** giuseppef has joined #gnucash
15:06:51 *** ChanServ sets mode: +v giuseppef
15:07:33 *** Agfarmer18 has joined #gnucash
15:10:18 *** Mechtilde has joined #gnucash
15:10:52 *** sbluhm has joined #gnucash
15:10:53 *** ChanServ sets mode: +v sbluhm
15:15:50 *** bertbob has joined #gnucash
15:15:51 *** ChanServ sets mode: +v bertbob
15:32:22 *** Agfarmer18 has quit IRC
15:33:21 *** frakturfreak has joined #gnucash
15:33:21 *** ChanServ sets mode: +v frakturfreak
15:38:26 *** jervin has quit IRC
15:39:16 *** ArtGravity has quit IRC
16:01:06 *** ramontjunior has quit IRC
16:19:14 *** Mechtilde has quit IRC
16:52:06 *** Hamaryns has joined #gnucash
16:52:06 *** ChanServ sets mode: +v Hamaryns
16:54:32 *** Hamaryns has quit IRC
16:58:28 *** gjanssens has quit IRC
17:01:48 *** Herbert has joined #gnucash
17:36:55 *** g5pw has joined #gnucash
17:36:56 *** ChanServ sets mode: +v g5pw
17:39:26 *** g5pw has quit IRC
17:41:10 *** g5pw has joined #gnucash
17:41:11 *** Agfarmer18 has joined #gnucash
17:41:12 *** ChanServ sets mode: +v g5pw
17:42:52 *** g5pw has quit IRC
17:43:18 *** Agfarmer18 has quit IRC
17:45:42 *** g5pw has joined #gnucash
17:45:44 *** ChanServ sets mode: +v g5pw
17:47:31 <chris> fell: you'll need to merge a guile commit to expose ngettext like gjannsens did for C_
17:48:12 <fell> Isn't it in I18N.scm?
17:48:56 *** g5pw has quit IRC
17:49:50 *** g5pw has joined #gnucash
17:49:52 *** ChanServ sets mode: +v g5pw
17:51:02 <chris> nopes
17:51:24 *** g5pw has quit IRC
17:52:06 <fell> https://www.gnu.org/software/guile/manual/html_node/Gettext-Support.html
17:52:14 *** g5pw has joined #gnucash
17:52:15 *** ChanServ sets mode: +v g5pw
17:52:30 <chris> gnc:ngettext
17:52:35 <chris> ?
17:54:46 <chris> jralls: regex in guile is an optional compile :)
17:55:14 <chris> jralls: functional C++ still uses malloc and free?
17:58:41 *** giuseppef has quit IRC
17:58:46 *** giuseppef has joined #gnucash
17:58:47 *** ChanServ sets mode: +v giuseppef
18:02:17 <chris> fell: how to mark them as translatable from guile
18:02:18 <chris> ?
18:03:01 *** frakturfreak has quit IRC
18:03:18 <fell> Chris, their example:
18:03:19 <fell> (format #t (ngettext "~a file processed\n"
18:03:21 <fell> "~a files processed\n" n)
18:04:35 <chris> fell: agree but removing N_ or C_ string wrapper means the strings won't be marked as translatable during make pot or something?
18:05:18 <fell> Ah, the xgettext call!
18:06:18 <chris> yeah that one
18:08:16 <chris> maybe the solution is to hack it: insert (N_ "Exchange rate") somewhere but don't use it
18:09:37 <chris> jralls: #805 converting the scheme to C: pain!
18:09:39 <fell> You have to add it as Keyword to gnucash-pot.cmake
18:10:23 <chris> suggestions: use the whole ngettext keyword?
18:10:39 <jralls> chris, C++ still leaves memory management to the programmer, but there are several ways to do it.
18:12:53 <jralls> chris, #805 looks more like you're trying to convert the C to Scheme.
18:13:43 <chris> jralls: no; my algorithm in scheme works, my last comment is me failing to make it in C
18:14:41 <jralls> But your algo is pretty much the same a cristiklein's.
18:16:11 <chris> not quite: his algorithm creates a hashtable amount->split, mine creates amount->toclear_list by prepending split to existing prev_amount
18:16:31 <jralls> BTW, creating a hash table and then accessing it with hash-for-each instead of hash lookup is stupid regardless of language. Hash tables are heavily pessimized for traversal.
18:17:13 <chris> e.g. process $10 then $10. after first split, mine is $10->split..... after 2nd split, mine is $10->'DUPE' and $20->{split1,split2}
18:17:38 <jralls> That's still a small tweak that you could do in C by just rearranging his code.
18:18:19 <chris> in his algorithm: (1) $10->split (2) $10->DUPE
18:18:43 <fell> chris, from https://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html#xgettext-Invocation: For Scheme: gettext, ngettext:1,2, gettext-noop.
18:18:49 <chris> in his algo, the values are either split or NULL; in mine the values are always list of splits, or a 'DUPE' keyword
18:19:51 <chris> fell: agree but we're using gnc:gettext or gnc:C-gettext in core-utils.scm
18:21:32 <chris> fell: so I guess we can use ngettext directly and xgettext will find it?
18:21:52 * chris can't find definition for gnc:gettext
18:22:19 <chris> ah... ^these are in core-utils.i
18:29:45 <fell> --keyword= ngettext:1,2
18:31:30 <fell> Then xgettext will take the first arg as singular and 2. as plural of ngettext
18:36:11 *** vuamw has quit IRC
18:38:51 * chris compiling
18:40:44 <jralls> chris, is your comment about guile regex about my using make-regexp instead of string-match? It's because if string-match can be told to be case-insensitive that isn't clear from the docs.
18:44:15 <chris> no your make-regexp is fine... see bug 412151 fixed with 4c790b20
18:45:33 <chris> string-match and make-regexp both depend on guile being compiled with regex support
18:46:51 *** sbluhm has quit IRC
18:51:10 <jralls> Ah. Regexes are a pretty standard facility nowadays. We should test at startup and refuse to run.
18:51:35 <jralls> CMake should also test and refuse to buile.
18:51:43 <jralls> s/buile/build/
18:53:36 <chris> ok
18:55:15 <jralls> Note that you have to tell guile *not* to support regexes and since they just wrap the facility that's built into glibc it's pretty much free. There's no good reason to leave it out.
19:11:37 <chris> meanwhile ngettext doesn't seem to work
19:19:37 <jralls> What's it not doing?
19:21:38 *** bertbob has quit IRC
19:23:02 <chris> doesn't get "Exchange rates" as desired c.f. "Exchange rate"
19:24:06 <fell> What is in gnucash.pot?
19:28:52 <jralls> chris, did you change html-utilities.scm lines 229 and 230 to replace the two gettext calls with a single ngettext call, regenerate gnucash.pot and msg-merge it?
19:29:45 <chris> no didn't regenerate.
19:30:08 <chris> all in #806, gtg for now
19:39:08 *** chris has quit IRC
19:39:48 *** bertbob has joined #gnucash
19:39:49 *** ChanServ sets mode: +v bertbob
20:02:02 <fell> Package 'guile-2.2', required by 'virtual:world', not found???
20:02:13 <fell> -- Using guile-3.0.x
20:02:31 <jralls> What's virtual:world?
20:02:53 <fell> I don't know
20:03:22 <jralls> In what context did you get the error?
20:03:37 <fell> I just saw it flashing while building maint
20:04:06 <fell> Your recent changeset
20:08:32 <jralls> Looks like that's some guile internal thing. Have you built successfully with guile-3 before?
20:08:58 <fell> since a long time.
20:09:35 <fell> it is already there after chris' changes today
20:10:20 <jralls> You mean the error? So that rules out my dragging in (ice-9 regex)?
20:12:22 <fell> it seems to be more a warning
20:12:55 <fell> because I can run ninja pot afterward
20:14:16 <jralls> what about ninja check?
20:14:32 *** Herbert has joined #gnucash
20:20:51 *** jervin has joined #gnucash
20:22:06 <fell> I had now switched to master (2020-10-15) and it was there. too.
20:23:14 <jralls> OK. Does the build go through? It might just be some guile noise that you can ignore.
20:38:57 *** guak has quit IRC
20:39:06 <fell> I suspect a cmake update last weekend.
20:50:42 <fell> We have set pkg_check_modules (GUILEx y QUIET) with exception 22.
20:53:21 <jralls> Oh, that's my fault. I did that for some troubleshooting a couple of weeks ago and forgot to put it back before committing.
20:53:58 <fell> OK, I can do it
20:55:51 *** David has quit IRC
20:55:57 *** David has joined #gnucash
20:59:32 <fell> and the virtual:world is gone ;-)
22:05:26 *** hussam has joined #gnucash
22:05:26 *** ChanServ sets mode: +v hussam
22:06:13 *** hussam has quit IRC
22:07:01 *** hussam has joined #gnucash
22:07:01 *** ChanServ sets mode: +v hussam
22:07:43 *** hussam has quit IRC
22:08:31 *** hussam has joined #gnucash
22:08:31 *** ChanServ sets mode: +v hussam
22:09:13 *** hussam has quit IRC
22:10:01 *** hussam has joined #gnucash
22:10:01 *** ChanServ sets mode: +v hussam
22:10:43 *** hussam has quit IRC
22:11:33 *** hussam has joined #gnucash
22:11:33 *** ChanServ sets mode: +v hussam
22:17:53 *** chris has joined #gnucash
22:17:53 *** ChanServ sets mode: +v chris
22:17:56 *** gncbot sets mode: +o chris
22:54:40 *** halipaul has quit IRC
22:57:58 *** halipaul has joined #gnucash
23:01:30 *** halipaul has quit IRC
23:05:52 *** halipaul has joined #gnucash
23:07:46 *** hfxpaul has joined #gnucash
23:08:02 *** halipaul has quit IRC
23:09:11 *** jervin has quit IRC
23:10:44 *** hfxpaul has quit IRC
23:13:18 *** halipaul has joined #gnucash
23:15:22 *** halipaul has quit IRC
23:17:14 *** halipaul has joined #gnucash
23:17:52 *** David has quit IRC
23:17:58 *** David has joined #gnucash
23:19:16 *** halipaul has quit IRC
23:23:00 *** halipaul has joined #gnucash
23:24:05 *** halipaul has quit IRC
23:24:17 *** halipaul has joined #gnucash
23:30:43 *** giuseppef has quit IRC
23:30:59 *** giuseppef has joined #gnucash
23:31:00 *** ChanServ sets mode: +v giuseppef