<ocaml605>
Has anyone setup this ? Solarized theme ?
ocaml605 has quit [Client Quit]
zirman has quit [Ping timeout: 250 seconds]
ocaml581 has joined #ocaml
ocaml581 has quit [Ping timeout: 260 seconds]
nicholasf has quit [Remote host closed the connection]
nicholasf has joined #ocaml
nicholasf has quit [Ping timeout: 265 seconds]
desert-rose has joined #ocaml
axiles_ has quit [Ping timeout: 260 seconds]
nicholasf has joined #ocaml
ygrek has joined #ocaml
axiles_ has joined #ocaml
wu_ng has quit [Remote host closed the connection]
jnavila has joined #ocaml
alfredo has joined #ocaml
freusque has joined #ocaml
ygrek has quit [Ping timeout: 258 seconds]
def` has quit [Ping timeout: 260 seconds]
def` has joined #ocaml
Hao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicholas_ has joined #ocaml
nicholasf has quit [Ping timeout: 244 seconds]
fold4 has quit [Ping timeout: 244 seconds]
Simn has joined #ocaml
Hao has joined #ocaml
fold4 has joined #ocaml
Sim_n has joined #ocaml
Simn has quit [Ping timeout: 246 seconds]
ygrek has joined #ocaml
noddy has quit [Ping timeout: 260 seconds]
Hao has quit [Ping timeout: 250 seconds]
freusque has quit [Ping timeout: 260 seconds]
nicholas_ has quit [Remote host closed the connection]
noddy has joined #ocaml
FreeBirdLjj has joined #ocaml
pitastrudl has quit [Remote host closed the connection]
FreeBirdLjj has quit [Ping timeout: 260 seconds]
pitastrudl has joined #ocaml
AlexDenisov has joined #ocaml
d0nn1e has quit [Ping timeout: 258 seconds]
d0nn1e has joined #ocaml
freusque has joined #ocaml
mpenet has joined #ocaml
wu_ng has joined #ocaml
zpe has joined #ocaml
maattdd has joined #ocaml
ocaml931 has joined #ocaml
zpe has quit [Remote host closed the connection]
<ocaml931>
List of values [1;2;3;4] I want to iterate and use 1 and 2 / 2 and 3/ 3 and 4.
zpe has joined #ocaml
<ocaml931>
Does this pattern help ? | a :: (b :: _ as t)
<def`>
ocaml931: are you the same who asked about emacs look n feel? Then it is the wombat theme
<ocaml931>
Oh! Yes. Thanks. I tried Solarized
<def`>
ocaml931: and yes, this is the right pattern for what you describe
<ocaml931>
Great
zpe has quit [Ping timeout: 268 seconds]
<ocaml931>
Don't know why String.sub str a b is invalid ? | a :: (b :: _ as t)
<ocaml931>
List if ints.
<def`>
you mean it raises a invalid argument exception?
<ocaml931>
Yes
<def`>
I guess your integers are absolute positions in the string.
<def`>
sub takes a length, so
<def`>
String.sub str a (b - a)
<ocaml931>
Right
<ocaml931>
Got it.
nicholasf has joined #ocaml
nicholasf has quit [Ping timeout: 258 seconds]
malc_ has joined #ocaml
mpenet has left #ocaml ["ERC (IRC client for Emacs 26.0.50.2)"]
AlexDenisov has quit [Read error: Connection reset by peer]
AlexDenisov has joined #ocaml
jwatzman|work has joined #ocaml
zpe has joined #ocaml
simn__ has joined #ocaml
Sim_n has quit [Ping timeout: 246 seconds]
nicholasf has joined #ocaml
gregoire has quit [Ping timeout: 260 seconds]
Geekingfrog has joined #ocaml
nicholasf has quit [Ping timeout: 260 seconds]
malc_ has quit [Quit: ERC (IRC client for Emacs 25.0.50.2)]
_andre has joined #ocaml
djellemah_ has quit [Ping timeout: 258 seconds]
wu_ng has quit [Ping timeout: 248 seconds]
silver has joined #ocaml
djellemah has joined #ocaml
zirman has joined #ocaml
zirman has quit [Changing host]
zirman has joined #ocaml
mfp has joined #ocaml
FreeBirdLjj has joined #ocaml
kakadu has joined #ocaml
zirman has quit [Ping timeout: 268 seconds]
FreeBirdLjj has quit [Ping timeout: 258 seconds]
myst|fon has quit []
myst|fon has joined #ocaml
freusque has quit [Ping timeout: 245 seconds]
gregoire has joined #ocaml
ygrek has quit [Ping timeout: 268 seconds]
jao has quit [Ping timeout: 246 seconds]
maattdd has quit [Ping timeout: 245 seconds]
copy` has joined #ocaml
nicoo has quit [Ping timeout: 268 seconds]
rossberg has quit [Ping timeout: 246 seconds]
ewanas has quit [Ping timeout: 246 seconds]
rossberg has joined #ocaml
ewanas has joined #ocaml
jao has joined #ocaml
noddy has quit [Ping timeout: 256 seconds]
pyon has joined #ocaml
pyon has quit [Remote host closed the connection]
nicoo has joined #ocaml
lujara has quit [Ping timeout: 250 seconds]
pyon has joined #ocaml
mal`` has quit [Ping timeout: 246 seconds]
mal`` has joined #ocaml
lujara has joined #ocaml
lujara has quit [Changing host]
lujara has joined #ocaml
nicholasf has joined #ocaml
nicholasf has quit [Ping timeout: 248 seconds]
lujara has quit [Ping timeout: 250 seconds]
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexDenisov has joined #ocaml
nicholasf has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 256 seconds]
maattdd has joined #ocaml
thizanne has joined #ocaml
mpenet has joined #ocaml
ohama has quit [Read error: Connection reset by peer]
freusque has joined #ocaml
agarwal1975 has quit [Quit: agarwal1975]
ohama has joined #ocaml
fraggle_ has quit [Remote host closed the connection]
TarVanimelde has quit [Quit: TarVanimelde]
fraggle_ has joined #ocaml
TarVanimelde has joined #ocaml
noddy has joined #ocaml
pierpa has joined #ocaml
TarVanimelde has quit [Quit: TarVanimelde]
TarVanimelde has joined #ocaml
lujara has joined #ocaml
lujara has joined #ocaml
lujara has quit [Changing host]
agarwal1975 has joined #ocaml
mpenet has quit [Ping timeout: 264 seconds]
nicholasf has quit [Remote host closed the connection]
ocaml931 has quit [Ping timeout: 260 seconds]
noddy has quit [Ping timeout: 260 seconds]
zirman has joined #ocaml
xavierm02 has joined #ocaml
zirman has quit [Ping timeout: 260 seconds]
sh0t has joined #ocaml
chindy has joined #ocaml
govg has quit [Ping timeout: 260 seconds]
zirman has joined #ocaml
zirman has quit [Changing host]
zirman has joined #ocaml
zirman has quit [Remote host closed the connection]
zirman has joined #ocaml
zirman has joined #ocaml
zirman has quit [Changing host]
FreeBirdLjj has joined #ocaml
rgrinberg has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 246 seconds]
govg has joined #ocaml
mnqw has quit [Quit: Page closed]
Hao has joined #ocaml
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vramana has joined #ocaml
noddy has joined #ocaml
AlexDenisov has joined #ocaml
rgrinberg has quit [Remote host closed the connection]
nomicflux has joined #ocaml
rgrinberg has joined #ocaml
yomimono has joined #ocaml
gregoire has quit [Ping timeout: 265 seconds]
MercurialAlchemi has quit [Ping timeout: 260 seconds]
xavierm02 has quit [Quit: Page closed]
ryanartecona has joined #ocaml
<freehck>
People, how do you draw dependency graphs for your modules?
<Drup>
I don't, but ocamldoc -dot
<freehck>
thx
<dxtr>
Are there any recommended networking libraries or should I just wrap connect()/recv()/send()/close()?
nicootje has joined #ocaml
nicoo has quit [Ping timeout: 268 seconds]
eagleflo has quit [Ping timeout: 248 seconds]
al-damiri has joined #ocaml
eagleflo has joined #ocaml
smondet` has quit [Ping timeout: 258 seconds]
shinnya has joined #ocaml
jao has quit [Ping timeout: 265 seconds]
govg has quit [Ping timeout: 250 seconds]
noddy has quit [Ping timeout: 260 seconds]
govg has joined #ocaml
mpenet has joined #ocaml
TarVanimelde has quit [Quit: TarVanimelde]
maattdd has quit [Ping timeout: 245 seconds]
noddy has joined #ocaml
fre has joined #ocaml
zirman has quit [Remote host closed the connection]
chindy has quit [Remote host closed the connection]
noddy has quit [Ping timeout: 245 seconds]
MercurialAlchemi has joined #ocaml
mpenet has quit [Remote host closed the connection]
isd has quit [Read error: Connection reset by peer]
Balod has quit [Remote host closed the connection]
argent_smith has joined #ocaml
<argent_smith>
hi ppl. is there any good tutorial (not just reference guide) on lwt ppx? I’ve googled out a couple of tutorials in pure OCaml code (Lwt* calls only) and a good reference of lwt ppx at the oscigen site. Still can’t get when should I use ppx and how deep it goes (ever use let or only lwt%let)?
gregoire has joined #ocaml
<aantron>
argent_smith: oops, just replied on gitter
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
slash^ has joined #ocaml
<argent_smith>
ok thnx
trepta7 has joined #ocaml
<argent_smith>
i suppose next week i'll know the thing better )
<aantron>
:)
<aantron>
feel free to ask any questions here
<argent_smith>
at least this chat works better )
<aantron>
yeah. there are lots of users here too
zirman has joined #ocaml
maattdd has joined #ocaml
noddy has joined #ocaml
jnavila has quit [Quit: It was time]
zirman has quit [Remote host closed the connection]
jwatzman|work has quit [Quit: jwatzman|work]
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zirman has joined #ocaml
shinnya has quit [Ping timeout: 256 seconds]
zirman has quit [Ping timeout: 260 seconds]
dakk has joined #ocaml
ygrek has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
Balod has joined #ocaml
jbrown has quit [Remote host closed the connection]
sh0t has quit [Ping timeout: 250 seconds]
gregoire has quit [Ping timeout: 250 seconds]
<dmbaturin>
Enjolras, aantron: Ok, got to un-screwing my opam setup. I indeed have been running opam withou aspcud all along. Fedora doesn't have it in its repos, so I need a to find where to get it from.
average has joined #ocaml
Orion3k has quit [Ping timeout: 260 seconds]
ryanartecona has joined #ocaml
sh0t has joined #ocaml
zpe has quit [Remote host closed the connection]
Sorella has quit [Quit: Connection closed for inactivity]
isd has joined #ocaml
maattdd has quit [Ping timeout: 268 seconds]
jbrown has joined #ocaml
infinity0 has quit [Ping timeout: 248 seconds]
sepp2k has joined #ocaml
infinity0 has joined #ocaml
zirman has joined #ocaml
vramana has quit [Remote host closed the connection]
zirman has quit [Remote host closed the connection]
<aantron>
dmbaturin: one way to get some docs is to look in ~/.opam/your_switch/lib/yojson, in the .mli files
<dmbaturin>
Yeah, I'll resort to reading the .mli's if nothing else. :)
tane has quit [Ping timeout: 260 seconds]
gregoire has joined #ocaml
<copy`>
You can use odig to browser html docs for most projects
<copy`>
It's quite useful, in my opinion
tane has joined #ocaml
jnavila has quit [Ping timeout: 256 seconds]
maattdd has joined #ocaml
_andre has quit [Quit: leaving]
nicholasf has joined #ocaml
maattdd has quit [Ping timeout: 260 seconds]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
<dxtr>
Uhm, stupid question, but how do I use modules in subdirectories?
<dxtr>
Subdir.Module?
alfredo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aantron>
usually just Module. ocaml doesn't use subdirectories to structure your modules
<aantron>
though some hacks have been written to achieve that
<dxtr>
Oh, okay
dakk_ has joined #ocaml
dakk has quit [Ping timeout: 246 seconds]
<dmbaturin>
Error: No implementations provided for the following modules: Ppx_deriving_runtime referenced from /home/dmbaturin/.opam/4.03.0/lib/ppx_deriving_yojson/ppx_deriving_yojson_runtime.cmxa(Ppx_deriving_yojson_runtime)
<dmbaturin>
I wonder why I had to specify ppx_deriving.runtime explicitly in BuildDepends
tane has quit [Ping timeout: 268 seconds]
ygrek has quit [Ping timeout: 250 seconds]
tane has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
kakadu has joined #ocaml
tane has quit [Ping timeout: 250 seconds]
ygrek has joined #ocaml
govg has quit [Ping timeout: 246 seconds]
noddy has quit [Ping timeout: 268 seconds]
gregoire has quit [Ping timeout: 256 seconds]
tane has joined #ocaml
<dxtr>
How do I tell merlin to look in the current directory for modules? It says it can't find the module I created although the project builds fine
<octachron>
dxtr, note that you also need a "B directory_with_the_cmi_files" in your ".merline" file
tane has quit [Ping timeout: 245 seconds]
AlexDenisov has joined #ocaml
nicootje is now known as nicoo
infinity0 has quit [Ping timeout: 248 seconds]
jnavila has joined #ocaml
pierpa has quit [Ping timeout: 256 seconds]
slash^ has quit [Read error: Connection reset by peer]
infinity0 has joined #ocaml
jnavila has quit [Ping timeout: 260 seconds]
jnavila has joined #ocaml
infinity0 has quit [Remote host closed the connection]
<dxtr>
octachron: Oh yeah that did it
infinity0 has joined #ocaml
nicholasf has quit [Remote host closed the connection]
<dxtr>
Also, would you guys recommend cohttp or ocsigen?
nicholasf has joined #ocaml
Orion3k has joined #ocaml
zpe has joined #ocaml
nicholasf has quit [Ping timeout: 260 seconds]
ygrek has joined #ocaml
<flux>
well, cohttp is probably a lot easier to get into.. though ocsigen is quite a lot cooler ;)
<dxtr>
Hmm, did I misunderstand something? I thought ocsigen had a client library but I can't seem to find it
<flux>
I believe you did understand something wrong :)
<flux>
here I was thinking that perhaps cohttp has a server library?-)
<flux>
(yes, it does)
<dxtr>
Oh, alright then
<Drup>
dxtr: an http client ? Yeah it does, but don't use it, it's primitive and only there if you are already using ocsigen stuff and need something quick and dirty
<dxtr>
Drup: Oh alright
infinity0_ has joined #ocaml
infinity0 has joined #ocaml
infinity0 has quit [Changing host]
infinity0 has quit [Killed (sinisalo.freenode.net (Nickname regained by services))]
<Drup>
except if you mean on the javascript side, in that case, it's in js_of_ocaml's library
<dxtr>
Could ocsigen be "embedded" in my program or should I go with something else if I want a server too?
<Drup>
yeah, that usually works the other way around
<Drup>
your stuff will be linked by the ocsigen server. You don't control the main loop
<dxtr>
Well that's not what I wanted :(
<Drup>
Is that really a problem ?
<Drup>
dxtr: could you detail your use case ?
<dxtr>
I'd like to embed a webserver than I can turn on and off in my program
<Drup>
and do what with it ? Rest API ?
<dxtr>
You're assuming I have this all figured out :D
<dxtr>
I literally just came up with the idea
<Drup>
you probably want to use cohttp :)
<dxtr>
Hehe
<dxtr>
oh lol
<dxtr>
The description on github literally says "Very lightweight HTTP server using Lwt or Async "
<dxtr>
I thought cohttp was a client library only
<dxtr>
Well then
infinity0 has joined #ocaml
rgrinberg has quit [Ping timeout: 246 seconds]
AlexDeni_ has joined #ocaml
AlexDenisov has quit [Ping timeout: 246 seconds]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
maattdd has joined #ocaml
<argent_smith>
ppl, how should I write _oasis to build an app with more than one mailn.ml?
<argent_smith>
i mean i've got operations.ml with the corresponding module which i want to use from main
AlexDeni_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
maattdd has quit [Ping timeout: 260 seconds]
AlexDenisov has quit [Client Quit]
<argent_smith>
hmm… looks like i should declare a library (with Install: false) and use it. right?
<octachron>
argent_smith, do you want a) multiple executables? b) separated executable(s) + library(es)? c) multiple modules linked together in one executable?
<argent_smith>
c)
pierpa has joined #ocaml
<octachron>
then a simple "MainIs: main_file_name.ml" should be enough
<argent_smith>
in this case it compiles this file only
infinity0 has quit [Ping timeout: 260 seconds]
<octachron>
argent_smith, are you using your Operations module inside your main yet?
infinity0 has joined #ocaml
ollehar has joined #ocaml
gbluma has quit [Remote host closed the connection]
<octachron>
in normal setup, modules are compiled as needed, if you are not using a module, it is normal that it is not compiled
gregoire has joined #ocaml
<argent_smith>
octachron: yes, i do. i call Operations.do_tings; then I see how make runs ocamlfind ocamlc -c -g -annot -bin-annot -safe-string -package cmdliner -I src -o src/main.cmo src/main.ml ;; then Error: Unbound value Operations.do_things
infinity0 has quit [Remote host closed the connection]
<octachron>
do you have a "Path: src" line in your oasis?
<argent_smith>
yes
desert-rose has quit [Ping timeout: 260 seconds]
infinity0 has joined #ocaml
<octachron>
argent_smith, you probably need to add "<src>: include" line at the end of your _tags file
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
nicholasf has joined #ocaml
fre has quit [Ping timeout: 268 seconds]
<argent_smith>
fixed: added findlib to build depends
<argent_smith>
at least now i know what's it for there
d0nn1e has quit [Ping timeout: 260 seconds]
d0nn1e has joined #ocaml
florian_ has joined #ocaml
<florian_>
i have a minimal reproducer of a crash in my lwt zmq code, is appropriate to add the source code to an email for the mailing list?
<argent_smith>
i suppose a gist would be better
<Drup>
florian_: why not use the bugtracker directly ? and yes, a gist/pastebin is the right way
pierpa has quit [Ping timeout: 248 seconds]
<florian_>
Drup: thats the code
<argent_smith>
gist is highlighting btw )
<florian_>
and i get this error message: Error: Context not closed before finalization
<florian_>
i thought i might reach more people through the mailing list
<argent_smith>
why not send there a letter with a description and the link?
th5 has quit []
argent_smith has quit [Quit: Leaving.]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
jnavila has quit [Ping timeout: 256 seconds]
<dxtr>
oh, so I can't just strip out 'a from an 'a Lwt.t?
<dxtr>
Didn't know ocaml had this too :p
<dxtr>
Nevermind
<dxtr>
>|= it is
<dxtr>
No it's not
<dxtr>
Goddammit
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
pierpa has joined #ocaml
maattdd has joined #ocaml
<aantron>
dxtr: what are you having trouble with?
zirman has quit [Quit: Leaving...]
orbifx has joined #ocaml
<dxtr>
Nothing in particular. Just have to rethink this :)