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

901 Commits

Author SHA1 Message Date
jacksonmowry
76b4c92848 db.sqlite: make functions return results, breaking change (#19093) 2023-08-10 05:39:32 +03:00
Everton J. Carpes
357ac0bb5a examples: show how to call a simple v module from ruby (#19073) (#19073)
This is a copy/adaptation of the python example (#13105)
2023-08-07 07:07:00 +03:00
Delyan Angelov
b9a523cefd time: store time with nanosecond resolution in time.Time, deprecate Time.microsecond, add utility methods and tests (#19062) 2023-08-05 23:41:23 +03:00
Lucas V. Araujo
ecca3b155e net.mbedtls: add SSLListener to allow creating SSL servers (#19022) 2023-08-01 20:45:50 +03:00
Turiiya
c4a679186f examples, readme: fix typos (#18994) 2023-07-29 15:27:03 +03:00
Delyan Angelov
d25e213aa8 tools, examples: add --only-watch=*.v option to v watch (#18974) 2023-07-27 09:50:26 +03:00
Delyan Angelov
41f99c1abf tools: add cmd/tools/show_ancient_deprecations.v, to cleanup ancient functionality, deprecated over an year ago (#18946) 2023-07-22 19:13:58 +03:00
Turiiya
0915d87c7c examples: cleanup process_script.v (#18899) 2023-07-18 17:22:26 +03:00
Casper Kuethe
a43064af07 picoev, picohttparser: reimplement in V (#18506) 2023-07-12 09:40:16 +03:00
Delyan Angelov
e7af25ec14 examples: add examples/gg/many_thousands_of_circles.v, thanks to @xjunko, document how to use ctx.end(how:.passthru). (#18832) 2023-07-10 15:33:14 +03:00
kbkpbot
b3a6b73306 eventbus: add generic support for event name (#18805) 2023-07-07 22:33:57 +03:00
Turiiya
a27f2ddcc3 term.ui, vweb, v: update deprecated functions (#18726) 2023-07-02 09:38:33 +03:00
Turiiya
b2ca3ac089 net.html: fix semantic inconsistencies of tag retrieving functions (#18558) 2023-06-27 20:10:31 +03:00
Turiiya
af4e113f6c vweb: use <head> instead of <header> in the html templates (#18516) 2023-06-22 11:11:02 +03:00
yuyi
1623cc3a51 fmt: fix functions with short arguments (fix #18398) (#18459) 2023-06-16 09:47:40 +03:00
Turiiya
285000699b tools: remove residues that specify size for tab indents (#18426) 2023-06-13 08:53:12 +03:00
Mark aka walkingdevel
f634f7b01f mysql: connection fixes (#18428) 2023-06-13 08:49:41 +03:00
Alexander Medvednikov
f73e99cddd examples: add http.get and file writes to the coroutines example 2023-06-12 13:05:59 +03:00
Alexander Medvednikov
16ce94e13c examples: fix ci (vfmt) 2023-06-08 01:51:40 +03:00
Alexander Medvednikov
e55175fcaa examples: no longer use printf in the coroutines example 2023-06-07 16:48:33 +02:00
Alexander Medvednikov
9dcd95ee34 examples: use printf in the coroutines example for now 2023-06-03 23:56:07 +02:00
Alexander Medvednikov
6fe6fe887d coroutines: $if is_coroutine? { 2023-06-03 19:05:50 +02:00
Alexander Medvednikov
3f62487409 examples: add a simple coroutine example 2023-05-29 01:35:38 +02:00
Turiiya
993546a0a2 examples: fix typos (#18229) 2023-05-25 16:54:46 +03:00
Akhil Binoy
30e02cfa3d examples: fix typo in bellman-ford.v (#18223) 2023-05-21 15:22:27 +02:00
kbkpbot
c8d2098a14 net.websocket: make thread safe/concurrent (#18179) 2023-05-18 11:27:00 +02:00
Leon Arndt
2c95b9be32 examples: removed unused line of code (#18194) 2023-05-18 11:23:37 +02:00
Swastik Baranwal
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
Thomas Peißl
353de60158 examples: fix unset reader notice for the smtp/mail example (#17998) 2023-05-02 22:54:57 +03:00
Swastik Baranwal
3d99f1f2c2 checker: disallow struct int to ptr outside unsafe (#17923) 2023-04-13 07:38:21 +02:00
Hitalo Souza
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
l-33ter
756e5d931e examples/vweb_fullstack: fix wrong db ORM-fields (#17907) 2023-04-08 17:18:48 +03:00
yuyi
467a1b4435 fmt: remove redundant parenthesis in the complex infix expr (#17873) 2023-04-04 13:47:48 +03:00
walking devel
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
Josh Montoya
51ad565ed6 vweb: implement worker pool (#17298) 2023-04-02 01:24:33 +02:00
Thomas Mangin
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
Alexander Medvednikov
d60ceb45cd gg: make create_image() return !Image 2023-03-29 19:04:41 +02:00
yuyi
dd0b68ac90 checker: check if guard returning non-propagate option or result (fix #17742) (#17794) 2023-03-29 14:51:29 +03:00
Alexander Medvednikov
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
Casper Kuethe
1fe5aca782 vweb: middleware implementation (#17730) 2023-03-26 00:57:42 +01:00
Delyan Angelov
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
walking devel
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
Delyan Angelov
6e1e406288 vweb: implement live page reload in development, based on polling (useful with watch) (#17683) 2023-03-16 21:00:47 +01:00
yuyi
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
Ahmad Yasser
cad2cd5583 docs: fix typos using codespell (#17332) 2023-02-16 11:43:39 +02:00
Makhnev Petr
c8c70de87d docs: unify format of notes (#17294) 2023-02-13 10:29:02 +02:00
MatejMagat305
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