jackhill/mal.git
9 years agoMerge branch 'master' of github.com:kanaka/mal into guile
Nala Ginrut [Thu, 19 Mar 2015 08:18:49 +0000 (16:18 +0800)]
Merge branch 'master' of github.com:kanaka/mal into guile

9 years agoadd Guile implementation to Makefile
Nala Ginrut [Thu, 19 Mar 2015 08:18:37 +0000 (16:18 +0800)]
add Guile implementation to Makefile

9 years agoPerl: still seems to need --raw in some situations.
Joel Martin [Thu, 19 Mar 2015 04:57:52 +0000 (23:57 -0500)]
Perl: still seems to need --raw in some situations.

9 years agoruntest: set INPUTRC to /dev/null
Joel Martin [Thu, 19 Mar 2015 04:51:14 +0000 (23:51 -0500)]
runtest: set INPUTRC to /dev/null

- try and avoid any strange readline init script settings.

9 years agoDockerfile: make Nim build one layer.
Joel Martin [Wed, 18 Mar 2015 19:51:32 +0000 (14:51 -0500)]
Dockerfile: make Nim build one layer.

Save couple hundred MB or so.

9 years agoruntest: set pty size to fix readline of long lines.
Joel Martin [Wed, 18 Mar 2015 18:08:08 +0000 (13:08 -0500)]
runtest: set pty size to fix readline of long lines.

- Also, add a long line test to step0 tests.
- Fix java step0 arg parsing.
- Fix postscript long line reads (larger buffer)
- Add mal step0_repl

9 years agojava,lua,perl: with TERM=dumb, --raw not needed
Joel Martin [Wed, 18 Mar 2015 14:01:01 +0000 (09:01 -0500)]
java,lua,perl: with TERM=dumb, --raw not needed

- Only mono based implementations (C#, VB) still need this.

9 years agoruntest: set TERM=dumb, remove --mono mode
Joel Martin [Wed, 18 Mar 2015 13:47:01 +0000 (08:47 -0500)]
runtest: set TERM=dumb, remove --mono mode

9 years agotests: move reorder tests to better match guide.
Joel Martin [Wed, 18 Mar 2015 13:12:19 +0000 (08:12 -0500)]
tests: move reorder tests to better match guide.

9 years agoFAQ: add question anchors.
Joel Martin [Tue, 17 Mar 2015 15:29:39 +0000 (10:29 -0500)]
FAQ: add question anchors.

9 years agoMerge pull request #45 from sdt/typofix-perl-clone
Joel Martin [Tue, 17 Mar 2015 00:57:15 +0000 (19:57 -0500)]
Merge pull request #45 from sdt/typofix-perl-clone

Test case & fix for typo in Perl _clone implementation

9 years agoFix typo in perl _clone()
Stephen Thirlwall [Tue, 17 Mar 2015 00:11:38 +0000 (11:11 +1100)]
Fix typo in perl _clone()

I stumbled over this cun-t-paste error in the perl implementation.

9 years agoAdd test that (with-meta X ...) returns an X
Stephen Thirlwall [Tue, 17 Mar 2015 00:10:39 +0000 (11:10 +1100)]
Add test that (with-meta X ...) returns an X

9 years agoMerge pull request #44 from sdt/step9-typo-fix
Joel Martin [Mon, 16 Mar 2015 14:51:21 +0000 (09:51 -0500)]
Merge pull request #44 from sdt/step9-typo-fix

Remove extra ) from step9 test snippet

9 years agoMerge pull request #43 from sdt/step9-apply-user-fn-test
Joel Martin [Mon, 16 Mar 2015 14:50:47 +0000 (09:50 -0500)]
Merge pull request #43 from sdt/step9-apply-user-fn-test

Step 9 apply tests test user fns as well as core

9 years agoRemove extra ) from step9 test snippet
Stephen Thirlwall [Mon, 16 Mar 2015 05:55:34 +0000 (16:55 +1100)]
Remove extra ) from step9 test snippet

