Re: [Vala] Web framework in Vala

2011-12-07 Thread Antono Vasiljev

On 12/08/2011 08:47 AM, Evan Nemerson wrote:


AFAIK GPL restrictions is irrelevant in server side context. GPL not
forces You to share unless you distribute your program. AGPL do if I
understand correctly.

However GPL3 restrictions may become true for embedded devices...

It would be a problem for pretty much any reusable software, not just
embedded devices. Shopping carts, CMS, CRM, blogs, photo galleries,
project management, wikis, issue trackers, forums, etc.



Well, the way is simple: do not use GPL if you want to make some
proprietary software from opensource.

And also i do not going to hardly nail some templating engine to Valum.
We can use any engine. But till now ctpl looks like best option in terms of
interoperability with GObject and Vala.




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


Re: [Vala] Web framework in Vala

2011-12-07 Thread Denis Kuzmenok
CTPP2  has a BSD-like license allowing to use source code wherever you
like,  but  without any warranty. And i know its' creator a little. He
says it's not difficult to add externs and make is C-like library, but
he doesn't want to do that by himself.
And i'm not familiar with C++ so i can't help with this issue :(

Including  *any* template system is not difficult, but do it matter if
it's   slow?   If   you   don't   need   speed,   you're   welcome  to
php/perl/python/etc, that's my opinion.


>> AFAIK GPL restrictions is irrelevant in server side context. GPL not
>> forces You to share unless you distribute your program. AGPL do if I
>> understand correctly.
>> 
>> However GPL3 restrictions may become true for embedded devices...

> It would be a problem for pretty much any reusable software, not just
> embedded devices. Shopping carts, CMS, CRM, blogs, photo galleries,
> project management, wikis, issue trackers, forums, etc.




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


Re: [Vala] Web framework in Vala

2011-12-07 Thread Evan Nemerson
On Thu, 2011-12-08 at 07:57 +0300, Antono Vasiljev wrote:
> On 12/08/2011 07:30 AM, Evan Nemerson wrote:
> 
> >>> It   would   be   great   if   someone   write   vapi   for   CTPP2  (
> >>> http://ctpp.havoc.ru/en/  )  template parser. It's more "clean" and is
> >>> very   fast   indeed, with precompile, includes, etc..   (that   will
> >>   allow   using templates   compiled  in
> >>> php, perl, python, etc).
> >> Looks cool. However it written in C++ and not used glib. Not sure how
> >> vala deals with such stuff.
> > 
> > Not using glib isn't really an issue, but C++ is.
> 
> I supposed so.
> 
> >> I currently working on vala bindings for ctpl[1]. Ctpl uses glib and
> >> also cashes token tree in memory. Not sure about speed but it will be
> >> easier to reuse from vala.
> > 
> > CTPL looks interesting, but it is GPLv3+, which is going to be a
> > deal-breaker for a *lot* of software.
> 
> AFAIK GPL restrictions is irrelevant in server side context. GPL not
> forces You to share unless you distribute your program. AGPL do if I
> understand correctly.
> 
> However GPL3 restrictions may become true for embedded devices...

It would be a problem for pretty much any reusable software, not just
embedded devices. Shopping carts, CMS, CRM, blogs, photo galleries,
project management, wikis, issue trackers, forums, etc.


-Evan

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


Re: [Vala] Web framework in Vala

2011-12-07 Thread Antono Vasiljev
On 12/08/2011 07:30 AM, Evan Nemerson wrote:

>>> It   would   be   great   if   someone   write   vapi   for   CTPP2  (
>>> http://ctpp.havoc.ru/en/  )  template parser. It's more "clean" and is
>>> very   fast   indeed, with precompile, includes, etc..   (that   will
>>   allow   using templates   compiled  in
>>> php, perl, python, etc).
>> Looks cool. However it written in C++ and not used glib. Not sure how
>> vala deals with such stuff.
> 
> Not using glib isn't really an issue, but C++ is.

I supposed so.

>> I currently working on vala bindings for ctpl[1]. Ctpl uses glib and
>> also cashes token tree in memory. Not sure about speed but it will be
>> easier to reuse from vala.
> 
> CTPL looks interesting, but it is GPLv3+, which is going to be a
> deal-breaker for a *lot* of software.

AFAIK GPL restrictions is irrelevant in server side context. GPL not
forces You to share unless you distribute your program. AGPL do if I
understand correctly.

However GPL3 restrictions may become true for embedded devices...

I going to implement Valum.App.render() functon so that you can use
multiple rendering engines at the same time.

> Another option is Clearsilver.  I used it a while back (circa 2008) in a
> Vala project via a very thin C wrapper (mostly just to add reference
> counting, IIRC). Looking at it now I don't think it would be too
> difficult to create Vala bindings for Clearsilver... the API is a bit
> unpleasant at times, but you could at least use it as the basis of a
> nice Vala wrapper.
> 
> FWIW, I could probably be convinced to write the vapi.

That would be awesome, Evan :) It worth to be done!
Today we have no templating libs for vala at all.

Hovever in Valum we can use lua to render haml templates :)

>> Currently i've added autotools support for .gir generation and going to
>> add some annotation in order to get .gir file convertable to vapi.
> 
> Why not just have valac output a vapi directly (i.e., --vapi foo.vapi)?
> Or are you talking about bindings for a C library?

Yes, CTPL is in C and it does not have any annotations. Almost all
properties of resulted .gir are introspectable="0" so vapi generated by
vapigen is almost empty :) So I going to dig deeper in all this
introspection/annotations stuff.

