Perlbox: A Unix Desktop Written in Perl
cascadefx writes "It appears that this programmer has created an Open Sourced Unix Desktop, PerlBox, written in Perl and Tk. I found this posted in response to an article on Perl Monks asking if Perl was obsessed with CGI?. Apparently not. Check it out, it looks pretty interesting." I wonder how fast it runs?
I know this is a troll, but you're correct in that it's actually quite viable. Check out ROX-filer, an excellent file manager (also on the site is ROX-session for session management, and a load of tools to use with it, all in Python). ROX-Filer is an excellent example of how to use Python to create a desktop environment.
slashdot!=valid HTML
Well, Perl is an interpreted language but it does go through an internal compile phase. You *can* design an interpreter that doesn't do this.
byroniverse
It's actually (almost) compiled each run, instead of being raw interpreted. In the camel book it describes it in detail, but briefly it parses it to bytecode, optimizes it, then executes it (any evals will re-do the process mid program, ect).
Non-proc consuming optimizations are done each time also. Perl6 is supposed to allow it to be permanently compiled to a bytecode with extensive optimizations much easier. Currently the methods of creating a pre-bytecoded perl script is (almost) a black magic.
See Gtk, Gnome, Tk, Qt and Wx CPAN distros.
~shiny
WILL HACK FOR $$$
Modules to play with and more info about it:
~shiny
WILL HACK FOR $$$
See Wx.
~shiny
WILL HACK FOR $$$
i can't attest to the speed of the wx bindings for perl, but i can tell you that the wx bindings for python (wxpython, here.) are fast. very, very fast.
The speed should be comparable to JOS (Java Operating System).
DNA is the ultimate spaghetti code.
You haven't checked out Wx. It's a Perl module for using wxWindows:
See the wxWindows supported platforms.
~shiny
WILL HACK FOR $$$
> came out was not announced. Slashdot has become
> shit.
Grossly offtopic, agreed, but why would you expect a minor glibc update (which is only really of worth to distro packagers) to have a big announcement? There's not a lot to be said about it. Then again, maybe there is. I had to statically link a small text-based tool with glibc the other day. The binary (stripped) came to 380k. Finding this to be a tad weighty, I booted up FreeBSD and statically linked it to their libc. Result? 18k stripped binary.
I've seen Linus et al. make comments about Glibc's bloat before, and now I'm starting to wonder. Is this as bad as it looks? I'm aware of small substitute projects like dietlibc, and I know Glibc has a lot of features, but how far will it go?
Not a troll; offtopic; mod down; ah well; whatever. :)
For those of you who can't get to the screenshots because of those annoying javascript errors: http://perlbox.org/screenshots.shtml
[alk]
I suppose you mean something like Python's AnyGUI:s .php
http://anygui.sourceforge.net/screenshot
The good news is that while it's possible to port it to Perl, you don't have to if you're willing to wait for Parrot.
You can already create your own window managers in perl. Perlwm comes with what you need. I have a feeling you're not talking about creating window managers, but simply GUI apps. Not sure why you'd create a WM in XUL. For creating RAD GUI apps, you can use one of the GUI builders for Tk, Qt, or GTK+ (among others, probably) and create a GUI for perl.
Working toward a usable PDA environment in the spirit of Newton OS: Dynapad
> Don't Perl scripts get compiled every time they are run?
Yes, but it's compiled into an internal bytecode format, not an executable binary.
In this sense it's more like Java -> Bytecode -> JVM (hence Perl -> Bytecode -> PVM) than, say, C -> Object code -> Native Binary. Not quite, but near enough.
Python has the same property, as do many otherwise interpreted languages. Parrot (the engine Perl 6 will use) is also bytecode based, and probably has more in common with a Java VM, in that it impliments a sort of dynamic-language CPU with registers and instructions, rather than just a tree of tokens the interpreter can easily walk along.
Something really funky is going on. I type in www.perlbox.org, and the page that loads up is www.camelotnaturals.com
What the hell?
If tits were wings it'd be flying around.
Magius_AR