ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput | register your nick to speak
agd5f has joined #wayland
dorkbutt has joined #wayland
Szadek has quit [Ping timeout: 480 seconds]
Szadek has joined #wayland
<DemiMarie> kennylevinsen: is this a legacy of how libwayland-server was originally just Weston?
dorkbutt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hardening has quit [Ping timeout: 480 seconds]
pounce has quit [Remote host closed the connection]
pounce has joined #wayland
dorkbutt has joined #wayland
dorkbutt has quit [Max SendQ exceeded]
columbarius has joined #wayland
co1umbarius has quit [Ping timeout: 480 seconds]
smallville7123 has joined #wayland
nerdopolis has quit [Remote host closed the connection]
nerdopolis has joined #wayland
dorkbutt has joined #wayland
Company has quit [Quit: Leaving]
dorkbutt has quit [Read error: Connection reset by peer]
UndeadLeech_ has left #wayland [#wayland]
UndeadLeech has joined #wayland
nerdopolis has quit [Ping timeout: 480 seconds]
mxz has quit [Quit: cya]
mxz has joined #wayland
agd5f has quit [Ping timeout: 480 seconds]
kts has joined #wayland
CodeSpelunker has joined #wayland
CodeSpelunker has quit []
maxzor_ has quit [Ping timeout: 480 seconds]
kts has quit [Quit: Leaving]
smallville7123 has quit [Ping timeout: 480 seconds]
kts has joined #wayland
caveman has quit [Quit: caveman]
agd5f has joined #wayland
dcz_ has joined #wayland
junaid has joined #wayland
Szadek has quit [Ping timeout: 480 seconds]
Szadek has joined #wayland
hardening has joined #wayland
rasterman has joined #wayland
rv1sr has joined #wayland
wayuser has joined #wayland
wayuser has quit []
Company has joined #wayland
caveman has joined #wayland
quantum5_ has quit []
quantum5 has joined #wayland
cool110 has quit [Remote host closed the connection]
cool110 has joined #wayland
cool110 has quit [Remote host closed the connection]
cool110 has joined #wayland
smallville7123 has joined #wayland
<smallville7123> is it normal for libwayland to use 32_bit time_t ?
<smallville7123> specifically for this
<smallville7123> printf("benchmarked %s:\t%ld.%09lds\n",
<smallville7123> s, elapsed.tv_sec, elapsed.tv_nsec);
<smallville7123> fixed-benchmark.c
<smallville7123> format specifies type 'long' but the argument has type 'time_t' (aka 'long long') [-Wformat]
<smallville7123> welp apparently microsoft doesnt "obey" printf format specifiers o.o https://godbolt.org/z/nfzeaaPT5 'printf' : format string '%ld' requires an argument of type 'long', but variadic argument 2 has type 'time_t'
<smallville7123> sizeof(time_t) is 8 on both msvc and linuc gcc
<smallville7123> linux gcc*
gschwind has joined #wayland
cool110 has quit [Remote host closed the connection]
cool110 has joined #wayland
maxzor_ has joined #wayland
maxzor_ has quit [Ping timeout: 480 seconds]
kennylevinsen_ has left #wayland [#wayland]
kennylevinsen has joined #wayland
junaid has quit [Remote host closed the connection]
eroc1990 has quit [Ping timeout: 480 seconds]
<smallville7123> welp, apparently it is cus https://stackoverflow.com/a/384672 (and https://stackoverflow.com/a/12023089 )
<smallville7123> specifically int and long are the same size on windows in both 32 bit and 64 bit
<smallville7123> "Microsoft uses a different scheme for transitioning to 64-bit: LLP64 ('long long, pointers are 64-bit'). This has the merit of meaning that 32-bit software can be recompiled without change. It has the demerit of being different from what everyone else does, and also requires code to be revised to exploit 64-bit capacities."
<smallville7123> also "All modern 64-bit Unix systems use LP64. MacOS X and Linux are both modern 64-bit systems."
<smallville7123> so i will need to refactor libwayland to work with LLP64 data model (which involves transitioning all "long" and related format specs to use "long long" instead
<emersion> i think we use sized integers when it matters
<emersion> we shouldn't assume the size of time_t
k0ral has joined #wayland
k0ral has quit []
<smallville7123> hmm
<smallville7123> then at least i will need to adjust the format specifiers to use %lld instead of %ld
<emersion> i'd suggest sending a patch to cast to int64_t and then use PRIi64
<smallville7123> since %ld == %lld on LP64 and %ld == %d on LLP64
<emersion> or 32-bit, not sure whatt's most appropriate
<smallville7123> tho in that case, time_t itself is target-arch specific
<smallville7123> eg it could be 32 bits when compiling for 32 bits, and 64 bits when compiling for 64 bits depending if LP64 or LLP64
<smallville7123> wait no...
<smallville7123> it would only be the printf format specifiers that assume specific width, right?
<emersion> %ld is for printing long int
<emersion> time_t may not be a long int
<smallville7123> yea
<emersion> so casting to the larger type would fix it
<smallville7123> but %ld assumes 4 bits on LLP64 model, right?
<smallville7123> (as sizeof long == 4)
<emersion> %ld has no fixed size
<emersion> (nit, sizeof returns a size in bytes)
<smallville7123> well it at least gaurentees to print the type of long, however the size of long itself may actually be
<emersion> sure
<smallville7123> so if long for LP64 (unix/mac) is 64 bits, but long for LLP64 is 32 bits, then we would need to convert to 64 bits, right?
<smallville7123> (which on windows, time_t happens to be 64 bits when compiling for 64 bits (_WIN64 and _USE_32_BIT_TIME cannot be specified together) )
<smallville7123> and long long is always 64 bits on both LP64 and LLP64
<smallville7123> (again, not sure if libwayland only needs to change printf specifiers or if other code also needs porting to LLP64 64 bit)
<smallville7123> imma just assume printf specifiers are only thing that needs changing for now :)
sav10 has joined #wayland
<emersion> yeah, cast to 64-bit sounds like the thing to do here
<emersion> alternatively use intmax_t and %jd
sav10 has quit [Read error: Connection reset by peer]
<smallville7123> however, windows has long tv_nsec for timespec :(
rv1sr has quit []
nerdopolis has joined #wayland
<emersion> yeah, so does Linux
kts has quit [Quit: Leaving]
Lucretia has quit [Ping timeout: 480 seconds]
sav10 has joined #wayland
Lucretia has joined #wayland
floof58 is now known as Guest1780
floof58 has joined #wayland
<smallville7123> ok
Guest1780 has quit [Ping timeout: 480 seconds]
kts has joined #wayland
smallville7123 has quit [Ping timeout: 480 seconds]
eroc1990 has joined #wayland
sav10 has quit []
sav10 has joined #wayland
Szadek has quit [Ping timeout: 480 seconds]
Szadek has joined #wayland
kts has quit [Quit: Leaving]
junaid has joined #wayland
rv1sr has joined #wayland
danvet has joined #wayland
elibrokeit_ has left #wayland [#wayland]
elibrokeit has joined #wayland
Szadek has quit [Ping timeout: 480 seconds]
Szadek has joined #wayland
maxzor_ has joined #wayland
maxzor__ has joined #wayland
maxzor_ has quit [Ping timeout: 480 seconds]
manuel1985 has joined #wayland
junaid has quit [Ping timeout: 480 seconds]
maxzor__ has quit [Ping timeout: 480 seconds]
junaid has joined #wayland
c7s_ has quit [Remote host closed the connection]
c7s has joined #wayland
Hohlraum has joined #wayland
manuel1985 has quit [Ping timeout: 480 seconds]
dorkbutt has joined #wayland
Szadek has quit [Ping timeout: 480 seconds]
Szadek has joined #wayland
Szadek has quit [Ping timeout: 480 seconds]
Szadek has joined #wayland
rv1sr has quit []
sav10 has quit []
nerdopolis has quit [Remote host closed the connection]
nerdopolis has joined #wayland
Hohlraum has quit [Remote host closed the connection]
maxzor__ has joined #wayland
dcz_ has quit [Ping timeout: 480 seconds]
maxzor__ has quit [Remote host closed the connection]
maxzor__ has joined #wayland
dorkbutt has quit [Read error: Connection reset by peer]
maxzor__ has quit [Remote host closed the connection]
maxzor__ has joined #wayland
maxzor_ has joined #wayland
sav10 has joined #wayland
maxzor__ has quit [Ping timeout: 480 seconds]
TimWolla has quit [Quit: Bye]
junaid has quit [Quit: leaving]
junaid has joined #wayland
junaid has quit [Ping timeout: 480 seconds]
rasterman has quit [Quit: Gettin' stinky!]
dorkbutt has joined #wayland
TimWolla has joined #wayland
sav10 has quit []
junaid has joined #wayland
junaid_ has joined #wayland
junaid has quit [Remote host closed the connection]
junaid_ has quit [Remote host closed the connection]
DonRichie has quit []
DonRichie has joined #wayland
caveman has quit [Remote host closed the connection]
caveman has joined #wayland
gschwind has quit [Quit: Leaving]
hardening has quit [Ping timeout: 480 seconds]
Szadek has quit [Ping timeout: 480 seconds]
Szadek has joined #wayland
tommybomb_ has left #wayland [#wayland]
tommybomb has joined #wayland
<tommybomb> Does anyone have a simple wayland + cairo example? Similar to the wayland egl example?