-- 
antono



signature.asc
Description: OpenPGP digital signature
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Web framework in Vala

2011-12-07 Thread Evan Nemerson
On Thu, 2011-12-08 at 03:38 +0300, Antono Vasiljev wrote:
> On 12/08/2011 12:57 AM, Denis Kuzmenok wrote:
> 
> > It   would   be   great   if   someone   write   vapi   for   CTPP2  (
> > http://ctpp.havoc.ru/en/  )  template parser. It's more "clean" and is
> > very   fast   indeed, with precompile, includes, etc..   (that   will
>   allow   using templates   compiled  in
> > php, perl, python, etc).
> Looks cool. However it written in C++ and not used glib. Not sure how
> vala deals with such stuff.

Not using glib isn't really an issue, but C++ is.

> I currently working on vala bindings for ctpl[1]. Ctpl uses glib and
> also cashes token tree in memory. Not sure about speed but it will be
> easier to reuse from vala.

CTPL looks interesting, but it is GPLv3+, which is going to be a
deal-breaker for a *lot* of software.

Another option is Clearsilver.  I used it a while back (circa 2008) in a
Vala project via a very thin C wrapper (mostly just to add reference
counting, IIRC). Looking at it now I don't think it would be too
difficult to create Vala bindings for Clearsilver... the API is a bit
unpleasant at times, but you could at least use it as the basis of a
nice Vala wrapper.

FWIW, I could probably be convinced to write the vapi.

> Currently i've added autotools support for .gir generation and going to
> add some annotation in order to get .gir file convertable to vapi.

Why not just have valac output a vapi directly (i.e., --vapi foo.vapi)?
Or are you talking about bindings for a C library?


-Evan


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


Re: [Vala] Web framework in Vala

2011-12-07 Thread Antono Vasiljev
On 12/08/2011 12:57 AM, Denis Kuzmenok wrote:

> It   would   be   great   if   someone   write   vapi   for   CTPP2  (
> http://ctpp.havoc.ru/en/  )  template parser. It's more "clean" and is
> very   fast   indeed, with precompile, includes, etc..   (that   will
  allow   using templates   compiled  in
> php, perl, python, etc).
Looks cool. However it written in C++ and not used glib. Not sure how
vala deals with such stuff.

I currently working on vala bindings for ctpl[1]. Ctpl uses glib and
also cashes token tree in memory. Not sure about speed but it will be
easier to reuse from vala.

Currently i've added autotools support for .gir generation and going to
add some annotation in order to get .gir file convertable to vapi.

> I would write vapi if i can
That would be cool
I also new to gobject and vala bindings so i cannot suggest something
valuable. I hope list members can help and answer questions about C++
and Vala/vapi compatability.


[1]: http://ctpl.tuxfamily.org/


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


Re: [Vala] Web framework in Vala

2011-12-07 Thread Denis Kuzmenok
It   would   be   great   if   someone   write   vapi   for   CTPP2  (
http://ctpp.havoc.ru/en/  )  template parser. It's more "clean" and is
very   fast   indeed, with precompile, includes, etc..   (that   will   allow   
using templates   compiled  in
php, perl, python, etc).
I would write vapi if i can :)


> Hello, All.

> I've pushed v0.0.1 of web framework for vala - Valum.

> https://github.com/antono/valum

> Some features and ideas behind Valum:

> - Inspired by sinatra.rb
> - Allows lua scripting (more to come)
> - Based on Soup for http parsing

> Planned features: https://github.com/antono/valum/blob/master/TODO.md


> Join the fun :)


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


Re: [Vala] Web framework in Vala

2011-12-07 Thread Antono Vasiljev
On 12/08/2011 12:02 AM, Daniel Espinosa wrote:

> May you want to use GDA[1] as your Database driver holder and use some
> futures I'm developing in Vala for it. GDA and my resent additions in
> libgda-vala branch, have full GIR/Typelib and Vala bindings to get
> access from any language supporting GObject Introspction.

Sure! GDA was considered as primary SQL adapter for Valum.

> I want to create a GObject DataBase persistence framework and get some
> functionalists equivalent to Python's Django framework. I plant to use
> metadata information from database adquired by GDA to "navigate"
> between  objects with references and get others that depends on it,
> like Django does, with the advantage to have Vala/C/GObject library
> available to different languages.

Really great idea. I came from Ruby on Rails world and some ORM is
really must have for Valum. I know it will be hard implement every
feature that implemented in dynamic languages as Python and Ruby...
But anyway something less raw than connection needed here.

> I also plan to develop a small cash management application using Vala

Ony my small opinion, but GNUCash is awesome :) I use it and it has a
lot of wisdom and knows about almost every edge case. Also it has very
good documentation and manuals about personal finance management.

