Interface with .NET framework

Issues and Discussions related to Harbour

Moderator: Rathinagiri

Post Reply
User avatar
Rathinagiri
Posts: 5149
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 124 times
Been thanked: 126 times
Contact:

Interface with .NET framework

Post by Rathinagiri » Fri May 26, 2017 3:00 pm

Hi,

Have any of you tried to interface Harbour with .NET framework? I think it may bring new possibilities in various controls.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Anand
Posts: 193
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF
Has thanked: 21 times
Been thanked: 33 times

Post by Anand » Fri May 26, 2017 3:56 pm

I too am keen to know, if it is possible.
HMG + .Net ! WOW !!

Regards,

Anand
Image

User avatar
serge_girard
Posts: 1803
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 261 times
Been thanked: 60 times
Contact:

Post by serge_girard » Fri May 26, 2017 5:20 pm

No, not yet, but possibilty would be great!

Serge

User avatar
apais
Posts: 254
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 20 times
Been thanked: 14 times
Contact:

Post by apais » Fri May 26, 2017 9:05 pm

harbour = xbase -> pcode -> c code - exec by a virtual machine

.net = c# -> CIL code - exec by a virtual machine

Common Language Infrastructure (CLI) specification and is used by the .NET Framework and Mono

harbour VM size aprox. 1.5mb
.NET Framework VM size > 450 mb

Total incompatibility

Except: COM interface ( active X ) - sometimes problematic because data type serialization issues
SOAP ( web service ) - only for data excchange
PIPES ( available since clipper ) - only for interprocess communications
WM_COPY - only for interprocess communications ( only on same desktop )

The only xbase compiler compatible with CIL is VO (Visual Objects) and in my very humble opinion is abominable.
HTH
Angel

PD: the most viable solution I see for he future of harbour is a traspiler to javascript code so it can be used in browsers and node servers
where is our javascript guru ???????

User avatar
apais
Posts: 254
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 20 times
Been thanked: 14 times
Contact:

Post by apais » Fri May 26, 2017 9:10 pm

I still remember very early versions of habour that used to have the choice of generate java code instead of ansi C code.
Or maybe it was a bad dream or my schizophrenia I don't know =)

User avatar
Roberto Lopez
HMG Founder
Posts: 3897
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 132 times

Post by Roberto Lopez » Sat May 27, 2017 12:29 am

apais wrote:
Fri May 26, 2017 9:05 pm

PD: the most viable solution I see for he future of harbour is a traspiler to javascript code so it can be used in browsers and node servers
+1000 :D
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
Roberto Lopez
HMG Founder
Posts: 3897
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 132 times

Post by Roberto Lopez » Sat May 27, 2017 12:30 am

apais wrote:
Fri May 26, 2017 9:10 pm
I still remember very early versions of habour that used to have the choice of generate java code instead of ansi C code.
Or maybe it was a bad dream or my schizophrenia I don't know =)
My mental health is not the best and I remember too :)
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
Roberto Lopez
HMG Founder
Posts: 3897
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 132 times

Post by Roberto Lopez » Sat May 27, 2017 12:45 am

Again...
apais wrote:
Fri May 26, 2017 9:05 pm
PD: the most viable solution I see for he future of harbour is a traspiler to javascript code so it can be used in browsers and node servers
Such thing could require thousands programming hours by a dedicated team of experts.

As we already discussed many times, the interest on xBase is constantly declining, so, get enough Javascript expert volunteers to create a development team for 'j-Harbour' could be an impossible mission :(

So... my hope is that some (syntactic-sugarized) JavaScript variant appear in the future and that via Harbour preprocessor we could create some kind of subset of Harbour for browsers... meanwhile... our world as Harbour programmers is shrinking...
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

Post Reply