Re: [Vala] Is there any Vala reference manual available ?

2017-09-01 Thread Mario Daniel Ruiz Saavedra
http://valadoc.org for API references, and
https://wiki.gnome.org/Projects/Vala/Manual for a full manual on syntax and
capabilities

El 1 sept. 2017 5:47 AM, "Manish Jain" 
escribió:

Hi,

On FreeBSD 10.3 amd64, I am trying to pick up proficiency in Vala, and
am wondering if Vala has some technical documentation, something like
MSDN help for VC++/VB.

I often need to check out signatures of API functions ( e.g.
Thread.Create() ), and am having to resort to google searches and
trial-and-error - which surely is not a pleasant thing.

I installed DevHelp which seems to be just the thing I needed. It has
documentation for almost all GNOME programming areas and even has a
section titled Vala Reference. The Vala section, however, is entirely empty.

Thank you.
Manish Jain
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Just a news I've read about popularity langage

2016-07-21 Thread Mario Daniel Ruiz Saavedra
For a package manager, GNU Guix could be of use. Regarding a standard library, 
that's GLib.
 
 
  El jue., jul. 21, PM a 16:56, Dev_NIX escribió:   I 
understand your point, but maybe (for example) nodejs have a lower
learning curve and a faster way to get work done because it have a great
package manager.

As fas as I never used Vala beyond multiple personal little experiments, I
feel that could be tools to make the life of starters better. For example,
there is a *great* project that helped me in every step, Autovala.

One question: is there a "standard" Vala library/classes?

--

*  EOF  *

2016-07-21 18:25 GMT+02:00 pelzflorian (Florian Pelz) <
pelzflor...@pelzflorian.de>:

> On 07/21/2016 05:12 PM, Guillaume Poirier-Morency wrote:
> > Le jeudi 21 juillet 2016 à 17:43 +0300, Aleksandr Palamar a écrit :
> >>    3. Package Manager, Vala already has a nice place with lot of nice
> >> VAPIs
> >>    (https://github.com/nemequ/vala-extra-vapis), but better approach
> >> to
> >>    have own package manager with auto-resolving of dependencies (like
> >> NPM in
> >>    Node or Cargo in Rust).
> >
> > I would really enjoy a source package manager to retreive bindings and
> > external Vala projects. So far, I'm happy with Meson and subprojects.
> >
>
> Why a custom package manager?
>
> For the apps / libraries there is the distribution’s package manager.
> Please do not make yet another package manager for those. This is a
> solved problem.
>
> What remains are VAPIs. Why is a custom package manager a better
> approach than the vala-extra-vapis you are linking to? Your
> distribution’s package manager should take care of dependency resolution
> for the libraries the VAPIs are for. It also should take care of
> downloading the library’s source code when requested.
>
> Regards,
> Florian Pelz
> ___
> vala-list mailing list
> vala-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/vala-list
>
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list
  
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] [OT] Vala -> C#

2016-03-28 Thread Mario Daniel Ruiz Saavedra
Don't let your dreams be dreams, check this: 
https://github.com/chebizarro/LibDotNet 

Mario Daniel Ruiz Saavedra  
Estudiante Ing. Sistemas - Universidad del Norte mru...@uninorte.edu.co - 
twitter.com/desiderantes -
joindiaspora.com/u/desiderantes


El Lunes, 28 de marzo, 2016 17:48:19, Edwin De La Cruz <edwinsp...@gmail.com> 
escribió:


