55 Commits

Author SHA1 Message Date
Delyan Angelov
810a90efa6
ci: add a watchdog timer thread to ringbuffer_test.v, to make sure the program exits in a reasonable time (~10s). Let the test be retried 2 times in a row if it fails. 2025-07-22 12:48:29 +03:00
Delyan Angelov
9f0094b0b4
ci: skip ringbuffer_test.v in the tcc-windows and msvc-windows jobs too, to avoid flakyness for unrelated commits/PRs. 2025-07-22 12:39:14 +03:00
Delyan Angelov
9db3881707
ci: skip checking vlib/datatypes/lockfree/ringbuffer_test.v on the gcc-windows job for now 2025-07-14 18:38:39 +03:00
kbkpbot
c216e59bfc
datatypes: add lockfree version of counter and ringbuffer (#24839) 2025-07-04 18:45:14 +03:00
kbkpbot
880a9873a4
datatypes: add a Set.array/0 method to help get all the elements from a set as an array (#24206) 2025-04-13 19:25:32 +03:00
kbkpbot
e8c6922580
datatypes: optimize linkedlist (fix #23928) (#23934) 2025-03-14 19:47:13 +02:00
Delyan Angelov
615e74d341
vlib: reduce false positive matches for /// , cleanup commented code 2025-03-08 17:47:13 +02:00
Noa Santo
95f53a3308
datatypes.fsm: add missing doc comments for public methods (#23865) 2025-03-05 14:38:55 +02:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
Felipe Pena
6f7f7e08c6
datatypes: fix for set - operator, union and intersection, now they no longer change the receiver (fix #21315) (#21362) 2024-05-01 22:05:24 +03:00
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Pierre Curto
45e13ea02a
datatypes,examples: fix typos, and silence notice in the quadtree example (#20577) 2024-01-18 15:31:42 +02:00
Delyan Angelov
5306469712
datatypes.fsm: cleanup notices for fsm.v 2023-12-20 17:52:13 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Swastik Baranwal
67fabddcaf
datatypes: make Direction pub and fix and add tests for push_many (#19983) 2023-11-24 16:10:00 +02:00
Odai Alghamdi
e8ce02b50a
datatypes: add push_many for doubly and singly linked list + add insert_many for heap (#19975) 2023-11-24 09:40:08 +02:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Turiiya
690ec7d3a5
all: fix typos (#19693) 2023-10-30 03:28:34 +02:00
Larpon
b5f71dffe4
datatypes: improve the doc strings for RingBuffer and its methods (#19464) 2023-09-28 19:07:26 +03:00
Delyan Angelov
7ffa8c13bf
vlib: remove functions and fields, deprecated before 2023-03-20
* remove []int.reduce in favour of arrays.fold
  * remove datatypes.Set.equal in favour of datatypes.Set.==
  * remove datatypes.Set.difference in favour of datatypes.Set.-
  * remove gg.Context.set_cfg in favour of gg.Context.set_text_cfg
  * remove gg.Context.timage_pip in favour of gg.Context.pipeline.alpha
  * remove os.is_writable_folder in favour of os.ensure_folder_is_writable

  Discovered with `v run cmd/tools/show_ancient_deprecations.v 180`
2023-09-16 17:16:54 +03:00
Alexander Medvednikov
428fd7f57f all: do not allow uninitialized function pointers 2023-08-03 21:06:36 +03:00
kbkpbot
0fc33c6fa3
datatypes: add Bloom filter (#18327) 2023-06-02 10:56:22 +03:00
yuyi
467a1b4435
fmt: remove redundant parenthesis in the complex infix expr (#17873) 2023-04-04 13:47:48 +03:00
yuyi
71c3b66ecf
datatypes: fix linked list of map (fix #17570) (#17573) 2023-03-09 14:26:01 +01:00
Ahmad Yasser
cad2cd5583
docs: fix typos using codespell (#17332) 2023-02-16 11:43:39 +02:00
yuyi
f16722596c
all: replace generic '<>' with '[]' in error messages and comments (#16571) 2022-12-02 09:22:48 +02:00
yuyi
7d8c386721
datatypes: change optional to result (#16546) 2022-11-28 10:24:47 +02:00
yuyi
cf3dda2a58
datatypes: fix fsm.set_state() and cleanup fsm module (#16539) 2022-11-27 09:10:08 +02:00
yuyi
ef5be22f81
all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
Delyan Angelov
7d57559b70
datatypes: make the out of bounds errors for lists APIs more detailed 2022-11-22 13:42:29 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +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
1f26e3fb1b datatypes: add a forward iterator for LinkedList<T>, add forward and backward iterators for DoublyLinkedList<T>. Add tests for both. 2022-09-23 22:29:13 +03:00
flopetautschnig
391ac12fe2
datatypes: adding ringbuffer (#15818) 2022-09-21 19:42:59 +03:00
Swastik Baranwal
44137e07b0
datatypes: use generic op overloading for difference and equal (#15530) 2022-08-26 07:03:23 +03:00
shove
723b3d74ee
datatypes: add array() method for LinkedList, DoublyLinkedList, Queue, and Stack (#15524) (#15525) 2022-08-25 14:12:39 +03:00
yuyi
c662431cfd
checker: check unsafe array assign (fix #9651) (#15515) 2022-08-25 08:52:13 +03:00
yuyi
6d501b073a
datatypes: make Set's methods public (#15489) 2022-08-22 10:16:59 +03:00
Vladimir Myshkovski
9b9115471f
datatypes: Set implementation (#14853) 2022-08-16 20:23:48 +03:00
Alexander Medvednikov
9099594a49 all: wrap up unsafe { nil } (p. 3) 2022-07-21 21:01:30 +03:00
Alexander Medvednikov
caa0c2f153 vfmt: voidptr(0) => unsafe { nil } (p.1) 2022-07-21 20:46:01 +03:00
Alexander Medvednikov
e76f74fd73 checker: unsafe 0 for references (default value) 2022-06-26 06:40:40 +03:00
Vincenzo Palazzo
17bba712bd
checker: ban unsafe pointer/fn comparison (#14462) 2022-05-20 18:30:16 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
David 'Epper' Marshall
a91226c376
docs: cleanup (#14327) 2022-05-07 20:18:42 +03:00
mjh
1546645f63
datatypes: fix bst child access, when .root is 0 (#14080) 2022-04-20 16:49:18 +03:00
Mihai Galos
9495aacf3e
datatypes.fsm: add a fsm_graph.v tool (#13723) 2022-03-13 11:40:03 +02:00
Mihai Galos
d5b087de10
vlib: add a datatypes.fsm module (#13668) 2022-03-09 12:14:54 +02:00
Vincenzo Palazzo
6a876d4170
datatypes: small fix for the BST node constructor (#13569) 2022-02-22 15:41:30 +02:00