adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
mfp has joined #ocaml
<Fare> great, opam seems deeply broken to me. When I install from scratch, e.g. base64 complains because it can't build with jbuilder anymore.
<Fare> How do I build from source using opam 1.2.2 ?
<Fare> or how do I convince dune to use some source not from opam ?
<companion_cube> dune doesn't care about opam packages, in general, only that libraries are installed in the path
<companion_cube> "from source" I'd use opam pin, as usual
<companion_cube> otherwise if all the relevant projects are using dune you can use submodules
<Fare> how do I tell dune where to find lwt ?
<Fare> how do I tell opam pin where to find the lwt source ?
<companion_cube> so, either you add a clone of lwt as a submodule / subdirectory of your project
<companion_cube> opam pin <path-to-source>
<companion_cube> (assuming opam2)
<Fare> would a symlink work?
<companion_cube> I think it would, for dune
<Fare> nope, opam2 fails to even compile ocaml 4.06.1 on my machine :-(
<companion_cube> dune looks in every subdirectory of your project afaik
<Fare> thanks
<companion_cube> opam pin add <path-to-source> for opam1, see the manual (you might have to specify more stuff)
jao has quit [Ping timeout: 240 seconds]
silver_ has quit [Quit: rakede]
<Fare> actually opam pin add lwt <path-to-source>
<Fare> now dune or ocaml can't find lwt_main, which is in .../lib/lwt/unix/
<Fare> how do I modify my source and/or my configuration so it finds it?
gtrak has quit [Ping timeout: 264 seconds]
rosseaux23 has joined #ocaml
rosseaux23 has quit [Ping timeout: 252 seconds]
cthuluh has quit [Quit: leaving]
cthuluh has joined #ocaml
kvda has joined #ocaml
granttrec has joined #ocaml
mfp has quit [Ping timeout: 240 seconds]
tormen has joined #ocaml
tormen_ has quit [Ping timeout: 264 seconds]
pierpa has quit [Quit: Page closed]
ygrek has quit [Ping timeout: 264 seconds]
granttrec has quit [Quit: Page closed]
jbrown has joined #ocaml
caente has quit [Ping timeout: 265 seconds]
cobreadmonster has joined #ocaml
def` has quit [Ping timeout: 268 seconds]
def` has joined #ocaml
Fare has quit [Ping timeout: 264 seconds]
enyc10 has joined #ocaml
enyc10 has quit [Remote host closed the connection]
Fare has joined #ocaml
Fare has quit [Ping timeout: 272 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jbrown has quit [Ping timeout: 272 seconds]
Fare has joined #ocaml
kvda has joined #ocaml
JustTheDoctor13 has joined #ocaml
<xvilka> Seems ocp-memprof is dead?
<xvilka> what do you use to find memory leaks/bottlenecks?
JustTheDoctor13 has quit [Ping timeout: 276 seconds]
ygrek has joined #ocaml
malina has quit [Remote host closed the connection]
<xvilka> is it possible to get the pointer of a pointer with Ctypes? E.g I allocate some structure with "let mydata = allocate_n data_struct_type ~count:1" which generates the ptr to the structure. Is it possible to get a pointer to this? Or allocate a pointer to pointer but also allocate a struct inside?
<xvilka> without writing C code for doing this
<xvilka> uh, ctypes documentation is too scarce
surfist4 has joined #ocaml
surfist4 has quit [Read error: Connection reset by peer]
<xvilka> because if I do "let mydataptr = allocate (ptr data_struct) (from_voidp data_struct null)" it will allocate a ptr to null
<xvilka> so you cant dereference it
<xvilka> nvm, found out
<xvilka> you have to use both
discord1 has joined #ocaml
discord has quit [Read error: Connection reset by peer]
<xvilka> do, this one segfaults too often
<xvilka> *no
Fare has quit [Ping timeout: 252 seconds]
JSharp has quit []
JSharp has joined #ocaml
cobreadmonster has quit [Quit: Connection closed for inactivity]
jerith_ is now known as jerith
freyr69 has joined #ocaml
ollehar has joined #ocaml
jaar_ has quit [Ping timeout: 252 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
ygrek has quit [Ping timeout: 264 seconds]
xa0 has quit [Ping timeout: 240 seconds]
dinosaure has quit [Quit: WeeChat 1.4]
dinosaure has joined #ocaml
TheLemonMan has joined #ocaml
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
<xvilka> uh, it is a fault of lzma library, not ctypes
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
ozzymcduff has joined #ocaml
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
jaar has joined #ocaml
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
Haudegen has joined #ocaml
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
unyu has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<xvilka> is there any way to run OCaml program with ASAN somehow?
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
okuu has joined #ocaml
okuu is now known as Guest74428
pierpal has quit [Quit: Poof]
Guest74428 has quit [Client Quit]
pierpal has joined #ocaml
bezirg has joined #ocaml
unyu has joined #ocaml
unyu is now known as Guest85743
Guest85743 has quit [Client Quit]
Bronsa has joined #ocaml
pyon has joined #ocaml
pyon is now known as unyu
mfp has joined #ocaml
Ulrar has joined #ocaml
<Ulrar> Hey, I need an equivalent of php's chunk_split (add a \n every X characters in a string) in ocaml, by curiosity is there already a function I could use for that or do I have to write one ?
bezirg has quit [Remote host closed the connection]
bezirg has joined #ocaml
bezirg has quit [Remote host closed the connection]
bezirg has joined #ocaml
<ollehar> Ulrar: can't you just split the string and the fold it again with \n inserted?
<ollehar> then*
ozzymcduff has quit [Ping timeout: 264 seconds]
silver has joined #ocaml
bezirg has quit [Ping timeout: 240 seconds]
rks`_ has left #ocaml [#ocaml]
rks` has joined #ocaml
<Ulrar> ollehar: Is there a split taking an int ?
<Ulrar> I was looking at the String, it seems to only split on a char
<ollehar> Ulrar: which lib are you using? Core?
<Ulrar> I was looking at core yeah, but I'm not opposed to adding another lib if it works
<Ulrar> well, as long as it compiles with mirage, so I guess that limits it a bit
<Ulrar> I do have batteries already,
Guest32136 has quit [Quit: When two people dream the same dream, it's multicast dream routing.]
dmbaturin has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bezirg has joined #ocaml
<ollehar> Ulrar: ok
<ollehar> batteries should be enough
r3m15 has joined #ocaml
r3m15 has quit [Remote host closed the connection]
malina has joined #ocaml
bezirg has quit [Ping timeout: 240 seconds]
bezirg has joined #ocaml
bezirg has quit [Ping timeout: 252 seconds]
bezirg has joined #ocaml
johnelse has quit [Read error: No route to host]
johnelse has joined #ocaml
johnelse has quit [Read error: Connection reset by peer]
unyu has quit [Quit: The end of the world is nigh. Bring as much popcorn as you can!]
johnelse has joined #ocaml
johnelse has quit [Read error: Connection reset by peer]
johnelse has joined #ocaml
bezirg has quit [Remote host closed the connection]
unyu has joined #ocaml
bezirg has joined #ocaml
Haudegen has quit [Remote host closed the connection]
malina has quit [Ping timeout: 264 seconds]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
HarpoRoeder has joined #ocaml
HarpoRoeder has left #ocaml [#ocaml]
xa0 has joined #ocaml
bray90820_ has joined #ocaml
bezirg has quit [Ping timeout: 240 seconds]
bray90820_ has quit [Remote host closed the connection]
bezirg has joined #ocaml
bezirg has quit [Remote host closed the connection]
bezirg has joined #ocaml
bezirg has quit [Remote host closed the connection]
bezirg has joined #ocaml
tarptaeya has joined #ocaml
sagotch has joined #ocaml
fds has quit [Remote host closed the connection]
bezirg has quit [Ping timeout: 240 seconds]
ohama has quit [Ping timeout: 240 seconds]
gtrak has joined #ocaml
ohama has joined #ocaml
silver_ has joined #ocaml
silver has quit [Read error: Connection reset by peer]
Denommus has joined #ocaml
Haudegen has joined #ocaml
spew has joined #ocaml
Fare has joined #ocaml
neatonk has joined #ocaml
neatonk has quit [Quit: neatonk]
neatonk has joined #ocaml
FreeBirdLjj has joined #ocaml
neatonk has quit [Quit: neatonk]
<flux[m]> I'm some level of admin here, yes
Denommus has quit [Remote host closed the connection]
<ollehar> ooooh
kvda has joined #ocaml
ygrek has joined #ocaml
kvda has quit [Ping timeout: 260 seconds]
silver_ has quit [Ping timeout: 240 seconds]
al-damiri has joined #ocaml
ygrek has quit [Ping timeout: 264 seconds]
Fare has quit [Ping timeout: 260 seconds]
sl3dge__ has joined #ocaml
sagotch has quit [Quit: Leaving.]
sl3dge__ has quit [Remote host closed the connection]
TheSilentLink28 has joined #ocaml
TheSilentLink28 has quit [Remote host closed the connection]
ollehar has quit [Ping timeout: 276 seconds]
unyu is now known as Guest38637
Guest38637 has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
Guest38637 has joined #ocaml
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
peddie[m] is now known as peddie[m]1
malina has joined #ocaml
freyr69 has quit [Ping timeout: 252 seconds]
discord1 is now known as discord
<Ankhers> Does anyone have experience with js_of_ocaml and or bucklescript? Why do you use the one you do? Why did you stay away from the other one?
jaar has quit [Quit: Leaving]
<discord> <thangngoc89> Ankhers: I'm working with both in the same project
<Armael> Ankhers: there was a thread on discuss.ocaml.org with some discussion
<discord> <thangngoc89> if you have prior experience with OCaml, use js_of_ocaml. If you have prior experience with JS, use bucklescript
<Ankhers> Armael: Thanks, I will look that up.
<Ankhers> thangngoc89: Thanks for the tips.
Jesin has quit [Quit: Leaving]
Haudegen has quit [Remote host closed the connection]
maker has joined #ocaml
jao has joined #ocaml
Jesin has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
ziyourenxiang has quit [Ping timeout: 260 seconds]
SporkWitch16 has joined #ocaml
SporkWitch16 has quit [Remote host closed the connection]
malina has quit [Ping timeout: 252 seconds]
Fare has joined #ocaml
ski has joined #ocaml
Denommus has joined #ocaml
jbrown has joined #ocaml
Guest30470 has joined #ocaml
Fare has quit [Ping timeout: 265 seconds]
Fare has joined #ocaml
FreeBirdLjj has quit [*.net *.split]
ski has quit [*.net *.split]
Ankhers has quit [*.net *.split]
rks` has quit [*.net *.split]
tobiasBora has quit [*.net *.split]
reynir` has quit [*.net *.split]
dogui has quit [*.net *.split]
haesbaert has quit [*.net *.split]
jimt has quit [*.net *.split]
clog has quit [*.net *.split]
ahf has quit [*.net *.split]
Maxdamantus has quit [*.net *.split]
emias has quit [*.net *.split]
Khady has quit [*.net *.split]
Cypi has quit [*.net *.split]
clog_ has joined #ocaml
Khady has joined #ocaml
haesbaert has joined #ocaml
Cypi_ has joined #ocaml
reynir` has joined #ocaml
dogui has joined #ocaml
jimt has joined #ocaml
emias has joined #ocaml
Khady has quit [Changing host]
Khady has joined #ocaml
tobiasBora has joined #ocaml
Maxdamantus has joined #ocaml
rks` has joined #ocaml
ski has joined #ocaml
Maxdamantus has quit [Changing host]
Maxdamantus has joined #ocaml
gjaldon__ has joined #ocaml
ahf has joined #ocaml
ahf has quit [Changing host]
ahf has joined #ocaml
neatonk has joined #ocaml
Fare has quit [Ping timeout: 252 seconds]
pierpal has quit [Quit: Poof]
jao has quit [Ping timeout: 268 seconds]
pierpal has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
pierpal has quit [Client Quit]
pierpal has joined #ocaml
pierpal has quit [Client Quit]
pierpal has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
bezirg has joined #ocaml
jnavila has joined #ocaml
ibnfirnas has joined #ocaml
tarptaeya has quit [Quit: Konversation terminated!]
Guest38637 has quit [Quit: The end of the world is nigh. Bring as much popcorn as you can!]
unyu has joined #ocaml
unyu has quit [Changing host]
unyu has joined #ocaml
unyu has quit [Client Quit]
Maxdamantus has quit [Ping timeout: 272 seconds]
unyu has joined #ocaml
unyu has quit [Changing host]
unyu has joined #ocaml
unyu has quit [Client Quit]
ygrek has joined #ocaml
ygrek has quit [Remote host closed the connection]
kakadu has joined #ocaml
ygrek has joined #ocaml
ygrek has quit [Remote host closed the connection]
TingPing29 has joined #ocaml
TingPing29 has quit [Remote host closed the connection]
Jesin has quit [Quit: Leaving]
Ankhers has joined #ocaml
ygrek has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
ygrek is now known as Guest78852
Jesin has joined #ocaml
Jesin is now known as Guest31635
Guest31635 has quit [Remote host closed the connection]
Jessin has joined #ocaml
Jessin has quit [Remote host closed the connection]
Jesin has joined #ocaml
malina has joined #ocaml
Guest30470 has quit [Remote host closed the connection]
sagax has joined #ocaml
<sagax> hi all!
bezirg has quit [Remote host closed the connection]
infina3 has joined #ocaml
infina3 has quit [Ping timeout: 272 seconds]
jnavila has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
<ZirconiumX> Hi sagax
<sagax> maybe you have some few links
<sagax> blog, examples, books
<sagax> about OCaml
<ZirconiumX> Main book you should read is Real World OCaml
<ZirconiumX> Available online
<Fardale> about what ? To start ?
<sagax> not matter, start on deep learning
<sagax> or*
<Fardale> You want to do deep learning in OCaml ?
<sagax> i just need some information sources
<sagax> i need start and deep
<sagax> and middle ;D
<Fardale> You cann read the manual too https://caml.inria.fr/pub/docs/manual-ocaml/
<Fardale> And look at this for the ML https://github.com/owlbarn/owl
<sagax> thanks
gtrak has quit [Ping timeout: 276 seconds]
ski has quit [Ping timeout: 260 seconds]
ski has joined #ocaml
spew has quit [Quit: no more computer time]
kakadu has quit [Remote host closed the connection]
pierpa has joined #ocaml
pierpa_ has joined #ocaml
pierpa has quit [Ping timeout: 252 seconds]
HALWOPR has quit []
pierpa_ has quit [Quit: Page closed]
pierpa has joined #ocaml
annieslmaos has joined #ocaml
annieslmaos has quit [Remote host closed the connection]
jao has joined #ocaml
Haudegen has quit [Remote host closed the connection]
al-damiri has quit [Quit: Connection closed for inactivity]
madroach has quit [Ping timeout: 265 seconds]