#boolToInt gone?

1 messages · Page 1 of 1 (latest)

hot sparrow
#

hi

like the name implies, on master boolToInt is gone so i'm wondering what it have been replaced with

thanks

tame scarab
#

the from-ening has been merged so all the tos are froms now

hot sparrow
#

oh the doc isnt sorted alphabetically, that's annoying

#

thanks

#

does zls master works with that new update?

outer marsh
hot sparrow
#

also what's the motive behind that merge?

outer marsh
tame scarab
hot sparrow
#

fair point ig

#

zls master is funky...

tame scarab
#

oh that's just your zig version

#

you need to update it, we do ast-check with your installed zig

#

if your zig version isn't up to date but your zls version is, you'll get that outdated zig version's ast check error + the up to date builtin info, causing that dissonance to occur

hot sparrow
#

i've updated it like yersterday thonk

tame scarab
#

what's your zig version?

hot sparrow
#

zig-windows-x86_64-0.11.0-dev.3777+64f0059cd

#

updating to that

#

still have the error 😔

tame scarab
#

maybe zls is pointed to the wrong version of zig

#

check your zig.zigPath in your vscode user settings

hot sparrow
#

ugh that new extension is annoying installing random zig versions while i already setup the zig path

tame scarab
#

yeah it's a recent change from vexu, i dislike the semantics as well

outer marsh
#

VSCODE! MOMENT!

tame scarab
#

i'll have to send over a patch

somber zealot
#

zls uses internal ast-check unless prefer_ast_check_as_child_process is true, and the internal is outdated

tame scarab
#

that's actually not correct

#

prefer_ast_check_as_child_process is true by default (for this very reason actually)

somber zealot
#

but it is the default 🤷

outer marsh
tame scarab
#

the only time where it's used pretty much is wasm builds of zls

hot sparrow
#

ye it works now, thanks

#

also is it normal that build times are waaay longer without any output?

#

(well the way longer is the initial build ig)

tame scarab
#

you mean when just running zig build?

hot sparrow
#

ye

tame scarab
#

yep, zig build is parallelized now so the output must be gathered at the end of the build process

#

which is why there's no output until everything is done

hot sparrow
#

oh i see

#

still somehow seems slower

gentle scarab
#

when you update zig it has to recompile libc and stuff the first time

hot sparrow
#

ye i meant more the incremential builds

tame scarab
#

with a threadpool

outer marsh
#

as in -- doesn't Zig use single-TU builds?

tame scarab
#

the steps are non-cylical and separable based on what steps depend on what others teps

#

clear the step dependencies from start to finish w/ workers and bam

tame scarab
#

as far as i know the compiler itself is not parallelized yet

gentle scarab
#

only parallel up to and including AstGen

icy hornet
tame scarab
#

oh true that's important to explain why we can't just do @intToPtr(int, PtrType)