• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Go vs. Java

 
Ranch Hand
Posts: 133
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been doing Java since 2008, and I just needed a list of reasons why would someone like me try and use Go as another language. I've been working with Android for the time being i have left enterprise java. In this sense I knew Go might be something similar in terms of platform capabilities with Java?
 
Author
Posts: 14
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're developing mobile apps in android than Java is likely the right language for you. Even though Go is starting to get into that space.

I'll try to give you one compelling reason to consider Go. Numerous folks have rewritten applications from Java to Go. In doing so the new applications have a radically reduced resource footprint. AeroFS is one example, that comes to mind, where they published some details. You can read about it on their blog.

Here's a little teaser quote...

  • Resident memory usage dropped from 87MB down to a mere 3MB, a 29x reduction!
  • The resulting docker image shrunk from 668MB to 4.3MB, a 155x reduction!


  • Go applications tend to be high performance while using less resources than the comparable Java apps.

    Is that interesting enough to give it a look?
     
    Michael Rivera
    Ranch Hand
    Posts: 133
    Android Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Wow, quite nice to be honest. I think I better need to investigate If Go can really be used/replaced some of Java's platform or offerings right now.

    For the mobile part, yes Java is the language behind Android, but if there would be a Mobile OS that can utilise Go then that would be a plus for the Go language .


    Maybe Go needs some resources for newbies like me to check out and start developing out( I'd probably haven't checked if there are any), maybe you could list out some of the best things out there here.


    I always like to read things from scratch , not soft copy but the hard one I'd probably check on this one.

     
    Ranch Hand
    Posts: 529
    C++ Java Ubuntu
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    We have been building out "microservices" at our company using Golang. It's really nice to see each service using only 3MB each. There is a lot of money to be saved here if you're paying for memory usage, and you have a number of services. (Most cloud hosting incorporates memory usage into the pricing models.)
    One thing I really enjoy about Golang is the error handling. IMHO, I think it lends itself more to better error handling than Java's checked and unchecked exceptions. You write a lot of code, but in the end it's easier to reason about your application in regards to error handling.
     
    Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
    the value of filler advertising in 2020
    https://coderanch.com/t/730886/filler-advertising
    reply
      Bookmark Topic Watch Topic
    • New Topic