Commit Graph

1187 Commits

Author SHA1 Message Date
ValKmjolnir 37841fc91e optimize code & shrink code size 2022-08-02 22:03:28 +08:00
ValKmjolnir 44bfd74ca9 📝 optimize codes 2022-08-01 22:51:19 +08:00
ValKmjolnir 04a45064c8 📝 delete unnecessary code & change test file. 2022-07-31 19:26:13 +08:00
ValKmjolnir 068743aa4c 📝 change `int` in code to `i32`, optimize code. 2022-07-31 02:19:29 +08:00
ValKmjolnir 7ad1d69c64 optimize code & chdir will not trigger crash if failed to call 2022-07-30 19:17:33 +08:00
ValKmjolnir 52fcc9118c 🚀 input now can choose `std::getline` to read one line. 2022-07-30 01:31:56 +08:00
ValKmjolnir c0862704f0 🐛 fix bug that `dylib.dlopen` cannot load dynamic lib in local dir. 2022-07-29 23:30:15 +08:00
ValKmjolnir 854850d9b1 🐛 fix bug of incorrectly searching paths of `lib.nas` and dynamic libs.
`dylib.dlopen` now only needs file name of dynamic lib, not the real path.
2022-07-29 22:49:50 +08:00
ValKmjolnir 006ed644e6 🚀 move fg constants to `stl/fg_env.nas`, add `io.exists`. now dlopen and import can search file in PATH. 2022-07-28 21:44:55 +08:00
ValKmjolnir 33e584ab5c 📝 add doc to help you create `visual studio` project. 2022-07-27 19:31:14 +08:00
ValKmjolnir db896e932f correct types in nasal_codegen.h 2022-07-27 00:59:35 +08:00
ValKmjolnir 3e8b9e4846 optimize nasal_parser 2022-07-26 20:04:57 +08:00
ValKmjolnir ea33ce020c 🚀 add new default bar in stl.process_bar 2022-07-25 22:15:40 +08:00
ValKmjolnir ac8652f864 📝 update README 2022-07-25 20:09:41 +08:00
ValKmjolnir 4c95d622f6 🚀 shrink stack size & optimize nasal_vm::traceback 2022-07-25 00:23:07 +08:00
ValKmjolnir 61dcfb9395 📝 fix error in README_zh.md 2022-07-24 17:16:44 +08:00
ValKmjolnir 899b327608 📝 fix error in README.md 2022-07-24 17:15:44 +08:00
ValKmjolnir c702f02a8a 📝 change README.md & README_zh.md 2022-07-24 17:05:36 +08:00
ValKmjolnir afbee18e26 📝 update README.md & README_zh.md 2022-07-24 13:01:42 +08:00
ValKmjolnir c6129267aa 📝 update docs 2022-07-24 00:10:26 +08:00
ValKmjolnir 6187395ce8 📝 split README.md to doc/benchmark.md doc/dev.md doc/dev_zh.md 2022-07-23 23:04:31 +08:00
ValKmjolnir 5dcf2ede66 📝 doc fix 2022-07-23 17:21:44 +08:00
ValKmjolnir 99a131c552 🚀 change `std::string` to `string`, change identifiers' name, `-o` is now a function available in debug mode. 2022-07-23 17:00:25 +08:00
ValKmjolnir 46516485b5 📝 change name of used types 2022-07-23 12:35:21 +08:00
ValKmjolnir e9fc70bba8 optimize `op_para` and `op_deft`: change `hashmap<string,u64>` to `hashmap<u32,u32>` 2022-07-23 12:02:41 +08:00
ValKmjolnir 8ca0bc52c3 change some branches 2022-07-22 22:24:48 +08:00
ValKmjolnir af761641d6 🚀 change `std::cout` to `std::clog` to put some log info 2022-07-21 23:16:16 +08:00
ValKmjolnir f68a512845 📝 shrink size of README.md 2022-07-20 22:22:50 +08:00
ValKmjolnir f7cd3a027b 📝 change README.md 2022-07-20 00:06:00 +08:00
ValKmjolnir cc4ff38f28 optimize codes 2022-07-19 23:55:12 +08:00
ValKmjolnir cfbec9a3f1 📝 change identifiers' name 2022-07-18 23:54:44 +08:00
ValKmjolnir d904123695 🐛 fix bug in test/module_test.nas 2022-07-17 23:46:37 +08:00
ValKmjolnir d8d457ce74 🐛 fix information print format on MSVC. 2022-07-16 18:47:27 +08:00
ValKmjolnir b3d65f0183 📝 fix bug in doc README_zh.md 2022-07-16 18:01:53 +08:00
ValKmjolnir fc7e0a569e 📝 update docs. 2022-07-16 17:58:01 +08:00
ValKmjolnir 51f780e637 🐛 fix error use of FindFirstFile. 2022-07-16 17:47:43 +08:00
ValKmjolnir 577ecd14df 🚀 update makefile to choose different compilers by users & fix some codes for MSVC to compile. 2022-07-16 16:53:11 +08:00
ValKmjolnir f1f48b4881 first step trying to make this project compiled by MSVC: using indirect-threading, change `\e` to `\033`. 2022-07-16 01:02:33 +08:00
ValKmjolnir 29084143d6 📝 change codes in test files. 2022-07-14 19:52:27 +08:00
ValKmjolnir d1a7d32e7b 📝 fix some wanings. 2022-07-11 23:53:23 +08:00
ValKmjolnir 8cc69c709f 📝 fix some warnings. 2022-07-10 23:55:51 +08:00
ValKmjolnir bcdc55a652 optimize code & replace all `printf` with `std::cout`. 2022-07-09 23:36:14 +08:00
ValKmjolnir 2ed20f6362 📝 change some identifiers' name. 2022-07-09 16:24:58 +08:00
ValKmjolnir 9890b46f02 optimize code. 2022-07-08 23:00:36 +08:00
ValKmjolnir 11e9567b55 📝 change some identifiers' name. 2022-07-08 18:16:00 +08:00
ValKmjolnir 5d4cff0aa8 🚀 shrink code size & now import module can search lib file from local dir and dirs in PATH 2022-07-08 00:42:56 +08:00
ValKmjolnir c1d13ecd85 🐛 fix a bug that split doesn't work if delimeter's length is greater than 1. 2022-07-07 19:32:06 +08:00
ValKmjolnir 824a31ef55 optimize builtin_split. 2022-07-07 18:07:24 +08:00
ValKmjolnir fb25a4973c optimize codes. details:
1. delete gc::builtin_alloc
2. add convenient way of getting new string object: gc::newstr, and shrink the size of codes
3. update doc
4. add gc::temp to be used in native/module functions to avoid being recognized as garbage incorrectly when triggered mark-sweep
2022-07-07 17:51:30 +08:00
ValKmjolnir 75c46fa727 🚀 change usleep in builtin_sleep to cross platform c++11::std::this_thread::sleep_for.
Although this is not so accurate in Windows platform, the accuracy is still improved and this line of code does not need MinGW to build on Windows platform.
2022-07-07 14:35:10 +08:00