John_Ivan_ has quit [*.net *.split]
xgqt has quit [*.net *.split]
bobo_ has quit [*.net *.split]
rwmjones has quit [*.net *.split]
terrorjack has quit [*.net *.split]
motherfsck has quit [*.net *.split]
Myrl has quit [*.net *.split]
hannes has quit [*.net *.split]
genpaku has quit [*.net *.split]
mjacob has quit [*.net *.split]
reynir has quit [*.net *.split]
Putonlalla has quit [*.net *.split]
jtm has quit [*.net *.split]
nerdypepper has quit [*.net *.split]
hannes has joined #ocaml
rwmjones has joined #ocaml
bobo_ has joined #ocaml
genpaku has joined #ocaml
Putonlalla has joined #ocaml
John_Ivan_ has joined #ocaml
John_Ivan_ has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
jtm has joined #ocaml
John_Ivan has joined #ocaml
xgqt has joined #ocaml
reynir has joined #ocaml
motherfsck has joined #ocaml
terrorjack has joined #ocaml
Myrl has joined #ocaml
mjacob has joined #ocaml
nerdypepper has joined #ocaml
<
John_Ivan>
is simply writing out a variable in an expression the way to "return" a specific one in a function having multiple?
<
John_Ivan>
take for example:
<
John_Ivan>
let function_call x y z = if x = 0 then y else z;;
waleee has quit [Ping timeout: 255 seconds]
waleee has joined #ocaml
zebrag has joined #ocaml
perrierjouet has quit [Quit: WeeChat 3.6]
perrierjouet has joined #ocaml
Haudegen has quit [Ping timeout: 268 seconds]
zebrag has quit [Quit: Konversation terminated!]
azimut_ has quit [Remote host closed the connection]
azimut has joined #ocaml
raskol has joined #ocaml
williewillus has joined #ocaml
chrisz has quit [Ping timeout: 248 seconds]
chrisz has joined #ocaml
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
tizoc has quit [Quit: Coyote finally caught me]
tizoc has joined #ocaml
waleee has quit [Ping timeout: 255 seconds]
raskol has quit [Ping timeout: 255 seconds]
Myrl has quit [Changing host]
Myrl has joined #ocaml
mima has quit [Ping timeout: 252 seconds]
thermo has quit [Remote host closed the connection]
thermo has joined #ocaml
spip has joined #ocaml
bobo_ has quit [Ping timeout: 252 seconds]
thermo has quit [Remote host closed the connection]
thermo has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gopiandc1 has quit [Read error: Connection reset by peer]
rgrinberg has joined #ocaml
gopiandc1 has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mbuf has joined #ocaml
trev has joined #ocaml
Putonlalla has quit [Quit: Leaving.]
williewillus has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.1)]
bartholin has joined #ocaml
John_Ivan has quit [Ping timeout: 268 seconds]
tomku has quit [Ping timeout: 244 seconds]
tomku has joined #ocaml
Serpent7776 has joined #ocaml
mima has joined #ocaml
gopiandc1 has quit [Read error: Connection reset by peer]
szkl has quit [Quit: Connection closed for inactivity]
Haudegen has joined #ocaml
gopiandc1 has joined #ocaml
olle has joined #ocaml
jpds1 has quit [Remote host closed the connection]
azimut has quit [Remote host closed the connection]
jpds1 has joined #ocaml
azimut has joined #ocaml
wonko has joined #ocaml
jlrnick has joined #ocaml
<
olle>
I think I finally will have to do that escape analysis thing I've thought about for so long...
<
olle>
I wonder if anyone already did it in OCaml :d
pukkamustard has joined #ocaml
azimut has quit [Ping timeout: 268 seconds]
Serpent71 has joined #ocaml
Serpent7776 has quit [Ping timeout: 268 seconds]
Serpent71 is now known as Serpent7776
<
olle>
iirc, you're supposed to build up a graph on what points to what, and then iterate that graph
<
zozozo>
olle: there is a partial escape analysis in the compiler for the ref to mutable variable optimization
<
olle>
zozozo: Ooooh, that's a nice tip
bobo_ has joined #ocaml
spip has quit [Ping timeout: 260 seconds]
jlrnick has quit [Ping timeout: 240 seconds]
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
gopiandc1 has quit [Ping timeout: 252 seconds]
gopiandc1 has joined #ocaml
waleee has joined #ocaml
mima has quit [Ping timeout: 260 seconds]
rwmjones has quit [Ping timeout: 248 seconds]
rwmjones has joined #ocaml
wonko has quit [Ping timeout: 240 seconds]
bartholin has quit [Quit: Leaving]
waleee has quit [Ping timeout: 244 seconds]
waleee has joined #ocaml
wonko has joined #ocaml
<
olle>
Couldn't find it in the code tho
<
olle>
Meh, I'll just give it a go later
szkl has joined #ocaml
wonko has quit [Ping timeout: 255 seconds]
gopiandc1 has quit [Ping timeout: 252 seconds]
gopiandc1 has joined #ocaml
mima has joined #ocaml
wonko has joined #ocaml
jlrnick has joined #ocaml
jpds1 has quit [Remote host closed the connection]
jpds1 has joined #ocaml
John_Ivan has joined #ocaml
jpds1 is now known as jpds
wonko has quit [Ping timeout: 260 seconds]
zebrag has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Ping timeout: 268 seconds]
waleee has quit [Ping timeout: 268 seconds]
wonko has joined #ocaml
jlrnick has quit [Ping timeout: 268 seconds]
raskol has joined #ocaml
Serpent7776 has quit [Quit: WeeChat 1.9.1]
raskol has quit [Ping timeout: 252 seconds]
Tuplanolla has joined #ocaml
trev has quit [Remote host closed the connection]
wonko has quit [Ping timeout: 255 seconds]
mbuf has quit [Quit: Leaving]
mima has quit [Ping timeout: 268 seconds]
azimut has joined #ocaml
waleee has joined #ocaml
raskol has joined #ocaml
raskol has quit [Ping timeout: 260 seconds]
jpds has quit [Remote host closed the connection]
jpds has joined #ocaml
wonko has joined #ocaml
raskol has joined #ocaml
<
olle>
Is it preferred to use records in AST instead of tuples?
<
olle>
(identifier * type_)
<
olle>
Or {identifier: string; t: type_}
<
olle>
identifier being an alias for string, sorry
<
sim642>
If the fields are obvious from the constructor name (and there's few of them), then tuples are probably fine
<
olle>
Yeah, but it kinda adds up after awhile
raskol has quit [Ping timeout: 244 seconds]
<
olle>
Function of function_name * param list * statement list * typ
<
olle>
Like such a thing
wonko has quit [Ping timeout: 260 seconds]
<
sim642>
I guess that's reaching a territory where records are more handy
<
sim642>
Although the CIL library that I've worked on has such long tuples in many places
<
sim642>
But they're annoying
<
sim642>
Because you have to remember the component order when pattern matching
<
sim642>
Instead of something like "Call { name; _ }"
<
sim642>
It's also easier to add fields then without having to change everything everywhere
<
olle>
Also a good point
jlrnick has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tuplanolla has quit [Ping timeout: 268 seconds]
jlrnick has quit [Ping timeout: 268 seconds]
Tuplanolla has joined #ocaml
mima has joined #ocaml
justache is now known as justDeez
Tuplanolla has quit [Quit: Leaving.]
olle has quit [Ping timeout: 260 seconds]
jpds has quit [Remote host closed the connection]
wonko has joined #ocaml
bobo_ has quit [Read error: Connection reset by peer]
jpds has joined #ocaml
bobo_ has joined #ocaml
wonko has quit [Ping timeout: 260 seconds]
jpds has quit [Remote host closed the connection]
jpds has joined #ocaml
raskol has joined #ocaml
rgrinberg has joined #ocaml
raskol has quit [Ping timeout: 255 seconds]
jpds has quit [Ping timeout: 268 seconds]
raskol has joined #ocaml