yuyi
a83786d867
checker: minor cleanup in cast_expr() ( #12954 )
2021-12-24 11:38:27 +02:00
Miccah
d69d2c600b
adt: implement a doubly linked list ( #12950 )
2021-12-24 11:19:40 +02:00
yuyi
c0dcd1a9a5
ast: fix reference of alias char type ( #12951 )
2021-12-24 11:11:20 +02:00
Ikko Ashimine
92bd55ded6
tests: fix typo in common.v ( #12952 )
2021-12-24 10:47:48 +02:00
Hunam
68452cff76
adt: add queue ( #12941 )
2021-12-23 18:57:15 +02:00
Hunam
54a6973548
adt: add linked list ( #12937 )
2021-12-23 18:23:04 +02:00
Delyan Angelov
fa2de89db9
orm: do not order by default, ordering is slow; also fix a bug for tables without defined primary keys
2021-12-23 16:43:22 +02:00
Hunam
d7deda5078
vlib: add an `adt` module (Abstract Data Types) ( #12901 )
2021-12-23 15:16:29 +02:00
yuyi
d4f28c88b3
checker: minor cleanup in the checker.v ( #12945 )
2021-12-23 15:02:09 +02:00
Benjamin Stigsen
546c388b02
gg: renaming drawing functions ( #12913 )
2021-12-23 13:31:25 +02:00
yuyi
ad1ef6a9e2
cgen: fix map get assign blank var with optional ( #12943 )
2021-12-23 13:04:36 +02:00
Delyan Angelov
b88a40ad80
ci: cleanup and fix sdl_ci.yml
2021-12-23 13:01:38 +02:00
playX
a2468e1e0c
js,os: fix integer arithmetic; add Process.close() and os.is_readable() for VJS; Make tetris run on JS backend ( #12940 )
2021-12-23 11:36:42 +02:00
yuyi
d3ccdfd75c
cgen: fix channel of sumtype ( #12938 )
2021-12-23 11:26:15 +02:00
lydiandy
b4723c18fc
cmd: update vast -t help text ( #12939 )
2021-12-23 11:23:35 +02:00
Delyan Angelov
db1175e455
parser: handle `[noreturn]` on methods too
2021-12-22 19:58:37 +02:00
yuyi
1028f0b59e
fmt: fix error of generic struct_init using module ( fix #12893 ) ( #12935 )
2021-12-22 19:11:09 +02:00
Delyan Angelov
86719c5de9
tools: update vast to latest V
2021-12-22 18:13:29 +02:00
Delyan Angelov
e256f1b2aa
checker,cgen: stabilise generic method handling (fix a source code ordering issue)
2021-12-22 18:03:46 +02:00
Larpon
b3161b05a3
ci: add sdl workflow for testing `vlang/sdl` ( #12934 )
2021-12-22 17:52:47 +02:00
penguindark
278c08704c
all: support slices with negative indexes `#[start..end]` (gated arrays) ( #12914 )
2021-12-22 16:34:02 +03:00
playX
2b9f993574
gg: add text rendering, keyboard event handling for JS and other fixes ( #12932 )
2021-12-22 12:26:52 +02:00
yuyi
6eb44f472a
cgen: fix multiple return with sumtype ( #12930 )
2021-12-22 12:09:08 +02:00
yuyi
6a4fa6096e
cgen: fix blank ident in for_c_stmt ( #12931 )
2021-12-22 09:34:26 +02:00
pancake
cb65f2ff44
js: generate es5 methods for valueOf() and toString() ( #12928 )
...
Co-authored-by: pancake <pancake@nopcode.org>
2021-12-22 09:20:45 +02:00
zakuro
2693631643
parser: make codegen generate correct module name ( #12929 )
2021-12-22 10:55:57 +11:00
spaceface
cfb814a0e3
gen: support returning large types from closures on amd64 ( #12926 )
2021-12-22 00:18:45 +02:00
Delyan Angelov
7b4d83660a
examples: reduce progress update rate for path_tracing.v (less string interpolations/mallocs)
2021-12-21 23:43:13 +02:00
playX
b68c217d53
js: remove usage of default arguments for `-es5` flag ( #12921 )
2021-12-21 20:23:40 +02:00
joe-conigliaro
07cf6d9f96
parser/scanner: make codegen impl use own parser. closes #12857 ( #12925 )
2021-12-21 19:48:06 +02:00
yuyi
fc83f0bfd0
cgen: clean up gen_assign_stmt() ( #12915 )
2021-12-21 19:23:55 +02:00
Delyan Angelov
5ee5f92cda
ci: use github.sha instead of github.ref, so CI runs on master are not canceled early
2021-12-21 19:18:59 +02:00
yuyi
de3665af69
cgen: fix interface method using struct embed ( #12924 )
2021-12-21 19:16:05 +02:00
Delyan Angelov
794bdfdca7
ci: use concurrency.cancel-in-progress
2021-12-21 19:10:43 +02:00
Delyan Angelov
88435eb769
examples: avoid using `go game.run()` in Tetris
2021-12-21 16:54:26 +02:00
playX
ade14491d4
gg: add event handling for mouse down/up and mouse leave/out on VJS ( #12917 )
2021-12-21 12:31:29 +02:00
Delyan Angelov
cc2fcb52d6
tests: fix the shown number of jobs for the test summary
2021-12-21 02:51:26 +02:00
Delyan Angelov
ed2d1286da
help: improve `v help test`
2021-12-20 19:53:39 +02:00
yuyi
460f7c6637
cgen: fix fixed array of interfaces equality ( #12908 )
2021-12-20 19:09:22 +02:00
yuyi
9f7d71d338
ci: fix ci error of vls build ( #12909 )
2021-12-20 19:08:22 +02:00
Delyan Angelov
68ada041e6
tests: support `VTEST_ONLY_FN=*test_sincos* ./v test .` and `./v test -run-only test_sin .`
2021-12-20 18:45:04 +02:00
playX
5f0160bf11
js,gg: more work on porting gg to JS backend ( #12903 )
2021-12-20 16:18:21 +03:00
Delyan Angelov
f81654e3a7
builtin: add `s.match_glob(wildcard_pattern)`
2021-12-20 14:17:08 +02:00
yuyi
7c85c2ab1f
checker: fix error of map selector assign ( #12902 )
2021-12-20 08:09:15 +02:00
Miccah
d07975335d
time: add Duration.str() ( #12897 )
...
* time: add str() method to Duration
* add Duration.str tests, move time.infinite to time.v, to be visible to the JS backend
Co-authored-by: Delyan Angelov <delian66@gmail.com>
2021-12-19 19:32:42 +02:00
Delyan Angelov
840a92c14e
v.builder: change the default stack size for apps produced by MSVC to 16MB
2021-12-19 18:40:29 +02:00
yuyi
cd0b581445
ast: rename 'table.get_type_symbol()' to 'table.sym()' and more related calls ( #12898 )
2021-12-19 18:25:18 +02:00
yuyi
c957f59071
cgen: minor cleanup in cgen.v ( #12896 )
2021-12-19 14:31:04 +02:00
Delyan Angelov
41176c4967
cgen: add `bool` and `complex` to c_reserved
2021-12-19 13:44:54 +02:00
Leo Developer
a7019ac86c
cgen: fix parallel waiter function generation ( #12895 )
2021-12-19 13:38:48 +02:00