jackhill/mal.git
10 years agoFix metadata on functions.
Joel Martin [Thu, 10 Apr 2014 04:58:27 +0000 (23:58 -0500)]
Fix metadata on functions.

- Don't use metadata to store ast, env, params data.
- In Clojure, store metadata on the :meta key of the real metadata.
  This also allows using any datatype as metadata.

10 years agoREADME: add C# info. Cleanup top Makefile.
Joel Martin [Thu, 10 Apr 2014 03:15:54 +0000 (22:15 -0500)]
README: add C# info. Cleanup top Makefile.

Also, re-order impls into alphabetical order.

10 years agoC#: add metadata and atoms.
Joel Martin [Thu, 10 Apr 2014 02:57:50 +0000 (21:57 -0500)]
C#: add metadata and atoms.

10 years agoC#: add stepA_more and core functions.
Joel Martin [Thu, 10 Apr 2014 02:26:35 +0000 (21:26 -0500)]
C#: add stepA_more and core functions.

10 years agoC#: add step8_macros
Joel Martin [Tue, 8 Apr 2014 03:53:53 +0000 (22:53 -0500)]
C#: add step8_macros

10 years agoC#: add step7_quote
Joel Martin [Tue, 8 Apr 2014 03:40:30 +0000 (22:40 -0500)]
C#: add step7_quote

10 years agoC#: step6_file
Joel Martin [Tue, 8 Apr 2014 02:58:03 +0000 (21:58 -0500)]
C#: step6_file

10 years agoC#: add step5_tco
Joel Martin [Tue, 8 Apr 2014 02:33:29 +0000 (21:33 -0500)]
C#: add step5_tco

10 years agoCS: add step4_if_fn_do
Joel Martin [Mon, 7 Apr 2014 05:17:13 +0000 (00:17 -0500)]
CS: add step4_if_fn_do

10 years agoCS: add step3_env
Joel Martin [Mon, 7 Apr 2014 04:58:14 +0000 (23:58 -0500)]
CS: add step3_env

Also, make Makefile more closely match the C Makefile.

10 years agoC#: add step2_eval.
Joel Martin [Mon, 7 Apr 2014 03:38:26 +0000 (22:38 -0500)]
C#: add step2_eval.

10 years agoCS: add step1_read_print
Joel Martin [Mon, 7 Apr 2014 03:13:14 +0000 (22:13 -0500)]
CS: add step1_read_print

10 years agoC: fix step1 EOF handling.
Joel Martin [Mon, 7 Apr 2014 00:28:11 +0000 (19:28 -0500)]
C: fix step1 EOF handling.

10 years agoC#: step0_repl using de Icaza's getline.cs
Joel Martin [Mon, 7 Apr 2014 00:23:28 +0000 (19:23 -0500)]
C#: step0_repl using de Icaza's getline.cs

10 years agodocs/TODO: cleanup/re-organize. Add more languages.
Joel Martin [Sun, 6 Apr 2014 22:35:18 +0000 (17:35 -0500)]
docs/TODO: cleanup/re-organize. Add more languages.

10 years agoJS: fix josh.js submodule for gh-pages compatibility.
Joel Martin [Sun, 6 Apr 2014 22:06:07 +0000 (17:06 -0500)]
JS: fix josh.js submodule for gh-pages compatibility.

10 years agoJS: fix web interface.
Joel Martin [Sun, 6 Apr 2014 21:40:55 +0000 (16:40 -0500)]
JS: fix web interface.

10 years agoC,PHP,Python: stepA fixup. All tests/impls pass!
Joel Martin [Sun, 6 Apr 2014 21:24:27 +0000 (16:24 -0500)]
C,PHP,Python: stepA fixup. All tests/impls pass!

10 years agoPython: missed cleanup/core split of step9, stepA.
Joel Martin [Sun, 6 Apr 2014 21:17:38 +0000 (16:17 -0500)]
Python: missed cleanup/core split of step9, stepA.

10 years agoPS: fix string escaping. Passes all tests.
Joel Martin [Sun, 6 Apr 2014 20:53:19 +0000 (15:53 -0500)]
PS: fix string escaping. Passes all tests.

10 years agoPS: add vector, hash-map, atoms and metadata.
Joel Martin [Sun, 6 Apr 2014 20:23:40 +0000 (15:23 -0500)]
PS: add vector, hash-map, atoms and metadata.

As part of this lists switch from being a postscript array to being
a mal boxed type (dictionary with type in the /_maltype_ key).

10 years agoAll: split types into types, env, printer, core.
Joel Martin [Thu, 3 Apr 2014 03:23:37 +0000 (22:23 -0500)]
All: split types into types, env, printer, core.

- types: low-level mapping to the implementation language.
- core: functions on types that are exposed directly to mal.
- printer: implementation called by pr-str, str, prn, println.
- env: the environment implementation

- Also, unindent all TCO while loops so that the diff of step4 and
  step5 are minimized.

