companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.11 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.11/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
andreas303 has quit [Ping timeout: 240 seconds]
andreas303 has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
mfp has quit [Ping timeout: 252 seconds]
<hackinghorn> heh, I just found out there is nothing separating statements
<hackinghorn> I just write "let" and it begins a new statement
<hackinghorn> why does sometimes we have "in", for example, "" let funa args = ... in let funb args = ... "" , sometimes, I see no "in"
<companion_cube> when there's no `in` it's a toplevel statement
<companion_cube> when there's a `in` it's a local definition in a bigger expression
<hackinghorn> wah, I see, thankss companion_cube
<hackinghorn> companion_cube, so if I'm in a function, I probably need to write everything ending with "in" or it will become toplevel?
<hackinghorn> the tutorials all use toplevel and everything ends with ";;", it makes it very hard for me working with real files :/
<d_bot> <darrenldl> well if you're in a function, you cant end an inner let binding without "in" anyway
<d_bot> <darrenldl> e.g. "let f x = let y = 1" is not correct syntax
<d_bot> <darrenldl> i wrote an exercise for a student at one point about this confusion, i might still have a copy...
<hackinghorn> usually I write let y = 1 in let f x = [..]. I think thats equivalent?
<d_bot> <Firgeis> Anyone here know any of the maintainers of the repo https://github.com/savonet/ocaml-ssl ?
hackinghorn has quit [Quit: Leaving]
narimiran has joined #ocaml
cantstanya has quit [Remote host closed the connection]
adi__________ has quit [Read error: Connection reset by peer]
JSharp has quit [Ping timeout: 252 seconds]
adi__________ has joined #ocaml
cantstanya has joined #ocaml
tomku has quit [Ping timeout: 252 seconds]
JSharp has joined #ocaml
tomku has joined #ocaml
<d_bot> <undu> I wish the compatibility PR with older openssl version were merged
gahr has quit [Quit: leaving]
nullcone has quit [Quit: Connection closed for inactivity]
gahr has joined #ocaml
gahr has quit [Quit: leaving]
gahr has joined #ocaml
Serpent7776 has quit [Read error: Connection reset by peer]
Serpent7776 has joined #ocaml
Haudegen has joined #ocaml
gahr has quit [Quit: leaving]
wonko7 has joined #ocaml
olle has joined #ocaml
<d_bot> <mseri> Not really, but some of them are in the ocaml discuss forum . However, There is a small request from the review that is still unaddressed if this is the PR you have in mind: https://github.com/savonet/ocaml-ssl/pull/63
schlaftier has quit [Read error: Connection reset by peer]
schlaftier has joined #ocaml
mfp has joined #ocaml
mro_name has joined #ocaml
ArthurStrong has joined #ocaml
vicfred has quit [Quit: Leaving]
TheLemonMan has joined #ocaml
mro_name has quit [Remote host closed the connection]
bartholin has joined #ocaml
mro_name has joined #ocaml
mro_name has quit [Ping timeout: 268 seconds]
kakadu has joined #ocaml
mro_name has joined #ocaml
mro_name has quit [Ping timeout: 250 seconds]
mro_name has joined #ocaml
mro_name has quit [Ping timeout: 246 seconds]
guriya has joined #ocaml
guriya has joined #ocaml
guriya has quit [Changing host]
zolk3ri has joined #ocaml
zolk3ri has quit [Client Quit]
gahr has joined #ocaml
mro_name has joined #ocaml
mro_name has quit [Ping timeout: 245 seconds]
gahr has quit [Remote host closed the connection]
gahr has joined #ocaml
gahr has quit [Ping timeout: 260 seconds]
ArthurStrong has quit [Read error: Connection reset by peer]
gahr_ has joined #ocaml
richbridger has joined #ocaml
ArthurStrong has joined #ocaml
gahr_ has quit [Remote host closed the connection]
gahr has joined #ocaml
gahr_ has joined #ocaml
gahr has quit [Ping timeout: 276 seconds]
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
troydm has joined #ocaml
gahr has joined #ocaml
gahr_ has quit [Ping timeout: 260 seconds]
Anarchos has joined #ocaml
gahr has quit [Quit: leaving]
guriya has quit [Ping timeout: 240 seconds]
<d_bot> <Firgeis> This one actually https://github.com/savonet/ocaml-ssl/pull/71
mro_name has joined #ocaml
mro_name has quit [Ping timeout: 276 seconds]
wonko7 has quit [Quit: See You Space Cowboy..]
gahr has joined #ocaml
mro_name has joined #ocaml
mro_name has quit [Ping timeout: 250 seconds]
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
mro_name has joined #ocaml
gahr has quit [Quit: leaving]
narimiran has quit [Ping timeout: 260 seconds]
mro_name has quit [Ping timeout: 276 seconds]
Anarchos has joined #ocaml
<d_bot> <Ulugbek> Is it possible to show the doc for a symbol in utop?
<d_bot> <Anurag> There is a PR to add a new directive that will have documentation details. That said in the past i've used <https://github.com/reynir/ocp-index-top> to get a `#doc` directive for utop.
<d_bot> <Anurag> Forgot to share the link to the Utop PR: https://github.com/ocaml-community/utop/pull/294
nullcone has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
mro_name has joined #ocaml
gahr has joined #ocaml
mro_name has quit [Ping timeout: 265 seconds]
mro_name has joined #ocaml
wonko7 has joined #ocaml
<d_bot> <dj charlie> ```
<d_bot> <dj charlie> sed -e "s@File \"(stdin)\", line \([0-9]*\)@$samfile:\1@g" | \
<d_bot> <dj charlie> sed -e "s@File \"(stdin)\", lines \([0-9]*\)-\([0-9]*\),@$samfile:\1,\2@g"``` replaced my monolithic script with this lol
<d_bot> <dj charlie> anyone got any hot tips to make it a single pass?
<d_bot> <dj charlie> awesome :^))))
<d_bot> <darrenldl> hackinghorn: y has a different scope in that case, so not exactly equivalent
<d_bot> <darrenldl>
<d_bot> <darrenldl> the point is you cannot end an inner let binding as if it is a top level let binding
<companion_cube> it's jsut a wart of the language, toplevel `let` should really have been `val` or sth like that
<d_bot> <dj charlie> might just use a ppx for regex do it ez
<companion_cube> what is it that you're trying to do?
<d_bot> <dj charlie> just translate some ocaml messages into something friendlier
<d_bot> <dj charlie> i'll just use the ppx_regexp package instead 🙂
<companion_cube> 🤷
<companion_cube> I think theer's a switch with better error messages? anyway
<d_bot> <dj charlie> really? dope
<d_bot> <dj charlie> had no idea
mro_name has quit [Remote host closed the connection]
<steenuil> does Unix.write take a bytes value just for convenience or does it actually mutate it?
mro_name has joined #ocaml
<companion_cube> it doesn't mutate it
<companion_cube> it's just that IO buffers are generally mutable, someone has been writing into the bytes before most likely
mro_name has quit [Ping timeout: 276 seconds]
vicfred has joined #ocaml
<steenuil> yeah I suspected that, thanks
mro_name has joined #ocaml
mro_name has quit [Ping timeout: 250 seconds]
mro_name has joined #ocaml
mro_name has quit [Ping timeout: 260 seconds]
mro_name has joined #ocaml
mro_name has quit [Ping timeout: 252 seconds]
TheLemonMan has quit [Read error: Connection reset by peer]
waleee-cl has joined #ocaml
TheLemonMan has joined #ocaml
nullcone has quit [Quit: Connection closed for inactivity]
mro_name has joined #ocaml
mro_name has quit [Ping timeout: 276 seconds]
mro_name has joined #ocaml
mro_name has quit [Ping timeout: 252 seconds]
bartholin has quit [Quit: Leaving]
takside has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
nullcone has joined #ocaml
mro_name has joined #ocaml
mro_name has quit [Ping timeout: 240 seconds]
mro_name has joined #ocaml
gahr has quit [Ping timeout: 245 seconds]
mro_name has quit [Remote host closed the connection]
gahr has joined #ocaml
gahr has quit [Ping timeout: 245 seconds]
gahr has joined #ocaml
gahr has quit [Ping timeout: 260 seconds]
gahr has joined #ocaml
Tuplanolla has joined #ocaml
mro_name has joined #ocaml
mro_name has quit [Ping timeout: 246 seconds]
gahr has quit [Ping timeout: 276 seconds]
gahr has joined #ocaml
gahr has quit [Client Quit]
narimiran has joined #ocaml
mro_name has joined #ocaml
mro_name has quit [Ping timeout: 240 seconds]
hackinghorn has joined #ocaml
<hackinghorn> hi, why does "open Core" give me "unbound module Core". I'm building 1 file with "dune build"
mro_name has joined #ocaml
<d_bot> <Anurag> Did you add `core` in the `libraries` section of your dune file?
mro_name has quit [Ping timeout: 250 seconds]
olle has quit [Ping timeout: 240 seconds]
Hrundi_V_Bakshi has joined #ocaml
Hrundi_V_Bakshi has quit [Client Quit]
<hackinghorn> oh that might works, thx
<hackinghorn> is there a command for that?
neiluj has joined #ocaml
neiluj has joined #ocaml
neiluj has quit [Changing host]
Anarchos has joined #ocaml
narimiran has quit [Ping timeout: 268 seconds]
<d_bot> <Anurag> No, you'd need to manually add the dependencies you care about to the `libraries` section in your dune file.
<hackinghorn> ahh I see, thankss
TheLemonMan has quit [Ping timeout: 246 seconds]
xenu has quit [Remote host closed the connection]
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
waleee-cl has quit [*.net *.split]
robmyers has quit [*.net *.split]
lopex has quit [*.net *.split]
chewbranca has quit [*.net *.split]
cemerick has quit [*.net *.split]
aspiwack[m] has quit [*.net *.split]
jimt[m] has quit [*.net *.split]
BitPuffin has quit [*.net *.split]
dieggsy has quit [*.net *.split]
doelie has quit [*.net *.split]
mro_name has joined #ocaml
waleee-cl has joined #ocaml
jimt[m] has joined #ocaml
robmyers has joined #ocaml
lopex has joined #ocaml
doelie has joined #ocaml
BitPuffin has joined #ocaml
dieggsy has joined #ocaml
chewbranca has joined #ocaml
cemerick has joined #ocaml
aspiwack[m] has joined #ocaml
mro_name has quit [Ping timeout: 245 seconds]
Coldfusion[m] has quit [Ping timeout: 246 seconds]
serif[m] has quit [Ping timeout: 246 seconds]
anton_5[m] has quit [Ping timeout: 246 seconds]
pqwy[m] has quit [Ping timeout: 246 seconds]
lnxw37d4 has quit [Ping timeout: 245 seconds]
flux has quit [Ping timeout: 245 seconds]
peddie has quit [Ping timeout: 248 seconds]
aspiwack[m] has quit [Ping timeout: 276 seconds]
jimt[m] has quit [Ping timeout: 276 seconds]
dieggsy has quit [Ping timeout: 276 seconds]
BitPuffin has quit [Ping timeout: 276 seconds]
labor[m] has quit [Ping timeout: 245 seconds]
avsm[m] has quit [Ping timeout: 245 seconds]
dash has quit [Ping timeout: 245 seconds]
smondet[m] has quit [Ping timeout: 248 seconds]
radiopotin[m] has quit [Ping timeout: 245 seconds]
Tardigreat[m] has quit [Ping timeout: 247 seconds]
Sumera[m] has quit [Ping timeout: 248 seconds]
wonko7 has quit [Ping timeout: 252 seconds]
smondet[m] has joined #ocaml
BitPuffin has joined #ocaml
jimt[m] has joined #ocaml
dash has joined #ocaml
lnxw37d4 has joined #ocaml
Tardigreat[m] has joined #ocaml
aspiwack[m] has joined #ocaml
labor[m] has joined #ocaml
pqwy[m] has joined #ocaml
serif[m] has joined #ocaml
anton_5[m] has joined #ocaml
Coldfusion[m] has joined #ocaml
avsm[m] has joined #ocaml
tomku has quit [Read error: Connection reset by peer]
tomku has joined #ocaml
serif[m] has quit [Ping timeout: 246 seconds]
Coldfusion[m] has quit [Ping timeout: 245 seconds]
avsm[m] has quit [Ping timeout: 245 seconds]
labor[m] has quit [Ping timeout: 246 seconds]
Tardigreat[m] has quit [Ping timeout: 246 seconds]
BitPuffin has quit [Ping timeout: 246 seconds]
smondet[m] has quit [Ping timeout: 245 seconds]
anton_5[m] has quit [Ping timeout: 245 seconds]
lnxw37d4 has quit [Ping timeout: 245 seconds]
pqwy[m] has quit [Ping timeout: 258 seconds]
dash has quit [Ping timeout: 258 seconds]
aspiwack[m] has quit [Ping timeout: 276 seconds]
jimt[m] has quit [Ping timeout: 276 seconds]
peddie has joined #ocaml
flux has joined #ocaml
radiopotin[m] has joined #ocaml
Sumera[m] has joined #ocaml
olle has joined #ocaml
dieggsy has joined #ocaml
serif[m] has joined #ocaml
Coldfusion[m] has joined #ocaml
avsm[m] has joined #ocaml
lnxw37d4 has joined #ocaml
pqwy[m] has joined #ocaml
BitPuffin has joined #ocaml
nullcone has quit [Quit: Connection closed for inactivity]
labor[m] has joined #ocaml
Tardigreat[m] has joined #ocaml
dash has joined #ocaml
smondet[m] has joined #ocaml
anton_5[m] has joined #ocaml
aspiwack[m] has joined #ocaml
jimt[m] has joined #ocaml
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
xenu has joined #ocaml
Serpent7776 has quit [Quit: leaving]
olle has quit [Ping timeout: 246 seconds]
ArthurStrong has quit [Quit: leaving]
vicfred has quit [Read error: Connection reset by peer]
Tuplanolla has quit [Quit: Leaving.]
catern has joined #ocaml
<catern> apologies for this basic question, but I expect it will be very easy to answer: does OCaml have support for running arbitrary code at compile time? for example, parsing a string into a data-structure, and getting parse errors at compile time. maybe this can be done cleverly by using the module system?
<companion_cube> no, not outside preprocessors (ppx)
<catern> makes sense, thanks for answering
zozozo has quit [Ping timeout: 258 seconds]
Haudegen has quit [Ping timeout: 240 seconds]
yomimono has quit [Ping timeout: 240 seconds]
Anarchos has quit [Quit: must reboot, come back soon !!]
yomimono has joined #ocaml
Anarchos has joined #ocaml
zozozo has joined #ocaml
yomimono has quit [Ping timeout: 265 seconds]
yomimono has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]