17988 Commits

Author SHA1 Message Date
Felipe Pena
36c7910f53
cgen: fix option string struct member init with autofree (#21859) 2024-07-13 12:29:47 +03:00
Delyan Angelov
c2f7afdbf5
builtin: add pub fn arguments() []string {; make os.args use it, remove edge case in cgen (#21852) 2024-07-13 00:09:44 +03:00
yuyi
48ab08c206
vrepl: fix infix shift operation (#21855) 2024-07-13 00:08:52 +03:00
penguindark
790895782d
examples.sokol: add sampler to the 02_cube code (fix #21547) (#21853) 2024-07-12 17:27:48 +03:00
Delyan Angelov
fbdc992b30
net.http, veb, vweb, x.vweb: add mime type text/x-vlang, for .v and .vsh file extensions (#21851) 2024-07-12 14:23:50 +03:00
Delyan Angelov
f91f4d94ea
v: add a TOTAL line, to the output of -show-timings, to minimise the need for external tools on windows (#21847) 2024-07-12 01:42:41 +03:00
Mike Ward
d7550c5c02
examples: over print in digital_rain.v, to simulate the custom font used in the movie effect (#21846) 2024-07-12 01:41:15 +03:00
Delyan Angelov
2cde320eee
examples: add keyboard shortcuts label to digital_rain.v 2024-07-11 15:58:59 +03:00
Swastik Baranwal
0aa656bc56
parser: fix parameter collision for generated @[flag] enum methods, with modules named flag (#21844) 2024-07-11 15:44:08 +03:00
Mike Ward
304aa9f687
examples: add a gg example - digital_rain.v (#21841) 2024-07-11 08:53:27 +03:00
yuyi
65966aef65
vrepl: fix one-line if exprssion (#21838) 2024-07-10 15:27:11 +03:00
Turiiya
2a368cf53c
builtin, strings: improve consistency and behavior regarding explicit mutability (#21566) 2024-07-10 15:26:51 +03:00
Felipe Pena
04ff511e27
cgen, checker: fix wrong receiver generic resolution with embed types (#21833) weekly.2024.28 2024-07-10 12:42:08 +03:00
Swastik Baranwal
547c056bf4
net: fix TcpConn.peer_ip/0 to only return the ip address, without the port number (#21831) 2024-07-10 06:12:37 +03:00
Mike Ward
ca07347430
examples: update vmatrix.v to handle terminal resizing, minor visual tweaks (#21836) 2024-07-09 22:10:40 +03:00
Felipe Pena
494be20564
cgen: fix auto str for fn struct member (#21825) 2024-07-09 21:08:31 +03:00
yuyi
70e78cc766
vrepl: cleanup in vrepl.v (#21834) 2024-07-09 21:04:59 +03:00
yuyi
1229ccf98a
ast, cgen: fix closure variable with optional reference params (fix #21827) (#21829) 2024-07-09 21:00:28 +03:00
Delyan Angelov
43baa88f60
ci: disable c2v_ci.yml temporarily, until it is fixed 2024-07-09 19:34:35 +03:00
Felipe Pena
66ea82605e
v: improve C var args interop, allow for fn f(some int, ...) { (#21812) 2024-07-08 13:03:08 +03:00
yuyi
bf23b2ef46
vrepl: fix arbitrary script execute (#21818) 2024-07-08 12:56:57 +03:00
yuyi
14d378c330
checker: check expr evaluated but not used (fix #21436) (#21816) 2024-07-08 09:52:01 +03:00
Swastik Baranwal
f6de36db51
parser: sugggest map initialization with the correct syntax (#21817) 2024-07-07 16:02:38 +03:00
Mike Ward
df18047347
examples: add vmatrix.v showing a Matrix like terminal screen effect (#21814) 2024-07-07 07:50:18 +03:00
Kim Shrier
587fb72581
v.pref: make pref_test.v be less sensitive on the specific C compiler used as a backend (#21813) 2024-07-07 07:46:39 +03:00
yuyi
1571645b00
vrepl: fix os.input() (#21811) 2024-07-06 21:36:04 +03:00
Kim Shrier
4475759c35
tests: fix handling of string type in closure_generator_test.v (#21809) 2024-07-06 02:41:44 +03:00
Kim Shrier
ff102c95b7
doc: update full list of builtin compile options (#21808) 2024-07-06 02:33:24 +03:00
Delyan Angelov
56d2ba6281
examples: add a glow effect to spirograph.v 2024-07-05 14:07:16 +03:00
Delyan Angelov
3ee95d1040
sokol: reduce _SGL_DEFAULT_MAX_VERTICES back to 1<<17 (1<<22 in 811ac12, leads to ~140MB of memory usage for gg/minimal.v, instead of just ~38MB) 2024-07-05 13:07:30 +03:00
yuyi
cb42f32852
v.token: make is_assign() contain .decl_assign (#21805) 2024-07-05 12:52:54 +03:00
yuyi
35e6a40c0e
vrepl: fix variable name starts with print (#21806) 2024-07-05 12:47:24 +03:00
Swastik Baranwal
dd93b56b68
parser: suggest using type alias when defining methods on non-local types (#21803) 2024-07-05 12:45:54 +03:00
Kim Shrier
174257650f
examples: update macos_tray example to cleanly compile (#21804) 2024-07-05 12:14:34 +03:00
Delyan Angelov
07c1c51036
examples: add slow rotation to spirograph.v, use a brighter color for the instructions 2024-07-05 11:52:41 +03:00
Delyan Angelov
811ac125fa
examples: add an animated spirograph.v using gg 2024-07-05 11:29:47 +03:00
yuyi
a67bfebe95
vrepl: fix output of the fn call (related #21792) (#21800) 2024-07-04 20:50:31 +03:00
Delyan Angelov
96eada1835
v.builder: print the suggestion for using v xyz instead of v xyz.v just once (#21801) 2024-07-04 13:50:53 +03:00
kbkpbot
3eac8b42f8
cgen: fix const name without main prefix in -translated mode (#21789) 2024-07-04 13:23:27 +03:00
yuyi
0c2d72f099
ast, parser: cleanup in stringify_fn_after_name() (#21799) 2024-07-04 07:54:22 +03:00
shadow
dceea80d85
examples: add interpolated movement and input queue to snek/snek.v (#21798) 2024-07-03 22:17:46 +03:00
Felipe Pena
9b6578e883
cgen: fix comptime call argument auto conversion for indexexpr (fix #15232) (#21796) 2024-07-03 19:26:03 +03:00
yuyi
30b3ab6f41
ci: restore v_apps_and_modules_compile_ci.yml (#21791) 2024-07-03 19:13:51 +03:00
Delyan Angelov
879cf1ed21
arrays: add arrays.chunk_while/2, where arrays.chunk_while([0,9,2,2,3,2],fn(x int,y int)bool{return x<=y})==[[0,9],[2,2,3],[2]] 2024-07-03 19:05:34 +03:00
yuyi
8188f65590
vrepl: fix method call (fix #21788) (#21792) 2024-07-03 17:58:17 +03:00
Delyan Angelov
62e2b7fbdb
fmt: keep manual newlines after fn parameters in fn declarations, do not auto wrap (#21795) 2024-07-03 17:33:48 +03:00
yuyi
209063ffd0
fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
Swastik Baranwal
36e31d6908
checker: disallow nil in non-nil arrays and vice versa (#21786) 2024-07-02 23:05:20 +03:00
Felipe Pena
81b095bcb2
cgen: allow alias to array fixed to be initialized like [n]int{} (#21785) 2024-07-02 16:51:58 +03:00
shadow
c9c41af172
examples: add gg/fire.v (#21784) 2024-07-02 11:04:00 +03:00