coolreader18
13b2f83084
Fix vms.get()
2019-01-30 12:30:56 -06:00
coolreader18
4020ee7d41
Add a bare-bones VirtualMachine class to the WASM library
2019-01-30 12:18:59 -06:00
Windel Bouwman
d627230434
Merge pull request #263 from coolreader18/string-str
...
Remove unnecessary to_string conversions
2019-01-28 20:38:54 +01:00
Windel Bouwman
d365563010
Merge pull request #264 from coolreader18/fix-trim-warnings
...
Fix warnings from using trim_left and trim_right
2019-01-28 20:36:06 +01:00
coolreader18
989357fe81
Fix warnings from using trim_left and trim_right
2019-01-27 23:02:27 -06:00
coolreader18
5ecff1b37e
Remove unnecessary to_string conversions
2019-01-27 21:45:21 -06:00
Windel Bouwman
ade4c88d90
Merge pull request #256 from RustPython/fix-deployment-again
...
Fix the deploy condition for missing spaces around equals sign
2019-01-12 22:44:38 +01:00
Windel Bouwman
e41b9179f5
Merge pull request #254 from RustPython/list_index
...
Added list.index()
2019-01-12 10:25:42 +01:00
Shing Lyu
83f05c6448
Fix the deploy condition for missing spaces around equals sign
2019-01-10 22:09:33 +01:00
Shing Lyu
5e8eb8a001
Added list.index()
2019-01-10 22:01:42 +01:00
Windel Bouwman
ce36919fe3
Merge pull request #255 from adamchainz/patch-1
...
Update example
2019-01-10 20:27:51 +01:00
Adam Johnson
32a58f8897
Update example
...
Improve spelling, grammar, and HTML a bit on the example page.
2019-01-10 14:07:08 +00:00
Windel Bouwman
cab2e0d076
Merge pull request #250 from RustPython/fix-deploymnet
...
Limit the deployment only to the specific build job
2019-01-09 16:36:46 +01:00
Shing Lyu
7c8ebee43b
Limit the deployment only to the specfic build job
2019-01-08 22:37:31 +01:00
Windel Bouwman
6d0a25fb1c
Merge pull request #248 from coolreader18/dockerfile
...
Create dockerfiles for the rustpython binary and wasm demo
2019-01-03 19:26:38 +01:00
coolreader18
3e3d28fa1d
Create dockerfiles for the rustpython binary and wasm demo
2019-01-02 18:57:27 -06:00
Windel Bouwman
a28b665396
Merge pull request #246 from rmliddle/bytes-representation
...
Bytes representation changed from hex to utf-8
2019-01-02 22:07:21 +01:00
rmliddle
3d6742a9e8
change to bytes repr
2019-01-02 21:25:48 +11:00
Windel Bouwman
d508d130b6
Merge pull request #235 from xrmx/stringconstants
...
Implement most string module constants
2018-12-29 15:29:28 +01:00
Windel Bouwman
d425c26763
Merge pull request #245 from coolreader18/final-demo-improvements
...
Final demo improvements
2018-12-29 15:28:26 +01:00
coolreader18
231e3f2f16
Export PyEvalOptions in typescript defs
2018-12-28 21:57:41 -06:00
coolreader18
e65639f61a
Remove yarn.lock
2018-12-28 21:43:13 -06:00
coolreader18
d7fdc5c177
Fix typescript hack
2018-12-28 14:42:43 -06:00
coolreader18
36997e12d9
Comment out WB's TS definitions using a hack
2018-12-28 14:35:45 -06:00
coolreader18
1d5df4130a
Add doc comments and typescript custom section
2018-12-27 22:31:15 -06:00
coolreader18
b2772804f2
Add README and manifest fields for the WASM library
2018-12-27 21:06:59 -06:00
coolreader18
4cc7f5aa9c
Merge #console and #code styles
2018-12-27 20:43:09 -06:00
coolreader18
1f02cc0fa3
Squash all demo commits onto one branch
2018-12-27 20:28:12 -06:00
Riccardo Magliocchetti
e4ca1655e9
Implement most string module constants
...
whitespace and thus printable are excluded because i haven't found
a way to make tests pass.
2018-12-27 23:48:11 +01:00
Windel Bouwman
4c5b5845bb
Merge pull request #244 from coolreader18/boxed-rustfunc
...
Change RustPyFunc from a fn pointer to a Fn trait
2018-12-27 20:23:22 +01:00
AgentMacklin
79a3b13252
Implement most of the string methods. ( #239 )
...
* implemented more functions
* backup
* Improve demo site
* Formatting; move the `+ '\n'` hack to eval().
* Rename run_code() to run_from_textbox()
* Switch to using json.dumps for py_to_js()
* Clarify names of wasm builtins
* Remove dependency on num_bigint
* Allow injecting JS variables into python with eval_py()
eval_py(`return js_vars["a"]`, { a: 9 }) == 9
* dict() now should work properly
e.g.
``` dict(a=2, b=3) == {"a": 2, "b": 3} ```
* Add documentation for eval_py() and update error message handling
Also, switch from iterating over the values of js_injections and
serializing each of them individually to asserting it's an object and
then just stringifying the whole thing.
* Finish revamping `dict_new()`
* Add 'from x import *' syntax.
This is a separate opcode in CPython so I added it as such here.
* Add test for dicts
* added functions
* ran rustfmt and fixed isidentifier
* fixed zfill and make_title
* python3.6 doesn't contain isascii()
2018-12-27 20:22:04 +01:00
coolreader18
8303743aab
Remove RustPyFunc trait, just use Fn(..) everywhere
2018-12-27 11:50:14 -06:00
coolreader18
09602a2ec6
Change RustPyFunc from a fn pointer to a Fn trait
2018-12-27 09:18:00 -06:00
Windel Bouwman
f325ef1499
Merge pull request #240 from coolreader18/json-error
...
Have the json ser/de functions throw an exception instead of panicking
2018-12-27 09:20:52 +01:00
Windel Bouwman
978e7eabe3
Merge pull request #241 from coolreader18/formatted-exceptions
...
Format exceptions nicely (no more RefCell { value: .. }!)
2018-12-27 09:14:35 +01:00
coolreader18
8fee5a8800
Run cargo fmt --all
2018-12-27 00:12:08 -06:00
coolreader18
396842ef9d
Readd conflicting files
2018-12-27 00:04:20 -06:00
coolreader18
dfadd03f95
Remove (now outdated) previously conflicting files
2018-12-27 00:02:33 -06:00
coolreader18
ada92d33a3
Add conflicting files
2018-12-27 00:01:20 -06:00
coolreader18
2968982a8f
Change README portion for compiling wasm
2018-12-26 23:51:28 -06:00
coolreader18
877206dc47
Switch from shell to npm scripts for demo using webpack and @wasm-tool/wasm-pack-plugin
...
Also change travis deploy to use new demo directory.
2018-12-26 23:34:51 -06:00
coolreader18
0ac0432a53
Run cargo fmt
2018-12-26 18:23:40 -06:00
coolreader18
80573b0544
Format PyObject's correctly and nicely
2018-12-26 18:09:49 -06:00
coolreader18
d1a584f0fd
Don't allocate a new string for each new type for the ExceptionZoo
2018-12-26 14:19:19 -06:00
coolreader18
a77b7e0ce4
Have json.* throw an exception instead of panicking
2018-12-26 14:18:15 -06:00
coolreader18
c38796bb49
Add some documentation for functions on the demo site
2018-12-26 13:25:56 -06:00
coolreader18
94d6a91873
Fix js_to_py with JS undefined
2018-12-26 13:21:29 -06:00
coolreader18
e0959b9384
Implement error conversion for js_to_py
2018-12-26 11:21:45 -06:00
coolreader18
132930ec82
Allow passing closures from JS to python via vars
2018-12-26 01:59:15 -06:00
coolreader18
63b3f3e71b
Fix blanket impl of RustPyFunc
2018-12-24 15:51:54 -06:00