>
>
>2016-03-28 16:19 GMT-05:00 Edwin De La Cruz <edwinsp...@gmail.com>:
>> 2016-03-26 9:59 GMT-05:00 Steven Oliver <oliver.ste...@gmail.com>:
>>> If having an IDE is high on your list check out builder. It's support for
>>> Vala is getting better every release. They are also really good about taking
>>> new contributors.
>>>
>>> Thank you,
>>> Steven N. Oliver
>>>
>>>
>>>
>>> On Thu, Mar 24, 2016 at 7:49 PM -0700, "Edwin De La Cruz"
>>> <edwinsp...@gmail.com> wrote:
>>>
>>>> Dear. I'm using valac for quite some time, although work has been left
>>>> aside, I'm starting to use c #, I find it more productive but I refuse
>>>> to use it and recognize it, but it is.
>>>>
>>>> Among the ideas that came to my mind, including _mono_, I thought ...
>>>> because someone does not develop something similar to c # but Vala,
>>>> who has the same name functions, classes, methods, etc so if I have
>>>> one codigo.cs simply change it by codigo.vala and compile directly.
>>>>
>>>> I know it's an idea a little crazy and not all libraries can be
>>>> imported, but whether it would be much easier and productive to have
>>>> such a code.
>>>>
>>>> I program in C # using their mimas classes, but at the time of
>>>> compiling all transforms Vala.
>>>>
>>>> It would be great as well.
>>>>
>>>> I have made the task of doing that only with the most basic functions,
>>>> just to prove, as a hobby.
>>>>
>>>> In the years that I go with Vala language seems very much potential,
>>>> but lacks an IDE, MonoDevelop no longer supports it, also lacks more
>>>> documentation, easier to use libraries as well as in c #.
>>>>
>>>> Sorry for the extension of this message and perhaps not relevant but
>>>> needed to relieve the sadness of having to change Vala by c #.
>>>>
>>>> See you soon.
>>>>
>>>>
>>>> Mis proyectos de software libre en:
>>>> Github - edwinspire
>>>> ___
>>>> vala-list mailing list
>>>> vala-list@gnome.org
>>>> https://mail.gnome.org/mailman/listinfo/vala-list
>>
>>
>> Well, actually the IDE is not a priority, I've driven with gedit well,
>> that's no problem.
>>
>> Even I became a microide, what helps me is to compile and link the
>> binary libraries which depends with a simple click.
>>
>> Where I see the difficulty, or rather the obstacles to develop faster,
>> is in the documentation, examples, and functions that facilitate the
>> work.
>>
>> For example, to send an email in SMTP in c # is a matter of a couple
>> of lines and ready. With Vala me it was very difficult.
>>
>> Worse even if my applications development on the Linux (GNU / Debian)
>> but to deliver them to production will run on Windows.
>>
>> Last week tried C # to replace some parts where used Vala and I found
>> it very easy with Monodevelop.
>>
>> In 2 days with c # did the same as 8 days with Vala.
>>
>> What I suggested was to make a package that has the same functions and
>> classes that exist in C # but Vala, with the same names, which is
>> identical, so it would be very easy to move from one language to
>> another.
>>
>>
>> Mis proyectos de software libre en:
>> Github - edwinspire
>
>I meant to do something Como this:
>https://github.com/edwinspire/VSharp It is just an example , although
>it does not work but can best illustrate my idea.
>
>
>Mis proyectos de software libre en:
>Github - edwinspire
>___
>vala-list mailing list
>vala-list@gnome.org
>https://mail.gnome.org/mailman/listinfo/vala-list
>
>
>
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Get CREATION DATE OR TIME of file

2016-01-09 Thread Mario Daniel Ruiz Saavedra
It's not currently possible to do that on most systems, take a look at File 
creation times [LWN.net]
|   |
|   |   |   |   |   |
| File creation times [LWN.net]By Jonathan Corbet July 26, 2010 Linux systems, 
like the Unix systems that came before, maintain threedifferent timestamps for 
each file.  |
|  |
| Ver en lwn.net | Vista previa por Yahoo |
|  |
|   |


 
Mario Daniel Ruiz Saavedra  Estudiante Ing. Sistemas - Universidad del Norte 
mru...@uninorte.edu.co - twitter.com/desiderantes -
joindiaspora.com/u/desiderantes 

El Sábado, 9 de enero, 2016 8:34:17, raum <r...@no-log.org> escribió:
 
 

 Hi,

Problem between windows and linux API,  probably...

Either you can take a look to one of my project wich worked on linux

https://github.com/Raumy/check_fs

