jackhill/mal.git
10 years agoPerl: step8_macros
Joel Martin [Tue, 22 Apr 2014 02:47:36 +0000 (21:47 -0500)]
Perl: step8_macros

- Fixes to core.pl: concat
- Fixes to types.pl: _symbol_Q, Function apply

10 years agoPerl: add step7_quote
Joel Martin [Tue, 22 Apr 2014 02:13:04 +0000 (21:13 -0500)]
Perl: add step7_quote

10 years agoPerl: step6_file
Joel Martin [Tue, 22 Apr 2014 01:48:16 +0000 (20:48 -0500)]
Perl: step6_file

10 years agoPerl: add step5_tco
Joel Martin [Tue, 22 Apr 2014 01:08:18 +0000 (20:08 -0500)]
Perl: add step5_tco

- Make all warnings fatal/exceptions.

10 years agoPerl: add step4_if_fn_do
Joel Martin [Mon, 21 Apr 2014 04:45:58 +0000 (23:45 -0500)]
Perl: add step4_if_fn_do

- Move string/printing tests to the bottom of tests/step4_if_fn_do

10 years agoPerl: add step3_env
Joel Martin [Mon, 21 Apr 2014 03:54:38 +0000 (22:54 -0500)]
Perl: add step3_env

10 years agoPerl: add step2_eval.
Joel Martin [Mon, 21 Apr 2014 02:50:52 +0000 (21:50 -0500)]
Perl: add step2_eval.

10 years agoTests: move optional features to end and print header.
Joel Martin [Sat, 19 Apr 2014 20:27:19 +0000 (15:27 -0500)]
Tests: move optional features to end and print header.

10 years agoPerl: add step1_read_print, types.
Joel Martin [Sat, 19 Apr 2014 20:12:13 +0000 (15:12 -0500)]
Perl: add step1_read_print, types.

10 years agoPerl: add readline interface and step0_repl
Joel Martin [Sat, 19 Apr 2014 18:55:30 +0000 (13:55 -0500)]
Perl: add readline interface and step0_repl

10 years agoAll: *ARGV* and *host-language*. Misc syncing/fixes.
Joel Martin [Sat, 19 Apr 2014 18:04:09 +0000 (13:04 -0500)]
All: *ARGV* and *host-language*. Misc syncing/fixes.

10 years agoRuby,Python,C#: readline history fixes. Ruby include path.
Joel Martin [Fri, 18 Apr 2014 03:23:07 +0000 (22:23 -0500)]
Ruby,Python,C#: readline history fixes. Ruby include path.

10 years agoAll: perf test, Makefile refactor, add *host-language*
Joel Martin [Fri, 18 Apr 2014 02:49:07 +0000 (21:49 -0500)]
All: perf test, Makefile refactor, add *host-language*

Other:
- bash,make,postscript: quasiquote of vectors
- Fix Java slurp
- add time function to core.mal
    - switches on *host-language* for make time-secs vs time-ms
- Ignore */experiments directories

10 years agoAll: move some fns to core. Major cleanup.
Joel Martin [Thu, 17 Apr 2014 04:57:50 +0000 (23:57 -0500)]
All: move some fns to core. Major cleanup.

- Don't import/require core until step4.
- Define cond/or macros from step8

10 years agoPython: metadata on builtin funcs. Support python3.
Joel Martin [Thu, 17 Apr 2014 03:42:17 +0000 (22:42 -0500)]
Python: metadata on builtin funcs. Support python3.

10 years agoREADME: typo.
Joel Martin [Wed, 16 Apr 2014 02:11:35 +0000 (21:11 -0500)]
README: typo.

10 years agoRuby: remove debug. Update TODO.
Joel Martin [Wed, 16 Apr 2014 02:04:43 +0000 (21:04 -0500)]
Ruby: remove debug. Update TODO.

10 years agoPS: fix concat with no args and conj.
Joel Martin [Wed, 16 Apr 2014 01:54:18 +0000 (20:54 -0500)]
PS: fix concat with no args and conj.

10 years agoAll: fix get. All pass stepA tests.
Joel Martin [Tue, 15 Apr 2014 06:24:43 +0000 (01:24 -0500)]
All: fix get. All pass stepA tests.

10 years agoMal space cleanup. Ruby Makefile. TODO updates.
Joel Martin [Tue, 15 Apr 2014 04:04:48 +0000 (23:04 -0500)]
Mal space cleanup. Ruby Makefile. TODO updates.

10 years agoPS: fix test invocation.
Joel Martin [Tue, 15 Apr 2014 04:04:38 +0000 (23:04 -0500)]
PS: fix test invocation.

10 years agoPS: fix meta return value when obj has no meta
Joel Martin [Tue, 15 Apr 2014 03:59:46 +0000 (22:59 -0500)]
PS: fix meta return value when obj has no meta

10 years agoPS: fix function closures. Self-hosted up to step7.
Joel Martin [Tue, 15 Apr 2014 03:46:54 +0000 (22:46 -0500)]
PS: fix function closures. Self-hosted up to step7.

10 years agoJava, JS: cleanup and sync steps.
Joel Martin [Sun, 13 Apr 2014 20:36:02 +0000 (15:36 -0500)]
Java, JS: cleanup and sync steps.

- Java: less direct use of obj.value attribute.

10 years agoRuby: fixes to enable self-hosting.
Joel Martin [Sun, 13 Apr 2014 20:27:34 +0000 (15:27 -0500)]
Ruby: fixes to enable self-hosting.

Also, other cleanup and sync between steps.

10 years agoRuby: add stepA_more and rest of core functions.
Joel Martin [Sun, 13 Apr 2014 19:37:56 +0000 (14:37 -0500)]
Ruby: add stepA_more and rest of core functions.

10 years agoRuby: add step9_interop
Joel Martin [Fri, 11 Apr 2014 04:31:04 +0000 (23:31 -0500)]
Ruby: add step9_interop

- Just (rb* "str") which evals the string and returns the result

10 years agoRuby: add step8_macros
Joel Martin [Fri, 11 Apr 2014 04:27:50 +0000 (23:27 -0500)]
Ruby: add step8_macros

10 years agoRuby: add step7_quote
Joel Martin [Fri, 11 Apr 2014 04:20:11 +0000 (23:20 -0500)]
Ruby: add step7_quote

10 years agoRuby: add step6_file
Joel Martin [Fri, 11 Apr 2014 04:08:42 +0000 (23:08 -0500)]
Ruby: add step6_file

10 years agoRuby: add step5_tco
Joel Martin [Fri, 11 Apr 2014 03:52:26 +0000 (22:52 -0500)]
Ruby: add step5_tco

Function type in types extends Proc.

10 years agoRuby: step4_if_fn_do with core functions.
Joel Martin [Fri, 11 Apr 2014 03:24:58 +0000 (22:24 -0500)]
Ruby: step4_if_fn_do with core functions.

10 years agoRuby: add step3
Joel Martin [Fri, 11 Apr 2014 02:12:17 +0000 (21:12 -0500)]
Ruby: add step3

10 years agoRuby: step2_eval
Joel Martin [Fri, 11 Apr 2014 01:48:26 +0000 (20:48 -0500)]
Ruby: step2_eval

10 years agoRuby: step0, step1
Joel Martin [Fri, 11 Apr 2014 01:34:29 +0000 (20:34 -0500)]
Ruby: step0, step1

10 years agoAdd stats-lisp target (only env, core, stepA)
Joel Martin [Fri, 11 Apr 2014 00:27:42 +0000 (19:27 -0500)]
Add stats-lisp target (only env, core, stepA)

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.