Monument ([info]marnanel) wrote,
@ 2006-10-31 21:28:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Entry tags:day, firinel, gnome, riordon, work

nos calan gaeaf
I took a string of purple lights in to decorate our corral, and came home a little earlier than usual so that [info]riordon, [info]firinel and I could go out trick-or-treating. Sharon stayed at our house and gave out pretzels. It was also good to see [info]mysterylodge, who came round and brought us some RAM. Today was a happy day.

Here are two things I don't understand, one a GNOME thing and one a Welsh thing. I would like it if people who knew about things told me what they thought:

a) massif tells me that this single line is responsible for 20% of the spacetime in FUSA.

layout = gtk_label_get_layout (GTK_LABEL (item->label));
pango_layout_get_pixel_size (layout, NULL, &height);
/* ☜ this one */

The call to pango causes a call to freetype, which allocates a huge wad of memory, something like 5Mb. Looking at other programs which do something similar and don't have the same problem, I can't see anything that I should do differently. The line isn't even important, and I can easily remove it and save us mucho RAM, but does anyone have a clue as to why it happens?

b) My Welsh textbook asked me to translate "the middle of the road". Well, ffordd is feminine, right? So I wrote "canol y fordd". But the answers say "canol y ffordd". Am I missing something?

[info]moominmuppet provides the alarming news that a court in Maryland this week has apparently declared that under the law as it stands, you can't withdraw consent during sex (and it be rape, though some say it would still be assault). If you live in Maryland, you might write to your representatives and ask them to do something about that.

I have had a mysterious ache in the back of my tongue for more than a week now. If it goes on for much more than a fortnight I will go and see the doctor about it.

Tomorrow, when I have more time, I will write a summary of October.

Now I am going to have a shower and get an early night, because I am hugely sleepy.



(Post a new comment)


[info]firinel
2006-11-01 03:00 am UTC (link)
Where'd you get purple lights from? (We've had a string still boxed in the corner of the bedroom for ages, I was wondering if it was that one.)

Would the GP be the one to see about the tongue-ache? I've never even heard of a tongue-ache before, hmm. Does it hinder you from doing things with your tongue? *coughs* (like eating, drinking, swallowing...)

I think you've sympathy-PMS; do your nipples also hurt?

(Reply to this) (Thread)


[info]floatyfish
2006-11-01 03:12 am UTC (link)
*ponders* You know, zie was talking about zir tongue hurting like this while you were all down that weekend with Eric and zie said it had been hurting that week previously, so...I'd say it's been hurting for about 2-3 weeks really.

I'd even asked to look at it..to see if it was maybe some sort of cold sore or the like, but didn't see anything.

(Reply to this) (Parent)


[info]gnu_lorien
2006-11-01 04:10 am UTC (link)
On GTK:

I seem to recall somebody else's blog post about this, but I can't seem to find it. IIRC it's a known problem because layouts are just a pain to calculate. The solution seemed to be to only calculate it when you absolutely had to. Making the call "invalidates" something and lots of work happens.

(Reply to this) (Thread)

pango.Layout.get_pixel_size
[info]kamstrup
2006-11-01 06:21 am UTC (link)
We do this two places in deskbar too. Maybe we can scrape of 5mb too? Or does Python import and initialize the freetype module anyway..?

Anyway, interesting. If anybody has more knowledge on this it would be hugely appreciated.

(Reply to this) (Parent)

Who's Friended You - gone?
[info]ruthlilycat
2006-11-01 07:44 am UTC (link)
This is o/t, but I loved the Who's Friended You thing, and now it doesn't work anymore :(

Just wondering what happened?

(Reply to this) (Thread)

Re: Who's Friended You - gone?
[info]marnanel
2006-11-01 01:50 pm UTC (link)
The server crashed and is being rebuild. I'd expect joule to be back within the next few days. Sorry about the downtime.

(Reply to this) (Parent)(Thread)

Re: Who's Friended You - gone?
[info]thistle_chaser
2006-11-01 06:07 pm UTC (link)
Yay, someone else asked! I was watching your LJ to see if you'd mention it. I'm glad it'll be coming back! It's a really great service. Thank you!

(Reply to this) (Parent)

Mutations in Welsh
(Anonymous)
2006-11-01 08:33 am UTC (link)
The reason it's "canol y ffordd" and not "canol y fordd" is due to the fact the letter "ff" doesn't mutate in Welsh. The only letters I which mutate are: p t c b d g ll m rh. (all of them mutate under a 'treigliad meddol', only p through g mutate under 'treigliad trwynol' and only p t c mutate under 'treigliad llaes'.

Mae'n dda dy fod yn dysgu'r Gymraeg, dalia ati.

Iestyn

(Reply to this) (Thread)

Re: Mutations in Welsh
[info]dyddgu
2006-11-01 09:57 am UTC (link)
Be' ddwedodd e! :-)

(Reply to this) (Parent)

Re: Mutations in Welsh
[info]fayroberts
2006-11-01 11:48 am UTC (link)
Oh, I was going to say that...

er, y pethau mae e'n wedi dweud

(my grammar is sbwriel!)

(Reply to this) (Parent)

Re: Mutations in Welsh
[info]marnanel
2006-11-01 02:30 pm UTC (link)
Oh, thank you! I don't know how I got it into my head that ff was one of the letters which mutate!

(Reply to this) (Parent)


(Anonymous)
2006-11-01 05:26 pm UTC (link)
Why would anyone start to have sex with someone they didn't trust enough to stop if they asked?

(Reply to this)

pango_layout_get_size()
(Anonymous)
2006-11-01 08:35 pm UTC (link)
PangoLayout lays text out lazily, not until you ask for anything that requires the layout.

If you call pango_layout_get_size(), it requires to lay it out, going over itemization, shaping, and line breaking that involves loading fonts and in short, all Pango needs to do. If you remove that call, the same will happen later on when the layout is to be rendered.

So, no win in removing it.

(Reply to this) (Thread)

Re: pango_layout_get_size()
[info]marnanel
2006-11-01 09:35 pm UTC (link)
Ah, but the context here is that this code is checking whether fancy or ordinary text fits better. So it generates the layout for the fancy text, gets its size, and then usually throws it away. Commenting out this bit really does save us the 5Mb.

(Reply to this) (Parent)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…