Dov Murik
798cd0a0e3
ps: fix hash-map equality
...
* extract _keys and _hash_map_get to types.ps
* correct sequential types equals - only compare if *both* arguments are
sequential
* implement equality for two hash-maps
2015-11-17 21:19:30 -05:00
Dov Murik
c362489f35
tests: add more hash equality test cases in step 9
2015-11-17 21:19:30 -05:00
Joel Martin
036b01d337
Merge pull request #114 from dubek/equality-pure-mal
...
add examples/equality.mal
2015-11-17 16:32:40 -06:00
Dov Murik
513810af6b
add examples/eqaulity.mal
...
Implementations that don't have proper native comparison of hash-maps
and sequences can load examples/equality.mal for a pure-mal
implementation.
2015-11-17 14:41:06 -05:00
Joel Martin
a0b63ee477
hash-map equality: bash, c, coffee, cs, es6, ...
...
- hash-map equality support for bash, c, coffee, cs, es6, java, js,
julia, make, php.
- also, add another test to catch another hash-map in-equality: same
keys, different values
2015-11-16 23:28:58 -06:00
Joel Martin
a076db29a0
examples/: add chouser's protocols.mal file.
...
Originally from: https://gist.github.com/Chouser/6081ea66d144d13e56fc
2015-11-12 17:03:17 -06:00
Joel Martin
cb0533b0e8
Move mal code examples from mal/ to examples/
2015-11-12 17:00:55 -06:00
Joel Martin
3ac3435ee1
Merge pull request #111 from dubek/fix-go-hash-equality
...
go: fix hash equality
2015-11-12 09:29:58 -06:00
Dov Murik
6c75df55da
go: fix hash-map equality
2015-11-12 10:11:34 -05:00
Joel Martin
a95b2ee9fd
Merge pull request #109 from dubek/lua-fix-hash-map-equal
...
lua: fix hash-map equality
2015-11-10 20:52:51 -06:00
Joel Martin
bf76bff5fe
Merge pull request #108 from dubek/tcl-impl
...
tcl: add --raw flag to allow running without Readline
2015-11-10 13:28:47 -06:00
Dov Murik
17db9b1860
lua: fix hash-map equality
2015-11-10 14:03:26 -05:00
Dov Murik
576ef3703a
tcl: add --raw flag to allow running without Readline
...
The Readline library for Tcl (tclreadline) enables history
substitutions, which means that lines that begin with `^` or `!` are
preprocessed by readline. This interferes with some step1 tests of the
`^` form (--> with-meta).
Now the Tcl implementation supports a `--raw` command line flag which
disables the readline library and opts for simple input from stdin. The
tests (Makefile) are run with `--raw`.
2015-11-10 13:11:49 -05:00
Joel Martin
6d3fc1be9a
Fix hash-map equality in python and rpython.
2015-11-10 11:00:56 -06:00
Joel Martin
1aa085e9ae
Merge pull request #104 from dubek/hashmap-equality-test
...
tests: step9: add hash-map equality tests
2015-11-10 09:56:19 -06:00
Joel Martin
20077371f2
Travis: add Tcl
2015-11-09 22:53:30 -06:00
Joel Martin
9bc96011e6
Merge pull request #106 from dubek/tcl-impl
...
Tcl implementation
2015-11-09 22:19:18 -06:00
Dov Murik
9af1191f5d
tests: step9: add hash-map equality tests (as soft tests)
2015-11-09 22:24:02 -05:00
Joel Martin
f3ea3be300
runtest/travis: make soft mode the default.
...
Switch runtest.py option to --hard instead of --soft. This changes
tests marked as soft into a hard fail tests.
2015-11-09 21:16:38 -06:00
Dov Murik
54d9903c0c
Tcl implementation
2015-11-09 22:15:15 -05:00
Joel Martin
595376919b
Misc cleanup for midwest.io presentation.
2015-11-07 15:31:25 -06:00
Joel Martin
b97b4493ca
Merge pull request #102 from nlfiedler/fix-escapes
...
Fix reading/printing of escaped characters
2015-11-06 12:31:21 -08:00
Nathan Fiedler
45a76d0060
Fix reading/printing of escaped characters
...
Properly read \\n and convert to a newline, and when printing with
readability enabled, convert the newline back to \\n.
Add support for Erlang R18, which was nothing more than tweaking the
requirements in the rebar.config file.
Fixes #100
make test^erlang passes
2015-11-06 11:19:06 -08:00
Joel Martin
2349617df1
Merge pull request #101 from ivern/kotlin
...
Kotlin refactoring (more idiomatic)
2015-11-04 08:59:45 -08:00
Javier Fernandez-Ivern
2a9f3ad2f7
Cleaned up usage of ISeq.count()
2015-11-04 08:54:54 -06:00
Javier Fernandez-Ivern
d4579d50bb
Bumped Kotlin version in the Dockerfile
2015-11-04 08:43:23 -06:00
Javier Fernandez-Ivern
578590555a
Kotlin eval refactoring to make it more idiomatic
2015-11-03 22:45:07 -06:00
Javier Fernandez-Ivern
41393633d7
Kotlin dispatch refactoring to make it more idiomatic
2015-11-03 22:36:24 -06:00
Joel Martin
861da5d609
awk: generate awk.sh. Update docs/TODO.
2015-10-30 22:30:56 -05:00
Joel Martin
97e2759994
runtest: split debug/log file. Test stats.
2015-10-30 22:29:18 -05:00
Joel Martin
8d78bc26bf
All: fix read/print of \\, and \n
2015-10-30 22:05:49 -05:00
Joel Martin
f3c3903609
All: don't ignore */mal. Fixes #99
2015-10-30 09:31:38 -05:00
Joel Martin
8d695d14ec
Merge pull request #98 from mrjbq7/factor
...
Factor updates
2015-10-29 12:14:18 -05:00
John Benediktsson
349ed9c4c3
factor: adding some unit tests.
2015-10-29 09:02:44 -07:00
John Benediktsson
ffd62cbc4c
factor: partial fix for with-meta.
2015-10-29 09:02:32 -07:00
John Benediktsson
d1596ac242
factor: update FACTOR_ROOTS in Makefile.
2015-10-29 08:27:24 -07:00
John Benediktsson
199b1ce7b2
factor: update code.
...
* Works on soon-to-be-released 0.98 (triple quote strings removed)
* 50% more iterations per second on perf3.mal
* Removed 'src' directory, use 'factor' as the root
* Using 'mal' namespace for core, reader, printer, malenv, types
* Fixed issue with "empty" readline input (should be ignored and wasn't)
* Tried to simplify some of the code
2015-10-28 16:20:59 -07:00
Joel Martin
953772ca00
step5 test: group related test code together.
2015-10-27 15:33:53 -05:00
Joel Martin
d4423670fe
Merge pull request #97 from ivern/kotlin
...
Added TCO test for mutually recursive functions
2015-10-27 15:33:05 -05:00
Javier Fernandez-Ivern
b25e3d29fb
Reduced the mutually recursive function test size
2015-10-27 15:05:40 -05:00
Javier Fernandez-Ivern
5e43076014
Added TCO test for mutually recursive functions
2015-10-27 13:17:56 -05:00
Joel Martin
dceeb410a3
vimscript: fix atom? to return boolean not integer.
2015-10-27 12:03:40 -05:00
Joel Martin
5a4b1ef539
Merge pull request #96 from ivern/kotlin
...
Kotlin step cleanup
2015-10-27 12:02:34 -05:00
Javier Fernandez-Ivern
99851ac746
Cleaned up some boilerplate code in core
2015-10-27 09:57:10 -05:00
Joel Martin
6d4cba65ff
Travis: add kotlin.
2015-10-27 00:11:06 -05:00
Javier Fernandez-Ivern
8fb0c641b5
Merge remote-tracking branch 'kanaka/master' into kotlin
2015-10-27 00:01:54 -05:00
Javier Fernandez-Ivern
85a495540a
Merge remote-tracking branch 'kanaka/master' into kotlin
2015-10-27 00:01:38 -05:00
Joel Martin
3ff5020440
Kotlin: minor change to re-use layers from Java image.
2015-10-27 00:00:12 -05:00
Javier Fernandez-Ivern
af7642582c
Step cleanup
2015-10-26 23:59:04 -05:00
Joel Martin
bdc6b386be
Merge pull request #95 from ivern/kotlin
...
Kotlin
2015-10-26 23:57:38 -05:00