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

  • Home
  • SEARCH
  • 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 7009579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:52:51+00:00 2026-05-27T21:52:51+00:00

The relationship between Vala and Genie are much like that between js and CoffeeScript.

  • 0

The relationship between Vala and Genie are much like that between js and CoffeeScript.
js and cs can compile from each other with $ coffee -bc and $ js2coffee. How about Genie and Vala here?

  • 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-05-27T21:52:52+00:00Added an answer on May 27, 2026 at 9:52 pm

    You could use valac –dump-tree to convert from Genie to Vala. Converting from Vala to Genie is a bit more complicated since the Vala.CodeWriter class in libvala only outputs Vala, not Genie. It would probably be possible to create something which outputs Genie by subclassing Vala.CodeVisitor (just like Vala.CodeWriter does), but nobody has done so yet.

    That said, I have absolutely no idea why you would want to. You can freely mix Genie and Vala files within the same valac invocation.

    Modifying an example from http://live.gnome.org/Genie, put this in mix-genie.gs:

    [indent=4]
    
    class Foo : Object
        prop a : int
    
        init     
            print "foo is intitialized"
    
        final
            print "foo is being destroyed"
    
        /* only class properties may be set in creation methods */    
        construct (b : int)
            a = b
    
        /* only class properties may be set in creation methods */        
        construct with_bar (bar : int)
            a = bar
    

    And this in mix-vala.vala:

    private static int main (string[] args) {
      var foobar = new Foo (10);
      var foobar2 = new Foo.with_bar (10);
    
      return 0;
    }
    

    And compile with something like

    valac -o mix mix-genie.gs mix-vala.vala
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What's the relationship between: android.opengl javax.microedition.khronos.egl javax.microedition.khronos.opengles I can't tell from the Android documentation.
My relationship between the parent and child is that they are connected by an
I can set the relationship between View Model and view through following DataContext syntax:
In WPF: Can someone please explain the relationship between DependencyProperty and Databinding? I have
Can anyone summarize the relationship between the following items? Content View View Controller Nib
What is the relationship between a random variable with normal distribution (N(0,1)) and other
I have m:n relationship between users and tags. One user can have m tags,
I'm trying to determine the relationship between default values and the has_foo() methods that
How do games with gravity handle the relationship between moving things like players, monsters,
I have a parent-child relationship between Teacher and StudentReport . Each StudentReport has a

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.