playX
d3887c1568
time: fix sys_mono_now for the JS backend ( #12187 )
2021-10-15 09:22:15 +03:00
czkz
c29a5cdedb
term: fix readme typo ( #12180 )
2021-10-15 06:08:31 +03:00
ChAoS_UnItY
4d1307f29b
all: index accessor in array init expression ( #12181 )
2021-10-15 03:57:49 +03:00
Carlos Esquerdo Bernat
6d62574e7f
tutorials: fix argument type ( #12182 )
2021-10-15 02:24:22 +03:00
yuyi
c9b2f878b3
parser, checker: optimize checking generic struct type mismatch ( #12179 )
2021-10-15 00:11:31 +03:00
Ulises Jeremias Cornejo Fandos
4490d5ed29
context: cleanup the tests and the documentation ( #12175 )
2021-10-14 13:32:42 +03:00
Delyan Angelov
4c2cb1b6df
vdoc: prevent leaking to the docs the `pure_v_but_overriden_by_` prefix
2021-10-14 11:47:50 +03:00
yuyi
05885059bd
cgen: remove the extra generated parentheses of single in_expr ( fix #12158 ) ( #12168 )
2021-10-14 11:38:16 +03:00
ChAoS_UnItY
6f629d1a6a
transformer: eliminate unreachable branches & redundant branch expressions in MatchExpr ( #12174 )
2021-10-14 02:15:52 +03:00
nyx-litenite
5b9553d5c4
orm: fix last_id() call in mysql ( #12173 )
2021-10-13 21:24:07 +03:00
Larpon
5bfa3d5530
sokol: add screenshot function to OpenGL based backends ( #12169 )
2021-10-13 21:22:58 +03:00
yuyi
97e999768a
checker: fix generic fn return array of generic struct ( #12170 )
2021-10-13 21:21:32 +03:00
playX
d373eba79b
js: implement more functions for JS backend ( #12167 )
2021-10-13 09:40:14 +03:00
pancake
ade5774313
native: fix return `a+b` infix construction ( #12161 )
2021-10-12 19:38:17 +03:00
Delyan Angelov
6c728cf389
js: add draft support for -skip-unused (hello_world.v works)
2021-10-12 19:34:37 +03:00
pancake
1d2b56d71d
native: fix example exit((1,2)->(a,b)return a+b) ( #12154 )
2021-10-12 18:51:28 +03:00
pancake
347ebe5fd3
native: append .exe, when using the native backend on windows ( #12159 )
2021-10-12 18:49:42 +03:00
pancake
a0a0ae85eb
native: add support for pe64 when -os windows is used ( #12149 )
2021-10-12 10:43:40 +03:00
playX
22962dd2d2
js: change codegen for match statement, speedup string.split_into_lines ( #12157 )
2021-10-12 09:52:16 +03:00
Alexander Medvednikov
cfc56b24fb
vweb: fix [post] route matching
2021-10-12 08:18:04 +03:00
Alexander Medvednikov
555e8cada6
tutorials: update the vweb tutorial with the new form parsing syntax
2021-10-12 07:17:49 +03:00
Alexander Medvednikov
da58ba0d5c
vweb: populate action method params with form values
2021-10-12 07:10:12 +03:00
Anton Zavodchikov
4d7bb95c2f
vweb: add a `vweb_global` attribute ( #12064 )
2021-10-12 06:35:36 +03:00
pancake
5eba02ea94
native: fix stackframe bug on return statements ( #12153 )
2021-10-12 06:03:44 +03:00
penguindark
0fafefc078
regex: bug fix on find groups indexes ( #12152 )
2021-10-12 06:03:23 +03:00
Delyan Angelov
3c8be0db72
tests: reduce maxn in builder_test.js.v to just 1000 for now (runs in under 200ms, vs ~240s before that)
2021-10-11 19:57:35 +03:00
Delyan Angelov
9fabf9f20c
checker: check for `x := Abc { f: fn () ? {} }` mismatch, when `f` is `fn ()`
2021-10-11 19:20:41 +03:00
Delyan Angelov
6c6bb08547
tools/vast: update vast to latest V
2021-10-11 15:52:06 +03:00
Alexander Ivanov
0386f2bbea
checker: add an interface check for mutability, fixes #1081 , fixes #7038 ( #11963 )
2021-10-11 15:41:31 +03:00
ChAoS_UnItY
d0c961ebc0
transformer: eliminate unreachable branches in IfExpr and fold more expressions and statements ( #12135 )
...
* v: fix using constant as length in fixed array
* format test file
* v/trasnformer: discard unreachable if branches
* transform more expressions and statements
* replace IfExpr with EmptyExpr when all branches were eliminated
* fix typo
* fix gens
* only allows branch elimination on if expression statement
* fix native gen
* fix handling of multi branch ifs in the native backend, also allow for `if true {}`
Co-authored-by: KyleLin921021 <43753315+KyleLin921021@users.noreply.github.com>
Co-authored-by: Delyan Angelov <delian66@gmail.com>
2021-10-11 14:29:17 +03:00
Ulises Jeremias Cornejo Fandos
35b301f73c
math: add some benchmark tests ( #12142 )
2021-10-11 14:20:07 +03:00
05st
3e02cfd528
cgen: fix `in` op usage on array of sumtypes without cast ( #12141 )
2021-10-11 14:17:04 +03:00
Delyan Angelov
ceb24bc32e
tests: show the number of parallel jobs used while testing
2021-10-11 13:10:55 +03:00
yuyi
1831eccd5e
checker: check generic struct using in non-generic fn ( #12136 )
2021-10-11 02:46:44 +03:00
05st
e69df54a36
cgen: fix multi-return in if/match exprs ( #12139 )
2021-10-11 02:45:01 +03:00
Ulises Jeremias Cornejo Fandos
0f7dfb984a
math: remove the C backend for f64 functions ( #12121 )
2021-10-10 11:21:48 +03:00
yuyi
83bc9b35b1
ast: fix checking generic fn call with fntype arg mismatch ( #12132 )
2021-10-10 11:14:19 +03:00
Yeuda By
8d5931c96c
orm: fix a typo ( #12131 )
2021-10-10 03:47:35 +03:00
ChAoS_UnItY
3647fc6633
parser: perform constant folding before checking size of fixed array ( #12126 )
2021-10-10 01:55:25 +03:00
yuyi
093cab6f56
checker: check generics struct init that types mismatch ( fix #12115 ) ( #12120 )
2021-10-09 15:03:37 +03:00
pancake
7a6491b9b0
native: initial implementation of C.syscall ( #12098 )
2021-10-09 15:01:30 +03:00
Delyan Angelov
d14b5d0c11
ci: reduce flakyness of vlib/v/pref/options_test.v on ubuntu
2021-10-09 12:58:21 +03:00
Delyan Angelov
32ea53960e
v doc: show a proper error message instead of panic on `v doc -m file.v`
2021-10-09 11:56:37 +03:00
playX
e267106220
math: implement logarithm function in pure V ( #12111 )
2021-10-09 11:17:09 +03:00
Delyan Angelov
23e679475c
time: sanity check parsed date/times
2021-10-09 11:05:49 +03:00
yuyi
3c7c11e55b
cgen: fix sumtype with none type ( fix #12101 ) ( #12102 )
2021-10-09 03:32:37 +03:00
05st
43931be451
math: sqrti, powi, factoriali ( #12072 )
2021-10-08 22:07:44 +03:00
05st
cd5b304cbf
cgen: add interface case for gen_struct_equality_fn ( #12094 )
2021-10-08 19:04:24 +03:00
playX
a8ace2c41c
math: implement `pow` in pure V ( #12105 )
2021-10-08 17:44:55 +03:00
Delyan Angelov
60add6cc28
ci: fix failing tests
2021-10-07 19:22:08 +03:00