Electron as a front-end for Harbour

635 views
Skip to first unread message

Eric Lendvai

unread,
May 5, 2019, 2:54:59 AM5/5/19
to Harbour Users

Electron is an open source, MIT, platform for building desktop apps using web technologies (html, css, JavaScript).


It is using at its core JavaScript.

See https://electronjs.org/


I found out that it is possible integrate Python in Electron.

https://medium.com/@abulka/electron-python-4e8c807bfa5e


Python has the same problem as Harbour concerning GUI, Not built-in and many different ways to accomplish it.


Now ASP.NET core can also work in Electron.


There are more than 700 apps developed with electron, https://electronjs.org/apps , including Skype, Teams, Visual Studio Code, Slack and more.


I know we could call COM objects from Node.js (So Electron as well) under Windows. We can build Com objects in Harbour.


But it would be good to also support Mac and Linux.


Is anyone interested in researching more into how we could run Harbour inside Electron? Help to co-write an article in harbour.wiki?


Harbour is a compiled language, fast and more hack-proof. It can be a great addition to Electron and Web developers, and can be a great solution for use Harbour coders.

Antonino Perricone

unread,
May 6, 2019, 4:02:19 AM5/6/19
to Harbour Users
Electron is basically Chromium Embedded Framework for javascript.
The real good think should be made a CEF support for harbour, so we ca create harbour app with web+javascript interface.
Some time ago I was starting this project, but I see that I don't have enough time do to it. 
Maybe someone else in this group can take up the challenge :)

elch

unread,
May 6, 2019, 5:26:13 PM5/6/19
to Harbour Users
Hi Eric,



Python has the same problem as Harbour concerning GUI, Not built-in and many different ways to accomplish it.

Here i like to disagree:
its not a problem, but an advantage!: the freedom of choice.
Look at ......., and how hopelessly bound to a [censored] OS.
I agree, its a radical pure 'cell-based' concept in the core ...

  

Harbour is a compiled language, fast and more hack-proof.

Its superior !

But you miss the 'HVM' -- please check:
https://en.wikipedia.org/wiki/UCSD_Pascal
therein you note the key words: 'virtual machine' & 'P-Code' ...
[ I have chosen that link, because already the '82 Apple had it ;-) ]

Contrary i find in your post multiple words of personal ! dislike:
JS!, node.js !! -- and a python is a rattle if not in Monty hand:
he said Jehovah!

my two stones 8-)
elch

Gilbert Karweru

unread,
Jun 17, 2020, 5:03:56 PM6/17/20
to 'elch' via Harbour Users
How did this go? I saw Ultralight wrapper from Rafal, though abandoned,...quite a remarkable effort. Quite straight forward for someone like me with no experience in web programming.

Gilbert.


--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Antonino Perricone

unread,
Jun 18, 2020, 12:32:01 AM6/18/20
to Harbour Users
Rafal? not https://github.com/APerricone/HBUltralight ?? 
My wrapper is pretty working, but I haven't tried it thoroughly.
Anyway, If web browser works, it should works on every UI HTML based...

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbou...@googlegroups.com.

Gilbert Karweru

unread,
Jun 18, 2020, 2:31:45 AM6/18/20
to harbou...@googlegroups.com
My apologies Antonio for attributing the project to Rafal.

During this covid-19 lockdowns, most clients working from home are demanding a web-based interface to their desktop versions,...that led me to this project.
Will test it further. If someone else has some experiences to share, please do.

Many thanks. 


Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/9d3354eb-a0de-445e-8680-2e286a2aab45o%40googlegroups.com.

fdaniele

unread,
Jun 18, 2020, 3:26:38 AM6/18/20
to Harbour Users
A collaboration between  Mr. Antonio and Mr. Eric can only be a splendid success.

I remain of the opinion that the future is web!

All compatibility programs between operating systems are exceeded
The end customer is already used to using the browser so he will prefer it to a windows / linux program.
It deletes the configuration of shared folders on clients and servers.
the server can be remote
(all things we all know)

and, finally, but still important, we could make it known
harbor to new young programmers who have never heard of the wonderful clipper :-(.

Ciao  

Antonio Linares

unread,
Jun 19, 2020, 2:07:43 AM6/19/20
to Harbour Users
Gilbert,

mod_harbour fastCGI is able to serve 90 web requests per second

It is the simplest way to take your Harbour app from the desktop to the web.


Give it a try and you will fall in love with it :-)

best regards

Antonio

Gilbert Karweru

unread,
Jun 19, 2020, 2:21:09 PM6/19/20
to harbou...@googlegroups.com
Thank you Antonio,

I’ve downloaded a win64 installer from github, run the install but I’ve run into a problem at the very end ‘https.exe system error. Vcruntime140.dll not found’. I have installed Apache in c:\apache24 and mod_harbour in c:\modharbour

I’m sure if I’m able to run the samples, I should be up and running in no time to avoid newbie questions :(

Many many thanks for this.

Thanks,
Gilbert.


On Friday, June 19, 2020, 9:07 AM, Antonio Linares <antonio....@gmail.com> wrote:

Gilbert,

mod_harbour fastCGI is able to serve 90 web requests per second

It is the simplest way to take your Harbour app from the desktop to the web.


Give it a try and you will fall in love with it :-)

best regards

Antonio

El jueves, 18 de junio de 2020, 8:31:45 (UTC+2), Gilbert Karweru escribió:
My apologies Antonio for attributing the project to Rafal.

During this covid-19 lockdowns, most clients working from home are demanding a web-based interface to their desktop versions,...that led me to this project.
Will test it further. If someone else has some experiences to share, please do.

Many thanks. 
On Thu, 18 Jun 2020 at 07:32, Antonino Perricone <iorp...@gmail.com> wrote:

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.

Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.

To view this discussion on the web visit
Reply all
Reply to author
Forward
0 new messages