ChanServ changed the topic of #zig to: zig programming language | https://ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
doublex has joined #zig
doublex_ has quit [Read error: Connection reset by peer]
doublex_ has joined #zig
wootehfoot has joined #zig
<lupine> wow, those zig-cache directories are huge
frmdstryr has quit [Remote host closed the connection]
frmdstryr has joined #zig
traviss has joined #zig
<daurnimator> frmdstryr: you closed your PR?
<frmdstryr> Yeah it's messed up
<frmdstryr> it's consuming tokens that it's not supposed to
<frmdstryr> character's not tokens
<frmdstryr> And the octal format needs removed because thats actually 0-9
<frmdstryr> not sure who named it octal :)
<frmdstryr> oh I guess the octal part is fine, but i had it at the wrong spot
<daurnimator> frmdstryr: should leave a comment saying why :
<frmdstryr> Is the CTokStateOctal case correct in c_tokenizer?
<frmdstryr> It thinks a single '0' is an octal
<fengb> Well that’s not wrong :P
<frmdstryr> yeah, i guess it should only set it to the octal format if it's more than one digit
traviss has quit [Ping timeout: 265 seconds]
<frmdstryr> pub const LUA_GLOBALSINDEX = -10002; is converted to -2
ofelas has quit [Ping timeout: 260 seconds]
lunamn has quit [Ping timeout: 265 seconds]
lunamn has joined #zig
* daurnimator doesn't like that @typeInfo return format isn't in docs any more
<fengb> What happened to it?
dddddd has quit [Ping timeout: 268 seconds]
<daurnimator> removed? I assume because its in https://ziglang.org/documentation/master/std/#builtin;TypeInfo now?
<fengb> Oh
<fengb> It'd be helpful if there was a handy link
<daurnimator> indeed
wootehfoot has quit [Read error: Connection reset by peer]
doublex__ has joined #zig
doublex_ has quit [Ping timeout: 260 seconds]
mahmudov has quit [Ping timeout: 268 seconds]
lunamn has quit [Ping timeout: 240 seconds]
lunamn has joined #zig
darithorn has joined #zig
<hspak> ooo zig docs got a sidebar now, nice!
lygaret has joined #zig
darithorn has quit [Remote host closed the connection]
<pixelherodev> Can we have an open issue to list all needed migrations from the latest release?
<pixelherodev> Assuming I'm not blind, and that no such thing already exists
<daurnimator> pixelherodev: search by label "breaking"
* pixelherodev facepalms
<pixelherodev> Right, thanks :P
<pixelherodev> I simply don't have time to pay attention here that much for the next week or so...
leeward has quit [Disconnected by services]
leeward has joined #zig
<leeward> hmm, Helgrind is telling me I have data races, even though the lines in question are protected by std.Mutex.
<leeward> I guess it's time to make a minimal demonstrator and figure out whose fault it is.
return0e has joined #zig
return0e_ has quit [Ping timeout: 268 seconds]
<mq32> https://queue.acm.org/detail.cfm?id=3212479 nice read about how "C is not a low level programming language"
_whitelogger has joined #zig
ur5us has joined #zig
_whitelogger has joined #zig
_whitelogger has joined #zig
lygaret has quit [Quit: Leaving.]
return0e_ has joined #zig
return0e_ has quit [Remote host closed the connection]
return0e_ has joined #zig
ur5us has quit [Ping timeout: 260 seconds]
ofelas has joined #zig
mahmudov has joined #zig
return0__ has joined #zig
return0e has quit [Ping timeout: 260 seconds]
ofelas has quit [Ping timeout: 245 seconds]
ofelas has joined #zig
BitPuffin has quit [Quit: killed]
dtz has quit [Quit: killed]
AlexMax has quit [Quit: killed]
D3zmodos has quit [Quit: killed]
Demos[m] has quit [Quit: killed]
aperezdc has quit [Quit: killed]
mattmurr has quit [Quit: killed]
Snektron has quit [Quit: killed]
fengb has quit [Quit: killed]
vegai has quit [Quit: killed]
<jicksaw> anyone else feel that the allocation and initialization of TailQueue is a bit weird?
<jicksaw> for example, if you want to make a TailQueue on the heap, you cannot call its init() function, leaving its fields undefined
<jicksaw> to create nodes for it you call createNode with an allocator, so if you wanted to deallocate those later you would have to keep track which allocator you used
_whitelogger has joined #zig
dtz has joined #zig
BitPuffin has joined #zig
Demos[m] has joined #zig
mattmurr has joined #zig
hryx has joined #zig
AlexMax has joined #zig
Snektron has joined #zig
fengb has joined #zig
D3zmodos has joined #zig
vegai has joined #zig
frmdstryr has quit [Ping timeout: 258 seconds]
benjif has quit [Remote host closed the connection]
frmdstryr has joined #zig
benjif has joined #zig
mahmudov has quit [Ping timeout: 260 seconds]
doublex has quit [Ping timeout: 260 seconds]
doublex has joined #zig
mahmudov has joined #zig
dddddd has joined #zig
mahmudov has quit [Ping timeout: 258 seconds]
mahmudov has joined #zig
_whitelogger has joined #zig
lygaret has joined #zig
lygaret has quit [Client Quit]
waleee-cl has joined #zig
lygaret has joined #zig
return0e_ has quit []
lupine has quit [Ping timeout: 245 seconds]
marmotini_ has joined #zig
lygaret has quit [Quit: Leaving.]
ofelas has quit [Ping timeout: 248 seconds]
ofelas has joined #zig
frmdstryr has quit [Remote host closed the connection]
lupine has joined #zig
lupine has quit [Client Quit]
lupine has joined #zig
THFKA4 has joined #zig
lupine has quit [Client Quit]
teatec has joined #zig
waleee-cl has quit [Quit: Connection closed for inactivity]
doublex_ has joined #zig
doublex has quit [Read error: Connection reset by peer]
doublex has joined #zig
doublex_ has quit [Ping timeout: 240 seconds]
kirke67 has joined #zig
doublex_ has joined #zig
doublex has quit [Ping timeout: 265 seconds]
marmotini_ has quit [Remote host closed the connection]
return0e has joined #zig
return0__ has quit [Ping timeout: 268 seconds]
darithorn has joined #zig
doublex_ has quit [Ping timeout: 260 seconds]
lupine has joined #zig
doublex has joined #zig
<pixelherodev> mq32, I've read that one, but isn't that really just saying we should use GPUs as CPUs?
<mq32> pixelherodev: no, it sais programming languages should respekt modern CPU archs
<kirke67> Hey guys, question -
<kirke67> Say I define a generic type, fn Vector( comptime T : type, comptime dimensions : usize ),
<kirke67> Is there a handy way to accept a Vector( T, dimensions ) type, but only this type as a method parameter?
lupine has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Aransentin has joined #zig
<kirke67> Couple things I've tried - have the method as a member function, which takes a Self/@This() first parameter, that works but I don't necessarily want to enforce the method behavior within the struct.
<kirke67> Next, define the method as fn doSomething( comptime T : type, comptime dimensions : usize, vector : Vector( T, dimensions ) ) void {}
<kirke67> Another thought that I haven't tried, might work, but not sure exactly what to do is define the method as fn doSomething( vector : var ) void {} and then inside the method body do some comptime type inspection to ensure that it's a Vector( T, dimensions ) type
lupine has joined #zig
ofelas has quit [Ping timeout: 245 seconds]
ofelas has joined #zig
lunamn_ has joined #zig
<kirke67> I think this is a bit tricky because technically Vector is just a fn, its return value is the type and that type is unique for each T, dimensions combination. What I really want is a way to express "types that were returned by a particular function" as a parameter type.
lunamn has quit [Ping timeout: 265 seconds]
<Aransentin> `fn doSomething( comptime T : type, vector : T )` ?
<Aransentin> You're allowed to pass anything to it at first glance though, so not exactly beautiful
frmdstryr has joined #zig
schme245 has joined #zig
<pixelherodev> mq32, yes, but by "modern CPU archs" it explicitly states parallelism
<mq32> i think the point is more to use something like SSA instead of enforced "sequentialism"
* pixelherodev shrugs
doublex has quit [Ping timeout: 260 seconds]
ofelas has quit [Ping timeout: 248 seconds]
ofelas has joined #zig
doublex has joined #zig
doublex has quit [Ping timeout: 260 seconds]
doublex has joined #zig
ofelas has quit [Ping timeout: 248 seconds]
doublex_ has joined #zig
doublex has quit [Ping timeout: 268 seconds]
doublex has joined #zig
doublex_ has quit [Read error: Connection reset by peer]
ofelas has joined #zig
ofelas has quit [Ping timeout: 248 seconds]
ofelas has joined #zig
ofelas has quit [Ping timeout: 245 seconds]
doublex has quit [Ping timeout: 268 seconds]
<kirke67> pixelherodev - yes that does work, and that's the format that's used for the std methods - I suppose it's good enough for me :) .. It would be super nice though to have built-in type safety for generic types and the easy syntax of fn doSomething( vector : Vector ) void {} and Vector would represent any Vector( T, dim ).