My reader complains if there is extra input after the top-level
read_form, so this test was inadvertently failing for me.

9 years agoStep 9 apply tests test user fns as well as core
Stephen Thirlwall [Mon, 16 Mar 2015 05:30:56 +0000 (16:30 +1100)]
Step 9 apply tests test user fns as well as core

I had a bug in my apply core function. It worked for core functions, but
not for user-defined functions.

This bug escaped direct testing, but caused problems in self-host
testing.

Here's a couple of simple test cases that catch those errors.

9 years agoFAQ: minor cleanup/grammar.
Joel Martin [Sun, 15 Mar 2015 20:47:23 +0000 (15:47 -0500)]
FAQ: minor cleanup/grammar.

9 years agoREADME: link to FAQ and mention #mal (freenode).
Joel Martin [Sun, 15 Mar 2015 20:41:11 +0000 (15:41 -0500)]
README: link to FAQ and mention #mal (freenode).

9 years agoFAQ: mal history and new impl. merge guidelines.
Joel Martin [Sun, 15 Mar 2015 20:35:54 +0000 (15:35 -0500)]
FAQ: mal history and new impl. merge guidelines.

9 years agoFAQ: shorter title.
Joel Martin [Sun, 15 Mar 2015 17:40:13 +0000 (12:40 -0500)]
FAQ: shorter title.

9 years agoAdd FAQ: a couple questions that have come up.
Joel Martin [Sun, 15 Mar 2015 17:37:33 +0000 (12:37 -0500)]
Add FAQ: a couple questions that have come up.

9 years agoMerge pull request #42 from stamourv/master
Joel Martin [Sun, 15 Mar 2015 17:33:13 +0000 (12:33 -0500)]
Merge pull request #42 from stamourv/master

Fix extension for Racket in README.

9 years agoFix extension for Racket in README.
Vincent St-Amour [Sun, 15 Mar 2015 17:01:50 +0000 (13:01 -0400)]
Fix extension for Racket in README.

9 years agoguide: clarify eval function and ARGV.
Joel Martin [Sun, 15 Mar 2015 16:20:05 +0000 (11:20 -0500)]
guide: clarify eval function and ARGV.

9 years agoruntest.py: Ouput current buffer if keyboard interrupt.
Joel Martin [Sun, 15 Mar 2015 15:52:59 +0000 (10:52 -0500)]
runtest.py: Ouput current buffer if keyboard interrupt.

Suggestion on https://github.com/kanaka/mal/issues/40#issuecomment-81015115
by https://github.com/boxed

9 years agoguide: clarify usage of eval_ast in do form.
Joel Martin [Sat, 14 Mar 2015 22:37:54 +0000 (17:37 -0500)]
guide: clarify usage of eval_ast in do form.

9 years agoguide clarifications, but order for step5 tests.
Joel Martin [Sat, 14 Mar 2015 22:34:49 +0000 (17:34 -0500)]
guide clarifications, but order for step5 tests.

9 years agoAll: move metadata, atoms, readline, conj to stepA.
Joel Martin [Sat, 14 Mar 2015 22:14:32 +0000 (17:14 -0500)]
All: move metadata, atoms, readline, conj to stepA.

- Move some of the more optional things (conj, readline) to stepA. All
  implementations pass step9 tests now.
- Move metadata and atoms to stepA.
- Update step9 and stepA diagrams.

9 years agoMerge pull request #41 from epylar/add-outer-tests-step-3
Joel Martin [Sat, 14 Mar 2015 16:58:59 +0000 (11:58 -0500)]
Merge pull request #41 from epylar/add-outer-tests-step-3

Add outer tests to step3_env.mal

9 years agoAdd outer tests to step3_env.mal
Gavin Lewis [Sat, 14 Mar 2015 15:49:12 +0000 (08:49 -0700)]
Add outer tests to step3_env.mal

9 years agotests: add multilevel assoc test.
Joel Martin [Fri, 13 Mar 2015 02:49:58 +0000 (21:49 -0500)]
tests: add multilevel assoc test.

