Commit graph

1639 commits

Author SHA1 Message Date
Alexander Medvednikov
e7cad4f55d net,vweb: reduce allocations by ~80% 2023-11-11 01:10:34 +03:00
Artem Yurchenko
97f7c3f609
builtin: move min/max integer values consts from math to builtin (#19809) 2023-11-08 20:43:48 +02:00
JalonSolov
f1ba664e92
builtin: move builtin_test.v to builtin_test.c.v (part of making -W impure-V the default) (#19757) 2023-11-04 10:14:50 +02:00
Delyan Angelov
f5f0995c4f
ci: mark more js tests as flaky 2023-11-04 10:01:04 +02:00
Turiiya
e34e06350a
pref: fix unintended file extensions in default output names, allow for v run file.c.v (#19745) 2023-11-03 19:51:44 +02:00
Delyan Angelov
cbb67b2009
ci: mark more ever more tests as flaky 2023-11-03 12:26:25 +02:00
Delyan Angelov
f2d2ed1f4a
testing: fix notices with v test-all on Linux for v -freestanding str_array_example.v 2023-11-01 19:35:02 +02:00
Turiiya
1e578b1144
checker: extend byte deprecation warnings to return types (#19668) 2023-10-29 14:25:15 +02:00
l-m
c32b04d5be
wasm: implement inline assembly (#19686) 2023-10-29 03:08:39 +03:00
Turiiya
90ac5dc354
builtin: fix doc comments of string split methods (#19643) 2023-10-25 17:13:54 +03:00
Larpon
95509cf8fb
all: make all struct C.XYZ -> pub struct C.XYZ (#19651) 2023-10-25 15:01:50 +03:00
Turiiya
f98bb863ab
vlib: fix typos and formatting (#19649) 2023-10-25 11:19:56 +03:00
Turiiya
9051ac8921
all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
Turiiya
6437d82ee1
checker: warn about byte deprecation, when used as a fn parameter (#19629) 2023-10-23 20:54:28 +03:00
Delyan Angelov
561fd9471f
builtin: fix typos in builtin_writeln_should_write_at_once and builtin_writeln_should_write_at_once user defines 2023-10-20 20:27:31 +03:00
Delyan Angelov
dc6e31787e
builtin: fix sizeof(C.BOOL) (windows specific) (#19589) 2023-10-17 18:18:48 +03:00
Alexander Medvednikov
4bc9a8f8d8 checker: fix C.xx = C.yy aliases 2023-10-15 16:18:00 +03:00
Alexander Medvednikov
c947c140ee builtin: windows definitions 2023-10-15 07:43:57 +03:00
Alexander Medvednikov
536bf213be builtin: define C.BOOL on Windows 2023-10-14 23:42:17 +03:00
Alexander Medvednikov
6f79eecce0 checker: bring back pascal case check for aliases 2023-10-14 22:55:19 +03:00
Alexander Medvednikov
545ee1ae23 checker: stricter rules for C types; C aliases; sokol fixes 2023-10-14 18:31:44 +03:00
Joe Conigliaro
9604a3f491
coroutines: get photonlib/coroutines working with GC 2023-10-09 12:10:19 +11:00
Alexander Medvednikov
1f06476343 cgen: fix maps with i32 keys 2023-10-09 00:18:46 +03:00
Alexander Medvednikov
b9a1b0c269 native: use i32 instead of int 2023-10-08 02:50:01 +03:00
Alexander Medvednikov
e265e99a64 all: int => i64 (part 5) 2023-10-08 01:32:37 +03:00
Alexander Medvednikov
8c5ac3a529 all: i64 fixes 2023-10-08 01:04:19 +03:00
Alexander Medvednikov
9e6a9f0330 all: int => i64 (part 3) 2023-10-07 20:55:49 +03:00
Alexander Medvednikov
eb30f2642b all: int => i64 (part 2) 2023-10-07 19:46:46 +03:00
Spydr
8023e25bea
all: finish bootstrapping of @VCURRENTHASH (#19517) 2023-10-07 14:08:58 +03:00
Alexander Medvednikov
fe41bda6f9 pref: temporary 64 bit int option 2023-10-07 13:47:55 +03:00
Alexander Medvednikov
7008059c89 builtin: use isize in memdup 2023-10-07 03:39:28 +03:00
Alexander Medvednikov
e957e5c089 cgen: do not generate unnecessary memdup() definition 2023-10-07 03:31:24 +03:00
Spydr
32bb8cf86d
all: implement @VCURRENTHASH to replace C.V_CURRENT_COMMIT_HASH (#19514) 2023-10-05 18:14:36 +03:00
Sudoer
5c37c312b0
builtin,math: add more missing doc strings for public functions (#19509) 2023-10-05 00:35:37 +03:00
Spydr
8cfe9e81fc
native, builtin: implement little improvements from #19498 and remove vcommithash() in favor of @VHASH (#19508) 2023-10-05 00:30:55 +03:00
Spydr
6d1558b006
native, builtin, ast: handle ast.HashStmt correctly and reduce macro usage in builtin (#19498) 2023-10-04 16:42:15 +03:00
Delyan Angelov
c79f84d406
builtin: add input_character/0 and print_character/1 (#19502) 2023-10-04 04:40:03 +03:00
Delyan Angelov
fae46a8d85
builtin: extract vlib/builtin/result.v from vlib/builtin/option.v 2023-10-03 08:36:13 +03:00
Delyan Angelov
a79c574cb9
ci: fix v -cstrict vlib/builtin/array_test.v 2023-10-01 09:18:07 +03:00
Delyan Angelov
ec9ac7715a
builtin: add an unsafe { a.reset() } method, for quickly setting all bytes in an array to 0 2023-10-01 07:22:42 +03:00
Delyan Angelov
c030c5efa8
builtin: extract backtraces.c.v, backtraces_nix.c.v, backtraces_windows.c.v (#19480) 2023-09-30 19:24:31 +03:00
yuyi
ec30256c7f
builtin: cleanup obsolete function in string.v and array.v (#19451) 2023-09-27 19:49:33 +03:00
yuyi
981f76cd04
builtin, cgen: fix printing slice of fn call string (#19450) 2023-09-27 14:53:56 +03:00
Delyan Angelov
e115d4461c
checker: allow for each(a, |x| println(x)), i.e. using lambda expressions, when expecting fn (x int) 2023-09-27 11:49:12 +03:00
Ikko Eltociear Ashimine
7e08a50ea5
builtin: fix typo in string.v (#19431) 2023-09-24 15:11:47 +03:00
Delyan Angelov
a685088fbd
checker: support lambda expressions in array methods like a.map(|x|x*10) too (#19424) 2023-09-23 22:08:48 +03:00
Delyan Angelov
f93d257d29
all: support short lambda expressions like a.sorted(|x,y| x > y), in all callsites that accept a fn callback (#19390) 2023-09-20 17:22:16 +03:00
Delyan Angelov
7ffa8c13bf
vlib: remove functions and fields, deprecated before 2023-03-20
* remove []int.reduce in favour of arrays.fold
  * remove datatypes.Set.equal in favour of datatypes.Set.==
  * remove datatypes.Set.difference in favour of datatypes.Set.-
  * remove gg.Context.set_cfg in favour of gg.Context.set_text_cfg
  * remove gg.Context.timage_pip in favour of gg.Context.pipeline.alpha
  * remove os.is_writable_folder in favour of os.ensure_folder_is_writable

  Discovered with `v run cmd/tools/show_ancient_deprecations.v 180`
2023-09-16 17:16:54 +03:00
shuankio
a0490f2b67
net.http: fix post error with https on windows (#19334) 2023-09-12 15:43:13 +03:00
yuyi
55ca8d8d8e
fmt: align the custom values of the enum fields (#19331) 2023-09-12 14:44:38 +03:00