Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

a 3D flower made with Perl, for anonymous girl

by zentara (Archbishop)
on Jan 04, 2012 at 13:56 UTC ( #946238=poem: print w/replies, xml ) Need Help??

Awhile back, some girl, I assume, asked how she could make flowers with Perl. Everyone directed her to various ascii art modules or 2d graphics libraries, my personal offering would have been Tk::Zinc generation of petals. That code is quite complicated.

But as the winter freeze sets in on my camp, I have found an ever-blooming flower, which can be generated with a single line of Perl code. screenshot 1 screenshot 2

#!/usr/bin/perl use PDL; use PDL::Graphics::TriD; # hit 'q' to exit imag3d [sqrt(rvals(zeroes(50,50))/2)], {Lines=>0};

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re: a 3D flower made with Perl
by teamster_jr (Curate) on Jan 06, 2012 at 11:15 UTC
    very nice. my entry would be this

    edit: and in fact I originally started looking at rendering a mathematically generated 3d flower... I guess you beat me to it :)


Re: a 3D flower made with Perl
by pemungkah (Priest) on Jan 10, 2012 at 20:38 UTC
    Folks, I'm surprised and disappointed that DrHyde's comment is getting downvoted. He is correct; the throwaway bit about "some girl" feels quite dismissive and exclusionary. It may not have been meant to be, but that's the way it sounds, because "some girl, I assume" comes across to me as "I can't be bothered to remember, but since all girls like flowers, it must have been a girl; they're all the same anyway" - and I'm not even female.

    "But that's not what I meant!" - possibly not, but think of it this way: if some other quality of the questioner was picked out as a description, would the sentence seem insensitive - as in, an unthinking assumption was made, and this is presented as perfectly reasonable to do? "Someone asked me about generating drum beats with a program, so they must have been black", "someone asked me about generating a rainbow, so it must have been a gay guy", "somebody asked me for a hamburger recipe, so she was an American" (two for the price of one), "someone asked me where they could find a deli, so they must be Jewish"? Any of those could be me, and none of those assumptions would be true.

    All of those say, "in my mind, a person can be reduced to one thing about them, and that's fine, because nothing else is really significant about them anyway, pigeonholes are OK". In addition, the poster not remembering and falling back by default on "some girl" also says, "My standard assumed ideas about this kind of person always apply in every case, and I don't need to bother to learn anything about them past that point."

    "Not thinking about this stuff is one of the reasons the majority of computer programmers are male. Even "I can't remember now, but I think a female friend asked me about this" would have been better than "some girl, I assume".

    One of my female co-workers might have asked you about algorithmically-generated chainmail linking patterns. I personally happen to love flowers, especially orchids, myself. It is a lovely graphic, and in its way quite sweet, but "some girl" really spoils it for me.

      but "some girl" really spoils it for me.

      Wow, I'm sorry some people are so sensitized to the phrase "some girl". I am 60 years old, and was raised in an age where they distinquished between boys and girls. We were even sent to separate schools. So yes, I see a big difference between man and woman, they still legally are using separate bathrooms. Do you really want men in your public bathrooms ladies?

      Most of us old guys were trained to believe that woman were to be put on pedastels, as they have the tough jobs of having and raising the children. But in the modern world, woman want to have power, not be relegated to being just breeders.

      Maybe the problem isn't with the "girl" part of the phrase "some girl"? Maybe its the use of the word "some"? Maybe people are taking the meaning of "some" to be a diminuative term, rather than my intended context of being anonymous.

      So I will change the title, to reflect it is an anonymous flower, from some anonymous guy, to some anonymous girl.

      I'm not really a human, but I play one on earth.
      Old Perl Programmer Haiku ................... flash japh
        Maybe it's because I have a number of women, and women of color as well, in tech fields who are close friends, and who have fought hard to not just be "some girl", or "the Indian one", or "the black girl": both close to my age (55) and a lot younger, and I know from them telling me so that casual use of stuff like "some girl" does hurt and/or anger them, whether they make a point of it or not.

        As far as where I'm coming from, I grew up in West Virginia, which was not exactly a wellspring of egalitarian thought at the time, and where my parents were casually prejudiced about all kinds of things. I try very hard not to be. It's a matter of accepting you have patterns of thought, and actively working to be sure that you didn't just talk from there without considering whether you've said something you didn't actually want to say to a casual stranger or a friend.

        And I'm sorry to have hijacked the thread so badly, but I was really shocked to see that DrHyde had gotten downvotes for pointing out that "some girl" wasn't a good way to put it. Perhaps his not saying why he didn't like it would have been more useful - but downvoting says "this was an incorrect and inappropriate thing to say", which definitely is not the case.

        "Some girl" says "please apply whatever set of default assumptions you have about women to this person". "Someone" says "just a person, and what race, color, or religion they happen to be is completely irrelevant". If it was a dear female friend, then to me it feels appropriate to say that specifically. Even "my lovely girlfriend" wouldn't have caught my attention, let alone bothered me. But "some girl" really grates on my nerves, sort of like "they're all interchangeable anyway" - which I am totally sure you did not mean...but it isn't about what you mean, but what you say.

        Let me make it clear that I am not trying to bust your chops - I am trying to communicate something I've learned about how this can come across to someone who you actually like and had no intention of offending or saddening. I would like the Perl community to be one that women and minorities feel comfortable in, and showing that you actually think about that helps a lot.

      As a strong defender of women's right and equality in society I can't see any offence in Zentara's post. Please, let's be reasonable and not exaggerate.
    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: poem [id://946238]
Approved by Ratazong
Front-paged by planetscape
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2018-12-18 16:52 GMT
Find Nodes?
    Voting Booth?
    How many stories does it take before you've heard them all?

    Results (80 votes). Check out past polls.