9 years agodocker: build script executable. Skip matlab automatically.
Joel Martin [Thu, 12 Mar 2015 22:41:55 +0000 (17:41 -0500)]
docker: build script executable. Skip matlab automatically.

9 years agoREADME: add docker test environment usage info.
Joel Martin [Thu, 12 Mar 2015 22:29:34 +0000 (17:29 -0500)]
README: add docker test environment usage info.

9 years agoTests: add testing Dockerfile. Impl fixes.
Joel Martin [Thu, 12 Mar 2015 03:22:35 +0000 (22:22 -0500)]
Tests: add testing Dockerfile. Impl fixes.

- tests/docker/Dockerfile: specifies full docker image containing all
  tools/languages (except matlab).
- tests/docker-build.sh: build above image.
- tests/docker-run.sh: launch above image.
    Example: ./tests/docker-run.sh make test^js^step2
- Various fixes across multiple languages:
    - Unicode fixes for bash and R on Ubuntu Utopic
    - readline history fixes for when ~/.mal-history is not available
      or readable/writable. No fatal errors.
    - fixes to work with perl 5.20 (and still perl 5.18)

9 years agoMisc updates to TODO, guide and README.
Joel Martin [Thu, 12 Mar 2015 03:08:21 +0000 (22:08 -0500)]
Misc updates to TODO, guide and README.

- Also, add SKIP_IMPLS option to top-level Makefile to ignore a list
  of implementations. Particularly useful for excluding licensed
  matlab when running tests on system without it (e.g. within
  container).

9 years agotests: add step0_repl.mal test missed earlier.
Joel Martin [Thu, 12 Mar 2015 02:57:12 +0000 (21:57 -0500)]
tests: add step0_repl.mal test missed earlier.

9 years agoruntest.py: split --no-pty from --mono
Joel Martin [Tue, 10 Mar 2015 18:30:14 +0000 (13:30 -0500)]
runtest.py: split --no-pty from --mono

9 years agoMerge pull request #35 from vi/fix_perl_hostlanguage_value
Joel Martin [Tue, 10 Mar 2015 15:18:06 +0000 (10:18 -0500)]
Merge pull request #35 from vi/fix_perl_hostlanguage_value

Fix *host-language* in Perl

9 years agoMerge pull request #38 from steveno/steveno-patch-1-1
Joel Martin [Tue, 10 Mar 2015 15:17:49 +0000 (10:17 -0500)]
Merge pull request #38 from steveno/steveno-patch-1-1

Correct typo

9 years agoMerge pull request #37 from steveno/patch-1
Joel Martin [Tue, 10 Mar 2015 15:17:29 +0000 (10:17 -0500)]
Merge pull request #37 from steveno/patch-1

Correct typo

9 years agoUpdate types.cs
Steven Oliver [Tue, 10 Mar 2015 12:18:01 +0000 (08:18 -0400)]
Update types.cs

9 years agoCorrect typo
Steven Oliver [Tue, 10 Mar 2015 12:15:33 +0000 (08:15 -0400)]
Correct typo

9 years agoFix *host-language* in Perl
Vitaly _Vi Shukela [Tue, 10 Mar 2015 00:49:23 +0000 (03:49 +0300)]
Fix *host-language* in Perl

9 years agoguide: fix typo and unfinished sentence in step 4.
Joel Martin [Mon, 9 Mar 2015 21:17:12 +0000 (16:17 -0500)]
guide: fix typo and unfinished sentence in step 4.

9 years agoRename LICENSE file so it's picked up by github.
Joel Martin [Mon, 9 Mar 2015 19:19:44 +0000 (14:19 -0500)]
Rename LICENSE file so it's picked up by github.

9 years agoMerge pull request #34 from microamp/guide-wrong-file
Joel Martin [Mon, 9 Mar 2015 04:58:29 +0000 (23:58 -0500)]
Merge pull request #34 from microamp/guide-wrong-file

guide: incorrect filename fixed

