1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-21 18:48:12 +03:00
Commit Graph

1864 Commits

Author SHA1 Message Date
Jos van Bakel
dcccf1b263 Added livescript 2017-04-05 22:01:41 +02:00
Joel Martin
9ed75afdf4 Update README with LambdaConf presentation. 2017-03-31 10:25:24 -05:00
Joel Martin
a179a13a0a Merge pull request #256 from vvakame/impl-ts
Mal implementation by TypeScript
2017-02-26 15:35:35 -06:00
vvakame
db885df9a0 address comment 2017-02-26 11:05:38 +09:00
vvakame
29db6f4ec2 fix typo 2017-02-26 10:57:19 +09:00
vvakame
677a1c9db1 small fix 2017-02-25 14:44:11 +09:00
vvakame
c527d56558 add TypeScript section README.md 2017-02-25 14:32:18 +09:00
vvakame
6071876ffe rename MalNull to MalNil 2017-02-25 14:16:51 +09:00
vvakame
5bb7479da5 refactor to using const enum 2017-02-25 14:12:15 +09:00
vvakame
92bf05308e add isSeq function to types 2017-02-25 13:28:38 +09:00
vvakame
12c0c9a3a8 reordering core.ns 2017-02-25 13:03:04 +09:00
vvakame
9c92462f39 more fitting to process's txt 2017-02-25 11:44:45 +09:00
vvakame
c493c4c0ab add Dockerfile 2017-02-25 11:11:28 +09:00
vvakame
eb7a2bbd83 support --target es5 2017-02-25 10:34:37 +09:00
vvakame
bbddf16835 TypeScript: step A 2017-02-25 04:31:15 +09:00
vvakame
10f8aa846c TypeScript: step 9 2017-02-25 00:21:30 +09:00
vvakame
e21a85a3ef TypeScript: step 8 2017-02-24 20:57:23 +09:00
vvakame
8d6bad0702 TypeScript: step 7 2017-02-24 20:16:23 +09:00
vvakame
555f7fc73e TypeScript: step 6 2017-02-24 18:28:26 +09:00
vvakame
79a10a6e13 TypeScript: step 5 2017-02-24 16:30:25 +09:00
vvakame
dfe70453b4 TypeScript: step 4 2017-02-24 13:21:11 +09:00
vvakame
86fa880669 TypeScript: step 3 2017-02-24 08:37:25 +09:00
vvakame
76e06b96f4 update dependencies 2017-02-24 07:41:49 +09:00
vvakame
83aaf848e1 TypeScript: step 2 2017-02-23 05:18:41 +09:00
vvakame
f406f88b1e TypeScript: step 1 2017-02-23 05:17:53 +09:00
vvakame
ef918f11be update misc 2017-02-23 03:04:46 +09:00
vvakame
9abceb8681 TypeScript: step 0 2017-02-23 03:04:03 +09:00
vvakame
571eb786b4 TypeScript: setup initial environment 2017-02-23 00:33:40 +09:00
Joel Martin
186471a32c miniMAL: bring over node_readline.js to fix build
- Node tries to find node_modules subdirectory (to load ffi
  from) in the target of the symlink. I.e. ../js/node_modules
2017-02-11 13:38:38 -06:00
Joel Martin
e5faf623bd miniMAL: restore ffi dep and build instructions. 2017-02-11 13:07:58 -06:00
Joel Martin
16d5b0c305 runtest: print errors before first prompt.
- Also, remove extraneous ffi module dep in miniMAL.
2017-02-11 12:54:34 -06:00
Joel Martin
576d01e1b2 Clojure: node_modules or lein deps but not both. 2017-02-11 12:41:06 -06:00
Joel Martin
a0e89ae42a Rust, miniMAL, VHDL: misc fixes.
- Fix rust Dockerfile working dir.
- Make top-level Makefile more generic. This makes it easier to use
  the Makefile with fewer changes in miniMAL.
- Simplify vhdl build when case is fixed in stepA_mal
- Remove BUILD_IMPL=js from miniMAL travis test. Just use a docker
  image specifically made for miniMAL.
