80 karma · joined September 21, 2011
More trivially, adding types IS adding constraints that are verifiable at compile time.
If compile-time verification of that sort is not essential (or not desired, which is the more general form of not essential), then the constraints are non-essential (or not desired).
---
Whether you choose to
1. Choose a particular data-structure and implement both modules to pass and receive that data-structure.
2. Specify an interface: The interface requires the data-structure to have certain properties (e.g. some methods work on them). The modules then build to the interface.
3. Specify that an adaptor exist to convert the data-structure to whatever the module requires.
is a somewhat different issue, although the kind of type system used does affect the implementation complexity and effort required.
The issue is whether the interfacing technique adds in non-essential coupling. A technique that has at least the constraints of another technique will also have trivially have at least the non-essential coupling of the other technique.
Types add constraints, thus increasing coupling (and decreasing modularity).
Although types have benefits. And direct modularity is seldom the only concern. I.e. Correctness and reliability also enhances modularity in an indirect way - an erroneous module definitely decreases modularity.
Qi is a programming language with a "powerful" static type system, which can be useful. Other generally usable languages with "powerful" static typing include Haskell and Ocaml. Some people want "powerful" static typing. If you are one of those, then like me, you should be interested in Qi.
Qi has been implemented in Common Lisp. Qi code is translated into Lisp code, and Qi code can also call Lisp code - there is interoperability. If you code in Lisp or intend to do so, you can use Qi as well, and still reuse existing code and functionality.
However, few people use Common Lisp. Some of the most popular platforms do not support Common Lisp.
Shen is intended to be the next evolution of Qi; Shen is a "redesign" of Qi to reduce the effort required to implement Qi on a language. The idea is to implement Shen on popular languages, like Javascript, Python, etc.
There are three notable benefits that we can look forward to: 1. Single language across many platforms. 2. High-level language available on platforms, like the web browser, mobile devices, and so on. Haskell today doesn't run on mobile phones. 3. Qi/Shen is like a cleaned-up Lisp. Some people prefer that to languages like Javascript, to Dalvik Java, and so on.
What's pending is its implementation on the non-Lisp languages. Performance and reliability could be concerns, given the differences between its original host language, Lisp, and other languages. If the performance and correctness tests for these turn out well, there is good reason to be excited.
The release of Shen on Common Lisp is of lesser consequence. Qi already runs on Common Lisp. Releasing Shen (which is mostly a more "portable" Qi, but retaining the syntax and power) on CL just proves that Shen has been completed with nearly no errors.
Currently, there's a group working to implement it on Javascript, but they postponed the delivery to late October. Its success would be noteworthy.