Unfortanutley they do not use libgda but libgdi.

> [1] http://www.gnome-db.org/

Thanks for the link, Daniel. I will look there next time i'll hack on
Valium.


> 2011/12/7 Antono Vasiljev :
>> Hello, All.
>>
>> I've pushed v0.0.1 of web framework for vala - Valum.
>>
>> https://github.com/antono/valum
>>
>> Some features and ideas behind Valum:
>>
>> - Inspired by sinatra.rb
>> - Allows lua scripting (more to come)
>> - Based on Soup for http parsing
>>
>> Planned features: https://github.com/antono/valum/blob/master/TODO.md
>>
>>
>> Join the fun :)
>>
>> --
>> antono




signature.asc
Description: OpenPGP digital signature
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] Web framework in Vala

2011-12-07 Thread Daniel Espinosa
May you want to use GDA[1] as your Database driver holder and use some
futures I'm developing in Vala for it. GDA and my resent additions in
libgda-vala branch, have full GIR/Typelib and Vala bindings to get
access from any language supporting GObject Introspection.

I want to create a GObject DataBase persistence framework and get some
functionalists equivalent to Python's Django framework. I plant to use
metadata information from database adquired by GDA to "navigate"
between  objects with references and get others that depends on it,
like Django does, with the advantage to have Vala/C/GObject library
available to different languages.

I also plan to develop a small cash management application using Vala

[1] http://www.gnome-db.org/

2011/12/7 Antono Vasiljev :
> Hello, All.
>
> I've pushed v0.0.1 of web framework for vala - Valum.
>
> https://github.com/antono/valum
>
> Some features and ideas behind Valum:
>
> - Inspired by sinatra.rb
> - Allows lua scripting (more to come)
> - Based on Soup for http parsing
>
> Planned features: https://github.com/antono/valum/blob/master/TODO.md
>
>
> Join the fun :)
>
> --
> antono
>
>
> ___
> vala-list mailing list
> vala-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/vala-list
>



