MercurialAlchemi has quit [Ping timeout: 240 seconds]
bombastus has quit [Remote host closed the connection]
infinity0 has quit [Ping timeout: 240 seconds]
infinity0 has joined #ocaml
dakk has joined #ocaml
MercurialAlchemi has joined #ocaml
mnemem has joined #ocaml
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xuanrui has quit [Quit: Leaving]
sapristi has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 248 seconds]
sapristi has quit [Ping timeout: 252 seconds]
malina has joined #ocaml
govg has joined #ocaml
mnemem has quit [Ping timeout: 255 seconds]
samrat_ has quit [Ping timeout: 240 seconds]
AltGr has joined #ocaml
sapristi has joined #ocaml
jonasen has joined #ocaml
malina has quit [Read error: Connection reset by peer]
al-damiri has quit [Quit: Connection closed for inactivity]
MercurialAlchemi has joined #ocaml
mnemem has joined #ocaml
ski has joined #ocaml
TarVanimelde has joined #ocaml
mnemem has quit [Ping timeout: 252 seconds]
danieli has quit [Remote host closed the connection]
TheLemonMan has joined #ocaml
danieli has joined #ocaml
danieli has joined #ocaml
danieli has quit [Changing host]
fraya has joined #ocaml
argent_smith has joined #ocaml
mnemem has joined #ocaml
fraya has quit [Quit: Leaving]
fraya has joined #ocaml
TarVanimelde has quit [Quit: TarVanimelde]
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dhil has joined #ocaml
kolko_ has joined #ocaml
kolko has quit [Ping timeout: 240 seconds]
enterprisey has quit [Ping timeout: 240 seconds]
samrat_ has joined #ocaml
enterprisey has joined #ocaml
dhil has quit [Ping timeout: 260 seconds]
mk9 has joined #ocaml
dhil has joined #ocaml
mk9_ has joined #ocaml
mfp has joined #ocaml
mk9 has quit [Ping timeout: 246 seconds]
mk9_ has quit [Quit: mk9_]
freyr has joined #ocaml
freyr has quit [Client Quit]
freyr has joined #ocaml
enterprisey has quit [Ping timeout: 246 seconds]
kerrhau has quit [Ping timeout: 240 seconds]
mk9 has joined #ocaml
mk9 has quit [Ping timeout: 246 seconds]
yno_ is now known as rks`
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
milodavis has joined #ocaml
<milodavis>
Does anyone know if there is a way to have jbuilder to use an ocamlfind-like linking procedure? Specifically, I want to specify the -linkpkg option.
mk9 has joined #ocaml
<rgrinberg>
milodavis: -linkpkg is an ocamlfind thing IIRC and jbuilder doesn't use ocamlfind
mk9 has quit [Client Quit]
milodavis has quit [Ping timeout: 252 seconds]
<rgrinberg>
I don't really know what -linkpkg does in ocamlfind, but jbuilder lets you pass whatever options you want. look up `flags` `library_flags` `link_flags`
Associat0r has joined #ocaml
Associat0r has quit [Changing host]
Associat0r has joined #ocaml
Soni has joined #ocaml
samrat_ has quit [Ping timeout: 252 seconds]
ziyourenxiang has joined #ocaml
Simn has joined #ocaml
sepp2k has joined #ocaml
mk9 has joined #ocaml
<jpdeplaix>
rgrinberg: I can do the opam package for Camomille if you prefer
chelfi has quit [Read error: Connection reset by peer]
mk9 has quit [Quit: mk9]
milodavis has joined #ocaml
<jpdeplaix>
rgrinberg: I took the initiative to open a PR. I hope you were not working on it at the same time
shinnya has joined #ocaml
bombastus has joined #ocaml
dhil has quit [Ping timeout: 260 seconds]
mk9 has joined #ocaml
<milodavis>
I have rules for generating cmx files in Jbuilder. Is there a way to specify them as a dependency for an executable?
<milodavis>
The directories they end up in are referenced by -I declarations, but not the object files themselves
<milodavis>
they're built by a custom OCaml compiler, so I don't think jbuilder will see them by default
MercurialAlchemi has quit [Ping timeout: 248 seconds]
MercurialAlchemi has joined #ocaml
mk9 has joined #ocaml
ShalokShalom has quit [Ping timeout: 240 seconds]
mk9 has quit [Client Quit]
samrat_ has joined #ocaml
jonasen has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 246 seconds]
MercurialAlchemi has joined #ocaml
mk9 has joined #ocaml
samrat_ has quit [Ping timeout: 248 seconds]
mk9 has quit [Quit: mk9]
sh0t has joined #ocaml
dhil has joined #ocaml
fraya has quit [Quit: Leaving]
ShalokShalom_ is now known as ShalokShalom
<rgrinberg>
companion_cube: I brought this up at the icfp and diml had a pretty good plan fleshed out. But I forgot the details...
<rgrinberg>
The feature itself was pretty simple though. So if we recall the high level details it should be easy
<companion_cube>
that would be nice, because right now my project only builds on flambda -_-
dtornabene has quit [Read error: Connection reset by peer]
dtornabene has joined #ocaml
dhil has quit [Ping timeout: 255 seconds]
TheLemonMan has joined #ocaml
zolk3ri has joined #ocaml
mnemem has quit [Ping timeout: 252 seconds]
andrea_ has joined #ocaml
samrat_ has joined #ocaml
<andrea_>
I have Lwt channels (ic, oc), and would like to create some middle processes on the i/o data and return (ic2, oc2) to be used by the upper layer. How is it possible to do that?
mk9 has joined #ocaml
freyr has quit [Quit: Lost terminal]
dhil has joined #ocaml
ousado has joined #ocaml
shinnya has quit [Ping timeout: 240 seconds]
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cbarrett>
andrea_: maybe use >>= ? not that familiar with Lwt myself
sh0t has quit [Quit: Leaving]
jonasen has joined #ocaml
<milodavis>
rgrinberg: Is there a way to have Jbuilder include a cmx file that was built using a custom compiler included in an executable?
mk9 has quit [Quit: mk9]
mk9 has joined #ocaml
mk9 has quit [Ping timeout: 248 seconds]
shiyaz has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
ygrek_ has joined #ocaml
<orbifx[m]>
Is it possible to match against the value or a record field? `match record.field -> _ | "something else" -> ...`
<orbifx[m]>
?
FreeBirdLjj has joined #ocaml
<octachron>
It is
Algebr` has joined #ocaml
ygrek_ has quit [Ping timeout: 260 seconds]
<theblatte>
orbifx[m]: not sure I understand but could be `match x with | x when x = record.field -> _` or `match x with | {field} -> _` or something else
<milodavis>
orbifx[m]: Yes, though your syntax is a little off. Firstly, you're missing the `with` keyword. Secondly, your second match case is unreachable.
<orbifx[m]>
sorry yes, forgot to type `with`
<orbifx[m]>
why is the second case unreachable? What happens with the first one?
<orbifx[m]>
I think theblatte 's suggest is what I need, cause I think using the record field as a pattern does something other than comparing to it
<theblatte>
but which one? :p
<orbifx[m]>
then one using when theblatte
<orbifx[m]>
I will try the one using the curly brackets too
<theblatte>
I'm guessing the first one: identifiers in patterns of match clauses are bindings, it's the same story as `let y = 4 in match x with y -> (* here you're just binding y to the value of x, whatever the value of x is *) | _ -> (* unreachable *)`
<rgrinberg>
companion_cube: check out how lwt does it. you can still support flambda and the normal compiler. it's just ugly...
<companion_cube>
I'd rather wait for a clean solution…
<rgrinberg>
milodavis: when you say "include a cmx file" you mean some binary blob you don't have the source to?
<companion_cube>
looks like a dirty hack
<orbifx[m]>
theblatte: when using {} does it need the record value in there too? {record.field} ?
<milodavis>
rgrinberg: I mean a cmx file built with compiler libs.
<milodavis>
Essentially we're providing a subset of the language and ruling out some operations we don't want to include
<rgrinberg>
milodavis: so a .cmx that's part of compiler-libs?
<rgrinberg>
oh ok
<theblatte>
orbifx[m]: matching against other variables doesn't make sense, as I was trying to explain
<milodavis>
A cmx build from a set of ml/mli files
<rgrinberg>
well, are you building it using jbuilder?
<theblatte>
if you want to compare with record.field for some variable record in the scope you need `... when ... = record.field`
<milodavis>
I'm running our custom compiler binary using jbuilder
<rgrinberg>
otherwise, you might need to write a META file for it
<rgrinberg>
and treat it as an external lib
<milodavis>
I'm building everything else with jbuilder
<rgrinberg>
milodavis: i'm going to bed now, but this seems complex enough to deserve a ticket/discus.ocaml.org thread
<milodavis>
Thanks. I'll throw one up.
<orbifx[m]>
not following theblatte
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
argent_smith has quit [Quit: Leaving.]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
shinnya has joined #ocaml
kakadu has joined #ocaml
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kakadu has quit [Ping timeout: 240 seconds]
kakadu has joined #ocaml
jonasen has joined #ocaml
milodavis has quit [Ping timeout: 255 seconds]
slash^ has joined #ocaml
ohama has quit [Ping timeout: 240 seconds]
ohama has joined #ocaml
ziyourenxiang has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 240 seconds]
jao has joined #ocaml
arj has joined #ocaml
arj has left #ocaml [#ocaml]
endeavor has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
nicoo has quit [Ping timeout: 248 seconds]
xuanrui has joined #ocaml
mnemem has joined #ocaml
jonasen has quit [Read error: Connection reset by peer]
AltGr has left #ocaml [#ocaml]
jonasen has joined #ocaml
jao has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
demonimin has quit [Ping timeout: 240 seconds]
nicoo has joined #ocaml
benq has joined #ocaml
demonimin has joined #ocaml
demonimin has quit [Changing host]
demonimin has joined #ocaml
jnavila has quit [Ping timeout: 240 seconds]
xuanrui has quit [Ping timeout: 258 seconds]
enterprisey has joined #ocaml
sz0 has quit [Quit: Connection closed for inactivity]
mnemem has quit [Ping timeout: 240 seconds]
dhil has quit [Ping timeout: 240 seconds]
banjiewen has quit [Remote host closed the connection]
banjiewen has joined #ocaml
sh0t has joined #ocaml
jnavila has joined #ocaml
demonimin has quit [Ping timeout: 240 seconds]
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
benq has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnavila has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
jonasen has joined #ocaml
fraya has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
demonimin has joined #ocaml
mk9 has joined #ocaml
mk9 has quit [Client Quit]
mk9 has joined #ocaml
mk9 has quit [Quit: mk9]
lgd_ has quit [Quit: Leaving]
fraya has quit [Quit: Leaving]
gpietro has joined #ocaml
sh0t has quit [Remote host closed the connection]
eni has joined #ocaml
eni is now known as Guest82707
Guest82707 has quit [Remote host closed the connection]
gpietro has quit [Remote host closed the connection]
gpietro has joined #ocaml
xuanrui has joined #ocaml
nicoo has quit [Ping timeout: 248 seconds]
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dakk has quit [Ping timeout: 260 seconds]
demonimin has quit [Ping timeout: 255 seconds]
nicoo has joined #ocaml
Associat0r has quit [Read error: Connection reset by peer]
mk9 has joined #ocaml
jonasen has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 246 seconds]
demonimin has joined #ocaml
demonimin has quit [Changing host]
demonimin has joined #ocaml
benq has joined #ocaml
jnavila has quit [Ping timeout: 240 seconds]
sepp2k has quit [Quit: Leaving.]
mk9 has quit [Ping timeout: 240 seconds]
Algebr` has joined #ocaml
bbc_ has joined #ocaml
bbc has quit [Read error: Connection reset by peer]
xuanrui has quit [Ping timeout: 255 seconds]
gpietro has quit [Remote host closed the connection]
sh0t has joined #ocaml
fraya has quit [Quit: Leaving]
mk9 has joined #ocaml
argent_smith2 has quit [Quit: Leaving.]
xuanrui has joined #ocaml
jonasen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xuanrui has quit [Ping timeout: 252 seconds]
mk9 has quit [Quit: mk9]
jao has quit [Ping timeout: 240 seconds]
cbot has joined #ocaml
jao has joined #ocaml
Simn has quit [Ping timeout: 264 seconds]
rackj has joined #ocaml
benq has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rackj has left #ocaml [#ocaml]
mnemem has joined #ocaml
zelines has joined #ocaml
zelines_ has joined #ocaml
zelines has quit [Ping timeout: 248 seconds]
zelines_ has quit [Ping timeout: 255 seconds]
enterprisey has quit [Remote host closed the connection]
kakadu has quit [Remote host closed the connection]
<dtornabene>
question about syntax: I'm curious what the [@var] syntax means/is/does....? Any links to documentation would also be appreciated, googling does seem to have help thus far
<companion_cube>
look for extension points
<companion_cube>
and attributes
<dtornabene>
companion_cube: thank you!
<dtornabene>
fascinating
<dtornabene>
so this is one of the syntactical aspects of the language that allows for things like ReasonML and all of the stuff Janes St does, I take it?
<companion_cube>
for the JST stuff (and others' actually), yeah
<companion_cube>
that's called "ppx"
<companion_cube>
for reasonML, no, they just have their own parser for their syntax
<dtornabene>
i'm still very much learning vanilla ocaml, so I've avoided things like reason/JST etc. Which would explain why I haven't seen this syntax before. I was just nosing around a random bucklescript repo and saw it