ddosia has quit [Quit: Connection closed for inactivity]
xaimus has quit [Quit: leaving]
xaimus has joined #ocaml
sz0 has quit [Quit: Connection closed for inactivity]
isd has quit [Quit: Leaving.]
malina has quit [Remote host closed the connection]
mfp has quit [Ping timeout: 245 seconds]
jimmyrcom_ has joined #ocaml
malina has joined #ocaml
shinnya has quit [Ping timeout: 240 seconds]
jimmyrcom_ has quit [Ping timeout: 240 seconds]
al-damiri has quit [Quit: Connection closed for inactivity]
jimmyrcom_ has joined #ocaml
jimmyrcom_ has quit [Ping timeout: 264 seconds]
dxtr has joined #ocaml
bbc has quit [Ping timeout: 256 seconds]
malina has quit [Remote host closed the connection]
bbc has joined #ocaml
dxtr_ has quit [Ping timeout: 256 seconds]
emias has quit [Ping timeout: 265 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 264 seconds]
emias has joined #ocaml
navaja has joined #ocaml
dtornabene has joined #ocaml
navaja has quit [Ping timeout: 256 seconds]
govg has quit [Ping timeout: 260 seconds]
govg has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
isd has joined #ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
jao has quit [Ping timeout: 256 seconds]
isd has quit [Remote host closed the connection]
jimmyrcom_ has joined #ocaml
pierpa has quit [Quit: Page closed]
jack5638 has joined #ocaml
jbrown has quit [Ping timeout: 276 seconds]
govg has joined #ocaml
MercurialAlchemi has joined #ocaml
pierpa has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
<rgr[m]>
companion_cube: one .merlin per source file. Merlin now allows you to have dot merlin's of the form .<module name>.merlin AFAIK
pierpa has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
malina has joined #ocaml
pierpa has joined #ocaml
jimmyrcom has quit [Ping timeout: 268 seconds]
mbuf has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
zolk3ri has joined #ocaml
tarptaeya has joined #ocaml
secondwtq has joined #ocaml
Haudegen has joined #ocaml
zpe has quit [Remote host closed the connection]
kotrcka has left #ocaml [#ocaml]
malina has quit [Remote host closed the connection]
cbot has quit [Quit: Leaving]
Asmadeus has quit [Ping timeout: 268 seconds]
Asmadeus has joined #ocaml
baroud has joined #ocaml
baroud has quit [Client Quit]
Haudegen has quit [Remote host closed the connection]
troydm has quit [Ping timeout: 260 seconds]
troydm has joined #ocaml
jimmyrcom_ has quit [Ping timeout: 260 seconds]
zolk3ri has quit [Ping timeout: 240 seconds]
zpe has joined #ocaml
zolk3ri has joined #ocaml
dtornabene has quit [Ping timeout: 265 seconds]
malina has joined #ocaml
caseypme[m] has quit [*.net *.split]
troydm has quit [Ping timeout: 240 seconds]
jimmyrcom_ has joined #ocaml
<def`>
yep, this was a cheap to implement, but I would like a more expressive way of specifying compiler options :P
argent_smith has joined #ocaml
dakk has joined #ocaml
malina has quit [Ping timeout: 260 seconds]
jimmyrcom_ has quit [Ping timeout: 264 seconds]
ygrek has joined #ocaml
ousado has quit [Ping timeout: 276 seconds]
steenuil has joined #ocaml
baroud has joined #ocaml
troydm has joined #ocaml
ousado has joined #ocaml
gareppa has joined #ocaml
letoh has quit [Ping timeout: 255 seconds]
mfp has joined #ocaml
ziyourenxiang has joined #ocaml
ziyourenxiang has quit [Ping timeout: 240 seconds]
baroud has quit [Remote host closed the connection]
<rixed_>
I cannot find any place in the stdlib where one could have the full environment. It's useful for instance to pass it to subprocesses. Isn't that missing?
click_clack has joined #ocaml
<octachron>
Unix.environment?
<rixed_>
octachron: haha, was grepping in stdlib/, forgot that unix was segregated on the side :)
<rixed_>
octachron: thank you!
huglovefan has joined #ocaml
gareppa has quit [Quit: Leaving]
gareppa has joined #ocaml
gareppa has quit [Max SendQ exceeded]
gareppa has joined #ocaml
troydm has quit [Ping timeout: 240 seconds]
troydm has joined #ocaml
tarptaeya has quit [Ping timeout: 265 seconds]
caseypme[m] has joined #ocaml
troydm has quit [Ping timeout: 260 seconds]
tarptaeya has joined #ocaml
lynn has quit [Quit: Connection closed for inactivity]
testox has joined #ocaml
mk9 has joined #ocaml
freyr has joined #ocaml
mk9 has quit [Remote host closed the connection]
mk9 has joined #ocaml
mk9 has quit [Client Quit]
gareppa has quit [Quit: Leaving]
gareppa has joined #ocaml
troydm has joined #ocaml
ddosia has joined #ocaml
ziyourenxiang has joined #ocaml
gareppa has quit [Quit: Leaving]
djellemah_ has joined #ocaml
djellemah has quit [Ping timeout: 276 seconds]
gareppa has joined #ocaml
troydm has quit [Ping timeout: 265 seconds]
nahra has joined #ocaml
jbrown has joined #ocaml
gtrak has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 264 seconds]
ygrek has quit [Ping timeout: 256 seconds]
gtrak has quit [Ping timeout: 264 seconds]
gtrak has joined #ocaml
thomasga has joined #ocaml
<thomasga>
hi there, is it possible to get the raw html contents of a node as a string with js_of_ocaml/Dom ?
<Drup>
thomasga: ##.innerHTML
<Drup>
(or outerHTML)
<thomasga>
thx!
spew has joined #ocaml
gtrak has quit [Ping timeout: 240 seconds]
jao has joined #ocaml
spew has quit [Read error: Connection reset by peer]
kakadu has joined #ocaml
mbuf has quit [Quit: Leaving]
tarptaeya has quit [Ping timeout: 240 seconds]
mk9 has joined #ocaml
mk9_ has joined #ocaml
pierpa has joined #ocaml
sh0t has joined #ocaml
mk9 has quit [Ping timeout: 256 seconds]
mk9_ is now known as mk9
testox has quit [Remote host closed the connection]
tarptaeya has joined #ocaml
<thomasga>
Drup: another silly questions: how do I convert a Js.string into a string? (I always forget and I can't seem to be able to read the docs of js_of_ocaml)
<thomasga>
Js.js_string
<Drup>
thomasga: Js.string/Js.to_string
<Drup>
(same with all basic datatypes)
<thomasga>
is there a simpler way than doing this: ` let str = Js.to_string (p##.innerHTML##toString)` ?
<Drup>
Pretty sure you don't need the toString
<thomasga>
ha yes :-)
<thomasga>
cool, thanks
zpe has quit [Read error: Connection reset by peer]
zpe_ has joined #ocaml
zpe_ has quit [Read error: Connection reset by peer]
<mrvn>
My ocaml code uses 19GB virtual and 14GB resident ram. Anyone know of some ways to profile this? I would be interested to see a list of what size of blocks exists and how many from the GC. And from the linux kernel to see how much of which sized blocks is resident and how much is swapped out or simply overcommited (I'm using bigarrays).
zpe has joined #ocaml
jacobian has joined #ocaml
zpe_ has joined #ocaml
zpe has quit [Read error: Connection reset by peer]
zpe_ has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
Bronsa has quit [Remote host closed the connection]
<mrvn>
That looks great, thanks. Does it support bigarrays though?
<mrvn>
Great coockiepolicy. They give me the choice of accepting the coockie or rejecting it. If I reject it it says they will use cookies anyway and if I don't like it I should leave.
<mrvn>
Thanks for the illusion of choice
gtrak has joined #ocaml
sh0t has quit [Remote host closed the connection]
flodin has quit [Ping timeout: 276 seconds]
mk9 has quit [Quit: mk9]
flodin has joined #ocaml
gtrak has quit [Ping timeout: 264 seconds]
shinnya has joined #ocaml
mk9 has joined #ocaml
jbrown has quit [Remote host closed the connection]
mk9 has quit [Quit: mk9]
mk9 has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
JeanMax has joined #ocaml
mk9 has quit [Quit: mk9]
JeanMax has left #ocaml [#ocaml]
cojy has quit [Quit: ~]
cojy has joined #ocaml
letoh has joined #ocaml
gtrak has joined #ocaml
gareppa has quit [Quit: Leaving]
mk9 has joined #ocaml
mk9_ has joined #ocaml
sh0t has joined #ocaml
sh0t has quit [Remote host closed the connection]
mk9 has quit [Ping timeout: 240 seconds]
mk9_ is now known as mk9
sh0t has joined #ocaml
mk9 has quit [Quit: mk9]
mk9 has joined #ocaml
mk9 has quit [Client Quit]
silver has joined #ocaml
Duns_Scrotus has quit [Quit: ~]
Duns_Scrotus has joined #ocaml
tarptaeya has quit [Ping timeout: 265 seconds]
oh_lawd has quit [Quit: ~]
oh_lawd has joined #ocaml
ggherdov has quit [Quit: ~]
pierpa has joined #ocaml
jao has quit [Ping timeout: 268 seconds]
ggherdov has joined #ocaml
jeroud has quit [Quit: ~]
jeroud has joined #ocaml
l1x has quit [Quit: ~]
l1x has joined #ocaml
ilovezfs_ has quit [Quit: ~]
ilovezfs_ has joined #ocaml
rostero has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
mk9 has joined #ocaml
mattg has quit [Quit: ~]
mattg has joined #ocaml
caw_______ has quit [Quit: ~]
caw_______ has joined #ocaml
cbarrett has quit [Quit: ~]
<thomasga>
Drup: do you have an example of js_of_ocaml+tyxml+stuff happening when clicking on a button? I am trying to create an HTML fragment with tyxml, including a button, then I convert it using Tyxml.To_dom.of_node and then I'd like to set ##.onclick handlers on the button. I guess it won't work (because the html fragements are "copied" into dom calls) but what is the recommend way to do that kind of thing?
cbarrett has joined #ocaml
mk9 has quit [Ping timeout: 276 seconds]
<Drup>
thomasga: why not just use a_onclick ?
<Drup>
(your method should also work, but I would need to see the code to see what's wrong)
<Drup>
(a_onclick is just simpler and safer)
<thomasga>
ha yes, a_onclick is what I was looking for
bigs has quit [Quit: ~]
bigs has joined #ocaml
mjvoge02 has quit [Quit: ~]
mjvoge02 has joined #ocaml
terrorjack has quit [Quit: ~]
terrorjack has joined #ocaml
xttraces has quit [Quit: ~]
xttraces has joined #ocaml
gareppa has joined #ocaml
mk9 has joined #ocaml
mk9 has quit [Client Quit]
nicoo has quit [Remote host closed the connection]
<rgr[m]>
Drup: you'll have to wait a bit I'm afraid then. I have a few things that are of higher priority: 1.20 release, configurator, variants, and bisect. I'll queue up the private module stuff though
nicoo has joined #ocaml
<Drup>
rgr[m]: I've been asking for private modules since jbuilder's alpha. I can wait
sepp2k has joined #ocaml
gareppa has quit [Remote host closed the connection]
<rgr[m]>
Drup: thanks. The reason why private module aren't of such high priority is that `(wrapped true)` is mostly satisfactory for most people
<Drup>
I already gave my arguments on that point. :)
<companion_cube>
wrapped true is pretty neat, imho
Bronsa has joined #ocaml
mk9 has joined #ocaml
<Drup>
oh, I agree
<Drup>
it just doesn't replace module abstraction
<companion_cube>
hmmm
freyr has quit [Remote host closed the connection]
mk9_ has joined #ocaml
mk9 has quit [Ping timeout: 255 seconds]
mk9_ is now known as mk9
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
mk9 has quit [Ping timeout: 260 seconds]
diginet has quit [Quit: diginet has quit!]
zpe has quit [Ping timeout: 255 seconds]
<rgr[m]>
Drup: what do you think about use-at-your-own-risk escape hatches for accessing things like private libraries/private modules? Yes, doing this is risky and not recommended but sometimes unavoidable.
<rgr[m]>
In haskell they have this `Internal` namespace convention that isn't half bad
<Drup>
I think it's unsound.
<Drup>
rgr[m]: until with have "[@@unsafe]" in the langage which generates a fatal error by default, then I'm going to be wary of these kind of things.
<rgr[m]>
Unsound as in the sense of theoretically unsatisfying, or that it should never be done
<Drup>
rgr[m]: unsound in the sense that it breaks library soundness
<rgr[m]>
Yeah, but isn't it a given here? if you're relying on a libray's internals, it's your responsibility to maintain its internal invariants
Haudegen has joined #ocaml
<Drup>
rgr[m]: but it means that you don't have an automated way of checking if someone uses workaround
<Drup>
if you have an abstract type with no escape hatch, the only way to break soundness is Obj or %identity
<Drup>
checking that is basically a grep call
<mrvn>
Drup: or extern functions
<Drup>
mrvn: indeed
<Drup>
(still a grep call :p)
<mrvn>
so 3 greps or a bigger pattern
<rgr[m]>
Is it that much harder to grep for a build option? We could even have a --strict flag in jbuilder or something
<Drup>
rgr[m]: what's the semantic for --strict for external libraries ?
<mrvn>
rgr[m]: in C++ yopu have friends for this
<rgr[m]>
I'd assume it would be transitive, right? You're looking to build an executable that never relies on this unsafe feature
<rgr[m]>
mrvn: yeah, exactly where I'm going. Though a little rougher. At least at first
<Drup>
doing that at the buildsystem level is the wrong thing. There is already a language feature that allow to enforce that, and that works perfectly fine
<Drup>
rgr[m]: if you really want your Internal module, then lobby for an [@@unsafe] attribute, and plaster it everywhere
<rgr[m]>
What's the language feature that allows me to access private modules again?
<Drup>
I would actually be quite happy with that
<Drup>
rgr[m]: No, I said there is a language feature that allows you to hide them, by default, as they should. :)
<companion_cube>
which feature?
<companion_cube>
removing the .cmi?
<Drup>
companion_cube: that's how it work, but abstraction in general
<companion_cube>
I don't see how `(wrapped true)` doesn't give you that power
<Drup>
companion_cube: because all modules are installed
mk9 has joined #ocaml
<companion_cube>
ah, and they're reachable via Foo__bar, right?
<Drup>
Yeah
<companion_cube>
ok I see
<companion_cube>
and the .cmis have to be installed for these I supposE?
<rgr[m]>
Drup: There are many advantages to evolving features starting from the build system. Experimentation is far less costly, you don't have to wait for people to start using the stuff, etc.
<Drup>
which might expose additional type equalities, unsafe functions, or just end up in your types, documentation and error messages
<rgr[m]>
companion_cube: not necessarily. though they are right now
huglovefan has quit [Quit: huglovefan]
<rgr[m]>
Drup: if internal libraries are implemented, they'd need an escape hatch at teh build system level regardless btw
<Drup>
hm, why ?
kakadu has left #ocaml ["Konversation terminated!"]
kakadu has joined #ocaml
<rgr[m]>
Well how else would public libraries which share a scope use them?
<Drup>
I don't understand what you mean. You can't share files between libraries in jbuilder anyway
<rgr[m]>
You wouldn't need to with private libs. I am using jbuilder's operational definition of what a scope is. But roughly for us it would mean that a library defined in a scope can use all libraries defined in the same scope. Regardless of whether they're public or private
<rgr[m]>
So essentially a privave lib's cmi's would only be visible to libraries in the same scope.
<Drup>
ah, I see
<Drup>
but that's "local" in a way. I'm fine with that. The important propery being that you can't insert yourself into the scope of a library defined elsewhere.
<rgr[m]>
You could actually. At least given the proposed implementation.
<rgr[m]>
To install a public lib with a private lib dep, you still need to install the private lib
<rgr[m]>
but in a "hidden" way
<Drup>
*sight*
<rgr[m]>
this is so taht we can build against the private lib whether it's in findlib or in your local project
<rgr[m]>
lol I know...
<rgr[m]>
Anyway, name mangling at the library level to the rescue
<Drup>
yeah, the C++ solution
<rgr[m]>
Which *conveniently* creates an escape hatch anyways
<Drup>
that works great
<Drup>
well, it's actually the javascript solution as well
<Drup>
I'll stop this discussion and get back to work, if you don't mind. I don't feel this is productive
<rgr[m]>
Anyways, this private lib solution would actually make an escape hatch for internal modules a bit obsolete. Since you could simply restructure your lib to have a prvate lib component
<rgr[m]>
But it's such a damn hassle
<rgr[m]>
As opposed to all the other productive things you do here :P