• Hosting A JavaScript Engine In .NET

    Updated: 2013-12-31 16: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-12-31 16: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.2 released

    Updated: 2013-12-30 19:12:45
    An Architect's View CFML , Clojure , Software Design , Frameworks and more . front page Archives Presentations Software RSS clojure.java.jdbc 0.3.2 released December 30, 2013 No Comments This release contains minor bug fixes compared to 0.3.0, with the main focus being an overhaul of docstrings etc to improve the auto-gen'd documentation The community documentation for java.jdbc on clojure-doc has also had a major . overhaul Details of this : release Add nil protocol implementation to . ISQLParameter Improve docstrings and add arglists for better auto-generated . documentation Make insert-sql private technically a breaking change but it should never have been public : sorry folks Provide better protocol for setting parameters in prepared statements JDBC-86. Fix parens in two deprecated

  • FW/1 2.2 Released!

    Updated: 2013-12-18 23:34:22
    An Architect's View CFML , Clojure , Software Design , Frameworks and more . front page Archives Presentations Software RSS FW 1 2.2 Released December 18, 2013 2 Comments Framework One version 2.2 is now available for production use You can download it from the Framework One page on RIAForge This includes one bug fix over RC2 interaction between renderData( and trace output The main focus of the 2.2 release is improved support for REST APIs , through the addition of renderData( to simplify returning JSON , XML and plain text results to the caller , as well as more sophisticated route handling via resource packs which let you define a family of related routes for a given resource type , using a shorthand notation . For more information , see this blog post about the latest FW 1 release and

  • Speaking at cf.Objective() and Scotch on the Rocks in 2014

    Updated: 2013-12-17 23:21:48
    An Architect's View CFML , Clojure , Software Design , Frameworks and more . front page Archives Presentations Software RSS Speaking at cf.Objective( and Scotch on the Rocks in 2014 December 17, 2013 No Comments I'm very pleased to be able to say that I will be giving a talk on Functional Programming for the Web at both cf.Objective( in May 2014 and Scotch on the Rocks in June 2014 For a little background on the talk , you can read my earlier blog post about Functional Programming for the Web but I wanted to provide a bit more detail about the contents of the talk in this . post If you write web applications in a typical imperative and or object-oriented language , the logic for each request will generally be a mix of side effects as well as data transformations . In many simple data

  • clojure.java.jdbc 0.3.0 Released!

    Updated: 2013-12-17 19:00:54
    An Architect's View CFML , Clojure , Software Design , Frameworks and more . front page Archives Presentations Software RSS clojure.java.jdbc 0.3.0 Released December 17, 2013 No Comments The gold release of the Clojure contrib library that wraps JDBC is now available on Maven Central . This release has been in the works for most of this year , as it introduces large changes from the previous gold release 0.2.3 that aim to make the library more idiomatic and easier to use in a multi-threaded functional environment . In order to provide a smooth migration path , the old API from the 0.2.3 release has been moved wholesale to the clojure.java.jdbc.deprecated namespace , and the new API in 0.3.0 uses new naming for almost all of the new . functionality The main API change is the removal of the

  • clojure.java.jdbc 0.3.0 RC1

    Updated: 2013-12-13 17:40:12
    An Architect's View CFML , Clojure , Software Design , Frameworks and more . front page Archives Presentations Software RSS clojure.java.jdbc 0.3.0 RC1 December 13, 2013 No Comments Clojure's low-level JDBC wrapper inches closer to a gold 0.3.0 release with the first release candidate . Read more on clojure.java.jdbc's Github repo The changes in this release : are Deprecate db-transaction new in 0.3.0 in favor of with-db-transaction JDBC-81 Add with-db-metadata macro and metadata-result function to make it easier to work with SQL metadata JDBC-80 Add with-db-connection macro to make it easier to run groups of operations against a single open connection JDBC-79 Add ISQLValue protocol to make it easier to support custom SQL types for parameters in SQL statements JDBC-77 Add support for

Current Feed Items | Previous Months Items

Nov 2013 | Oct 2013 | Sep 2013 | Aug 2013 | Jul 2013 | Jun 2013