19473 Commits

Author SHA1 Message Date
blackshirt
309aebfaf1
crypto.ecdsa: clean out old deprecated keypair opaque from the module, make -cstrict pass for all the tests, and with both gcc and clang (#23887) 2025-03-09 09:59:10 +02:00
Delyan Angelov
03d033fa4b
examples: make the 2048 game update rate, independent from the frame rate as well 2025-03-09 09:18:52 +02:00
Delyan Angelov
aafbda4bc4
examples: make the tetris update rate, independent from the frame rate too 2025-03-09 09:05:02 +02:00
Delyan Angelov
2860152e82
gg,examples: use a timer to limit the rate of updates in breakout, instead of a separate thread, restore ability to run in a browser through emscripten 2025-03-09 08:45:21 +02:00
Delyan Angelov
77a9e6e1b8
examples: run the update method of breakout on its own frame independent rate 2025-03-09 01:47:03 +02:00
larpon
0210567af2
examples: add subtle light and shadow effects to the breakout game, to give it a little depth (#23885) 2025-03-09 00:44:33 +02:00
Delyan Angelov
ef6b81d214
examples: fix (ball->side edge of brick) collision detection in breakout.v 2025-03-09 00:41:49 +02:00
Felipe Pena
9ae8cc357f
checker: fix option ptr field assign checking (fix #23879) (#23880) 2025-03-08 20:58:03 +02:00
Felipe Pena
6b31c86fea
cgen: fix codegen for global array passed as mut (fix #23873) (#23881) 2025-03-08 20:56:38 +02:00
Felipe Pena
44f8ba6161
type_resolver: fix recheck identification for anonfn on structinit (fix regression of #18294) (#23882) 2025-03-08 18:42:50 +02:00
Delyan Angelov
615e74d341
vlib: reduce false positive matches for /// , cleanup commented code 2025-03-08 17:47:13 +02:00
Delyan Angelov
af6247135c
x.json2: add a convenience Any.as_map_of_strings/0 method 2025-03-08 16:49:50 +02:00
blackshirt
ec0b70e130
crypto.ecdsa: complete the migration to the newer OpenSSL APIs (follow up to #23876) (#23877) 2025-03-08 14:59:01 +02:00
kbkpbot
0ea6667eca
v.live: fix the output name, used for the .dll/.so creation, when -live -cc is used (make it work with -cc msvc) (fix #6936) (#23878) 2025-03-08 14:20:05 +02:00
Delyan Angelov
e475e9d437
examples: shorten the periodic output of examples/hot_reload/message.v 2025-03-08 14:02:35 +02:00
Delyan Angelov
4877417adf
math.big: make ./v -prod -cstrict -cc gcc-11 test vlib/math/ pass cleanly (workaround a problem in V's cgen, that -cstrict discovered) 2025-03-08 13:45:31 +02:00
Delyan Angelov
e66e9960d3
math: fix ./v -prod -cstrict -cc gcc-11 vlib/math/math_bench_test.v (use unions to implement f64_bits/1 and f64_from_bits/1 for compilers != tcc) 2025-03-08 12:28:25 +02:00
Delyan Angelov
4236baf56a
docs: fix old links in the v shader section, to their current equivalents on the master branch 2025-03-07 21:50:07 +02:00
blackshirt
bc3fc1218b
crypto.ecdsa: migrate new_key_from_seed to use high opaque, simplify the logic (#23876) 2025-03-07 17:31:58 +02:00
Delyan Angelov
d59f21776b
examples: use textures in the sokoban game, instead of colors 2025-03-07 16:17:03 +02:00
Delyan Angelov
543a1d2d28
examples: add a small Sokoban puzzle game with levels (see https://en.wikipedia.org/wiki/Sokoban) 2025-03-07 12:39:05 +02:00
Delyan Angelov
b85c9e06ae
examples: add a small minesweeper game in examples/gg/minesweeper.v 2025-03-07 02:03:17 +02:00
Delyan Angelov
32ad697689
os,v.transformer: fix warnings for ./v -os cross -o vc/v.c cmd/v && clang-18 -o v_from_vc vc/v.c -lpthread 2025-03-06 21:05:01 +02:00
Delyan Angelov
408ec6bff4
builtin,os: fix warnings for ./v -os cross -o vc/v.c cmd/v && cc -o v_from_vc vc/v.c -lpthread 2025-03-06 20:56:49 +02:00
Delyan Angelov
0ffc33a5c9
examples, gg, gg.m4: fix VFLAGS='-no-skip-unused -cstrict -cc clang-18' v should-compile-all examples/sokol/ too 2025-03-06 19:58:25 +02:00
Delyan Angelov
3a331e01e0
examples: fix more compilation errors with -cstrict -cc clang-18 for the sokol examples 2025-03-06 19:01:48 +02:00
Delyan Angelov
86740bb0a7
examples, v.builder: fix v -cstrict -cc gcc-11 examples/sokol/particles and the same but with clang-18 too 2025-03-06 18:51:28 +02:00
Delyan Angelov
cac026aec1
v.builder: show the last line of the C compiler output, in case of errors, in addition to the truncated first lines (the last line is useful, since it usually has an error counter) 2025-03-06 17:59:07 +02:00
Delyan Angelov
f8b70b7230
parser: allow for @[has_globals] to be used for all V programs, turn the @[wasm_import_namespace] error into a notice 2025-03-06 13:20:50 +02:00
Delyan Angelov
0eb41e5e5a
GNUmakefile: fix the detection for a working tcc executable, broken in 869677a 2025-03-06 11:36:11 +02:00
Delyan Angelov
97891517e2
ci: add a limit of 20 minutes to the test-on-freebsd-14-2-x86 CI job 2025-03-06 09:01:00 +02:00
Felipe Pena
52cd6276b3
checker: add checking for comptime assign without comptime if checking (fix #23796) (#23848) 2025-03-05 21:28:14 +02:00
Felipe Pena
b60966cd10
cgen: fix interface method list ordering to make test buildable with g++ (fix #23701) (#23870) 2025-03-05 19:16:25 +02:00
Delyan Angelov
e9a4312491
examples: cleanup snek.v, by using math.vec, the builtin array support, instead of datatypes, and by removing casts that are no longer needed 2025-03-05 18:50:55 +02:00
Felipe Pena
1ba80211c2
v: implement assignable anon struct (fix #23855) (#23857) 2025-03-05 14:44:17 +02:00
Noa Santo
95f53a3308
datatypes.fsm: add missing doc comments for public methods (#23865) 2025-03-05 14:38:55 +02:00
Noa Santo
3aed78e76a
crypto: add missing doc comments for public methods (#23864) 2025-03-05 14:36:15 +02:00
Noa Santo
e467747fe4
docs: add the remaining missing doc comment, for the public wasm methods (#23863) 2025-03-05 14:23:35 +02:00
Noa Santo
ae22bcfad9
dlmalloc: add missing public method doc comments (#23866) 2025-03-05 14:22:17 +02:00
Noa Santo
16681fbd6b
docs: add missing documentation for clipboard methods (#23862) 2025-03-05 14:17:32 +02:00
Felipe Pena
7faf1bf1d9
cgen: fix casting primitive type to alias, where option alias is expected (fix #23859) (#23860) 2025-03-05 14:13:52 +02:00
Noa Santo
a74f3171db
time: add documentation for remaining time-related functions and ISO 8601 parsing (#23867) 2025-03-05 14:11:19 +02:00
Delyan Angelov
2dc5f68894
examples: add a small breakout game, supporting keyboard and touch controls (#23861) 2025-03-05 13:58:29 +02:00
larpon
9e36d2c87a
sokol, audio: link against aaudio on Android (#23869) 2025-03-05 11:50:16 +02:00
kbkpbot
698018cd3f
vrepl: fix slow response for empty line input (after just pressing 'enter/return') (fix #23856) (#23858) 2025-03-05 00:01:36 +02:00
Delyan Angelov
cec123a0df
math,examples: add examples/sokol/sounds/simple_sin_tone_using_audio_push.v, cleanup math 2025-03-04 12:19:27 +02:00
Felipe Pena
a59ebea523
checker: add missing check for generic fntype type names (fix #23453) (#23850) 2025-03-03 21:54:02 +02:00
Delyan Angelov
3e4f9d7fa1
examples: cleanup and shorten mini_calculator_recursive_descent.v to 98 lines (#23847) 2025-03-03 19:34:43 +02:00
Felipe Pena
2641a55a63
cgen: fix codegen for match on return (fix #23661) (#23851) 2025-03-03 18:52:45 +02:00
kbkpbot
f4b51d064e
os: fix get_raw_line() on windows (fix #23843) (#23846) weekly.2025.10 2025-03-03 06:55:35 +02:00