Commit Graph

1253 Commits (337c325109c125b2d1fc741b860200e5b18df131)

Author SHA1 Message Date
Delyan Angelov fe08e1c504
strings: add Builder.write_rune/1 and Builder.write_runes/1 methods 2021-08-19 07:18:09 +03:00
Alexander Medvednikov 26b77515b9 builtin: optimize []rune.string() 2021-08-19 06:58:53 +03:00
playX 0121c8b4fd
v.gen.js: fix method calls and other codegen parts, rand module compiles (#11205) 2021-08-18 11:33:37 +03:00
Subhomoy Haldar 8dc043ba2c
builtin: fix minor C fn definitions (#11180) 2021-08-14 17:19:27 +03:00
Delyan Angelov 34d39ccb64
builtin: fix leak in rune.str(), fix leaks in most assert x == y statements in tests (#11091) 2021-08-13 18:37:34 +03:00
Subhomoy Haldar 0bd68bf5a2
builtin: rename invalid parameter names in C fn declarations (#11173) 2021-08-13 17:03:39 +03:00
Delyan Angelov 47884dfd1f
builtin: move C. calls to .c.v files (#11164) 2021-08-12 21:46:38 +03:00
playX c9e9556a92
js: array.delete_last() (#11160) 2021-08-12 19:39:33 +03:00
Enzo 506c30a291
builtin: remove methods that can be autogenerated (#11109) 2021-08-09 15:42:31 +03:00
playX 7a67a08d2f
js: implement codegen for array.sort and implement .any,.all (#11100) 2021-08-09 01:46:40 +03:00
playX 94c321c80d
v.gen.js: port fully the array test suite & add fixes (#11073) 2021-08-07 17:58:49 +03:00
zakuro 490dec222f
fmt: keep char literal, `'` (#11060) 2021-08-06 06:21:28 +03:00
Enzo 7346aeca5f
cgen: refactor array sort generation (#11067) 2021-08-06 03:55:48 +03:00
playX 8743b616a0
v.gen.js: codegen fixes, add a few builtins, port more array tests (#11049) 2021-08-04 12:46:24 +03:00
Daniel Däschle 800c0e5092
vlib: remove deprecated map{} usages as well as deprecated functions (#11035) 2021-08-04 12:44:41 +03:00
yuyi b870f7a6f1
cgen: fix array sort error (#11046) 2021-08-04 06:31:57 +03:00
Enzo fc193bebf2
builtin: add documentation for builtin array functions (#11023) 2021-08-03 06:25:33 +03:00
playX 836ac54d12
v.gen.js: add more array tests and fixes (#11014) 2021-08-01 14:08:49 +03:00
playX a7ca051016
v.gen.js: fix for array filter, add more tests and other fixes (#10999) 2021-07-30 11:17:11 +03:00
playX 75c41252d9
js: add more tests & add array prepend codegen (#10988) 2021-07-29 11:39:36 +03:00
Alexander Medvednikov b79dd7f0b3 builtin: re-enable u8 alias 2021-07-29 06:46:12 +03:00
Alexander Medvednikov 09df5adbdd builtin: re-gen v.c 2021-07-29 06:45:04 +03:00
Alexander Medvednikov 1343ec7444 builtin: fix temporary u8 alias 2021-07-29 06:42:22 +03:00
Alexander Medvednikov a7270148e5 builtin: remove u8 alias to re-generate v.c 2021-07-28 22:41:41 +03:00
Alexander Medvednikov 65126efdc3 builtin: remove u8 for now 2021-07-28 22:36:04 +03:00
playX e3cf95b058
js: add more tests for array, support array insert_many, minor fixes for references (#10983) 2021-07-28 13:01:00 +03:00
shadow 66bc8bc0cb
vlib: remove many deprecated functions (#10972) 2021-07-28 09:22:19 +03:00
Delyan Angelov b0a721b2ec
js: draft support for compiling `-b js x_test.v` 2021-07-27 13:49:47 +03:00
Delyan Angelov b44f81528f
v.gen.c: fix codegen for `const a = u64(5) + 5` 2021-07-26 08:06:59 +03:00
Delyan Angelov 6438099644
builtin: fix building vinix (missing C.strerror) 2021-07-25 23:31:22 +03:00
Uwe Krüger a6245a56d8
builtin: fix Windows panic message (#10952) 2021-07-25 15:34:48 +03:00
Uwe Krüger 55c5b9ce7b
cgen: panic with error message when `go` command fails (#10943) 2021-07-25 01:13:34 +03:00
spaceface a621149fc2
builtin: add bdwgc to thirdparty, statically link it on Windows (#10542) 2021-07-24 16:04:26 +03:00
playX f51fa7e665
v.gen.js: fix references and add iterator to map (#10938) 2021-07-24 15:35:17 +03:00
yuyi 29cda252f1
builtin: fix multiple array init (#10929) 2021-07-23 23:25:12 +03:00
playX 69cbdf9fdc
v.gen.js, os_js: port the OS module to JS (#10872) 2021-07-23 18:04:36 +03:00
Louis Schmieder 26db3b0995
orm: redesign orm (re-write it in V) (#10353) 2021-07-23 12:33:55 +03:00
Daniel Däschle 091ce6cc08
cgen: fix several sort declarations (#10919) 2021-07-23 08:55:55 +03:00
Delyan Angelov 06de9c799c
Revert "gen: add type name to comp for (#10881)"
Reason: 713a079 is more general and provides the same information.

This reverts commit dd3ee20566.
2021-07-21 23:56:00 +03:00
Louis Schmieder dd3ee20566
gen: add type name to comp for (#10881) 2021-07-21 23:45:08 +03:00
Uwe Krüger 41982053f1
builtin: make `array.delete()` reallocate, provide `.delete_many()` (#10889) 2021-07-21 20:55:32 +03:00
Daniel Däschle aebb028349
gen: fix C keyword escape to _v_ instead of just v_ (#10876) 2021-07-21 11:46:04 +03:00
Delyan Angelov 5098334e65
os: add execute_or_exit(cmd), use it consistently instead of execute_or_panic(cmd) 2021-07-20 15:22:04 +03:00
Daniel Däschle ad3835b598
parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
Delyan Angelov 48546d0f45
all: do compile time const evaluation for `const x = "abc" + "xyz"` and `const x = 16 * 1024 + 5` (fix const prealloc_block_size) 2021-07-18 22:59:18 +03:00
Delyan Angelov 3ccde5ce55
builtin: use `prealloc_block_size = 16777216` temporarily 2021-07-18 17:03:25 +03:00
playX d5e0fa6d1b
v.gen.js: port string methods and fix booleans (#10824) 2021-07-18 09:00:20 +03:00
Delyan Angelov ee9e91b8e7
builtin: fix `-d no_backtrace` error with tcc 2021-07-17 18:09:16 +03:00
Delyan Angelov b0167297e5
builtin: support `-d no_backtrace` on macos/bsd too 2021-07-17 17:49:28 +03:00
playX 06edbc8a38
v.gen.js: implement most of array and map methods in builtin/js (#10806) 2021-07-15 17:36:53 +03:00