Kakadu has quit [Remote host closed the connection]
Emmanuel`_ has quit [Quit: Konversation terminated!]
Emmanuel`_ has joined #ocaml
orbifx has quit [Ping timeout: 276 seconds]
<octachron>
oliveira, sorry I forgot that one need also Plugins: META(0.4). With this, opam installs the libraries, however the internal modules are not specified by the _oasis file
<octachron>
so utop cannot load the libraries due to undefined internal modules...
Emmanuel`_ has quit [Quit: Konversation terminated!]
Emmanuel`_ has joined #ocaml
silver has quit [Quit: rakede]
<Anarchos>
Algebr and ?
<def`>
Anarchos: people on this channel are not expected to speak french
<Algebr>
hard to understand non english code
<Anarchos>
Algebr sorry i will keep that in mind. It is the very first commit
<Algebr>
thanks! the code looks awesome
<lobo>
kudos to people providing good ocaml tooling. opam-publish is awesome
octachron has quit [Quit: Leaving]
Emmanuel`_ has quit [Quit: Konversation terminated!]
Emmanuel`_ has joined #ocaml
<Algebr>
yes, its nice, we need to improve oasis and oasis2opam too....
Vintila has quit [Ping timeout: 250 seconds]
<lobo>
Algebr: these worked well for my simple cases. current missing piece is just on how to publish mli documentation automagically to a gh-pages branch
Emmanuel`_ has quit [Client Quit]
Bobbejaantje has left #ocaml ["Men are my passion"]
<Algebr>
notty is using some nice formatting, perhaps take a gander there.
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
seangrove has joined #ocaml
hydan has quit [Ping timeout: 268 seconds]
<lobo>
Algebr: thx. i'll have a look
Vintila has joined #ocaml
Reshi has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 244 seconds]
yunxing has quit [Remote host closed the connection]
rpip has quit [Ping timeout: 240 seconds]
rpip has joined #ocaml
gfixler has joined #ocaml
<Druup>
seangrove: I'm late, but use syndic for rss feeds
Reshi has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
Reshi has quit [Ping timeout: 244 seconds]
struk|desk|away is now known as struk|desk
<seangrove>
Druup: for generating them?
wiredsis` has quit [Ping timeout: 248 seconds]
<seangrove>
Druup: I'll look into it, thanks. It still has a transitive dep on Unix, but seems like it's not a ton of work to fix that
Emmanuel`_ has joined #ocaml
Vintila has quit [Ping timeout: 276 seconds]
Reshi has joined #ocaml
rwmjones has quit [Ping timeout: 276 seconds]
atsampson has quit [Ping timeout: 260 seconds]
struk|desk is now known as struk|desk|away
seangrove has quit [Ping timeout: 240 seconds]
tennix has quit [Ping timeout: 240 seconds]
Emmanuel`_ has quit [Read error: Connection reset by peer]
FreeBirdLjj has quit []
struk|desk|away is now known as struk|desk
BitPuffin|osx has quit [Ping timeout: 240 seconds]
noddy has joined #ocaml
Haudegen has quit [Ping timeout: 276 seconds]
mcc has quit [Quit: Connection closed for inactivity]
Reshi has quit [Ping timeout: 268 seconds]
tennix has joined #ocaml
Haudegen has joined #ocaml
noddy has quit [Ping timeout: 250 seconds]
ibor has joined #ocaml
ygrek has quit [Ping timeout: 244 seconds]
Reshi has joined #ocaml
rwmjones has joined #ocaml
atsampson has joined #ocaml
Reshi has quit [Quit: WeeChat 1.4]
Algebr` has joined #ocaml
atsampson has quit [Ping timeout: 240 seconds]
atsampson has joined #ocaml
ygrek has joined #ocaml
johnelse has quit [Ping timeout: 244 seconds]
johnelse has joined #ocaml
aantron has quit [Remote host closed the connection]
ggole has joined #ocaml
copy` has quit [Quit: Connection closed for inactivity]
ggole_ has joined #ocaml
ggole has quit [Ping timeout: 248 seconds]
badon_ has joined #ocaml
badon has quit [Disconnected by services]
badon_ is now known as badon
yunxing has joined #ocaml
<Algebr`>
What the hell is this CamlinternalLazy.Undefined. After being plagued by lwt woes for over a month I finally got some kind of revelant information.
<flux>
algebr`, # let rec a = lazy (Lazy.force a);;
<Algebr`>
okay, 1. didn't realize a value could be rec as well, 2. no idea why lwt non deterministically does this
<flux>
well it's probably a bit more complicated case than that
<flux>
involving mutable values
<flux>
but the gist is that when forcing a value it somehow ends up forcing the same value :)
<flux>
I suppose it'd be easy to find out how this occurs if ocaml had a decent debugger :/
<Algebr`>
digging through relevant lwt code to see what might be happening...
<flux>
where does this "this is a bug" come from?
<flux>
if from lwt then perhaps you should file a bug report?-o
<Algebr`>
actually looking through source of lwt and i think its my fault (Although lwt didn't say anything about it, i might be able to make small repro test case)
Algebr` has quit [Ping timeout: 248 seconds]
ggole__ has joined #ocaml
ggole_ has quit [Ping timeout: 260 seconds]
seangrove has joined #ocaml
yunxing has quit [Remote host closed the connection]
<picolino>
thx flux , I went through this already but I didn't figure out how to use it
Anarchos has joined #ocaml
<picolino>
I should read it more carefully perhaps... I was loooking for a fast solution for lazy guy :p
<orbifx>
zozozo: thank, I noticed that when I was looking for a solution.
<picolino>
like "pass this an option to the compiler" or something like that
mettekou has joined #ocaml
<picolino>
I have the following exception : output_value: abstract value (number), and I can't find what causes it.
teknozulu has joined #ocaml
ibor has joined #ocaml
mettekou has quit [Read error: Connection reset by peer]
Vintila has quit [Ping timeout: 268 seconds]
<malc_>
picolino: OCAMLRUNPARAM=b and code compiled with -g should help narrowing it down
<picolino>
how do you pass OCAMLRUNPARAM=b to js_of_ocaml ?
<flux>
picolino, btw, you can use some function to enable that, though I don't know if it works with js_of_ocaml
<flux>
it might be something like Printexc.set_backtrace true, but it might've been something else
ibor has quit [Ping timeout: 244 seconds]
<picolino>
ah yes I tried that I think... didn't work... will try again just in case
<malc_>
oh js_of_ocaml.. no clue there
struk|desk is now known as struk|desk|away
<picolino>
It's Printexc.record_backtrace but it doesn't work
<flux>
well, chances are it isn't implemented then.. you're compiling with -g right?
teknozulu has quit [Ping timeout: 252 seconds]
<picolino>
yes my first try I forgot this but now I have the -g flag. I was wondering if I should pass something similar to js_of_ocaml
<picolino>
I use --enable debuginfo, which seems to be related
teknozulu has joined #ocaml
tennix has joined #ocaml
wagle_ has joined #ocaml
Drup has joined #ocaml
martintrojer has quit [*.net *.split]
theblatte has quit [*.net *.split]
Druup has quit [*.net *.split]
stomp has quit [*.net *.split]
Khady has quit [*.net *.split]
def` has quit [*.net *.split]
wagle has quit [*.net *.split]
tokik has quit [*.net *.split]
lokien has quit [Ping timeout: 240 seconds]
lokien has joined #ocaml
AlexRussia has joined #ocaml
<Nazral>
what would be the clean way to kill a process opened with Lwt_process.pread_lines ("python2.7", [| "python2.7"; "./getdata.py" |]) (where getdata.py loops forever)
martintrojer has joined #ocaml
theblatte has joined #ocaml
stomp has joined #ocaml
Khady has joined #ocaml
def` has joined #ocaml
tokik has joined #ocaml
nicholasf has quit [Remote host closed the connection]
emmanueloga has quit [Ping timeout: 248 seconds]
sspi has quit [Ping timeout: 248 seconds]
pootler_ has quit [Ping timeout: 248 seconds]
nicholasf has joined #ocaml
emmanueloga has joined #ocaml
sspi has joined #ocaml
ibor has joined #ocaml
pootler_ has joined #ocaml
nicholasf has quit [Ping timeout: 260 seconds]
<Enjolras>
Nazral: the unix way is to use stdin. Make the process terminate when stdin is closed and make the parent process wait with waitpid
<Enjolras>
i suspect there is helper for that in Lwt_process but i don't remember
superboum__ has quit [Quit: superboum__]
<seangrove>
hannes: Could I use https://github.com/hannesm/tlstunnel in place of e.g. `ssh -D localhost:9009 some@server.com` (which I use for SOCKS, usually)?
picolino has quit [Ping timeout: 244 seconds]
foocraft has quit [Remote host closed the connection]
Anarchos has quit [Quit: in a far far away galaxy....]
<seangrove>
Drup: .... I think I misunderstood, now that I've ripped out Calendar from Syndic and got the tests passing with a facade
<seangrove>
Does Syndic generate RSS feeds? That's what I wanted to add to my site.
<Drup>
Atom.write ?
<seangrove>
Ok, I'll explore that. I didn't see any examples of it in tests :(
<companion_cube>
well, same as Array.create actually
<Drup>
the convention is rather vague anyway
<tobast>
Hi
<tobast>
I'm trying to implement a clean interface for a module, but I can't find any information about this precise case...
<ggole>
Bigarray.M.create don't create empty things either
<tobast>
I have a functor which heavily relies on its module parameter subtypes, so it would be quite dirty to do it as in Map (with Map.S which is not a functor and Map.Make which does a "with type ..."), so I define the whole module as a functor
<Drup>
Well, it's not initialized (in both bigarray and byte) ...
zaquest has joined #ocaml
<tobast>
say, my functor is Blah(X: SomeStuff)
<tobast>
then I have to write an interface line corresponding for module PredefBlah = Blah(SomePredefinedModule)
<tobast>
and that's where I can't find any clean syntax.
mettekou has quit [Read error: Connection reset by peer]
M-Illandan has joined #ocaml
mettekou has joined #ocaml
orbifx2 has joined #ocaml
orbifx has quit [Ping timeout: 268 seconds]
<seangrove>
Drup: Ah, it wasn't obvious to me that you can have a type and a constructur with the same name, and the docs would refelct that with e.g. `type feed = ...` and `val feed = ...`
<seangrove>
Looks like ocamlfind thinks syndic is already installed?
<Algebr>
perhaps needed to have done an opam unpin as well
<flux>
algebr, Printf.printf "%*s" 42 "hello"
<Algebr>
since it was already pinned someone where. flux ah, thanks I figured it out from manual as well, printf is magic, i want to know how it does this all, need to look at src.
<flux>
functional unparsing is a nice whitepaper to read
<Algebr>
ah, from 1998, nice
<Drup>
functional unparsing is basically "printf without the types" :p
<companion_cube>
flux: what's it about?
<companion_cube>
m'ok
<Algebr>
very short paper
<seangrove>
Algebr: Are pins global across switches?
<Algebr>
i think so, i wish pins were per switch
<Drup>
(I don't remember if it already has the equivalent of %a)
<Algebr>
or not? don't remember
<Drup>
pins are per switch
<companion_cube>
I was vaguely wondering whether it would be possible to use Format and output Pprint.t with it :]
<Drup>
Pprint.t ?
lokien has quit [Ping timeout: 260 seconds]
<companion_cube>
I mean formatting boxes
<companion_cube>
as a tree
<Drup>
?
<Algebr>
oh right, its the repositorys that are global
<seangrove>
wiredsister: should I `opam pin add syndic <path>` instead of, or before `opam install syndic`, or not at all?
<wiredsister>
just to sync with ocamlfind
<wiredsister>
apparently you can also, get OPAM to register an install without performing the install as well with --fake
dwillems has joined #ocaml
<wiredsister>
well, the pin will try to install after you add, which won't help you since we want to force the install. I don't think it matters. Just try the removal with --force and see what that gets you.
<wiredsister>
I'm an OPAM noob. Just been doing a lot of mucking about in OPAM recently with getting mirage things to play nicely.
<seangrove>
wiredsister: Yeah, I've hit a lot of frustrating edges between the two of them
<Algebr>
there's a lot of mirage packages, i was bit by opam and find lib being out of sync, even on opam itself. small bugs.
Kakadu has quit [Quit: Page closed]
yunxing has quit [Remote host closed the connection]
<wiredsister>
We'll build a wall around OPAM. Make OPAM great again.
<seangrove>
I feel like the switches aren't working properly
<wiredsister>
seangrove: you can always see what reality is by viewing in ~/.opam/SWITCH/
yunxing has joined #ocaml
<seangrove>
We have `/Users/s/.opam/riseos/build/syndic.1.4`, but then `ocamlfind: Package syndic is already installed (file /Users/s/.opam/syndic/lib/syndic/META already exists)` when invoking `"Command ''/Users/s/.opam/syndic/bin/ocamlfind' install syndic...`
<Algebr>
ocamlfind remove syndic
<Algebr>
then try installing?
<seangrove>
Will there are two switches there - one is riseos, the other is syndic
<seangrove>
`$ which ocamlfind` -> /Users/s/.opam/riseos/bin/ocamlfind` `$ ocamlfind remove syndic` -> ocamlfind: [WARNING] No such directory: /Users/s/.opam/riseos/lib/syndic
<seangrove>
Which makes sense
<seangrove>
But them when trying to build, it's not looking at /Users/s/.opam/riseos, it's looking at /Users/s/.opam/syndic (another switch) for some reason
<yunxing>
I would like to try out 4.03 (or whatever on ocaml/trunk), do I have to uninstall 4.02 in order to try it? is there any sandboxed environment for me to compile the code and try it?
<malc_>
seangrove: please never use which, it's an abomination (bashism if you will) that should die.. `command -v' if you need to (actually portable way to do this)
<wiredsister>
yunxing: no you don't need to uninstall to add a new switch. OPAM makes it very easy.
<seangrove>
malc_: ? why should it die? It has the same output as command -v
<yunxing>
wiredsister: thanks. Is it possible for me to tell opam to "add a switch from a given compiler source code?"
<wiredsister>
yunxing: Do, `opam switch list --all` and find the experimental one you want. In your case, I think 4.03.0+trunk.
<yunxing>
wiredsister: Can I modify the source code and recompile it?
<wiredsister>
yunxing: yes.
<yunxing>
wiredsister: thanks! I can look up for the instructions of how to do that
<wiredsister>
yunxing: Yes. Switches all the way down. Although, I've never done this. I usually use switches just to have separate installs for Mirage or a switch for core.
<wiredsister>
Yes, do `opam switch --help`
<wiredsister>
you'll see the install and set commands
<malc_>
seangrove: because it's non standard with no documentation nor promise to emit any particular output (i.e. no documentation)
<malc_>
it's a bultin in bash
<malc_>
an external program
<malc_>
or what?
<malc_>
i.e. use command -v and make the world a better place
<seangrove>
What if I told you I aliased which to `command -v` in the above snippet, would that work?
<malc_>
seangrove: aliased no, functioned it to do a command -v - sure
<malc_>
i fail to see why you'd want to though... to save on typing? uhm..
<malc_>
bottom line one is POSIX and the other is some folk wisdom