Commit Graph

  • 877206dc47 Switch from shell to npm scripts for demo using webpack and @wasm-tool/wasm-pack-plugin coolreader18 2018-12-26 23:34:51 -06:00
  • 0ac0432a53 Run cargo fmt coolreader18 2018-12-26 18:23:40 -06:00
  • 80573b0544 Format PyObject's correctly and nicely coolreader18 2018-12-26 18:09:49 -06:00
  • d1a584f0fd Don't allocate a new string for each new type for the ExceptionZoo coolreader18 2018-12-26 14:19:19 -06:00
  • a77b7e0ce4 Have json.* throw an exception instead of panicking coolreader18 2018-12-26 14:18:15 -06:00
  • c38796bb49 Add some documentation for functions on the demo site coolreader18 2018-12-26 13:25:56 -06:00
  • 94d6a91873 Fix js_to_py with JS undefined coolreader18 2018-12-26 13:21:29 -06:00
  • e0959b9384 Implement error conversion for js_to_py coolreader18 2018-12-26 11:21:45 -06:00
  • 132930ec82 Allow passing closures from JS to python via vars coolreader18 2018-12-26 01:59:15 -06:00
  • 63b3f3e71b Fix blanket impl of RustPyFunc coolreader18 2018-12-24 15:51:54 -06:00
  • d1d958516d Change the instances of Fn(..) -> PyResult to a RustPyFunc trait alias coolreader18 2018-12-24 15:45:45 -06:00
  • ffcd40b435 Remove conflicting files coolreader18 2018-12-24 15:35:50 -06:00
  • 24507de3b1 Re-add conflicting files coolreader18 2018-12-24 15:34:52 -06:00
  • ab23f2c940 Use str.format for the demo coolreader18 2018-12-22 23:33:59 -06:00
  • 840c5072fb Improve UX for demo coolreader18 2018-12-22 23:28:15 -06:00
  • d54d2b1c03 Make scripts executable coolreader18 2018-12-22 23:08:05 -06:00
  • 2ea9dca40c Add example, change some stuff in the demo to align with example coolreader18 2018-12-22 22:22:34 -06:00
  • ca30ebcf5d Genericize the wasm lib to not be specifically for the demo coolreader18 2018-12-22 17:51:27 -06:00
  • 4c32693c7b Switch to using one workspace, move profile to root Cargo.toml coolreader18 2018-12-18 01:24:11 -06:00
  • 946df53077 Merge pull request #237 from johndaniels/add-star-import Windel Bouwman 2018-12-23 17:55:34 +01:00
  • ac3da8b453 Add 'from x import *' syntax. Gitea 2018-12-22 00:47:19 -05:00
  • 366f3e2b13 Merge pull request #236 from coolreader18/proper-dict Windel Bouwman 2018-12-22 16:05:31 +01:00
  • 427ce4347e Add test for dicts coolreader18 2018-12-22 00:04:13 -06:00
  • f1784236af Finish revamping dict_new() coolreader18 2018-12-21 23:35:45 -06:00
  • 71ba5019bf Merge pull request #230 from coolreader18/master Shing Lyu 2018-12-21 16:22:34 +01:00
  • e77f223538 Add documentation for eval_py() and update error message handling coolreader18 2018-12-18 19:03:04 -06:00
  • 03c619f79e Rearrange website directory and change webpack config coolreader18 2018-12-18 18:22:30 -06:00
  • bdc80dc75b dict() now should work properly coolreader18 2018-12-18 01:34:00 -06:00
  • 950dbd1a77 Use new_list when constructing multiplied list. Windel Bouwman 2018-12-17 12:14:29 +01:00
  • bbe333d6c7 Merge pull request #233 from rossjones/232-impl-mul-for-list Windel Bouwman 2018-12-17 11:55:44 +01:00
  • 8aaadb16c0 Merge pull request #234 from johndaniels/indentation Windel Bouwman 2018-12-17 11:55:20 +01:00
  • 1b13b0c4e2 Merge pull request #231 from johndaniels/format Windel Bouwman 2018-12-17 11:50:14 +01:00
  • 9468b657d2 Run cargo fmt. Gitea 2018-12-16 17:40:25 -05:00
  • c74cd90d8e Handle mixed spaces and tabs. Gitea 2018-12-16 17:08:36 -05:00
  • 95d4073dd8 Add newline to end of file. Gitea 2018-12-16 16:21:40 -05:00
  • a6288acd22 Cargo format. Gitea 2018-12-16 15:48:59 -05:00
  • bbe4844f6c Fix snippet to not use tab. Gitea 2018-12-16 15:43:07 -05:00
  • ae2f7ed1cb Implements __mul__ for lists Ross Jones 2018-12-16 11:44:02 +00:00
  • b726e675ff Add format builtin and String formatting stuff. Gitea 2018-12-13 00:50:15 -05:00
  • a796b134a5 Allow injecting JS variables into python with eval_py() coolreader18 2018-12-15 12:20:03 -06:00
  • e78a25132e Remove dependency on num_bigint coolreader18 2018-12-15 11:38:08 -06:00
  • 3be6fee737 Clarify names of wasm builtins coolreader18 2018-12-15 11:36:53 -06:00
  • 921efd4d14 Switch to using json.dumps for py_to_js() coolreader18 2018-12-15 11:33:37 -06:00
  • 2ae1df590e Rename run_code() to run_from_textbox() coolreader18 2018-12-15 01:41:25 -06:00
  • f8cce25f69 Formatting; move the + '\n' hack to eval(). coolreader18 2018-12-15 01:31:44 -06:00
  • b428f2e3b3 Improve demo site coolreader18 2018-12-15 00:49:47 -06:00
  • 62c53d8e5d Try to make it simpler to switch dict storage types. Windel Bouwman 2018-12-13 20:38:09 +01:00
  • 521f664e16 Merge pull request #229 from AgentMacklin/master Windel Bouwman 2018-12-13 20:31:45 +01:00
  • 7ac22d96d1 update and added more functions Austen LeBeau 2018-12-13 12:02:18 -06:00
  • a29e882bc1 Store dict key as pyobject into hashmap. Windel Bouwman 2018-12-13 17:05:01 +01:00
  • e657633e51 Move set_item to context struct. Windel Bouwman 2018-12-12 22:27:28 +01:00
  • 4095e0cad7 Modify location of set_attr so that we are able to create str python objects for the dictionary. Windel Bouwman 2018-12-12 22:06:19 +01:00
  • 31f50eda3d Merge pull request #226 from RustPython/demo-error Windel Bouwman 2018-12-12 20:01:31 +01:00
  • 0215830aaa Move set_attr and set_item to context. Windel Bouwman 2018-12-12 19:41:09 +01:00
  • dd2b4e3c25 added isalnum, isalpha, isdigit, swapcase Austen LeBeau 2018-12-12 12:01:35 -06:00
  • 5c04ad8aae Make underlying dict type more hidden. Windel Bouwman 2018-12-12 15:13:40 +01:00
  • 07336fa984 initial fork commit Austen LeBeau 2018-12-11 22:44:56 -06:00
  • 6021fca8cd [WASM] Print the Rust panic to the output textarea Shing Lyu 2018-12-11 21:50:25 +01:00
  • fabc67985a Make the run button bigger so it doesn't overflow Shing Lyu 2018-12-11 21:38:02 +01:00
  • 95092be36d Merge pull request #225 from RustPython/test-demo Windel Bouwman 2018-12-11 20:22:13 +01:00
  • 0159051e95 Updated README about WASM build Shing Lyu 2018-12-10 23:13:54 +01:00
  • 13a9922d93 Fix the demo page travis build Shing Lyu 2018-12-10 21:10:51 +01:00
  • b46fc938d4 Merge pull request #224 from RustPython/readme-demo Windel Bouwman 2018-12-10 22:18:37 +01:00
  • 160cfe6155 Added link to online demo in README Shing Lyu 2018-12-10 21:58:43 +01:00
  • 8345acc402 Change rustfmt check to stable. Windel Bouwman 2018-12-10 21:33:23 +01:00
  • bb4454912e Added instruction on updating online doc and demo page Shing Lyu 2018-12-10 20:45:12 +01:00
  • 69d21e0ebb Merge pull request #222 from RustPython/wasm-output-pure-rs Windel Bouwman 2018-12-09 22:13:00 +01:00
  • b2aa7ac2fb [WASM] Changed the demo to fibonacci calculation Shing Lyu 2018-12-09 21:26:12 +01:00
  • 3e231620cd [WASM] Print STDOUT to textarea in HTML Shing Lyu 2018-12-09 20:11:27 +01:00
  • 6435ab3ad4 Added explanation why we cp file to pkg wasm-output Shing Lyu 2018-12-09 20:12:41 +01:00
  • d2565cd1b0 Print to html with JS-side function Shing Lyu 2018-12-09 20:11:27 +01:00
  • f8f9fa7fd0 Merge pull request #217 from RustPython/travis-demo Windel Bouwman 2018-12-07 10:15:50 +01:00
  • b5c1990267 CI build and deploy demo page on master branch Shing Lyu 2018-12-04 21:11:18 +01:00
  • 351a61f2b3 Merge pull request #216 from RustPython/forkme Windel Bouwman 2018-12-05 11:30:58 +01:00
  • 34a60ce6a2 Merge pull request #218 from RustPython/stabledoc Windel Bouwman 2018-12-05 11:30:38 +01:00
  • 41d5dc52eb Use stable rust to build documentation Shing Lyu 2018-12-04 21:15:51 +01:00
  • 71ea9b8f16 Added fork me on github ribbon to demo page Shing Lyu 2018-12-04 20:57:36 +01:00
  • fa89e8803c Merge pull request #214 from RustPython/online-demo Windel Bouwman 2018-12-04 09:12:07 +01:00
  • 30bb111b1a Merge pull request #208 from RustPython/travis-fix Windel Bouwman 2018-12-04 09:01:16 +01:00
  • 8d78c67d0b Created a demo page so user can try their code online Shing Lyu 2018-12-03 20:47:30 +01:00
  • 5734fc29ca Merge pull request #203 from RustPython/consolelog Shing Lyu 2018-12-03 20:48:43 +01:00
  • 03911d98d7 Limit the gh-pages deployment step to only nightly build Shing Lyu 2018-11-26 21:33:07 +01:00
  • 2c55c4793e [WASM] Mapping print to console.log Shing Lyu 2018-11-21 14:45:58 +01:00
  • 8eacbcbc06 Add builtins to sys.modules. Add __float__ method to int class. Windel Bouwman 2018-11-26 22:31:40 +01:00
  • f227ce0498 Add random module Windel Bouwman 2018-11-25 23:20:10 +01:00
  • eb51007993 Merge pull request #206 from RustPython/travis-branch Windel Bouwman 2018-11-25 22:18:14 +01:00
  • 1b4b157a2d Merge pull request #207 from yodalee/math-implementation-with-statrs Windel Bouwman 2018-11-25 22:05:41 +01:00
  • 68892fb4e2 fix rustfmt yodalee 2018-11-25 22:13:26 +08:00
  • 04548db1e0 add implementation of special math function yodalee 2018-11-25 20:09:42 +08:00
  • ee2fb20f96 Merge pull request #205 from RustPython/readme-update Windel Bouwman 2018-11-24 12:05:52 +01:00
  • de61b1c685 Push website to the master branch to simplify website development Shing Lyu 2018-11-24 10:43:56 +01:00
  • 51271e5000 Added link to documentation in README Shing Lyu 2018-11-24 10:36:17 +01:00
  • a8fb2f3754 Merge pull request #204 from RustPython/travis-doc Windel Bouwman 2018-11-23 18:32:44 +01:00
  • 023e6119c4 Auto build and deploy documentation to website repo Shing Lyu 2018-11-23 11:51:39 +01:00
  • 083eb977ad Merge pull request #202 from RustPython/cleanup Windel Bouwman 2018-11-22 21:37:32 +01:00
  • c1ab263258 Removed unused wasm/src/main.rs file Shing Lyu 2018-11-20 21:50:17 +01:00
  • be462afaa4 Add method to list and tuple class. Windel Bouwman 2018-11-17 12:31:24 +01:00
  • a17fb3f4d0 Merge pull request #197 from BojanKogoj/bojan/vm-call_or_unsupported Windel Bouwman 2018-11-17 09:07:19 +01:00
  • cd3429ce4d Merge pull request #193 from RustPython/readme-typo Shing Lyu 2018-11-16 14:44:00 +01:00
  • 0da1f73777 Removed empty space Bojan 2018-11-16 07:49:12 +01:00