9 years agoguide: step2_env.qx -> step3_env.qx
james sangho nah [Sun, 8 Mar 2015 09:43:27 +0000 (22:43 +1300)]
guide: step2_env.qx -> step3_env.qx

9 years agoREADME: remove gratuitous parens.
Joel Martin [Sun, 8 Mar 2015 05:56:00 +0000 (23:56 -0600)]
README: remove gratuitous parens.

9 years agoguide: minor cleanup of "let*" section.
Joel Martin [Sat, 7 Mar 2015 21:59:52 +0000 (15:59 -0600)]
guide: minor cleanup of "let*" section.

9 years agoguide: typo.
Joel Martin [Sat, 7 Mar 2015 21:24:22 +0000 (15:24 -0600)]
guide: typo.

9 years agoguide: change optional section to deferrable.
Joel Martin [Sat, 7 Mar 2015 15:06:00 +0000 (09:06 -0600)]
guide: change optional section to deferrable.

- Clarify that this is not the same class as optional tests.
- Also, add deferrable not about adding the original function to the
  value return by `fn*` in step 5. Fixes https://github.com/kanaka/mal/issues/27

9 years agoAll step0: add test, fix bugs, remove step0 eval.
Joel Martin [Sat, 7 Mar 2015 15:04:07 +0000 (09:04 -0600)]
All step0: add test, fix bugs, remove step0 eval.

9 years agoMerge pull request #33 from microamp/typos
Joel Martin [Sat, 7 Mar 2015 14:59:03 +0000 (08:59 -0600)]
Merge pull request #33 from microamp/typos

typos

9 years agotypos fixed
james sangho nah [Sat, 7 Mar 2015 03:42:18 +0000 (16:42 +1300)]
typos fixed

9 years agoMerge pull request #31 from microamp/py3
Joel Martin [Fri, 6 Mar 2015 22:13:50 +0000 (16:13 -0600)]
Merge pull request #31 from microamp/py3

Compatibility with Python 3

9 years agoMerge pull request #32 from nacmartin/patch-1
Joel Martin [Fri, 6 Mar 2015 22:09:05 +0000 (16:09 -0600)]
Merge pull request #32 from nacmartin/patch-1

Removed extra parenthesis in tests for step5

9 years agoRemoved extra parenthesis in tests for step5
Nacho Martín [Fri, 6 Mar 2015 21:43:59 +0000 (22:43 +0100)]
Removed extra parenthesis in tests for step5

Hi there, just fixing an extra parenthesis.

PS: This thing is very addictive :)

9 years agocompatible with python 3
james sangho nah [Fri, 6 Mar 2015 20:32:23 +0000 (09:32 +1300)]
compatible with python 3

9 years agotests: fix long line error when self-hosted.
Joel Martin [Fri, 6 Mar 2015 13:03:41 +0000 (07:03 -0600)]
tests: fix long line error when self-hosted.

9 years agoRevert "Revert "Replace `pcre` with Rust-implemented regex crate (based on RE2).""
Joel Martin [Fri, 6 Mar 2015 05:22:56 +0000 (23:22 -0600)]
Revert "Revert "Replace `pcre` with Rust-implemented regex crate (based on RE2).""

This reverts commit 30794b71110f6c3cbd8f446de6acab3954f6555c.

9 years agoMerge pull request #29 from kanaka/revert-28-master
Joel Martin [Fri, 6 Mar 2015 05:15:16 +0000 (23:15 -0600)]
Merge pull request #29 from kanaka/revert-28-master

Revert "Replace `pcre` with Rust-implemented regex crate (based on RE2)....

9 years agoRevert "Replace `pcre` with Rust-implemented regex crate (based on RE2)."
Joel Martin [Fri, 6 Mar 2015 05:14:56 +0000 (23:14 -0600)]
Revert "Replace `pcre` with Rust-implemented regex crate (based on RE2)."

9 years agoMerge pull request #28 from BurntSushi/master
Joel Martin [Fri, 6 Mar 2015 05:09:34 +0000 (23:09 -0600)]
Merge pull request #28 from BurntSushi/master

