jscl.git
11 years agoFix MAPC
David Vázquez [Sun, 23 Jun 2013 13:25:14 +0000 (15:25 +0200)]
Fix MAPC

11 years agoMerge branch 'master' of github.com:davazp/jscl
David Vázquez [Thu, 20 Jun 2013 12:26:53 +0000 (14:26 +0200)]
Merge branch 'master' of github.com:davazp/jscl

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.

11 years agoReduce tests
David Vázquez [Thu, 20 Jun 2013 12:25:56 +0000 (14:25 +0200)]
Reduce tests

11 years agoShorter reduce implementation
David Vázquez [Thu, 20 Jun 2013 12:22:18 +0000 (14:22 +0200)]
Shorter reduce implementation

11 years agoList version of reduce
David Vázquez [Thu, 20 Jun 2013 12:06:57 +0000 (14:06 +0200)]
List version of reduce

11 years agoMerge pull request #132 from kengruven/master
David Vázquez [Wed, 19 Jun 2013 20:27:52 +0000 (13:27 -0700)]
Merge pull request #132 from kengruven/master

Fixed min/max

11 years agoFixed max/min functions.
Ken Harris [Wed, 19 Jun 2013 18:44:44 +0000 (11:44 -0700)]
Fixed max/min functions.

11 years agoSimpler VECTOR definition
David Vázquez [Tue, 18 Jun 2013 23:31:17 +0000 (01:31 +0200)]
Simpler VECTOR definition

11 years agoMerge pull request #128 from kengruven/master
David Vázquez [Tue, 18 Jun 2013 23:26:37 +0000 (16:26 -0700)]
Merge pull request #128 from kengruven/master

Various functions and minor bug fixes

11 years agoMerge upstream.
Ken Harris [Mon, 17 Jun 2013 22:29:55 +0000 (15:29 -0700)]
Merge upstream.

11 years agoMAPLIST.
Ken Harris [Mon, 17 Jun 2013 15:51:22 +0000 (08:51 -0700)]
MAPLIST.

11 years agoGCD, LCM, SIGNUM.
Ken Harris [Sun, 16 Jun 2013 18:17:29 +0000 (11:17 -0700)]
GCD, LCM, SIGNUM.

11 years agoMerge pull request #126 from orodley/max-min
David Vázquez [Sun, 16 Jun 2013 05:02:07 +0000 (22:02 -0700)]
Merge pull request #126 from orodley/max-min

Use MACROLET for MAX and MIN

11 years agoBug fix: INTERSECTION doesn't apply :key to list1.
Ken Harris [Sun, 16 Jun 2013 04:59:00 +0000 (21:59 -0700)]
Bug fix: INTERSECTION doesn't apply :key to list1.

11 years agoUse MACROLET for MAX and MIN
Owen Rodley [Sun, 16 Jun 2013 01:26:45 +0000 (13:26 +1200)]
Use MACROLET for MAX and MIN

11 years agoSETF expansions for NTH and AREF.
Ken Harris [Sun, 16 Jun 2013 01:05:51 +0000 (18:05 -0700)]
SETF expansions for NTH and AREF.

11 years agoMerge branch 'master' of git://github.com/Ferada/jscl into keyword-arg-fixes
David Vázquez [Sat, 15 Jun 2013 16:34:41 +0000 (18:34 +0200)]
Merge branch 'master' of git://github.com/Ferada/jscl into keyword-arg-fixes

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.

11 years agoUse macrolet to implemnt arithmetic helper macros
David Vázquez [Sat, 15 Jun 2013 16:32:58 +0000 (18:32 +0200)]
Use macrolet to implemnt arithmetic helper macros

11 years agoBasic macrolet
David Vázquez [Sat, 15 Jun 2013 16:28:57 +0000 (18:28 +0200)]
Basic macrolet

11 years agoCheck for odd number of keyword arguments.
Olof-Joachim Frahm [Sat, 15 Jun 2013 09:25:41 +0000 (11:25 +0200)]
Check for odd number of keyword arguments.

11 years agoFix off-by-two error in keyword argument processing.
Olof-Joachim Frahm [Sat, 15 Jun 2013 08:59:25 +0000 (10:59 +0200)]
Fix off-by-two error in keyword argument processing.