-- 
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los
cuates: LIBRE)
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


[Vala] Web framework in Vala

2011-12-07 Thread Antono Vasiljev
Hello, All.

I've pushed v0.0.1 of web framework for vala - Valum.

https://github.com/antono/valum

Some features and ideas behind Valum:

- Inspired by sinatra.rb
- Allows lua scripting (more to come)
- Based on Soup for http parsing

Planned features: https://github.com/antono/valum/blob/master/TODO.md


Join the fun :)

-- 
antono



signature.asc
Description: OpenPGP digital signature
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] About Vala's IDE

2011-12-07 Thread PCMan
Try Geany please. You might like it.
Lightweight and fast.
Good syntax highlighting.
Nice code browser.
Basic auto-completion and call tips.
Active development.
You must try Geany.

On Tue, Dec 6, 2011 at 5:32 PM, Pigex.Zhang  wrote:

> Dear All:
>
> Is there has a plan with vala's professional IDE ?I tried some types of
> tools(e.g anjuta monodeveop, valencia...).
>
> However, a problem more or less...(e.g project manage autocompletion
> i18n automake debug...).
>
> I think that the goal of vala is efficiency for development, let it the
> most efficient!!!
>
> At the end, sorry to my bad english.
>
>
> ___
> vala-list mailing list
> vala-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/vala-list
>
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


Re: [Vala] vapigen can't find aliased type

2011-12-07 Thread Alberto Mardegan
On 12/07/2011 02:52 PM, Alberto Mardegan wrote:
> Hi all,
>   I'm trying to generate Vala bindings for a GLib based library. I
> recently added GObject introspection information to that library, and
> here is the .gir file:

I filed a bug about this, with a patch fixing the problem:
https://bugzilla.gnome.org/show_bug.cgi?id=665732

Ciao,
  Alberto
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


[Vala] CSV Parser

2011-12-07 Thread Denis Kuzmenok
Hi there.
Is  there  any CSV parser implementation?
I've found one on github for
sqlpilot  project,  but it doesn't build, and i don't know C that much
to modify it =\

Thanks

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


[Vala] CSV Parser

2011-12-07 Thread Denis Kuzmenok
Hi there.
Is  there  any CSV parser implementation?
I've found one on github for
sqlpilot  project,  but it doesn't build, and i don't know C that much
to modify it =\

Thanks

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


[Vala] vapigen can't find aliased type

2011-12-07 Thread Alberto Mardegan
Hi all,
  I'm trying to generate Vala bindings for a GLib based library. I
recently added GObject introspection information to that library, and
here is the .gir file:
http://pastebin.com/76wcPHGj
Unfortunately, the generation fails:

==
mardy@devel:/tmp$ vapigen --library Signon Signon-1.0.gir

** (vapigen:24519): CRITICAL **: vala_code_node_get_attribute_string:
assertion `self != NULL' failed
[...cut on many other critical warnings...]

Signon-1.0.gir:478.79-478.79: error: The type name
`IdentityReferenceAddedCb' could not be found
  c:type="SignonIdentityReferenceAddedCb"/>

  ^
Signon-1.0.gir:535.95-535.95: error: The type name `IdentityRemovedCb'
could not be found


  ^
Signon-1.0.gir:557.83-557.83: error: The type name
`IdentityReferenceRemovedCb' could not be found
  c:type="SignonIdentityReferenceRemovedCb"/>

  ^
Generation failed: 3 error(s), 0 warning(s)
==

Since I've just studied how GObject introspection works, it might as
well be that the introspection data is not correct. However, the
g-ir-scanner tool reported 0 warnings, so I have no clue on what could
be wrong.
You can see the code of the library here:
http://bazaar.launchpad.net/~webcredentials-team/opensesame-libsignon-glib/trunk/files/head:/libsignon-glib/

Could it be that vapigen doesn't support aliases of callbacks?
(all of those 3 errors refer to callback function types)

Ciao,
  Alberto


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