Friday, February 10, 2006
E has three built-in data structures: lists, maps (hashtables) and sets. Each one comes in two flavors. Immutable (Const) and Mutable (Flex). Lists Lists are 0-indexed. You can use “+” for concatenation or the size() method to know the number of elements in the list. Keep in mind that the E String type is a [...]
Filed in Uncategorized
|
Tagged e
|
Thursday, February 9, 2006
Multi-Touch interaction is the technology of the future. While touch sensing is commonplace for single points of contact, multi-touch sensing enables a user to interact with a system with more than one finger at a time, as in chording and bi-manual operations. Such sensing devices are inherently also able to accommodate multiple users simultaneously, which [...]
Filed in Uncategorized
|
Tagged misc
|
Tuesday, February 7, 2006
There’s nothing much to say about E’s input output. Since E sits on top of Java it uses the underline classes (mostly java.io.File) to do I/O. Insted of Java, E has a more human interface to the underline file system. [code lang="javascript"] file objects for hardwired files: def file1 := def file2 := [/code] In [...]
Filed in Uncategorized
|
Tagged e
|
Tuesday, February 7, 2006
Functions This is a basic recursive function: [code lang="javascript"] def factorial(n) { if (n == 0) { return 1 } else { return n * factorial(n-1) } } [/code] What I noticed (and found wierd) is that [code lang="javascript"] if (blah blah) {} else {} [/code] is a syntax error Remember to put the else [...]
Filed in Uncategorized
|
Tagged e
|
E ships with a command line interpreter, named rune useful to test scripts and examples. The configuration file also has the capability to save trace log where you want useful to examine errors separately to not clog the terminal window everytime. Basics E has variables (declared with var statement) and constants (declared with def). The [...]
Filed in Uncategorized
|
Tagged e
|
Saturday, February 4, 2006
I started reading E in a Walnut and E feels great. I just want to point out some advantages and disadvantages of the language: Why E E’s promise-pipelining architecture ensures that deadlock cannot occur. Excluding user interface code, a simple but effective peer-to-peer secure chat system has been written in less than 30 lines of [...]
Filed in Uncategorized
|
Tagged e
|
Just gone through another bit of documentation about E language. Now about remote objects. E is secure by default and that’s is great. Enough said. The thing that makes it so secure it’s the core of his RPC mechanism. Every object is remotable (no need of mixin classes or awful scaffolding). What it takes to [...]
Filed in Uncategorized
|
Tagged e
|
Thursday, February 2, 2006
This is my first glance on E. It’s a very intuitive language. This is a non-commented copy of the Finding Text online tutorial, check there if you want to know more. Let the code itself speak. [code lang="javascript"] def find(file, substring) :void { for num => line in file { if (line.includes(substring)) { print(file.getPath() + [...]
Filed in Uncategorized
|
Tagged e
|