Commit Graph

2669 Commits

Author SHA1 Message Date
Stephen Chung
e7cc403381 Warn against eval in method-call style. 2020-04-23 13:22:28 +08:00
Stephen Chung
05bad53011 Encapsulate function calls and handle map property access more efficiently. 2020-04-23 10:21:02 +08:00
Stephen Chung
adc74c795e Fix benchmark. 2020-04-22 20:08:42 +08:00
Stephen Chung
97520f14a9 Fix examples and benchmarks. 2020-04-22 19:28:08 +08:00
Stephen Chung
ef9d870a82 Remove builtin.rs 2020-04-22 19:28:00 +08:00
Stephen Chung
e8c0adb90d Fix benchmark. 2020-04-22 19:10:13 +08:00
Stephen Chung
fbfea60903 Disallow assignments in expressions. 2020-04-22 17:37:06 +08:00
Stephen Chung
7df36033c4 Warn against === and !==. 2020-04-22 17:36:51 +08:00
Stephen Chung
9a1c715aad Refine package API. 2020-04-22 14:55:40 +08:00
Stephen Chung
c40c0a0bc3 Add From<Vec<T>> and From<HashMap<String, T>> for Dynamic. 2020-04-22 14:07:34 +08:00
Stephen Chung
c69647d9fd Change Dynamic::from_xxx to From<xxx> impl. 2020-04-22 12:12:13 +08:00
Stephen Chung
69733688bf Make all public API's return Box<EvalAltResult> to reduce footprint. 2020-04-21 23:25:12 +08:00
Stephen Chung
0a75479637 Refine packages plumbing. 2020-04-21 23:01:10 +08:00
Stephen Chung
e394824bf3 Fixes. 2020-04-21 00:24:25 +08:00
Stephen Chung
0306d15c04 Split core and standard libraries into packages. 2020-04-21 00:11:25 +08:00
Stephen Chung
976f3a7f6d Avoid an allocation in each function registration. 2020-04-20 12:43:34 +08:00
Stephen Chung
a1e33af5a0 Reduce size of Position by limiting resolution to 16 bits. 2020-04-20 11:08:54 +08:00
Stephen Chung
642533aef6 Extract function registration into a macro to prepare for future packages support. 2020-04-19 22:58:44 +08:00
Stephen Chung
a1ec35f11d
Merge pull request #138 from schungx/master
Turn Dynamic into enum, plus benchmarks
2020-04-19 21:42:42 +08:00
Stephen Chung
9015499722 Add more benchmarks. 2020-04-19 18:33:09 +08:00
Stephen Chung
b23fd6e20a Reshuffle code sections. 2020-04-19 18:33:02 +08:00
Stephen Chung
dd09dbf79e Add section on operator overloading. 2020-04-19 18:32:53 +08:00
Stephen Chung
d3d62c7dd9 Anticipate number of functions to be registered. 2020-04-19 13:40:11 +08:00
Stephen Chung
53f7edf306 Add doc on performance and min builds. 2020-04-19 13:22:37 +08:00
Stephen Chung
55eff1960c Merge branch 'master' of https://github.com/schungx/rhai 2020-04-18 15:30:49 +08:00
Stephen Chung
81e1c3b331 Add primes benchmark. 2020-04-18 15:30:43 +08:00
Stephen Chung
16da483f48 Set theme jekyll-theme-slate 2020-04-18 14:30:16 +08:00
Stephen Chung
5ee01d645c Set theme jekyll-theme-slate 2020-04-18 13:28:03 +08:00
Stephen Chung
e45040d9a6 Fix typo. 2020-04-18 13:15:09 +08:00
Stephen Chung
5b911c6578 Add benchmarking workflow. 2020-04-18 12:52:52 +08:00
Stephen Chung
1ebdf6dcfc Add one more level of Boxing for Dynamic::Variant to reduce size. 2020-04-18 12:36:10 +08:00
Stephen Chung
a0bc49c867 Reduce size of Dynamic by boxing large types. 2020-04-18 11:10:03 +08:00
Stephen Chung
f5fff828e8 Box errors to reduce return type footprint. 2020-04-18 00:14:33 +08:00
Stephen Chung
4a80997d6c Removed unused imports. 2020-04-17 20:54:42 +08:00
Stephen Chung
65d611b976 FIX: no_float errors. 2020-04-17 20:08:41 +08:00
Stephen Chung
c5f66e932b Simplify parsing by introducing an EOF token. 2020-04-17 20:01:41 +08:00
Stephen Chung
5d9a99cefc Refine postfix operators handling. 2020-04-17 19:00:52 +08:00
Stephen Chung
3a93ab8240 Make FunctionsLib a HashMap. 2020-04-16 23:58:57 +08:00
Stephen Chung
f8e9d66a0b Remove lifetime from Engine. 2020-04-16 23:31:48 +08:00
Stephen Chung
4f2350734f Avoid copying indexed value if not necessary. 2020-04-16 12:08:28 +08:00
Stephen Chung
090217e1cd Do not print result if (). 2020-04-16 11:57:08 +08:00
Stephen Chung
1ace4b474c Favor matching on Union's instead of downcast::<T>, as_xxx() or is::<T>. 2020-04-16 10:24:30 +08:00
Stephen Chung
c799a4567a Remove IndexSourceType. 2020-04-16 00:05:07 +08:00
Stephen Chung
674d6c856f Bump version to 0.13.0. 2020-04-15 22:27:24 +08:00
Stephen Chung
a35518fe49 Split tokenizer into separate file, plus fix no_std feature. 2020-04-15 22:21:23 +08:00
Stephen Chung
78cd53db09 Streamline tokens reading and reformat code for easier reading. 2020-04-15 21:41:28 +08:00
Stephen Chung
691541c176 Add more benchmarks. 2020-04-13 23:38:10 +08:00
Stephen Chung
f600e59401 Fix bug with casting from float. 2020-04-13 23:31:05 +08:00
Stephen Chung
20bc66c5f6 Merge branch 'master' into enum-Dynamic 2020-04-13 21:34:20 +08:00
Stephen Chung
9ed9df1e96 Add benchmarks. 2020-04-13 17:26:16 +08:00