11 years agoMerge pull request #121 from Ferada/small-fixes
David Vázquez [Sat, 15 Jun 2013 09:23:31 +0000 (02:23 -0700)]
Merge pull request #121 from Ferada/small-fixes

Fix OSET, TYPECASE.

11 years agoMerge branch 'strings'
David Vázquez [Sat, 15 Jun 2013 09:08:37 +0000 (11:08 +0200)]
Merge branch 'strings'

11 years agoMerge branch 'master' of git://github.com/kengruven/jscl into strings
David Vázquez [Sat, 15 Jun 2013 09:06:33 +0000 (11:06 +0200)]
Merge branch 'master' of git://github.com/kengruven/jscl into strings

11 years agoReturn the reader-form from SETF expansion.
Ken Harris [Fri, 14 Jun 2013 19:25:21 +0000 (12:25 -0700)]
Return the reader-form from SETF expansion.

11 years agoVECTOR function
Ken Harris [Fri, 14 Jun 2013 16:50:40 +0000 (09:50 -0700)]
VECTOR function

11 years agoCOPY-SEQ
Ken Harris [Fri, 14 Jun 2013 15:15:40 +0000 (08:15 -0700)]
COPY-SEQ

11 years agoRemoved tabs, stupid editor...
Ken Harris [Thu, 13 Jun 2013 17:25:24 +0000 (10:25 -0700)]
Removed tabs, stupid editor...

11 years agoCase-insensitive character inequalities.
Ken Harris [Thu, 13 Jun 2013 17:24:02 +0000 (10:24 -0700)]
Case-insensitive character inequalities.

11 years agoSTRING>= (and a bit of refactoring).
Ken Harris [Thu, 13 Jun 2013 17:16:51 +0000 (10:16 -0700)]
STRING>= (and a bit of refactoring).

11 years agoSTRING<=
Ken Harris [Thu, 13 Jun 2013 16:05:02 +0000 (09:05 -0700)]
STRING<=

11 years agoMerge pull request #122 from kengruven/master
David Vázquez [Thu, 13 Jun 2013 08:55:22 +0000 (01:55 -0700)]
Merge pull request #122 from kengruven/master

Tiny DO/DO* bug fix

11 years agoNSTRING-UPCASE, NSTRING-DOWNCASE, NSTRING-CAPITALIZE.
Ken Harris [Thu, 13 Jun 2013 08:35:37 +0000 (01:35 -0700)]
NSTRING-UPCASE, NSTRING-DOWNCASE, NSTRING-CAPITALIZE.

11 years agoSTRING-TRIM and friends.
Ken Harris [Thu, 13 Jun 2013 08:08:37 +0000 (01:08 -0700)]
STRING-TRIM and friends.

11 years agoA few more string functions.
Ken Harris [Thu, 13 Jun 2013 07:15:26 +0000 (00:15 -0700)]
A few more string functions.

11 years agoPOSITION-IF, POSITION-IF-NOT (except :FROM-END)
Ken Harris [Thu, 13 Jun 2013 06:07:23 +0000 (23:07 -0700)]
POSITION-IF, POSITION-IF-NOT (except :FROM-END)

11 years agoAllow DO / DO* to take bare symbols as vars.
Ken Harris [Thu, 13 Jun 2013 02:24:12 +0000 (19:24 -0700)]
Allow DO / DO* to take bare symbols as vars.

11 years agoFix SETF for OGET aka OSET.
Olof-Joachim Frahm [Wed, 12 Jun 2013 20:17:57 +0000 (22:17 +0200)]
Fix SETF for OGET aka OSET.

11 years agoFix TYPECASE macro for T/ELSE case.
Olof-Joachim Frahm [Mon, 10 Jun 2013 19:23:06 +0000 (21:23 +0200)]
Fix TYPECASE macro for T/ELSE case.

11 years agooops. Good fix to empty setq lisp-implementation
David Vázquez [Tue, 11 Jun 2013 16:10:26 +0000 (18:10 +0200)]
oops. Good fix to empty setq

11 years agoFix empty setq
David Vázquez [Tue, 11 Jun 2013 15:54:19 +0000 (17:54 +0200)]
Fix empty setq

