1
1
mirror of https://github.com/kanaka/mal.git synced 2024-11-13 11:23:59 +03:00
Commit Graph

2299 Commits

Author SHA1 Message Date
Joel Martin
784ad0354a
Merge pull request #331 from vi/patch-1
Add link to my Rust implementation
2018-11-28 20:49:25 -06:00
Joel Martin
e10ceff503 Update JS impls: use ffi-napi and Ubuntu 18.04 2018-11-28 17:12:17 -06:00
Vitaly Shukela
9bd2b1ef86
Add link to my Rust implementation
I assume this README serves as a wiki for collecting impls.
2018-11-10 00:24:56 +03:00
Joel Martin
7a41da1075
Merge pull request #330 from omarroth/update-crystal
Update Crystal implementation
2018-10-29 19:27:05 -05:00
Omar Roth
5185c56e92 Update Crystal implementation 2018-10-29 18:20:02 -05:00
Joel Martin
9581ba403e Add link to Rust implementation by Tim Morgan. 2018-08-25 17:30:33 -05:00
Joel Martin
a520ffd9a1 Travis: re-active perf for erlang.
Local testing shows that the test completes and doesn't hit OOM.
2018-07-16 19:11:26 -05:00
Joel Martin
3b2c6780cf
Merge pull request #326 from seven1m/patch-1
Fix link to FAQ document
2018-07-16 17:04:26 -07:00
Tim Morgan
5d52baf1ac
Fix link to FAQ document 2018-07-16 18:41:12 -05:00
Joel Martin
53c3bccc43 Travis: enable mal impl for perf test. 2018-07-16 18:15:19 -05:00
Joel Martin
17d2773245 Travis: trigger build after github push error.
git push gave this error and the commit was successfully pushed but it
didn't result in Travis starting a build:

remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
remote: Unexpected system error after push was received.
remote: These changes may not be reflected on github.com!
remote: Your unique error code: 1d9d84300a34930b94914e59e9c3b381
To git@github.com:kanaka/mal.git
   5ffa331..1332215  master -> master
2018-07-16 17:45:55 -05:00
Joel Martin
1332215754 perf: more accurate iter count (last-iters).
We should return the iter count prior to then final iteration because
the final one was incomplete when the 10 seconds expired.
2018-07-16 12:33:36 -05:00
Joel Martin
5ffa3314f9 perf: simplify perf3 iter calc. Enable perf^mal.
Since the iter count increases by 1 each time through the "loop", when
we hit more than 10 seconds elapsed time we can just return the
previous iter count rather than doing a percentage calculation. This
fixes results for basic modes which couldn't do the percent
calculation because itermediate values were greater than 32,768 which
is the limit for basic MODES.

Also, the mal implementation now runs and returns legit results so
re-enable perf^impl.
2018-07-16 12:24:05 -05:00
Joel Martin
6da59ec2f4 perf: fix perf3 to show total iters instead of / 3
The run-fn-for function was originally name run-fn and was hard-coded
to run for 3 seconds. I forgot to replace the 3 with the max-secs
variable. However, given that some implementations have less than
1 iteration per second, I'm just going to drop that division and
report the iterations per max-seconds so that for the slowest
implementations we have some relative comparison instead of all of
them just reporting 0.

Thanks to Tim Morgan for discovering this bug:
699f0ad23a
2018-07-16 09:34:37 -05:00
Joel Martin
cd30e52b31 rust: fix Dockerfile to include WORKDIR=/mal 2018-07-14 19:27:11 -05:00
Joel Martin
0777a9a762 [travis] disable foment. Still hangs in perf. 2018-07-14 13:32:35 -05:00
Joel Martin
56d9fa6036 scheme: enable foment to test if hangs are fixed 2018-07-13 17:21:00 -05:00
Joel Martin
4ef4b17cd0 rust: Update rust and update/refactor implementation
This rewrites the rust implementation to use many new features of the
current version of rust.

The refactor is much more concise (only 2/3rds the size) and switches
to using a lot of the more functional features (iterators, closures,
etc) that have been added or improved in rust.

