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

887 Commits

Author SHA1 Message Date
1623cc3a51 fmt: fix functions with short arguments (fix #18398) (#18459) 2023-06-16 09:47:40 +03:00
285000699b tools: remove residues that specify size for tab indents (#18426) 2023-06-13 08:53:12 +03:00
f634f7b01f mysql: connection fixes (#18428) 2023-06-13 08:49:41 +03:00
f73e99cddd examples: add http.get and file writes to the coroutines example 2023-06-12 13:05:59 +03:00
16ce94e13c examples: fix ci (vfmt) 2023-06-08 01:51:40 +03:00
e55175fcaa examples: no longer use printf in the coroutines example 2023-06-07 16:48:33 +02:00
9dcd95ee34 examples: use printf in the coroutines example for now 2023-06-03 23:56:07 +02:00
6fe6fe887d coroutines: $if is_coroutine? { 2023-06-03 19:05:50 +02:00
3f62487409 examples: add a simple coroutine example 2023-05-29 01:35:38 +02:00
993546a0a2 examples: fix typos (#18229) 2023-05-25 16:54:46 +03:00
30e02cfa3d examples: fix typo in bellman-ford.v (#18223) 2023-05-21 15:22:27 +02:00
c8d2098a14 net.websocket: make thread safe/concurrent (#18179) 2023-05-18 11:27:00 +02:00
2c95b9be32 examples: removed unused line of code (#18194) 2023-05-18 11:23:37 +02:00
d8cf65df1a checker: only allow &u8 with byteptr and itself (#18146) 2023-05-11 18:28:49 +10:00
l-m
3a06b55388 wasm: add basic debuginfo through name section (#18130) 2023-05-08 09:31:36 +03:00
353de60158 examples: fix unset reader notice for the smtp/mail example (#17998) 2023-05-02 22:54:57 +03:00
3d99f1f2c2 checker: disallow struct int to ptr outside unsafe (#17923) 2023-04-13 07:38:21 +02:00
624f1592a8 examples: create readme.md for vweb_fullstack (#17928) 2023-04-10 19:20:03 +03:00
l-m
d2f69472b2 vlib: add a wasm module, implementing a pure V webassembly seralisation library (#17909) 2023-04-09 07:55:02 +03:00
756e5d931e examples/vweb_fullstack: fix wrong db ORM-fields (#17907) 2023-04-08 17:18:48 +03:00
467a1b4435 fmt: remove redundant parenthesis in the complex infix expr (#17873) 2023-04-04 13:47:48 +03:00
8452644ec3 orm: enforce that queries always return a Result, a query-resulting array can be used as a V array in place. (#17871) 2023-04-04 08:23:06 +03:00
51ad565ed6 vweb: implement worker pool (#17298) 2023-04-02 01:24:33 +02:00
580d9cedc7 termios: new termios module (#17792)
* termio: new termio module

move the tcgetattr and tcsetattr functions in a new termio module.
The code needed refactoring as different OS have different fields
size, position and number for the C.termios structure, which
could not be correctly expressed consitently otherwise.

It has the positive side effect to reduce the number of unsafe calls.
New testing code was also added for the readline module as it is
relying of the feature.

* apply 2023 copyright to the new files too
2023-03-30 08:58:52 +03:00
d60ceb45cd gg: make create_image() return !Image 2023-03-29 19:04:41 +02:00
dd0b68ac90 checker: check if guard returning non-propagate option or result (fix #17742) (#17794) 2023-03-29 14:51:29 +03:00
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
1fe5aca782 vweb: middleware implementation (#17730) 2023-03-26 00:57:42 +01:00
db97630117 examples, orm: fix orm example; add -d trace_orm option to see all ORM generated queries (#17770)
* orm: add tracing of the generated queries by the orm module, when a program is compiled with `-d trace_orm`

* examples: fix examples/database/orm.v, add comments, and ensure that the example can be run several times with no errors

The example demonstrates connecting to all 3 DBs in the same program, and will be added to the CI very soon,
to serve both as a regression test, if it fails, and as an example to how to use the ORM in combination with
raw SQL queries to the DBs (which are driver/wrapper specific, unlike the ORM, but can be more convenient in some situations).
2023-03-25 21:46:17 +02:00
d0e78b1da6 parser: breaking change, let V ORM queries return arrays for *all* non-count queries, including limit = 1 (#17719) 2023-03-22 09:48:01 +02:00
6e1e406288 vweb: implement live page reload in development, based on polling (useful with watch) (#17683) 2023-03-16 21:00:47 +01:00
17000ef7b6 checker: check option fn returning error (fix #17423) (#17438) 2023-03-02 15:49:50 +02:00
l-m
0625caad56 wasm: add a webassembly compiler backend, based on using binaryen (#17368) 2023-02-28 23:58:53 +02:00
cad2cd5583 docs: fix typos using codespell (#17332) 2023-02-16 11:43:39 +02:00
c8c70de87d docs: unify format of notes (#17294) 2023-02-13 10:29:02 +02:00
dcb9c3beb3 cgen: support [spawn_stack: 131072] fn attribute, for controlling the max size of the stack, of the spawned threads (#17222) 2023-02-09 15:57:53 +02:00
4c33a92aac examples: fix missing products table in v run examples/vweb_fullstack/ (#17253) 2023-02-09 12:03:23 +02:00
404a9aa442 v: forbid function parameter names, shadowing imported module names (#17210) 2023-02-08 20:37:04 +02:00
0b17865c3d examples: use -Wl,-rpath=. instead of LD_LIBRARY_PATH=. in the call_v_from_c example (#17244) 2023-02-08 09:44:10 +02:00
26b9464f51 gg: setup ctx.window.user_data and ctx.user_data on ctx.run(), instead of in gg.new_context, to allow for embedding gg.Context in ui (#17169) 2023-01-31 18:22:20 +02:00
40ec2a292e vlib: add a new dl.loader module, to simplify dynamic library loading, when the DLLs may be in multiple customisable locations (#17161) 2023-01-31 09:27:48 +02:00
6bb930591e examples: add more graphs examples, fix typo (#17113) 2023-01-25 21:58:44 +02:00
0230395062 examples: update examples/js_dom_draw_bechmark_chart/README.md with a chart (#17084) 2023-01-24 02:07:13 +02:00
ddf3909fed docs: improve the README for examples/call_v_from_c/ with instructions for macos (#17060) 2023-01-22 13:25:09 +02:00
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
36834be2ad all: fix the remaining deprecated import sqlite statements (#17021) 2023-01-19 09:37:55 +02:00
aba7bcde85 checker: turn the pointer map notice into a warning and fix all code using it 2023-01-15 22:19:25 +01:00
7f3531077d examples: improve the output of the websocket examples 2023-01-15 14:54:51 +02:00
b25c9e8bbf examples: minor change after #16948 (#16965) 2023-01-15 02:39:51 +01:00
64558df764 vlib: move the mysql/sqlite/pg/mssql modules under vlib/db (#16820) 2023-01-13 17:02:32 +02:00