This seems like the right section for this...

So have any of you played with smalltalk? I have... and one of the things I loved the most was the code browser. In fact, I've always thought the environment was one of the best things about the language (smalltalk, that is).

So I thought to myself, why can't perl have that too? Then I thought, it can! A bit of hacking later got me to this point.

What I have is a barely-bootstrapped browser. Barely meaning that it is just barely self-sufficient (but it is self sufficient).

In other words, I have created a mini programming environment, and the code for that environment is inside the environment, and due to the lovely interpreted nature of perl, changes to the code take place immediately. This is not a new idea... like I said, the whole smalltalk thing. It is self-sufficient in that any other features you could ever want can be added from within the system (with the exception of the startup script which loads the system in the first place... but whos counting? Besides, I'm sure that could be integrated too...).

Of course, in theory, this could one day be useful. Especially as a sort of teaching tool. You can, for instance, highlight a section of code and hit the "Print It" button on the toolbar, and it will evaluate the code and print the result. Try it on "5+7" or something.

You will need the newest gtk-perl, Gtk-Perl-0.7006 which can be attained from your nearest cpan mirror. (Also see the gtk-perl Homepage.

You can get the source here, and a screenshot. Don't mind the sloppy coding and the (possibly) strange way I structured the whole thing. It is, after all, mostly a proof-of-concept. And don't mind the buggies (but feel free to fix them and send me the results!).

I hope I've explained it well enough. I personally consider this a Cool Use For Perl.


In reply to Smalltalk-like browser for perl by awwaiid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.