Commit graph

1904 commits

Author SHA1 Message Date
kbkpbot
c221b3226b
cgen,builtin: support for 64bit int 1 (#25236)
Some checks are pending
json encoder benchmark CI / json-encode-benchmark (push) Waiting to run
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Waiting to run
wasm backend CI / wasm-backend (windows-2022) (push) Waiting to run
2025-09-13 10:03:52 +03:00
CreeperFace
e317c634bb
cgen: prefix builtin APIs with builtin__ (#25264) 2025-09-10 15:12:22 +03:00
kbkpbot
e650d6b7f0
cgen: fix big IntegerLiteral LL postfix (fix #25269) (#25275) 2025-09-10 09:45:40 +03:00
xieke
015a85daf4
builtin: fix thread naming issue on Windows by ignoring RaiseException (0x406D1388) (#25270) 2025-09-10 09:34:45 +03:00
Delyan Angelov
01f108e349
builtin: fix v -W -Wimpure-v examples/hello_world.v (move ctovstring_impl to builtin.c.v) 2025-09-10 09:11:17 +03:00
Delyan Angelov
69e80ba96d
builtin: add a temporary ctovstring_impl/1 API to enable ui to compile cleanly for PR#25264, part 1 2025-09-09 15:00:16 +03:00
Delyan Angelov
fb95f4cc6f
ci: run input_rune_iterator_test.v only on linux for now 2025-09-07 08:46:08 +03:00
Delyan Angelov
08a739d793
ci: cleanup .gitattributes, runes.txt and input_rune_iterator_test.v
Some checks failed
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Has been cancelled
native backend CI / native-backend-windows (push) Has been cancelled
Sanitized CI / sanitize-undefined-clang (push) Has been cancelled
Sanitized CI / sanitize-undefined-gcc (push) Has been cancelled
Sanitized CI / tests-sanitize-address-clang (push) Has been cancelled
Sanitized CI / sanitize-address-msvc (push) Has been cancelled
Sanitized CI / sanitize-address-gcc (push) Has been cancelled
Sanitized CI / sanitize-memory-clang (push) Has been cancelled
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Has been cancelled
wasm backend CI / wasm-backend (windows-2022) (push) Has been cancelled
2025-09-05 18:34:13 +03:00
Delyan Angelov
35510bc659
builtin: add input_rune/0 and input_rune_iterator/0 + tests (#25238) 2025-09-05 12:39:02 +03:00
kbkpbot
cf61f4fa1b
builtin: fix C prefix for proc_pidpath() (#25239) 2025-09-05 12:23:24 +03:00
Felipe Pena
9a0166701c
cgen: add @[reused] attribute to mark methods, reusing the receiver memory on return (needed for autofree) (fix #25221) (#25235)
Some checks are pending
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Waiting to run
wasm backend CI / wasm-backend (windows-2022) (push) Waiting to run
2025-09-05 07:44:41 +03:00
Larsimusrex
682db66852
builtin, checker, cgen: expose is_embed in FieldData (#25232) 2025-09-04 11:39:24 +03:00
kbkpbot
a8187442b3
builtin: add arr.pop_left() func (#25133) 2025-08-19 14:37:18 +03:00
Delyan Angelov
2e3f0b27f0
builtin,vdoc: make v doc -unsafe-run-examples -time -f ansi vlib/builtin/ pass too 2025-08-13 16:28:37 +03:00
Delyan Angelov
82cd81e963
builtin,vdoc: fix the examples for the builtin methods, so that v doc -check-examples -time -f ansi vlib/builtin/ pass 2025-08-13 16:22:47 +03:00
Delyan Angelov
963e3e8ae2
builtin: small cleanup and merging of several small files into vlib/builtin/chan_option_result.v (#25089)
Some checks are pending
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Waiting to run
wasm backend CI / wasm-backend (windows-2022) (push) Waiting to run
2025-08-11 13:46:46 +03:00
Delyan Angelov
4a6941af6c
markused, builtin: apply @[markused] to builtin_init, remove its heuristic from markused.v 2025-08-05 16:04:14 +03:00
Felipe Pena
21d9a5ded5
parser,checker,cgen: remove unused err declaration or or { } blocks (#25034)
Some checks failed
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Waiting to run
wasm backend CI / wasm-backend (windows-2022) (push) Waiting to run
json decoder benchmark CI / json-encode-benchmark (push) Has been cancelled
json encoder benchmark CI / json-encode-benchmark (push) Has been cancelled
2025-08-05 10:48:17 +03:00
Delyan Angelov
b628626923
builtin: fix assert "ä ö å æ ã ø ô é ë".title() == "Ä Ö Å Æ Ã Ø Ô É Ë" (fix #25017) (#25026) 2025-08-02 14:03:28 +03:00
Delyan Angelov
ca620f4965
builtin: fix warnings for ./v doc -m -f html vlib/builtin/ 2025-08-01 18:27:46 +03:00
Delyan Angelov
eb99497ffc
builtin,markused: consider println of non string to use .str() method calls too, reduce generated C code for v -cc gcc examples/hello_world.v (#24996)
Some checks are pending
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
native backend CI / native-backend-windows (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
wasm backend CI / wasm-backend (windows-2022) (push) Waiting to run
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Waiting to run
2025-07-29 14:52:24 +03:00
Felipe Pena
396dc77a20
markused: reduce hello world csize by 49%, do more cleanups and improvements (#24971) 2025-07-29 09:00:57 +03:00
kbkpbot
2d87ac4837
cgen: move closure C code to V code under vlib/builtin/closure/ (#24912) 2025-07-27 17:44:06 +03:00
Delyan Angelov
4037765828
builtin: fix OOB bugs in s.is_bin, s.is_oct, s.is_hex, discovered through ./v -force-bounds-checking test vlib/builtin/ 2025-07-23 15:52:18 +03:00
Delyan Angelov
da00a46bcc
builtin: prepare for adding a -force-bounds-checking option 2025-07-23 15:26:17 +03:00
kbkpbot
5d4e89f888
os,runtime: move some C struct and fn def to builtin (#24942) 2025-07-22 07:55:53 +03:00
Felipe Pena
0d8cc4588f
markused: remove @[markused] from option and result fns (#24900) 2025-07-15 18:37:48 +03:00
kbkpbot
1ea8574659
os: fix windows get_error_msg() leak (#24899) 2025-07-14 14:54:55 +03:00
Felipe Pena
feb409071d
markused: whitelist _option_none too (fix #24862) (#24885) 2025-07-13 21:09:06 +03:00
kbkpbot
fa904c495e
builtin,cgen,markused: add struct @[aligned] support for structs allocated on the heap too (#24886) 2025-07-13 20:56:28 +03:00
Delyan Angelov
7e35d40661
v2: add formatting workarounds, to make v run cmd/v2/v2.v --skip-imports -d vlib/v2/tests/syntax.v_ run 2025-07-03 09:46:01 +03:00
Delyan Angelov
b305fa5743 docs: cleanup doc comments of public APIs in builtin (found by find_doc_comments_with_no_dots.v) 2025-07-02 16:33:24 +03:00
Delyan Angelov
a5ece523e2
builtin: add unsafe reuse_string_as_data/1 and reuse_data_as_string/1 functions + tests (#24794) 2025-06-26 19:19:35 +03:00
kbkpbot
2da65219e2
builtin: add string.expand_tabs() (#24781) 2025-06-24 02:50:55 +03:00
Delyan Angelov
96c32ecd19
builtin: use s.runes_iterator() in trim_runes/2 to avoid needless allocation 2025-06-23 23:08:18 +03:00
Delyan Angelov
dc1d091ac1
builtin: support -d builtin_free_nop to help diagnose problems with too early manual free() calls 2025-06-21 12:50:15 +03:00
Delyan Angelov
194db24829
builtin: add a rune iterator method to strings, allowing for for i, r in s.runes_iterator() { without first allocating an array for all the runes (#24769) 2025-06-21 12:33:14 +03:00
Delyan Angelov
99be39cbd1
ci: remove the // vtest flaky: true tags from the remaining tests (#24379) 2025-06-19 20:16:49 +03:00
Delyan Angelov
2cd1c9e26b
builtin,os: enable no warnings for gg programs like v -gc boehm_leak -cg -keepc run examples/gg/minimal.v (part 1 - before the gg loop) (#24749) 2025-06-18 16:37:57 +03:00
Delyan Angelov
d52bac1301
builtin: make array.ensure_cap/1 public 2025-06-18 08:56:48 +03:00
Laurent Cheylus
364f9ebda3
builtin: use local static libgc for FreeBSD with tcc (fix #24710) (fix #24683) (#24720) 2025-06-15 09:35:53 +03:00
Jose Mendoza
921e00112a
parser, fmt, gen: support js"string literal" (#24653) 2025-06-09 12:24:08 +03:00
Gonzalo Chumillas
ee77475dc1
jsgen: fix slightly incorrect JS (esbuild was broken on master) (fix #23711) (#24676) 2025-06-09 11:50:45 +03:00
Gonzalo Chumillas
2604fc186f
jsgen: fix maps being always constructed using string keys (fix #24607) (fix #24671) (#24673) 2025-06-09 11:22:24 +03:00
Jose Mendoza
a5f400ee77
parser, ast, fmt: convert "hello".str => c"hello" (fix #24635) (#24652) 2025-06-08 11:44:38 +03:00
Alexander Medvednikov
55d004e310 cgen: reduce v.c size by ~4% by removing comments and using shorter literals 2025-06-03 02:59:55 +03:00
Eliyaan (Nopana)
566d22ab66
builtin: remove playground related code (the current playground uses a container/sandbox) (#24632) 2025-06-01 17:12:51 +03:00
Gonzalo Chumillas
b84512d408
jsgen: fix direct map key access and map.len (fix #24616, fix #24605) (#24620) 2025-05-31 08:00:34 +03:00
Delyan Angelov
bb2d605653
tests: cleanup obsolete TODOs about cgen errors 2025-05-31 07:53:18 +03:00
Gonzalo Chumillas
55eccf6abe
jsgen: fix string.runes method (fix #20500) (#24609) 2025-05-30 06:15:08 +03:00