companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.04.0 release notes: http://ocaml.org/releases/4.04.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
infinity0_ has joined #ocaml
infinity0_ has joined #ocaml
infinity0_ is now known as infinity0
infinity0 is now known as Guest12005
Guest12005 has quit [Ping timeout: 268 seconds]
infinity0 has joined #ocaml
jlouis_ has quit [Ping timeout: 240 seconds]
apache2_ has quit [Ping timeout: 240 seconds]
infinity0 has quit [Remote host closed the connection]
ahf has quit [Ping timeout: 268 seconds]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
yegods has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 276 seconds]
sgronblo has joined #ocaml
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
ahf has joined #ocaml
kevinqiu has joined #ocaml
kevinqiu has quit [Ping timeout: 246 seconds]
copy_ has quit [Quit: Connection closed for inactivity]
jlam_ is now known as jlam
spew has joined #ocaml
rdutra has quit [Ping timeout: 276 seconds]
mrkgnao has joined #ocaml
kevinqiu has joined #ocaml
kevinqiu has quit [Ping timeout: 260 seconds]
agravier has joined #ocaml
snowcrshd has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
rdutra has joined #ocaml
rdutra has quit [Client Quit]
FreeBirdLjj has joined #ocaml
moei has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 255 seconds]
spew has quit [Ping timeout: 276 seconds]
ygrek_ has quit [Ping timeout: 240 seconds]
kevinqiu has joined #ocaml
kevinqiu has quit [Ping timeout: 255 seconds]
fraggle_ has quit [Ping timeout: 255 seconds]
fraggle_ has joined #ocaml
mfp__ has quit [Ping timeout: 268 seconds]
ryanartecona has joined #ocaml
shinnya has quit [Ping timeout: 260 seconds]
agravier has quit [Quit: agravier]
_whitelogger has joined #ocaml
jao has quit [Ping timeout: 255 seconds]
jao has joined #ocaml
samrat has joined #ocaml
sgronblo has quit [Ping timeout: 240 seconds]
agravier has joined #ocaml
kevinqiu has joined #ocaml
sgronblo has joined #ocaml
kevinqiu has quit [Ping timeout: 240 seconds]
raphaelss has joined #ocaml
agravier has quit [Quit: agravier]
jlam_ has joined #ocaml
jlam has quit [Ping timeout: 260 seconds]
agravier has joined #ocaml
MercurialAlchemi has joined #ocaml
kevinqiu has joined #ocaml
kevinqiu has quit [Ping timeout: 276 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
olibjerd has joined #ocaml
sgronblo has quit [Read error: Connection reset by peer]
sgronblo has joined #ocaml
jao has quit [Ping timeout: 260 seconds]
ryanartecona has quit [Quit: ryanartecona]
mrvn has quit [Ping timeout: 268 seconds]
mrvn has joined #ocaml
kevinqiu has joined #ocaml
kevinqiu has quit [Ping timeout: 246 seconds]
enterprisey has joined #ocaml
MercurialAlchemi has joined #ocaml
maarhart has joined #ocaml
maarhart has quit [Client Quit]
vicfred has joined #ocaml
_whitelogger has joined #ocaml
manizzle has quit [Ping timeout: 255 seconds]
enterprisey has quit [Remote host closed the connection]
ryanartecona has joined #ocaml
ryanartecona has quit [Ping timeout: 240 seconds]
kevinqiu has joined #ocaml
alfredo has joined #ocaml
Simn has joined #ocaml
kevinqiu has quit [Ping timeout: 240 seconds]
manizzle has joined #ocaml
mrkgnao has quit [Ping timeout: 260 seconds]
sepp2k has joined #ocaml
agravier has quit [Quit: agravier]
ygrek_ has joined #ocaml
alfredo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfredo has joined #ocaml
foocraft has joined #ocaml
andreas_ has joined #ocaml
kevinqiu has joined #ocaml
kevinqiu has quit [Ping timeout: 258 seconds]
Aaylor has quit [Quit: WeeChat 1.0.1]
agravier has joined #ocaml
ryanartecona has joined #ocaml
frefity has joined #ocaml
ewanas has joined #ocaml
Aaylor has joined #ocaml
foocraft has quit [Ping timeout: 246 seconds]
ygrek_ has quit [Ping timeout: 240 seconds]
agravier has quit [Quit: agravier]
nullifidian has quit [Ping timeout: 268 seconds]
<kyod> I'm looking for a way (ppx extension ?) to turn a string containing a valid ocaml expression like {quote| let x = 42 in x + x |quote} into actual ocaml code
<kyod> Does that ring a bell to anybody ?
<companion_cube> no, and it doesn't sound easy
<kyod> it seems to be a fairly standard transformation that one would like to do with metaprogramming...
<kyod> well I can always just use sed before compiling... but it's not exactly integrated with the rest of the ocaml toolchain
zpe has joined #ocaml
<Armael> could you call the parser from a ppx...?
<Armael> it doesn't sound easy indeed
<kyod> Armael: Actually I was hoping that someone would have written wrappers to do that for me
<Armael> :)
<reynir> Is the string known at compile time?
<kyod> reynir: yes
<reynir> Why does it have to be a string?
kevinqiu has joined #ocaml
<kyod> because I'm generating an ocaml AST with some subfragment which are strings containing ocaml code and I don't know any better way to inject the string subfragment in the AST
<companion_cube> ffs, build systems
kevinqiu has quit [Ping timeout: 260 seconds]
argent_smith has joined #ocaml
AltGr has joined #ocaml
nicoo has quit [Ping timeout: 248 seconds]
nicoo has joined #ocaml
nullifidian has joined #ocaml
mfp__ has joined #ocaml
wagle has quit [Read error: Connection reset by peer]
wagle has joined #ocaml
sgronblo has quit [Read error: No route to host]
sgronblo has joined #ocaml
<def`> It is not too hard to behonest :P
sgronblo has quit [Ping timeout: 255 seconds]
freusque has quit [Quit: WeeChat 1.7.1]
freusque has joined #ocaml
<kyod> def`: any example ?
<Drup> kyod: Did you consider using metaocaml ?
kevinqiu has joined #ocaml
<def`> only support expressions and there is no "graceful degradation" when the content doesn't parse.
olibjerd has quit [Quit: olibjerd]
kakadu has joined #ocaml
<Drup> still wondering if I should use something like that for the mustache/tyxml thing :/
kevinqiu has quit [Ping timeout: 268 seconds]
<def`> What is the context exactly?
agravier has joined #ocaml
<kyod> def`: nice for ppx_parse ! I should have started by checking your projects
<Drup> def`: it's a side remark, the initial implementation is here: https://github.com/ocsigen/tyxml/pull/128
<Drup> kyod: you should really look at metaocaml if you are generating the AST dynamically
<kyod> well I'm generating ocaml code from another compiler
<Drup> you're generating an ocaml program that contains another ocaml program ? ^^'
<kyod> ...well It's much more tortured and hackish than that but yes
<Drup> go on :]
<kyod> The compiler is in ocaml and we want to extract to ocaml and dynlink some code at compile time while giving access to the internal ocaml representation of some terms...
olibjerd has joined #ocaml
<Drup> yeah, that's precisely the purpose of metaocaml
<kyod> Drup: Indeed but I don't have the same source language as metaocaml...
clog has quit [Ping timeout: 240 seconds]
<kyod> otherwise it is exactly an implementation of a quote/antiquote mechanism
<Drup> your compiler is written in OCaml and you generate an OCaml program. what the program is generated from doesn't matter
ryanartecona has quit [Ping timeout: 260 seconds]
jlouis has joined #ocaml
<kyod> Drup: That seems reasonable. Do you know if there is a way in metaocaml to turn a Parsetree.expression into a 'a code ? it seems that the underlying type of 'a code is the Parsetree.expression but I have trouble finding an entrypoint for generated ASTs
<Drup> there is one, but I don't remember where it is
agravier has quit [Quit: agravier]
<Drup> kyod: it's in Print_code
<kyod> Drup: thx !
<Drup> well, and Trx
<Drup> I would build ast using metaocaml's syntax, though, it's the same, except it'll already be typechecked
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
agravier has joined #ocaml
kevinqiu has joined #ocaml
zpe has quit [Ping timeout: 240 seconds]
olibjerd has quit [Quit: olibjerd]
FreeBirdLjj has joined #ocaml
kevinqiu has quit [Ping timeout: 268 seconds]
FreeBirdLjj has quit [Ping timeout: 260 seconds]
frefity has quit [Ping timeout: 240 seconds]
snowcrshd has joined #ocaml
zpe has joined #ocaml
silver has joined #ocaml
zpe has quit [Remote host closed the connection]
agravier has quit [Quit: agravier]
tormen has quit [Remote host closed the connection]
tormen has joined #ocaml
_andre has joined #ocaml
tormen has quit [Client Quit]
tormen has joined #ocaml
tormen has quit [Quit: Lost terminal]
tormen has joined #ocaml
kevinqiu has joined #ocaml
samrat has quit [Ping timeout: 268 seconds]
kevinqiu has quit [Ping timeout: 260 seconds]
vicfred has quit [Quit: Leaving]
tormen has quit [Quit: Lost terminal]
rdutra has joined #ocaml
tormen has joined #ocaml
clog has joined #ocaml
spew has joined #ocaml
ryanartecona has joined #ocaml
mrkgnao has joined #ocaml
spew has quit [Quit: foobar]
ryanartecona has quit [Ping timeout: 276 seconds]
jbrown has joined #ocaml
zpe has joined #ocaml
sgronblo has joined #ocaml
kevinqiu has joined #ocaml
tormen has quit [Quit: Lost terminal]
tormen has joined #ocaml
snowcrshd has quit [Remote host closed the connection]
frefity has joined #ocaml
mengu has joined #ocaml
freusque has quit [Ping timeout: 240 seconds]
freusque has joined #ocaml
agravier has joined #ocaml
tormen has quit [Quit: Lost terminal]
tormen has joined #ocaml
eagleflo_ is now known as eagleflo
zpe_ has joined #ocaml
tormen has quit [Quit: Lost terminal]
zpe has quit [Ping timeout: 240 seconds]
tormen has joined #ocaml
kevinqiu has left #ocaml ["ERC (IRC client for Emacs 24.5.1)"]
shinnya has joined #ocaml
kevinqiu has joined #ocaml
tane has joined #ocaml
jlam has joined #ocaml
ewanas has quit [Quit: Leaving]
snowcrshd has joined #ocaml
jlam__ has joined #ocaml
agravier has quit [Quit: agravier]
sh0t has joined #ocaml
jlam__ has quit [Read error: Connection reset by peer]
jlam__ has joined #ocaml
jlam__ has quit [Read error: Connection reset by peer]
jlam has quit [Ping timeout: 255 seconds]
jlam__ has joined #ocaml
tormen has quit [Quit: Lost terminal]
snowcrshd has quit [Ping timeout: 255 seconds]
tormen has joined #ocaml
tormen has quit [Quit: Lost terminal]
tormen has joined #ocaml
jlam has joined #ocaml
fredcy has quit [Quit: ZNC - http://znc.in]
jlam__ has quit [Ping timeout: 255 seconds]
fredcy has joined #ocaml
jao has joined #ocaml
snowcrshd has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 268 seconds]
tormen has quit [Quit: Lost terminal]
tormen has joined #ocaml
tormen has quit [Quit: Lost terminal]
ryanartecona has joined #ocaml
tormen has joined #ocaml
zpe_ has quit [Remote host closed the connection]
zpe has joined #ocaml
ziyourenxiang has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
zpe has quit [Ping timeout: 260 seconds]
mengu has quit [Remote host closed the connection]
ryanartecona has joined #ocaml
sh0t has quit [Ping timeout: 255 seconds]
zpe has joined #ocaml
samrat has joined #ocaml
MercurialAlchemi has joined #ocaml
nightblues has joined #ocaml
FreeBirdLjj has joined #ocaml
snowcrshd has quit [Remote host closed the connection]
copy_ has joined #ocaml
enterprisey has joined #ocaml
samrat has quit [Ping timeout: 258 seconds]
tg has quit [Excess Flood]
agravier has joined #ocaml
KeyJoo has joined #ocaml
tg has joined #ocaml
agravier has quit [Quit: agravier]
KeyJoo has quit [Ping timeout: 260 seconds]
agravier has joined #ocaml
agravier has quit [Client Quit]
agravier has joined #ocaml
agravier has quit [Client Quit]
zpe has quit [Remote host closed the connection]
samrat has joined #ocaml
zpe has joined #ocaml
agravier has joined #ocaml
agravier has quit [Client Quit]
zpe has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
agravier has joined #ocaml
zpe has quit [Remote host closed the connection]
agravier has quit [Client Quit]
yomimono has joined #ocaml
agravier has joined #ocaml
agravier has quit [Client Quit]
KeyJoo has joined #ocaml
TheLemonMan has joined #ocaml
AltGr has left #ocaml [#ocaml]
sgronblo has quit [Read error: Connection reset by peer]
AlexRussia has quit [Ping timeout: 276 seconds]
barcabuona has quit [Ping timeout: 255 seconds]
ryanartecona has quit [Quit: ryanartecona]
barcabuona has joined #ocaml
alfredo has quit [Quit: Textual IRC Client: www.textualapp.com]
AlexRussia has joined #ocaml
Anarchos has joined #ocaml
snowcrshd has joined #ocaml
ryanartecona has joined #ocaml
sepp2k has quit [Ping timeout: 260 seconds]
tormen has left #ocaml [#ocaml]
freusque has quit [Quit: WeeChat 1.7.1]
yegods has joined #ocaml
agravier has joined #ocaml
agravier has quit [Client Quit]
agravier has joined #ocaml
agravier has quit [Client Quit]
agravier has joined #ocaml
agravier has quit [Client Quit]
agravier has joined #ocaml
agravier has quit [Client Quit]
average has quit [Quit: leaving]
ygrek_ has joined #ocaml
gameredan has quit [Ping timeout: 240 seconds]
tane has quit [Quit: Leaving]
kakadu has quit [Quit: Konversation terminated!]
rk[ghost] has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ocaml
raphaelss has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 255 seconds]
tane has joined #ocaml
enterprisey has quit [Ping timeout: 260 seconds]
mrkgnao has quit [Ping timeout: 260 seconds]
jnavila has joined #ocaml
raphaelss has joined #ocaml
enterprisey has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
shinnya has joined #ocaml
jlam__ has joined #ocaml
jlam has quit [Ping timeout: 246 seconds]
jnavila has quit [Remote host closed the connection]
frefity_ has joined #ocaml
frefity has quit [Ping timeout: 255 seconds]
<reynir> Huh, I didn't know you could write #require "foo,bar,baz";; to load all three
kakadu has joined #ocaml
kakadu has quit [Remote host closed the connection]
enterprisey has quit [Ping timeout: 246 seconds]
_andre has quit [Quit: leaving]
kakadu has joined #ocaml
<companion_cube> oh!
<companion_cube> I didn't know either
<Armael> me neither :d
kakadu_ has joined #ocaml
kakadu has quit [Read error: Connection reset by peer]
MercurialAlchemi has quit [Ping timeout: 258 seconds]
<reynir> I noticed it in .ocamlmerlin in x509 :)
<reynir> err, .ocamlinit
AlexRussia has quit [Quit: WeeChat 1.8]
gameredan has quit [Quit: leaving]
yegods has quit [Remote host closed the connection]
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
kakadu_ has quit []
kakadu has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
yomimono has quit [Quit: Ex-Chat]
mengu has joined #ocaml
pierpa has joined #ocaml
zv_ is now known as zv
Merv_ has quit [Remote host closed the connection]
Merv_ has joined #ocaml
pierpa has quit [Ping timeout: 260 seconds]
ryanartecona has quit [Quit: ryanartecona]
rdutra has quit [Quit: Leaving.]
tane has quit [Quit: Leaving]
yegods has joined #ocaml
Simn has quit [Quit: Leaving]
jlam has joined #ocaml
jlam__ has quit [Ping timeout: 246 seconds]
snowcrshd has quit [Remote host closed the connection]
maarhart has joined #ocaml
maarhart has quit [Client Quit]
maarhart has joined #ocaml
AlexRussia has joined #ocaml
kevinqiu has quit [Ping timeout: 240 seconds]
maarhart has quit [Remote host closed the connection]
samrat has quit [Ping timeout: 255 seconds]
argent_smith has quit [Quit: Leaving.]
andreas_ has quit [Quit: Connection closed for inactivity]
sgronblo has joined #ocaml
snowcrshd has joined #ocaml
snowcrshd has quit [Ping timeout: 268 seconds]
yegods has quit [Remote host closed the connection]
ryankarason has joined #ocaml
yegods has joined #ocaml
ryankarason is now known as rk[ghost]
KeyJoo has quit [Ping timeout: 260 seconds]
kakadu has quit [Remote host closed the connection]
sgronblo has quit [Read error: Connection reset by peer]
huza has joined #ocaml
snowcrshd has joined #ocaml
spion_ has quit [Ping timeout: 255 seconds]
frefity_ has quit [Ping timeout: 255 seconds]
octachron has quit [Ping timeout: 255 seconds]
snowcrshd has quit [Ping timeout: 240 seconds]
dinosaure has quit [Ping timeout: 255 seconds]
spion has joined #ocaml
frefity_ has joined #ocaml
octachron has joined #ocaml
snowcrshd has joined #ocaml
rdutra has joined #ocaml
sgronblo has joined #ocaml