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
fanlia
4c33a92aac
examples: fix missing products table in v run examples/vweb_fullstack/
( #17253 )
2023-02-09 12:03:23 +02:00
ChAoS_UnItY
404a9aa442
v: forbid function parameter names, shadowing imported module names ( #17210 )
2023-02-08 20:37:04 +02:00
Mehmet Ali
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
Tim Marston
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
Ulises Jeremias Cornejo Fandos
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
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