companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.14.0 released: https://ocaml.org/releases/4.14.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
rgrinberg has joined #ocaml
Soni has quit [Ping timeout: 240 seconds]
perrierjouet has quit [Quit: WeeChat 3.7.1]
John_Ivan has joined #ocaml
Haudegen has quit [Ping timeout: 252 seconds]
perrierjouet has joined #ocaml
taupiqueur has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 276 seconds]
Soni has joined #ocaml
motherfsck has quit [Ping timeout: 248 seconds]
jedb has quit [Read error: Connection reset by peer]
jedb_ has joined #ocaml
perrierjouet has quit [Quit: WeeChat 3.7.1]
perrierjouet has joined #ocaml
jao has quit [Ping timeout: 246 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chrisz has quit [Ping timeout: 252 seconds]
chrisz has joined #ocaml
jedb_ has quit [Remote host closed the connection]
jedb has joined #ocaml
xd1le has joined #ocaml
mbuf has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
gwizon has joined #ocaml
gwizon has quit [Client Quit]
gwizon has joined #ocaml
gwizon has quit [Client Quit]
gwizon has joined #ocaml
gwizon has quit [Remote host closed the connection]
chrisz has quit [Ping timeout: 252 seconds]
chrisz has joined #ocaml
bronsen has quit [Ping timeout: 268 seconds]
troydm has quit [Ping timeout: 260 seconds]
azimut has quit [Ping timeout: 258 seconds]
jedb_ has joined #ocaml
jedb has quit [Ping timeout: 252 seconds]
bartholin has joined #ocaml
mro has joined #ocaml
asm has quit [Changing host]
asm has joined #ocaml
olle has joined #ocaml
calvnce has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
olle has quit [Ping timeout: 248 seconds]
mro_ has joined #ocaml
mro has quit [Ping timeout: 252 seconds]
Haudegen has joined #ocaml
spip has joined #ocaml
bobo_ has quit [Ping timeout: 246 seconds]
barak has quit [Ping timeout: 276 seconds]
bronsen has joined #ocaml
lucerne has joined #ocaml
waleee has joined #ocaml
mro_ has quit [Remote host closed the connection]
mro has joined #ocaml
taupiqueur has joined #ocaml
Duns_Scrotus has quit [Ping timeout: 252 seconds]
manicennui has quit [Ping timeout: 255 seconds]
manicennui has joined #ocaml
Duns_Scrotus has joined #ocaml
mro has quit [Ping timeout: 252 seconds]
wingsorc has quit [Ping timeout: 276 seconds]
Haudegen has quit [Ping timeout: 252 seconds]
Haudegen has joined #ocaml
pie_ has quit []
pie_ has joined #ocaml
olle has joined #ocaml
taupiqueur has quit [Remote host closed the connection]
taupiqueur has joined #ocaml
taupiqueur has quit [Remote host closed the connection]
taupiqueur has joined #ocaml
taupiqueur has quit [Remote host closed the connection]
taupiqueur has joined #ocaml
John_Ivan has quit [Read error: Connection reset by peer]
John_Ivan has joined #ocaml
rgrinberg has joined #ocaml
jedb_ is now known as jedb
<jedb> how do you connect a button in lablgtk to emit a signal to cause dialog#run to return?
taupiqueur has quit [Remote host closed the connection]
zebrag has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
motherfsck has joined #ocaml
John_Ivan_ has joined #ocaml
John_Ivan has quit [Ping timeout: 252 seconds]
pie_ has quit [Ping timeout: 248 seconds]
pie_ has joined #ocaml
John_Ivan_ has quit [Read error: Connection reset by peer]
John_Ivan__ has joined #ocaml
calvnce has quit [Quit: Client closed]
rgrinberg has joined #ocaml
azimut has joined #ocaml
mro has joined #ocaml
mro has quit [Client Quit]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
justHaunted is now known as DeliriumTremens_
jao has joined #ocaml
pie_ has quit []
pie_ has joined #ocaml
DeliriumTremens_ is now known as justache
mbuf has quit [Quit: Leaving]
xd1le has quit [Quit: xd1le]
motherfsck has quit [Ping timeout: 252 seconds]
motherfsck has joined #ocaml
troydm has joined #ocaml
<greenbagels> quick question; teh regular expression in Re have to be compiled, which makes sense; is there any way to avoid having this be compiled at runtime in a final binary program?
pie_ has quit [Read error: Connection reset by peer]
John_Ivan__ has quit [Read error: Connection reset by peer]
John_Ivan_ has joined #ocaml
pie_ has joined #ocaml
Haudegen has quit [Remote host closed the connection]
Haudegen has joined #ocaml
emp has quit [Ping timeout: 260 seconds]
jao has quit [Ping timeout: 252 seconds]
jao has joined #ocaml
emp has joined #ocaml
motherfsck has quit [Ping timeout: 252 seconds]
<olle> Good question
Stumpfenstiel has joined #ocaml
motherfsck has joined #ocaml
<sim642> That's getting into MetaOCaml/staged compilation territory
<sim642> A quick and dirty solution would be to use Marshal
Stumpfenstiel has quit [Quit: No Ping reply in 180 seconds.]
Stumpfenstiel has joined #ocaml
John_Ivan__ has joined #ocaml
Everything has joined #ocaml
John_Ivan_ has quit [Ping timeout: 252 seconds]
Haudegen has quit [Read error: Connection reset by peer]
Haudegen has joined #ocaml
<greenbagels> sim642: right, the basic idea is that the Re.compile call has to be compiled before the rest of the program
Tuplanolla has joined #ocaml
EmmaBonestell has joined #ocaml
emp has quit [Ping timeout: 252 seconds]
emp has joined #ocaml
EmmaBonestell has quit [Quit: Quit]
<olle> sim642: No reason to get so complicated about it, just compile it to a raw value and include that value instead of the string representation?
<olle> Or compile all expression in startup phase before you run your main or whatever
<greenbagels> well it has to be evaluated before producing a binary, i gues
<greenbagels> not just compiled
<greenbagels> (i think?)
<sim642> You need to compile and run one executable which does the Re.compile and dumps the result
<sim642> Then you need to take that result and put it into your actual thing
<sim642> Then you can compile and run the actual thing which can directly take the dumped compiled thing and use it
<sim642> olle, pretty sure that Re doesn't give you access to the compiled representation
Anarchos has joined #ocaml
<sim642> But since it's pure OCaml, you should be able to Marshal it
<sim642> i.e. use OCaml's own raw format
Everything has quit [Quit: leaving]
<sim642> Although... it supposedly builds the DFA lazily, so all that work might give you nothing
spip has quit [Ping timeout: 246 seconds]
spip has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
<greenbagels> i see
<greenbagels> i feel like i recall the actual compile call taking most of the execution time compared to matching against it... hmm
<olle> greenbagels: or just move it out of a tight loop...?
Haudegen has quit [Ping timeout: 252 seconds]
<greenbagels> i agree that's the best play, im mostly just curious of what I *can* do
Haudegen has joined #ocaml
<olle> sim642: Time to make a PR to get that access :D
<olle> OR, since ocaml can have multiple "main", a new function to "pre-compile" an expression (that is, before anything important happens)
<greenbagels> well my main concern is if an end-user wants to run the executable repeatedly, but i guess it would be better to add that functionality to the program to begin with
<greenbagels> i.e. rather than running `./my_executable.native` over and over, i can have the program run once with an inner loop (without the compile call), like you say
emad has joined #ocaml
slothby has quit [Ping timeout: 264 seconds]
slothby has joined #ocaml
emad has quit [Client Quit]
<olle> ye
olle has quit [Ping timeout: 248 seconds]
barak has joined #ocaml
emp has quit [Ping timeout: 252 seconds]
emp has joined #ocaml
bartholin has quit [Quit: Leaving]
barak has quit [Read error: Connection reset by peer]
rgrinberg has joined #ocaml
Haudegen has quit [Ping timeout: 252 seconds]
Haudegen has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml