<linswd44>
ocamlc I beleive. it was part of build process. I was under impression that inconsistency is in the library package not my code
teknozulu has quit [Ping timeout: 252 seconds]
<aantron>
it seems that way. are you using sociaml-vcard and batteries packages? i would say try removing them and reinstalling them in opam
<aantron>
hopefully you dont have a ton of things that will be removed when you remove batteries...
<aantron>
might want to try opam reinstall
<linswd44>
aantron: I resolved "nconsistent assumptions" by cleaning my build. So that part is OK. Thanks for the help!
<aantron>
okay, good :) thats what i meant by rebuilding from scratch :)
<linswd44>
but issue #5524 you mentioned above seems to be the one I am having in opam upgrade
<linswd44>
I would keep opam reinstall as a last resort as would take hours to recompile all packages I am using
JacobEdelman has quit [Quit: Connection closed for inactivity]
linswd44 has quit [Quit: BitchX: melts in your mouth, not in your hands]
madroach has quit [Ping timeout: 248 seconds]
madroach has joined #ocaml
kakadu has quit []
teknozulu has joined #ocaml
Stalkr has joined #ocaml
groovy2shoes has quit [Quit: Leaving]
groovy2shoes has joined #ocaml
antkong_ has quit [Quit: antkong_]
antkong has joined #ocaml
Xandaros has quit [Ping timeout: 240 seconds]
Stalkr has quit [Quit: Leaving...]
lokien_ has quit [Quit: Connection closed for inactivity]
Xandaros has joined #ocaml
teknozulu has quit [Ping timeout: 276 seconds]
koshmar has quit [Ping timeout: 250 seconds]
foolishmonkey has quit [Quit: Leaving]
nkhodyunya has joined #ocaml
nkhodyunya has quit [Ping timeout: 272 seconds]
govg has joined #ocaml
FreeBirdLjj has joined #ocaml
antkong has quit [Quit: antkong]
antkong_ has joined #ocaml
teknozulu has joined #ocaml
seangrove has quit [Ping timeout: 256 seconds]
seangrove has joined #ocaml
teknozulu has quit [Ping timeout: 252 seconds]
seangrove has quit [Ping timeout: 240 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
seangrove has joined #ocaml
antkong_ has quit [Quit: antkong_]
seangrove has quit [Remote host closed the connection]
seangrove has joined #ocaml
jeffmo has joined #ocaml
ollehar1 has joined #ocaml
ollehar has quit [Ping timeout: 245 seconds]
ollehar1 is now known as ollehar
virtualeyes has quit [Ping timeout: 245 seconds]
seangrove has quit [Ping timeout: 250 seconds]
aantron_ has joined #ocaml
aantron has quit [Ping timeout: 256 seconds]
seangrove has joined #ocaml
mcc has joined #ocaml
aantron_ has quit [Remote host closed the connection]
seangrove has quit [Ping timeout: 264 seconds]
nkhodyunya has joined #ocaml
nkhodyunya has quit [Ping timeout: 245 seconds]
mac10688 has quit [Ping timeout: 240 seconds]
seangrove has joined #ocaml
seangrove has quit [Ping timeout: 245 seconds]
FreeBirdLjj has quit [Read error: Connection reset by peer]
FreeBirdLjj has joined #ocaml
seangrove has joined #ocaml
seangrove has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 240 seconds]
seangrove has joined #ocaml
seangrove has quit [Ping timeout: 256 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
seangrove has joined #ocaml
seangrove has quit [Ping timeout: 256 seconds]
mrm has quit [Ping timeout: 240 seconds]
seangrove has joined #ocaml
ldg has quit [Ping timeout: 250 seconds]
ygrek_ has quit [Ping timeout: 245 seconds]
seangrove has quit [Ping timeout: 256 seconds]
seangrove has joined #ocaml
freck72 has joined #ocaml
jeffmo has quit [Quit: jeffmo]
freck72 has left #ocaml [#ocaml]
seangrove has quit [Ping timeout: 256 seconds]
seangrove has joined #ocaml
nkhodyunya has joined #ocaml
nkhodyunya has quit [Ping timeout: 240 seconds]
Sorella has quit [Quit: Connection closed for inactivity]
zaquest has joined #ocaml
ygrek_ has joined #ocaml
kansi has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
govg has joined #ocaml
ygrek_ has quit [Ping timeout: 264 seconds]
damason has quit [Ping timeout: 245 seconds]
govg has quit [Ping timeout: 250 seconds]
govg has joined #ocaml
<sspi>
Drup: wanted to give a heads up on how I solved my typing PPX challenge - I split the build process in several steps and added the dependencies via the search path - after this the typing from other files was easily found
kushal has quit [Ping timeout: 256 seconds]
seangrove has quit [Ping timeout: 256 seconds]
copy` has quit [Quit: Connection closed for inactivity]
slash^ has joined #ocaml
govg has quit [Ping timeout: 264 seconds]
govg has joined #ocaml
dsheets has joined #ocaml
MercurialAlchemi has joined #ocaml
kansi has quit [Ping timeout: 264 seconds]
seangrove has joined #ocaml
seangrove has quit [Ping timeout: 256 seconds]
dsheets has quit [Remote host closed the connection]
lokien_ has joined #ocaml
govg has quit [Ping timeout: 264 seconds]
tane has joined #ocaml
seangrove has joined #ocaml
govg has joined #ocaml
mcc has quit [Quit: Connection closed for inactivity]
govg has quit [Ping timeout: 264 seconds]
NinjArbuste has joined #ocaml
<NinjArbuste>
Hi there, how could i modify the nth element of of List ?
govg has joined #ocaml
elfring has joined #ocaml
groovy2shoes has quit [Quit: Leaving]
groovy2shoes has joined #ocaml
darkf has joined #ocaml
sz0 has joined #ocaml
nkhodyunya has joined #ocaml
seangrove has quit [Ping timeout: 256 seconds]
nkhodyunya has quit [Ping timeout: 264 seconds]
FreeBird_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 245 seconds]
FreeBird_ has quit [Ping timeout: 250 seconds]
<lyxia>
NinjArbuste: pattern match on the list until you get to the nth element
<NinjArbuste>
Thanks ! (i actually used an array insted)
Simn has joined #ocaml
silver has joined #ocaml
<NinjArbuste>
Do you know how to do pause shorter than a second ? I tryed using Unix.select but it looks like it's not usable while a graph is open !
<flux>
ninjarbuste, not usable how?
<NinjArbuste>
flux, when i use it i got this 'Exception: Unix.Unix_error (EINTR, "select", "")'
<NinjArbuste>
And according to the internet it not a bug just that the graphics interrupt the select system call
<flux>
right, I suppose it uses SIGALRM to do its work
<flux>
well, I think there are libraries that provide interface to usleep
<flux>
I guess your graphics needs aren't very high if the Graphics module is sufficient
<flux>
why do yuo need sub-second sleeps with it?
dsheets has joined #ocaml
<NinjArbuste>
it's just a stupid animation x)
<flux>
I must admit that setting up lablgtk2 and cairo is more work. maybe someone(TM) should offer a "template" for writing code based on those.
<NinjArbuste>
and if i want something that looks ~smooth i need sub-second sleeps !
dsheets_ has joined #ocaml
dsheets has quit [Remote host closed the connection]
<NinjArbuste>
well nevermind
<flux>
ninjarbuste, core provides Core_unix.nanosleep and ocamlnet provides Netsys.sleep with float argument
<NinjArbuste>
i'll try this out thanks !
<NinjArbuste>
flux, could i use Thread.delay ?
seangrove has joined #ocaml
dsheets_ has quit [Ping timeout: 248 seconds]
dsheets has joined #ocaml
seangrove has quit [Ping timeout: 256 seconds]
larhat has joined #ocaml
dsheets has quit [Ping timeout: 248 seconds]
foolishmonkey has joined #ocaml
govg has quit [Ping timeout: 264 seconds]
yawnt has joined #ocaml
govg has joined #ocaml
cic has joined #ocaml
kansi has joined #ocaml
<cic>
How can one disable warnings in ocamlbuild in the same way as one can do in ocamlopt? I.e., something like -w -<num> for ocamlbuild.
<cic>
-cflags "-w -<num>" seems to work ...
Haudegen has quit [Ping timeout: 250 seconds]
seangrove has joined #ocaml
nkhodyunya has joined #ocaml
seangrove has quit [Ping timeout: 256 seconds]
nkhodyunya has quit [Ping timeout: 240 seconds]
nkhodyunya has joined #ocaml
Haudegen has joined #ocaml
govg has quit [Ping timeout: 264 seconds]
legauchiste has joined #ocaml
NinjArbuste has quit [Quit: Adieu !]
<foolishmonkey>
cic, which warning do you want to disable?
govg has joined #ocaml
nkhodyunya has quit [Quit: Leaving.]
iosys has quit [Quit: Leaving...]
Haudegen has quit [Remote host closed the connection]
Stalkr has joined #ocaml
seangrove has joined #ocaml
virtualeyes has joined #ocaml
nkhodyunya has joined #ocaml
seangrove has quit [Ping timeout: 256 seconds]
Haudegen has joined #ocaml
Haudegen has quit [Read error: Connection reset by peer]
Haudegen has joined #ocaml
Haudegen has quit [Read error: Connection reset by peer]
elfring has quit [Remote host closed the connection]
legauchiste has quit [Read error: Connection reset by peer]
Haudegen has joined #ocaml
ggole has joined #ocaml
ollehar has quit [Remote host closed the connection]
Haudegen has quit [Ping timeout: 250 seconds]
legauchiste has joined #ocaml
ollehar has joined #ocaml
ollehar has quit [Remote host closed the connection]
tane has quit [Quit: Verlassend]
ollehar has joined #ocaml
legauchiste has quit [Read error: Connection reset by peer]
legauchiste has joined #ocaml
lokien_ has quit [Quit: Connection closed for inactivity]
legauchiste has quit [Read error: Connection reset by peer]
MercurialAlchemi has quit [Ping timeout: 272 seconds]
iosys has joined #ocaml
Haudegen has joined #ocaml
shinnya has joined #ocaml
demus has joined #ocaml
mxv has joined #ocaml
malc_ has joined #ocaml
seangrove has joined #ocaml
seangrove has quit [Ping timeout: 256 seconds]
demus has quit [Quit: Leaving]
demus has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
pierpa has joined #ocaml
copy` has joined #ocaml
malc_ has quit [Quit: leaving]
rand has joined #ocaml
rand is now known as Guest53770
govg has joined #ocaml
kolko has quit [Ping timeout: 240 seconds]
elfring has joined #ocaml
Akshay has joined #ocaml
cic has quit [Quit: WeeChat 1.3]
pierpa has quit [Read error: Connection reset by peer]
mac10688 has joined #ocaml
seangrove has joined #ocaml
seangrove has quit [Ping timeout: 256 seconds]
<Drup>
sspi: can you show the source ?
lokien_ has joined #ocaml
nkhodyunya has quit [Quit: Leaving.]
demus has quit [Quit: Leaving]
govg has quit [Ping timeout: 264 seconds]
Sorella has joined #ocaml
legauchiste has joined #ocaml
govg has joined #ocaml
kakadu has joined #ocaml
Akshay has quit [Quit: Leaving]
tane has joined #ocaml
nkhodyunya has joined #ocaml
Haudegen has quit [Ping timeout: 245 seconds]
govg has quit [Quit: leaving]
Haudegen has joined #ocaml
lobo has joined #ocaml
iZsh_ has quit [Ping timeout: 256 seconds]
mac10688 has quit [Ping timeout: 264 seconds]
iZsh has joined #ocaml
seangrove has joined #ocaml
MercurialAlchemi has joined #ocaml
legauchiste has quit [Read error: Connection reset by peer]
gdd229 has joined #ocaml
malc_ has joined #ocaml
mac10688 has joined #ocaml
lokien_ has quit [Quit: Connection closed for inactivity]
martintrojer has quit [Ping timeout: 250 seconds]
martintrojer has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 250 seconds]
yawnt has quit [Ping timeout: 276 seconds]
malc_ has quit [Quit: leaving]
pierpa has joined #ocaml
MercurialAlchemi has joined #ocaml
virtualeyes has quit [Quit: Leaving.]
yawnt has joined #ocaml
lobo has quit [Quit: leaving]
<seangrove>
Drup: Does the lack of incremental compilation in jsoo start to hurt for quick iteration in medium size projects?
yawnt has quit [Ping timeout: 256 seconds]
ollehar has quit [Ping timeout: 245 seconds]
aantron has joined #ocaml
<Drup>
a bit
<Drup>
don't enable optims while doing dev, that's clear
Haudegen has quit [Ping timeout: 260 seconds]
<seangrove>
Drup: Good to know - my goal for today is to get a mirage setup serving markdown + javascript + a few json-based endpoints
<seangrove>
To that end, I often get, "Error: Unbound module Mirage" warning in emacs
<Drup>
that's not very difficult to solve :)
<seangrove>
I'm mirroring the mirage-www setup (but just adding files in manually, haven't copied anything over), so I have a .merlin file in the top directory that lists all (I think) of the relevant mirage packages, and then in my src/ directory I have a .merlin file that simply has REC in it
<Drup>
mirage-www
<Drup>
is far too complicated
<Drup>
don't copy that
<seangrove>
Hehe
<Drup>
either copy mirage-seal
<seangrove>
I'm at a bit of a loss for good examples, so just tying to follow ones that at least work
<seangrove>
Hrm, so it looks like mirage-seal is a tool taht wraps up static content - so if I wanted to add a new dynamic route, I wouldn't be able to use it
<seangrove>
Would it make sense to start with mirage-seal as a code base and modify it so I can use e.g. Opium?
<Drup>
that's what I did in the thing I linked you
<seangrove>
Ok, that makes sense - they seemed similar, but certainly different (not a *ton* written in No.'s README) ;)
<Drup>
(It doesn't use opium because I didn't care, but I guess ou could, not sure how opium is xen-compatible)
<Drup>
that's ... kind of on purpose x)
shinnya has quit [Ping timeout: 245 seconds]
Haudegen has joined #ocaml
<Drup>
It was never really meant as an example, just a personal thing I wanted to do and never really finished
nkhodyunya has quit [Quit: Leaving.]
<seangrove>
To be xen-compatible (via mirage), something just has to be pure-ocaml and have pure-ocaml dependencies, right?
<seangrove>
I guess binding to a port could be unix-specific
<Drup>
that's sufficient, but you can also have C stuff, as long as it's properly cross compiled
<seangrove>
Drup: You reference Key.Doc in No.'s config.ml - what module is that?
<Drup>
That's in the dev version of mirage
<Drup>
:/
* seangrove
grumbles
<seangrove>
So I can get that by pinning it somehow, right?
<Drup>
You should be able to remove all those
<Drup>
(or just start from mirage-seal)
nkhodyunya has joined #ocaml
<Drup>
Sorry, forgot about it ::
<seangrove>
(trying to pin a version of mirage, but need to get functoria now)
<Drup>
yeah; there are various changes in dev mirage
<Maelan>
saw on irc: someone so used to the ocaml toplevel, he ended messages with ;;
<Drup>
Really, just remove the thing
psy_ has joined #ocaml
<Drup>
Maelan: rather a failed smiley :)
<Maelan>
yup
quinguu has joined #ocaml
<seangrove>
Drup: pinning mirage and functoria got it so that `mirage configure --unix` at least completed
quinguu has left #ocaml [#ocaml]
<seangrove>
Would be nice if the opam/oasis/whatever-the-right file is could specify 1. the version of a dependency and 2. its source (standard opam, file system, or git repo)
<seangrove>
So I could simply git clone and be *sure* to have the same dep setup that the dev used
Simn has quit [Read error: Connection reset by peer]
<seangrove>
Well, `Error: Unbound module Key.Doc` still is there, frustratingly
<Drup>
I told you, just remove the thing or if you don't want to tinker, start from mirage-seal
<seangrove>
Drup: I suppose, just frustrated since I thought I might have known enough about opam to get dev deps working
<seangrove>
Drup: So merlin (or tuareg, not sure) seems to be upset that Key.Arg.info is undefined (so it and a 36 other things are highlighted in red in config.ml). Is that a misvonfiguration on my part, or just normal for config.ml?
<Drup>
not sure
Guest53770 has quit [Quit: leaving]
<Drup>
seangrove: how is it going ?
<seangrove>
Drup: Trying everything on 4.02.3 to see if that helps
yawnt has joined #ocaml
<Drup>
arf
elfring has quit [Ping timeout: 248 seconds]
<seangrove>
Yup, made progress - on 4.01 I had File "generator.ml", line 25, characters 10-11: Error: Syntax error: operator expected. Command exited with code 2. make: *** [main.native] Error 10
<seangrove>
elfring has joined #ocaml
<seangrove>
With 4.02.3 make succeeded, now trying to run the artifact: ./main.native | Fatal error: exception Lwt_vmnet.Error(0) | Raised at file "src/core/lwt.ml", line 789, characters 22-23 | Called from file "src/unix/lwt_main.ml", line 34, characters 8-18 | Called from file "main.ml", line 264, characters 5-10
<seangrove>
Searching for that now - seems like I need sudo
<Drup>
hum, that's just the usual stack stuff
<Drup>
try with sockets
<seangrove>
sudo got further, now there's a problem with `Fatal error: exception Invalid_argument("server.pem")`
<seangrove>
make secrets did the trick
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
madroach has joined #ocaml
<seangrove>
Drup: Sorry, not sure how to switch to sockets - I don't see a reference to NET in the makefile or config.ml
shinnya has joined #ocaml
koshmar has joined #ocaml
mac10688 has quit [Remote host closed the connection]
<Drup>
I really regret linking you this, I forgot it was using the dev version
<seangrove>
I'm sorry Drup, but I do appreciate the help trying to figure out how the pieces work together. I got through the mirage-www tutorial yesterday, feel like I'm making progress
M-Illandan has quit [Remote host closed the connection]
mrm has joined #ocaml
ollehar has joined #ocaml
copy` has quit [Quit: Connection closed for inactivity]
yawnt has quit [Ping timeout: 240 seconds]
groovy2shoes has quit [Quit: Leaving]
<seangrove>
Drup: Are you on a linux dev env? Seems like a lot of linux assumptions (which is fair, no major problem with it)
<Drup>
I am, but I didn't realized I made such assumptions :D
lobo has joined #ocaml
<seangrove>
So `mirage describe` shows lots of great keys, but I don't see e.g. port there. If I use socket networking, how does it determine what port to bind to?
<seangrove>
The text renders properly in the terminal, but not in the browser
badon has joined #ocaml
koshmar has quit [Ping timeout: 240 seconds]
dsheets has joined #ocaml
<seangrove>
Drup: Is there an example of how to respond with custom headers? I'm trying to tweak https://github.com/Drup/No./blob/master/dispatch.ml#L54 a bit to use Cohttp.Headers.of_list, but I'm not sure that's the right type
seangrove has quit [Ping timeout: 256 seconds]
groovy2shoes has quit [Quit: Leaving]
seangrove has joined #ocaml
groovy2shoes has joined #ocaml
silver has quit [Quit: rakede]
dsheets has quit [Remote host closed the connection]
seangrove has quit [Remote host closed the connection]
dsheets has joined #ocaml
seangrove has joined #ocaml
dsheets has quit [Remote host closed the connection]
Haudegen has joined #ocaml
<seangrove>
Nevermind, got it!
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]