• Hosting A JavaScript Engine In .NET

    Updated: 2013-11-30 07:00:22
    Articles Blog About Hosting A JavaScript Engine In NET Tuesday , September 10, 2013 10 comments Tweet ClearScript is simple to use and allows me to host either V8 or Chakra The samples on the home page show just how easy is the interop from C to JavaScript and vice versa . I use a simple wrapper because the only API I need is one to Evaluate small script expressions . public interface IJavaScriptMachine IDisposable dynamic Evaluate(string expression The following implementation sets up a default environment for script execution by loading up some required scripts , like underscore.js . The scripts are embedded resources in the current assembly . public class JavaScriptMachine JScriptEngine , IJavaScriptMachine public JavaScriptMachine( LoadDefaultScripts( void LoadDefaultScripts( var

  • Metaprogramming Fun In JavaScript

    Updated: 2013-11-30 07:00:22
    Articles Blog About Metaprogramming Fun In JavaScript Tuesday , September 3, 2013 3 comments Tweet The idea is to take a JavaScript statement like the : following c.find({ x : 1, y : 3, name : foo id : 0 limit(1 and turn the statement into a data structure that describes the methods being invoked and the arguments for each method call . There are multiple method names to capture not just find and limit but also findOne orderBy and more This sounds like a job for a mock object library , but let†s explore a few simple approaches that use One approach that doesn†t work is try to to build a function for each possible method call and forget how closures work . The following code has a bug . var CommandCapture function var commands find findOne limit orderBy for var i 0 i By the time the

  • clojure.java.jdbc 0.3.0 beta2

    Updated: 2013-11-25 06:43:23
    An Architect's View CFML , Clojure , Software Design , Frameworks and more . front page Archives Presentations Software RSS clojure.java.jdbc 0.3.0 beta2 November 24, 2013 No Comments Based on feedback from the community , I have released clojure.java.jdbc 0.3.0-beta2 to Maven . Central This includes two very important : changes The clojure.java.jdbc.sql and clojure.java.jdbc.ddl namespaces have been . removed The API functions that were already marked as deprecated have moved to the clojure.java.jdbc.deprecated namespace This means that if you depend on the clojure.java.jdbc.sql or clojure.java.jdbc.ddl namespaces , which were introduced in 0.3.0-alpha1, you will need to switch to the java-jdbc dsl project release 0.1.0 is on Clojars The new namespaces in that project are java-jdbc.sql

  • Clojure/conj 2013 - a quick recap

    Updated: 2013-11-19 07:13:42
    An Architect's View CFML , Clojure , Software Design , Frameworks and more . front page Archives Presentations Software RSS Clojure conj 2013 a quick recap November 18, 2013 No Comments This was my third Clojure conj and the first year it's been outside of Raleigh , NC with the actual event at the George Washington Masonic Memorial , in a beautiful theater , and lodging at the expensive Embassy Suites , just a few minutes away . As usual , the caliber of the talks was mostly excellent which is important in a single track conference and the hallway bar conversations were also very educational entertaining I'm not going to go over the talks one by one I think Logan Linn has a great post about the Clojure conj 2013 talks so I'm just going to mention some : highlights Russ Olsen's To The Moon

  • clojure.java.jdbc 0.3.0 beta 1

    Updated: 2013-11-04 19:13:04
    An Architect's View CFML , Clojure , Software Design , Frameworks and more . front page Archives Presentations Software RSS clojure.java.jdbc 0.3.0 beta 1 November 4, 2013 No Comments The clojure.java.jdbc library has finally hit feature complete for the upcoming 0.3.0 release and so the first beta release has been made available . For full details , see the clojure.java.jdbc README on Github but here's a quick list of changes in this : release query as-arrays true now allows you to leverage lazy result fetching JDBC-72 h2 is now recognized as a protocol shorthand for org.h2.Driver Tests no longer use 1 literal JDBC-71 this was due to a change made in Clojure 1.6 that has since been reverted , but may be revisited in future Conditional use of javax.naming.InitialContext so the library can

Current Feed Items | Previous Months Items

Oct 2013 | Sep 2013 | Aug 2013 | Jul 2013 | Jun 2013 | May 2013