<zozozo>
_y: personnaly I use ocp-indent with vim, and it correctly indents ocamldoc comments without needing stars
ziyourenxiang has joined #ocaml
^MillerBoss20 has joined #ocaml
^MillerBoss20 has quit [K-Lined]
<_y>
zozozo, i also use ocp-indent, but when i type “(** blabla<CR>” (<CR> standing for carriage return), i get a star inserted on the new line [ aligned with the first star of (** ], and i need to remove it manually
<_y>
but now i have figured out why: this is because of vim’s option 'comments'; ocp-indent sets it to "sr:(*,mb:*,ex:*)" so that it applies to any comment which starts with "(*", even those that start with "(**"
<_y>
if changing the option to eg. "sr:(*\ ,mb:*,ex:*)" , it only applies to comments whose opening delimiter is followed by a space, so it ignores "(**"
<_y>
which more or less solves my problem
<_y>
not sure why you do not face this behavior
Haudegen has quit [Remote host closed the connection]
pmetzger has quit []
moei has quit [Ping timeout: 268 seconds]
dedgrant has quit [Quit: Leaving]
mfp has quit [Ping timeout: 252 seconds]
mfp has joined #ocaml
keep_learning has joined #ocaml
mfp has quit [Ping timeout: 252 seconds]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 252 seconds]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
Fusl21 has joined #ocaml
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
pierpa has quit [Quit: Page closed]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
Fusl21 has quit [Remote host closed the connection]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
_whitelogger has joined #ocaml
|jbrown| has quit [Ping timeout: 268 seconds]
keep_learning has quit [Quit: Ping timeout (120 seconds)]
ziyourenxiang has quit [Quit: Leaving]
ziyourenxiang has joined #ocaml
roygbiv has joined #ocaml
roygbiv has quit [Quit: ™]
orbifx has joined #ocaml
orbifx has quit [Ping timeout: 252 seconds]
thomas_scrace has joined #ocaml
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
sagotch has joined #ocaml
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
bartholin has joined #ocaml
xa0 has joined #ocaml
xa0 has quit [Excess Flood]
keep_learning has joined #ocaml
xa0 has joined #ocaml
AltGr has joined #ocaml
caltelt has quit [Ping timeout: 272 seconds]
|jbrown| has joined #ocaml
jnavila has joined #ocaml
|jbrown| has quit [Ping timeout: 272 seconds]
kakadu has joined #ocaml
Rosslaew_ has joined #ocaml
jnavila has quit [Ping timeout: 252 seconds]
FreeBirdLjj has joined #ocaml
Rosslaew_ has quit [Ping timeout: 252 seconds]
pierpal has joined #ocaml
<zozozo>
_y: hm.. maybe because I'm actually using neovim ?
raduom has quit [Ping timeout: 265 seconds]
Rosslaew_ has joined #ocaml
mfp has joined #ocaml
Rosslaew_ has quit [Remote host closed the connection]
thomas_scrace has quit [Ping timeout: 252 seconds]
sagotch has left #ocaml [#ocaml]
pierpal has quit [Read error: Connection reset by peer]
shw has left #ocaml [#ocaml]
moei has joined #ocaml
jnavila has joined #ocaml
moei has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
jnavila has quit [Ping timeout: 252 seconds]
gtrak has quit [Ping timeout: 252 seconds]
gtrak has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
jao has joined #ocaml
FreeBirdLjj has joined #ocaml
Haudegen has joined #ocaml
jnavila has joined #ocaml
thomas_scrace has joined #ocaml
thomas_scrace has quit [Ping timeout: 272 seconds]
jnavila has quit [Ping timeout: 252 seconds]
thomas_scrace has joined #ocaml
demonimin has joined #ocaml
moei has joined #ocaml
grumble has joined #ocaml
grumble has left #ocaml [#ocaml]
orbifx has joined #ocaml
<flux[m]>
I suppose there's no nice web crawler -able library for OCaml?
<Drup>
flux[m] if you mean like scrapy in python, no, not really
<Drup>
it's easy to hand-make one with cohttp+lwt though
<Drup>
there is mechaml for handling forms and things like this
<Drup>
making an ocaml equivalent of scrapy has been on my todo list for a while, but I'll probably never get to it
<discord>
<thangngoc89> that support css selectors
<flux[m]>
well, that's nice. but I think I'll go ahead with lftp's "find" as that's sufficient for my current needs and consider a more sophisticated solution later :).
Guest36045 is now known as nore
jnavila has joined #ocaml
mar77i_ has joined #ocaml
mar77i_ has quit [Remote host closed the connection]
nore has quit [Quit: WeeChat 2.0.1]
nore has joined #ocaml
quipa has joined #ocaml
orbifx has quit [Ping timeout: 252 seconds]
silver has joined #ocaml
orbifx has joined #ocaml
thomas_scrace has quit [Ping timeout: 252 seconds]
poxifide24 has joined #ocaml
poxifide24 has quit [Ping timeout: 252 seconds]
tane has joined #ocaml
silver_ has joined #ocaml
silver has quit [Ping timeout: 268 seconds]
<_y>
zozozo, maybe
<_y>
by the way, i should have read merlin’s doc sooner :-)
Napsterbater has joined #ocaml
Napsterbater has quit [Remote host closed the connection]
<companion_cube>
the documentation for containers.data isn't that good
<_y>
anyway, i think that i will stick to my custom implementation, specialized for my use case
<_y>
i guess it will most likely be faster than your general-purpose one
<_y>
by the way, i did not benchmark it, but wouldn’t it be faster to use “bytes” rather than “int array”?
<_y>
this way, bits are fully packed, and instead of divisions by 30 or 62, the indexing logic only involves divisions by 8, that is, bitwise operations (and that does not depend on the architecture)
<companion_cube>
it was designed to make `iter` and such faster (fewer blocks to decompose?) but you're probably right
<_y>
plus, i see that your bitvectors are resizable; you could use “Buffer.t” and have resizability for free!
<companion_cube>
nope nope nope, Buffer doesn't give access to its internals
<companion_cube>
but I'm interested in benchmarks anyway.
<_y>
remind me to do that some day :-)
<_y>
the one thing that i keep using containers for, is CCHeap
<_y>
no week passes by without Merlin reminding me kindly that Heap is not in the stdlib
tormen has joined #ocaml
<companion_cube>
:D
<companion_cube>
yeah, it's kind of weird that it's not in the stdlib
<companion_cube>
also `CCVector`, but well
pierpa has joined #ocaml
<_y>
yes
<_y>
i wonder whether implementing resizable arrays (for a specific datatype) on top of Buffer, by bit-packing the elements, would be efficient
neatonk has joined #ocaml
<companion_cube>
that sounds terrible, especially for the GC
<companion_cube>
I mean, normal arrays are fine
neatonk has quit [Ping timeout: 264 seconds]
<_y>
well, with { mutable length : int ; mutable contents : 'a array } you have to pay two extra levels of indirection for each get / set (that said, i do not know how Buffer is implemented…)
<_y>
coming back to heaps, something i sometimes need is adding an ordered list of elements to a heap
revi21 has joined #ocaml
revi21 has quit [Remote host closed the connection]
<companion_cube>
Buffer is built on top of bytes
<_y>
if i am not mistaken, it happens that adding N arbitrary elements is in O(N × log N), but that adding N elements given in order can be achieved in O(N) (at least for binary heaps)
<companion_cube>
CCHeap is a functional structure though