Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: Camel vs. Gopher

by morgon (Priest)
on Dec 12, 2018 at 23:58 UTC ( #1227188=note: print w/replies, xml ) Need Help??


in reply to Re^4: Camel vs. Gopher
in thread Camel vs. Gopher

Go has a way to call C as well.

So if you bring in Inline::C for perl I bring in the unsafe-package for Go and we end up comparing C with C which is silly.

This is a very artificial test-case and has really nothing to do with real applications.

I would assume Go to beat Perl in performance in every real-world scenario but again - that's just the bonus.

goroutines and channels are the killer-features for me.

Give it a try - you'll like it.

Replies are listed 'Best First'.
Re^6: Camel vs. Gopher
by Your Mother (Bishop) on Dec 13, 2018 at 02:06 UTC
    Give it a try - you'll like it.

    …Maybe. But I am skeptical of everything Google does. I’m finding AngularJS a very hard pill to swallow, for example, though I'm fighting to get into it because it seems a good career move. A toxic position, really. Doing something you dislike for money. I wrote a micro-wiki platform to replace my personal Kwiki stuff two weekends ago in Catalyst and a possible Catalyst replacement in pure Plack:: the next week because as much as I like Cat, it has a lot of things that bother me. I'd much rather be doing that and even Mojo and Dancer2 or Amon2 for that matter than Angular or Go. If I have to do something else, it'll be modern ECMAScript.

    I more or less hate or at best tolerate most programming languages besides Perl; I only enjoy JS because of the DOM and its general Perlicity. I was trained early on CS and fell away from it for 15 years or so because it was so unappealing to me. Perl is the only reason I came back; the only reason I'm a professional programmer.

    I'd love to see Go calling C inline like the Perl and in 27 lines of self-compiling code. :P Also, PDL is a well known, "real world," Perl module for number problems and it's twice as fast as Go here. I would have reached for it myself if the 90 seconds of code I wrote at first didn't satisfy a performance issue in an app.

    Perl is knocked overly often and often by putative fans who play apologist… "Shucks, Perl is fine except it sucks." Perl is frequently not just a terrific choice, but the best choice; dev time, speed, reliability, etc. It's time we spoke more plainly about that. If Perl had the reputation it deserves instead of the reputation its competitors have heaped on it, I probably wouldn't be worried about needing to learn Angular right now. :P

Re^6: Camel vs. Gopher
by hippo (Chancellor) on Dec 13, 2018 at 00:08 UTC
    I would assume Go to beat Perl in performance in every real-world scenario

    That statement is worth keeping ;-)

Re^6: Camel vs. Gopher
by stevieb (Canon) on Dec 13, 2018 at 00:25 UTC
    " I would assume Go to beat Perl in performance in every real-world scenario but again - that's just the bonus."

    What's your point? Selling Go? Sounds like a Go-ogle-gone fad like a few other languages.

    "goroutines and channels are the killer-features for me".

    As a retired street (ie. graffiti) artist, seems silly to jump on a bandwagon (freight train) to find you'll eventually end up in the trash.

    Google messaging as my point. Dropped with no notification.

    "goroutines and channels are the killer-features for me"

    Well-defined and very protected backwards-compatible features is killer for me.

Re^6: Camel vs. Gopher
by pwagyi (Scribe) on Apr 29, 2019 at 02:24 UTC

    Go is compiled/statistically typed language. it'll definitely be faster in most cases than dynamically typed language (where perl/python will have to perform some type checking at run-time) Perl will definitely be more flexible. e.g in Perl, you could use a module (like Moose) to have declarative-feel OO while in Go, you got half-baked OO and lack of generic (despite being static type language). Goroutine doesn't auto-magically make concurrency safe/nor avoid races or dead-lock. In my opinion, golang is oversold.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1227188]
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-06-01 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (177 votes). Check out past polls.

    Notices?