Jump to: navigation, search

Difference between revisions of "VJET/ANVILS"

Line 46: Line 46:
#  Sencha Touch 2.1,2.2 - [[http://sencha.com Sencha]]  
#  Sencha Touch 2.1,2.2 - [[http://sencha.com Sencha]]  
== Under development VJET ANVILs ==
== Under development/ VJET ANVILs ==
===These ANVILs are part of VJET project===
===These ANVILs are part of VJET project===
# Console [[http://git.eclipse.org/c/vjet/org.eclipse.vjet.typelibs.git/tree/ConsoleTL git]]
# PerformanceTiming  [[http://git.eclipse.org/c/vjet/org.eclipse.vjet.typelibs.git/tree/PerformanceTimingTL git]]
# SWFObject  [[http://git.eclipse.org/c/vjet/org.eclipse.vjet.typelibs.git/tree/SWFObjectTL git]]
# Scriptaculous http://git.eclipse.org/c/vjet/org.eclipse.vjet.typelibs.git/tree/ScriptaculousTL
# Prototype http://git.eclipse.org/c/vjet/org.eclipse.vjet.typelibs.git/tree/PrototypeTL
# PhoneGap/Apache Cordova http://git.eclipse.org/c/vjet/org.eclipse.vjet.typelibs.git/tree/PhoneGapTL
===3rd party created/provided ANVILs===
===3rd party created/provided ANVILs===

Revision as of 14:15, 20 March 2013

Introducing VJET ANVILS

(Formerly known as VJET Type libraries)

Authoring - give you great code assist for the right javascript scope

Navigation - help you navigate the code base based on call hierarchy, references, etc.

Validation - provide semantic validation

Instruction - Helps with inline documentation

Libraries - Packaged as an Eclipse project just import and depend on.


VJET ANVILs provide a way to work with 3rd party Javascript libraries without requiring an Eclipse plugin because the ANVILS are described with javascript.

The idea behind the "ANVIL" is to create definitions which describe other JavaScript libraries. JavaScript is a huge area today thanks to Client and Server-side libraries such as jQuery and Node.js.

ANVIL "descriptions" are defined in a structured definition format called vjo.js. vjo.js is JavaScript itself (which is kind of nice - JavaScript describing other JavaScript).

We can think of the vjo.js as being similar to Java Interfaces and Class declarations. We can "describe" the coding contracts only but no their implementation. The implementation is always the real runtime library that would physically be included in your webpage like jquery (<script src="http://code.jquery.com/jquery-1.9.1.min.js";></script>) or server-side Node module being used via require(...).

The ANVIL is read in by the Eclipse IDE and provides the necessary information for it to provide authoring assistance and validations. Authoring assistance would be things like type completion and proposals which are concepts we generally enjoy with typed languages like Java.

Also, those definitions help VJET do validation on your code as well. For example your function takes a String and Number argument but someone passed in an Array or Date. In raw JavaScript this is just tough luck and bad things happen at runtime. With VJET, this scenario is caught and flagged as an error for the developer to correct.

JavaScript is a simple language on the surface and provides very limited types (Object, Function, Array, Date, Boolean, String, Number and RegExp) only. However, JavaScript can create very complex functions and types that benefit from more type support and that's where VJET comes into play.

Available VJET ANVILs

These ANVILs are part of the VJET project

  1. Dojo 1.6 [git]
  2. EcmaScript Ed. 5 api updates [git]
  3. HTML 5 Canvas 2D API [git]
  4. jQuery 1.4 [git]
  5. jQuery Mobile 1.0 Alpha 4.1 (Requires JQuery ANVIL) [git]
  6. JSON (plans to include in the built in ANVIL) - see bug [402813] [git]
  7. Node.js 0.4 [git]

3rd party created commercial ANVILs

  1. ExtJs 4.0.7, 4.1, 4.2 - [Sencha]
  2. Sencha Touch 2.1,2.2 - [Sencha]

Under development/ VJET ANVILs

These ANVILs are part of VJET project

  1. Console [git]
  2. PerformanceTiming [git]
  3. SWFObject [git]
  4. Scriptaculous http://git.eclipse.org/c/vjet/org.eclipse.vjet.typelibs.git/tree/ScriptaculousTL
  5. Prototype http://git.eclipse.org/c/vjet/org.eclipse.vjet.typelibs.git/tree/PrototypeTL
  6. PhoneGap/Apache Cordova http://git.eclipse.org/c/vjet/org.eclipse.vjet.typelibs.git/tree/PhoneGapTL

3rd party created/provided ANVILs

NodeJS 0.10 - Mark Palaima http://www.linkedin.com/in/markpalaima