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/
<ky0ko> so if, hypothetically, i were wanting to work on getting zig to build for win9x... where would i start?
<marler8997_> I would say start by seeing a counselor so you can try to cope with the deep dark hole of self loathing that you're digging yourself into
<marler8997_> Then...maybe see if you can get cmake to work? :)
<marler8997_> Then...build llvm/clang/lld
<ky0ko> its ok, i run irix on a 150mhz mips machine and do real (paid) work on it, in 2020. i already know how to cope :)
<marler8997_> and see how far this gets you: https://github.com/ziglang/zig/wiki/Building-Zig-on-Windows
<marler8997_> irix? never heard of that one
<marler8997_> do you have access to all the source for it?
<ky0ko> nope! irix is sgi's closed source unix os
<ky0ko> it... does not resemble other unix systems in most ways
<marler8997_> interesting...I personally would never elect to use an OS that I don't have source to...of course I have to use Windows all the time, but it's not by choice
<marler8997_> anyway, see how far you can get compiling LLVM, let us know how far you get
<marler8997_> not sure which compilers work on win9x...
<ky0ko> my normal primary os is netbsd, and i'm with you there as far as wanting to use operating systems i have the source to
<ky0ko> but i also like messing around with really old stuff, for which sometimes that is not an option
<ky0ko> most sgi hardware can run netbsd, and some can run linux, but for a few of them, irix is the only possibility
<leeward> ky0ko: That is amazing. I haven't heard anyone talk about running irix since...1999?
<ronsor> porting zig to IRIX?
<ky0ko> ronsor: a couple folks are working on an llvm target for it, so it's probable that could happen :)
<ky0ko> which is great for me - the more zig is able to support obscure and unusual platforms, the easier it is for me to justify using it for any given project
<ronsor> I hope zig gets full support for riscv32 + UEFI personally
<ronsor> then I can run it on vexriscv on an FPGA
<ky0ko> the portability of c, its ability to run on hardware spanning back many decades, is one of the reasons i use it. zig's already got the other reasons covered pretty well
<ky0ko> if it can be made to target dos, win9x, irix, and mac os 7, i have basically no reason to use c for my own projects anymore
<ky0ko> i have an interesting bit of riscv hardware that could be neat to run zig on
<ky0ko> i've been trying to get linux going but having issues because it uses an old revision of the supervisor spec and mmu
<ky0ko> which falsely makes current spec software detect no mmu (and so there's a bunch of info out there falsely saying it doesn't have one)
waleee-cl has quit [Quit: Connection closed for inactivity]
<ky0ko> so there's a uclinux port, but i want the full thing
<marler8997_> I think we'll be in a much better position to support win9x once we have the stage2 compiler
nephele_ has joined #zig
nephele_ is now known as nephele
nephele has quit [Ping timeout: 240 seconds]
AshOhms has left #zig [#zig]
_Vi has quit [Ping timeout: 272 seconds]
invokesus has quit [Ping timeout: 240 seconds]
xackus has joined #zig
xackus_ has quit [Ping timeout: 246 seconds]
cole-h has joined #zig
<pixelherodev> Oh neat, spu_ii branch merged :D
<pixelherodev> Time to do more SPU-II and CBE work :)
<daurnimator> marler8997_: I'd rather support NT 3
<daurnimator> win9x is a total mess
<marler8997_> wow that's going waaay back
<marler8997_> before my time
<ronsor> win9x: C:\CON\CON
xackus has quit [Ping timeout: 240 seconds]
springworm has joined #zig
<pixelherodev> Microsoft: Putting the con back in the economy since the 90s :P
<springworm> Does zig have its own assembler for self hosted?
<pixelherodev> Sorta
<pixelherodev> We don't produce asm, we produce raw machine code
<pixelherodev> e.g. for the SPU II backend, I use `@bitCast(u16, Instruction{ .condition = .always, .input0 = .zero, .input1 = .zero, .modify_flags = false, .output = .discard, .command = .undefined0 })`
<pixelherodev> (as one example)
springworm has quit [Ping timeout: 265 seconds]
marnix has joined #zig
xackus has joined #zig
_whitelogger has joined #zig
joey152 has quit [Ping timeout: 264 seconds]
xackus has quit [Ping timeout: 240 seconds]
decentpenguin has quit [Read error: Connection reset by peer]
decentpenguin has joined #zig
marnix has quit [Ping timeout: 258 seconds]
cole-h has quit [Quit: Goodbye]
ur5us has joined #zig
marnix has joined #zig
kushalp has quit [Read error: Connection reset by peer]
karrick has quit [Ping timeout: 244 seconds]
tracernz has quit [Read error: Connection reset by peer]
tines9 has quit [Ping timeout: 265 seconds]
r0bby has quit [Read error: Connection reset by peer]
rzezeski has quit [Read error: Connection reset by peer]
procnto has quit [Read error: Connection reset by peer]
kwilczynski has quit [Read error: Connection reset by peer]
tines9 has joined #zig
karrick has joined #zig
procnto has joined #zig
rzezeski has joined #zig
kwilczynski has joined #zig
kushalp has joined #zig
tracernz has joined #zig
r0bby has joined #zig
utzig has quit [Read error: Connection reset by peer]
JimRM has quit [Read error: Connection reset by peer]
eddyb[legacy] has quit [Read error: Connection reset by peer]
ovf has quit [Ping timeout: 260 seconds]
ky0ko_ has joined #zig
_Vi has joined #zig
jzelinskie has quit [Ping timeout: 260 seconds]
JimRM has joined #zig
eddyb[legacy] has joined #zig
jzelinskie has joined #zig
utzig has joined #zig
ovf has joined #zig
drewr has quit [Ping timeout: 244 seconds]
invokesus has joined #zig
drewr has joined #zig
craigo has quit [Ping timeout: 240 seconds]
cr1901_modern has joined #zig
Invader_Bork has joined #zig
radgeRayden has joined #zig
ur5us has quit [Ping timeout: 240 seconds]
Snetry has quit [Ping timeout: 260 seconds]
Snetry has joined #zig
KoljaKube has joined #zig
<bsrd> Is there an or a combination of internal functions that maps floats of any size to unsigned of equivalent size, i.e. @bitCast(uint, float), where @sizeOf(uint) == @sizeOf(float)?
<KoljaKube> Don't think so, but since there are only 4 float types, you could just use a switch
waleee-cl has joined #zig
euantor is now known as euantorano
euantorano has quit []
euantorano has joined #zig
<daurnimator> bsrd: @floatToInt ?
cren has joined #zig
<bsrd> That doesn't preserve the bits and still has the problem of having to manually set the int type.
<alva> You could use @bitSizeOf and std.meta.IntType (IIRC)
<alva> std.meta.IntType(false, num_bits)
<bsrd> Exactly what I was looking for ^^ Thanks a lot!
<alva> :)
xackus has joined #zig
cren has quit [Ping timeout: 260 seconds]
<cr1901_modern> https://github.com/ziglang/zig/blob/bfe9d4184fb9b4d0cfd0964f18bb3789f3023939/test/stage1/behavior/generics.zig#L14 Is the "(comptime a)" in parens an alternate syntax for comptime expression?
_whitelogger has joined #zig
<daurnimator> cr1901_modern: the `comptime` keyword like that makes its unary operand get evaluated at compiletime
<cr1901_modern> I see
<cr1901_modern> is there any case where comptime like that is useful besides "I've already used comptime in a higher scope to refer to the same variable"?
<cr1901_modern> And with that, first generic function I've written: https://github.com/cr1901/zig-aoc2016/blob/master/day2/day2.zig#L26
xackus has quit [Ping timeout: 246 seconds]
xackus has joined #zig
marnix has quit [Read error: Connection reset by peer]
knebulae has quit [Read error: Connection reset by peer]
dingenskirchen has quit [Quit: ZNC 1.7.5 - https://znc.in]
<cr1901_modern> Alright, I'm stumped on this one... I'm trying to coerce an array to a slice, but I get an error saying the array turned into a constant pointer to the array. What could possibly be happening? http://ix.io/2v15
<cr1901_modern> error is "expected type '[]u16', found *const [3]u16" on line 51
dingenskirchen has joined #zig
dingenskirchen has quit [Client Quit]
xackus has quit [Ping timeout: 264 seconds]
cren has joined #zig
dingenskirchen has joined #zig
KoljaKube has quit [Ping timeout: 244 seconds]
KoljaKube has joined #zig
<ifreund> cr1901_modern: a little late, but you need to capture with |*tri| if you want tri to be mutable
<ifreund> or am I making things up? at the very least you can do `var foo = tri; and pass &foo
manikawnth has joined #zig
<manikawnth> Hi, I'm new to zig and this might be a stupid question. Is there any hidden top-level await feature? I mean, if the function invoking await is not invoked using async, instead of suspending will it return the value?
<ifreund> manikawnth: pretty sure zig doesn't allow suspend points (this includse await) in non-async functions
cole-h has joined #zig
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
cren has quit [Ping timeout: 240 seconds]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
craigo has joined #zig
marnix has joined #zig
frmdstryr has joined #zig
Snetry has quit [Quit: left Freenode]
mokafolio has quit [Quit: Bye Bye!]
Snetry has joined #zig
mokafolio has joined #zig
cren has joined #zig
manikawnth has quit [Remote host closed the connection]
marnix has quit [Read error: Connection reset by peer]
wootehfoot has quit [Read error: Connection reset by peer]
marnix has joined #zig
invokesus has quit [Remote host closed the connection]
knebulae has joined #zig
KoljaKube has quit [Quit: WeeChat 2.9]
_Vi has quit [Ping timeout: 272 seconds]
marnix has quit [Ping timeout: 265 seconds]
cren has quit [Quit: Swirc IRC client]
_Vi has joined #zig
cole-h has quit [Quit: Goodbye]
eiro has quit [Ping timeout: 260 seconds]
ur5us has joined #zig
eiro has joined #zig
Invader_Bork has quit [Read error: Connection reset by peer]
leeward has quit [Read error: Connection reset by peer]
ovf has quit [Read error: Connection reset by peer]
utzig has quit [Ping timeout: 240 seconds]
utzig has joined #zig
ovf has joined #zig
_Vi has quit [Ping timeout: 258 seconds]
xackus has joined #zig
radgeRayden has quit [Ping timeout: 246 seconds]
xackus has quit [Ping timeout: 265 seconds]