11 years agoMerge branch 'master' into experimental-compiler
David Vázquez [Sat, 8 Jun 2013 13:19:46 +0000 (15:19 +0200)]
Merge branch 'master' into experimental-compiler

11 years agowip: structuring progresses
David Vázquez [Fri, 7 Jun 2013 20:05:31 +0000 (21:05 +0100)]
wip: structuring progresses

11 years agoUse (SETF OGET) in package.lisp
David Vázquez [Fri, 7 Jun 2013 15:28:57 +0000 (16:28 +0100)]
Use (SETF OGET) in package.lisp

11 years agoMerge branch 'master' into ffi
David Vázquez [Fri, 7 Jun 2013 15:24:56 +0000 (16:24 +0100)]
Merge branch 'master' into ffi

11 years agoDisable test temporarily
David Vázquez [Fri, 7 Jun 2013 15:24:50 +0000 (16:24 +0100)]
Disable test temporarily

11 years agoRemove unnecesary test
David Vázquez [Fri, 7 Jun 2013 15:06:46 +0000 (16:06 +0100)]
Remove unnecesary test

11 years agoMerge branch 'master' into ffi
David Vázquez [Fri, 7 Jun 2013 15:00:05 +0000 (16:00 +0100)]
Merge branch 'master' into ffi

11 years agoMerge pull request #117 from Ferada/small-fixes
David Vázquez [Fri, 7 Jun 2013 14:54:19 +0000 (07:54 -0700)]
Merge pull request #117 from Ferada/small-fixes

Package fixes, other small stuff.

11 years agoFix long oget chaining adding :START and :END parameters to POSITION
David Vázquez [Fri, 7 Jun 2013 11:27:49 +0000 (12:27 +0100)]
Fix long oget chaining adding :START and :END parameters to POSITION

11 years ago'If' alternative is optional
David Vázquez [Fri, 7 Jun 2013 10:58:15 +0000 (11:58 +0100)]
'If' alternative is optional

11 years agoAccept both cases for FORMAT by using CHAR-UPCASE.
Olof-Joachim Frahm [Tue, 21 May 2013 19:07:37 +0000 (21:07 +0200)]
Accept both cases for FORMAT by using CHAR-UPCASE.

11 years agoFix return value of OSET.
Olof-Joachim Frahm [Thu, 6 Jun 2013 23:42:32 +0000 (01:42 +0200)]
Fix return value of OSET.

11 years agoMove *ROOT* to toplevel.lisp because of an error.
Olof-Joachim Frahm [Thu, 6 Jun 2013 22:56:50 +0000 (00:56 +0200)]
Move *ROOT* to toplevel.lisp because of an error.

11 years agoMake FORMATS Go-To available.
Olof-Joachim Frahm [Tue, 21 May 2013 19:05:36 +0000 (21:05 +0200)]
Make FORMATS Go-To available.

I.e. skip single argument for now.

11 years agoMake FUNCTION and FLOAT available in TYPECASE.
Olof-Joachim Frahm [Tue, 21 May 2013 19:04:53 +0000 (21:04 +0200)]
Make FUNCTION and FLOAT available in TYPECASE.

11 years agoTypo.
Olof-Joachim Frahm [Tue, 21 May 2013 19:04:43 +0000 (21:04 +0200)]
Typo.

11 years agoIN-PACKAGE uses a string designator.
Olof-Joachim Frahm [Tue, 21 May 2013 19:04:18 +0000 (21:04 +0200)]
IN-PACKAGE uses a string designator.

11 years agoMerge branch 'master' of github.com:davazp/jscl
David Vázquez [Thu, 6 Jun 2013 21:58:32 +0000 (22:58 +0100)]
Merge branch 'master' of github.com:davazp/jscl

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.

11 years agoRemove D- prefix
David Vázquez [Thu, 6 Jun 2013 21:53:20 +0000 (22:53 +0100)]
Remove D- prefix

11 years agoMerge pull request #115 from orodley/smarter-escape-string
David Vázquez [Thu, 6 Jun 2013 21:40:36 +0000 (14:40 -0700)]
Merge pull request #115 from orodley/smarter-escape-string

