<dh`>
in most cases if you have a global used "everywhere" it suggests that "everywhere" should be refactored
adanwan has joined #ocaml
<d_bot>
<Basil> Sounds perfect ty (GLFW-OCaml + tsdl?)
<d_bot>
<Basil> I dont mind that option too as long as i get easy keyboard input, mouse input n "put dot on screen" stuff as idm the software rasterizer route
bobo_ has joined #ocaml
<d_bot>
<Basil> But 3d graphics n create texture for free would be nice
spip has quit [Ping timeout: 252 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dextaa has quit [Read error: Connection reset by peer]
dextaa has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
williewillus_ has joined #ocaml
rgrinberg has joined #ocaml
chrisz has quit [Ping timeout: 252 seconds]
chrisz has joined #ocaml
rgrinberg has quit [Ping timeout: 240 seconds]
jpds has quit [Ping timeout: 268 seconds]
John_Ivan has quit [Ping timeout: 245 seconds]
jpds has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]
jpds has quit [Remote host closed the connection]
jpds has joined #ocaml
williewillus_ is now known as williewillus
adanwan has quit [Ping timeout: 268 seconds]
adanwan has joined #ocaml
Sankalp has quit [Read error: Connection reset by peer]
Sankalp has joined #ocaml
jpds has quit [Remote host closed the connection]
jpds has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
<thymage32>
How do I force a reinstall of the local git repo
<thymage32>
I mean, an opam pin
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
trev has joined #ocaml
rgrinberg has joined #ocaml
<d_bot>
<sim642> Call opam upgrade on the pinned package name
mbuf has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zebrag has quit [Quit: Konversation terminated!]
kurfen_ has quit [Ping timeout: 244 seconds]
kurfen has joined #ocaml
azimut_ has quit [Read error: Connection reset by peer]
<sim642>
Anyone know how big the archives cache for the entirety of opam-repository would be?
Serpent7776 has joined #ocaml
<d_bot>
<gantsev.denis> What do u need both GLFW and SDL for? They are alternatives, not stackable components
<d_bot>
<gantsev.denis>
<d_bot>
<gantsev.denis> Unless you know exactly what you are doing, i think you meant "ocaml opengl bindings" + (glfw | sdl2)
<d_bot>
<Basil> I think brainfart because i was thinking of how SDL2 has audio
<d_bot>
<Basil> While GLFW doesnt
<d_bot>
<gantsev.denis> Yup Sdl provides much more
<d_bot>
<Basil> But like ur right in that if theres already SDL2
<d_bot>
<Basil> Might as well use it for keyboard n window
<d_bot>
<gantsev.denis> Exactly
<d_bot>
<Basil> Ye
<d_bot>
<Basil> But thats prob why i said both last night
williewillus has quit [Quit: Leaving]
Tuplanolla has joined #ocaml
azimut_ has quit [Read error: Connection reset by peer]
azimut has joined #ocaml
<d_bot>
<atlx> Why does ocaml have the syntax of chaining a long single expression together instead of using traditional blocks?
<d_bot>
<atlx> Is there specific benefit(s) to that decision
Haudegen has joined #ocaml
adanwan has quit [Quit: _]
adanwan has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
jpds1 has joined #ocaml
jpds has quit [Ping timeout: 268 seconds]
adanwan has quit [Remote host closed the connection]
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
adanwan has joined #ocaml
<sim642>
The benefit is that it's an expression, not a block
<sim642>
So you can use it both inside other expressions and imperative computations
<sim642>
Whereas you cannot put a traditional block in the middle of an expression
<sim642>
There's no need for distinguishing expressions and blocks, because imperative computations can be just expressions with unit type sequenced together
<sim642>
Kind of like the comma operator in C
<dh`>
in some ways a better way to think about it is that a statement is an expression of type unit
<dh`>
but also, ultimately, the only real difference between "begin a := 3; b := 4 end" in ocaml and "{ a = 3; b = 4; }" in C or whatnot is whether that additional semicolon appears or not
<dh`>
there are Cish languages where a block takes on the value of the last thing in it
jpds1 has quit [Remote host closed the connection]
jpds1 has joined #ocaml
jpds1 has quit [Remote host closed the connection]
jpds1 has joined #ocaml
jpds1 has quit [Remote host closed the connection]
jpds1 has joined #ocaml
bartholin has joined #ocaml
John_Ivan has joined #ocaml
Serpent7776 has quit [Ping timeout: 240 seconds]
<qwr>
imho compiler also doesn't really distinguish between expression/statement (outside of optimizations)
thymage32 has quit [Ping timeout: 245 seconds]
omegatron has joined #ocaml
<d_bot>
<Et7f3 (@me on reply)> rust does this
Serpent7776 has joined #ocaml
trev has quit [Remote host closed the connection]
Haudegen has quit [Quit: Bin weg.]
yilin has joined #ocaml
Anarchos has joined #ocaml
<Anarchos>
hello
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
Haudegen has joined #ocaml
azimut has quit [Ping timeout: 268 seconds]
jpds1 has quit [Ping timeout: 268 seconds]
jpds1 has joined #ocaml
azimut has joined #ocaml
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
reynir has quit [Quit: WeeChat 3.0]
bartholin has quit [Quit: Leaving]
<d_bot>
<mbacarella> hmmm watching a long opam install play out I wonder to myself... what's blocking the use of an internet global binary cache for ocaml build artifacts? is it that ocaml builds aren't strictly reproducible yet?
bartholin has joined #ocaml
<olle>
How would you do lazy initialization of record fields in OCaml?
<yilin>
mbacarella: nix has ocaml packages which are pre-compiled distributed using its package manager.
<hannes>
mbacarella: they're not even relocatable -- i.e. one installs into /home/hannes/.opam/foo/ is not guaranteed to work with /home/mbacarella/.opam/bar ..
bartholin has quit [Quit: Leaving]
bartholin has joined #ocaml
<d_bot>
<mbacarella> build *artifact* are not even relocatable? or the .exe isnt'?
<hannes>
IIRC artifacts contain path names where they've been built, and exe are not relocatable -- but am not entirely sure anymore
<d_bot>
<mbacarella> actually I would expect the exe to be relocatable, that was dumb of me 🙂
<d_bot>
<Et7f3 (@me on reply)> executable should be since esy can relocate some
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
<d_bot>
<mbacarella> you can use promote .exe files to the tree and copy them to other hosts that don't have opam environments
<d_bot>
<Et7f3 (@me on reply)> some binary will call opam them self but majority can be moved without requiring opam
szkl has joined #ocaml
rgrinberg has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
azimut has quit [Ping timeout: 268 seconds]
Haudegen has quit [Quit: Bin weg.]
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
trev has joined #ocaml
adanwan has quit [Ping timeout: 268 seconds]
bartholin has quit [Quit: Leaving]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
adanwan has joined #ocaml
mbuf has quit [Quit: Leaving]
xgqt has quit [Read error: Connection reset by peer]
xgqt has joined #ocaml
Haudegen has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
Serpent7776 has quit [Quit: WeeChat 1.9.1]
zebrag has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
trev has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
yilin has quit [Ping timeout: 245 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]