<mfp>
ollehar1: if you don't complete the mark phase and begin sweeping, when you see an unmarked value you won't know if it's a value with no refs or one references by blocks you haven't marked yet
<ollehar1>
ok, I get it now :)
<ollehar1>
thanks
<mfp>
*referenced
SomeDamnBody has joined #ocaml
grouzen has joined #ocaml
grouzen has quit [Ping timeout: 264 seconds]
swgillespie has joined #ocaml
ivali has joined #ocaml
swgillespie has quit [Client Quit]
swgillespie has joined #ocaml
jao has joined #ocaml
ollehar1 has quit [Quit: ollehar1]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ivali has quit [Ping timeout: 255 seconds]
tennix has joined #ocaml
tennix has joined #ocaml
jao has quit [Ping timeout: 250 seconds]
Algebr has joined #ocaml
kushal has joined #ocaml
creichert has joined #ocaml
Algebr has quit [Remote host closed the connection]
fantasticsid has quit [Remote host closed the connection]
tane has joined #ocaml
tennix has quit [Ping timeout: 245 seconds]
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ggole has quit [Read error: Connection reset by peer]
ggole has joined #ocaml
samrat has joined #ocaml
Simn has joined #ocaml
antkong__ has joined #ocaml
antkong_ has quit [Ping timeout: 244 seconds]
octachron has joined #ocaml
ggole has quit [Ping timeout: 252 seconds]
nullcatxxx_ has joined #ocaml
ivali has quit [Ping timeout: 244 seconds]
Haudegen has quit [Ping timeout: 250 seconds]
olibjerd has joined #ocaml
Haudegen has joined #ocaml
ggole has joined #ocaml
ivali has joined #ocaml
antkong__ has quit [Quit: antkong__]
Muzer has quit [Read error: Connection reset by peer]
Muzer has joined #ocaml
ollehar has joined #ocaml
tennix has joined #ocaml
tennix has quit [Ping timeout: 255 seconds]
antkong_ has joined #ocaml
grouzen has quit [Ping timeout: 240 seconds]
rand000 has joined #ocaml
tennix has joined #ocaml
tennix has quit [Ping timeout: 252 seconds]
tennix has joined #ocaml
tennix has quit [Ping timeout: 256 seconds]
tennix has joined #ocaml
tennix has quit [Ping timeout: 272 seconds]
tennix has joined #ocaml
Haudegen has quit [Ping timeout: 265 seconds]
oriba has joined #ocaml
tennix has quit [Ping timeout: 246 seconds]
tennix has joined #ocaml
tennix has joined #ocaml
nullcatx_ has joined #ocaml
nullcatxxx_ has quit [Ping timeout: 244 seconds]
tennix has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
tennix has joined #ocaml
tennix has quit [Changing host]
tennix has joined #ocaml
tennix has quit [Ping timeout: 244 seconds]
ivali has quit [Ping timeout: 260 seconds]
antkong_ has quit [Quit: antkong_]
tennix has joined #ocaml
tennix has quit [Ping timeout: 256 seconds]
samrat has quit [Ping timeout: 244 seconds]
tennix has joined #ocaml
tennix has joined #ocaml
ivali has joined #ocaml
tennix has quit [Ping timeout: 246 seconds]
tennix has joined #ocaml
tennix has quit [Ping timeout: 260 seconds]
tennix has joined #ocaml
tennix has joined #ocaml
jao has joined #ocaml
ygrek has joined #ocaml
tennix has quit [Ping timeout: 245 seconds]
psy_ has quit [Quit: Leaving]
psy_ has joined #ocaml
ygrek has quit [Ping timeout: 250 seconds]
BitPuffin|osx has joined #ocaml
tennix has joined #ocaml
ousado has quit [Read error: Connection reset by peer]
ousado has joined #ocaml
nullcatxxx_ has joined #ocaml
tennix has quit [Ping timeout: 255 seconds]
tane has quit [Ping timeout: 250 seconds]
ananas__ has joined #ocaml
ivali has quit [Ping timeout: 246 seconds]
nullcatx_ has quit [Ping timeout: 244 seconds]
tennix has joined #ocaml
ousado has quit [Read error: Connection reset by peer]
<ananas__>
Hello, OCaml users ! I am looking for a way to hide and show parts of code in my .ml files (I use Emacs), but it turns out that it's not as easy. HideShow doesn't support Caml, I didn't see anything related to code folding in Tuareg Mode. I then took a look at folding-mode, which enabled folding blocks within '{{{'/'}}}' delimiters (in comments), but it uses '\r' characters, and Merlin doesn't appreciate that (plus it
<ananas__>
doesn't count hidden lines). I tried to use those delimiters with hideshow, but it doesn't work because hideshow separates comments and code. How do you handle code folding for OCaml ?
tennix has quit [Ping timeout: 272 seconds]
tane has joined #ocaml
<mrvn>
I don't. I keep my files short.
<ggole>
Most of the code folding packages are based on regexps, which I don't think works well for OCaml
ousado has joined #ocaml
<ggole>
ananas__: btw, hideshow seems to work with (* {{{ *) for me
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ggole>
Might be worth trying to get that working, at least if you are happy with those comments everywhere
<ananas__>
If I hide anything between "{{{" and "}}}", it only works when the "{{{" and "}}}" are outside comments.
tennix has joined #ocaml
<ggole>
Hmm, I don't see that behaviour
<ggole>
Ah wait, now I do.
fantasticsid has joined #ocaml
<ananas__>
I wish I could write short files :)
tennix has quit [Ping timeout: 252 seconds]
zpe has joined #ocaml
tennix has joined #ocaml
tennix has quit [Ping timeout: 265 seconds]
fantasti` has joined #ocaml
fantasticsid has quit [Read error: Connection reset by peer]
ousado has quit [Changing host]
ousado has joined #ocaml
tennix has joined #ocaml
yomimono has joined #ocaml
tennix has quit [Ping timeout: 240 seconds]
fantasti` has quit [Remote host closed the connection]
tennix has joined #ocaml
zpe has quit [Remote host closed the connection]
tennix has quit [Ping timeout: 240 seconds]
tennix has joined #ocaml
tennix has quit [Changing host]
tennix has joined #ocaml
izaak has joined #ocaml
tmtwd has joined #ocaml
sepp2k has joined #ocaml
samrat has joined #ocaml
ivali has joined #ocaml
izaak has quit [Quit: izaak]
izaak has joined #ocaml
rand000 has quit [Quit: leaving]
SomeDamnBody has joined #ocaml
<mfp>
Drup: I'm implementing buffer pools for https://github.com/ocsigen/ocsigenserver/issues/86 almost done, just need to find a place to abort/close the Ocsigen_http_com receiver so I can release the buffers (tried in abort to no avail). Do you happen to know where I can do that safely? (maybe a call to abort somewhere in Ocsigen_server?)
darkf has quit [Quit: Leaving]
yomimono has quit [Ping timeout: 245 seconds]
yomimono has joined #ocaml
<ggole>
Suppose I had a lapse of taste and decided to use objects: how would I go about implementing an equality predicate?
SomeDamnBody has quit [Ping timeout: 244 seconds]
psy_ has quit [Ping timeout: 244 seconds]
yomimono has quit [Ping timeout: 244 seconds]
yomimono has joined #ocaml
<Guest38>
ok thanks gasche
ocno has quit [Quit: Page closed]
yomimono has quit [Ping timeout: 255 seconds]
<ananas__>
Hello, I have three stupid questions about Lwt. 1/ Why the type of Lwt_io.establish_server isn't Unix.sockaddr -> (Lwt_io.input_channel * Lwt_io.output_channel-> unit Lwt.t) -> Lwt_io.server ? The function is supposed to return immediately ? Is the function run in a separate thread, or should I use Lwt.async to run a lwt function ? 2/ Why is there no function Lwt_io.channel_closed: Lwt_io.input_channel -> unit Lwt.t ? Or
<ananas__>
did I miss it ? 3/ May a function run by Lwt.async raise exceptions, if they are caught and processed ?
izaak has quit [Ping timeout: 255 seconds]
izaak has joined #ocaml
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jao has quit [Ping timeout: 252 seconds]
<ananas__>
Ok, 1/ it is not run in a separate thread.
oscar_toro has joined #ocaml
psy_ has joined #ocaml
ztennix has joined #ocaml
ztennix has quit [Client Quit]
zpe has joined #ocaml
tennix has quit [Ping timeout: 250 seconds]
sh0t has quit [Ping timeout: 256 seconds]
SomeDamnBody has joined #ocaml
psy_ has quit [Ping timeout: 260 seconds]
smtb has joined #ocaml
<flux>
ananas__, it would seem to me it should be easy to patch or configure hideshow to work so that it works within comments as well
<flux>
though these may be the last famous words to say about some hairy ball of emacs lisp code.. :)
<smtb>
Hi, what is the best way to test a function within the oUnit framework that returns a Lwt.t? I run into errors with assert_equal and Lwt.t returning functions.
<flux>
and apparently it wasn't the only problem you had, so..
zpe has quit [Remote host closed the connection]
ivali has quit [Ping timeout: 264 seconds]
zpe has joined #ocaml
cdidd has quit [Remote host closed the connection]
cdidd has joined #ocaml
smtb has quit [Ping timeout: 246 seconds]
izaak has quit [Quit: izaak]
cdidd has quit [Remote host closed the connection]
izaak has joined #ocaml
ananas__ has quit [Quit: Leaving]
ivali has joined #ocaml
ollehar has quit [Ping timeout: 250 seconds]
<oldmanistan_>
i'm trying to use extlib, specifically Std.dump, i can get it working in utop, but how do i import it into a program i want to run from the command line with `ocaml`? everything i can find online seems to target toplevel / utop
<oldmanistan_>
#use "topfind";; #require "extlib";; open Std;; works in utop, but when i put that in a source file it says Std is an unbound module
swgillespie has joined #ocaml
<ggole>
#foo is a directive, not ocaml source
<ggole>
In short, it's an instruction to the toplevel.
<ggole>
You need ocamlfind or a build system to compile with packages.
breadmonster has joined #ocaml
<breadmonster>
Hello.
<breadmonster>
Do compiler updates break a lot of code?
<oldmanistan_>
i've got ocamlfind installed, i assume, since that stuff worked in utop, right?
<ggole>
Yeah
<oldmanistan_>
so how do i use it in a source file? should i just be able to do `open Std;;`?
<ggole>
Yes
<oldmanistan_>
hmm, ok because that doesn't work
<ggole>
But the source won't tell the compiler how to find that package
<ggole>
That's what ocamlfind is for
<oldmanistan_>
so how do i use ocamlfind to do that?
<oldmanistan_>
so is there no way to do it using the `ocaml` command?
<oldmanistan_>
my workflow thus far has been edit file -> $ ocaml file.ml -> repeat
<oldmanistan_>
as a related issue, merlin, which i'm using for syntax checking, doesn't seem to know about third party libs, so i'd like to be able to keep it from freaking out on me about `open Std;;`
<ggole>
You can describe the packages you are using in .merlin
<ggole>
PKG extlib (or whatever the name is)
<oldmanistan_>
ah ok
<ggole>
You can keep using the toplevel if you like: put the necessary #use/#require stuff in a .ocamlinit in your directory
<ggole>
(You may need to either copy some stuff from ~/.ocamlinit or #use that file - which is quite clumsy, since #use doesn't support relative directory names.)
<oldmanistan_>
so i guess it is more work than python, but not terrible :-)
<ggole>
The tooling isn't really that polished.
<oldmanistan_>
it's been awhile since i did much work in a language that required a compile step, i'll get over it
zpe has quit [Remote host closed the connection]
psy_ has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest38 has joined #ocaml
sailorswift has joined #ocaml
swgillespie has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
swgillespie has quit [Client Quit]
tristero has joined #ocaml
izaak has quit [Quit: izaak]
oriba has quit [Quit: WeeChat 1.2]
ryanartecona has joined #ocaml
pyon has quit [Ping timeout: 260 seconds]
xificurC has joined #ocaml
cdidd has joined #ocaml
izaak has joined #ocaml
breadmonster has quit [Quit: Page closed]
swgillespie has joined #ocaml
pyon has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 265 seconds]
swgillespie has joined #ocaml
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swgillespie has quit [Read error: Connection reset by peer]
swgillespie has joined #ocaml
izaak has quit [Quit: izaak]
swgillespie has quit [Client Quit]
MercurialAlchemi has quit [Ping timeout: 244 seconds]
samrat has quit [Ping timeout: 240 seconds]
ggole has quit []
swgillespie has joined #ocaml
swgillespie has quit [Max SendQ exceeded]
swgillespie has joined #ocaml
SomeDamnBody has quit [Ping timeout: 246 seconds]
swgillespie has quit [Max SendQ exceeded]
swgillespie has joined #ocaml
Guest38 has joined #ocaml
Guest38 has quit [Read error: Connection reset by peer]
SomeDamnBody has joined #ocaml
sh0t has joined #ocaml
octachron has quit [Quit: Leaving]
SomeDamnBody has quit [Ping timeout: 260 seconds]
BitPuffin|osx has quit [Remote host closed the connection]
BitPuffin|osx has joined #ocaml
sepp2k has quit [Quit: Leaving.]
sh0t has quit [Ping timeout: 250 seconds]
Haudegen has quit [Ping timeout: 272 seconds]
greves2 has joined #ocaml
greves has quit [Ping timeout: 260 seconds]
Haudegen has joined #ocaml
xificurC has quit [Ping timeout: 245 seconds]
tane has quit [Quit: Verlassend]
Lis has joined #ocaml
ivali has quit [Ping timeout: 255 seconds]
teiresias has quit [Quit: leaving]
ryanartecona has quit [Quit: ryanartecona]
teiresias has joined #ocaml
Simn has quit [Read error: Connection reset by peer]