1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

896 Commits

Author SHA1 Message Date
Keito Tobichi
6bb930591e
examples: add more graphs examples, fix typo (#17113) 2023-01-25 21:58:44 +02:00
Hitalo Souza
0230395062
examples: update examples/js_dom_draw_bechmark_chart/README.md with a chart (#17084) 2023-01-24 02:07:13 +02:00
Wenqi Chen
ddf3909fed
docs: improve the README for examples/call_v_from_c/ with instructions for macos (#17060) 2023-01-22 13:25:09 +02:00
Delyan Angelov
bee355eb65
all: cleanup sqlite.connect statements (do not leave strange test.db or vweb.sql artefacts around, after running common tests) 2023-01-19 09:45:07 +02:00
Minsoo
36834be2ad
all: fix the remaining deprecated import sqlite statements (#17021) 2023-01-19 09:37:55 +02:00
Alexander Medvednikov
aba7bcde85 checker: turn the pointer map notice into a warning and fix all code using it 2023-01-15 22:19:25 +01:00
Delyan Angelov
7f3531077d
examples: improve the output of the websocket examples 2023-01-15 14:54:51 +02:00
Hitalo Souza
b25c9e8bbf
examples: minor change after #16948 (#16965) 2023-01-15 02:39:51 +01:00
yuyi
64558df764
vlib: move the mysql/sqlite/pg/mssql modules under vlib/db (#16820) 2023-01-13 17:02:32 +02:00
Delyan Angelov
e854051c1f
thirdparty: update all sokol and fontstash headers with their upstream versions (#16940) 2023-01-11 11:29:38 +02:00
Alexander Medvednikov
868908b80d checker: require unsafe for Struct(voidptr) casts 2023-01-06 09:28:11 +03:00
Hitalo Souza
0146509516
examples: fullstack vweb example (#16761) 2023-01-06 04:36:42 +03:00
Larpon
161595b041
examples: use math.vec in examples/sokol/particles (#16780) 2022-12-27 15:19:08 +02:00
Swastik Baranwal
3c5cfa22d1
parser: disallow the array init: attr, when the len: attr is not provided (#16735) 2022-12-21 21:24:16 +02:00
Delyan Angelov
68501677e3
ci: fix gg-regressions failure 2022-12-21 21:03:47 +02:00
Alexander Medvednikov
88e33a83de gg: fix draw_image on macos native; vcreate: vweb template 2022-12-21 19:33:37 +03:00
Delyan Angelov
e419faf746
all: fix dependant->dependent typos, cleanup comments 2022-12-02 12:51:10 +02:00
yuyi
ef5be22f81
all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
Junko
5bb058e35b
gg: revamp the Context pipeline for more effects, implement an additive effect (#16394) 2022-11-12 09:39:18 +02:00
yuyi
993e21e85b
checker: check fntype mismatch of struct field init (fix #16372) (#16381) 2022-11-10 20:19:19 +02:00
shove
a199a9afab
all: rollback to old interpolation (step 2) (#16373) 2022-11-09 17:37:27 +03:00
yuyi
d701cf561c
scanner: fix new string interpolation: print('{n:10}') (fix #16321) (#16325) 2022-11-06 08:20:21 +03:00
Alexander Medvednikov
e81e0ac708 fmt: replace go with spawn 2022-11-05 10:46:40 +03:00
Delyan Angelov
b52b8429d4
vfmt: implement support for // vfmt off and // vfmt on, with it, v fmt -w . now works. (#16335) 2022-11-05 09:08:01 +03:00
Delyan Angelov
7f91db695c
examples, tests: small formatting cleanup in cube_glsl.v , remove already fixed skips in v test-cleancode, before // vfmt off and // vfmt on 2022-11-04 14:48:20 +02:00
Hitalo Souza
d2902e700f
examples: show how to use a before_request method for the multi-route examples, be more informative about DB creation problems (#16279) 2022-11-01 19:02:07 +02:00
Delyan Angelov
31adc65dd6
examples: mention -d no_backtrace in examples/call_v_from_python/README.md 2022-11-01 18:16:30 +02:00
Mykhailo
cd4a999e80
examples: add custom_error.v, that shows how to match over possible errors (#16265) 2022-10-31 09:56:41 +02:00
boons
a19a4ba299
examples: add a tiny brainvuck interpreter (#16213) 2022-10-26 19:31:15 +03:00
yuyi
992b502198
db, json, time, term: change optional to result (#16201) 2022-10-26 11:26:28 +03:00
Hitalo Souza
3d4ffe8f28
examples: unskip vweb_orm_jwt from building, since it is not working directly with mysql anymore (#15671) 2022-10-22 19:12:54 +03:00
Makhnev Petr
2e8b9e3b92
v fmt: fix extra space for anon struct (#16131) 2022-10-21 10:38:19 +03:00
bogen85
c684dd8c9b
log: mark log.fatal as [noreturn] (#16129) 2022-10-21 10:33:49 +03:00
yuyi
51f4d99399
all: change optional to result in most of the libraries (#16123) 2022-10-20 22:14:33 +03:00
Alexander di Chiara
e3379bca97
datatypes: add quadtree, add its demo to examples/ (#16087) 2022-10-18 18:02:44 +03:00
Delyan Angelov
7ff7e540b9
ci: more ? -> ! fixes 2022-10-16 22:57:38 +03:00
Delyan Angelov
7302d8c4a8
examples: improve the examples/call_v_from_python with Python showing the result of the calculation done on the V side 2022-10-16 22:48:00 +03:00
yuyi
f6844e9766
all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
Delyan Angelov
2a4604b5f9
Revert "examples: fix viewer example (use the new stbi.load_from_memory_with_channels) (#16004)"
This reverts commit bce420c34d.
2022-10-10 11:37:36 +03:00
Delyan Angelov
fa20d797a5 Revert "examples: increase the window size of drag_n_drop.v a little (test CI)"
This reverts commit 8fc166d5a3.
2022-10-10 10:39:58 +03:00
Delyan Angelov
8fc166d5a3
examples: increase the window size of drag_n_drop.v a little (test CI) 2022-10-10 04:04:27 +03:00
penguindark
bce420c34d
examples: fix viewer example (use the new stbi.load_from_memory_with_channels) (#16004) 2022-10-09 08:30:02 +03:00
Delyan Angelov
88d69d7d54
cgen,pref,preludes: implement v -assert continues file_test.v (#15976) 2022-10-06 17:20:32 +03:00
Swastik Baranwal
b584e1df98
checker: allow EnumName(number) casts only inside unsafe{} blocks (#15932) 2022-10-02 22:39:11 +03:00
Larpon
816e9319d7
cgen: remove the need for [console] for gg or ui programs on windows (#15912) 2022-09-29 15:02:50 +03:00
Nicolas VENTER
50820105a1
docs: call_v_from_c example (#15844) 2022-09-25 22:52:40 +03:00
Tim Marston
089e89f865
gg: improve arc/slice drawing (#15856) 2022-09-25 15:22:10 +03:00
Delyan Angelov
69c9d47a40
pref,os,sokol,cgen: ease compilation of 2048 with -os wasm32_emscripten (#15820) 2022-09-20 00:17:13 +03:00
shove
84bc170720
checker: optimize the position of the propagation error, where a fn needs to return an optional or result(fix #15780) (#15813) 2022-09-19 14:49:23 +03:00
shove
8b962f8446
checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752) 2022-09-15 07:59:31 +03:00
Hitalo Souza
21b2a9841a
examples: js_dom_draw_bechmark_chart (#15518) 2022-09-07 01:55:32 +03:00
Subhomoy Haldar
3b42f18dee
os: add input_password(prompt) and unit tests (#15507) 2022-08-23 18:17:38 +03:00
Alexander Medvednikov
46f32fc10c checker: require unsafe for free() 2022-08-20 08:03:07 +03:00
Delyan Angelov
cae7bc9a9a
examples: add examples/gg/rotating_textured_quad.v 2022-08-14 09:45:25 +03:00
Hitalo de Jesus do Rosário Souza
b45da86688
examples: refactor vweb_orm_jwt (#15389) 2022-08-12 17:24:57 +03:00
Hitalo de Jesus do Rosário Souza
ee9142a113
examples: V orm still fast? (#15330) 2022-08-08 04:38:38 +03:00
Emily Hudson
fd1b6efea6
net: add failed addresses + details on connect errors, make connect more robust in the default non blocking mode (#15364) 2022-08-07 10:40:05 +03:00
Hitalo de Jesus do Rosário Souza
161ac3434f
examples: serve js (#15246) 2022-08-03 13:34:26 +03:00
Hitalo de Jesus do Rosário Souza
2d7406a8cd
examples: v back-end example for vweb (#15141) 2022-07-24 13:02:57 +03:00
Alexander Medvednikov
dc79f1392b all: voidptr(0) => unsafe { nil } (p.2) 2022-07-21 20:51:54 +03:00
Alexander Medvednikov
caa0c2f153 vfmt: voidptr(0) => unsafe { nil } (p.1) 2022-07-21 20:46:01 +03:00
yuyi
041e90b2e2
checker, cgen: fix interface embedding smartcast (fix #13296) (#15127) 2022-07-19 16:36:16 +03:00
SakthiMahendran
e4674cb8e1
examples: replace "resp.text" with "resp.body". (#15123) 2022-07-19 12:52:42 +03:00
Mehmet Ali
12d57e8e7b
sokol: add mouse cursor support (#15111) 2022-07-18 09:44:48 +03:00
Zhomart Mukhamejanov
c1502b3c1f
examples: add macos_tray example app (#15101) 2022-07-18 09:42:45 +03:00
yuyi
7a17a29952
examples: fix typo in c_interop_wkhtmltopdf.v (#15036) 2022-07-12 19:42:55 +03:00
Delyan Angelov
f56aaa1007
examples: simplify examples/websocket/ping.v (end automatically, when the client ends) 2022-07-09 12:40:52 +03:00
Emirhan Yener
1a49db4ea1
examples: remove empty comments (#14986) 2022-07-08 15:35:45 +03:00
Claudio Cesar de Sá
5b97ad15ad
examples: add new graph algorithms, make some minor corrections to the programs in examples/graphs (#14562) 2022-07-01 21:37:00 +03:00
Delyan Angelov
b1a14c6cf7
tests: use a platform neutral module with C declarations (sokol.audio), instead of time in private_redeclaration_of_C_timeval.vv . 2022-06-27 19:48:46 +03:00
yuyi
5a79a54fe4
all: fix all remaining unsafe 0 (#14856) 2022-06-26 17:04:23 +03:00
Alexander Medvednikov
cb60392302 examples: fix unsafe 0 2022-06-26 07:12:15 +03:00
Alexander Medvednikov
ca30397e7a cli: fix compilation 2022-06-26 07:08:05 +03:00
Leon Arndt
d7f962ef6e
examples: remove empty comment from Tetris (#14845) 2022-06-25 05:47:44 +03:00
CC
d336b7b877
examples: add another vweb example, showing file upload, transform, and file download (#14842) 2022-06-24 09:23:47 +03:00
Emirhan Yener
e5bbb23389
examples: fix 2048 gameplay (#14838) 2022-06-23 21:07:30 +03:00
yuyi
de136f6baf
checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
Delyan Angelov
ea71ea3ec1
examples: speed up mandelbrot.v a little, increase iterations/details too 2022-06-09 20:10:00 +03:00
Delyan Angelov
3c5ae41712
examples: simplify the shebang in the v_script.vsh example 2022-06-04 20:15:39 +03:00
Claudio Cesar de Sá
5bf246fce6
examples: some new graphs algorithms and improving 2 others (#14556) 2022-06-02 07:11:29 +03:00
Delyan Angelov
c91b646372
examples: document how to produce the shared library, needed for a standalone run of examples/dynamic_library_loading/use.v 2022-06-01 13:58:49 +03:00
Hunam
78d1b7f4ef
net.http: Response.text -> Response.body (#14478) 2022-05-29 20:27:18 +03:00
Delyan Angelov
64a686f41f examples: speed up mandelbrot.v by using a constant size thread pool, processing smaller chunks 2022-05-22 11:12:16 +03:00
Vincenzo Palazzo
17bba712bd
checker: ban unsafe pointer/fn comparison (#14462) 2022-05-20 18:30:16 +03:00
Larpon
dd6629e932
examples: fix 2048 scaling on Android (#14380) 2022-05-15 09:14:18 +03:00
JalonSolov
b3e80a3100
examples: add missing v.mod file (#14392) 2022-05-14 14:48:42 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
Claudio Cesar de Sá
634796ae42
examples: 2 new examples for graph algorithms (topological sorting) (#14303) 2022-05-05 18:08:08 +03:00
David 'Epper' Marshall
a2338dbb7c
docs: document more builtin functions/methods (#14229) 2022-04-30 12:31:23 +03:00
stackotter
563469ed9f
vfmt: fix array_init line wrapping (#14154) 2022-04-25 08:11:44 +03:00
Claudio Cesar de Sá
a2db44bc38
examples: add 2 more graph search examples (DFS and BFS), move them into examples/graphs (#14131) 2022-04-22 12:01:29 +03:00
yuyi
a318a2e09e
examples: fix optional in string interpolation and format error (#14079) 2022-04-19 13:29:53 +03:00
Alexander Medvednikov
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
Alexander Medvednikov
af73e195da net: byte fixes 2022-04-15 15:55:39 +03:00
Alexander Medvednikov
fb192d949b all: replace []byte with []u8 2022-04-15 15:35:35 +03:00
Alexander Medvednikov
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
Delyan Angelov
8788512c4d
checker: make using err.msg and err.code produce an *actual* notice, even with the present compatibility hack (will be *removed* in 2022-06-01) 2022-04-12 14:56:02 +03:00
Larpon
07207db998
examples: reduce C. prefix usage, rename fontstash enums (#14011) 2022-04-11 22:23:06 +03:00
Delyan Angelov
8517b8f8b0
examples: use #[] in news_fetcher.v to simplify the code 2022-04-10 11:11:53 +03:00