Unfortunately, the implementation is a fair bit slower (about 30% on
perf3). It's not clear why this is the case but concision and being
more idiomatic wins over performance.
2018-07-13 17:21:00 -05:00
Joel Martin
9a66ffcd2e rust: remove rustyline ANSI CSI codes from output 2018-07-13 17:20:44 -05:00
Joel Martin
3c7d7c0df3
Merge pull request #323 from jig/master
Go: Fix panic on call to function with wrong number of arguments
2018-07-12 22:55:20 -07:00
Joel Martin
ba36c146bd
Merge pull request #325 from chr15m/php-interop-language-constructs
PHP: Wrap some native "language constructs".
2018-07-12 16:15:29 -07:00
Joel Martin
b26c8329c8
Merge pull request #324 from seven1m/add-not-test-for-nil
Test that (not nil) returns true
2018-07-12 15:44:10 -07:00
Joel Martin
bbd62dc97c tests/stepA: allow time-ms result to be signed.
In Java the time-ms value was negative. This actually still works fine
because arithmetic comparison is still correct. So allow signed
time-ms results.
2018-07-12 14:24:14 -05:00
Joel Martin
e44c0be968 TypeScript: fix HOME bug and node symlink.
Update the Dockerfile to fix a symlink loop.
Update node_readline.ts to fix a failure with usage of
process.env.HOME which started failing for some reason.
2018-07-12 14:21:55 -05:00
Joel Martin
6e59c4f26d scala: fix w/ xenial, sbt 0.14.6, update build.
Build had become out of date so update docker image to xenial and sbt
to 0.14.6 and update Scala build files to go with new sbt version.
2018-07-12 13:51:02 -05:00
Joel Martin
63462732fa java: fix by updating to xenial, java 8, maven 3
The vivid build with java 7 and maven 2 was no longer able to retrieve
upstream deps and was failing.
2018-07-12 09:27:21 -05:00
Chris McCormick
634ca5e98b PHP: Wrap some native "language constructs".
Common ones which can't be called otherwise.
Can now be reached via php/exit, php/print, php/require.

Fixes chr15m/frock#7
2018-07-12 20:25:32 +08:00
Tim Morgan
e2352e739b Test that (not nil) returns true 2018-07-08 22:21:01 -05:00
Jordi Íñigo
1e8fc91409 Go: Minor 2018-07-08 11:22:49 +02:00
Jordi Íñigo
a536db2105 Go: added file back accidentally removed 2018-07-08 11:20:46 +02:00
Jordi Íñigo
3932a29be3 Go: modified error messages 2018-07-08 01:44:28 +02:00
Jordi Íñigo
ed1819f423 Go: added argument count checks to functions 2018-07-08 01:23:00 +02:00
Jordi Íñigo
9bc61630d2 Go: removed some redundant tests 2018-07-07 22:04:52 +02:00
Jordi Íñigo
07bd1c1ff1 Go: Fix panic on call to function with wrong number of arguments 2018-07-06 13:18:48 +02:00
Joel Martin
810ec74a67
Merge pull request #322 from chr15m/projects-using-mal
Added README section for projects using mal.
2018-06-26 08:43:15 -05:00
Chris McCormick
b0687d365b Added README section for projects using mal. 2018-06-26 18:04:56 +08:00
Joel Martin
c9ce6b6d55
Merge pull request #320 from chr15m/php-interop-improvements
Updated PHP native interop interface.
2018-06-25 11:04:41 -05:00
Chris McCormick
ba218d6f0a Updated PHP native interop interface. 2018-06-25 09:59:15 +08:00
Joel Martin
a2bcbe2bb5
Merge pull request #319 from chr15m/refactor-php-web-runner
PHP: refactor web running mechanism.
2018-06-24 11:27:48 -05:00
Chris McCormick
9106f92cbc PHP: refactor web running mechanism. 2018-06-24 19:45:29 +08:00
Joel Martin
ce6814306d
Merge pull request #318 from jamesbvaughan/fix-readme-typo
Fix typo in Common Lisp section of Readme
2018-06-23 18:10:40 -05:00
James Vaughan
d7f720e653
Fix typo in Common Lisp section 2018-06-23 16:08:15 -07:00
Joel Martin
8c2a6e122d
Merge pull request #317 from kanaka/rename-short-abbreviations
Rename short abbreviations
2018-06-22 12:43:56 -05:00
Vasilij Schneidermann
808c940d86 Use correct implementation names in build matrix 2018-06-22 18:24:47 +02:00
Vasilij Schneidermann
b440380f64 Rename gst and pil directories in README 2018-06-22 18:20:38 +02:00
Vasilij Schneidermann
8ea36c892f Rename gst and pil to gnu-smalltalk and picolisp 2018-06-17 19:54:54 +02:00
Joel Martin
9ee4a752c4
Merge pull request #316 from dubek/fantom
I pushed a container (we should probably figure out how to let you and @wasamasa do that at some point). The Fantom build is passing. Did a brief code review and looks good. Merged.
2018-06-03 19:56:52 -05:00
Dov Murik
80beb411e0 travis: Add fantom to build CI matrix 2018-06-03 20:14:27 +00:00
Dov Murik
92708e3488 Add Fantom implementation 2018-06-03 20:08:19 +00:00
Joel Martin
ba46e3b027 [clojure] update lumo/image to fix module mismatch. 2018-04-02 11:01:24 -05:00