kakadu has quit [Remote host closed the connection]
adarqui has joined #ocaml
mahasamoot has joined #ocaml
<jyc>
is there a way to have ocamlrun list the .so s it will try to load?
badon_ has joined #ocaml
badon has quit [Disconnected by services]
badon_ is now known as badon
zoobab has quit [Ping timeout: 250 seconds]
zoobab has joined #ocaml
jeffmo has quit [Quit: jeffmo]
Algebr` has joined #ocaml
Algebr` has left #ocaml [#ocaml]
struk|desk|away is now known as struk|desk2
<jyc>
alternatively there is an easy way to distribute OCaml applications that use libraries using C stubs, like Lwt?
BitPuffin|osx has joined #ocaml
<def`>
ocamlobjinfo maybe
struk|desk2 is now known as struk|desk|away
<jyc>
that looks good, thanks!
jeffmo has joined #ocaml
sgnb has quit [Ping timeout: 272 seconds]
pierpa has quit [Ping timeout: 255 seconds]
ygrek has quit [Ping timeout: 276 seconds]
mac10688 has quit [Ping timeout: 260 seconds]
mahasamoot has quit [Remote host closed the connection]
pyx has joined #ocaml
pyx has quit [Quit: WeeChat 1.3]
struk|desk|away has quit [Ping timeout: 265 seconds]
jeffmo has quit [Quit: jeffmo]
darkf has joined #ocaml
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ggole has joined #ocaml
fluter has quit [Ping timeout: 265 seconds]
fluter has joined #ocaml
Algebr_ has joined #ocaml
lopex has quit [Quit: Connection closed for inactivity]
xhy has joined #ocaml
tmtwd has joined #ocaml
xhy is now known as xyh
hay207 has joined #ocaml
slash^ has joined #ocaml
xyh has quit [Quit: ChatZilla 0.9.92 [SeaMonkey 2.39/20151206235742]]
MercurialAlchemi has joined #ocaml
tmtwd has quit [Ping timeout: 256 seconds]
sbrouf has joined #ocaml
ril has joined #ocaml
fluter has quit [Ping timeout: 260 seconds]
fluter has joined #ocaml
Algebr_ has quit [Ping timeout: 240 seconds]
sbrouf has quit [Ping timeout: 255 seconds]
d0nn1e has quit [Ping timeout: 276 seconds]
d0nn1e has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 245 seconds]
Simn has joined #ocaml
Sorella has quit [Quit: Connection closed for inactivity]
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zpe has joined #ocaml
troydm has quit [Ping timeout: 246 seconds]
sbrouf has joined #ocaml
aantron has quit [Remote host closed the connection]
JacobEdelman has quit [Quit: Connection closed for inactivity]
MercurialAlchemi has joined #ocaml
sbrouf has quit [Quit: Quitte]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
zpe has quit [Remote host closed the connection]
ygrek has joined #ocaml
nuuit has quit [Remote host closed the connection]
kakadu has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
musha68k has quit [Remote host closed the connection]
zpe has joined #ocaml
rand has joined #ocaml
rand is now known as Guest28752
FreeBirdLjj has joined #ocaml
mort___ has joined #ocaml
mcmillhj has quit [Ping timeout: 245 seconds]
hunteriam has joined #ocaml
sgnb has joined #ocaml
<hunteriam>
Hi #ocaml, I'm looking to apply to Jane Street for a summer internship and wanted to know more about what types of candidates they actually like to hire
<kakadu>
modular implicits are based on ocaml 4.02.0
<kakadu>
and I'm rebasing these commits to ocaml with tag 4.02.1
<kakadu>
and I have some conflicts in boot/ocaml{c,dep,lex}
<kakadu>
How should I resolve them? def` ?
FreeBirdLjj has quit [Ping timeout: 276 seconds]
sz0 has quit [Read error: Connection reset by peer]
sz0 has joined #ocaml
FreeBirdLjj has joined #ocaml
xyh has joined #ocaml
xyh is now known as sad
sad is now known as xyh
aantron has joined #ocaml
zpe has quit [Remote host closed the connection]
aantron has quit [Remote host closed the connection]
mac10688 has joined #ocaml
sh0t has joined #ocaml
struk|desk has joined #ocaml
aantron has joined #ocaml
gpietro_ has joined #ocaml
lopex has joined #ocaml
sh0t has quit [Read error: Connection reset by peer]
gpietro__ has joined #ocaml
gpietro_ has quit [Ping timeout: 260 seconds]
aantron has quit [Remote host closed the connection]
madroach has quit [Ping timeout: 246 seconds]
octachron has joined #ocaml
gpietro_ has joined #ocaml
gpietro__ has quit [Read error: Connection reset by peer]
gpietro__ has joined #ocaml
lokien_ has joined #ocaml
gpietro_ has quit [Ping timeout: 260 seconds]
struk|desk is now known as struk|desk|away
FreeBird_ has joined #ocaml
mahasamoot has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
Sorella has joined #ocaml
gpietro__ has quit [Quit: Leaving]
tmtwd has joined #ocaml
aantron has joined #ocaml
struk|desk|away is now known as struk|desk
jhaberku has joined #ocaml
<jhaberku>
join #haskell
<jhaberku>
Woops. Missed a '/'. Sorry!
<Drup>
jhaberku: traitor !
<jhaberku>
:D
<jhaberku>
I wrote a DSL in OCaml that allows me to write assembly. Like `assemble_and_link (add ra (at rb))`. I want to provide a function that, when executed, writes the assembled object code to a file. The way I see it, compiling the program with `ocamlc` constitutes "assembling" and executing the compiled file will produce the assembled object file. The problem is that I need to invoke `ocamlc` with all the packages that are
<jhaberku>
One way of doing it I thought of is distributing a script via opam that invokes `ocamlbuild` with all the necessary parameters.
<jhaberku>
Does that make sense?
tristero has quit [Quit: tristero]
<Drup>
your first message was cut
<jhaberku>
Drup: Yeah? I'll paste it again.
<jhaberku>
I wrote a DSL in OCaml that allows me to write assembly. Like
<jhaberku>
`assemble_and_link (add ra (at rb))`. I want to provide a function
<jhaberku>
that, when executed, writes the assembled object code to a file.
<jhaberku>
The way I see it, compiling the program with `ocamlc` constitutes
<jhaberku>
"assembling" and executing the compiled file will produce the
<jhaberku>
assembled object file. The problem is that I need to invoke
<jhaberku>
`ocamlc` with all the packages that are necessary.
<jhaberku>
Darn. Awful formatting. Sorry...
<Drup>
I fail to see how it's different than any library.
JacobEdelman has joined #ocaml
<jhaberku>
Drup: Hm... You're right about the library part.
<jhaberku>
A helper script like `assemble foo.ml` would expand to `ocamlbuild -package assembler-package foo.byte && ./foo.byte` or something.
Algebr_ has joined #ocaml
zpe has joined #ocaml
struk|desk is now known as struk|desk|away
tristero has joined #ocaml
zpe has quit [Ping timeout: 245 seconds]
hay207 has quit [Read error: Connection reset by peer]
Algebr_ has quit [Remote host closed the connection]
<xyh>
is it true that there is not way to view the type 'string' as a class and to inherit from it ?
<zozozo>
xyh: AFAIK that's correct
MercurialAlchemi has quit [Ping timeout: 245 seconds]
govg has quit [Quit: leaving]
govg has joined #ocaml
<xyh>
oh! the namespace of class and type seems have an overloading mechanism that relys on,
<xyh>
for I can define 'class string ...', and *the* 'string' of stdlib would be 'string/15' but my 'string' would be 'string/1503'
<xyh>
* that relys on inference.
<Drup>
xyh: rather, when you define a class, you automatically define a type that goes with it
<Drup>
that doesn't prevent you to define a class string, you can always use String.t to address real strings
<xyh>
some say the OO mechanism of Ocaml is not popular among ocaml programmers ? is it very not true ?
<Drup>
it's occasionally useful, but most of the time it's not, hence it's not used.
mahasamoot has quit [Ping timeout: 260 seconds]
NingaLeaf has joined #ocaml
FreeBird_ has quit [Remote host closed the connection]
NingaLeaf has quit [Client Quit]
Guest4885 has quit [Quit: Guest4885]
mahasamoot has joined #ocaml
HelloWorld_ has joined #ocaml
HelloWorld_ has quit [Client Quit]
tane has joined #ocaml
tmtwd has quit [Ping timeout: 240 seconds]
lopex has quit [Quit: Connection closed for inactivity]
FreeBirdLjj has joined #ocaml
MercurialAlchemi has joined #ocaml
mac10688 has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
mac10688 has joined #ocaml
troydm has joined #ocaml
FreeBirdLjj has joined #ocaml
Intensity has quit [Remote host closed the connection]
Intensity has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 265 seconds]
mahasamoot has quit [Ping timeout: 265 seconds]
lobo has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
Guest28752 has quit [Quit: leaving]
<xyh>
is it true that we often name our function as 'list_of_stream' instead of 'stream_to_list' ?
mahasamoot has joined #ocaml
<companion_cube>
it's true in the stdlib
<ggole>
There are some exceptions in the stdlib, a few Foo.to_bar here and there
cody` has joined #ocaml
<xyh>
if I always use '_to_', would my code be unacceptable to good ocaml programmers ?
<ggole>
No. It would be mildly inconsistent with the stdlib, which is a slight negative.
<Drup>
of is used for a rather nice reason, though
<Drup>
if you see "blabla (foo_of_bar x)"
<Drup>
x is a bar, and the outside is a foo
<Drup>
so bar is close to the x, it's easier to read
kakadu has quit [Quit: Page closed]
octachron has quit [Quit: Leaving]
<Drup>
(Bla.to_foo is used for encapsulation reasons, which are valid too)
mahasamoot has quit [Ping timeout: 260 seconds]
larhat1 has joined #ocaml
<xyh>
yes!
<xyh>
'_of_' is good for function application [in prefix notation function application syntax],
<xyh>
while '_to_' is good for type declaration for example :
<xyh>
let rec stream_to_list
<xyh>
: 'a Stream.t -> 'a list
<Drup>
except that nobody really cares about type annotations of trivial functions. :)
<xyh>
yes
<xyh>
declaration once but application many times, so '_of_' is better.
hunteriam has quit [Quit: Connection closed for inactivity]
<xyh>
it would be cool if the syntax let me do :
<xyh>
let rec list_of_stream
<xyh>
: 'a list <- 'a Stream.t
<Drup>
I disagree strongly x)
zpe has joined #ocaml
<xyh>
haha
TBads has joined #ocaml
zpe has quit [Ping timeout: 276 seconds]
TBads has quit [Quit: WeeChat 1.3]
pyon has joined #ocaml
<xyh>
how about naming convenetion of public global helper functions ?
<xyh>
do we have a good convenetion here ?
TBads has joined #ocaml
cyraxjoe_ has joined #ocaml
<TBads>
Anybody have experience manually compiling a file that has a record type defined using the deriving (Json) syntax from ocsigen?
cyraxjoe has quit [Ping timeout: 260 seconds]
<Drup>
TBads: it should be the same than for usual deriving, with js_of_ocaml.deriving
<Drup>
so, something like "ocamlfind c -pp camlp4 -package js_of_ocaml.deriving"
mac10688 has quit [Ping timeout: 240 seconds]
<TBads>
I have tried that setup but I keep getting an error on the line where I use "deriving (Json)". Maybe my js_of_ocaml is a bad version?