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

Re^5: Are monks hibernating?

by talexb (Canon)
on Feb 14, 2007 at 15:26 UTC ( #599965=note: print w/replies, xml ) Need Help??


in reply to Re^4: Are monks hibernating?
in thread Are monks hibernating?

      For speed you do have to go to C or assembler

    You certainly don't have to drop that far. I certainly wouldn't entertain doing much of anything in a language that doesn't support automatic memory management.

Well, that was a 'turning of the knob' thing -- how fast do you need to go? Can you write the thing in Perl and thing do some performance analysis to find the hot spots, then code those bits in C to get the speed up?

    Maybe that's a necessary penalty for the benefits of using a dynamic language, but even without jit, Java seems to do a whole lot better.

Perhaps, but Java just seems to be so clumsy and backwards to me -- I love the simplicity of C. You know exactly where you are at all times. If necessary, I'd probably build some OO routines and 'pretend' to do C++; just pass Container objects around that hold onto the collection of objects that I'm working on.

But this is a conversation that's tough to do over PM posts and morning coffee when it could be much more fun over a beer and face to face.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Replies are listed 'Best First'.
Re^6: Are monks hibernating?
by BrowserUk (Pope) on Feb 14, 2007 at 16:38 UTC
    Java just seems to be so clumsy and backwards

    I don't like Java either, though I place most of the blame for that on the horribly incestuous standard libraries. But the separate compiler/interpreter; distributable bytecode; and runtime performance are nice.

    I'd probably build some OO routines and 'pretend' to do C++;

    You should definitely take a look at D. It does automatic memory management, OO, hashes, delegates, mixins, Perl-style fors and a whole lot more, Think C++ without the mess and verbosity. C without the pain. And it's fast.

    Now, if I could drop into Inline::D and transparently use Perl's hashes, objects and memory management...


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://599965]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2020-02-29 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (128 votes). Check out past polls.

    Notices?