Regards
Le 9 janv. 2016 10:30, Chris Daley <chebiza...@gmail.com> a écrit :
>
> Hi all,
>
> One possible solution to this problem that would be Windows only is to
> retrieve the file creation date via the Windows API. The following code is
> untested as I am still setting up my Winodws VM but you might be able to
> try it out in the meantime. You will need to install the Windows SDK if you
> haven't already and I assume you are using mingw. A caveat, I haven't used
> the Windows API in a long time so you may need to double check the headers
> to make sure the function definitions are correct - this is for version
> 7.0. I'm assuming it's possible, as the parts of the Windows API you would
> be linking to are C libraries and this is more or less how you would do it
> in C# but like I said - this is an untested thought experiment that might
> be a total NO-OP. The only thing I could find on the internets was from the
> mailing list quite a few years back -
> http://comments.gmane.org/gmane.comp.programming.vala/2867 - but it does
> suggest that this is entirely possible.
>
> Anyway, the code...
>
> // All of this is Windows API definitions which could be put into a
> separate vapi
>
> // The CreateFile flag for reading
> const int64 GENERIC_READ = 0x8000;
>
> // Contains a 64-bit value representing the number of 100-nanosecond
> intervals since January 1, 1601 (UTC).
> struct FileTime {
>     // The low-order part of the file time.
>     int64 dwLowDateTime;
>     // The high-order part of the file time.
>     int64 dwHighDateTime;
> }
>
> struct SystemTime {
>    int64 wYear;
>    int64 wMonth;
>    int64 wDayOfWeek;
>    int64 wDay;
>    int64 wHour;
>    int64 wMinute;
>    int64 wSecond;
>    int64 wMilliseconds;
> }
>
> [CCode(cheader_filename = "WinBase.h ")]
> public extern bool GetFileTime(void* file_handle,
>     out lpCreationTime,
>     out lpLastAccessTime,
>     out lpLastWriteTime
> );
>
> [CCode(cheader_filename = "WinBase.h ")]
> public extern void CreateFile(
>     string lpFileName,
>     int64 dwDesiredAccess,
>     int64 dwShareMode,
>     void* lpSecurityAttributes,
>     int64 dwCreationDisposition,
>     int64 dwFlagsAndAttributes,
>     void* hTemplateFile
> );
>
> [CCode(cheader_filename = "WinBase.h ")]
> public extern bool FileTimeToSystemTime (FileTime filetime, out SystemTime);
>
> public static int main (string[] args) {
>
>    void* testfile = CreateFile("./test.vala", GENERIC_READ,0, null, 0, 0,
> null);
>    FileTime time;
>    bool success = GetFileTime(testfile,out time, null, null);
>
>     if (success) {
>    SystemTime systime;
>    FileTimeToSystemTime (time, out systime);
>    message ("Success: File created on %02d/%02d/%d %02d:%02d",
> systime.wMonth, systime.wDay, systime.wYear, systime.wHour,
> systime.wMinute);
>     } else {
>   message ("Something went wrong");
>    }
> }
>
> This would need to be compiled with the right paths set to the Windows SDK
> location and linked against Kernel32.lib.
>
> Like I said, it's untested (yet) and I won't have time until next week to
> look at it again, so caveat emptor. If you're wanting to make a nicer
> demonstration out of it, you could save the Windows extern functions and
> struct definitions to a vapi file - like windows.vapi - to make it look
> less complicated (which it is, compared to the C code that would achieve
> the same effect).
>
> Let me know if you have any success.
>
> Cheers
> Chris
>
> 2016-01-08 12:35 GMT-08:00 Edwin De La Cruz <edwinsp...@gmail.com>:
>
> > Lametablemente no way? At least not directly using Vala , I understand
> > what I have read so far.
> > I keep looking for any option , since it was very important for me to
> > do in Vala and convince some people that la

Re: [Vala] Settings.with_path help

2015-12-27 Thread Mario Daniel Ruiz Saavedra

Remember to install your gschemas  https://wiki.gnome.org/HowDoI/GSettings
 
  El dom., dic. 27, AM a 8:38 AM, Edwin De La Cruz 
escribió:   Best regards.
I'm trying to reproduce the example shown in xx but using
new_with_path and failed to run, shows me the following message

(process : 29989 ) : GLib - GIO -ERROR ** : Settings schema '
set.gschema.xml ' is not installed


xml name is set.gschema.xml and is in the same directory as the executable .

Of example only thing I changed was the constructor
    var settings = new Settings.with_path ( " org.foo.MyApp.Window " ,
"/ home / edwinspire / Documents / development / vala /") ;

Not how it work , I searched in google but can not find examples to help me.

I hope you can help me , thanks.


Mis proyectos de software libre en:
Github - edwinspire
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list
  
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Treating a uint as a reference type?

2015-07-30 Thread Mario Daniel Ruiz Saavedra
Maybe defining an IntegerRank it would work

Enviado desde Yahoo Mail en Android

De:Alan Manuel Gloria almkg...@gmail.com
Fecha:jue., jul. 30, AM a 10:28 AM
Asunto:Re: [Vala] Treating a uint as a reference type?

I tried that, but it loses the automatic insertion of ref and unref
function calls.  The entity_dup and entity_free functions are never called
in the example I gave, and Vala complains that it can't transfer ownership
using (owned) - there is no reference to transfer.

Semantically, an Entity is a reference to a row in an entity component
system; it just happens to be implemented using uint.  I want to do this
because when I delete a row in the ECS table, I want the row to be retained
as deleted until all references to it are dropped, so that I avoid the
missile suddenly chases a new entity problem.