Replace `pcre` with Rust-implemented regex crate (based on RE2).

9 years agoReplace `pcre` with Rust-implemented regex crate (based on RE2).
Andrew Gallant [Fri, 6 Mar 2015 01:01:29 +0000 (20:01 -0500)]
Replace `pcre` with Rust-implemented regex crate (based on RE2).

9 years agoREADME: update Rust version.
Joel Martin [Thu, 5 Mar 2015 19:40:15 +0000 (13:40 -0600)]
README: update Rust version.

9 years agoRust: apply improvements in stepA to other steps.
Joel Martin [Thu, 5 Mar 2015 19:15:12 +0000 (13:15 -0600)]
Rust: apply improvements in stepA to other steps.

9 years agoMerge pull request #26 from alexcrichton/update
Joel Martin [Thu, 5 Mar 2015 19:07:30 +0000 (13:07 -0600)]
Merge pull request #26 from alexcrichton/update

Update Rust code to the current Rust nightly

9 years agoFix a bad copy/paste apparently
Alex Crichton [Thu, 5 Mar 2015 17:46:51 +0000 (09:46 -0800)]
Fix a bad copy/paste apparently

9 years agotests: add macro-in-macro test.
Joel Martin [Thu, 5 Mar 2015 17:25:26 +0000 (11:25 -0600)]
tests: add macro-in-macro test.

E.g.: (or (or false 4))  ->  4

9 years agoUpdate Rust code to the current Rust nightly
Alex Crichton [Thu, 5 Mar 2015 08:22:43 +0000 (00:22 -0800)]
Update Rust code to the current Rust nightly

Lots of changes! Hopefully everything is still semantically equivalent (tests
still pass)

9 years agoMerge pull request #25 from hellyeah/master
Joel Martin [Thu, 5 Mar 2015 02:35:22 +0000 (20:35 -0600)]
Merge pull request #25 from hellyeah/master

Fixed implementation typo

9 years agoFixed implementation typo
David Fontenot [Thu, 5 Mar 2015 00:45:04 +0000 (16:45 -0800)]
Fixed implementation typo

9 years agoRust: build with --release. 10X performance boost!
Joel Martin [Wed, 4 Mar 2015 17:25:21 +0000 (11:25 -0600)]
Rust: build with --release. 10X performance boost!

9 years agoMerge pull request #12 from tebeka/master
Joel Martin [Wed, 4 Mar 2015 16:29:46 +0000 (10:29 -0600)]
Merge pull request #12 from tebeka/master

Works when ~/.mal-history does not exist

9 years agoMerge pull request #21 from def-/master
Joel Martin [Wed, 4 Mar 2015 14:48:52 +0000 (08:48 -0600)]
Merge pull request #21 from def-/master

Fix and clean up Nim implementation

9 years agoFix and clean up Nim implementation
def [Wed, 4 Mar 2015 13:12:19 +0000 (14:12 +0100)]
Fix and clean up Nim implementation

9 years agoNim: rename stepA_interop to stepA_mal
Joel Martin [Wed, 4 Mar 2015 05:14:53 +0000 (23:14 -0600)]
Nim: rename stepA_interop to stepA_mal

9 years agoMerge pull request #20 from def-/master
Joel Martin [Wed, 4 Mar 2015 04:46:09 +0000 (22:46 -0600)]
Merge pull request #20 from def-/master

Add Nim

9 years agoAdd instructions and makefile for Nim
def [Wed, 4 Mar 2015 03:17:43 +0000 (04:17 +0100)]
Add instructions and makefile for Nim

9 years agoIntegrate feedback from github.com/boxed
Joel Martin [Wed, 4 Mar 2015 02:45:24 +0000 (20:45 -0600)]
Integrate feedback from github.com/boxed

https://github.com/kanaka/mal/issues/19

9 years agoprocess/guide.md: add some step8 wrapup text.
Joel Martin [Tue, 3 Mar 2015 03:30:10 +0000 (21:30 -0600)]
process/guide.md: add some step8 wrapup text.