Smarter escape-string

11 years agoRemove special JS FFI package
David Vázquez [Thu, 6 Jun 2013 21:31:59 +0000 (22:31 +0100)]
Remove special JS FFI package

11 years agoRemove some js-vset by (setf oget)
David Vázquez [Thu, 6 Jun 2013 19:53:44 +0000 (20:53 +0100)]
Remove some js-vset by (setf oget)

11 years ago(SETF OGET) AND (SETF OGET*)
David Vázquez [Thu, 6 Jun 2013 12:25:18 +0000 (13:25 +0100)]
(SETF OGET) AND (SETF OGET*)

11 years agoMultiple chaining keys in oset* and oset
David Vázquez [Thu, 6 Jun 2013 12:14:55 +0000 (13:14 +0100)]
Multiple chaining keys in oset* and oset

11 years agoFFI funcall
David Vázquez [Thu, 6 Jun 2013 11:55:35 +0000 (12:55 +0100)]
FFI funcall

11 years agooget support multiple key chaining
David Vázquez [Thu, 6 Jun 2013 11:49:03 +0000 (12:49 +0100)]
oget support multiple key chaining

11 years ago#j macrocharacter as synonymous of #J
David Vázquez [Thu, 6 Jun 2013 11:44:16 +0000 (12:44 +0100)]
#j macrocharacter as synonymous of #J

11 years agoUse two different string-escape functions
Owen Rodley [Wed, 5 Jun 2013 04:39:57 +0000 (16:39 +1200)]
Use two different string-escape functions
One for Lisp string literals, and the other for Javascript string
literals, the difference being the option to use single-quoted strings
in Javascript

11 years ago#J supports multiple descriptors
David Vázquez [Tue, 4 Jun 2013 19:46:18 +0000 (20:46 +0100)]
#J supports multiple descriptors

11 years ago#J "macro-character"
David Vázquez [Tue, 4 Jun 2013 19:35:12 +0000 (20:35 +0100)]
#J "macro-character"

11 years agoOSET* and OGET* type-preserving variants and *root* Javascript object
David Vázquez [Tue, 4 Jun 2013 19:23:36 +0000 (20:23 +0100)]
OSET* and OGET* type-preserving variants and *root* Javascript object

11 years agolisp-to-js and js-to-lisp wrappers
David Vázquez [Tue, 4 Jun 2013 17:59:17 +0000 (18:59 +0100)]
lisp-to-js and js-to-lisp wrappers

11 years agoSmarter string escaping. Fixes #114
Owen Rodley [Tue, 4 Jun 2013 04:42:44 +0000 (16:42 +1200)]
Smarter string escaping. Fixes #114
If the string contains no single quotes, use a single-quoted string.
If the string contains no double quotes, use a double-quoted string.
If it contains both, single-quote it and escape the single-quotes.
In all cases backslashes and newlines are escaped.

11 years agoAdd Ken Harris entry
David Vázquez [Tue, 4 Jun 2013 03:36:10 +0000 (04:36 +0100)]
Add Ken Harris entry

11 years agoSimple script to bootstrap JSCL
David Vázquez [Tue, 4 Jun 2013 02:23:29 +0000 (03:23 +0100)]
Simple script to bootstrap JSCL

11 years agoMerge pull request #109 from davazp/arrays
David Vázquez [Tue, 4 Jun 2013 02:17:35 +0000 (19:17 -0700)]
Merge pull request #109 from davazp/arrays

Merge storage vectors and beginnings of arrays implementation

11 years agoSpeed up arrays concatenating a litte bit
David Vázquez [Tue, 4 Jun 2013 02:19:49 +0000 (03:19 +0100)]
Speed up arrays concatenating a litte bit

11 years agoRemove char-to-string from tests
David Vázquez [Tue, 4 Jun 2013 02:03:03 +0000 (03:03 +0100)]
Remove char-to-string from tests

11 years agoMerge branch 'master' into arrays
David Vázquez [Tue, 4 Jun 2013 02:01:03 +0000 (03:01 +0100)]
Merge branch 'master' into arrays

Conflicts:
jscl.lisp
src/prelude.js

