pancake
862cae5b02
term: handle keyboard keys in the term_drawing example ( #6810 )
2020-11-13 11:49:09 +02:00
spaceface777
24f743ee12
term: add `term.ui` module (part 2) ( #6798 )
2020-11-12 12:12:51 +01:00
Delyan Angelov
cd399b7e6e
examples: cleanup up the life automaton implementation
2020-11-04 10:00:59 +02:00
Delyan Angelov
9772eb7c96
examples: fix warnings when doing `./v -W -progress -check-syntax build-examples`
2020-10-26 13:14:26 +02:00
Quentin Champ
4bc38a2f6c
examples: apply todo suggestion in word counter ( #6640 )
2020-10-18 22:46:13 +02:00
Delyan Angelov
2f149e6984
vfmt: fix merged param warnings in sokol's particles example and vlib/x/net/udp.v
2020-10-18 13:45:13 +03:00
Delyan Angelov
8b2e704741
examples: make `v -prod build-examples` pass without warnings/errors
2020-10-18 09:48:13 +03:00
Delyan Angelov
67ecc04580
examples: build examples/hello_v_js.v without warnings/errors
2020-10-18 09:33:55 +03:00
Delyan Angelov
b7233a23d7
examples: build examples/path_tracing.v with -prod, with no warnings/errors
2020-10-18 09:00:30 +03:00
Delyan Angelov
3795aaab5c
v test-fmt: reformat some skipped files, comment on the remaining ones
2020-10-15 00:39:09 +03:00
Delyan Angelov
46c5a2c8fc
v test-fmt: fix some embedded comments in expressions
2020-10-14 22:52:33 +03:00
Larpon
05ec32c331
examples: fix sokol/particles to start up faster ( #6610 )
2020-10-13 13:16:51 +03:00
Delyan Angelov
77c29c6b6f
examples: add simple visual rendering of the samples in melody.v
2020-10-10 23:45:40 +03:00
Delyan Angelov
86816b1aad
examples: add bytebeat melody using sokol.audio
2020-10-10 19:37:03 +03:00
Nicolas Sauzede
8d2f22affe
tetris: display lines ( #6533 )
2020-10-02 16:42:05 +03:00
Nicolas Sauzede
a0aedfbe5c
tetris: display next tetro ( #6532 )
2020-10-02 16:37:00 +03:00
Nicolas Sauzede
1ddf46f3c6
tetris: add ghost piece ( #6531 )
2020-10-02 09:30:15 +02:00
Lukas Neubert
94cf8ef1d8
examples: update v_script.vsh ( #6515 )
2020-10-02 05:18:08 +02:00
Larpon
0e2f267805
examples: add support for transparency / opacity / alpha in particle example ( #6488 )
2020-09-28 06:14:15 +02:00
Daniel Däschle
06cade6c31
all: change .ReturnType and .Type to .return_type and .typ ( #6494 )
2020-09-28 06:13:38 +02:00
Delyan Angelov
71e1ca72ec
examples/2048: run `v -w fmt 2048.v`
2020-09-27 22:47:26 +03:00
spaceface777
faca9e2f06
examples/2048: new end screens with alpha, better touch support ( #6482 )
2020-09-26 09:54:04 +03:00
Alexander Medvednikov
0cdeaaff6b
examples: make 2048 compile
2020-09-23 20:50:03 +02:00
Delyan Angelov
99e607d3ac
examples/2048: limit the simulation depth in auto mode to 8
2020-09-23 09:26:22 +03:00
Delyan Angelov
46be0710ac
examples/2048: add a simple Monte Carlo player on `a`
2020-09-22 17:32:35 +03:00
Alexander Medvednikov
8c8fe02000
gg: mouse_move, mouse_down
2020-09-21 02:42:53 +02:00
Alexander Medvednikov
6bf1865678
examples: add a link to the 2048 WA demo
2020-09-20 19:31:16 +02:00
Delyan Angelov
d4fbf422b3
gg: support transparency for rect/triangle/etc primitives too
2020-09-20 12:05:30 +03:00
Delyan Angelov
b4535acbac
examples: move the particle module in modules/particle
...
The goal is enabling running `v build-examples` from outside vroot.
The modules/ folders are already skipped when building examples.
2020-09-18 19:06:04 +03:00
Ruofan XU
11f10fdce2
examples: minor optimization of calculator ( #6367 )
2020-09-17 02:14:26 +03:00
Lukas Neubert
2464deec82
cli: improvements to help and error messages ( #6375 )
2020-09-16 22:01:44 +02:00
Ruofan XU
e8909cced0
examples: add regex_with_memoization.v ( #6355 )
2020-09-12 09:51:30 +03:00
Major Taylor
99a46c8657
2048: fixed movement bug and show score at end ( #6353 )
2020-09-12 09:25:44 +03:00
spaceface777
4aaeaa4331
examples/2048: some updates and improvements ( #6343 )
2020-09-11 13:19:38 +03:00
bpryer
3f7970db52
term: add get_cursor_position and set_terminal_title ( #6279 )
...
* added functions
added:
- get_cursor_position()
- set_terminal_title(title string)
* implement term.get_cursor_position and term.set_terminal_title on unix
* Cleanup
* make x,y fields of term.Coord mutable
* fix vrepl compilation
* use more descriptive var names in term_test.v
* do not change the current terminal title in dumb terminals; do not test term.set_terminal_title outside of CI
* unix: in term.set_terminal_title, return true even for dumb terminals
Co-authored-by: Brent Pryer <brent@pryermachine.com>
Co-authored-by: Delyan Angelov <delian66@gmail.com>
2020-09-08 22:00:10 +03:00
Enzo
18034bb95c
gen: fix multiple call of expression in match ( #6324 )
2020-09-08 00:38:24 +02:00
spaceface777
35cbca96e1
checker: implement `[required]` struct field attribute ( #6276 )
2020-08-31 23:15:40 +02:00
Delyan Angelov
ea31c2a643
examples: fix graph for hdpi screens
2020-08-30 19:58:15 +03:00
pancake
a1dcc3bb9f
examples: make the graph example resizable, use cooler lines ( #6267 )
2020-08-30 19:11:59 +03:00
Delyan Angelov
2b545f6b90
examples: fix compilation of the graph.v example
2020-08-29 10:14:25 +03:00
Allie
1d39116a6e
examples: fix a typo in the cli example ( #6237 )
2020-08-27 23:15:49 +03:00
spaceface777
eff319f869
comp_for: allow checking full mehod and arg types ( #5997 )
2020-08-27 15:00:44 +02:00
Delyan Angelov
f5c245ceb8
ci: fix `v build-examples` too
2020-08-27 14:35:26 +03:00
Alexander Medvednikov
6921d46185
all: rune type for `` literals
2020-08-27 06:46:37 +02:00
Delyan Angelov
912bc8bca1
2048: fix crash, when compiled with gcc > 6 and -prod
2020-08-24 11:12:52 +03:00
Delyan Angelov
dad2c6608e
examples: implement examples/sokol/sounds/wav_player.v
2020-08-23 20:49:37 +03:00
Charadon
bb60b4227e
examples: vfmt calculator.v
2020-08-23 16:18:37 +02:00
Delyan Angelov
1c9e02094c
sokol.audio: add simple_sin_tones.v example
2020-08-23 15:28:07 +03:00
Alexander Medvednikov
542b149290
sokol: fix examples and remove copy pasta
2020-08-23 07:47:50 +02:00
Swastik Baranwal
b2e79dbebd
parser: add an error for `import mod.sub as mod` and `import mod as mod` ( #6194 )
2020-08-23 02:12:25 +02:00
Daniel Däschle
fcc61a981d
all: TypeSymbol.source_name ( #6187 )
2020-08-22 12:29:15 +02:00
Tomas Hellström
fb148e0b61
x.websockets: new websockets module on top of x.net ( #6189 )
2020-08-22 00:50:38 +02:00
Lukas Neubert
93e6c3df6a
cli: various improvements ( #6180 )
2020-08-20 23:14:53 +02:00
Emily Hudson
b88569c845
x.net: new net module ( #6130 )
2020-08-20 23:01:37 +02:00
Lukas Neubert
eabc2daf86
v.mod: remove commas; add example for v.vmod ( #6169 )
2020-08-19 16:07:10 +02:00
Lukas Neubert
e6e1011e47
examples: cli: more readable and informative program output ( #6168 )
2020-08-19 14:38:45 +02:00
Larpon
d9aae023b1
android: initial support for C output using sokol_main ( #6164 )
2020-08-19 11:00:15 +02:00
spaceface777
c1651bd271
gg: fixes and Android support ( #6161 )
2020-08-19 07:10:42 +02:00
Delyan Angelov
ed156838e6
examples: add 2048 game
2020-08-18 09:29:43 +03:00
Delyan Angelov
b22711ef33
examples/gg/rectangles.v: add missing logo.png picture
2020-08-05 19:56:01 +03:00
Alexander Medvednikov
ecaccafd31
gg: image cache
2020-08-05 16:00:24 +02:00
Wertzui123
c261408f54
examples: remove unused import ( #6063 )
2020-08-05 05:11:58 +02:00
Alexander Medvednikov
f3ebd3a6e7
gg: fix image rendering
2020-08-05 03:15:40 +02:00
Alexander Medvednikov
60c642f42d
gg: clean up draw_image()
2020-08-04 01:26:56 +02:00
Alexander Medvednikov
79b70006e6
examples: simplify gg/rectangles.v
2020-08-02 17:01:10 +02:00
Alexander Medvednikov
fb4550e582
gg: new create_image() (part 1)
2020-08-01 23:40:28 +02:00
Delyan Angelov
9c9533dad9
checker: add error for `fn f() Struct { return &Struct{} }` ( #6019 )
2020-07-29 21:40:43 +02:00
Steve Phillips
b5de19dc03
examples/concurrency: cleanup ( #6018 )
2020-07-29 20:11:08 +03:00
Louis Schmieder
b58b15993c
gen: compile time for (methods and fields) ( #5957 )
2020-07-25 00:02:44 +02:00
Delyan Angelov
bfca55b87a
examples: fix `v build-examples`
2020-07-24 13:29:47 +03:00
Delyan Angelov
5acc437367
examples: fix compilation
2020-07-24 12:34:19 +03:00
Iman
d820a97c83
examples: update vcasino.v ( #5880 )
2020-07-22 20:45:55 +03:00
Delyan Angelov
ebbc7bd471
examples: fix crash when running examples/ws/client.v outside of valgrind
2020-07-22 18:42:57 +03:00
Carlos Esquerdo Bernat
38aa5d6930
websocket example: cleanup and simplify (3/4) ( #5923 )
2020-07-22 17:44:56 +03:00
Carlos Esquerdo Bernat
6dbc143d67
websocket: move ws example to examples folder ( #5875 )
2020-07-21 00:55:58 +02:00
Ruofan XU
53e7cb124d
example: make quick_sort generic ( #5898 )
2020-07-20 20:17:01 +03:00
Nedim
b3011b4f19
examples: add example for using the SMTP module ( #5870 )
2020-07-18 15:59:54 +03:00
Daniel Däschle
c5dc1a33b6
all: remove `it` smartcast and replace with original variable name ( #5764 )
2020-07-09 17:14:14 +02:00
Daniel Däschle
5ea17ad2d4
all: if smartcast part 2 ( #5754 )
2020-07-08 15:46:58 +02:00
Alexander Medvednikov
48f1f814d2
gg: minor fixes
2020-07-06 20:40:54 +02:00
Alexander Medvednikov
ebb4935703
examples: simpify text rendering examples
2020-07-06 19:55:49 +02:00
Alexander Medvednikov
1f3d7d393e
gg: simplify text rendering
2020-07-06 19:45:00 +02:00
Nick Treleaven
9e7ba5f138
doc: update sum type docs ( #5702 )
2020-07-06 18:09:38 +02:00
Louis Schmieder
3cd9e2cab7
vweb: fix index ( #5682 )
2020-07-05 22:05:58 +02:00
Alexander Medvednikov
1505f3e22c
vweb: fix an example
2020-07-05 16:52:20 +02:00
Alexander Medvednikov
36183660e6
remove oldgg, gl, glfw, freetype from vlib now that we have the new sokol based `gg`
2020-07-05 16:44:28 +02:00
Delyan Angelov
b525553b53
examples: add a simplified mini (v)pwgen program
2020-07-05 01:44:00 +03:00
Delyan Angelov
73771b741c
examples: add client ip logging to examples/tcp_echo_server.v
2020-07-04 14:14:43 +03:00
Delyan Angelov
6ec86fa344
vfmt: reformat examples/sokol/particles *.v files
2020-07-02 15:31:42 +03:00
Ruofan XU
aa270263c9
exampleы: clean up quick_sort ( #5620 )
2020-07-02 13:32:02 +02:00
Larpon
aec3ea5d32
examples: add sokol particle example ( #5599 )
2020-07-01 14:29:58 +03:00
Alexander Medvednikov
02b846aa72
vweb: fix json() and text() results
2020-06-27 13:56:15 +02:00
Alexander Medvednikov
1d8d19c977
vweb: return $vweb.html()
2020-06-20 03:12:38 +02:00
granbestiapop
02f9b5d0e4
examples: concurrency examples
2020-06-17 02:34:16 +02:00
Alexander Medvednikov
651a203ecb
examples: fix sqlite.v
2020-06-16 12:27:47 +02:00
Delyan Angelov
41e0561b05
examples: add overflow protection in path_tracing.v, fix randomization
2020-06-15 19:56:19 +03:00
Delyan Angelov
91df872c36
examples: fix unused variable warning in examples/sokol/fonts.v
2020-06-15 15:40:42 +03:00
Alexander Medvednikov
deddc71720
examples: fix vweb_assets.v
2020-06-10 12:05:35 +02:00
Alexander Medvednikov
b904d7d1ba
vweb: debug prints behind $if debug
2020-06-10 11:50:06 +02:00
Hungry Blue Dev
e649cf84e3
rand: reorganize: phase 2
2020-06-09 15:06:07 +02:00