9 years agoREADME: missing end paren.
Joel Martin [Mon, 2 Mar 2015 23:59:41 +0000 (17:59 -0600)]
README: missing end paren.

9 years agoREADME: add more testing info.
Joel Martin [Mon, 2 Mar 2015 23:57:45 +0000 (17:57 -0600)]
README: add more testing info.

Fix stats target for matlab.

9 years agoruntest.py: cleanup all grandchildren too.
Joel Martin [Mon, 2 Mar 2015 23:36:09 +0000 (17:36 -0600)]
runtest.py: cleanup all grandchildren too.

Launch Popen with process group and kill that instead. Use atexit to
register cleanup function rather than direct calls.

9 years agoVarious: stepA test fixes/ignores.
Joel Martin [Mon, 2 Mar 2015 19:46:30 +0000 (13:46 -0600)]
Various: stepA test fixes/ignores.

9 years agoruntest.py: cleanup and rename --redirect to --mono
Joel Martin [Mon, 2 Mar 2015 19:41:49 +0000 (13:41 -0600)]
runtest.py: cleanup and rename --redirect to --mono

9 years agoocaml: fix empty? on vectors.
Joel Martin [Mon, 2 Mar 2015 19:41:27 +0000 (13:41 -0600)]
ocaml: fix empty? on vectors.

9 years agominiMAL: use npm published miniMAL.
Joel Martin [Mon, 2 Mar 2015 19:20:55 +0000 (13:20 -0600)]
miniMAL: use npm published miniMAL.

9 years agomatlab: move Reader.m to +types/Reader.m
Joel Martin [Mon, 2 Mar 2015 19:04:44 +0000 (13:04 -0600)]
matlab: move Reader.m to +types/Reader.m

Fixes https://github.com/kanaka/mal/issues/18 for case insensitive
file-systems.

9 years agoAdd link to syntax-across-languages
Joel Martin [Mon, 2 Mar 2015 17:04:46 +0000 (11:04 -0600)]
Add link to syntax-across-languages

Thanks to https://news.ycombinator.com/user?id=klibertp for
suggestion.

9 years agoNim: stepA
def [Sun, 1 Mar 2015 20:46:19 +0000 (21:46 +0100)]
Nim: stepA

9 years agoruntest.py: fix C# and VB tests.
Joel Martin [Mon, 2 Mar 2015 06:23:58 +0000 (00:23 -0600)]
runtest.py: fix C# and VB tests.

It is an ugly fix, but basically, use regular Popen (without pty) when
using mono, and do hardcoded echo of the commands when they are
sent/written. It could be worse I suppose...

9 years agoruntest.py: fix cleanup to use kill.
Joel Martin [Mon, 2 Mar 2015 05:41:32 +0000 (23:41 -0600)]
runtest.py: fix cleanup to use kill.

Still doesn't work with C# and VB.

9 years agoguide: typo. Fix https://github.com/kanaka/mal/issues/17
Joel Martin [Sun, 1 Mar 2015 21:48:40 +0000 (15:48 -0600)]
guide: typo. Fix https://github.com/kanaka/mal/issues/17

9 years agoNim: step9
def [Sun, 1 Mar 2015 16:39:15 +0000 (17:39 +0100)]
Nim: step9

9 years agoNim: step8
def [Sun, 1 Mar 2015 05:08:18 +0000 (06:08 +0100)]
Nim: step8

9 years agoMerge branch 'master' of https://github.com/kanaka/mal
Miki Tebeka [Sun, 1 Mar 2015 04:12:42 +0000 (06:12 +0200)]
Merge branch 'master' of https://github.com/kanaka/mal

9 years agoreadline works even when ~/.mal-history does not exist
Miki Tebeka [Sun, 1 Mar 2015 04:08:47 +0000 (06:08 +0200)]
readline works even when ~/.mal-history does not exist

9 years agoNim: step7
def [Sun, 1 Mar 2015 03:57:38 +0000 (04:57 +0100)]
Nim: step7