11 years agoMerge pull request #112 from kengruven/master
David Vázquez [Mon, 3 Jun 2013 12:57:36 +0000 (05:57 -0700)]
Merge pull request #112 from kengruven/master

Character functions

11 years agoMerge branch 'master' into arrays
David Vázquez [Mon, 3 Jun 2013 10:06:55 +0000 (11:06 +0100)]
Merge branch 'master' into arrays

11 years agoMerge pull request #108 from abeaumont/master
David Vázquez [Mon, 3 Jun 2013 09:52:03 +0000 (02:52 -0700)]
Merge pull request #108 from abeaumont/master

A proposal for code organization and style

11 years ago[doc] Some proposals for code organization and style
Alfredo Beaumont [Mon, 3 Jun 2013 09:38:56 +0000 (11:38 +0200)]
[doc] Some proposals for code organization and style

11 years agoMerge pull request #113 from orodley/quotes-in-docstrings
David Vázquez [Mon, 3 Jun 2013 09:23:14 +0000 (02:23 -0700)]
Merge pull request #113 from orodley/quotes-in-docstrings

Fix #111, error with docstrings containing single quotes

11 years agoFix #111, error with docstrings containing single quotes
Owen Rodley [Mon, 3 Jun 2013 01:09:49 +0000 (13:09 +1200)]
Fix #111, error with docstrings containing single quotes
ESCAPE-STRING assumes the resulting string is going to be double-quoted,
and LAMBA-NAME/DOCSTRING-WRAPPER was only single quoting them.

A similar issue was present for function names with single quotes. These
should be read differently, i.e. FO'O => FO (QUOTE O), but until the
reader is fixed to deal with this I think allowing them in function
names makes more sense than failing with a strange error message

11 years agoMerging from upstream.
Ken Harris [Sun, 2 Jun 2013 19:16:36 +0000 (12:16 -0700)]
Merging from upstream.

11 years agoFixing tabs/spaces. (Oops.)
Ken Harris [Sun, 2 Jun 2013 17:32:00 +0000 (10:32 -0700)]
Fixing tabs/spaces.  (Oops.)

11 years agoExtend DIGIT-CHAR-P to include all HexDigit characters.
Ken Harris [Sun, 2 Jun 2013 17:31:06 +0000 (10:31 -0700)]
Extend DIGIT-CHAR-P to include all HexDigit characters.

11 years agoCharacter case predicates.
Ken Harris [Sun, 2 Jun 2013 17:13:01 +0000 (10:13 -0700)]
Character case predicates.

11 years agoPersistent history
David Vázquez [Sun, 2 Jun 2013 08:32:02 +0000 (09:32 +0100)]
Persistent history

11 years agoFix ir-convert-call
David Vázquez [Sat, 1 Jun 2013 11:58:12 +0000 (12:58 +0100)]
Fix ir-convert-call

11 years agoRemove buggy `substitute' uses
David Vázquez [Sat, 1 Jun 2013 11:55:35 +0000 (12:55 +0100)]
Remove buggy `substitute' uses

11 years agoFix bug in reduce-component
David Vázquez [Sat, 1 Jun 2013 11:47:17 +0000 (12:47 +0100)]
Fix bug in reduce-component

11 years agoMerge branch 'master' into experimental-compiler
David Vázquez [Mon, 27 May 2013 20:49:51 +0000 (21:49 +0100)]
Merge branch 'master' into experimental-compiler

11 years agotypo
David Vázquez [Sun, 26 May 2013 10:47:38 +0000 (11:47 +0100)]
typo

11 years agoprogn translation uses ',' Javascript operator
David Vázquez [Sat, 25 May 2013 13:23:30 +0000 (14:23 +0100)]
progn translation uses ',' Javascript operator

New compiler should deprecate this soon

11 years agoRemove debugging format
David Vázquez [Fri, 24 May 2013 22:12:46 +0000 (23:12 +0100)]
Remove debugging format

11 years agoMove backquote to its own file
David Vázquez [Fri, 24 May 2013 20:26:22 +0000 (21:26 +0100)]
Move backquote to its own file

11 years agofind-natural-loops
David Vázquez [Fri, 24 May 2013 20:16:36 +0000 (21:16 +0100)]
find-natural-loops