The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
...you're right about this BrowserUK. Garbage collection doesn't get a chance to shine here. This was really a stack overflow test. To answer part of the originally posed question here, yes, Java does have some problems with it. Expect object overhead to be greater than in Perl. (In Perl, we simply string some things together and declare them an object. And that's very appropriate for our style of doing things.) In Java, there is a significant workload associated with creation of an object. Issues such as security and multithreading are important in that setting. Were we to address some of the same concerns in Perl, we'd have to provide that infrastructure for ourselves. And that's okay. It would probably be "just as much as we needed," for that is the strategy for object creation in Perl. Each has its place. If I have to put five people to work designing and implementing parts of a system that will have to be integrated, I think I want them using a discipline that enforces somewhat rigid conventions. If I have to put one really bright programmer to work at implementing a system that will be running quickly, I want a programming model that gives me just as much as I need, and stated in just about any fashion that makes sense to me. Or perhaps:
You can use Perl for anything under the sun. But perhaps not everyone should try.
...All the world looks like -well- all the world,
when your hammer is Perl.
In reply to Re: Re: Memory Use/Garbage Collection: Java vs Perl
by agentv
|
|