Error formatting macro: pagetree: java.lang.NullPointerException

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document is a work in progress! Please feel free to edit it.

= TODO =

  • Add documentation around the interesting tickets in this list
  • Remove less interesting tickets that don't have more docs
  • Comb through Git history and document the stuff not captured by tickets

Cleanup the organization of this file.

Move performance enhancements to their own section

Changes to Clojure in Version 1.3 Beta

...

0 Still In Process
1 Deprecated and Removed Features
1.1 Earmuffed Vars Are No Longer Automatically Considered Dynamic.
1.2 ISeq No Longer Inherits From Sequential
1.3 Disallow recur across try
1.4 Removed

1.X More info needed

Bit Operation support for boxed numbers ==

2 New/Improved Features in clojure.core
2.1 Enhanced Primitive Support
2.2 better exception reportingBetter Exception Reporting
2.3 ancillary namespaces no longer auto-load on startup:
2.4 Code Path for Using Vars is Now Much Faster for the Common Case
2.5 clojure.reflect/reflect
2.6 clojure.data/diff
2.7 with-redefs macro (useful for stubbing)
2.8 print-table
2.9 normalized unchecked-* fn names
2.10 added unchecked-math support
2.11 fixes to binding conveyance (and agent)
2.12 pprint respects print-length
2.13 into-array now coerces numeric types
2.14 Java's line.separator property for newline
2.15 compilation and deployment via Maven
2.16 improved startup time
2.17 internal keyword map uses weak refs
2.18 fix perf on some numeric overloads
2.19 ^:const defs
2.20 Message Bearing Assert
2.21 Error Checking for defmulti Options
2.22 Promises are Lock Free
2.23 Removed Checked Exceptions
2.24 vector-of Takes Multiple Arguments
2.25 every-pred and some-fn Combinators
2.26 deref with timeout
2.27 realized?
2.28 Functions Only Get Metadata Support Code When Metadata Explicitly Supplied When Defined
2.29 Allow definterface/gen-interface to Accept Array Type Hints
2.30 Better Error Messages

2.31 Walk Support for sorted-by Collections
2.32 31 string.join Enhanced to Work with Sets
2.33 32 clojure.test-helper
2.34 33 Newline outputs platform-specific newline sequence
2.35 34 nil? inlined
2.36 35 init-proxy and update-proxy return proxy
2.37 36 doc & find-doc moved to REPL
2.38 37 clojure.java.shell/sh accepts as input anything that clojure.java.io/copy does
2.X More Info Needed

3 New Namespaces

4 38 print-table

2.39 Interrupte Handler Promoted to clojure.repl

2.40 with-redefs-fn & with-redefs

2.41 Make PersistentQueue Count O(1)

2.42 Add support for running -main namespaces from clojure.main

2.43 Set thread names on agent thread pools

2.44 Add docstring support to def

2.45 find-keyword

2.46 Comp function returns identity when called with zero arity

2.47 pst

3 Functions with Improved Performance
5 4 Bug Fixes
6 5 JIRA issues

= 0 Still In Process =

  • CLJ-184 n-ary bit functions, also inlining of n-ary bit and math operations
  • CLJ-371 dynamic defrecord definitions trumped by AOT versions in classpathCLJ-374 print/read syntax for defrecords
  • CLJ-666 Add support for Big* numeric types to ReflectorCLJ-671 Recur mismatch causes infinite loop in compiler
  • CLJ-772 bit ops to have primitive semantics by default, no conditionals, direct mapping to JVM primitive ops

= 1 Deprecated and Removed Features =

...

Bit Operations map directly to primitive operations

== 1.X More info needed ==

...

Replicate has been deprecated in favor of repeat

= 2 New/Improved Features in clojure.core =

...

Full details here: http://dev.clojure.org/display/design/Error+Handling

Additionally:

Better error messages:

  • When calling macros with arity
  • For Invalid Map Literals
  • For alias function if using unknown namespace
  • In the REPL
  • Add "starting at <line>" to EOF while reading exceptions
  • Better compilation error reporting

== 2.3 Ancillary Namespaces No Longer Auto-Load on Startup ==

...

Performance optimization to allow type hinting on interfaces.

== 2.30 Better Error Messages ==

Better error messages:

  • When calling macros with arity
  • For Invalid Map Literals
  • For alias function if using unknown namespace
  • In the REPL

== 2.31 Walk Support for sorted-by Collections

...

let x (sorted-set-by > 1 2 3) (walk inc reverse x))
=> (2 3 4)

== 2.32 31 string.join Enhanced to Work with Sets ==

...

(join " and " #{:fred :ethel :lucy})
=> ":lucy and :fred and :ethel"

== 2.33 32 clojure.test-helper ==

All test helpers moved into clojure.test-helper

== 2.34 33 Newline outputs platform-specific newline sequence ==

Newline sequence is output as \r\n on Windows now.

== 2.35 34 nil? inlined ==

Performance optimization

== 2.36 35 init-proxy and update-proxy return proxy ==

Now you can chain calls on the proxy

== 2.37 36 doc & find-doc moved to REPL ==

Adds special form docs to the REPL

== 2.38 37 clojure.java.shell/sh accepts as input anything that clojure.java.io/copy does

This adds InputStream, Reader, File, byte[] to the list of inputs for clojure.java.shell/sh

== 2.39 38 print-table

Prints a collection of maps in a textual table.

(print-table fred :barney fred "ethel"} {:fred "wilma" :barney "betty"})
=> ===============
:fred | :barney
===============
ethel |
wilma | betty
===============

