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
decentpenguin has joined #ocaml
remexre has quit [Quit: WeeChat 2.9]
jbrown has quit [Ping timeout: 272 seconds]
rwmjones_ has joined #ocaml
rwmjones has quit [Ping timeout: 260 seconds]
osa1 has joined #ocaml
Haudegen has joined #ocaml
Haudegen has quit [Ping timeout: 240 seconds]
laokz has joined #ocaml
wingsorc has quit [Ping timeout: 260 seconds]
laokz has quit [Ping timeout: 272 seconds]
laokz has joined #ocaml
osa1 has quit [Ping timeout: 272 seconds]
zebrag has quit [Ping timeout: 264 seconds]
inkbottle has joined #ocaml
nullcone has quit [Quit: Connection closed for inactivity]
borne has quit [Ping timeout: 240 seconds]
borne has joined #ocaml
borne has quit [Ping timeout: 240 seconds]
narimiran has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #ocaml
mbuf has joined #ocaml
laokz has quit [Ping timeout: 240 seconds]
snowpanda has joined #ocaml
Serpent7776 has joined #ocaml
laokz has joined #ocaml
snowpanda has quit [Quit: Leaving...]
nullcone has joined #ocaml
decentpenguin has quit [Read error: Connection reset by peer]
decentpenguin has joined #ocaml
rwmjones_ is now known as rwmjones
mbuf has quit [Ping timeout: 258 seconds]
borne has joined #ocaml
sagax has quit [Read error: Connection reset by peer]
remexre_ has joined #ocaml
vicfred has quit [Quit: Leaving]
laokz has quit [Ping timeout: 260 seconds]
vicfred has joined #ocaml
Haudegen has joined #ocaml
olle has joined #ocaml
osa1 has joined #ocaml
osa1 has quit [Remote host closed the connection]
gahr has quit [Quit: leaving]
gahr has joined #ocaml
vicfred has quit [Quit: Leaving]
vicfred has joined #ocaml
<d_bot> <Deadrat> Hello everyone, is there a lwt based sentry library for ocaml or some alternative?
def has quit [Remote host closed the connection]
def has joined #ocaml
sagax has joined #ocaml
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
osa1 has joined #ocaml
bartholin has joined #ocaml
bartholin has quit [Quit: Leaving]
dckc has quit [Ping timeout: 256 seconds]
dckc has joined #ocaml
jbrown has joined #ocaml
mbuf has joined #ocaml
g0d_shatter has joined #ocaml
BitPuffin has quit [Quit: killed]
aspiwack[m] has quit [Quit: killed]
labor[m] has quit [Quit: killed]
dash has quit [Quit: killed]
aterius has quit [Quit: killed]
bglm[m] has quit [Quit: killed]
lnxw37d4 has quit [Quit: killed]
pqwy[m] has quit [Quit: killed]
peddie has quit [Quit: killed]
talyian[m] has quit [Quit: killed]
jimt[m] has quit [Quit: killed]
sepp2k has quit [Quit: killed]
aecepoglu[m] has quit [Quit: killed]
Manis[m] has quit [Quit: killed]
flux has quit [Quit: killed]
xzax_[m] has quit [Quit: killed]
quizzop[m] has quit [Quit: killed]
pqwy[m] has joined #ocaml
laokz has joined #ocaml
_whitelogger has joined #ocaml
decentpenguin has joined #ocaml
dash has joined #ocaml
sepp2k has joined #ocaml
aterius has joined #ocaml
jimt[m] has joined #ocaml
BitPuffin has joined #ocaml
ansiwen[m] has joined #ocaml
aspiwack[m] has joined #ocaml
Manis[m] has joined #ocaml
flux has joined #ocaml
labor[m] has joined #ocaml
xzax_[m] has joined #ocaml
lnxw37d4 has joined #ocaml
aecepoglu[m] has joined #ocaml
peddie has joined #ocaml
bglm[m] has joined #ocaml
quizzop[m] has joined #ocaml
talyian[m] has joined #ocaml
mmohammadi981266 has joined #ocaml
laokz has quit [Ping timeout: 240 seconds]
mmohammadi981266 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
emias has quit [Quit: WeeChat 2.3]
mmohammadi981266 has joined #ocaml
mmohammadi981266 has quit [Client Quit]
wingsorc has joined #ocaml
mmohammadi981266 has joined #ocaml
emias has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
laokz has joined #ocaml
quazimod1 has quit [Ping timeout: 264 seconds]
quazimodo has joined #ocaml
vicfred has quit [Quit: Leaving]
quazimodo has quit [Ping timeout: 256 seconds]
quazimodo has joined #ocaml
narimiran has quit [Ping timeout: 260 seconds]
waleee-cl has joined #ocaml
dckc has quit [Ping timeout: 272 seconds]
osa1 has quit [Remote host closed the connection]
nullcone has quit [Quit: Connection closed for inactivity]
elge has left #ocaml [#ocaml]
dckc has joined #ocaml
Haudegen has joined #ocaml
emp has joined #ocaml
<olle> What's a sentry?
<olle> oO
* olle weird
kevinsjoberg has joined #ocaml
<kevinsjoberg> I've just started learning OCaml. Could someone please explain this expression to me, I'm confused.
<kevinsjoberg> ((((*1*))))
<kevinsjoberg> as well as ((*((()*)). Both seem to produce a unit value but I'm having a hard time reading it. How are those stars valid?
Anarchos has joined #ocaml
<def> (* is a comment
<def> so your first example is really parsed as ((()))
<def> which is a unit value () wrapped in two level of parentheses
<def> the second example is the same with a wrong nesting of parentheses inside the comment, but this is ignored inside a comment
<kevinsjoberg> Oh, right. I forgot about that already.
<kevinsjoberg> def now it makes sense. I'll just have to remember that (* *) is used for comments.
<kevinsjoberg> So much syntax to keep in my head. // and /* */ in C, # in Ruby, -- in Elm and Haskell and now (* *) in OCaml, haha.
<def> yep, (*) and ( *) are tricky too :P
<olle> -- in SQL too
<olle> We need a new standard way to do comments!
<olle> I propose %
<olle> Wait, that's Erlang already?
<olle> Don't remember.
<theblatte> that's latex
<rks`> and erlang
<def> (and prolog and oz)
<olle> :|
<Anarchos> def prolog, the low level language used by japanese in the 90's for their 5th generation OS project ?
<olle> In Soviet Russia, programming languages comment you.
<def> and postscript and pdf.
osa1 has joined #ocaml
spew has joined #ocaml
<zozozo> kevinsjoberg: to be honest, editor support for coloring comments is of a great help in thos situations
<kevinsjoberg> zozozo indeed, I was running this particular example in the toplevel ocaml. I just switched to utop and for more advanced examples I'll just use vim and the compiler. :)
<zozozo> ^^
<d_bot> <kanishka> > We need a new standard way to do comments!
<d_bot> <kanishka> @olle#0000
<d_bot> <kanishka> Elm will come up with the best idea, whenever they tackle it (:
* olle not sure if irony
<Anarchos> what annoys me is when different framework asks for a specific comment to reside on first line. How to use both frameworks together ?
<companion_cube> zozozo: for a second I thought you talked about coloring code inside comments :(
<olle> Anarchos: Have two first lines. Duh.
<def> About as difficult as shooting yourself in the foot with two different guns at the same time.
<hannes> Anarchos: that's the issue with frameworks, isn't it? they always try to force a coding style / syntax onto you.
<theblatte> first 10 lines should be enough for everyone
<Anarchos> hannes yes
<companion_cube> def: you have 2 feet
<companion_cube> so it's easier
<Anarchos> theblatte i mean frameworks mandates very first line
<companion_cube> but frameworks asking anything about comments is wrong
<def> companion_cube: I keep my second foot to try a new framework :P
vicfred has joined #ocaml
<Anarchos> companion_cube vim does it
<def> framework ... is wrong.
<Anarchos> companion_cube and ppx maybe, i am not sure
<zozozo> companion_cube: haha, XD
<Armael> how is vim a framework
<d_bot> <kanishka> > What's a sentry?
<d_bot> <kanishka> @olle#0000
<d_bot> <kanishka> Probably referring to https://sentry.io/welcome/ , the error capturing service. Looks like you are on your own (https://github.com/brendanlong/sentry-ocaml - async only) unless someone has it in their proprietary code base and is willing to put it on github
Tuplanolla has joined #ocaml
quazimodo has quit [Ping timeout: 256 seconds]
shmibs has quit [Quit: leaving =o]
shmibs has joined #ocaml
quazimodo has joined #ocaml
<olle> Ah
<companion_cube> wat do you mean, vim does it
<companion_cube> what*
<olle> Vim does everything?
<companion_cube> I mean, vim asking for comments as the first line
<companion_cube> I have no idea what's that about
<olle> Vim is mysterious
<olle> such mystery, much wonder. wow.
bronsen has quit [Ping timeout: 260 seconds]
laokz has quit [Quit: Leaving]
<Anarchos> companion_cube i can't remember but i think the ocaml.vim plugin asked for a line format (80characters and so on) on first line
<companion_cube> ocaml.vim doesn't ask for anything
<companion_cube> I use it on all kinds of ocaml files :p
bronsen has joined #ocaml
<d_bot> <psafont> I use it all the time, never asked me for any input
<d_bot> <psafont> btw, are there any thoughts on https://github.com/ocaml/vim-ocaml/pull/61 ? not sure if it breaks custom user configs that depend on the ocaml filetype
<companion_cube> hmmmm interesting
<companion_cube> probably a good idea?
hnOsmium0001 has joined #ocaml
g0d_shatter has quit [Ping timeout: 240 seconds]
olle has quit [Ping timeout: 265 seconds]
borne has quit [Quit: WeeChat 2.9]
<zozozo> I agree it would probably be a good thing
<zozozo> it would even prevent merlin from trying to parse ocamllex/ocamlyacc/menhir files which is sometimes annoying
<zozozo> though that would require another filetype (the current PR leaves menhir/yacc files along with other ocaml sources from what I can see)
<d_bot> <psafont> I can add the ocamlyacc filetype as well
mbuf has quit [Quit: Leaving]
<companion_cube> just call it the menhir filetype :)
<companion_cube> going forward
jnavila has joined #ocaml
narimiran has joined #ocaml
reynir has quit [Ping timeout: 260 seconds]
<d_bot> <psafont> Sure thing
reynir has joined #ocaml
sonologico has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
Haudegen has quit [Quit: Bin weg.]
<SoF> Hi, i have a List A of size m, and List B of size n, and I want to get the list that is created by replacing the first n elements of A with elements of B, is there a nice function for that?
<SoF> essentially putting B on top of A and replacing what's underneath B by doing that
<companion_cube> if you use more than the stdlib, it'd typically be `b @ drop (List.length b) a`
<SoF> thanks! where's drop from?
<SoF> but thanks, that sounds good!
<SoF> just for good measure, thanks!
<companion_cube> you can find it in Containers, Batteries, Base, Core…
nullcone has joined #ocaml
Jesin has quit [Ping timeout: 246 seconds]
decentpenguin has quit [Ping timeout: 265 seconds]
decentpenguin has joined #ocaml
gareppa has joined #ocaml
vicfred has quit [Quit: Leaving]
Haudegen has joined #ocaml
vicfred has joined #ocaml
osa1 has quit [Ping timeout: 272 seconds]
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
gareppa has quit [Quit: Leaving]
Haudegen has joined #ocaml
hannes has quit [Ping timeout: 240 seconds]
Haudegen has quit [Quit: Bin weg.]
Haudegen has joined #ocaml
hannes has joined #ocaml
Anarchos has joined #ocaml
amiloradovsky has joined #ocaml
Jesin has joined #ocaml
motherfsck has quit [Read error: Connection reset by peer]
mmohammadi981266 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
narimiran has quit [Ping timeout: 265 seconds]
remexre_ is now known as remexre
vicfred has quit [Quit: Leaving]
vicfred has joined #ocaml
jnavila has quit [Quit: Konversation terminated!]
vicfred has quit [Client Quit]
vicfred has joined #ocaml
Jesin has quit [Quit: Leaving]
sonologico has quit [Remote host closed the connection]
<d_bot> <breakone9r> having a bit of trouble getting 4.11.1 to compile on FreeBSD13 - https://bsd.to/sxUr - I've tried setting AS and ASPP to use binutils as v2.3.11, as well as clang's internal assembly compiler. I've even tried using nasm. I get the exact same error. I've also tried compiling with gcc as well as clang. .. any suggestions?
Tuplanolla has quit [Quit: Leaving.]
breakone9r has joined #ocaml
<d_bot> <mseri> May be worth opening an issue on the compiler repository ocaml/ocaml
<d_bot> <breakone9r> I wanted to make sure I wasn't just missing something stupid before I did that. 🙂
djellemah has joined #ocaml
g0d_shatter has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
aaaaaa has joined #ocaml
raver has quit [Quit: Gateway shutdown]
djellemah has quit [Ping timeout: 240 seconds]