10 years agoAll: remove slurp-do, use str around slurp instead.
Joel Martin [Wed, 2 Apr 2014 04:12:33 +0000 (23:12 -0500)]
All: remove slurp-do, use str around slurp instead.

10 years agoJava: fix Makefile file list.
Joel Martin [Wed, 2 Apr 2014 03:51:32 +0000 (22:51 -0500)]
Java: fix Makefile file list.

10 years agoAll: pass stepA tests, in particular with correct conj behavior.
Joel Martin [Wed, 2 Apr 2014 03:50:55 +0000 (22:50 -0500)]
All: pass stepA tests, in particular with correct conj behavior.

10 years agoPS: add stepA_more.
Joel Martin [Wed, 2 Apr 2014 02:50:24 +0000 (21:50 -0500)]
PS: add stepA_more.

Sync other steps. In particular, self reference in function definition
and putting readline into _readline function.

10 years agoPS: add step9_interop: (ps* str)
Joel Martin [Wed, 2 Apr 2014 01:06:44 +0000 (20:06 -0500)]
PS: add step9_interop: (ps* str)

Needs some work, but function. Also need (. x y z) form.

10 years agoPS: add step8_macros.
Joel Martin [Tue, 1 Apr 2014 04:05:41 +0000 (23:05 -0500)]
PS: add step8_macros.

Use dicts rather than array block for user defined mal function type.
Add fload function to setup call from a mal_function dict.

10 years agoPS: add step7_quote
Joel Martin [Mon, 31 Mar 2014 03:39:44 +0000 (22:39 -0500)]
PS: add step7_quote

10 years agoREADME, TODO, step_notes updates.
Joel Martin [Sun, 30 Mar 2014 21:39:44 +0000 (16:39 -0500)]
README, TODO, step_notes updates.

10 years agoPS: add ste6_file.
Joel Martin [Sun, 30 Mar 2014 21:37:14 +0000 (16:37 -0500)]
PS: add ste6_file.

10 years agoREADME: add more details.
Joel Martin [Sun, 30 Mar 2014 00:01:14 +0000 (19:01 -0500)]
README: add more details.

10 years agoREADME: minor name synchronization ("argument").
Joel Martin [Sat, 29 Mar 2014 23:37:20 +0000 (18:37 -0500)]
README: minor name synchronization ("argument").

10 years agoPS: add step5_tco.
Joel Martin [Sat, 29 Mar 2014 23:35:22 +0000 (18:35 -0500)]
PS: add step5_tco.

Update step4 function definition to match.

10 years agoPS: fix string length calc for printing integers.
Joel Martin [Sat, 29 Mar 2014 23:34:10 +0000 (18:34 -0500)]
PS: fix string length calc for printing integers.

10 years agoPS: add step4_if_fn_do
Joel Martin [Sat, 29 Mar 2014 23:20:07 +0000 (18:20 -0500)]
PS: add step4_if_fn_do

10 years agoPS: error handling, throw, print excpetions without dying.
Joel Martin [Sat, 29 Mar 2014 22:35:53 +0000 (17:35 -0500)]
PS: error handling, throw, print excpetions without dying.

10 years agoPS: add step3_env
Joel Martin [Sat, 29 Mar 2014 22:26:07 +0000 (17:26 -0500)]
PS: add step3_env

10 years agoPS: step2_eval
Joel Martin [Sat, 29 Mar 2014 22:01:24 +0000 (17:01 -0500)]
PS: step2_eval

10 years agoPS: minimal step1_read_print
Joel Martin [Sat, 29 Mar 2014 20:56:20 +0000 (15:56 -0500)]
PS: minimal step1_read_print

10 years agoUpdate README.md and TODO. Minor PS update.
Joel Martin [Sat, 29 Mar 2014 20:17:00 +0000 (15:17 -0500)]
Update README.md and TODO. Minor PS update.

10 years agoClojure, Java, PHP: remove hardcoded readline history path.
Joel Martin [Sat, 29 Mar 2014 20:00:07 +0000 (15:00 -0500)]
Clojure, Java, PHP: remove hardcoded readline history path.

10 years agoPS: add notes for running postscript.
Joel Martin [Wed, 26 Mar 2014 17:27:52 +0000 (10:27 -0700)]
PS: add notes for running postscript.

10 years agoPostscript: step0_repl.ps
Joel Martin [Tue, 25 Mar 2014 22:15:32 +0000 (15:15 -0700)]
Postscript: step0_repl.ps

Run it using ghostscript:

    gs -q -dNODISPLAY step0_repl.ps

10 years agoUpdate to actual presentation used for talk.
Joel Martin [Tue, 25 Mar 2014 22:15:11 +0000 (15:15 -0700)]
Update to actual presentation used for talk.

10 years agoREADME: stub.
Joel Martin [Mon, 24 Mar 2014 21:42:25 +0000 (16:42 -0500)]
README: stub.

10 years agoCurrent state of mal for Clojure West lighting talk.
Joel Martin [Mon, 24 Mar 2014 21:32:24 +0000 (16:32 -0500)]
Current state of mal for Clojure West lighting talk.