adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 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
keep_learning has joined #ocaml
keep_learning has quit [Client Quit]
keep_learning has joined #ocaml
assemblyman has quit [Quit: ™]
dedgrant has quit [Ping timeout: 250 seconds]
spew has joined #ocaml
mfp has quit [Ping timeout: 244 seconds]
dedgrant has joined #ocaml
spew has quit [Ping timeout: 246 seconds]
Haudegen has quit [Ping timeout: 240 seconds]
silver has quit [Read error: Connection reset by peer]
q9929t has joined #ocaml
q9929t has quit [Remote host closed the connection]
q9929t has joined #ocaml
q9929t has quit [Quit: q9929t]
dedgrant has quit [Ping timeout: 268 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
AnAverageHuman has joined #ocaml
tormen has joined #ocaml
ansiwen has quit [Quit: ZNC 1.7.1 - https://znc.in]
tormen_ has quit [Ping timeout: 240 seconds]
ansiwen has joined #ocaml
gravicappa has joined #ocaml
lorp has quit [Quit: This computer has gone to sleep]
iovec has joined #ocaml
AnAverageHuman has quit [Ping timeout: 256 seconds]
doesntgolf has quit [Ping timeout: 250 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #ocaml
kjak has quit [Ping timeout: 250 seconds]
kjak has joined #ocaml
kjak has quit [Ping timeout: 245 seconds]
pierpal has quit [Remote host closed the connection]
jao has quit [Ping timeout: 245 seconds]
ggole has joined #ocaml
iovec has quit [Quit: Connection closed for inactivity]
pierpal has joined #ocaml
iovec has joined #ocaml
themsay has quit [Ping timeout: 246 seconds]
sagotch has joined #ocaml
hannes has quit [Remote host closed the connection]
freyr69 has joined #ocaml
ygrek has joined #ocaml
bartholin has joined #ocaml
hannes has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asymptotically has joined #ocaml
kakekongen has quit [Ping timeout: 250 seconds]
mfp has joined #ocaml
kakekongen has joined #ocaml
<Leonidas> how can I create an in_channel from a string?
<Armael> you can't afaik
<adrien> *in* *from* a string?
<adrien> the closest things I have in mind are Buffer.add_channel/output_buffer
<Leonidas> adrien: yeah, I have a string and a function that takes an in_channel and I want to feed it into said function
<Leonidas> adrien: I mean I can write the string to a file and read using open_in, but that's just some special hell
<Armael> I think you have to create a temp file and write the string in it..
<adrien> or make a pipe
<adrien> with recent APIs on linux you could use O_TEMPFILE (name might be diffefernt)
<Leonidas> that's quite awful in a way :(
<emersion> yeah :\
<emersion> no fmemopen?
<adrien> oh, right, that one is handy too
zolk3ri has joined #ocaml
Haudegen has joined #ocaml
tizoc has quit [Quit: Coyote finally caught me]
tizoc has joined #ocaml
q9929t has joined #ocaml
jacobian has left #ocaml [#ocaml]
jbrown has quit [Remote host closed the connection]
silver has joined #ocaml
jbrown has joined #ocaml
sagotch has quit [Quit: Leaving.]
webshinra has joined #ocaml
status402 has joined #ocaml
status402 has quit [Quit: status402]
status402 has joined #ocaml
marvin2 has joined #ocaml
lorp has joined #ocaml
Haudegen has quit [Ping timeout: 250 seconds]
kjak has joined #ocaml
Denommus has joined #ocaml
Denommus has quit [Remote host closed the connection]
sagotch has joined #ocaml
status402 has quit [Quit: status402]
status402 has joined #ocaml
q9929t has quit [Quit: q9929t]
omarramo has joined #ocaml
<omarramo> hey guys, anybody using merlin in vim? how can I get the output of :MerlinType to stay somehow? copy it to clipboard or some buffer
<vsiles> omarramo: :MerlinYankLatestType
Haudegen has joined #ocaml
<omarramo> wow, there's actually a command for that
<omarramo> thanks vsiles!
<vsiles> you're welcome
<vsiles> I looked for that one for a long time :D
<vsiles> I can't remember where but i also saw a pluging that displays types of let statement at the end of the line, that was cool
<vsiles> def`: do you remember what was the name of the plugin you showed me ?
jbrown has quit [Ping timeout: 252 seconds]
zolk3ri has quit [Remote host closed the connection]
Exagone313 has quit [Ping timeout: 268 seconds]
eagleflo has quit [Ping timeout: 250 seconds]
bacam has quit [Ping timeout: 246 seconds]
klntsky has quit [Ping timeout: 256 seconds]
nicoo has quit [Ping timeout: 256 seconds]
bacam has joined #ocaml
magicbit has quit [Ping timeout: 246 seconds]
magicbit has joined #ocaml
edcragg has quit [Ping timeout: 264 seconds]
klntsky has joined #ocaml
<freyr69> Does Ctypes always release GIL?
jbrown has joined #ocaml
<Drup> no, there is a specific option for it
<freyr69> Where is is?
<Drup> in the foreign function, iirc
Exagone313 has joined #ocaml
<freyr69> ?release_runtime_lock:bool
<freyr69> I see, thanks
<Drup> also, concurency_policy in http://ocamllabs.io/ocaml-ctypes/Cstubs.html
<freyr69> Is Ctypes preferable over the native ffi?
edcragg has joined #ocaml
<Drup> I general, I would say yes
<Drup> it's safer and probably easier to obtain what you want
<Armael> it's a bit more heavy-weight on the build-system side
<Drup> it is
<Armael> since most of the extra safety comes when you use stubs generation
<freyr69> Where should I pass those concurency policies?
nicoo has joined #ocaml
<Drup> to the write_{c,ml} function at the bottom
<Drup> it's if you use stub generation
<Drup> ctypes can work in two modes: dynamic bindings, using libffi (and the Foreign module) and static binding using stubs (and the Cstrub module)
eagleflo has joined #ocaml
<freyr69> At the moment I use the Foreign module
<freyr69> by dynamic you mean dynamic linking?
<Armael> the second mode is actually two modes I believe: you can only generate stubs for the functions to bind, or also generate stubs for the data structures (Cstubs_struct) which adds an other layer of stubs generation
<Drup> freyr69: yes, dynamic link
<Armael> freyr69: in that case yes, it will dynamically link the .so of the library and call the functions in there using libffi
<Armael> it will not read the .h file for instance, so if you make a mistake in the prototype of a stub then it will just crash
<Armael> "stubs generation" will generate C (and OCaml) code, and try to link it against the headers of the library
<freyr69> Does the stub generator works for interacting with external C libraries (statically or dynamically linked)?
<freyr69> interfacing*
<Armael> yes, as long as the library installed its headers somewhere
<freyr69> I see, thanks
lorp has quit [Ping timeout: 246 seconds]
lorp has joined #ocaml
freyr69 has quit [Remote host closed the connection]
AnAverageHuman has joined #ocaml
opt9 has joined #ocaml
jaar has joined #ocaml
AnAverageHuman has quit [Ping timeout: 256 seconds]
jao has joined #ocaml
kjak has quit [Ping timeout: 244 seconds]
opt9 has quit [Ping timeout: 252 seconds]
kjak has joined #ocaml
silenc3r has joined #ocaml
silenc3r has quit [Remote host closed the connection]
silenc3r has joined #ocaml
status402 has quit [Quit: status402]
kjak has quit [Ping timeout: 268 seconds]
gareppa has joined #ocaml
opt9 has joined #ocaml
opt9 has joined #ocaml
opt9 has quit [Client Quit]
Haudegen has quit [Ping timeout: 240 seconds]
gareppa has quit [Remote host closed the connection]
opt9 has joined #ocaml
edcragg has quit [Remote host closed the connection]
edcragg has joined #ocaml
gareppa has joined #ocaml
spew has joined #ocaml
mildtaste has quit [Remote host closed the connection]
Denommus has joined #ocaml
r3s1stanc3_ has quit [Quit: ZNC 1.7.2 - https://znc.in]
r3s1stanc3 has joined #ocaml
silenc3r has quit [Remote host closed the connection]
lorp has quit [Quit: Leaving]
AnAverageHuman has joined #ocaml
rwmjones is now known as rwmjones_HOLS
jbrown has quit [Ping timeout: 252 seconds]
jbrown has joined #ocaml
dedgrant has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
marsam has joined #ocaml
gareppa has quit [Quit: Leaving]
AnAverageHuman has quit [Ping timeout: 256 seconds]
kakadu has quit [Remote host closed the connection]
sagotch has quit [Ping timeout: 250 seconds]
Serpent7776 has joined #ocaml
omarramo has quit [Read error: Connection reset by peer]
omarramo has joined #ocaml
asymptotically has quit [Remote host closed the connection]
asymptotically has joined #ocaml
ggole has quit [Quit: Leaving]
q9929t has joined #ocaml
assemblyman has joined #ocaml
q9929t has quit [Client Quit]
assemblyman has quit [Quit: ™]
zolk3ri has joined #ocaml
jaar has quit [Quit: Leaving]
TheLemonMan has joined #ocaml
omarramo has quit [Ping timeout: 240 seconds]
omarramo has joined #ocaml
jnavila has joined #ocaml
jnavila has quit [Remote host closed the connection]
jnavila has joined #ocaml
kakadu has joined #ocaml
kakadu has quit [Remote host closed the connection]
kakadu has joined #ocaml
webshinra has quit [Ping timeout: 252 seconds]
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
jnavila has quit [Ping timeout: 246 seconds]
omarramo has quit [Ping timeout: 240 seconds]
omarramo has joined #ocaml
gravicappa has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
dedgrant has quit [Ping timeout: 245 seconds]
kakadu has quit [Remote host closed the connection]
kakadu has joined #ocaml
kjak has joined #ocaml
Anarchos has joined #ocaml
kjak_ has joined #ocaml
pzp has joined #ocaml
embden has joined #ocaml
<embden> hi, I am trying to reproduce the example with graphics: https://ocaml.org/learn/tutorials/structure_of_ocaml_programs.html but have the error: Unbound module Graphics
<Anarchos> i have a "S ./**" in my .merlin file, but it still complains "Not in environment"
<Anarchos> how can i investigate this issue ?
Anarchos has quit [Ping timeout: 268 seconds]
Denommus has quit [Remote host closed the connection]
kakadu has quit [Remote host closed the connection]
marsam has quit [Ping timeout: 252 seconds]
omarramo has quit [Remote host closed the connection]
assemblyman has joined #ocaml
Serpent7776 has quit [Read error: Connection reset by peer]
Serpent7776 has joined #ocaml
kakadu has joined #ocaml
kakadu has quit [Remote host closed the connection]
Serpent7776 has quit [Quit: leaving]
kakadu has joined #ocaml
webshinra has joined #ocaml
kvda has joined #ocaml
dedgrant has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
<embden> Are there any really good ocaml tutorials. I was trying this one https://ocaml.org/learn/tutorials/structure_of_ocaml_programs.html and it is bad
jnavila has quit [Remote host closed the connection]
<octachron> embden, more a book than a tutorial: https://dev.realworldocaml.org ?
<octachron> the manual might work too, depending on which level of detail you need
iovec has quit [Quit: Connection closed for inactivity]
<embden> octachron: I just want to add some features to a game called freetennis
<embden> it is written in ocaml, so...
dmiles has quit [Ping timeout: 245 seconds]
assemblyman has quit [Quit: ™]
bartholin has quit [Remote host closed the connection]
logicmoo has joined #ocaml
Haudegen has joined #ocaml
kjak_ has left #ocaml [#ocaml]
navaja has joined #ocaml
embden has quit [Ping timeout: 240 seconds]
asymptotically has quit [Quit: Leaving]
navaja has quit [Ping timeout: 268 seconds]