On Thu, Jul 30, 2015 at 10:56 PM, yannick inizan inizan.yann...@gmail.com
wrote:

 why don't you subclass uint ?

 public struct Entity : uint {
 // these methods are required at C-side.
 internal Entity dup() { return this; }
 internal void free() { delete this; }
  // your code
 }

 2015-07-30 16:43 GMT+02:00 Alan Manuel Gloria almkg...@gmail.com:

 Hi Vala World,

 I was wondering if it's possible to implement a Vala class as a C-side
 guint, but have Vala emit calls to a ref and unref function, and to treat
 a
 C-side 0 as a Vala-side null.

 Basically I want to make something like this:

 // Vala
 static
 Entity? mine = null;

 static
 void
 set_mine(owned Entity e) {
  mine = (owned) e;
 }

 static
 void
 do_stuff() {
  Entity e = Entity.create();
  set_mine(e);
 }

 And get it compiled to C:

 /* C */
 guint mine = NULL;
 void
 set_mine(guint e) {
  if (mine != NULL) entity_unref(mine);
  mine = e;
 }

 void
 do_stuff() {
  guint e = entity_create();
  set_mine(entity_ref(e));
 }

 So far, I've tried using a [Compact][CCode (cname=guint)] class, but
 that
 is passed around as a guint* and Vala feels obliged to add a typedef
 struct _guint guint. which fails since guint is already defined as
 unsigned int.

 I've also tried using a [CCode (cname=guint)] extern struct, but that
 causes any ref_function and unref_function attributes to be ignored, and
 still adds typedef struct _guint guint.

 Is it possible to have Vala remove the * in reference types and still
 have it use ref/unref functions and have it remove typedef?

 --

 I'm trying to make an Entity Component System, and ensure that destroyed
 entities are not reused until all references to them are destroyed.
 Entities are normally implemented as simple integer ID's, which are
 semantically a pointer to a row of component slots.

 My current design has each attached component add a reference to the
 entity, and the entity manager also adds a reference; when an entity is
 destroyed, the entity manager detaches all components (which cause each
 component to drop the reference) and drops its own reference; this frees
 the entity unless another reference is kept elsewhere.  If a reference to
 an entity is kept elsewhere, it can then be queried as to whether it has
 been destroyed without worrying that its ID has been re-allocated to a
 freshly-made entity (for instance, consider a missile locked on to some
 game entity; if the target dies, we want the missile to know it has no
 longer any valid target, not have it suddenly chase another entity that
 happened to get allocated the same ID as the missile's original target in
 a
 different subsystem).

 In my current design entities are compact classes with an ID and a
 refcount
 and custom ref_function and unref_function, and freed entities are
 retained
 in a freelist to reuse the ID.  I was wondering if I could make entities
 just the ID itself, and store the refcount in a separate array.

 I could possibly live with passing around Entity*, and use (guintptr) to
 extract the ID from the pointer, but I worry since C does not guarantee
 that a pointer can retain all possible guintptr values.  guintptr can hold
 any pointer type, but a pointer type is not necessarily capable of holding
 any guintptr.

 Sincerely,
 AmkG
 ___
 vala-list mailing list
 vala-list@gnome.org
 https://mail.gnome.org/mailman/listinfo/vala-list



___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] returning async func from a callback

2015-01-26 Thread Mario Daniel Ruiz Saavedra
What about setting the Cancellable as a default null parameter? Something like:

public async book init(string[] args, Cancellable? cancellable = null)

Enviado desde Yahoo Mail con Android

___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] A brand new build system

