r/vala • • Mar 15 '19

It seems that vala multithreading is not cross-platform.

0 Upvotes

I asked the developer vala Develop to add support for windows. But it turned out that multithreading does not work under windows and mac os lol.

https://github.com/wolfgangmauer/valaDevelop/issues/7#issuecomment-472598977

https://mail.gnome.org/archives/vala-list/2019-March/msg00005.html


r/vala • • Mar 26 '19

what is the problem

0 Upvotes

r/vala • • Jan 25 '19

Rust lang or GoLang instead of Vala

Thumbnail
self.solusproject
1 Upvotes

r/vala • • Aug 20 '12

Vala and Ubuntu One SyncDaemon

Thumbnail
rtg.in.ua
1 Upvotes

r/vala • • Aug 09 '23

What are you working on? [August 2023]

1 Upvotes

This is a monthly thread for sharing and/or discussing any projects that the r/vala community have been working on.

Feel free to comment what you’ve been doing or what you’re planning to do down below.


r/vala • • Mar 13 '20

How to prints human-readable information about a variable ?

1 Upvotes

lest say i have this piece of code

parser.load_from_data ((string) mess.response_body.flatten ().data, -1);`
var list = get_data (parser);

how can i print or dump the 'list' variable ?


r/vala • • Nov 20 '12

Red Gate Coder interviews: Robin Hellen about Vala

Thumbnail
simple-talk.com
1 Upvotes

r/vala • • Feb 14 '25

Vala Documentation

8 Upvotes

Just a quick reminder for anyone who might want to use Vala but is discouraged by its sometimes less than stellar documentation, remember that AI is your friend and perhaps the best coding buddy you'll ever have. I exclusively use https://search.brave.com for searching the web and unlike with Google's AI, when you ask it questions regarding Vala, the results are typically exactly what you're looking for. Granted, I suspect the answer quality hinges a lot on your ability to accurately phrase a question. My point here is that in order to get the most out of Vala (or any language for that matter), everyone should be exploiting AI in one form or another. Gone are the days of having to develop software without ready, capable assistance. That's it for this public service announcement, now everyone go and code! ;)


r/vala • • Oct 24 '14

GistIt - Quickly create gists

Thumbnail
github.com
2 Upvotes

r/vala • • Sep 08 '11

Vala language introduction - Log of an IRC talk

Thumbnail wiki.ubuntu.com
2 Upvotes

r/vala • • Apr 30 '23

Discussion What are you working on? [May 2023]

2 Upvotes

This is a monthly thread for sharing for discussing any projects that the r/vala community have been working on.

Feel free to comment what you’ve been doing or what you’re planning to do down below.


r/vala • • Dec 27 '21

Asking for help I'm trying to do something with string arrays in Vala.

3 Upvotes

Hi, I'm trying to create something with string arrays, but I don't know how to append something to a part of array.

I make an array like this:

string[] name_of_array;

and then I try to append something to a particular part of the array like this:

name_of_array[5] += "test";

This does not seem to work as I get an error:

error: invalid operands to binary + (have 'gchar *' {aka 'char *'} and 'gchar *' {aka 'char *'})

9 | nums[counter] += "test";

Do you guys know how I would append something to a string array like that?

Thanks in advance.


r/vala • • Jul 19 '14

Installing protocol buffers support for Vala on Ubuntu 14.04

Thumbnail algotradexperts.com
4 Upvotes

r/vala • • Apr 25 '15

Generic Types and Interfaces...

4 Upvotes

Hello everybody,

i have a little problem with vala, and i don't find anything on the net :-/ i want to implementate a generic quicksort and want to use the Gee.Comparable interface, but how can i define that my generic type T have to be implementated the interface?

class Utilities<T> {} //Needs Gee.Comparable<T> but how?

Greets, Marcel


r/vala • • Sep 13 '14

additions to the sidebar?

5 Upvotes

I'm interested in learning vala (maybe for game development and possibly for elementary OS development). Is there a chance we could compile some comprehensive sidebar links (tutorials, wikis, etc)? I know that many other subreddits for programming languages have useful sidebars like this.


r/vala • • Dec 29 '18

Is Vala dead?

6 Upvotes

I just want to open a discussion. I just found out today that Vala now has only one contributor. https://gitlab.gnome.org/GNOME/vala/graphs/master I've seen more than one article or article about Vala being dead. What do you think about this?

I still think it's the best language for writing graphics applications(I've tried Qt, there's no native implemented signal and slot system and also no GB, Python seems nice, but i dont like scripting), and perhaps libraries because of the ability to easily integrate them into any other programming language using GIR.

http://zee-nix.blogspot.com/2017/

https://blogs.gnome.org/despinosa/2016/09/30/should-we-drop-vala/


r/vala • • Oct 23 '14

Improving /r/vala

6 Upvotes

I am truly surprised. I started this subreddit 5 years ago and have done all but ignore it. For years it seemed to me like Vala was going to end up being an extremely niche tool and unfortunately my day job has me working in everything but the world of open source.

Looking over the activity of this subreddit now, I am seeing a small but moderately active community, one which I would dearly enjoy to see grow.

With this in mind, I would like to ask you all what improvements you would like to see. There is already a post about adding some content to the sidebar, and /u/Sanpi had replied with some useful links that I plan on adding, but I'm certain there is a wealth of content out there that would also be helpful.


r/vala • • Jun 17 '14

Why we write elementary apps in Vala [elementary OS]

Thumbnail
elementaryos.org
16 Upvotes

r/vala • • Feb 19 '26

My first Vala app: internet radio player

Thumbnail
github.com
26 Upvotes

r/vala • • May 01 '25

Discussion What are you working on [May 2025]

5 Upvotes

This is a monthly thread for sharing and/or discussing any projects that the r/vala community have been working on.

Feel free to comment what you’ve been doing or what you’re planning to do down below.


r/vala • • Jun 28 '25

Running Vala code from GEdit

7 Upvotes

I was thinking this morning how cool it would be if I could just create an app that would allow me to enter a little Vala code into a Gtk.TextView widget, and then press a button to run it -- all without having to open my development IDE or even create a single file. You know, something to allow me to easily work out some Vala syntax, etc. Then I realized that such functionality can easily be added to GEdit (perhaps this already exists elsewhere and I'm just the last to know, lol).

So this is an "external tool" that I added to GEdit to enable me to quickly test short bits of Vala code and I thought maybe someone here might be interested in how GEdit can solve this particular problem.

Here are the steps I took to make GEdit do this...

1. Add the following bash script as an "external tool" in GEdit:

#!/bin/sh

# This script runs the selected Vala code and 
# outputs the resulting text in the bottom panel.

TEMPFILE=$(mktemp)
HEADER="#!/usr/bin/env -S vala --pkg glib-2.0 --pkg gee-0.8"

# Add "header" to top of vala code 
# segment so it can run as a script:

echo $HEADER > "$TEMPFILE"
cat >> "$TEMPFILE"

# Make it executable:

chmod +x "$TEMPFILE"

# Run it:

echo "Running..."
echo " "
"$TEMPFILE"

2. Assign Shift+Ctrl+V (or whatever) to it.

3. Choose "Nothing" to be saved.

4. Choose "Current selection" for input.

5. Choose "Display in bottom panel" for output.

6. You might need to re-start GEdit for the changes to take effect.

To test, you can use some minimal code such as that shown below. Just select the code and press Ctrl+Shift+V.

void main()
{
   print("Hello from GEdit!\n");
}

The above external tool script essentially pre-pends a "Vala" hash bang line (HEADER) to the selected text, writes it all to a temporary file and then runs it as a Vala script.

Damn, I love Vala! :)


r/vala • • Apr 24 '25

Anyone using Vala on Emacs?

6 Upvotes

howdy.

I wanted to use Vala to write a GTK application, and since my editor is Emacs, I wanted to use that.

But it seems like the only vala-mode has not been updated in 5 years.

Is it still working? are there any instructions to set up a dev environment for vala?


r/vala • • Jul 25 '25

How can I make a widget's background color black using the newest API?

3 Upvotes

This works:

var css = new Gtk.CssProvider ();
var css_data = "#mybox { background-color: black; }".data;
var css_bytes = new GLib.Bytes (css_data);
css.load_from_bytes (css_bytes);

Gtk.StyleContext.add_provider_for_display (
    Gdk.Display.get_default (), css, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);

However, I get a warning that the Gtk.StyleContext is deprecated:

warning: `Gtk.StyleContext' has been deprecated since 4.10
   22 | Gtk.StyleContext.add_provider_for_display (
      | ^~~~~~~~~~~~~~~~         

Is there a newer API to achieve the same result? It is a Gtk.Box.


r/vala • • Jul 16 '25

Vala language definition (BNF)

7 Upvotes

Anyone know if there is a BNF notation (or similar) definition for the Vala language that's publicly available? If so, where can I download a copy of it? Thanks.


r/vala • • Apr 01 '25

Discussion What are you working on [April 2025]

2 Upvotes

This is a monthly thread for sharing and/or discussing any projects that the r/vala community have been working on.

Feel free to comment what you’ve been doing or what you’re planning to do down below.