companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.2.0 released: https://ocaml.org/releases/5.2.0 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
YuGiOhJCJ has joined #ocaml
<discocaml> <yawaramin> it won't, it will just allow it to propagate. that seems the same to me
user__ has quit [Remote host closed the connection]
<companion_cube> Fun.protect, if both the function and handler raise, uses a special exception that wraps both together iirc
<companion_cube> hu, only wraps the finally's excetion, damn
<companion_cube> +p
toastal has left #ocaml [Disconnected: Hibernating too long]
hsw_ has quit [Read error: Connection reset by peer]
torretto has quit [Remote host closed the connection]
torretto has joined #ocaml
gentauro has quit [Read error: Connection reset by peer]
terrorjack4 has quit [Ping timeout: 252 seconds]
gentauro has joined #ocaml
mjs22 has joined #ocaml
mjs22 has quit [Client Quit]
user__ has joined #ocaml
mjs22 has joined #ocaml
mjs22 has quit [Quit: Konversation terminated!]
mjs22 has joined #ocaml
terrorjack4 has joined #ocaml
terrorjack4 has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack4 has joined #ocaml
mjs22 has quit [Quit: Konversation terminated!]
mbuf has joined #ocaml
toastal has joined #ocaml
twobitsprite has quit [Ping timeout: 252 seconds]
twobitsprite has joined #ocaml
user__ has quit [Remote host closed the connection]
mbuf_ has joined #ocaml
mbuf has quit [Ping timeout: 252 seconds]
mbuf_ is now known as mbuf
mjs22 has joined #ocaml
Serpent7776 has joined #ocaml
toastal has left #ocaml [Error from remote client]
mjs22 has quit [Quit: Konversation terminated!]
mbuf_ has joined #ocaml
mbuf has quit [Ping timeout: 276 seconds]
mbuf_ is now known as mbuf
mjs22 has joined #ocaml
mjs22 has quit [Quit: Konversation terminated!]
bhoot has joined #ocaml
Tuplanolla has joined #ocaml
bartholin has joined #ocaml
bartholin has quit [Ping timeout: 265 seconds]
bartholin has joined #ocaml
mbuf_ has joined #ocaml
mbuf has quit [Ping timeout: 276 seconds]
mbuf_ is now known as mbuf
TCZ has joined #ocaml
famubu has joined #ocaml
<famubu> Hi. Could there be a way to convert python regular expression (import re) to ocaml regex used by Str.regexp ?
<famubu> I had a bunch of python regexp which I wanted to be able to use from ocaml..
TCZ has quit []
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
Anarchos has joined #ocaml
waleee has joined #ocaml
micro has quit [Ping timeout: 276 seconds]
micro has joined #ocaml
<discocaml> <otini_> you may want to switch to a more complete regexp lib like Re (yes, there is an ocaml library with that name) which has Perl syntax among others.
<discocaml> <otini_> (it looks like python’s re uses Perl syntax)
Anarchos has quit [Read error: Connection reset by peer]
toastal has joined #ocaml
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bhoot has joined #ocaml
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bhoot has joined #ocaml
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bhoot has joined #ocaml
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<famubu> otini_: A more capable Re is better. Thanks.
<famubu> I guess there's no way around parsing the python re expressions by myself into an intermediate form and then converting it to ocaml re?
<famubu> Since python re has no formal grammar, it's going to be messy.
<discocaml> <yawaramin> isn't OCaml's re using the same syntax as Python's re?
<famubu> Oh is it? You mean the stdlib one or the 3rd party re?
<discocaml> <ada2k> 3rd party one
<discocaml> <ada2k> it has submodules for different syntaxes, perl is one of them
tomku has quit [Ping timeout: 265 seconds]
tomku has joined #ocaml
<famubu> Okay I see it. So pcre version maybe similar to python re, I guess?
<discocaml> <ada2k> famubu: does python use pcre?
<discocaml> <ada2k> i’m not sure what the distinction between Re.Perl and Re.Pcre actually is
<famubu> It has some pcre-kind of stuff. Probably not full pcre.
<famubu> But I'm not that familiar with perl...
<famubu> I maybe wrong.
<famubu> The python docs says this: 'This module provides regular expression matching operations similar to those found in Perl.'
<discocaml> <ada2k> interesting
<famubu> Does ocaml-re has any documentation with examples? Couldn't find any.
YuGiOhJCJ has joined #ocaml
waleee has quit [Ping timeout: 265 seconds]
<discocaml> <yawaramin> there are some examples in the docs https://ocaml.org/p/re/latest/doc/Re/index.html
<famubu> Thanks.
bhoot has joined #ocaml
Anarchos has joined #ocaml
<dh`> isn't the whole point of pcre that it's the same as perl's regexps?
<companion_cube> pcre the library yes
<companion_cube> But for Re it's just compatible syntax
<dh`> that seems confusing
<companion_cube> Re is an actual regex engine, with multiple syntactic front-ends
<companion_cube> It's not a full pcre library
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dh`> sure, I guess if I'd done it the interface would be something like Re.Syntax.Pcre to be clearer
<dh`> anyway having looked at one point into exactly what pcre _does_ provide if you find yourself in that rabbit hole you should seek an exit
bhoot has joined #ocaml
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bhoot has joined #ocaml
bhoot has quit [Client Quit]
bhoot has joined #ocaml
waleee has joined #ocaml
mbuf has quit [Quit: Leaving]
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bhoot has joined #ocaml
Exa has quit [Ping timeout: 272 seconds]
Exa has joined #ocaml
toastal has quit [Ping timeout: 272 seconds]
pieguy128_ has quit [Ping timeout: 252 seconds]
pieguy128 has joined #ocaml
nore has quit [Ping timeout: 248 seconds]
sailorCa- has joined #ocaml
toastal has joined #ocaml
famubu has quit [Ping timeout: 252 seconds]
bhoot has quit [Ping timeout: 248 seconds]
mal`` has quit [Ping timeout: 248 seconds]
Anarchos has quit [Ping timeout: 252 seconds]
sailorCat has quit [Ping timeout: 252 seconds]
theblatte has quit [Ping timeout: 252 seconds]
pippijn has quit [Ping timeout: 272 seconds]
theblatte has joined #ocaml
pippijn has joined #ocaml
bhoot has joined #ocaml
user__ has joined #ocaml
mal`` has joined #ocaml
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nore has joined #ocaml
bhoot has joined #ocaml
tremon has joined #ocaml
sailorCa- has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorCat has joined #ocaml
sailorCat has quit [Client Quit]
bhoot has quit [Quit: Textual IRC Client: www.textualapp.com]
sailorCat has joined #ocaml
sailorCat has quit [Client Quit]
sailorCat has joined #ocaml
alexherbo2 has joined #ocaml
user__ has quit [Quit: Leaving]
user__ has joined #ocaml
user__ is now known as ygrek
cr1901 has quit [Read error: Connection reset by peer]
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
cr1901 has joined #ocaml
torretto_ has joined #ocaml
torretto has quit [Ping timeout: 260 seconds]
Serpent7776 has quit [Ping timeout: 255 seconds]
toastal has left #ocaml [Error from remote client]
ygrek has quit [Remote host closed the connection]
tomku has quit [Remote host closed the connection]
tomku has joined #ocaml
tremon has quit [Quit: getting boxed in]
ygrek has joined #ocaml
tomku has quit [Ping timeout: 252 seconds]
tomku has joined #ocaml
bartholin has quit [Quit: Leaving]
Anarchos has joined #ocaml
Anarchos has quit [Ping timeout: 252 seconds]
alexherbo2 has quit [Remote host closed the connection]
alexherbo2 has joined #ocaml
alexherbo2 has quit [Remote host closed the connection]