LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-15-2012, 08:16 PM   #1
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
What is the methodology of creating GUI toolkits bindings with functional languages ?


Hello,

I think I generally understand how one can create GUI toolkits bindings with procedural languages, and for this discussion I consider OO languages to be procedural.

Regarding the similarity between OO and procedural languages - my point is that both are state-friendly. I.e. it's not a problem to create an instance of the toolkit widget, and that widget instance keeps state.

If we look at pure functional languages, we do not have state (though we kinda have them through monads, don't we ?).

Anyway, I am interested to learn about the methodology of creating GUI toolkits bindings with/for functional languages and, specifically, about resolving the issue of instances/states.

Any pointers ? I can, of course, start digging into, say, Haskell for which, AFAIR, gtk+ has bindings, but I would like to first read something more abstract.

Thanks in advance.
 
Old 11-20-2012, 04:05 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hi,

I don't know if I can help here. I've waited with an answer to your question for some days because I did not want to kick it from the zero reply list

Well, I'm no expert for functional programming and no professional programmer at all.

To your question: I'm using the Xmonad windowmanager which is written in Haskell. One of the dependencies for Xmonad is haskell-X11 http://www.haskell.org/haskellwiki/X...ing_in_Haskell. You may also take a look at the Xmonad documentation http://xmonad.org/xmonad-docs/xmonad...t:ScreenDetail where the concepts are explained on a "programmer level".

Hope this helps.

Markus

Last edited by markush; 11-20-2012 at 04:06 PM. Reason: typo
 
Old 11-20-2012, 04:11 PM   #3
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Original Poster
Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by markush View Post
Hi,

I don't know if I can help here. I've waited with an answer to your question for some days because I did not want to kick it from the zero reply list

Well, I'm no expert for functional programming and no professional programmer at all.

To your question: I'm using the Xmonad windowmanager which is written in Haskell. One of the dependencies for Xmonad is haskell-X11 http://www.haskell.org/haskellwiki/X...ing_in_Haskell. You may also take a look at the Xmonad documentation http://xmonad.org/xmonad-docs/xmonad...t:ScreenDetail where the concepts are explained on a "programmer level".

Hope this helps.

Markus
I got an answer from Ocaml beginners list: http://tech.groups.yahoo.com/group/o.../message/13673 .

So, now I have quite a lot of stuff to comprehend.
 
  


Reply

Tags
functional, gui, instance, state



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's your methodology for creating Apache based sites? elfoozo Linux - Server 4 09-10-2012 11:36 AM
Methodology of creating bindings for toolkits written in C++ Sergei Steshenko Programming 8 05-30-2012 12:30 AM
How do GUI toolkits and window managers communicate. abhishekbatra Programming 6 12-02-2009 10:07 PM
LXer: The Rise of Functional Languages LXer Syndicated Linux News 0 05-01-2007 03:31 PM
GUI application design toolkits. which one? name_in_use450 Programming 3 08-25-2004 07:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration