Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7866079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:17:08+00:00 2026-06-03T00:17:08+00:00

I am working with some legacy C code which I need to refactor and

  • 0

I am working with some legacy C code which I need to refactor and generally clean up, to remove spaghetti type programming, adhere to the DRY principle etc.

I was thinking of rewriting using C++, but I don’t want to go that far, and would like to remain as close to C as possible (whilst using some OOP concepts [without having to hand code them]).

I recently came across GObject, Vala and Genie. The latter two are fairly recent. Is anyone out there aware of either Vala or Genie being used in production code ?

Last but not the least – is there a list of Pros and cons comparisons between the two languages. I am leaning a bit towards Genie because I love Python and am not too keen on C#, but Genie’s (apparent?) insistance on tabs could be a tad annoying in practise – I’d be interested in a list of pros and cons for the two languages (assuming one or both of them are ready for production use).

As an aside, I am developing on Linux, so any windows related issues are not relevant as far as I’m concerned.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:17:10+00:00Added an answer on June 3, 2026 at 12:17 am

    Unity, the user interface used by all recent version of Ubuntu, uses Vala.

    Here is a list of applications developed using Vala. Some of these are part of the default GUI install of some major GNU/Linux distributions.

    And as to Genie: It is another language (with Python like syntax) understood by the Vala compiler. So it really is just a matter of which syntax you prefer (In my opinion). Here is a quote from the Genie language guide, that seems to say the same thing:

    Genie is very similar to Vala in functionality but differs in syntax
    allowing the developer to use cleaner and less code to accomplish the
    same task.

    Like Vala, Genie has the same advantages:

    • Programs written in Genie should have have similar performance and resource usage to those written directly in Vala and C
    • Genie has none of the bloat and overhead that comes with many other high level languages which utilize a VM (e.g. Python, Mono,
      Java)
    • Classes in Genie are actually GObjects so Genie can be used for creating platform code like widgets and libraries where GObjects are
      required for binding to other languages

    If you don’t like TAB characters, you can use spaces instead:

    [indent=2] //two space indent instead of TAB
    init
      print "Hello World"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with some legacy code which uses something like this: void store_data(FILE
I'm working on some legacy code/database, and need to add a field to the
I am working on some legacy code which opens a file and adds binary
I'm working with some legacy test code which makes use of a TestSetup class
I am working on an application which has some legacy code. Here, there is
I'm working with some legacy code and I came across a function which is
I am working with some legacy HTML/JS code, where I need to attach to
I am working with some legacy code, and at some point there is a
I'm working in a WCF project and we need to reuse some legacy components
Whilst working on some generally horrible Javascript code this morning, I came across the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.