Releasing Qi/tk - a new model of development
  Home FAQ Contact Sign in
comp.lang.functional only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.functional Profile…
 Up
Releasing Qi/tk - a new model of development         


Author: Mark Tarver
Date: Jul 21, 2007 13:40

For some time, rather desultorily recently, I'll admit, I've been
working on Qi/tk. But when complete it will amount to a complete type
secure GUI builder with all the GUI power of TCL/tk and a user-
programmable interface and connection to the web. This is part of the
L21 project (http://www.lambdassociates.org/lC21.htm).

It's significant work and rather hard to develop, requiring detailed
knowledge of TCL/tk and command of Qi's sequent notation and how it
works. To give you an idea of just how complex just the type theory
is - it scales in at 12,000 lines of Lisp and rising. That is 2X the
size of Qi itself! Without Qi technology I really couldn't hope to
attempt this task.

My original intention had been to release it, like Qi, as a complete
system in its own right. But Qi took years and I don't want to repeat
a Sisyphean task. Hence Qi/tk has sat on my machine for a long time.

So what I've decided to do is to develop this system through a series
of phased releases in which a block at a time is released, tested
under the open source community at Qilang, corrected and improved
through your feedback.
Show full article (4.92Kb)
41 Comments
Re: Releasing Qi/tk - a new model of development         


Author: Matthias Buelow
Date: Jul 21, 2007 14:58

Mark Tarver wrote:
> It's significant work and rather hard to develop, requiring detailed
> knowledge of TCL/tk and command of Qi's sequent notation and how it
> works. To give you an idea of just how complex just the type theory
> is - it scales in at 12,000 lines of Lisp and rising. That is 2X the
> size of Qi itself! Without Qi technology I really couldn't hope to
> attempt this task.

I think you're approaching this from the wrong direction...
no comments
Re: Releasing Qi/tk - a new model of development         


Author: Jon Harrop
Date: Jul 22, 2007 00:20

Mark Tarver wrote:
> For some time, rather desultorily recently, I'll admit, I've been
> working on Qi/tk. But when complete it will amount to a complete type
> secure GUI builder with all the GUI power of TCL/tk and a user-
> programmable interface and connection to the web. This is part of the
> L21 project (http://www.lambdassociates.org/lC21.htm).
>
> It's significant work and rather hard to develop, requiring detailed
> knowledge of TCL/tk and command of Qi's sequent notation and how it
> works. To give you an idea of just how complex just the type theory
> is - it scales in at 12,000 lines of Lisp and rising. That is 2X the
> size of Qi itself! Without Qi technology I really couldn't hope to
> attempt this task.

You may be interested in the LablTK bindings to Tk in the OCaml standard
library, which provide Tk interoperability with the assurances of static
typing. They weigh in at 41kLOC of OCaml, which is ~9%% of the OCaml
distribution.

There are also 74kLOC of bindings to GTK2 as a separate package: LablGTK2.
Show full article (1.17Kb)
no comments
Re: Releasing Qi/tk - a new model of development         


Author: Mark Tarver
Date: Jul 22, 2007 00:44

> You may be interested in the LablTK bindings to Tk in the OCaml standard
> library, which provide Tk interoperability with the assurances of static
> typing.

Right; seems sensisble.

< They weigh in at 41kLOC of OCaml, which is ~9%% of the OCaml
> distribution.
>
> There are also 74kLOC of bindings to GTK2 as a separate package: LablGTK2.
>
> --
> Dr Jon D Harrop, Flying Frog Consultancy
> OCaml for Scientistshttp://www.ffconsultancy.com/products/ocaml_for_scientists/?usenet

Yes; 41k LOC does not surprise me. The saving grace is that my 12k
LOC are machine-generated from Qi and are not hand written. The hand
written sources are only 1.5k LOC of largely sequent calculus.

Mark
no comments
Re: Releasing Qi/tk - a new model of development         


Author: Jon Harrop
Date: Jul 22, 2007 00:44

Mark Tarver wrote:
> Yes; 41k LOC does not surprise me. The saving grace is that my 12k
> LOC are machine-generated from Qi and are not hand written. The hand
> written sources are only 1.5k LOC of largely sequent calculus.

That's very nice. If I were to write such libraries, I would use a similar
approach. However, if you want to provide a sane and native-friendly
representation of the underlying API there is going to be a lot of work
that (probably) cannot be automated.

I'm looking forward to using the autogenerated GLCaml bindings to OpenGL
2.1:

http://glcaml.sourceforge.net/

In the case of an evolving API such as OpenGL, I think it is essential to
automate as much of the low-level interface code generation as possible,
just as you have done.

I have long thought that bindings to good libraries are a real weak point of
all functional programming languages, so it is always good to see better
libraries being created and released. I wonder if there is any scope for
collaboration between the major FPL communities in trying to improve this
situation...
Show full article (1.21Kb)
no comments
Re: Releasing Qi/tk - a new model of development         


Author: Daniel Trstenjak
Date: Jul 22, 2007 07:07

On Sun, Jul 22, 2007 at 08:44:41AM +0100, Jon Harrop wrote:
> I have long thought that bindings to good libraries are a real weak point of
> all functional programming languages, so it is always good to see better
> libraries being created and released. I wonder if there is any scope for
> collaboration between the major FPL communities in trying to improve this
> situation...

Are you thinking about an abstract definition of bindings in a
functional style, which could be the source for the automatically
generation of language specific bindings?

Regards,
Daniel
no comments
Re: Releasing Qi/tk - a new model of development         


Author: Ken Tilton
Date: Jul 22, 2007 07:20

Jon Harrop wrote:
> Mark Tarver wrote:
>
>>For some time, rather desultorily recently, I'll admit, I've been
>>working on Qi/tk. But when complete it will amount to a complete type
>>secure GUI builder with all the GUI power of TCL/tk and a user-
>>programmable interface and connection to the web. This is part of the
>>L21 project (http://www.lambdassociates.org/lC21.htm).
>>
>>It's significant work and rather hard to develop, requiring detailed
>>knowledge of TCL/tk and command of Qi's sequent notation and how it
>>works. To give you an idea of just how complex just the type theory
>>is - it scales in at 12,000 lines of Lisp and rising. That is 2X the
>>size of Qi itself! Without Qi technology I really couldn't hope to
>>attempt this task.
>
>
> You may be interested in the LablTK bindings to Tk in the OCaml standard
> library, which provide Tk interoperability with the assurances of static
> typing. They weigh in at 41kLOC of OCaml, which is ~9%% of the OCaml ...
Show full article (1.33Kb)
no comments
Re: Releasing Qi/tk - a new model of development         


Author: Mark Tarver
Date: Jul 22, 2007 08:44

On 22 Jul, 15:20, Ken Tilton optonline.net> wrote:
> Jon Harrop wrote:
>> Mark Tarver wrote:
>
>>>For some time, rather desultorily recently, I'll admit, I've been
>>>working on Qi/tk. But when complete it will amount to a complete type
>>>secure GUI builder with all the GUI power of TCL/tk and a user-
>>>programmable interface and connection to the web. This is part of the
>>>L21 project (http://www.lambdassociates.org/lC21.htm).
>
>>>It's significant work and rather hard to develop, requiring detailed
>>>knowledge of TCL/tk and command of Qi's sequent notation and how it
>>>works. To give you an idea of just how complex just the type theory
>>>is - it scales in at 12,000 lines of Lisp and rising. That is 2X the
>>>size of Qi itself! Without Qi technology I really couldn't hope to
>>>attempt this task.
>
>> You may be interested in the LablTK bindings to Tk in the OCaml standard
>> library, which provide Tk interoperability with the assurances of static
>> typing. They weigh in at 41kLOC of OCaml, which is ~9%% of the OCaml ...
Show full article (3.91Kb)
no comments
Re: Releasing Qi/tk - a new model of development         


Author: Jon Harrop
Date: Jul 22, 2007 08:46

Ken Tilton wrote:
> My Celtk project comes in at 6k, Cells-Gtk at 10k. Qi makes what was one
> week's effort (Celtk, followed by Vasily's Cells-Gtk) into a Herculean
> task. Or was it Sisyphean? Some Egyptiam, anyway.
>
> Have we identified a problem with Qi/OCaml?

Probably need to compare features to find out. What programs are written
using Cells-Gtk, how much of GTK (2?) does it support, is it safe etc.?

--
Dr Jon D Harrop, Flying Frog Consultancy
OCaml for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists/?usenet
no comments
Re: Releasing Qi/tk - a new model of development         


Author: Jon Harrop
Date: Jul 22, 2007 08:48

Daniel Trstenjak wrote:
> On Sun, Jul 22, 2007 at 08:44:41AM +0100, Jon Harrop wrote:
>> I have long thought that bindings to good libraries are a real weak point
>> of all functional programming languages, so it is always good to see
>> better libraries being created and released. I wonder if there is any
>> scope for collaboration between the major FPL communities in trying to
>> improve this situation...
>
> Are you thinking about an abstract definition of bindings in a
> functional style, which could be the source for the automatically
> generation of language specific bindings?

I was thinking more along the lines of a higher-level intermediate API that
provided static typing and run-time types. That way dynamically typed
languages can ignore the static types and statically typed languages can
progagate them.

This is not too dissimilar to .NET and interoperating with C# from F# is
vastly nicer than interoperating with (say) C++ from OCaml.
Show full article (1.09Kb)
no comments

RELATED THREADS
SubjectArticles qty Group
PASS Catalyst-Model-DBIC-0.15 alpha-freebsd 6.0-releaseperl.cpan.testers ·
1 2 3 4 5