Re: [Vala] Extended floating types

2016-05-24 Thread Vitaly V. Ch
https://bugzilla.gnome.org/show_bug.cgi?id=766844 On Tue, May 24, 2016 at 6:59 PM, Daniel Espinosa wrote: > May this even better, by using a specialized math library written in C with > bindings for Vala. > > We can wrap this library in GObject classes, then create Vala bindings and > GObject In

Re: [Vala] Extended floating types

2016-05-24 Thread Vitaly V. Ch
https://bugzilla.gnome.org/show_bug.cgi?id=766844 On Tue, May 24, 2016 at 6:59 PM, Daniel Espinosa wrote: > May this even better, by using a specialized math library written in C with > bindings for Vala. > > We can wrap this library in GObject classes, then create Vala bindings and > GObject In

Re: [Vala] Extended floating types

2016-05-24 Thread Al Thomas
From: Ben Iofel Sent: Tuesday, 24 May 2016, 16:20 Subject: Re: [Vala] Extended floating types error: structs cannot be empty: float128_t I assumed you were going to put the definition in a VAPI file.If you are doing it from a program you need to use the extern keyword

Re: [Vala] Extended floating types

2016-05-24 Thread Daniel Espinosa
May this even better, by using a specialized math library written in C with bindings for Vala. We can wrap this library in GObject classes, then create Vala bindings and GObject Introspection ones for other languages like Python. If Vala bindings exists, we can create GObject wrappers written in

Re: [Vala] Extended floating types

2016-05-24 Thread Daniel Espinosa
Yes please, file a bug. May discussion can continue on it. El may. 24, 2016 6:55 AM, "Vitaly V. Ch" escribió: > It will be good if I create a tiket in Bugzilla? > > With best regards, > > Vitaly > > On Tue, May 24, 2016 at 1:04 PM, Daniel Espinosa wrote: > >> May we need to file a bug report ag

Re: [Vala] Extended floating types

2016-05-24 Thread Ben Iofel
error: structs cannot be empty: float128_t On Tue, May 24, 2016 at 11:16 AM Al Thomas wrote: > > > > -- > *From:* ben > *Sent:* Tuesday, 24 May 2016, 16:01 > *Subject:* Re: [Vala] Extended floating types > > > This does not work.

Re: [Vala] Extended floating types

2016-05-24 Thread Al Thomas
From: ben Sent: Tuesday, 24 May 2016, 16:01 Subject: Re: [Vala] Extended floating types This does not work. The C code has: typedef float float128_t; Try: [SimpleType][CCode(has_type_id = false, default_value = "0")]public struct float128_t {} The SimplyType makes it

Re: [Vala] Extended floating types

2016-05-24 Thread ben
This does not work. The C code has: typedef float float128_t; You could map it to gcc's 128 bit floating point type (https://gcc.gnu. org/onlinedocs/gcc/Floating-Types.html) or use the 80-bit long double type (https://stackoverflow.com/questions/13516476/long-double-gcc-spec ific-and-float128) Ne

Re: [Vala] Extended floating types

2016-05-24 Thread Vitaly V. Ch
It will be good if I create a tiket in Bugzilla? With best regards, Vitaly On Tue, May 24, 2016 at 1:04 PM, Daniel Espinosa wrote: > May we need to file a bug report against this issue, in order to help > others to use Vala in different applications when needed. > El may. 23, 2016 9:27 PM, "Gu

Re: [Vala] Extended floating types

2016-05-24 Thread Daniel Espinosa
May we need to file a bug report against this issue, in order to help others to use Vala in different applications when needed. El may. 23, 2016 9:27 PM, "Guillaume Poirier-Morency" < guillaumepoiriermore...@gmail.com> escribió: > It's possible to declare these types if you need to use them. > > h

Re: [Vala] Extended floating types

2016-05-24 Thread Al Thomas
From: Guillaume Poirier-Morency Sent: Tuesday, 24 May 2016, 3:26 Subject: Re: [Vala] Extended floating types It's possible to declare these types if you need to use them. https://wiki.gnome.org/Projects/Vala/Manual/Attributes#FloatingType_Att ribute     [CCode (has_ty

Re: [Vala] Extended floating types

2016-05-23 Thread Guillaume Poirier-Morency
It's possible to declare these types if you need to use them. https://wiki.gnome.org/Projects/Vala/Manual/Attributes#FloatingType_Att ribute [CCode (has_type_id = false)] [FloatingType (decimal = false, rank = 12, width = 128] struct float128_t {} Like Daniel said, Vala primitive typ

Re: [Vala] Extended floating types

2016-05-22 Thread Vitaly V. Ch
Ok, Thanks. It clarifies the situation. With best regards, Vitaly Chernooky On Mon, May 23, 2016 at 4:51 AM, Daniel Espinosa wrote: > May you should be able to create your own basic type. > > May should be a guide to do so. > > GLib should have this types too, before you are able to create yo

Re: [Vala] Extended floating types

2016-05-22 Thread Daniel Espinosa
May you should be able to create your own basic type. May should be a guide to do so. GLib should have this types too, before you are able to create your basic types. This means you should define a GType for a basic type, in this case your long double. May we can create a library to define this

[Vala] Extended floating types

2016-05-22 Thread Vitaly V. Ch
Hi All! Some time ago Vala has pulled my attention as a way to solve some kind of math problems. But some time later I realized that this cozy and beautiful staff does not have extended floating datatypes such as long double or float128_t. This fact disappointed me and I'm interested in some comme