Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1537)

Issue 12957047: Adds dimension stencil command to correct with-dimension (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by MikeSol
Modified:
10 years, 4 months ago
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Adds dimension stencil command to correct with-dimension

Patch Set 1 #

Patch Set 2 : Fixes pad-around #

Patch Set 3 : Changes stencil name, adds comment #

Patch Set 4 : Responds to some of Keith's suggestions #

Patch Set 5 : Uses skyline-dimensions-stencil for delayed markups #

Patch Set 6 : More generic approach to stencil dimensioning #

Patch Set 7 : Changes name to skyline-stencil #

Total comments: 9

Patch Set 8 : Overrides stencil skylines with other stencils #

Patch Set 9 : Fixes harp stencils #

Patch Set 10 : fixes braino #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -53 lines) Patch
A input/regression/markup-transparent.ly View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
M lily/paper-system.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M lily/stencil-integral.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 1 comment Download
M lily/stencil-interpret.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M scm/define-markup-commands.scm View 1 2 3 4 5 6 7 8 9 8 chunks +50 lines, -44 lines 0 comments Download
M scm/define-stencil-commands.scm View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M scm/harp-pedals.scm View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -9 lines 0 comments Download
M scm/stencil.scm View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 59
MikeSol
Fixes pad-around
10 years, 8 months ago (2013-08-21 13:24:41 UTC) #1
MikeSol
Changes stencil name, adds comment
10 years, 8 months ago (2013-08-21 18:24:47 UTC) #2
Keith
There is also \pad-markup and \pad-to-box Also, the delayed stencils in \with-link and \page-ref could ...
10 years, 8 months ago (2013-08-22 06:54:36 UTC) #3
lemzwerg
This looks very promising! Thanks for the work on this.
10 years, 8 months ago (2013-08-22 07:31:14 UTC) #4
MikeSol
Responds to some of Keith's suggestions
10 years, 8 months ago (2013-08-22 08:04:42 UTC) #5
MikeSol
I had time to implement everything but the delayed markup stuff. I'll try to get ...
10 years, 8 months ago (2013-08-22 08:05:14 UTC) #6
MikeSol
Uses skyline-dimensions-stencil for delayed markups
10 years, 8 months ago (2013-08-22 08:13:08 UTC) #7
MikeSol
It was easier to implement the delayed stuff than I expected, so I got it ...
10 years, 8 months ago (2013-08-22 08:13:54 UTC) #8
MikeSol
More generic approach to stencil dimensioning
10 years, 8 months ago (2013-08-24 06:35:48 UTC) #9
lemzwerg
LGTM, except of using `surrogate' in the name. Given that the stencil dimensions are actively ...
10 years, 8 months ago (2013-08-24 07:18:52 UTC) #10
mike7
On 24 août 2013, at 10:18, lemzwerg@googlemail.com wrote: > LGTM, except of using `surrogate' in ...
10 years, 8 months ago (2013-08-24 08:05:13 UTC) #11
dak
On 2013/08/24 08:05:13, mike7 wrote: > On 24 août 2013, at 10:18, mailto:lemzwerg@googlemail.com wrote: > ...
10 years, 8 months ago (2013-08-24 08:25:14 UTC) #12
pkx166h
On 2013/08/24 08:25:14, dak wrote: > On 2013/08/24 08:05:13, mike7 wrote: > > On 24 ...
10 years, 8 months ago (2013-08-24 09:47:28 UTC) #13
mike7
Sent from my iPhone On 24 août 2013, at 12:47, pkx166h@gmail.com wrote: > On 2013/08/24 ...
10 years, 8 months ago (2013-08-24 10:05:17 UTC) #14
dak
On 2013/08/24 10:05:17, mike7 wrote: > > The stencil command takes the skyline of stencil ...
10 years, 8 months ago (2013-08-24 10:31:38 UTC) #15
dak
On 2013/08/24 10:31:38, dak wrote: > On 2013/08/24 10:05:17, mike7 wrote: > > > > ...
10 years, 8 months ago (2013-08-24 10:38:35 UTC) #16
MikeSol
Changes name to skyline-stencil
10 years, 8 months ago (2013-08-24 13:11:58 UTC) #17
mike7
On 24 août 2013, at 13:38, dak@gnu.org wrote: > On 2013/08/24 10:31:38, dak wrote: >> ...
10 years, 8 months ago (2013-08-24 13:19:30 UTC) #18
dak
On 2013/08/24 13:19:30, mike7 wrote: > The question I'm asking is "How can I allow ...
10 years, 8 months ago (2013-08-24 13:36:49 UTC) #19
dak
https://codereview.appspot.com/12957047/diff/46001/lily/paper-system.cc File lily/paper-system.cc (right): https://codereview.appspot.com/12957047/diff/46001/lily/paper-system.cc#newcode55 lily/paper-system.cc:55: if (head == ly_symbol2scm ("skyline-stencil")) It seems awkward and ...
10 years, 8 months ago (2013-08-24 16:19:26 UTC) #20
mike7
On 24 août 2013, at 16:36, dak@gnu.org wrote: > On 2013/08/24 13:19:30, mike7 wrote: > ...
10 years, 8 months ago (2013-08-24 16:26:26 UTC) #21
MikeSol
https://codereview.appspot.com/12957047/diff/46001/lily/paper-system.cc File lily/paper-system.cc (right): https://codereview.appspot.com/12957047/diff/46001/lily/paper-system.cc#newcode55 lily/paper-system.cc:55: if (head == ly_symbol2scm ("skyline-stencil")) On 2013/08/24 16:19:27, dak ...
10 years, 8 months ago (2013-08-24 16:33:39 UTC) #22
Keith
On 2013/08/24 16:33:39, MikeSol wrote: > On 2013/08/24 16:19:27, dak wrote: > > > Stupid ...
10 years, 8 months ago (2013-08-25 06:15:51 UTC) #23
mike7
On 25 août 2013, at 09:15, k-ohara5a5a@oco.net wrote: > On 2013/08/24 16:33:39, MikeSol wrote: > ...
10 years, 8 months ago (2013-08-25 08:22:01 UTC) #24
dak
On 2013/08/25 08:22:01, mike7 wrote: > On 25 août 2013, at 09:15, mailto:k-ohara5a5a@oco.net wrote: > ...
10 years, 8 months ago (2013-08-25 13:04:13 UTC) #25
Keith
The cost-benefit balance shows extra memory use, against potential gain that we have trouble imagining, ...
10 years, 8 months ago (2013-08-26 02:59:53 UTC) #26
mike7
On 25 août 2013, at 16:04, dak@gnu.org wrote: > On 2013/08/25 08:22:01, mike7 wrote: >> ...
10 years, 8 months ago (2013-08-26 04:08:17 UTC) #27
dak
On 2013/08/26 04:08:17, mike7 wrote: > On 25 août 2013, at 16:04, mailto:dak@gnu.org wrote: > ...
10 years, 8 months ago (2013-08-26 04:36:10 UTC) #28
mike7
On 26 août 2013, at 07:36, dak@gnu.org wrote: > On 2013/08/26 04:08:17, mike7 wrote: >> ...
10 years, 8 months ago (2013-08-26 04:51:50 UTC) #29
dak
On 2013/08/26 04:51:50, mike7 wrote: > On 26 août 2013, at 07:36, mailto:dak@gnu.org wrote: > ...
10 years, 8 months ago (2013-08-26 05:20:48 UTC) #30
mike7
On 26 août 2013, at 08:20, dak@gnu.org wrote: > On 2013/08/26 04:51:50, mike7 wrote: >> ...
10 years, 8 months ago (2013-08-26 05:25:42 UTC) #31
dak
On 2013/08/26 05:25:42, mike7 wrote: > On 26 août 2013, at 08:20, mailto:dak@gnu.org wrote: > ...
10 years, 8 months ago (2013-08-26 05:35:40 UTC) #32
mike7
On 26 août 2013, at 08:35, dak@gnu.org wrote: > On 2013/08/26 05:25:42, mike7 wrote: >> ...
10 years, 8 months ago (2013-08-26 06:42:38 UTC) #33
dak
On 2013/08/26 06:42:38, mike7 wrote: > On 26 août 2013, at 08:35, mailto:dak@gnu.org wrote: > ...
10 years, 8 months ago (2013-08-26 08:41:42 UTC) #34
mike7
On 26 août 2013, at 11:41, dak@gnu.org wrote: > On 2013/08/26 06:42:38, mike7 wrote: >> ...
10 years, 8 months ago (2013-08-26 09:11:39 UTC) #35
wl_gnu.org
> To summarize: stencil expressions (expr_) currently do not contain > information for how to ...
10 years, 8 months ago (2013-08-26 09:39:13 UTC) #36
mike7
On 26 août 2013, at 12:39, Werner LEMBERG <wl@gnu.org> wrote: > >> To summarize: stencil ...
10 years, 8 months ago (2013-08-26 09:42:46 UTC) #37
wl_gnu.org
> What we don't want is for people to start using the stencil > primitive ...
10 years, 8 months ago (2013-08-26 09:49:02 UTC) #38
dak
On 2013/08/26 09:11:39, mike7 wrote: > On 26 août 2013, at 11:41, mailto:dak@gnu.org wrote: > ...
10 years, 8 months ago (2013-08-26 09:50:24 UTC) #39
dak
On 2013/08/26 09:42:46, mike7 wrote: > In French there's a saying "Temporary solutions have a ...
10 years, 8 months ago (2013-08-26 10:00:30 UTC) #40
mike7
On 26 août 2013, at 13:00, dak@gnu.org wrote: > That's bullshit since nobody assembles stencil ...
10 years, 8 months ago (2013-08-26 10:05:25 UTC) #41
thomasmorley651
2013/8/26 Werner LEMBERG <wl@gnu.org>: > >> What we don't want is for people to start ...
10 years, 8 months ago (2013-08-26 10:12:20 UTC) #42
dak
On 2013/08/26 10:05:25, mike7 wrote: > On 26 août 2013, at 13:00, mailto:dak@gnu.org wrote: > ...
10 years, 8 months ago (2013-08-26 10:13:31 UTC) #43
mike7
On 26 août 2013, at 13:13, dak@gnu.org wrote: > On 2013/08/26 10:05:25, mike7 wrote: >> ...
10 years, 8 months ago (2013-08-26 10:18:04 UTC) #44
dak
On 2013/08/26 10:18:04, mike7 wrote: > I think Harm is right that, irrespective of documentation, ...
10 years, 8 months ago (2013-08-26 10:31:50 UTC) #45
wl_gnu.org
>> Even if it is public: Simply say in the stencil's documentation >> that users ...
10 years, 8 months ago (2013-08-26 10:46:47 UTC) #46
mike7
On 26 août 2013, at 13:31, dak@gnu.org wrote: > On 2013/08/26 10:18:04, mike7 wrote: > ...
10 years, 8 months ago (2013-08-26 16:32:24 UTC) #47
dak
On 2013/08/26 16:32:24, mike7 wrote: > On 26 août 2013, at 13:31, mailto:dak@gnu.org wrote: > ...
10 years, 8 months ago (2013-08-26 21:48:04 UTC) #48
mike7
On 27 août 2013, at 07:18, "Keith OHara" <k-ohara5a5a@oco.net> wrote: > On Mon, 26 Aug ...
10 years, 8 months ago (2013-08-27 05:37:28 UTC) #49
mike7
On 27 août 2013, at 09:01, "Keith OHara" <k-ohara5a5a@oco.net> wrote: > On Mon, 26 Aug ...
10 years, 8 months ago (2013-08-27 06:58:05 UTC) #50
dak
On 2013/08/27 06:58:05, mike7 wrote: > On 27 août 2013, at 09:01, "Keith OHara" <mailto:k-ohara5a5a@oco.net> ...
10 years, 8 months ago (2013-08-27 08:09:09 UTC) #51
mike7
On 27 août 2013, at 11:09, dak@gnu.org wrote: > On 2013/08/27 06:58:05, mike7 wrote: >> ...
10 years, 8 months ago (2013-08-27 10:27:22 UTC) #52
mike7
On 28 août 2013, at 05:28, "Keith OHara" <k-ohara5a5a@oco.net> wrote: > On Mon, 26 Aug ...
10 years, 8 months ago (2013-08-28 06:30:48 UTC) #53
MikeSol
Overrides stencil skylines with other stencils
10 years, 8 months ago (2013-08-28 08:48:42 UTC) #54
MikeSol
Fixes harp stencils
10 years, 8 months ago (2013-08-28 08:49:23 UTC) #55
mike7
On 28 août 2013, at 09:47, "Keith OHara" <k-ohara5a5a@oco.net> wrote: > On Tue, 27 Aug ...
10 years, 8 months ago (2013-08-28 08:52:02 UTC) #56
MikeSol
fixes braino
10 years, 8 months ago (2013-08-28 09:04:58 UTC) #57
Keith
https://codereview.appspot.com/12957047/diff/88001/lily/stencil-integral.cc File lily/stencil-integral.cc (right): https://codereview.appspot.com/12957047/diff/88001/lily/stencil-integral.cc#newcode917 lily/stencil-integral.cc:917: } My best guess for the cause of the ...
10 years, 7 months ago (2013-09-04 18:36:16 UTC) #58
dak
10 years, 7 months ago (2013-09-04 19:00:22 UTC) #59
On 2013/09/04 18:36:16, Keith wrote:
> https://codereview.appspot.com/12957047/diff/88001/lily/stencil-integral.cc
> File lily/stencil-integral.cc (right):
> 
>
https://codereview.appspot.com/12957047/diff/88001/lily/stencil-integral.cc#n...
> lily/stencil-integral.cc:917: }
> My best guess for the cause of the extra memory, showing in the `make check`
> profile output, is this loop written as tail recursion:
> 
> stencil_traverser (PangoMatrix trans, SCM expr) {
>   [...]
>   else if (scm_car (expr) == ly_symbol2scm ("skyline-stencil")) {
>       SCM skyline_stencil = scm_cadr (expr);
>       return stencil_traverser (trans, skyline_stencil);
>   }
> 
> Maybe having 'skyline_stencil' as an automatic variable and also a function
> parameter, which would be optimized to a different automatic variable 'expr'
in
> the same function, confuses the reference counting in Guile's
> garbage-collection.

No, GUILE just scans the stack.  Variable names are not relevant.  Since we are
doing our statistics without optimisations, the "tail recursion" will actually
be a full recursion.  However, by the time the statistics are done, the stack
frame is no longer there.  So this should not make a difference.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b