Delyan Angelov
7c78bf9466
hash.fnv1a: add fnv1a.sum64_bytes and fnv1a.sum32_bytes, add doc comments and tests
2021-12-29 11:27:26 +02:00
Delyan Angelov
9b8cf1ad37
markused: fix V compiler panics with -skip-unused, for code using generics
2021-12-29 09:48:13 +02:00
Hunam
5607cfbd32
datatypes: add a Queue.last() method ( #12987 )
2021-12-29 08:01:47 +02:00
penguindark
5e5529441c
docs: document negative indexed slices, add example for a 'list comprehension' ( #12986 )
2021-12-28 22:29:11 +02:00
Delyan Angelov
43fee6b3d5
all: fix registration of methods with the same name on different generic structs
2021-12-28 21:42:48 +02:00
Delyan Angelov
730b2a9263
sync: move sync.atomic2 to sync.stdatomic, cleanup
2021-12-28 10:16:22 +02:00
yuyi
c1711b8f05
checker: check string cast to number ( fix #12982 ) ( #12983 )
2021-12-28 07:55:39 +02:00
Alexander Medvednikov
6176ce9f03
all: c2v fixes
2021-12-28 08:00:56 +03:00
penguindark
dadc965082
regex: implement negation groups, more flexibility for bsls, small fixes ( #12981 )
...
* removed memory allocations in cleaning during clear calls
* first test implementation of negative groups, more flexibility for bsls
* fixed bsls failed tests
* fmt
* added \n to regex tests
2021-12-27 22:18:48 +02:00
Delyan Angelov
14648fa41e
parser: reduce max_expr_level to 310 (due to more limited stack size on windows)
2021-12-27 20:21:58 +02:00
yuyi
34e175a343
checker: minor cleanup of the fns classification ( #12977 )
2021-12-27 13:11:10 +02:00
Delyan Angelov
a2eb90ee4e
parser: prevent too deep recursions in p.check_undefined_variables
2021-12-27 12:30:17 +02:00
Toby Webb
35418b8413
cgen: fix compile error on locking interface value ( #12883 )
2021-12-26 20:01:00 +02:00
Delyan Angelov
c26e040d33
ci: bump retry count to 5 for tcp_test.v
2021-12-26 19:05:05 +02:00
yuyi
2e68af22d3
cgen: improve auto_str error messages ( #12972 )
2021-12-26 18:32:15 +02:00
yuyi
55d9c24063
ast: fix generic fn with multiple return ( #12971 )
2021-12-26 16:44:41 +02:00
Delyan Angelov
8a10dbcf27
vlib: rename adt
to datatypes
2021-12-26 16:01:36 +02:00
Larpon
2210f89ea3
sokol: type alias all sapp
structs ( #12962 )
2021-12-26 13:02:51 +02:00
pancake
04be2465dc
cgen: check call argument on methods ( #12965 )
2021-12-26 11:53:56 +02:00
yuyi
3b5de71e60
builtin: add none str() ( fix #12964 ) ( #12967 )
2021-12-26 11:41:51 +02:00
yuyi
03864e4ab8
checker: fix cast enum to alias ( #12968 )
2021-12-26 11:34:20 +02:00
Daniel Däschle
10f63b3cd7
cgen: remove "main" from inline sum type str ( #12963 )
2021-12-25 23:58:45 +03:00
Daniel Däschle
35282396ec
all: inline sum types ( #12912 )
2021-12-25 18:26:40 +03:00
Miccah
485b392cb3
adt: implement a binary MinHeap data structure ( #12956 )
2021-12-25 12:03:50 +02:00
yuyi
8764a3a973
checker: check errors of cast to byte ( #12961 )
2021-12-25 11:34:15 +02:00
yuyi
d0ad79cd8b
checker: fix generic array builtin method call ( #12957 )
2021-12-24 14:42:23 +02:00
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