<emekankurumeh[m]>
how in status quo zig you can store `promise`s from different functions in an array together
_whitelogger has joined #zig
<daurnimator>
emekankurumeh[m]: given that @Frames for different functions will need to be different sizes.... I don't know how you'd have an array of them
<daurnimator>
andrewrk: did the autohash PR get mixed into your coroutine branch somehow?
marijnfs_ has joined #zig
marijnfs has quit [Ping timeout: 244 seconds]
ltriant has quit [Ping timeout: 258 seconds]
lunamn has quit [Ping timeout: 272 seconds]
lunamn has joined #zig
ltriant has joined #zig
ltriant has quit [Ping timeout: 268 seconds]
mipri has left #zig [#zig]
ltriant has joined #zig
hio has quit [Quit: Connection closed for inactivity]
kristoff_it has joined #zig
kristoff_it has quit [Ping timeout: 272 seconds]
<daurnimator>
hrm, I can't find it now.... where is an issue about constructing a call at comptime
darithorn has quit [Remote host closed the connection]
<fengb>
"This was a weekend project. You probably shouldn't use it in any projects." :P
<daurnimator>
fengb: that's for the project as a whole. the terminfo bit however is pretty solid
<fengb>
Oh I see
<fengb>
It's the ANSI control characters?
<daurnimator>
no... terminfo is a database on your computer that tells libraries (like curses) what the sequences are for various terminals
<mq32>
if i understand correctly, not only ANSI
<fengb>
Oh right
<mq32>
ANSI is a single termcap where you could also have ones for a TTY oder Tek terminal
<fengb>
This is where I got stuck with termbox >_>
<daurnimator>
it contains both simple ones like "\r" goes to start of line. but also potentially complex ones, like how to reset the terminal
laaron has quit [Remote host closed the connection]
<daurnimator>
FWIW that lua-tui project also has a fun escape code parser.... I managed to find major bugs in every terminal emulator I played with.....
<daurnimator>
which is another way to say: off the beaten path lay dragons
<fengb>
“That is a sign you hopefully know better than to blindly run unknown commands from the internet and/or are a curious person. We like you already.”
<fengb>
There's something in the world that likes me!
halosghost has joined #zig
sourgrasses has quit [Ping timeout: 258 seconds]
FireFox317 has joined #zig
<FireFox317>
The CI builds for windows are not working anymore. It is stuck on a pkg_import test, however it is not crashing or anything and just runs until the maximum time of 6h is reached.
<FireFox317>
The builds for linux and mac however do succeeded
FireFox317 has quit [Remote host closed the connection]
fengb has quit [Read error: Connection reset by peer]
ltr- has joined #zig
<andrewrk>
daurnimator, the inverse is orelse
<dimenus>
is there any way to debug why Zig is unable to inline a function?
Akuli has joined #zig
<Tetralux>
fengb, daurnimator: I suppose andrewrk is right actually - instead of `if (foo != null)`, `var value_to_proceed_with = foo orelse return false;` is generally a better pattern in Zig to go for.
<Tetralux>
(.. Mainly because it avoids naming the optional.)
<mikdusan>
can confirm: windows builds hang on test `cd test/standalone/use_alias; zig build test`; since commit af866140
<mq32>
someone asked if there is any language except for C++ and D that could make something like automatic function creation
<Tetralux>
Automatic function creation?
<Tetralux>
What does that mean?
fengb_ has joined #zig
jkbbwr has quit [Ping timeout: 248 seconds]
<mq32>
this code creates 256 functions which can be used as distinct callbacks to libraries
<mq32>
the orignal problem was that a library allows callback functions but without a "context" parameter
<mq32>
and the solution is: create a bunch of functions which provide a callback that calls a certain function *with* context option
<fengb_>
mq32: that style is used in std too — std/zig/parse.zig
<samtebbs>
mq32: I can see that being useful for generating interrupt handlers in a kernel. At the moment we're doing so with assembly but would rather get rid of it.
<mq32>
samtebbs, oh yeah!
<mq32>
i have made that assembler stuff already
<fengb_>
Oh with context... like fake closures
<mq32>
fengb_: yeah
<mq32>
with zig that's actually pretty reasonable and easy
<mq32>
and with the "function literal" syntax (x = fn() void { }) we wouldn't even need a helper struct
<fengb_>
I was planning on hand rolling something that needs "arbitrary" arguments
<mq32>
got to go
<mq32>
i hope i get my hands on some useful zig project soon…
<mq32>
<= thinks about creating a simple paint application
<samtebbs>
mq32: o/
<halosghost>
mq32: sounds fun
<halosghost>
mq32: do it in ncurses with sixel? :D