Commit graph

326 commits

Author SHA1 Message Date
Daniel Kang
2a144dc497 add docs directory and move some documents from Wiki 2019-01-23 15:39:05 -08:00
Daniel Kang
4fd883616a
Merge pull request #35 from d5/iterable
Iterable interface
2019-01-23 13:41:59 -08:00
Daniel Kang
2486457fdf add Iterable interface 2019-01-23 13:36:03 -08:00
Daniel Kang
c7ae181623
Merge pull request #32 from d5/d5-patch-1
Documentation
2019-01-23 13:06:18 -08:00
Daniel Kang
9b0dcf4989
Update README.md 2019-01-23 10:21:25 -08:00
Daniel Kang
ddd9fa89a3
Update README.md 2019-01-23 09:54:57 -08:00
Daniel Kang
a562964007
Merge pull request #30 from d5/indexable
Indexable and IndexAssignable
2019-01-23 09:29:19 -08:00
Daniel Kang
6a5e4f7d00
Merge pull request #29 from mdbazuin/feature/encoding-json
Added builtin functions to_json and from_json
2019-01-23 09:27:09 -08:00
Mike Bazuin
e94b3dab0f Added builtin function from_json
objects/builtin_json.go:
	- Added function builtinFromJSON

objects/builtins.go:
	- Added builtin function from_json

runtim/vm_builtin_test.go:
	- Added tests for builtin function from_json
2019-01-23 17:24:53 +01:00
Mike Bazuin
c4e6e61fb6 Added builtin function to_json
objects/builtin_json.go:
	- Added function builtinToJSON

objects/builtins.go:
	- Added builtin function to_json

runtime/vm_builtin_test.go
	- Added tests for builtin function to_json
2019-01-23 17:24:53 +01:00
Mike Bazuin
65f84ec2d1 Added conversion functions: objectToInterface
objects/conversion.go:
	- Added private helper function
2019-01-23 17:23:51 +01:00
Daniel Kang
1045afd5a4 add Indexable / IndexAssignable interface 2019-01-22 15:44:37 -08:00
Mike Bazuin
d8c83b6578 Moved interfaceToObject from scripts/conversion.go to objects/conversion.go as FromInterface 2019-01-22 21:09:52 +01:00
Daniel Kang
a32ef0a3c6
Merge pull request #28 from saromanov/fix-deprecated-values
os: use SeekStart, SeekCurrent and SeekEnd instead deprecated values
2019-01-21 07:18:01 -08:00
Sergey
c087ba891b
os: use SeekStart, SeekCurrent and SeekEnd instead deprecated values 2019-01-21 15:39:10 +05:00
Daniel Kang
bf934d0086
Update README.md 2019-01-20 13:19:24 -08:00
Daniel Kang
cb4b46823a
Merge pull request #27 from d5/d5-patch-1
Add gpython to benchmark result
2019-01-20 13:18:04 -08:00
Daniel Kang
c1899f3b5d
Add gpython to benchmark result 2019-01-20 13:14:25 -08:00
Daniel Kang
2caa4d19c7
Update README.md 2019-01-20 08:55:46 -08:00
Daniel Kang
00168726d6
Merge pull request #25 from d5/scriptctx
Add Context to script run
2019-01-20 08:48:10 -08:00
Daniel Kang
880a281dfb Remove a link (standalone language) from README 2019-01-20 08:35:44 -08:00
Daniel Kang
336fbc30e5 some performance optimization in VM 2019-01-20 08:32:12 -08:00
Daniel Kang
88dd0224d5 use atomic.Load/Store to avoid data race 2019-01-20 06:33:22 -08:00
Daniel Kang
04bb0f5e62 add context to script run 2019-01-20 04:59:43 -08:00
Daniel Kang
47418fddac
Merge pull request #23 from d5/gover
Go 1.9
2019-01-19 20:50:12 -08:00
Daniel Kang
57700aceb1 add build status to README 2019-01-19 20:46:32 -08:00
Daniel Kang
81fdf10f8c remove 'mode_irregular' from 'os' module 2019-01-19 20:38:01 -08:00
Daniel Kang
ff725f3609 install golint in travis 2019-01-19 20:34:52 -08:00
Daniel Kang
e909415c7c fix travis setup 2019-01-19 20:30:38 -08:00
Daniel Kang
029a3c11b4 1. remove some stdmod functions for the latest Go version 2. add .travis.yml 2019-01-19 20:28:32 -08:00
Daniel Kang
d55b667616
Merge pull request #21 from 0xflotus/patch-1
fixed extensible
2019-01-19 14:24:46 -08:00
0xflotus
92c0ad39bf
fixed extensible 2019-01-19 13:16:32 +01:00
Daniel Kang
a95fbbda0b
Merge pull request #20 from d5/d5-patch-1
Add Starlark benchmark result
2019-01-19 02:44:54 -08:00
Daniel Kang
5ab5db05a5
Update README.md 2019-01-19 02:43:55 -08:00
Daniel Kang
bf7992292a
Merge pull request #18 from d5/d5-patch-1
Roadmap
2019-01-19 01:44:45 -08:00
Daniel Kang
66fbb50329
Update README.md 2019-01-19 01:36:17 -08:00
Daniel Kang
8027f96fee
Update README.md 2019-01-19 01:33:06 -08:00
Daniel Kang
814851abe6 fix compile errors 2019-01-18 14:52:07 -08:00
Daniel Kang
fa294d9731
Merge pull request #14 from mdbazuin/feature/7-type-conversion-defaults
Type conversion builtin take default values
2019-01-18 14:47:50 -08:00
Mike Bazuin
fae85000cf Convert returns second argument Object as it self in case of failure of conversion of first argument
objects/builtin_convert.go
- Changed type check of in case of args[0] failure to always return
  args[1] if set

runtime/vm_builtin_test.go:
- Changed tests according to changes in objects/builtin_convert.go
2019-01-18 23:29:04 +01:00
Mike Bazuin
a747c98fb5 Builtin converts now take default values
objects/builtin_convert.go: Added defaults to all builtin convert functions except
bool as this one returns false for undefined, instead of undefined.

runtime/vm_builtin_test.go: Added tests for checking default value
behaviour for builtin convert funcs
2019-01-18 22:21:42 +01:00
Mike Bazuin
b4a2da8a30 runtime/vm_builtin_test.go: Added builtin bytes convert test 2019-01-18 22:21:35 +01:00
Daniel Kang
f482de6d69
Merge pull request #9 from d5/osmod
Module "os"
2019-01-18 10:56:46 -08:00
Daniel Kang
b3d4854961 update README 2019-01-18 10:52:12 -08:00
Daniel Kang
5164d1de9f add 'exec' module 2019-01-18 10:17:24 -08:00
Daniel Kang
a8d838ad3e Compile can take custom stdlibs 2019-01-18 09:19:45 -08:00
Daniel Kang
bff59006d1 add Variable.Error() function 2019-01-18 02:33:23 -08:00
Daniel Kang
b5108b8065 os Process functions 2019-01-18 02:28:58 -08:00
Daniel Kang
9b1a0a36bf add more comments 2019-01-18 01:57:14 -08:00
Daniel Kang
8cad04841e add os File functions; add Bytes type 2019-01-18 01:43:46 -08:00