- Update TODO
2017-02-11 00:40:23 -06:00
Joel Martin
2c0c033bfc Go, Kotlin, Nim, ObjC, RPython: update Dockerfiles.
- Fix Nim IOError handling issue introduced by update.
2017-02-11 00:12:37 -06:00
Joel Martin
2b933f429c Clojure: support ClojureScript using CLJ_MODE=cljs
- Requires conditional in stepA tests.
2017-02-11 00:09:02 -06:00
Joel Martin
b32495e94b miniMAL: update to using miniMAL 1.0.2
Also update miniMAL Dockerfile to xenial.
2017-02-10 23:02:30 -06:00
Joel Martin
a05c086f05 ES6: more use of ES6, simplifications, newer babel.
- Use Vector class derived from Array
- Use Array/Vector.from for initializing/cloning of Array/Vector
- Remove most semi-colon line endings
- More use of arrow functions
- Use Object.assign to copy properties in _malfunc and function
  cloning.
- Remove or inline a bunch of types.js functions that don't really
  need to be separate functions: _obj_type, _sequential_Q, _symbol,
  _symbol_Q, _vector, _vector_Q, _hash_map, _hash_map_Q
- Simplify dependency list in Makefile
- Remove some separate core.js functions by moving them into the
  core_ns declaration: _nth, keys, vals, with_meta.

With node 7, babel is mostly just used for translating imports into
CommonJS requires for node.
2017-02-10 23:02:30 -06:00
Joel Martin
577e643bfa Rust: update rust to 1.14
- fixup new warnings

Note: performance on the perf microbenchmark appears much better than
before.
2017-02-10 23:02:30 -06:00
Joel Martin
321dc7e69f Merge pull request #255 from chr15m/master
Fixed erroneous fn* -> native PHP function conversion.
2017-02-10 21:52:39 -06:00
Chris McCormick
7954b71a81 Fixed erroneous fn* -> native PHP function conversion.
Added test for callbacks during interop which is where this failure showed up.
2017-02-11 10:14:24 +08:00
Joel Martin
65af05304e Merge pull request #254 from cosmos72/master
Go: Use type assertions where possible instead of reflection
2017-02-06 15:34:33 -06:00
Massimiliano Ghilardi
fe3d4d3baf Go: Use type assertions where possible instead of reflection 2017-02-06 21:58:59 +01:00
Joel Martin
c32a44088f Merge pull request #253 from jonaslu/update_guide_w_file_permissions
Update README with hint on test permission failing
2017-02-03 09:49:42 -06:00
Jonas Lundberg
e1b080b401 Update README with hint on test permission failing
Ran into some problems with the <language>/run file
not having the executable flag set.

Setting +x on the run file helps this.

The error-message the python runner throws is:
Traceback (most recent call last):
  File "../runtest.py", line 227, in <module>
    r = Runner(args.mal_cmd, no_pty=args.no_pty)
  File "../runtest.py", line 105, in __init__
    env=env)
  File "/usr/lib/python3.6/subprocess.py", line 707, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1326, in _execute_child
    raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied
make: *** [Makefile:310: test^mymal^step0] Error 1
2017-02-03 09:27:42 +01:00
Joel Martin
85d85d8785 Merge pull request #252 from pstephens/fsharp-exceptions
fsharp: added some top level exception catching
2016-12-28 11:22:49 -07:00
Peter Stephens
df8c925a24 fsharp: added some top level exception catching so that the repl wouldn't quit to CLI on errors. 2016-12-26 17:05:32 -06:00
Joel Martin
4a445e8493 Basic: QBasic fixes.
- restructure memory dim/initialization to support QBasic which
  requires all DIMs to be earlier in the code than references to the
  DIM'd variables (unlike C64 which just requires the DIMs to be
  called first logically).
- Fix printed header ("C64 QBasic" -> "QBasic")
2016-12-21 13:51:26 -07:00
Joel Martin
7895453b77 Basic: various memory savings.
- simplify DO_CONCAT.
- inline MAL_READ/PRINT.
- comment out memory debug/sanity checks.
- more aggressive space removal.

Saves over 900 bytes.

Increase Z% value memory by 374 to 9216 (8192+1024).
2016-12-21 13:51:26 -07:00
Joel Martin
e0bcd3fb42 Basic: more efficient/correct file reader.
- read one character at a time from the file instead of chunking it
  into the A$ string.
- fix an overflow that was happening during reads of long forms.
2016-12-21 13:51:26 -07:00
Joel Martin
3c823be2f8 Merge pull request #250 from dubek/skew
Add Skew implementation
2016-11-21 11:16:23 -06:00