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/
<davi2205> does Zig have visibility modifiers for struct fields?
<davi2205> or anything that could hide some fields inside a struct?
_Vi has quit [Ping timeout: 272 seconds]
a_chou has joined #zig
davi2205 has quit [Quit: Leaving]
dermetfan has quit [Ping timeout: 260 seconds]
nvmd has quit [Quit: Later nerds.]
nephele_ has joined #zig
nephele has quit [Ping timeout: 256 seconds]
nephele_ is now known as nephele
xd1le has quit [Ping timeout: 260 seconds]
xd1le has joined #zig
xd1le has quit [Read error: Connection reset by peer]
<pixelherodev> ikskuh: congrats, Kristall is now my *only* web browser :P
xd1le has joined #zig
xd1le has quit [Read error: Connection reset by peer]
xd1le has joined #zig
<fengb> Boo, readIntLittle won't let me use floats anymore :(
xd1le has quit [Read error: Connection reset by peer]
xd1le has joined #zig
knebulae has quit [Read error: Connection reset by peer]
cole-h has joined #zig
marnix has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
knebulae has joined #zig
waleee-cl has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #zig
tsujp has joined #zig
marnix has quit [Ping timeout: 260 seconds]
marnix has joined #zig
cole-h has quit [Quit: Goodbye]
nephele_ has joined #zig
moka has joined #zig
dermetfan has joined #zig
procnto has quit [Ping timeout: 240 seconds]
dch has quit [Ping timeout: 240 seconds]
nephele_ has quit [Remote host closed the connection]
ovf has quit [Ping timeout: 244 seconds]
nephele has quit [Ping timeout: 240 seconds]
mokafolio has quit [Ping timeout: 244 seconds]
moka is now known as mokafolio
Bastian[m] has quit [Ping timeout: 244 seconds]
procnto has joined #zig
euantorano has quit [Ping timeout: 240 seconds]
nephele has joined #zig
rzezeski has quit [Ping timeout: 240 seconds]
strmpnk has quit [Ping timeout: 244 seconds]
ovf has joined #zig
euantorano has joined #zig
rzezeski has joined #zig
Bastian[m] has joined #zig
dch has joined #zig
strmpnk has joined #zig
nephele has quit [Read error: Connection reset by peer]
nephele has joined #zig
ifreund_ has quit [Ping timeout: 240 seconds]
nephele has quit [Read error: Connection reset by peer]
nephele has joined #zig
nephele has quit [Remote host closed the connection]
nephele has joined #zig
BaroqueLarouche has quit [Ping timeout: 244 seconds]
ifreund_ has joined #zig
nephele has quit [Quit: I dropped something]
a_chou has quit [Quit: a_chou]
BaroqueLarouche has joined #zig
dermetfan has quit [Ping timeout: 272 seconds]
nephele has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
nephele has quit [Quit: I dropped something]
nephele has joined #zig
nephele has quit [Quit: I dropped something]
nephele has joined #zig
nephele has quit [Quit: I dropped something]
nephele has joined #zig
nephele has quit [Remote host closed the connection]
SimonNa has quit [Remote host closed the connection]
nephele has joined #zig
_Vi has joined #zig
nephele has quit [Quit: I dropped something]
nephele has joined #zig
jorge-jbs has left #zig ["User left"]
waleee-cl has joined #zig
marnix has quit [Ping timeout: 240 seconds]
marnix has joined #zig
xackus has joined #zig
nephele has quit [Quit: I dropped something]
nephele has joined #zig
xackus has quit [Remote host closed the connection]
xackus has joined #zig
dermetfan has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
marnix has quit [Ping timeout: 240 seconds]
marnix has joined #zig
tracernz has quit [Ping timeout: 272 seconds]
tracernz has joined #zig
layneson has joined #zig
layneson has quit [Client Quit]
layneson has joined #zig
marnix has quit [Ping timeout: 244 seconds]
marnix has joined #zig
xackus has quit [Ping timeout: 244 seconds]
layneson has quit [Ping timeout: 240 seconds]
marnix has quit [Ping timeout: 240 seconds]
layneson has joined #zig
frett27 has joined #zig
bfredl has joined #zig
<bfredl> Hello. Is https://github.com/andrewrk/tetris still the "state of art" to write a simple opengl app in zig?
<bfredl> or is there some library already that abstracts opengl/glfw ?
<frett27> think there are several others initiatives that exists, i saw some messages about it, (have you tried to search the archive ?)
<bfredl> a little
<bfredl> the wayland compositor stuff by ifreund is probably relevant to my goals
<bfredl> not sure how much that gets into the opengl/egl layer of thigs
<bfredl> things
<bfredl> I have searched github
<bfredl> but not #zig chat logs or anything like that
<bfredl> wonderful, I will take a good look at that
<bfredl> (after eating some fooods)
<frett27> hope you'll find an opened initiative
<bfredl> yea, I expect to write lowlevel stuff but it would be nice to bulid on something existing
<bfredl> work on a common sandcastle rather than a tiny one my own
<ifreund> bfredl: wlroots handles the rendering abstraction for me
<ifreund> you might want to consider SDL or similar
<bfredl> yea. depending on SDL might be a good starting point. "ideally" I only want to depend on system libopengl + minmal toolkit (just to get a X11 or wayland or win32 surface) + whatever zig wrapper already exists. But I can do what is simplest to get started first :]
<ifreund> well zig-window is what you want, but it's currently at vaporware stage
<layneson> C is so easy to use from Zig that I just pull in GLFW and Epoxy for OpenGL stuff
<ifreund> yeah it really just depends what level of abstraction you want to work at
<ifreund> zig can use all the usual C libs
smolck has joined #zig
<bfredl> Layneson: yea, that would be the "fork Tetris" path
<bfredl> I just wonder if it be useful to abstract half of Tetris into a lib
<bfredl> Or someone already done that
<bfredl> Just to get a surface + keyboard input
<bfredl> Then the app provides the shaders
tdeo has quit [Ping timeout: 256 seconds]
<bfredl> Ok, gotta eat now (but still reading the chan log later)
a_chou has joined #zig
tdeo has joined #zig
<smolck> is there a Zig code formatter somewhere?
<Michcioperz> like, the built-in `zig fmt`?
<smolck> yes! how did I not know that existed XD
<smolck> thank you Michcioperz
<Michcioperz> i realized it did because the vim plugin automatically runs it when you save
<smolck> ah, I should PR support for that to Neoformat
halbeno has quit [Quit: Leaving.]
smolck has left #zig [#zig]
marnix has joined #zig
halbeno has joined #zig
a_chou has quit [Ping timeout: 260 seconds]
linuxgemini has quit [Quit: Ping timeout (120 seconds)]
linuxgemini has joined #zig
cole-h has joined #zig
xackus has joined #zig
layneson has quit [Ping timeout: 240 seconds]
dermetfan has quit [Ping timeout: 240 seconds]
dermetfan has joined #zig
<andrewrk> zig-window is vaporware but check out https://github.com/Aransentin/ZWL
<bfredl> Andrewrk: sure I will look it
<andrewrk> I haven't tried it yet and it only has "initial commit" so I'm not sure. but I've seen the author in the zig discord
<andrewrk> so you could ask him about it probably
<bfredl> andrewrk: BTW, what plattforms will stage2 without LLVM support in the "short term"? amd64 with linux I suppose to start with?
<bfredl> or amd64 in general I guess
<andrewrk> bfredl, https://clbin.com/805EU you can see some of the link/* and codegen/* files
<bfredl> nice
<bfredl> wasm support is cool, as well
<bfredl> (I am looking for a small embeddable "jit" for a c like lang, zig stage2 might fit the bill when it is "ready")
riba has joined #zig
cole-h has quit [Quit: Goodbye]
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
riba has quit [Ping timeout: 260 seconds]
layneson has joined #zig
marnix has quit [Ping timeout: 244 seconds]
layneson has quit [Ping timeout: 244 seconds]
factormystic has quit [Read error: Connection reset by peer]
factormystic has joined #zig
nocontent has joined #zig
<nocontent> hi!
<nocontent> why you have choosed to use spaces for indentation?
<bfredl> nocontent: what would you use
<bfredl> form feeds?
<nocontent> tabs
<nocontent> using spaces for indentation is a wasted of storage
<bfredl> reconfiguring my vimrc to use tabs in zig would be a waste of bytes in my vimrc
<nocontent> i think zig fmt should use tabs
<nocontent> zig fmt should use tabs like go fmt
* bfredl will work on an universal GPT-3 based code compressor, for the storage needs
<nocontent> i am not making fun
<bfredl> neither I am
<bfredl> data compression is serious business, and I think sparse neural networks gonna revolutionize it very soon
<nocontent> but using spaces for indentaion is not a good idea
<nephele> if using spaces is a waste of storage, then so is using letters .-.
<nocontent> you missed the point
<nephele> if you require that little storage to be reclaimed you should be using filesystem based compression
<bfredl> communicating "points" over IRC is waste of freenode network bandwidth
<nocontent> why would i realy on compression if i can use less bytes
mokafolio has quit [Quit: Bye Bye!]
<nephele> Uhhm, you do know what compression is, right?
<nocontent> no
<nephele> representing the same ammount of information in less physical spacre
<nocontent> i know that
<nephele> which is exactly what you want to do by using tabs instead of spaces, just that there are far more effective methods
<nocontent> how?
mokafolio has joined #zig
<nephele> mathematics
<nocontent> i know
<nocontent> why can't i use tabs over spaces?
<bfredl> you can do it
<bfredl> we cannot stop you
<bfredl> use a git filter
<nocontent> but zig fmt uses spaces
<bfredl> that converts upstream spaces to tabs on your computer machine
mokafolio has quit [Client Quit]
<bfredl> and vice versa on push
<nocontent> why can't zig fmt use tabs?
<bfredl> you can fork it
mokafolio has joined #zig
<nocontent> then?
<nocontent> ok
<nocontent> but i was blocked by ziglang on github
<nocontent> i just asked a question
<nocontent> also on twitter
<nocontent> the question was, Is there any simpler API?
<nocontent> to read a file to a buffer
<nocontent> andrewrk: why?
nocontent has quit [Quit: leaving]
nocontent has joined #zig
<nocontent> exit
nocontent has quit [Client Quit]
xackus has quit [Ping timeout: 258 seconds]
<WilhelmVonWeiner> what is the "rb" namespace?
<WilhelmVonWeiner> oh it got deleted in master anyway
halbeno has quit [Remote host closed the connection]
halbeno has joined #zig
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
dermetfan has quit [Ping timeout: 240 seconds]