== 2.X More Info Needed ==

...

39 Interrupte Handler Promoted to clojure.repl ==

Promoting this library eliminates the need for a dependency on old contrib.

== 2.40 with-redefs-fn & with-redefs ==

with-redefs-fn temporarily redefines Vars during a call to func. with-redefs temporarily redefines Vars while executing the body.

(with-redefs temp (println nil?))

=> :temp

== 2.41 Make PersistentQueue Count O(1) ==

This is a performance optimization for calling count() on PersistantQueue. It now implements the Counted interface and provides constant time counting by maintaining a count of the number of elements internally.

== 2.42 Add support for running -main

...

namespaces from clojure.main

...

This patch allows clojure.main to accept an argument pointing to a namespace to look for a -main function in. This allows users to write -main functions that will work the same whether the code is AOT-compiled for use in an executable jar or just run from source.

== 2.43 Set thread names on agent thread pools

...

= 5 ==

It's a best practice to name the threads in an executor thread pool with a custom ThreadFactory so that the purpose of these threads is clear in thread dumps and other runtime operational tools.

Patch causes thread names like:

clojure-agent-send-pool-%d ��� should be fixed # of threads

clojure-agent-send-off-pool-%d ��� will be added and removed over time

== 2.44 Add docstring support to def ==

defs can now have docstrings

== 2.45 find-keyword ==

Returns a Keyword with the given namespace and name if one already exists.

(find-keyword "def")

=> :def

(find-keyword "fred")

=> nil

== 2.46 Comp function returns identity when called with zero arity ==

(= (comp) identity)

=> true

== 2.47 pst ==

Prints a stack trace of the exception

pst

=> (pst (IllegalArgumentException.))

IllegalArgumentException

user/eval27 (NO_SOURCE_FILE:18)

clojure.lang.Compiler.eval (Compiler.java:6355)

clojure.lang.Compiler.eval (Compiler.java:6322)

clojure.core/eval (core.clj:2699)

clojure.main/repl/read-eval-print--5906 (main.clj:244)

clojure.main/repl/fn--5911 (main.clj:265)

clojure.main/repl (main.clj:265)

clojure.main/repl-opt (main.clj:331)

clojure.main/main (main.clj:427)

clojure.lang.Var.invoke (Var.java:397)

clojure.lang.Var.applyTo (Var.java:518)

clojure.main.main (main.java:37)

= 3 Functions with Improved Performance =

TBD

= 4 Bug Fixes =

  • CLJ-8 detect and report cyclic load dependencies
    • Patch restore detection of cyclic load dependencies
  • CLJ-286 out being used as java.io.PrintWriter
    • Patch fixes using Writer instead of PrintWriter
    • fix clojure.main to not assume that err is a PrintWriter
  • CLJ-292 LazySeq.sval() nests RuntimeExceptions
    • Patch causes only the original RuntimeException to be thrown

...

  • CLJ-430 clojure.java.io URL Coercion throws java.lang.ClassCastException
    • Patch correct exception to be thrown
  • CLJ-432 deftype does not work if containing ns contains dashes
    • Patch munges namespaces with dashes properly

...

  • CLJ-435 stackoverflow exception in printing meta with :type
  • CLJ-437 Bugs in clojure.set/subset? and superset? for sets with false/nil elements
    • Patch fixes failing on subset? and superset? for sets with false/nil elements
  • CLJ-439 Automatic type translation from Integer to Long
    • Patch fixes increase coercion from Integer to Long
  • CLJ-444 Infinite recursion in Keyword.intern leads to stack overflow
    • No more infinite recursion with patch
  • CLJ-678 into-array should work with all primitive types

...

  • several "holding onto head" fixes
  • Stop top-level defs from hanging onto the head of an expression that uses a lazy seq
  • Stop multimethods from holding onto heads of their arguments
  • CLJ-8 GC Issue 3: Re-enable detection of circular loads
  • CLJ-139 defmulti should not add {:tag 'clojure.lang.MultiFn} to multimethod metatdata
  • CLJ-235 clojure.test fixtures don't work with test-ns-hook
  • CLJ-282 Replace references to duck-streams in clojure.test comments to io
  • CLJ-286 out being used as java.io.PrintWriter
  • CLJ-292 LazySeq.sval() nests RuntimeExceptions
  • CLJ-305 out has a misleading docstring
  • CLJ-368 Redefining a function that uses a redifined macro, picks up old macro defintion
  • CLJ-421 clojure tests can fail because of a race in the pprint tests
  • CLJ-430 clojure.java.io URL Coercion throws java.lang.ClassCastException
  • CLJ-437 Bugs in clojure.set/subset? and superset? for sets with false/nil elements
  • CLJ-444 Infinite recursion in Keyword.intern leads to stack overflow
  • CLJ-447 biginteger fn misses a case for clojure.lang.BigInt
  • CLJ-462 clojure.core/slurp docstring out of date
  • CLJ-465 with-local-vars broken after changes to make dynamic off by default
  • CLJ-684 agent self-send test heisenfailing
  • CLJ-695 pprint does not respect print-length
  • CLJ-749 reference a definterface in file that declares it

= 6 = 5 JIRA Issues =

The complete list of JIRA issues is here: http://dev.clojure.org/jira/secure/IssueNavigator.jspa?mode=hide&requestId=10052