Emmanuel` has quit [Quit: Konversation terminated!]
dsheets has joined #ocaml
toomuchtvrotsurb has quit [Remote host closed the connection]
dsheets has quit [Ping timeout: 250 seconds]
theblatte has quit [Ping timeout: 250 seconds]
teiresias has joined #ocaml
cat5e is now known as cat5hanger
cat5hanger is now known as cat5e
walter|r has quit [Remote host closed the connection]
malc_ has quit [Quit: ERC (IRC client for Emacs 25.0.50.2)]
orbifx2 has joined #ocaml
orbifx has quit [Read error: Connection reset by peer]
orbifx has joined #ocaml
orbifx2 has quit [Ping timeout: 246 seconds]
theblatte has joined #ocaml
nopf has quit [Ping timeout: 252 seconds]
nopf has joined #ocaml
toomuchtvrotsurb has joined #ocaml
toomuchtvrotsurb has quit [Remote host closed the connection]
hcarty has joined #ocaml
tennix has joined #ocaml
kakadu has quit [Remote host closed the connection]
<tobiasBora>
Hello,
hcarty has quit [Ping timeout: 276 seconds]
<tobiasBora>
Is it possible to use ppx to derive an object instead of a classical typle/list/... ?
jeffmo has quit [Quit: jeffmo]
dsheets has joined #ocaml
average has joined #ocaml
average has left #ocaml [#ocaml]
dsheets has quit [Ping timeout: 265 seconds]
jimt has quit [Ping timeout: 246 seconds]
darkf has joined #ocaml
rgrinberg has quit [Quit: WeeChat 1.5]
rgrinberg has joined #ocaml
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
walter|r has joined #ocaml
Emmanuel` has joined #ocaml
scarygelatin has quit [Quit: Leaving]
Emmanuel` has quit [Client Quit]
toomuchtvrotsurb has joined #ocaml
sh0t has quit [Ping timeout: 276 seconds]
walter|r has quit [Remote host closed the connection]
Emmanuel` has joined #ocaml
FreeBirdLjj has joined #ocaml
tennix has quit [Ping timeout: 246 seconds]
pyon is now known as pyon-binatorial
djellemah_ has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Read error: Connection reset by peer]
FreeBirdLjj has joined #ocaml
malina has joined #ocaml
<struk|desk>
tobiasBora: pretty sure the answer is yes
<struk|desk>
tobiasBora: the ppx change was pervasive, in that it tags some extraa meta data everywhere in the ast
<struk|desk>
although I think the object ast api is entirely different module...so they would have had to edit both of them in the ocaml core
Emmanuel` has quit [Quit: Konversation terminated!]
hcarty has joined #ocaml
hcarty has quit [Ping timeout: 240 seconds]
dsheets has joined #ocaml
dsheets has quit [Ping timeout: 276 seconds]
tennix has joined #ocaml
<struk|desk>
if I make a shell script with utop as the target, does that mean all the ocaml code is running non native? Or just whatever is actually compiled from utop?
sh0t has joined #ocaml
dsheets has joined #ocaml
rgrinberg has quit [Ping timeout: 260 seconds]
dsheets has quit [Ping timeout: 246 seconds]
sh0t has quit [Ping timeout: 276 seconds]
johnelse has quit [Ping timeout: 244 seconds]
Sorella has joined #ocaml
<Algebr>
what does that even mean
johnelse has joined #ocaml
dsheets has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
tmtwd has joined #ocaml
dsheets has quit [Ping timeout: 260 seconds]
toomuchtvrotsurb has quit [Remote host closed the connection]
Bahman has joined #ocaml
MercurialAlchemi has joined #ocaml
g4143 has joined #ocaml
<struk|desk>
Algebr: if I do "#!/usr/bin/env utop\n #require "foobar";; let f(x) = x_1 ; let () = Foobar.go ()" , what is native opposed to byte code, when executed from command line "chmod +x ocaml_file.ml; ./ocaml_file.ml"
<struk|desk>
sorry f x = x + 1;; (eg. some arbitrary code in the script)
hcarty has joined #ocaml
struktured has joined #ocaml
hcarty has quit [Ping timeout: 265 seconds]
g4143 has quit [Quit: Ex-Chat]
dsheets has joined #ocaml
mistermetaphor has joined #ocaml
<Algebr>
I still don't get it, what does native mean in this context? its being executed on the fly by utop
MercurialAlchemi has quit [Ping timeout: 240 seconds]
dsheets has quit [Ping timeout: 265 seconds]
FreeBirdLjj has joined #ocaml
struktured has quit [Ping timeout: 246 seconds]
FreeBirdLjj has quit [Ping timeout: 250 seconds]
<Algebr>
are you asking when doing #require "foo" if its native code or byte code that's loaded?
<Algebr>
Pretty sure that #require loads the byte code version?
manizzle has joined #ocaml
djellemah has joined #ocaml
copy` has quit [Quit: Connection closed for inactivity]
tmtwd has quit [Ping timeout: 260 seconds]
dsheets has joined #ocaml
MercurialAlchemi has joined #ocaml
jimt has joined #ocaml
dsheets has quit [Ping timeout: 276 seconds]
<maker>
gulp, I think I screwed up with opam
<maker>
what does ocamlfind: Package `pkg_cohttp' not found"
<maker>
mean?
<maker>
cohttp is installed, and I wonder what's that `pkg_ prefix
<Algebr>
this is most likely coming from ocamlbuild
<maker>
it's ocamlfind
<maker>
(ocamlfind runs ocamlbuild, I guess?)
<Algebr>
maybe double check that ocamlfind knows about cohttp? eval `opam config env`; ocamlfind list | grep cohttp
A1977494 has joined #ocaml
<maker>
Algebr: returns positive
<maker>
cohttp (version: 0.20.2)
<maker>
cohttp.lwt (version: 0.20.2)
<maker>
cohttp.lwt-core (version: 0.20.2)
<maker>
cohttp.top (version: 0.20.2)
<maker>
mm
<maker>
fwiw make clean && make don't change the result
<Algebr>
is this a public repo?
<Algebr>
assuming oasis created the makefile, could try make distclean
<maker>
Algebr: yes, it is. github.com/mmaker/ocaml-acme/
<chelfi>
is there any way to define custom numeric literals ? so that for example in the scope of a module an int literal is interpreted as a big_int value ?
manizzle has quit [Quit: Leaving]
manizzle has joined #ocaml
Denommus has quit [Remote host closed the connection]
tane has joined #ocaml
bba has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zozozo has quit [Quit: WeeChat 1.4]
kushal has joined #ocaml
<ggole__>
No. I think the closest you can get is something like M.(of_int 5)
ggole__ is now known as ggole
<Drup>
chelfi: with ppx and ocaml >= 4.03, yes
<Drup>
chelfi: I was planning to make a ppx for zarith, so that you can write 4z and it would be a zarith integer
zozozo has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 244 seconds]
<chelfi>
nice, that is exactly what I am looking for
<Drup>
I'm not sure I'm going to work on it in the short term, so if you are motivated, go for it
<chelfi>
(well, not *exactly*, as optionnally getting rid of the z suffix would be nice, but close enough)
theblatte has quit [Ping timeout: 260 seconds]
theblatte has joined #ocaml
<Drup>
handling integers should be very easy, handling Q.t would be a bit more work, but I don't think it will be much
<mrvn>
with implicits you could convert as needed.
<mrvn>
Drup: wasn't there a recent change in the tokenizer/parser for "4z"?
darkf has quit [Remote host closed the connection]
darkf has joined #ocaml
tennix has joined #ocaml
ygrek_ has quit [Ping timeout: 240 seconds]
slash^ has joined #ocaml
bba has joined #ocaml
MercurialAlchemi has joined #ocaml
<edwin>
a gentoo user that doesn't want either emacs or vim, thats an unusual situation. can't blame him for wanting an easy to install IDE though
Reshi has quit [Quit: WeeChat 1.4]
scarygelatin has joined #ocaml
mistermetaphor has joined #ocaml
Algebr has quit [Remote host closed the connection]
Algebr has joined #ocaml
sh0t has joined #ocaml
A19774941 has joined #ocaml
A1977494 has quit [Ping timeout: 265 seconds]
kolko has joined #ocaml
Algebr has quit [Ping timeout: 276 seconds]
amnn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sh0t has quit [Ping timeout: 276 seconds]
<hcarty>
I've been wanting to get time to try the suggested atom setup to know if it's worth suggesting to others
<hcarty>
I'm happy with vim + merlin + ocp-indent + lots of plugins... and can completely understand why someone wouldn't want to have to deal with all of that
tane has quit [Ping timeout: 240 seconds]
amnn has joined #ocaml
amnn has quit [Read error: Connection reset by peer]
amnn has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
tane has joined #ocaml
dsheets has quit [Remote host closed the connection]
<hcarty>
mfp: Are you still planning to push a hanful of packages out to opam-cross-windows?
<hcarty>
mfp: I have a few and don't want to duplicate too much of your work if you already have a suite of packages ready to go
<hcarty>
mfp: Right now I have result, rresult, astring, cmdliner, uint and zmq
<hcarty>
*handful
orbifx2 has quit [Quit: AtomicIRC: The nuclear option.]
dsheets has joined #ocaml
tane has quit [Ping timeout: 260 seconds]
<rgrinberg>
hcarty: there's an atom setup? I wasn't aware there's a merlin atom plugin?
<hcarty>
I haven't used atom before but some of the people I work with do and really like it
<rgrinberg>
hcarty: that's awesome, thanks. I have a co-worker that also uses atom. He might be happy that he can use merlin now.
<hcarty>
rgrinberg: Please let me know how it goes
<rgrinberg>
Personally i'm not even tempted by atom. New hardware keeps improving battery life, i'm not going back in time on that just for a text editor
<def`>
yeah, I don't have a good impression of atom, but I'm glad there is a plugi
<companion_cube>
yet another triumph of merlin's design
amnn has quit [Read error: Connection reset by peer]
amnn has joined #ocaml
amnn_ has joined #ocaml
amnn_ has quit [Read error: Connection reset by peer]
amnn has quit [Ping timeout: 260 seconds]
amnn_ has joined #ocaml
toolslive has quit [Remote host closed the connection]
leyyin has joined #ocaml
tennix has quit [Ping timeout: 276 seconds]
bba has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kakadu has quit [Quit: Page closed]
srcerer has joined #ocaml
octachron has quit [Ping timeout: 252 seconds]
<reynir>
+1
scarygelatin has quit [Quit: Leaving]
ggole has quit []
scarygelatin has joined #ocaml
octachron has joined #ocaml
bba has joined #ocaml
_berke_ has quit [Ping timeout: 244 seconds]
shinnya has joined #ocaml
darkf has quit [Quit: Leaving]
copy` has quit [Quit: Connection closed for inactivity]
<Anarchos>
i want to include a dypgen parser into a functor. Anybody already did it ?
<octachron>
hannes, the best option might be to open a mantis PR for missing @@since flags
wiredsister has joined #ocaml
copy` has joined #ocaml
dsheets has quit [Remote host closed the connection]
dkg has joined #ocaml
<hcarty>
hannes: A PR would likely be well-received too
<dkg>
i'm trying to write code that is warning-free in both ocaml 4.02 and before -- i'd like to do this across the String-to-Bytes conversion (see https://ocaml.org/releases/4.02.html for notes)
<dkg>
is there a standard way to do this? i think i'd like to make all the code that should use Bytes use Bytes explicitly
<dkg>
but at the top, check whether Bytes exists, and if it doesn't, then alias it to String
<dkg>
does that make sense?
<dkg>
is there a common idiom for doing that?
<dkg>
[ this seems similar to python's "from __future__" -- i hope it's not heresy to mention another language in this channel ;) ]
Algebr has joined #ocaml
gasche has joined #ocaml
<gasche>
hi
<gasche>
dkg: Bytes is available as an ocamlfind compatibility module
<gasche>
so just use "-package bytes" in your build toolchain and pre-4.02 code can use Bytes
<gasche>
(the supported interface is: exactly what was available at the time of the 4.02 release)
<dkg>
i see, thanks
<gasche>
you need ocamlfind 1.5.0 or more recent, though
<gasche>
(so if you distribute your software, do add this version bound on the ocamlfind dependency)
<dkg>
hm, the version of ocamlopt 4.01.0 that i'm using doesn't support the -package option
<gasche>
ocamlfind ocamlopt -package ...
<gasche>
or, if you're using a build system, the relevant option (in ocamlbuild it's package(bytes))
<dkg>
urgh, i'm dealing with some constraints that make this tricky; i'm trying to make an ocaml package backportable to debian stable
<dkg>
the build process on debian stable needs to use the system package manager, not the library-specific package manager
<gasche>
neither ocamlfind nor ocamlbuild are package managers
<gasche>
ocamlfind is like pkg-config, ocamlbuild is like make
<dkg>
ocamlfind - [Command-line interface of the Package manager]
<dkg>
(from ocamlfind(1)
<gasche>
well
<gasche>
let's imagine you are reading "Return metainformation about installed libraries
<gasche>
" (taken from man pkg-config)
<dkg>
i see
<gasche>
do not hesitate to ask the Debian OCaml packaging team if you need some advice on debian-specific things, they know their stuff
<dkg>
cool, thanks
<gasche>
(the only problem being that they tend to become Debian Project Leaders and thus have less time to work on the OCaml packages)
dsheets has joined #ocaml
<octachron>
gasche, did you already have Unix.sleepf in your list of missing "@@since" flags?
Anarchos has quit [Quit: Page closed]
dsheets has quit [Ping timeout: 250 seconds]
<gasche>
octachron: yes
<dkg>
ha ha
<gasche>
I think my list is rather complete, coming from my Batteries-4.03 update work
<gasche>
but I probably won't commit it during this workday, or at least not before I get some actual work done
<dkg>
hm, ocamlfind is 1.4.1 on debian stable :/
dsheets has joined #ocaml
dsheets has quit [Ping timeout: 276 seconds]
<edwin>
would it be possible to backport it a newer version? I don't think ocamlfind introduced any breaking changes between versions
<gasche>
it's a simple and rather short module, if including it directly in your application makes your life easier, and if you are using a free software or open-source license, then please go for it
kolko has quit [Ping timeout: 265 seconds]
<gasche>
(note: Batteries also backports stdlib functions to older OCaml versions, so batteries users have this kind of things for free)
amnn_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]