Commit Graph

443 Commits (2095d4d9554fcd28e92ba102ba4aae0295b81f97)

Author SHA1 Message Date
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
Enzo Baldisserri 11b7b97311
parser: fail when assigning to _ with := 2020-06-08 00:47:04 +02:00
Alexander Medvednikov 30ade1d6ea tests: test more vweb template features 2020-06-07 19:06:07 +02:00
joe-conigliaro 70c18fc7b2
vweb: tmpl access to action method vars 2020-06-07 21:26:47 +10:00
Delyan Angelov 013bfc7ebc vweb: add vweb.run_app(app,port); fix compilation of vweb_assets/main.v 2020-06-07 11:02:35 +03:00
Sumeet Chhetri 442030a7c8
picoev: make compile, add header parsing 2020-06-07 01:23:30 +02:00
Alexander Medvednikov 4d5ac1e16d vweb: $html 2020-06-06 21:36:34 +02:00
Alexander Medvednikov 7815c5b108 cgen: $action (ComptimeCall); vweb: hello world works! 2020-06-06 10:05:26 +02:00
Alexander Medvednikov 11908410f3 vweb: make compile 2020-06-05 21:04:18 +02:00
Delyan Angelov 2237968ec1 gg: fix x11 scaling 2020-06-05 08:19:34 +03:00
Alexander Medvednikov 13a7ce9e69 gg: GG => Context 2020-06-04 20:26:18 +02:00
Alexander Medvednikov fb7ca56d87 gg: minor fixes 2020-06-04 19:57:16 +02:00
Alexander Medvednikov 42e314d281 examples: skip live gg examples for now 2020-06-04 19:14:24 +02:00
Alexander Medvednikov c4a6ba76a1 examples: fix bounce.v; clean up tetris.v 2020-06-04 16:53:21 +02:00
Alexander Medvednikov 6b6c9d6738 gg: make the Sokol based gg the default 2020-06-04 16:05:15 +02:00
yuyi 5ae8853648
all: change `f mut Foo` to `mut f Foo` 2020-06-04 10:35:40 +02:00
Delyan Angelov 0b7fe0a9d0 gg2: add the rest of the sokol callbacks in gg.new_context 2020-06-04 09:48:49 +03:00
Delyan Angelov 576e80b3a9 tetris: restore text rendering with gg2.ft.draw_text 2020-06-03 23:09:34 +03:00
Delyan Angelov e91642e615 tetris: more accurate fps counters on -d showfps 2020-06-03 19:52:48 +03:00
Delyan Angelov 8a23cfc0d6 tetris: support instant `d`rop key, add +FPS counter on -d showfps 2020-06-03 16:45:26 +03:00
Alexander Medvednikov 7496c1be2a examples: fix remaining examples and add them to CI 2020-06-02 19:47:28 +02:00
Delyan Angelov 93c44a2199 examples: fix compilation of path_tracing.v 2020-06-02 19:29:27 +03:00
Alexander Medvednikov 4e51867612 make v build-examples work: part 1 2020-06-02 16:09:41 +02:00
Alexander Medvednikov 78f8a8aee6 cgen: remove g_ hack 2020-06-02 15:49:43 +02:00
Alexander Medvednikov 1139d3b458 gg: move text rendering to gg.ft 2020-06-02 15:35:41 +02:00
Alexander Medvednikov ad8ed851d0 examples: make tetris compile 2020-06-02 09:38:42 +02:00
Alexander Medvednikov 138d730dfa checker: prepare for the is_changed check 2020-06-02 09:00:51 +02:00
Alexander Medvednikov 39bd058acf examples: tetris: remove GLFW dependency 2020-06-01 13:04:46 +02:00
Alexander Medvednikov 9bcbb3868f gg: migrate to sokol; examples: update tetris 2020-06-01 12:57:08 +02:00
Alexander Medvednikov dd34e65398 gg: sokol fixes and text rendering benchmark 2020-05-30 12:52:27 +02:00
Pradeep Verghese b52c98ac43
examples: fix compilation of game_of_life due to type mismatch 2020-05-29 09:45:20 +03:00
Pradeep Verghese 4b362862ad
examples: spectral: minor fixes 2020-05-29 06:41:56 +02:00
Alexander Medvednikov 81b44dc2c9 generics: generic call inside generic call; checker: check mut args at call 2020-05-29 04:30:00 +02:00
Tim Basel d688d356a7
cli: assign parent by default; add disable_flag 2020-05-28 13:32:43 +02:00
Alexander Medvednikov 7c9279c447 vfmt: make work with comptime 2020-05-27 03:33:40 +02:00
Alexander Medvednikov b1bbb17254 examples: remove glfw3.dll 2020-05-26 02:11:45 +02:00
Delyan Angelov 104359365f examples: fix const name warnings due to gx.White, etc... 2020-05-22 20:00:46 +03:00
yuyi dda875a9c8
all: unify const names to snake_case 2020-05-22 17:36:09 +02:00
Alexander Medvednikov 0a6d709ce2 http: fix recent changes; picoev: make compile 2020-05-20 05:37:03 +02:00
iRedMail 4a70d2fe51
examples: fix 2 unused var warnings 2020-05-17 14:15:04 +02:00
yuyi 7f4cf08516
parser: check `(mut f Foo)` syntax 2020-05-17 13:51:18 +02:00
Alexander Medvednikov c4ca6a9113 sokol: make examples compile 2020-05-15 18:55:29 +02:00
Delyan Angelov b2e5ae9cd8 examples: fix compilation of the automaton for the game_of_life 2020-05-13 20:25:51 +03:00
Delyan Angelov f866a8a8e2 examples: fix fibonacci warning 2020-05-13 15:51:17 +03:00
Alexander Medvednikov 3fd852deee
readme: tetris 2020-05-13 04:26:06 +02:00
yuyi f33de1bc64
all: fix unused variable warnings 2020-05-12 13:57:23 +02:00
Alexander Medvednikov 828f9af64c checker: fmt 2020-05-11 14:38:25 +02:00
jm-duro 8488f7d82b
example: improve json example 2020-05-11 12:06:51 +03:00
Max Mazurov 8f6d69b763
examples: tetris: readme: freetype on Arch 2020-05-11 01:26:59 +02:00
Delyan Angelov e3366281ee tests: skip sqlite_test.v on musl too, fix compilation of path_tracing.v 2020-05-06 23:50:20 +03:00
Delyan Angelov e33805b2b3 json.decode: fix expressions in the second argument, also fixes news_fetcher.v 2020-05-06 21:44:50 +03:00
Alexander Medvednikov 0f0b6a0ccd examples: minor bounce.v improvements for the demo 2020-05-04 12:26:39 +02:00
Delyan Angelov 845ffb59a6 live: use mostly pure V code for reloading, eases customization 2020-05-03 20:22:24 +03:00
Delyan Angelov aa9bb6f71a compiler: fix -live compilation of bounce example with gcc-9 & clang 2020-05-02 02:36:29 +03:00
Delyan Angelov d6c1ee0202 hot_reload: cleanup message.v 2020-05-02 01:14:44 +03:00
Delyan Angelov 13e0e63514 hot_reload: fix graph.v compilation 2020-05-01 14:44:22 +03:00
Tim Basel 3e4cd12fd0
.gitignore: ignore all binary files by default 2020-04-29 16:49:13 +02:00
jm-duro 210b6e36b6
http: mutable request fields 2020-04-28 13:57:48 +02:00
yuyi 2574dce174
all: fix remaining `[]array` warnings 2020-04-26 16:25:54 +02:00
yuyi 9f4d498ff1
all: update`import ()` and `[]array` 2020-04-26 13:49:31 +02:00
yuyi 541b058e90
all: use `a !in b` instead of `!(a in b)` 2020-04-26 06:39:23 +02:00
joe-conigliaro 900d96c638
parser: allow deref assign without parens pt2 update vlib 2020-04-25 18:14:01 +10:00
joe-conigliaro 7177e71444
revert parser: allow deref assign without parens pt2 update vlib 2020-04-25 18:11:14 +10:00
joe-conigliaro f92cf69e60
parser: allow deref assign without parens pt2 update vlib 2020-04-25 18:09:52 +10:00
Delyan Angelov fb97c2e01e examples: fix path_tracing.v compilation, using (*ptr) = expression 2020-04-23 12:28:16 +03:00
yuyi 4e1abc8503
all: remove commas between enum vals 2020-04-23 01:16:16 +02:00
Enzo Baldisserri fe249ab0c3
vtest: remove `pub` before main 2020-04-17 21:41:54 +02:00
Delyan Angelov aed8370d87 tetris: enable compilation with -prod; cleanup of font loading errors 2020-04-16 19:44:15 +03:00
Alexey 54226e74cf
sokol: add missing `C` prefixes 2020-04-16 15:53:34 +02:00
Delyan Angelov 1318c27699 tetris: it now works with v2 (on linux) :-) 2020-04-16 13:30:40 +03:00
morganwu 5deb86de4f
examples: fix customer pg table name 2020-04-12 21:51:10 +02:00
yuyi 4d5fe14968
log: fix example error 2020-04-06 17:22:53 +02:00
Alexander Medvednikov c0d4503f25 gl/glfw: update C definitions 2020-04-04 12:56:35 +02:00
Alexander Medvednikov 88d15c6611 gl, glfw, freetype fixes 2020-04-02 01:45:22 +02:00
Alexander Medvednikov c6cf8ace22 glfw and tetris fixes; temporary ci fixes 2020-04-01 23:49:11 +02:00
Alexander Medvednikov 3dae1cc131 move sdl module to github.com/vlang/sdl 2020-04-01 15:27:28 +02:00
SleepyRoy 7bbcc484fb
examples: calculator 2020-04-01 14:19:57 +02:00
Alexey bf9f3057da
gitignore: ignore tcp_echo_server executable 2020-03-29 10:10:24 +02:00
Alexey a333ac1888
all: remove redundant parentheses in `if` statements 2020-03-29 10:08:42 +02:00
Delyan Angelov fa02130359
examples/tcp_echo_server: cleanup, use defer{} 2020-03-28 18:10:48 +01:00
Delyan Angelov 784d27f41b
examples: add a simple self contained tcp echo server 2020-03-28 10:21:22 +01:00
Alexander Medvednikov eed7c91e87 move compiler tests from compiler/ to v/ 2020-03-27 18:01:46 +01:00
Alexander Medvednikov ec4be80bcc Revert "db: increase db module level in vlib "
This reverts commit cd6d175180.
2020-03-26 09:23:54 +01:00
yuyi cd6d175180
db: increase db module level in vlib 2020-03-26 09:21:34 +01:00
hazohelet d8bcd13e86
compiler: fix #3973 by dealing with name mangling problem 2020-03-26 08:54:33 +01:00
Alexey a5c0d89c71
examples: reorganize 2020-03-21 09:47:38 +01:00
yuyi 2f27758a4b
os: realpath => real_path 2020-03-20 16:41:18 +01:00
SleepyRoy f798a0937a
expression: set floats as f64 by default 2020-03-19 07:24:49 +01:00
Wing-Kam f1274e34c2
cli: add pre_execute & post_execute 2020-03-10 16:11:17 +01:00
yuyi 783dee1f48
os: merge with filepath 2020-03-07 22:26:26 +01:00
Ian M. Jones 750f37fde7
vweb: fix serving static files 2020-03-07 14:16:03 +01:00
Alexey 5827ff0a01
examples: add license files for fonts 2020-03-07 14:14:37 +01:00
Alexander Medvednikov a277f7d6ab cgen: string[i]; pointers 2020-03-06 20:23:01 +01:00
Alexey 5142747ceb
examples: move SDL examples from vlib to examples dir 2020-03-06 18:39:40 +01:00
Alexander Medvednikov a8e45251c4
sync.pool: simplify usages of pool.work_on_items 2020-03-05 18:37:57 +01:00
Alexander Medvednikov b0ece3a9d8
sync: implement pool.work_on_items to process a list of items in parallel 2020-03-04 20:28:42 +01:00
Alexander Medvednikov 59a65d757b examples: use vcalloc 2020-03-04 17:28:05 +01:00
Hugo Locurcio 69f256b900
use LF line endings in examples/quick_sort.v 2020-03-03 14:41:05 +01:00
Delyan Angelov f9d5c0110f
compiler: @VMODULE 2020-02-29 14:23:45 +01:00
SleepyRoy c26016b132
examples: add quick_sort example 2020-02-26 13:32:39 +01:00
spaceface777 ef8c1203b4
cleanup: replace C for loops with range 2020-02-24 17:55:16 +01:00
Delyan Angelov 195f3f465b
option to disable bounds checking; examples/path_tracing.v: optimizations 2020-02-16 16:13:45 +01:00
penguindark ce6ee1505f
path tracing example 2020-02-13 19:22:35 +01:00
Mahmoud Samir Fayed 99217da6ca
examples: update tetris readme 2020-02-07 18:47:05 +01:00
Delyan Angelov 1618596218
os: fix compiler warnings when just importing os 2020-02-05 11:23:49 +01:00
Exa Stencil 1db07f52d1
Improve vweb example to output the cookie 2020-02-05 10:53:16 +01:00
joe-conigliaro 7f709c3285
update copyright years 2020-02-03 05:00:36 +01:00
toman222 932392a7fd
sqlite: modify exec functions + other fixes 2020-02-02 02:56:09 +01:00
kemalcan bora c90b53b89d
examples: simple linear regression 2020-01-31 02:44:38 +01:00
Steve Phillips c617cf8e05 examples: fizz_buzz.v 2020-01-27 16:56:46 +01:00
joe-conigliaro 20f6cdc53a compiler: fix module alias resolution 2020-01-23 21:07:53 +01:00
Shun Sakai c8c43a2475 update copyright year 2020-01-23 21:04:46 +01:00
S-YOU 7b345e207d pico.v and dependencies 2020-01-23 03:26:30 +01:00
Alexander Medvednikov 0502a54a36 new gg/freetype modules with sokol/fontstash backends 2020-01-22 20:54:36 +01:00
Abdullah Atta 43ba6766ba improve eventbus 2020-01-22 17:41:08 +01:00
Delyan Angelov 0d52cc97e4 sync: make new_mutex() and new_waitgroup() return &Mutex and &Waitgroup 2020-01-19 20:32:22 +01:00
Delyan Angelov 24d34a4f2c sokol: fix building of examples and ci tests 2020-01-17 20:05:45 +01:00
Alexander Medvednikov ccf6134beb rename sokol examples, so that they can be run from root 2020-01-17 00:58:49 +01:00
Alexander Medvednikov 62481e88f3 sokol and fontstash modules 2020-01-16 20:45:52 +01:00
Chris Watson 84a6c019e8 http: refactor and reduce duplication 2020-01-16 18:16:11 +01:00
Alexander Medvednikov d5f6e37c65 fix graph.v example 2020-01-16 00:07:59 +01:00
Delyan Angelov 4838dda59a compiler: make [live] fn unlock its mutex on early return 2020-01-14 18:58:46 +01:00
Alexander Medvednikov 4c7df98ac9 make private struct warning an error 2020-01-12 19:59:57 +01:00
Alexander Medvednikov 29564ed63d interface fix 2020-01-09 01:40:10 +01:00
Ricardo Tomasi 15415b2aae Update tetris/README for macOS 2020-01-05 11:52:58 +01:00
sh0f 3c65af8b9a cli: fix warning 2020-01-02 18:09:24 +01:00
Alexander Medvednikov b1d6021875 x64 fixes 2020-01-01 22:34:46 +01:00
lutherwenxu 286a0a1371 time: rewrite unix() function 2019-12-31 17:11:47 +01:00
Charles WANG 26ee09c9bb examples: hanoi.v 2019-12-30 11:25:07 +01:00
Alexander Medvednikov cba6a6fdea `as` casting 2019-12-30 10:47:34 +01:00