18542 Commits

Author SHA1 Message Date
Hitalo Souza
14ca0f533f
x.json2: cleanup comments (#22595) 2024-10-20 14:36:56 +03:00
Hitalo Souza
e85905ddc5
ci: add benchmark_footprint_json_decode.yml and benchmark_footprint_json_encode.yml (#22592) 2024-10-20 13:19:35 +03:00
yuyi
555bad727c
cgen: improve fixed array literal in operation and index calls (#22590) 2024-10-20 10:36:38 +03:00
yuyi
ddbef2d327
cgen: cleanup in fixed_array_init() (#22589) 2024-10-20 10:31:35 +03:00
Felipe Pena
d8edb13ff8
cgen: fix codegen for fixed array contains - [1,2]! in a (fix #22559) (#22579) 2024-10-20 03:57:38 +03:00
Felipe Pena
daeb548e7b
cgen: fix codegen for if with struct init that contains option type (fix #22577) (#22578) 2024-10-20 03:51:02 +03:00
Felipe Pena
67f2e9331d
v: fix aliased type checking, add error for passing aliased int values to fns that accept u8 (fix #18278) (#22572) 2024-10-20 02:20:42 +03:00
Hitalo Souza
9ed378884a
x.json2.decoder2: use a linked list insted of an array, to store the decoded elements (#22581) 2024-10-20 01:12:58 +03:00
Felipe Pena
136bdfe93f
maps: use explicit map value cloning in maps.merge_in_place and maps.merge (fx #22564) (#22576) 2024-10-19 11:49:41 +03:00
Delyan Angelov
380500a76b
cgen: fix hardcoded db__pg__DB_last_id for x := sql db { insert address into Address } (fix #22583) (#22582) 2024-10-19 11:07:06 +03:00
Felipe Pena
d1b0370166
checker: check for external variable access on qsort/sorted callback (fix #12386) (#22557) 2024-10-19 07:19:00 +03:00
Hitalo Souza
5ec9bb54b8
examples: add a thread_safety/ folder with several examples of using different thread synchronisation mechanisms (#22561) 2024-10-18 13:14:11 +03:00
Pepper Gray
891a8bc362
doc: explain deprecation process (#22568) 2024-10-18 13:11:43 +03:00
Pepper Gray
ce8f62146b
utf8, readline: clarify UTF-8 vs UTF-32 usage (see also #22461) (#22558) 2024-10-18 11:18:31 +03:00
Pepper Gray
decea1b188
v.pref: fix vsh_envbang_test.v to always use the local V executable (#22563) 2024-10-18 10:57:26 +03:00
Pepper Gray
35079f115d
encoding.utf8: replace uchar with rune, deprecate get_uchar, is_uchar_punct, is_uchar_global_punct (#22560) 2024-10-18 10:39:26 +03:00
alexey semenyuk
f814386c2a
docs: change link in docs for the builtin framework, from vlib/vweb to vlib/veb (#22566) 2024-10-18 09:27:09 +03:00
Hitalo Souza
6583d3c726
x.json2.decoder2: improve decode array (#22556) 2024-10-18 09:12:09 +03:00
Felipe Pena
8054808861
cgen: fix map_set codegen for sumtype array variant with autofree (fix #12008) (#22553) 2024-10-17 21:52:19 +03:00
Felipe Pena
ae04167c32
v: allow checking of method comptime signature with is operator (fix #8843) (#22549) 2024-10-17 21:48:44 +03:00
Felipe Pena
5e253e7923
time: fix C.clock_gettime return type (fix #8843) (#22551) 2024-10-17 20:57:59 +03:00
yuyi
c8423dd300
regex, vfmt: optimize receiver with reference (#22552) 2024-10-17 20:56:23 +03:00
Hitalo Souza
7c1cde0396
x.json2.decoder2: decode bool and numbers (#22550) 2024-10-17 20:53:04 +03:00
Delyan Angelov
7da79fd221
os: improve robustness of create_folder_when_it_does_not_exist/1 (fix CI false positives for vab-compiles-v-examples) (#22548) 2024-10-17 15:51:04 +03:00
Hitalo Souza
8556353b43
x.json2.decoder2: improve decoder, add checker (part 1) (#22545) 2024-10-17 13:37:46 +03:00
Felipe Pena
e4ffc7f224
v: add support for T.unaliased_typ (#22546) 2024-10-17 11:50:10 +03:00
yuyi
e97036a25b
v: remove the automatic passing of structs with more than 8 fields by reference (related #17159) (#22547) 2024-10-17 11:04:23 +03:00
Delyan Angelov
5f413f48f8
parser: generate all flagged enum functions, no matter what the backend is; tag them with @[flag_enum_fn], and let the backends filter them out, if they do not support them (#22543) 2024-10-16 23:09:22 +03:00
Delyan Angelov
3326392ce2
docs: fix html rendering of the list of columns, in the description of the #profiling section 2024-10-16 15:18:56 +03:00
Delyan Angelov
a64dfc776b
builtin: remove unsafe{} blocks from data_to_hex_string/2 2024-10-16 14:19:18 +03:00
Delyan Angelov
c5e8ad19df
builtin: implement a s.hex() method, allowing shortening s.bytes().hex() chains, and reducing the intermediate allocations; add tests for it (#22540) 2024-10-16 14:18:10 +03:00
yuyi
a2e478be81
checker: improve if expr with compound conditions (#22541) 2024-10-16 12:48:05 +03:00
yuyi
ffa79219f6
checker: fix if expr with compound conditions (#22539) 2024-10-16 11:00:23 +03:00
Alexandre Jousset
a5adbe8f1f
docs: add progressive "Task Lists" sections to CONTRIBUTING.md (#22537) weekly.2024.42 2024-10-16 08:45:00 +03:00
Delyan Angelov
df9cf27c7f
docs: add an Other online resources section (#22538) 2024-10-16 08:44:11 +03:00
Felipe Pena
3e697fe95d
cgen: fix comptime for method with $method as inherited var (fix #12657) (#22536) 2024-10-16 07:02:02 +03:00
Felipe Pena
131078128b
v: allow for C.va_arg(Type, va) (fix #20636) (#22530) 2024-10-16 06:59:33 +03:00
Jose Mendoza
fde951652c
checker: clarify error message about using empty map literal to initialize structs (fix #22498) (#22534) 2024-10-15 23:06:45 +03:00
Delyan Angelov
e4d80596a0
docs: add link to https://docs.vlang.io/introduction.html in doc/docs.md 2024-10-15 22:57:53 +03:00
Jose Mendoza
7b212b2e73
checker: disallow C/JS functions and structs to be declared as generic (#22533) 2024-10-15 22:07:06 +03:00
Delyan Angelov
947da2b811
ci: add .github/workflows/compare_pr_to_master.v 2024-10-15 20:51:19 +03:00
Felipe Pena
b7c6054319
v: allow for function scoped declaration of structs, with the same name in different fns (fix #22482) (#22520) 2024-10-15 19:20:23 +03:00
yuyi
e6d4fac5dc
cgen: fix sumtype aggregate with struct embeded (fix #22481) (#22532) 2024-10-15 18:29:02 +03:00
larpon
78bdeca9b1
thirdparty: update stb_image_resize2.h from 2.06 to 2.11 (#22529) 2024-10-15 15:05:57 +03:00
Delyan Angelov
04bd58596f
stbi: fix stbi.Image's nr_channels property, after a forced conversion on load (#22528) 2024-10-15 13:27:34 +03:00
yuyi
1fb9fec7fa
examples: change var name '@type' to 'type' in net_resolve.v (#22526) 2024-10-15 13:00:09 +03:00
Delyan Angelov
49513afd51
rand: tag with @[direct_array_access] some frequently used functions, that are already debugged (#22523) 2024-10-15 10:38:35 +03:00
Swastik Baranwal
4c55de5e65
checker: check for unwrapped results in map keys and vals (fix #22521) (#22525) 2024-10-15 08:29:09 +03:00
yuyi
7220f75b07
parser: allow for variable name using keyword 'type' (#22512) 2024-10-14 22:37:12 +03:00
Delyan Angelov
5c65e58fe2
cgen: fix err message for if _ := m[key] { 2024-10-14 15:06:16 +03:00