Laytan

Results 212 comments of Laytan

One thing that would still be inconsistent here is that `str == ""` doesn't care about the pointer, just the length. For example: ```odin val := transmute(string)runtime.Raw_String{ data = auto_cast...

That should either be ```odin @(default_calling_convention="odin") foreign lib { foo :: proc() --- } ``` Or ```odin @(export) foo :: proc "c" () { ... } ``` The reason being...

A patch I did earlier should already make it that when using -use-separate-modules and its exported for that reason, that it's set to Hidden, if it happens and it's not...

These are not implicit conversions, you are explicitly casting (outside of the first case with constants).

I reverted my fix because it was an immediate fix, but wasn't doing the right thing. To be clear this should behave as a cast, so these lines should do...

Fixed: https://github.com/odin-lang/Odin/commit/27f9f0ba171444f48021744af2792bbfa290407b

Is https://pkg.odin-lang.org/base/runtime/#add_thread_local_cleaner not enough for your uses? That would be for any thread, not just your pool, but you can often check if it's a thread you are interested in,...

That functions allows you to add a function that is called on every thread before it is exited out of, so you don't need to run code on the thread...

Could you run it with `-show-debug-messages`, it should print the actual microarch it decides to use, and its features. That would help debugging. + an `odin report` so we know...

Hmm so it uses ``` [DEBUG] Selected microarch: x86-64-v2 [DEBUG] Default microarch features: 64bit,64bit-mode,cmov,crc32,cx16,cx8,false-deps-popcnt,fast-15bytenop,fast-scalar-fsqrt,fast-shld-rotate,fxsr,idivq-to-divl,macrofusion,mmx,nopl,popcnt,sahf,slow-3ops-lea,slow-unaligned-mem-32,sse,sse2,sse3,sse4.1,sse4.2,ssse3,vzeroupper,x87 ``` That does not include avx so it's not that we are doing wrong feature detection...