24 May 21:11
Extending a GTK+ Application with Guile
Kevin J. Fletcher <dev <at> kjfletch.co.uk>
2012-05-24 19:11:50 GMT
2012-05-24 19:11:50 GMT
Hello Guilers. I'm currently writing some prototype code before starting a project and have a few questions that I hope some of you may be able to answer. My intent is to add guile as a method of [optionally, at build time] extending a GTK+ application. With the addition of being able to run guile scripts I hope to provide a guile-shell to give real-time interactive power. First a question of program architecture; As the guile extensions are optional I run GTK on a main thread and the shell on a second pthread. I connect the shell through a PTY to the virtual terminal widget. I apologise to those with mail clients not using monospace fonts. THREAD1 THREAD2 --------- ------- | GTK | pty | guile | | VTE |<------->| shell | | ----- | ------- | guile | | scripts| --------- 0) Is there anything wrong with this architecture? a) Is it valid to use both scm_shell and other guile code at the same time or is scm_shell designed to run in isolation?(Continue reading)
RSS Feed