<barcabuona>
but i forget i should not be doing that
sepp2k has quit [Ping timeout: 268 seconds]
<barcabuona>
so i need to exit and re-enter
<zozozo>
^^
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
KeyJoo has quit [Ping timeout: 260 seconds]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
ziyourenxiang has quit [Ping timeout: 260 seconds]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
segmond has quit [Quit: l8r]
jlam_ has joined #ocaml
jlam__ has quit [Ping timeout: 268 seconds]
sgronblo has joined #ocaml
jacobian has joined #ocaml
<jacobian>
Is there a syntax for a hole in ocaml, so that I can put it somewhere and it will be type correct so I don't have to complete the term to get Merlin to be happy?
<jacobian>
A value of type 'a
<engil>
I guess you can use Obj.magic
<engil>
or when it's in a branch in a codepath I'm not done with yet, I use just assert false
<engil>
or just bear with Merlin not being happy
<engil>
which seems like the safest
mfp has quit [Ping timeout: 268 seconds]
spew has joined #ocaml
spew has quit [Ping timeout: 260 seconds]
zv has quit [Ping timeout: 240 seconds]
cbot has quit [Ping timeout: 260 seconds]
cbot has joined #ocaml
sgronblo has quit [Ping timeout: 260 seconds]
<Armael>
yea, don't use Obj.magic
<Armael>
use assert false, or failwith "not implemented"
jacobian has quit [Ping timeout: 268 seconds]
ygrek__ has quit [Ping timeout: 255 seconds]
sgronblo has joined #ocaml
sgronblo has quit [Ping timeout: 245 seconds]
Soni has joined #ocaml
sgronblo has joined #ocaml
mengu has quit [Remote host closed the connection]
sgronblo has quit [Ping timeout: 268 seconds]
andreas has quit [Quit: Connection closed for inactivity]
raphaelss has joined #ocaml
mengu has joined #ocaml
raphaelss has quit [Quit: leaving]
MercurialAlchemi has joined #ocaml
sgronblo has joined #ocaml
_whitelogger has joined #ocaml
zv has joined #ocaml
mengu has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 260 seconds]
spew has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 268 seconds]
pierpa has quit [Remote host closed the connection]
<def`>
beginner: labelled arguments don't affect FFI, just write a c function "value c_test(value name, value age);"
Lonios has joined #ocaml
<beginner>
def`: does that mean i can write it like in my example or not?
<beginner>
i was concerned that the free positioning of labeled arguments might cause an issue
<Drup>
free positioning is only at application
Lonios has quit [Remote host closed the connection]
<Drup>
the compiler just reorders things for you under the hood
<beginner>
does the ordering between mli and ml files have to be the same?
<beginner>
of the arguments
<Drup>
afaik, yes
KazuoKiriyama has joined #ocaml
KazuoKiriyama has quit [Remote host closed the connection]
<beginner>
Drup: thanks, never really thought about that case
zpe has quit [Remote host closed the connection]
shortCircuit__ has quit [Ping timeout: 268 seconds]
mengu_ has joined #ocaml
HeadHunter has joined #ocaml
troydm has quit [Ping timeout: 240 seconds]
zpe has joined #ocaml
mengu has quit [Ping timeout: 260 seconds]
HeadHunter has quit [Remote host closed the connection]
sgronblo has joined #ocaml
Habbor has joined #ocaml
pierpa has quit [Remote host closed the connection]
zpe has quit [Remote host closed the connection]
Habbor has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
Daewron has joined #ocaml
Daewron has quit [Remote host closed the connection]
ryanartecona has quit [Quit: ryanartecona]
zpe has quit [Ping timeout: 240 seconds]
<freyr>
Is there any way to translate OCaml object into JS object with js_of_ocaml? Should I use yojson for that? Json.output creates only simple array representation.
ryanartecona has joined #ocaml
johnelse_ has joined #ocaml
johnelse has quit [Ping timeout: 240 seconds]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
zpe has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Ping timeout: 255 seconds]
sepp2k has joined #ocaml
francoisbabeuf has joined #ocaml
vicfred has joined #ocaml
nicootje is now known as nicoo
jacobian has quit [Ping timeout: 260 seconds]
shinnya has joined #ocaml
<cmV5bmly>
freyr: For what purpose?
ollehar1 has joined #ocaml
beginner has quit [Remote host closed the connection]
<freyr>
cmV5bmly: I want to pass json structure in a POST request.
MercurialAlchemi has joined #ocaml
<francoisbabeuf>
Is there a combinator like $ in base?
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
FreeBirdLjj has joined #ocaml
<freyr>
cmV5bmly: I'm quite ignorant in this so I dunno how to do it properly, but it seems I should use XmlHttpRequest. Is there anything like [@@deriving json] in js_of_ocaml? Or is there any other way to sent OCaml type as a JSON in the body of Post request?
ryanartecona has quit [Quit: ryanartecona]
shortCircuit__ has joined #ocaml
<cmV5bmly>
freyr: I mean, is the representation important?
<cmV5bmly>
If not, then I think there's something in jsoo already, otherwise there's ppx_deriving_yojson and atdgen
<cmV5bmly>
francoisbabeuf: what is $
ollehar1 has quit [Quit: ollehar1]
<freyr>
cmV5bmly: Yes, since I use yojson on server-side. What does jsoo have for data serialisation?
francoisbabeuf has quit [Ping timeout: 245 seconds]
shortCircuit__ has quit [Ping timeout: 260 seconds]
hashpuppy has joined #ocaml
ryanartecona has joined #ocaml
mengu_ has quit [Remote host closed the connection]
copy` has joined #ocaml
shortCircuit__ has joined #ocaml
shortCircuit__ has quit [Ping timeout: 246 seconds]
shortCircuit__ has joined #ocaml
maarhart has joined #ocaml
freyr has quit [Remote host closed the connection]
<toolslive>
I switched my opam to 4.04.1+spacetime but installing packages fails with "[ERROR] The compilation of camlp4 failed at "make all"." looking at the stacktrace it's a stack overflow in "asmcomp/spill.ml", line 160, characters 32-51
maarhart has quit [Client Quit]
<toolslive>
is that a known issue?
shortCircuit__ has quit [Ping timeout: 240 seconds]
<apache2>
can I define type a=A type bc=B|C type abc = ???? such that a :> abc and b:> abc ?
<def`>
apache2: with poly variant
<def`>
type a = [ `A ] type bc = [ `B | `C ] type abc = [ a | bc ];;
olibjerd has quit [Read error: Connection reset by peer]
olibjerd has joined #ocaml
shinnya has quit [Ping timeout: 268 seconds]
rpg has joined #ocaml
agravier has joined #ocaml
argent_smith has quit [Quit: Leaving.]
ryanartecona has joined #ocaml
agravier has quit [Quit: agravier]
jbrown has quit [Quit: Leaving]
slash^ has joined #ocaml
Shamy has joined #ocaml
cbot has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
FreeBirdLjj has quit [Remote host closed the connection]
Shamy has quit [Remote host closed the connection]
whirm has joined #ocaml
<whirm>
Hi everyone
<abeaumont>
hi whirm
<whirm>
o/
HunterOfSouls has joined #ocaml
Kethorin has joined #ocaml
<orbifx[m]>
hello
Kethorin has quit [Remote host closed the connection]
HunterOfSouls has quit [Remote host closed the connection]
<whirm>
I've added some external functions to my project (from libxdo) to my project and I've updated my pkg.ml to link against the new dependency. Building native binaries works now but bytecode builds fail. I've read that I need to pass `-custom` to ocamlc to fix that. According to the man ocamlbuild page `-cflag` should pass the following arg to ocamlc, but it's also passing it to ocamlopt making the native build fail.
<whirm>
as it is, I get a successful build. If I uncomment the commented out parts, ocamlopt will fail because it doesn't recognize the `-custom` option.
<whirm>
What am I doing wrong?
SW4T has joined #ocaml
Simn has quit [Read error: Connection reset by peer]
ollehar1 has joined #ocaml
SW4T has quit [Remote host closed the connection]
shortCircuit__ has joined #ocaml
DeathEater has joined #ocaml
FreeBirdLjj has joined #ocaml
dtornabene has quit [Read error: Connection reset by peer]
ontologiae has joined #ocaml
dtornabene has joined #ocaml
shortCircuit__ has quit [Ping timeout: 240 seconds]
francoisbabeuf has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
DeathEater has quit [Remote host closed the connection]
francoisbabeuf has quit [Remote host closed the connection]
SW4T has joined #ocaml
Zaraki has joined #ocaml
pierpa has joined #ocaml
Zaraki has quit [Remote host closed the connection]
SW4T has quit [Remote host closed the connection]
ontologiae has quit [Ping timeout: 258 seconds]
jnavila has joined #ocaml
KeyJoo has joined #ocaml
barcabuona has quit [Ping timeout: 245 seconds]
barcabuona has joined #ocaml
shortCircuit__ has joined #ocaml
shortCircuit__ has quit [Ping timeout: 255 seconds]
saml has quit [Remote host closed the connection]
jao has quit [Ping timeout: 268 seconds]
TheLemonMan has joined #ocaml
ryanartecona has joined #ocaml
mengu has joined #ocaml
shortCircuit__ has joined #ocaml
shortCircuit__ has quit [Ping timeout: 268 seconds]
slash^ has quit [Remote host closed the connection]
gonz_ has joined #ocaml
kakadu has joined #ocaml
shinnya has joined #ocaml
ontologiae has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
ontologiae has quit [Ping timeout: 260 seconds]
raphaelss has joined #ocaml
shortCircuit__ has joined #ocaml
shortCircuit__ has quit [Ping timeout: 272 seconds]
iitalics has joined #ocaml
olibjerd has quit [Quit: olibjerd]
malc_ has quit [Remote host closed the connection]
ryanartecona has quit [Quit: ryanartecona]
rpg has quit [Ping timeout: 255 seconds]
rpg has joined #ocaml
kolko has joined #ocaml
Soni has joined #ocaml
dtornabene has quit [Ping timeout: 240 seconds]
_andre has quit [Quit: leaving]
dtornabene has joined #ocaml
hashpuppy has quit [Quit: Connection closed for inactivity]
raphaelss has quit [Ping timeout: 272 seconds]
shortCircuit__ has joined #ocaml
Simn has joined #ocaml
shortCircuit__ has quit [Ping timeout: 260 seconds]
argent_smith has joined #ocaml
SpiceGuid has joined #ocaml
argent_smith has quit [Quit: Leaving.]
iitalics has quit [Quit: /thread]
Simn has quit [Read error: Connection reset by peer]
jnavila has quit [Ping timeout: 240 seconds]
SpiceGuid has quit [Quit: ChatZilla 0.9.93 [SeaMonkey 2.46/20161213183751]]
whirm has quit [Ping timeout: 245 seconds]
ontologiae has joined #ocaml
ontologiae has quit [Ping timeout: 260 seconds]
shortCircuit__ has joined #ocaml
cmV5bmly is now known as reynir
shortCircuit__ has quit [Ping timeout: 240 seconds]
<orbifx[m]>
whirm: I've not worked with bytecode, hopefully someone has and can help
<orbifx[m]>
you know there is also a forum now, right?
ontologiae has joined #ocaml
Soni has quit [Ping timeout: 240 seconds]
ontologiae has quit [Ping timeout: 260 seconds]
MercurialAlchemi has quit [Ping timeout: 260 seconds]
sillyotter has joined #ocaml
Soni has joined #ocaml
sillyotter has quit [Client Quit]
average has quit [Quit: leaving]
Soni has quit [Ping timeout: 245 seconds]
sepp2k has quit [Ping timeout: 276 seconds]
Cypi_ has joined #ocaml
tormen_ has joined #ocaml
nopf_ has joined #ocaml
mcfiredrill has joined #ocaml
k1000 has joined #ocaml
kandu_ has joined #ocaml
orbitz_ has joined #ocaml
artart78_ has joined #ocaml
cross_ has joined #ocaml
average has joined #ocaml
ontologiae has joined #ocaml
orbitz has quit [Write error: Broken pipe]
Cypi has quit [Write error: Broken pipe]
nopf has quit [Write error: Broken pipe]
philtor has quit [Excess Flood]
k1000_ has quit [Remote host closed the connection]
cross has quit [Remote host closed the connection]
kandu has quit [Remote host closed the connection]
artart78 has quit [Remote host closed the connection]
philtor has joined #ocaml
jlam_ has quit [Ping timeout: 260 seconds]
tormen has quit [Ping timeout: 260 seconds]
mcfiredr1ll has quit [Ping timeout: 260 seconds]
Soni has joined #ocaml
cbot has quit [Ping timeout: 258 seconds]
Soni has quit [Excess Flood]
Soni has joined #ocaml
kakadu has quit [Remote host closed the connection]
ollehar1 has quit [Quit: ollehar1]
vicfred has quit [Quit: Leaving]
SoniEx2 has joined #ocaml
Soni has quit [Ping timeout: 255 seconds]
Soni has joined #ocaml
SoniEx2 has quit [Ping timeout: 258 seconds]
segmond has joined #ocaml
ontologiae has quit [Ping timeout: 255 seconds]
Soni has quit [Ping timeout: 260 seconds]
Soni has joined #ocaml
oschwald has joined #ocaml
AlexRussia has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ocaml
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0 has quit [Killed (card.freenode.net (Nickname regained by services))]