2014-05-16 Thread Mario Daniel Ruiz Saavedra
No love for Bake? https://launchpad.net/bake

 
___
Mario Daniel Ruiz Saavedra
Estudiante Ing. Sistemas - Uninorte
mru...@uninorte.edu.co - identi.ca/desiderantes



 El Viernes, 16 de mayo, 2014 11:29:42, rastersoft ras...@rastersoft.com 
 escribió:
  Hi:
 
 I'm the author of autovala. Currently it is a command-line only tool, 
 but I'm working on a gedit plugin that will integrate autovala inside, 
 allowing for a much better workflow.
 
 Anyway, about being it much powerful, remember that nearly all is 
 done 
 automagically by autovala, and, usually, you don't need to manually edit 
 the .avprj files. Just run autovala update and build your project. 
 Autovala will search automatically for source files, resources and more.
 
 On 16/05/14 17:46, geovanisouz...@gmail.com wrote:
  Guys, thanks for replies.
 
  Calvin, I don`t intend to create whole build from sctrach. I was thinking
  in a kind of frontend, easy to understand, with nice syntax, 
 that
  dispatch commands and scripts to autotools, make, cmake and all this
  stabilished and reliable software. I know that doesn't need to reinvent 
 the
  wheel, but, just let it more soft... :)
 
  When I started this thread, I don't knew autovala. I don't use it 
 in deep,
  but seems much powerful to me. I understood that it make a kind of
  proprocessing, generating the make files.
 
  My idea is similar, but I want to hide the complexicity of generated make
  files, putting it in a build/ or /tmp/ folder, starting other tools to make
  it happen. This way, existing Makefile's, ./configure's and others 
 can be
  used too, preserving the work projects, but adding more management, like a
  public online package repository, bundling, deploying, and whatever...
 
  What you think about it?
  ___
  vala-list mailing list
  vala-list@gnome.org
  https://mail.gnome.org/mailman/listinfo/vala-list
 
 
 -- 
 Nos leemos
                  RASTER    (Linux user #228804)
 ras...@rastersoft.com              http://www.rastersoft.com
 
 
 ___
 vala-list mailing list
 vala-list@gnome.org
 https://mail.gnome.org/mailman/listinfo/vala-list
 
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


[Vala] Little things in Vala design?

2013-06-16 Thread Mario Daniel Ruiz Saavedra
Looking at [http://lwn.net/SubscriberLink/553131/f8a66b10c5cbd80f/] i wonder, 
how much of those little quirks are shared by vala? Can those be axed?

___
Mario Daniel Ruiz Saavedra
Estudiante Ing. Sistemas - Uninorte
mru...@uninorte.edu.co - identi.ca/desiderantes 
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Handling multiline strings

2013-06-10 Thread Mario Daniel Ruiz Saavedra
Use: string new = Line 1 and %s\nLine 2 and %s\nLine 3\nLine 
4.printf(var1,var2);
___
Mario Daniel Ruiz Saavedra
Estudiante Ing. Sistemas - Uninorte
mru...@uninorte.edu.co - identi.ca/desiderantes

-Original Message-
From: Satyajit Sahoo satyajit.ha...@gmail.com
Sender: vala-list vala-list-boun...@gnome.org
Date: Mon, 10 Jun 2013 18:22:49 
To: vala-listvala-list@gnome.org
Subject: [Vala] Handling multiline strings

Hi. I'm trying to write a multiline string into a file,

e.g.

string new = Line 1 and %s

Line 2 and %s

Line 3

Line 4.printf (var1, var2);

The problem is, when I write it to the file, the lines from the 2nd line,
have tab characters preceding them. I want to keep the idention level of
the code to improve redability. How can I make it ignore the tabs used for
code indention while writing to the file?


-- 
Satyajit Sahoo
Profile - Facebook http://facebook.com/satya164,
Google+http://plus.google.com/u/0/114564489020097923600
Artwork - DeviantArt http://satya164.deviantart.com
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Mad question - C to Vala

2013-05-22 Thread Mario Daniel Ruiz Saavedra
I asked that some time ago, and no, there isn't anything like that, but i've 
seen similar efforts with other languages, like Retronator's Automagically, 
which translates from Obj-C to C#.
___
Mario Daniel Ruiz Saavedra
Estudiante Ing. Sistemas - Uninorte
mru...@uninorte.edu.co - identi.ca/desiderantes

-Original Message-
From: Donn donn.in...@gmail.com
Sender: vala-list vala-list-boun...@gnome.org
Date: Wed, 22 May 2013 14:13:59 
To: vala-listvala-list@gnome.org
Subject: [Vala] Mad question - C to Vala

I foresee the answer, but heck: Is there some program to feed a gobject 
C source into that will spit out a vala source file? I'd love to see 
certain sources in Vala which fits my brain so much better.

\d

-- 
Cellery- 082 343 5978
Phoney - 028 272 9033
@ddy - donn.in...@gmail.com
webby - http://ingleink.co.za
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


[Vala] Static Analyzer for Vala

2013-03-31 Thread Mario Daniel Ruiz Saavedra
Is out there anything like Frama-C(frama-c.com) for Vala? Yes i could use 
Frama-C over the C generated code, but it would diminish the convenient 
abstraction that Vala provides


Mario Daniel Ruiz Saavedra
Estudiante Ing. Sistemas - Uninorte
mru...@uninorte.edu.co - identi.ca/desiderantes

___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Autovala: new program for developers

2013-03-30 Thread Mario Daniel Ruiz Saavedra
Maybe you could create something similar for GNU Automake. I'd be greatly 
thankful.

Mario Daniel Ruiz Saavedra
Estudiante Ing. Sistemas - Uninorte
mru...@uninorte.edu.co - identi.ca/desiderantes

-Original Message-
From: rastersoft ras...@rastersoft.com
Sender: vala-list vala-list-boun...@gnome.org
Date: Sat, 30 Mar 2013 01:34:04 
To: vala-list@gnome.org
Subject: [Vala] Autovala: new program for developers

Hi all:

Several days ago, another user commented in Elementary Dev list that
using CMake with Vala was quite hard and difficult.

After thinking about it, I reached the conclusion that using CMake is
quite boring and repetitive, so I said to myself: why not creating a
tool that automatically generates the CMakeLists.txt files, based on
several rules and heuristics?

The result is Autovala. It not only deduces where to put each file and
how to compile the binaries or libraries from the sources, but also
automagically finds the packages used in each project, and passes them
to the compiler. It also creates automatically the .gir and .vapi files
for libraries.

You have a longer and more precise description in the README file, in
the github repository:

https://github.com/rastersoft/autovala

It is still an alpha version, but fully usable. It still lacks some
minor things, like generating the .pc file for pkg-config, and other
things. For those I will need some help. If someone volunteers...

Enjoy it!

-- 
Nos leemos
 RASTER(Linux user #228804)
ras...@rastersoft.com  http://www.rastersoft.com

___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Autovala: new program for developers

2013-03-30 Thread Mario Daniel Ruiz Saavedra
Wow, thanks!
--Mensaje original--
De: Evan Nemerson
Para: Mario Daniel Ruiz Saavedra
CC: rastersoft
CC: vala-list@gnome.org
Asunto: Re: [Vala] Autovala: new program for developers
Enviado: 30 de mar, 2013 6:09 PM

On Sat, 2013-03-30 at 21:58 +, Mario Daniel Ruiz Saavedra wrote:
 Maybe you could create something similar for GNU Automake. I'd be greatly 
 thankful.

You might want to take a look at Bake [1].  It looks quite nice (the
recipes are very simple--check out the tests folder), and it's written
in Vala.


[1] https://launchpad.net/bake




Mario Daniel Ruiz Saavedra
Estudiante Ing. Sistemas - Uninorte
mru...@uninorte.edu.co - identi.ca/desiderantes

___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] ANNOUNCE: Val(a)IDE 0.7.2

2012-12-28 Thread Mario Daniel Ruiz
I love you (in a non-erotic, non-romantic way)
Enviado desde un dispositivo móvil

-Original Message-
From: tarn...@tarnyko.net
Sender: vala-list-boun...@gnome.org
Date: Fri, 28 Dec 2012 13:12:16 
To: vala-list@gnome.org
Subject: [Vala] ANNOUNCE: Val(a)IDE 0.7.2

Hi folks, 

I'm very happy to announce today's release of Val(a)IDE 0.7.2. 

Val(a)IDE is a small but fast IDE for the Vala language. It provides syntax 
highlighting, autocompletion, project management... 

This release fixes lots of bugs (so the IDE shouldn't crash anymore, and 
behave better on Win32) and notably improves autocompletion. 

 Summary of changes made and binary download links can be found at :
http://www.tarnyko.net/en/?q=node/24
 Alternate download page :
http://www.tarnyko.net/dl/valaide.htm 

Detailed changes can be tracked on Launchpad :
https://code.launchpad.net/~tarnyko/valide/trunk 

Regards,
Tarnyko
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Operating system project

2012-11-17 Thread Mario Daniel Ruiz
Have you watched elementaryos?

I think you can work with them, or at least, use some of their work as the 
basis to yours. However, if you plan to make a serious distribution , and not 
just a ubuntu spin, you should watch the new stuff, like Wayland or udev-ng, 
and plan for the future, not for the present.

Congrats in your journey
Enviado desde un dispositivo móvil

-Original Message-
From: Drake Miller kedos.proj...@gmail.com
Sender: vala-list-boun...@gnome.org
Date: Thu, 15 Nov 2012 01:08:59 
To: vala-list@gnome.orgvala-list@gnome.org
Subject: [Vala] Operating system project

Operating system project

Hi all ,
I've been working on a new OS called Kedos
Its an ubuntu based distribution with independent apps made by Kedos Team
I've chose Ubuntu Precise pangolin as a system base because its a powerful OS , 
with an LTS Support so users will be able to get updates for a years from now .

Kedos is a really simple project , that works on simplifying linux and add 
ability to do a lot of things with no need to use Terminal .

It uses apps that are made by Kedos team with vala programming language in 
order to control the design of the apps add some powerful features, for 
example: Widget Center and Notification center in Kedos window manager Dropd.

I've improved application designing with a framework API  that contains all 
what developer needs to build a great application , and with a simple framework 
API we could decrease the time that developer needs to build an app.

We could also use API's from a great tools like Gtk , Clutter , etc ... to 
create a such great simple and powerful apps.


I have finished a lot of tools and apps for kedos using Celeste framework and 
And other tools.

And They are available on launchpad   :
Http://www.launchpad.net/~kedos-project
 
And now i'm currently working on a HIG for kedos
I'll link it on launchpad as soon as it get finished

Screenshots of current desktop;
http://www.deviantart.com/download/333587974/kedos_screenshot_by_sakoka3-d5ily4m.png
http://www.deviantart.com/download/333589695/another_kedos_screenshot_by_sakoka3-d5ilzgf.png


Video showing window manager :
http://www.youtube.com/watch?v=KQGrOSexX1Y


Thank you very much for being interested in the project
Email me if you want to collaborate.
Drake miller


Sincerely , 
Drake miller 
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] getopt

2012-10-19 Thread Mario Daniel Ruiz
If you want to get the args passed to your program, remember, its int 
main(string args){}
Enviado desde un dispositivo móvil

-Original Message-
From: David Boesner david.boes...@gmail.com
Sender: vala-list-boun...@gnome.org
Date: Thu, 11 Oct 2012 14:18:23 
To: vala-list@gnome.org
Subject: [Vala] getopt

___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list

___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Rv: C to Vala

2012-09-21 Thread Mario Daniel Ruiz Saavedra
Doing some research, i found something relevant: http://razum.si/automagical/

It's not the same, but uses the same principle i've thought, declaring some 
rules about when finding a class declaration, translate; etc. Shouldn't be that 
hard, for a good declarative programmer (i'm not one, not even a coder). No 
bytecode needed, for i wasn't talking about decompiling. The idea is, given a C 
code with total use of GLib, can that be translated to Vala code? I wonder if 
there is some real problem holding back that possibility.


 De: Gilzad Hamuni gil...@gmx.net
Para: vala-list@gnome.org 
Enviado: Viernes, 21 de septiembre, 2012 10:33:38
Asunto: Re: [Vala] Rv: C to Vala
 
If I understand correctly, that approach requires an intermediate bytecode 
either from Java or from .NET to finally create sourcecode.

Alas, in the OP's case the best we can get would be native machine code (being 
different for x64, i386, arm, etc) so the parser wouldn't be able to stick to 
one static 'syntax', even if it would support Vala as an output.

I'm guessing here, but: If it's possible to automatically generate vapi's out 
of g-object-based libraries, then a similar tool might be able to create 
vala-code out of g-object-based sourcecode. But I'm really just guessing here, 
not knowing anything about the effort behind it.
At least the need for such a tool (that turns C-code into Vala just before 
C-code is generated again) proves that vala is a favourable language :)


Interesting though that XMLVM can create Objective-C-code.


Gilzad








 Original-Nachricht 
 Datum: Thu, 20 Sep 2012 12:09:39 -0700
 Von: Eric Gregory e...@yorba.org
 An: Mario Daniel Ruiz Saavedra desideran...@rocketmail.com
 CC: Vala List vala-list@gnome.org
 Betreff: Re: [Vala] Rv: C to Vala

 On Thu, Sep 20, 2012 at 12:01 PM, Mario Daniel Ruiz Saavedra 
 desideran...@rocketmail.com wrote:
 
 
 
  Unlikely. You are confusing translate with transform. Please argue
  properly.
 
 
 
 He's right though -- the relationship between C and Vala is not 1:1 unless
 the C code was generated by valac.  Converting arbitrary C code into Vala
 is possible, but unwieldy.
 
 A professor from my college days did a project that converts between
 various languages.  It's quite complex, but amazingly all the conversion
 is
 done in XSLT.  I'd recommend checking it out to see what kind of territory
 you're wading into here: http://xmlvm.org
 
  - Eric
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Rv: C to Vala

2012-09-20 Thread Mario Daniel Ruiz Saavedra
valac takes Vala code, analyzes it, and generates C code accordingly. What 
hinders it from making it the other way (taking c code which heavily uses GLib, 
and turning it into Vala Code)? Also, whould prove correctness, as doing Vala 
to C and then C to Vala should produce similar code.
- Mensaje original -
De: Landon Blake sunburned.surve...@gmail.com
Para: Mario Daniel Ruiz Saavedra desideran...@rocketmail.com
CC: 
Enviado: Jueves, 20 de septiembre, 2012 11:38:53
Asunto: Re: [Vala] Rv: C to Vala

Mario:

I've just started using Vala, but I think I can take a stab at your questions.

Vala is compiled to C, C is not compiled to Vala. Therefore, I don't
think there would be an easy and automated way to convert C code into
Vala code.

Does that make sense?

Landon

On Wed, Sep 19, 2012 at 4:05 PM, Mario Daniel Ruiz Saavedra
desideran...@rocketmail.com wrote:
 I'll resend this, hoping for an answer :D


 - Mensaje reenviado -
 De: Mario Daniel Ruiz Saavedra desideran...@rocketmail.com
 Para: Vala List vala-list@gnome.org
 CC:
 Enviado: Viernes, 17 de agosto, 2012 0:28:58
 Asunto: C to Vala



 Is it possible that, having a program written in C, making full use of GLib, 
 a conversion from c to vala would be plausible? Obviously, rewrite the 
 application should be the way to go, but at least for giving an overview of 
 how the new design may look, especially if you did not write the app, such 
 feature would be useful.
 ___
 vala-list mailing list
 vala-list@gnome.org
 https://mail.gnome.org/mailman/listinfo/vala-list

___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Rv: C to Vala

2012-09-20 Thread Mario Daniel Ruiz Saavedra
Once the Vala to C rules are defined, the inverse rules should work for C to 
vala, at least in a 80%
- Mensaje original -
De: Landon Blake sunburned.surve...@gmail.com
Para: Mario Daniel Ruiz Saavedra desideran...@rocketmail.com
CC: 
Enviado: Jueves, 20 de septiembre, 2012 12:47:10
Asunto: Re: [Vala] Rv: C to Vala

It would be possible to take a program that translates English to
Spanish and make it translate Spanish to English, but I think it would
take some major tweaking. I'm sure the same concept applies to the
Vala compiler.

Landon

On Thu, Sep 20, 2012 at 10:23 AM, Mario Daniel Ruiz Saavedra
desideran...@rocketmail.com wrote:
 valac takes Vala code, analyzes it, and generates C code accordingly. What 
 hinders it from making it the other way (taking c code which heavily uses 
 GLib, and turning it into Vala Code)? Also, whould prove correctness, as 
 doing Vala to C and then C to Vala should produce similar code.
 - Mensaje original -
 De: Landon Blake sunburned.surve...@gmail.com
 Para: Mario Daniel Ruiz Saavedra desideran...@rocketmail.com
 CC:
 Enviado: Jueves, 20 de septiembre, 2012 11:38:53
 Asunto: Re: [Vala] Rv: C to Vala

 Mario:

 I've just started using Vala, but I think I can take a stab at your questions.

 Vala is compiled to C, C is not compiled to Vala. Therefore, I don't
 think there would be an easy and automated way to convert C code into
 Vala code.

 Does that make sense?

 Landon

 On Wed, Sep 19, 2012 at 4:05 PM, Mario Daniel Ruiz Saavedra
 desideran...@rocketmail.com wrote:
 I'll resend this, hoping for an answer :D


 - Mensaje reenviado -
 De: Mario Daniel Ruiz Saavedra desideran...@rocketmail.com
 Para: Vala List vala-list@gnome.org
 CC:
 Enviado: Viernes, 17 de agosto, 2012 0:28:58
 Asunto: C to Vala



 Is it possible that, having a program written in C, making full use of GLib, 
 a conversion from c to vala would be plausible? Obviously, rewrite the 
 application should be the way to go, but at least for giving an overview of 
 how the new design may look, especially if you did not write the app, such 
 feature would be useful.
 ___
 vala-list mailing list
 vala-list@gnome.org
 https://mail.gnome.org/mailman/listinfo/vala-list


___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Rv: C to Vala

2012-09-20 Thread Mario Daniel Ruiz Saavedra


Unlikely. You are confusing translate with transform. Please argue properly.


 De: Jonas Kulla nyocu...@gmail.com
Para: Mario Daniel Ruiz Saavedra desideran...@rocketmail.com 
CC: Vala List vala-list@gnome.org 
Enviado: Jueves, 20 de septiembre, 2012 13:55:50
Asunto: Re: [Vala] Rv: C to Vala
 



2012/9/20 Mario Daniel Ruiz Saavedra desideran...@rocketmail.com

What hinders it from making it the other way (taking c code which heavily uses 
GLib, and turning it into Vala Code)?


 The same thing that hinders an oven from producing flour and water from bread 
I suppose.___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


[Vala] Rv: C to Vala

2012-09-19 Thread Mario Daniel Ruiz Saavedra
I'll resend this, hoping for an answer :D


- Mensaje reenviado -
De: Mario Daniel Ruiz Saavedra desideran...@rocketmail.com
Para: Vala List vala-list@gnome.org
CC: 
Enviado: Viernes, 17 de agosto, 2012 0:28:58
Asunto: C to Vala



Is it possible that, having a program written in C, making full use of GLib, a 
conversion from c to vala would be plausible? Obviously, rewrite the 
application should be the way to go, but at least for giving an overview of how 
the new design may look, especially if you did not write the app, such feature 
would be useful.
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list


[Vala] C to Vala

2012-08-16 Thread Mario Daniel Ruiz Saavedra


Is it possible that, having a program written in C, making full use of GLib, a 
conversion from c to vala would be plausible? Obviously, rewrite the 
application should be the way to go, but at least for giving an overview of how 
the new design may look, especially if you did not write the app, such feature 
would be useful.

___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list