Commit Graph

  • 90d41b63b8 fix complie error with autofree yuyi98 2022-03-28 08:59:58 +0800
  • c7a92425f0
    doc: tweak built-in functions section & move `dump` section here (#13841) Nick Treleaven 2022-03-27 16:05:44 +0100
  • d97dd3f04d cgen: fix crash for casting bool to int yuyi98 2022-03-27 22:58:13 +0800
  • 69f3b19ca2 undo IStr change and don't show `dump` signature Nick Treleaven 2022-03-27 15:46:50 +0100
  • afdf8f50e7
    doc: move enum methods to enum section from sum types (#13843) Nick Treleaven 2022-03-27 15:46:20 +0100
  • 3a4bb09de2
    doc: improve Arrays section (#13842) Nick Treleaven 2022-03-27 15:45:00 +0100
  • f75ce9dd82
    rand: move functions from rand.util to the main module (#13840) Subhomoy Haldar 2022-03-27 20:08:59 +0530
  • 90d52dd98a Add full stop Nick Treleaven 2022-03-27 15:37:51 +0100
  • 2aff7eac45 doc: move enum methods to enum section from sum types Nick Treleaven 2022-03-09 18:09:45 +0000
  • 1132516e76 Add anchor for removed subheading Nick Treleaven 2022-03-27 15:22:44 +0100
  • aa09bc71e5 doc: improve Arrays section Nick Treleaven 2022-03-27 14:51:27 +0100
  • 4cd2e63189 doc: tweak built-in functions section & move `dump` section here Nick Treleaven 2022-03-27 12:31:24 +0100
  • 875ad1f6ea
    ast: minor cleanup in ast.v (#13839) yuyi 2022-03-27 21:21:40 +0800
  • 5275c3a251 fix shuffle usage Subhomoy Haldar 2022-03-27 18:18:58 +0530
  • 9c6a961112 move util functions into main module Subhomoy Haldar 2022-03-27 18:06:29 +0530
  • 78832f9777 update unit tests Subhomoy Haldar 2022-03-27 17:36:39 +0530
  • d5b6b18dbe move shuffle functions from rand.util; simplify old functions Subhomoy Haldar 2022-03-27 17:36:26 +0530
  • 6851d9e4cc ast: minor cleanup in ast.v yuyi98 2022-03-27 19:35:29 +0800
  • d748529337
    doc: add links to notable array related subheadings (#13838) Nick Treleaven 2022-03-27 12:29:20 +0100
  • 02f72c8230
    builtin: improve docs for array methods that take an `it` expression, like .map, .filter etc (#13836) Nick Treleaven 2022-03-27 12:28:15 +0100
  • dc9fd2bd7e
    doc: tweak array methods section (#13837) Nick Treleaven 2022-03-27 12:26:23 +0100
  • b7599c767c doc: add links to notable array subheadings Nick Treleaven 2022-03-27 12:16:29 +0100
  • c6f4fac1bc break 3 lines Nick Treleaven 2022-03-27 12:00:46 +0100
  • 7663a27d14 doc: tweak array methods section Nick Treleaven 2022-03-27 11:52:20 +0100
  • 1c6563b20e builtin/array: improve docs for methods that take an `it` expression Nick Treleaven 2022-03-27 10:52:42 +0100
  • a07d066e8f
    tools: cleanup all temporary files on successfull `v check-md .` Delyan Angelov 2022-03-27 10:24:10 +0300
  • 0e496a8de2
    tests: add an autofree regression test before return value ownership changes Delyan Angelov 2022-03-27 09:50:37 +0300
  • bea0d500d0
    parser: ignore upper letter case restriction for `fn C.xyz` declarations Delyan Angelov 2022-03-26 21:20:28 +0200
  • fcb57312b9
    parser: error if parameter name starts with a capital (#13827) Nick Treleaven 2022-03-26 17:56:34 +0000
  • 8c396356bb
    context: make the examples in the vlib/context/README.md immediately runnable Delyan Angelov 2022-03-26 13:25:45 +0200
  • eb7e547413
    ci: fix ./v test-parser examples/2048/2048.v (avoid parser panic for invalid source code) Delyan Angelov 2022-03-26 11:32:19 +0200
  • b1a70eb0c5
    fmt Nick Treleaven 2022-03-25 16:09:22 +0000
  • 532e5c45bf
    v/parser: error if parameter name starts with a capital Nick Treleaven 2022-03-25 15:55:55 +0000
  • 7f28d91190 ci: fix again -usecache regression on macos Delyan Angelov 2022-03-26 09:47:44 +0200
  • 0248349e7c cgen: global/const fixes Alexander Medvednikov 2022-03-25 23:32:50 +0300
  • 20106d54f5 call both raw and user free on pointer vars Daniel Oberhoff 2022-03-25 19:31:47 +0100
  • ea4410cdb5
    builtin: document the rune.length_in_bytes method (#13826) Nick Treleaven 2022-03-25 18:09:39 +0000
  • 08719622be builtin/rune: document length_in_bytes method Nick Treleaven 2022-03-25 15:36:26 +0000
  • 7193170455
    Merge branch 'master' into fix/autofree_heap_var Delyan Angelov 2022-03-25 12:02:39 +0200
  • 1877ca6d95 fix autofree of heap variables Daniel Oberhoff 2022-03-25 10:56:28 +0100
  • 347db755c8
    tests: sort the test files before further processing in valgrind_test.v Delyan Angelov 2022-03-25 09:41:29 +0200
  • ddc2c49365
    cgen: autofree out of scope variables in reverse order of their creation Delyan Angelov 2022-03-25 08:42:54 +0200
  • d6c40865f9
    strings: cleanup unsafe casts in some of strings.Builder ops (#13819) Delyan Angelov 2022-03-25 00:07:15 +0200
  • 5b492e26dd
    builtin: support a.flags.set(.noslices | .noshrink), use it in the particles example (#13818) Delyan Angelov 2022-03-24 23:37:13 +0200
  • 9401708193
    strings: cleanup unsafe casts in some of strings.Builder ops Delyan Angelov 2022-03-24 20:29:17 +0200
  • a4ab3c1f14
    checker: disallow `mut_ptr = &immutable_var` (#13814) Nick Treleaven 2022-03-24 18:43:25 +0000
  • 66f083b0ad
    builtin: support a.flags.set(.noslices | .noshrink), use it in the particles example Delyan Angelov 2022-03-24 20:13:39 +0200
  • 40d2a906bb
    ci: fix failing tests Delyan Angelov 2022-03-24 15:04:07 +0200
  • 5ed1f52e59
    checker: disallow `mut_ptr = &immutable_var` Nick Treleaven 2022-03-23 13:32:43 +0000
  • 9bbb52e9cc
    checker: add a check for `dump(c)`, where `typeof(c) == "char"` Delyan Angelov 2022-03-23 21:44:25 +0200
  • 78d9975798
    ast, cgen: restore Type.str() and fix error for it (#13815) yuyi 2022-03-24 17:45:06 +0800
  • 1566f7f766
    checker: minor cleanup in check_types.v (#13816) yuyi 2022-03-24 14:59:05 +0800
  • d74e7b4f7d checker: minor cleanup in check_types.v yuyi98 2022-03-24 13:44:23 +0800
  • 5bd033c01f ast, cgen: restore Type.str() and fix error for it yuyi98 2022-03-24 09:00:04 +0800
  • 59082fee32
    Merge branch 'master' into string-index-funcs-return-opt-int Tarcisio Gruppi 2022-03-23 20:07:11 -0300
  • 5b668dba2b
    sync: document sync.thread_id() Delyan Angelov 2022-03-23 19:48:13 +0200
  • ce576d01c4
    sync: add `sync.thread_id() u64 {` (#13810) Delyan Angelov 2022-03-23 18:19:14 +0200
  • 2e963e36ac
    rand: add `pub fn shuffle<T>(mut a []T) {` function + tests (#13811) Nick Treleaven 2022-03-23 13:31:26 +0000
  • 738e5b9818 fmt Nick Treleaven 2022-03-23 12:42:18 +0000
  • 002e5910f3 Fix vlib Nick Treleaven 2022-03-23 12:36:25 +0000
  • 45a556ab34 Also detect mutable assignment, not just initialization Nick Treleaven 2022-03-23 12:28:57 +0000
  • d9394b5041 Fix detecting mutable slice including for `const` Nick Treleaven 2022-03-23 12:09:14 +0000
  • 94262081cc checker: fix Immutable array can be mutated via slices Nick Treleaven 2022-03-23 11:13:47 +0000
  • d2846b2f3c
    add a rand.shuffle_clone/1 version + test for it Delyan Angelov 2022-03-23 12:55:21 +0200
  • caf1b690b7
    test some more the results of rand.shuffle/1 Delyan Angelov 2022-03-23 12:10:43 +0200
  • 320695ad65
    fmt Nick Treleaven 2022-03-23 09:35:26 +0000
  • bedcc44f34
    rand: add `shuffle` function for array Nick Treleaven 2022-03-23 09:32:47 +0000
  • 35cd8112a5
    ast, checker, cgen: fix error for printing alias that has str method (#13809) yuyi 2022-03-23 17:52:48 +0800
  • 6fd33cb440
    refactor the implementation into thread_default.c.v and thread_windows.c.v files Delyan Angelov 2022-03-23 11:36:35 +0200
  • 7aaa1b057e
    sync: add `pub sync.thread_id() u64 {` API Delyan Angelov 2022-03-23 11:27:08 +0200
  • 1e136bfa28 ast, checker, cgen: fix error for printing alias that has str method yuyi98 2022-03-23 16:55:14 +0800
  • 8b072aa962
    checker: check if generic values have the same types (#13718) Vincenzo Palazzo 2022-03-23 08:13:10 +0100
  • dff39bac78
    cgen: fix error for defining global anonymous functions (#13808) yuyi 2022-03-23 14:09:15 +0800
  • 03a64bce12
    Apply suggestions from code review Delyan Angelov 2022-03-23 08:05:26 +0200
  • a8efefb747 cgen: fix error for defining global anonymous functions yuyi98 2022-03-23 11:23:07 +0800
  • 830932e403
    checker: adding a workaround Vincenzo Palazzo 2022-03-22 20:52:55 +0100
  • 4e10fc7db7
    make possible check between root generic type Vincenzo Palazzo 2022-03-21 23:41:25 +0100
  • 8dc49638c8
    checker: semplify error message Vincenzo Palazzo 2022-03-17 22:48:22 +0100
  • c30f02abc0
    checker: check if the generics value has the same types Vincenzo Palazzo 2022-03-17 19:04:02 +0100
  • e3dca82f9c
    strconv: minor cleanup in f64_to_str_lnd1() (#13804) yuyi 2022-03-23 02:15:59 +0800
  • 0337882240
    checker: check redefine global 'main' function (#13803) yuyi 2022-03-22 23:39:12 +0800
  • 894080b844
    ci: update sdl ci to compile shader example (#13805) Larpon 2022-03-22 16:36:23 +0100
  • 6044afe813 ci: update sdl ci to compile shader example lmp 2022-03-22 16:32:08 +0100
  • 60ff850d42 strconv: minor cleanup in f64_to_str_lnd1() yuyi98 2022-03-22 23:23:07 +0800
  • be87725b98 checker: check redefine global 'main' function yuyi98 2022-03-22 23:05:07 +0800
  • 82120d02a8
    tools: fix typo in vbug.v (#13802) Ikko Ashimine 2022-03-22 22:47:03 +0900
  • 9da2e797aa
    tools: fix typo in vbug.v Ikko Ashimine 2022-03-22 22:12:56 +0900
  • a9837ba95d
    cgen: minor cleanup in go_expr() (#13801) yuyi 2022-03-22 18:07:46 +0800
  • 56f5ed4789
    strconv: fix error for string interpolation of float format (#13800) yuyi 2022-03-22 18:00:18 +0800
  • 85423263e2 cgen: minor cleanup in go_expr() yuyi98 2022-03-22 15:50:01 +0800
  • fabb0ec2e2 strconv: fix error for string interpolation of float format yuyi98 2022-03-22 15:17:21 +0800
  • afbccf79f7
    builtin: don't memdup element for `array.pop` (depends on how cgen works) (#13789) Nick Treleaven 2022-03-21 21:34:35 +0000
  • f66d2f5d43
    cgen: simplify in index_of_array() and add test (#13792) yuyi 2022-03-22 04:03:45 +0800
  • 381cf4b61d
    ci: bump retries to 3, for flaky vlib/v/tests/go_array_wait_test.v Delyan Angelov 2022-03-21 21:46:49 +0200
  • c0437afbcd
    cgen: fix error for casting int to interface (#13790) yuyi 2022-03-22 03:18:11 +0800
  • 9ad64b0bd8
    vweb: support `-d trace_request` and `-d trace_response` Delyan Angelov 2022-03-21 19:48:47 +0200
  • 178afd006b
    examples: avoid flash of unstyled content in the vweb_assets example Delyan Angelov 2022-03-21 19:13:53 +0200
  • 3bae489e35
    examples: make the vweb_assets.v example more robust (always change work folder to the folder of the executable). Document the vweb.Context.handle_static behaviour. Delyan Angelov 2022-03-21 19:05:18 +0200
  • 16526453d3 cgen: simplify in index_of_array() and add test yuyi98 2022-03-21 22:04:49 +0800
  • ea5a0eb79a cgen: fix error for casting int to interface yuyi98 2022-03-21 21:15:24 +0800