I have an idea that the specification for business requirements is able to be represented in SQL and Regular Expressions.
And I am trying to create the tools aiding to define the specification.
I am developing the tools in .NET Framework and the client application is based on WPF.
At first, I will clarify the tasks.
Sunday, June 5, 2011
Sunday, May 29, 2011
Intension and Extension?
I wrote the following code.
But the query of that code can be written in SQL as following:
In the former code, the loop is expanded inside. But the SQL is expanded outside.
It is interesting but I do not know that it is significant.
foreach(var e1 in
from table_1
where table_1.field_1 == 3
select table_1) {
foreach(var e2 in
from table_2
where table_2.field_2 == e1.field_1a
select table_2) {
foreach(var e3 in
from table_3
where table_3.field_3 == e2.field_2b
select table_3) {
...
}
}
}
But the query of that code can be written in SQL as following:
SELECT *
FROM TABLE_3,
(SELECT *
FROM TABLE_2,
(SELECT *
FROM TABLE_1
WHERE TABLE_1.FIELD_1 = 3
) X
WHERE TABLE_2.FIELD_2 = X.FIELD_1A
) Y
WHERE TABLE_3.FIELD_3 = Y.FIELD_2B
In the former code, the loop is expanded inside. But the SQL is expanded outside.
It is interesting but I do not know that it is significant.
Sunday, May 22, 2011
Using Xaml for design document
I got an idea that we use Xaml for design document.
For example, view/state transition diagrams, ER diagrams and flow charts etc.
I want tools to create design documents in Xaml formats.
Have such tools been yet?
For example, view/state transition diagrams, ER diagrams and flow charts etc.
I want tools to create design documents in Xaml formats.
Have such tools been yet?
Sunday, May 15, 2011
I am learning Coq.
But my learning speed is slow...
I want to apply Coq for describing application specifications.
But I do not think that I use Coq directly to describe application specifications.
I convert specifictions in natural language(but formal to some extent) to Coq language and process them by Coq.
Does it work good ?
I want to apply Coq for describing application specifications.
But I do not think that I use Coq directly to describe application specifications.
I convert specifictions in natural language(but formal to some extent) to Coq language and process them by Coq.
Does it work good ?
Sunday, May 8, 2011
Comonad in Coq
I am interested in Coq.
We can use Coq for proving the satisfaction for the monad laws when we define the Monad-type structure.
I want to prove the comonad laws for stream comonad using Coq.
But it's so difficult for me... .
We can use Coq for proving the satisfaction for the monad laws when we define the Monad-type structure.
I want to prove the comonad laws for stream comonad using Coq.
But it's so difficult for me... .
Sunday, May 1, 2011
Monad and Comonad
Monad is famous for the sake of Haskell.
But I think that comonad is not famous.
This site describe the Store Comonad.
I write this Store Comonad in F#.
But I think that comonad is not famous.
This site describe the Store Comonad.
I write this Store Comonad in F#.
type Store<'b, 'a> = ('b -> 'a) * 'b
let Store v b : Store<'b, 'a> = (v, b)
let extract ((v, b) : Store<'b, 'a>) = v b
let fmap (f : 'a -> 'c) ((v, b) : Store<'b, 'a>) = Store (f << v) b let duplicate ((v, b) : Store<'b, 'a>) = Store (Store v) b
let extend (f : Store<'b, 'a> -> 'c) (x : Store<'b, 'a>) = fmap f (duplicate x)
Sunday, April 24, 2011
FRP and Rx
The sample program is following:
var obs1 = Observable.FromEvent<TextChangedEventArgs>(textBox1, "TextChanged").Select(x => ((TextBox)x.Sender).Text);
var obs2 = Observable.FromEvent<TextChangedEventArgs>(textBox2, "TextChanged").Select(x => ((TextBox)x.Sender).Text);
var obs3 = obs1.Zip(obs2, (x, y) => x + y);
obs3.Subscribe(x => {
textBox3.Text = x;
});
I recognize that (x, y) => x + y implies TextBox3.Text = TextBox1.Text + TextBox2.Text and Zip method implies time merging.
Subscribe to:
Posts (Atom)

