Git Product home page Git Product logo

clojure.walk2's Introduction

clojure.walk2

A reimplementation of the clojure.walk namespace.

Submitted as an enhancement to Clojure in CLJ-1239.

This repo is for demonstration only. All further development/discussion should happen on Clojure's JIRA and mailing list.

Differences from the original clojure.walk:

  • Protocol-based dispatch for better performance

  • Support for records (also implemented for the old clojure.walk in CLJ-1105, applied in Clojure 1.6)

Releases and Dependency Information

No binary releases.

Run lein install in this directory, then use this dependency in a Leiningen project:

[com.stuartsierra/clojure.walk2 "0.1.0-SNAPSHOT"]

Usage

(require '[clojure.walk2 :as walk])

The public API is identical to that of clojure.walk.

See clojure.walk API documentation

Tests

In this directory, run lein test. The test suite is the same as that for clojure.walk, with some added tests for records.

Benchmarks

In this directory, start a repl with lein repl and then:

(require 'bench)
(bench/bench 5)

Pass different numbers to bench/bench to run the test with different random seeds. Call bench/data with the same random seed to see the test data.

In my tests, clojure.walk2 is about 2 times faster than clojure.walk.

License

Copyright © 2013 Stuart Sierra. All rights reserved.

The use and distribution terms for this software are covered by the Eclipse Public License 1.0 which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove this notice, or any other, from this software.

clojure.walk2's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.