Has anyone tried using Windows Forms (.net) with Erlang? This would be in a similar fashion to way Python can use Windows Forms. On Linux I believe this would be Mono (http://www.mono-project.com/docs/gui/winforms/). Basically I think I’m looking for something similar to Python’s “import” and C#’s “using” features. If no one has anything, any hints on how a feature like this might be implemented.
Basically, I have been working on implementing genetic programming in Erlang and would like to provide a GUI front end. The WxWidgets front end that comes with Erlang is difficult at best. I’ve used several different GUI kits on *nix and Windows platforms but WxWidgets seems the most difficult for me. So I’m trying to see what else is available. I followed Joe Armstrong’s quest earlier this year and didn’t see where he came up with anything.
Thanks.
Alan
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
Thanks for the suggestion. I've been trying to keep the work totally in Erlang. Partly because I am trying to become better with Erlang itself and partly out of stubbornness. I had looked at using a browser based GUI but for what I'm doing I really don't want (or need) to be too complicated. One of the other responses suggested using C# to create the front end and communicate with Erlang via TCP. I had thought of that as well, but decided to pursue using pure Erlang but have become stymied by wxErlang and its difficulty. Most likely I will end up pursing the C# (or similar) front end.
Alan
Thanks Alex. I had thought of that but was trying to make this a pure Erlang application. This is most likely the approach I will end up taking unless I decide to pursue wxErlang, but that is probably a little unlikely.
Thanks Alex. I had thought of that but was trying to make this a pure Erlang application. I had even thought of using an Erlang Port but again, this would lead me outside of a strictly Erlang solution.
From: erlang-quest...@erlang.org [mailto:erlang-quest...@erlang.org] On Behalf Of Sergej Jurecko
Sent: Tuesday, December 05, 2017 03:14
To: Erlang <erlang-q...@erlang.org>
Subject: Re: [erlang-questions] GUI development with Erlang
What we did when we wanted to ship a GUI app with Erlang was running erl in the background and communicate over stdin/stdout.
Perhaps a browser front-end would suit your purposes. And, if so, you might look into Nitrogen. It provides a rich set of GUI elements with the additional benefit of making your genetic models accessible through the web.
All the best,
LRP
-----Original Message-----
From: "Alan Gingras" <alang...@comcast.net>
Sent: Wednesday, December 6, 2017 3:08pm
To: "'Alex S.'" <alex0...@gmail.com>
Cc: "'Erlang'" <erlang-q...@erlang.org>
Subject: Re: [erlang-questions] GUI development with Erlang
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
Thanks Alex. I had thought of that but was trying to make this a pure Erlang application. This is most likely the approach I will end up taking unless I decide to pursue wxErlang, but that is probably a little unlikely.
From: Alex S. [mailto:alex0...@gmail.com]
Sent: Tuesday, December 05, 2017 03:08
To: Alan Gingras <alang...@comcast.net>
Cc: Erlang <erlang-q...@erlang.org>
Subject: Re: [erlang-questions] GUI development with Erlang
For what it's worth, you can always implement your view and controller in something like C#/F#, and your model in Erlang, and hook them up via TCP. Alternatively, there was an Erlang-toF# compiler floating around I believe.
2017-12-03 22:43 GMT+03:00 Alan Gingras <alang...@comcast.net <mailto:alang...@comcast.net> >:
Has anyone tried using Windows Forms (.net) with Erlang? This would be in a similar fashion to way Python can use Windows Forms. On Linux I believe this would be Mono (http://www.mono-project.com/docs/gui/winforms/). Basically I think I’m looking for something similar to Python’s “import” and C#’s “using” features. If no one has anything, any hints on how a feature like this might be implemented.
Basically, I have been working on implementing genetic programming in Erlang and would like to provide a GUI front end. The WxWidgets front end that comes with Erlang is difficult at best. I’ve used several different GUI kits on *nix and Windows platforms but WxWidgets seems the most difficult for me. So I’m trying to see what else is available. I followed Joe Armstrong’s quest earlier this year and didn’t see where he came up with anything.
Thanks.
Alan
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org <mailto:erlang-q...@erlang.org>
http://erlang.org/mailman/listinfo/erlang-questions
<mailto:alangingras@comcast.net> >:
Electron is mainly an executable, which is a customized Chrome browser. The UI itself is only as heavy as a typical HTML/JavaScript page. See here for an overview:
https://electronjs.org/docs/tutorial/quick-start
It's very similar to Erlang. In Erlang you have the VM and OTP. Your application is lightweight but when you create a distribution you have to package the VM, libraries and your application into it. It's the same with Electron.
The Electron executable is loading and executing your application, which is a web-based JavaScript application. That application could connect to your running Erlang VM like any other web-based application running locally in a browser.
GrzegorzJ
On 12/07/2017 09:51 PM, Joe Armstrong wrote:
> Hello world (or rather a little window with a couple of buttons)
> in Qt is 33KB - only 3484 times smaller.
>
> Which probably explain why Qt is more popular for building apps than
> Electron.
>
> Being an old timer I recall a time when the entire OS including the
> windowing system and a large number of applications all fitted in
> under 640KB :-)
>
> Where did we go wrong ?
>
>
>
>
>
> On Thu, Dec 7, 2017 at 6:46 PM, Thomas Elsgaard
> <thomas....@gmail.com <mailto:thomas....@gmail.com>> wrote:
>
> Hello World is 115 MB ;-)
>
> tor. 7. dec. 2017 kl. 16.10 skrev Joe Armstrong <erl...@gmail.com
> <mailto:erl...@gmail.com>>:
>
> How big are the applications built with Electron?
>
> /Joe
>
>
>
> On Thu, Dec 7, 2017 at 3:32 PM, Zachary Kessin
> <zke...@gmail.com <mailto:zke...@gmail.com>> wrote:
>
> I was thinking of something like Electron
> https://electronjs.org/ <https://electronjs.org/> with an
> Erlang backend.
>
> Mind I have no idea how to actually build that
>
> Zach
> <mailto:alang...@comcast.net>> wrote:
>
> __
>
> Thanks for the suggestion. I've been trying to keep
> the work totally in Erlang. Partly because I am
> trying to become better with Erlang itself and
> partly out of stubbornness. I had looked at using a
> browser based GUI but for what I'm doing I really
> don't want (or need) to be too complicated. One of
> the other responses suggested using C# to create the
> front end and communicate with Erlang via TCP. I
> had thought of that as well, but decided to pursue
> using pure Erlang but have become stymied by
> wxErlang and its difficulty. Most likely I will end
> up pursing the C# (or similar) front end.
>
>
> Alan
>
>> On December 6, 2017 at 3:04 AM Zachary Kessin
>> <zke...@gmail.com <mailto:zke...@gmail.com>> wrote:
>>
>> I had thought it would be an interesting idea to
>> build a GUI toolset around Erlang such that each
>> widget on screen was a process. That being said I
>> think to develop such a toolkit would probably
>> cost on the order of $1,000,000 (Total guess on
>> the number).
>>
>> If I had to develop a desktop app with Erlang I
>> would probably use something like Electra to do a
>> virtual browser with an Elm Frontend.
>>
>> Zach
>> ᐧ
>>
>> On Tue, Dec 5, 2017 at 10:13 AM, Sergej Jurečko
>> <sergej....@gmail.com
>> <mailto:sergej....@gmail.com>> wrote:
>>
>> What we did when we wanted to ship a GUI app
>> with Erlang was running erl in the background
>> and communicate over stdin/stdout.
>>
>> Regards,
>> Sergej
>>
>>
>>> On 5 Dec 2017, at 09:07, Alex S.
>>> <alex0...@gmail.com
>>> <mailto:alex0...@gmail.com>> wrote:
>>>
>>> For what it's worth, you can always implement
>>> your view and controller in something like
>>> C#/F#, and your model in Erlang, and hook
>>> them up via TCP. Alternatively, there was an
>>> Erlang-toF# compiler floating around I believe.
>>>
>>> 2017-12-03 22:43 GMT+03:00 Alan Gingras
>>> <alang...@comcast.net
>>> <mailto:alang...@comcast.net>>:
>>>
>>> Has anyone tried using Windows Forms
>>> (.net) with Erlang? This would be in a
>>> similar fashion to way Python can use
>>> Windows Forms. On Linux I believe this
>>> would be Mono
>>> (http://www.mono-project.com/docs/gui/winforms/
>>> <http://www.mono-project.com/docs/gui/winforms/>).
>>> Basically I think I’m looking for
>>> something similar to Python’s “import”
>>> and C#’s “using” features. If no one has
>>> anything, any hints on how a feature like
>>> this might be implemented.____
>>>
>>> __ __
>>>
>>> Basically, I have been working on
>>> implementing genetic programming in
>>> Erlang and would like to provide a GUI
>>> front end. The WxWidgets front end that
>>> comes with Erlang is difficult at best.
>>> I’ve used several different GUI kits on
>>> *nix and Windows platforms but WxWidgets
>>> seems the most difficult for me. So I’m
>>> trying to see what else is available. I
>>> followed Joe Armstrong’s quest earlier
>>> this year and didn’t see where he came up
>>> with anything.____
>>>
>>> __ __
>>>
>>> Thanks.____
>>>
>>> Alan____
>>>
>>>
>>> _______________________________________________
>>> erlang-questions mailing list
>>> erlang-q...@erlang.org
>>> <mailto:erlang-q...@erlang.org>
>>> http://erlang.org/mailman/listinfo/erlang-questions
>>> <http://erlang.org/mailman/listinfo/erlang-questions>
>>>
>>>
>>> _______________________________________________
>>> erlang-questions mailing list
>>> erlang-q...@erlang.org
>>> <mailto:erlang-q...@erlang.org>
>>> http://erlang.org/mailman/listinfo/erlang-questions
>>> <http://erlang.org/mailman/listinfo/erlang-questions>
>>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-q...@erlang.org
>> <mailto:erlang-q...@erlang.org>
>> http://erlang.org/mailman/listinfo/erlang-questions
>> <http://erlang.org/mailman/listinfo/erlang-questions>
>>
>>
>>
>>
>> --
>> Zach Kessin
>> Reduce project risk with training in Elm For web teams
>> Skype: zachkessin
>> +972 54 234 3956 <tel:+972%2054-234-3956> / +44
>> 203 734 9790 <tel:+44%2020%203734%209790> / +1 617
>> 778 7213 <tel:(617)%20778-7213>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-q...@erlang.org
>> <mailto:erlang-q...@erlang.org>
>> http://erlang.org/mailman/listinfo/erlang-questions <http://erlang.org/mailman/listinfo/erlang-questions>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-q...@erlang.org
> <mailto:erlang-q...@erlang.org>
> http://erlang.org/mailman/listinfo/erlang-questions
> <http://erlang.org/mailman/listinfo/erlang-questions>
>
>
>
>
>
> --
> Zach Kessin
> Reduce project risk with training in Elm For web teams
> Skype: zachkessin
> +972 54 234 3956 <tel:+972%2054-234-3956> / +44 203 734 9790
> <tel:+44%2020%203734%209790> / +1 617 778 7213
> <tel:(617)%20778-7213>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-q...@erlang.org <mailto:erlang-q...@erlang.org>
> http://erlang.org/mailman/listinfo/erlang-questions
> <http://erlang.org/mailman/listinfo/erlang-questions>
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-q...@erlang.org
> http://erlang.org/mailman/listinfo/erlang-questions
>
--
Loïc Hoguin
https://ninenines.eu
Not just more memory.
Here, let me pay you for that memory chip in bitcoin... brb...
-Craig
In the graphics controller's state, not your program.
> Le 7 déc. 2017 à 21:51, Joe Armstrong <erl...@gmail.com> a écrit :
>
> Where did we go wrong ?
_______________________________________________
But that still needs to be created in the program.
Thanks Joe. I appreciate yours (and others) suggestions. I have actually worked through some wxErlang and agree that WxWidgets can produce a decent user interface but as you said there is a cliff there. I am trying to avoid getting bogged down in learning wxWidgets. My preference is a stand-alone application but it looks like that is not really going to be possible. My genetic programming code is in Erlang and I must say it was a joy to implement it there. Out of curiosity and for comparison of languages I implemented it in both C++ and Erlang at the same time. The Erlang was less effort to get right and ended up being a fraction of the code. The C++ version still has issues (memory issues mostly) and crashes more often than not. I had originally implemented it in C++ but after getting exposed to Erlang was convinced it would work better. As I said I implemented it in Erlang and re-implemented it in C++. Sure the C++ is faster but doesn’t work 100% yet. Erlang works wonderfully. A point to note here is that I have been working in C/C++ for both desktop and embedded development for 20+ years and was actually shocked that as a novice in Erlang I was able to implement it better there than in C++ where I am much more experienced.
Sorry for the digression. Most likely I will end up using C# to implement my GUI and connect to the Erlang using a port or TCP.
Again, my thanks to you and others for your advice.
Alan
From: Joe Armstrong [mailto:erl...@gmail.com]
Sent: Thursday, December 07, 2017 07:50
To: Alan Gingras <alang...@comcast.net>
Cc: Sergej Jurečko <sergej....@gmail.com>; Zachary Kessin <zke...@gmail.com>; Erlang <erlang-q...@erlang.org>
Subject: Re: [erlang-questions] GUI development with Erlang
If you want something that just works and is reasonably simple to implement
It's a really good resource to learn wxWidgets. I don't know how well it
aged exactly but it should still be very relevant as the interface has
not changed that much.
--
Loïc Hoguin
https://ninenines.eu
👍👍👍👍👍
This is amazing. It will be even more amazing to be part of the wx
documentation in OTP. Thank you.
Leo