adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.02.2 announced http://ocaml.org/releases/4.02.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
mea-culpa has quit [Remote host closed the connection]
obadz has joined #ocaml
shinnya has joined #ocaml
cdidd has joined #ocaml
cdidd_ has quit [Ping timeout: 244 seconds]
AltGr has joined #ocaml
xaimus has quit [Quit: leaving]
empyrean has quit [Quit: Leaving]
empyreanx has joined #ocaml
empyreanx has quit [Remote host closed the connection]
xaimus has joined #ocaml
empyreanx has joined #ocaml
empyreanx has quit [Quit: Leaving]
empyreanx has joined #ocaml
empyreanx is now known as empyreanx_
jwatzman|work has quit [Quit: jwatzman|work]
empyreanx_ has quit [Quit: Leaving]
empyreanx has joined #ocaml
empyreanx has quit [Remote host closed the connection]
empyreanx has joined #ocaml
empyreanx has quit [Client Quit]
empyreanx has joined #ocaml
empyreanx has left #ocaml [#ocaml]
ril has joined #ocaml
tennix has joined #ocaml
echo-area has joined #ocaml
pyon is now known as nyon
swgillespie has joined #ocaml
toomuchtvrotsurb has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 252 seconds]
tmtwd has joined #ocaml
<Algebr> Is multi-core coming this end of year still?
nullcatxxx_ has joined #ocaml
__uu__ has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ocaml
__uu___ has joined #ocaml
Bluddy has quit [Quit: Connection closed for inactivity]
__uu__ has quit [Ping timeout: 264 seconds]
nyon is now known as sheaf-pyon
Algebr has quit [Remote host closed the connection]
Bluddy has joined #ocaml
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
f[x] has quit [Ping timeout: 256 seconds]
nullcatxxx_ has joined #ocaml
pilne has quit [Quit: ChatZilla 0.9.92 [SeaMonkey 2.38/20150923193515]]
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pilne has joined #ocaml
darkf has joined #ocaml
jeffmo has quit [Quit: jeffmo]
ril is now known as ril[away]
psy_ has quit [Ping timeout: 246 seconds]
mac10688 has quit [Ping timeout: 240 seconds]
damason has quit [Remote host closed the connection]
yac has quit [Ping timeout: 246 seconds]
damason has joined #ocaml
pilne has quit [Quit: I hit quit!]
pilne has joined #ocaml
__uu___ has quit [Remote host closed the connection]
__uu__ has joined #ocaml
MercurialAlchemi has joined #ocaml
ril[away] is now known as ril
kushal has joined #ocaml
yac has joined #ocaml
keen___________7 has quit [Read error: Connection reset by peer]
keen___________7 has joined #ocaml
pilne has quit [Remote host closed the connection]
pilne has joined #ocaml
pilne has quit [Client Quit]
tmtwd has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 246 seconds]
MercurialAlchemi has quit [Ping timeout: 246 seconds]
contempt has quit [Disconnected by services]
contempt has joined #ocaml
ril is now known as ril[away]
ril[away] is now known as ril
tibor_ has joined #ocaml
contempt has quit [Remote host closed the connection]
contempt has joined #ocaml
ril is now known as ril[away]
ril[away] is now known as ril
contempt has quit [Disconnected by services]
ril is now known as ril[away]
ril[away] is now known as ril
contempt has joined #ocaml
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
larhat1 has quit [Quit: Leaving.]
swgillespie has joined #ocaml
nullcatxxx_ has joined #ocaml
ggole has joined #ocaml
xificurC has quit [Read error: Connection reset by peer]
xificurC has joined #ocaml
tane has joined #ocaml
obadz has quit [Ping timeout: 265 seconds]
obadz has joined #ocaml
antkong has quit [Quit: antkong]
MercurialAlchemi has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ollehar has joined #ocaml
oscar_toro has joined #ocaml
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MercurialAlchemi has quit [Read error: Connection reset by peer]
es has joined #ocaml
Kakadu has joined #ocaml
ollehar has quit [Ping timeout: 256 seconds]
Kakadu has quit [Remote host closed the connection]
ely-se has joined #ocaml
sivoais has quit [Ping timeout: 272 seconds]
freehck has joined #ocaml
sivoais has joined #ocaml
Haudegen has quit [Ping timeout: 272 seconds]
sivoais has quit [Ping timeout: 240 seconds]
sivoais has joined #ocaml
Haudegen has joined #ocaml
sivoais has quit [Ping timeout: 265 seconds]
sivoais has joined #ocaml
kushal has quit [Ping timeout: 250 seconds]
sivoais has quit [Ping timeout: 256 seconds]
sivoais has joined #ocaml
rand__ has joined #ocaml
sivoais has quit [Ping timeout: 268 seconds]
sivoais has joined #ocaml
orbifx has joined #ocaml
sh0t has joined #ocaml
sivoais has quit [Ping timeout: 240 seconds]
zpe has joined #ocaml
jonludlam has joined #ocaml
sivoais has joined #ocaml
octachron has joined #ocaml
zpe has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 255 seconds]
sivoais has joined #ocaml
mort___ has joined #ocaml
sh0t has quit [Ping timeout: 256 seconds]
sivoais has quit [Ping timeout: 252 seconds]
srcerer has quit [Ping timeout: 272 seconds]
sivoais has joined #ocaml
yomimono has joined #ocaml
mort___ has left #ocaml [#ocaml]
sivoais has quit [Ping timeout: 264 seconds]
sivoais has joined #ocaml
sivoais has quit [Ping timeout: 256 seconds]
es has quit [Quit: leaving]
MercurialAlchemi has joined #ocaml
Kakadu has joined #ocaml
sivoais has joined #ocaml
ely-se has quit [Quit: leaving]
ely-se has joined #ocaml
sivoais has quit [Ping timeout: 244 seconds]
zpe has joined #ocaml
MercurialAlchemi has quit [Read error: Connection reset by peer]
sivoais has joined #ocaml
MercurialAlchemi has joined #ocaml
keleshev has joined #ocaml
rfv has quit [Ping timeout: 256 seconds]
oldmanistan_ has quit [Read error: Connection reset by peer]
NhanH has quit [Ping timeout: 264 seconds]
lambdahands has quit [Ping timeout: 264 seconds]
n1ftyn8_ has quit [Read error: Connection reset by peer]
Bluddy has quit [Ping timeout: 240 seconds]
sivoais has quit [Ping timeout: 240 seconds]
msch has quit [Ping timeout: 268 seconds]
cojy has quit [Ping timeout: 264 seconds]
sivoais has joined #ocaml
antkong has joined #ocaml
AltGr has left #ocaml [#ocaml]
k1000_ has joined #ocaml
sivoais has quit [Ping timeout: 244 seconds]
kushal has joined #ocaml
sivoais has joined #ocaml
kdas_ has joined #ocaml
kushal has quit [Ping timeout: 260 seconds]
sivoais has quit [Ping timeout: 256 seconds]
lambdahands has joined #ocaml
n1ftyn8_ has joined #ocaml
lambdahands has quit [Remote host closed the connection]
n1ftyn8_ has quit [Remote host closed the connection]
sivoais has joined #ocaml
zpe has quit [Remote host closed the connection]
NhanH has joined #ocaml
kdas_ has quit [Quit: Leaving]
kushal has joined #ocaml
oldmanistan_ has joined #ocaml
cojy has joined #ocaml
sivoais has quit [Ping timeout: 240 seconds]
n1ftyn8_ has joined #ocaml
sivoais has joined #ocaml
msch has joined #ocaml
rfv has joined #ocaml
keleshev has quit [Ping timeout: 250 seconds]
sivoais has quit [Ping timeout: 265 seconds]
MercurialAlchemi has quit [Read error: Connection reset by peer]
sivoais has joined #ocaml
MercurialAlchemi has joined #ocaml
yomimono has quit [Ping timeout: 244 seconds]
aubergines has joined #ocaml
Bluddy has joined #ocaml
sivoais has quit [Ping timeout: 250 seconds]
sivoais has joined #ocaml
rgrinberg1 has quit [Ping timeout: 260 seconds]
yomimono has joined #ocaml
lambdahands has joined #ocaml
__uu___ has joined #ocaml
thomasga has joined #ocaml
__uu__ has quit [Ping timeout: 240 seconds]
sivoais has quit [Ping timeout: 240 seconds]
jonludlam has quit [Ping timeout: 264 seconds]
sivoais has joined #ocaml
oscar_toro has quit [Ping timeout: 272 seconds]
keleshev has joined #ocaml
<keleshev> I've just upgraded from 4.01.0 to 4.02.3 and I have this minor annoyance:
ely-se has quit [Quit: leaving]
<keleshev> In repl I'm used to aliasing a module just to see module's contents, like: module M = Core.Std.List (* This used to print the whole signature *)
<keleshev> But in 4.02.3 this prints back just the `module M = Core.Std.List`.
sivoais has quit [Ping timeout: 240 seconds]
jeffmo has joined #ocaml
<keleshev> `#show_module Core.Std.List;;` is not much better either, it prints `module List = Core_kernel.Std_kernel.List`
larhat1 has joined #ocaml
sheaf-pyon is now known as elementary-pyon
tennix has quit [Ping timeout: 240 seconds]
<keleshev> So is there a quick way to print module's signature in repl for 4.02.3?
larhat1 has quit [Client Quit]
sivoais has joined #ocaml
ely-se has joined #ocaml
jonludlam has joined #ocaml
<rks`> keleshev: I don't think so
<keleshev> rks`: ah, ok then, not a big deal.
<MercurialAlchemi> keleshev: I think you should be able to see the whole signature in merlin
sivoais has quit [Ping timeout: 240 seconds]
sivoais has joined #ocaml
<keleshev> MercurialAlchemi: just checked an in merlin <Leader-t> on something like `Lexing.from_string` (cursor on L) gives me `from_string` signature, not module's signature.
<keleshev> MercurialAlchemi: when I point cursor at some module alias, it gives me "No type annotation found for the given text".
<keleshev> MercurialAlchemi: it used to print module's signature, I remember.
<ggole> #show is the way to do that, I guess you have to dereference manually :/
oscar_toro has joined #ocaml
jonludlam has quit [Ping timeout: 264 seconds]
<rks`> keleshev: "No type annotation found for the given text" means that's not actually merlin
<rks`> do you have ocamlspot or something else installed?
<ggole> Or you could use a different hack, maybe module type L = module type of List
<keleshev> rks`: no ocamlspot. Otherwise merlin seems to work.
<rks`> try calling :MerlinTypeOf manually
<keleshev> ggole: thanks, that totally works!
<rks`> (also, I think it is bound to localleader-t, not leader-t)
sivoais has quit [Ping timeout: 255 seconds]
MercurialAlchemi has quit [Read error: Connection reset by peer]
MercurialAlchemi has joined #ocaml
<keleshev> rks`: oops, "Not an editor command: MerlinTypeOf". Then I don't even know what is showing me those type signatures on leader-t...
sivoais has joined #ocaml
<def`> Do you even have completion :D?
<keleshev> def`: nope, just checked. Could be that my upgread to 4.02.3 broke Merlin...
_andre has joined #ocaml
<haesbaert> keleshev: I think most of us use merlin with 4.02.3
<keleshev> haesbaert: sorry, by "merlin" I meant "my setup of merlin"
<bernardofpc> keleshev: #typeof "Core.Std.List" ;; should work
<bernardofpc> (on toplevel)
<keleshev> Of course, I didn't install merlin on the new switch!
<keleshev> Wow, merlin got colors.
<ggole> bernardofpc: there's no such directive, is that a utop thing?
<bernardofpc> oh, maybe it's a utop thing
<keleshev> bernardofpc: it gives me same: module Core.Std.List = Core_kernel.Std_kernel.List
<keleshev> ggole's "module type L = module type of
jonludlam has joined #ocaml
<bernardofpc> I have no Core here, so with plain Pervasives.List it worked
<keleshev> List" is the most convenient thing so far.
sivoais has quit [Ping timeout: 244 seconds]
<bernardofpc> maybe you have to walk the indirection list all the way down ?
ousado has quit [Quit: --]
<keleshev> bernardofpc: yes, if you "dereference" it enough times #show and #typeof show the module signature. But that's not practical with something like Core.
echo-area has quit [Remote host closed the connection]
sivoais has joined #ocaml
<keleshev> MercurialAlchemi: in merlin, it shows full signatures on "normal" modules, and just a path for aliased modules. But that's fine, I guess.
<keleshev> MercurialAlchemi: consistent with top-level behavior.
<def`> keleshev: just do twice
<keleshev> def`: oh, my, didn't know about this trick, thanks!
rgrinberg1 has joined #ocaml
<def`> keleshev: useful in other situations, you might enjoy :MerlinGrow/ShrinkEnclosing (localleader-n and -p)
sivoais has quit [Ping timeout: 260 seconds]
<companion_cube> def`: do you know if rules in Menhir parsers can be parametrized by values? e.g. to carry a contex
<companion_cube> t
rgrinberg1 has quit [Ping timeout: 272 seconds]
<def`> companion_cube: lift in monad
sivoais has joined #ocaml
<companion_cube> ok
thomasga has quit [Read error: Connection reset by peer]
thomasga has joined #ocaml
sepp2k has joined #ocaml
RichN has quit [Ping timeout: 272 seconds]
sivoais has quit [Ping timeout: 255 seconds]
sivoais has joined #ocaml
MercurialAlchemi has quit [Read error: Connection reset by peer]
RichN has joined #ocaml
MercurialAlchemi has joined #ocaml
ely-se has quit [Quit: leaving]
sivoais has quit [Ping timeout: 250 seconds]
ely-se has joined #ocaml
sivoais has joined #ocaml
keleshev has quit [Quit: [BX] *PHEAR MY BITCHX-NESS!* BOW TO ME!]
elementary-pyon is now known as sheaf
zpe has joined #ocaml
tane has quit [Quit: Verlassend]
sivoais has quit [Ping timeout: 256 seconds]
antkong has quit [Quit: antkong]
sivoais has joined #ocaml
Haudegen has quit [Ping timeout: 252 seconds]
tennix has joined #ocaml
sivoais has quit [Ping timeout: 250 seconds]
sivoais has joined #ocaml
tennix has quit [Ping timeout: 256 seconds]
zpe has quit [Remote host closed the connection]
MercurialAlchemi has quit [Read error: Connection reset by peer]
MercurialAlchemi has joined #ocaml
Haudegen has joined #ocaml
tennix has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 252 seconds]
sivoais has quit [Ping timeout: 265 seconds]
sivoais has joined #ocaml
tennix has quit [Ping timeout: 240 seconds]
rgrinberg1 has joined #ocaml
Bluddy has quit [Quit: Connection closed for inactivity]
tennix has joined #ocaml
oscar_toro has quit [Ping timeout: 264 seconds]
rgrinberg1 has quit [Ping timeout: 265 seconds]
sivoais has quit [Ping timeout: 264 seconds]
tennix has quit [Ping timeout: 260 seconds]
sivoais has joined #ocaml
tennix has joined #ocaml
echo-area has joined #ocaml
tennix has quit [Ping timeout: 255 seconds]
sivoais has quit [Ping timeout: 272 seconds]
sivoais has joined #ocaml
luzie has quit [Quit: WeeChat 1.4-dev]
luzie has joined #ocaml
tennix has joined #ocaml
thomasga has quit [Quit: Leaving.]
sivoais has quit [Ping timeout: 256 seconds]
sivoais has joined #ocaml
ceryo has joined #ocaml
oscar_toro has joined #ocaml
tennix has quit [Ping timeout: 250 seconds]
ely-se has quit [Quit: leaving]
ely-se has joined #ocaml
sivoais has quit [Ping timeout: 246 seconds]
tennix has joined #ocaml
luzie has quit [Quit: WeeChat 1.4-dev]
sivoais has joined #ocaml
Simn has joined #ocaml
ceryo has quit [Quit: Textual IRC Client: www.textualapp.com]
ceryo has joined #ocaml
ceryo has quit [Client Quit]
tennix has quit [Ping timeout: 240 seconds]
tennix has joined #ocaml
ceryo has joined #ocaml
tennix has quit [Ping timeout: 250 seconds]
sivoais has quit [Ping timeout: 255 seconds]
ceryo has quit [Client Quit]
ceryo has joined #ocaml
Haudegen has quit [Remote host closed the connection]
sivoais has joined #ocaml
thomasga has joined #ocaml
ollehar has joined #ocaml
tennix has joined #ocaml
Haudegen has joined #ocaml
<apache2> I have a Cstruct.t buffer and I need to extract the first 4 byte and parse them as a uint32
yomimono has quit [Ping timeout: 240 seconds]
<haesbaert> apache2: Cstruct.get_uint32 ?
<haesbaert> I mean,
<apache2> what if I want to extract the last 4 bytes instead?
<haesbaert> Cstrcut.BE.get_uint32 or LE
Haudegen has quit [Read error: Connection reset by peer]
<haesbaert> then you Cstrcut.shift buf n
<apache2> ahh
<apache2> nice thanks
yomimono has joined #ocaml
sivoais has quit [Ping timeout: 264 seconds]
tennix has quit [Ping timeout: 252 seconds]
oscar_toro has quit [Ping timeout: 264 seconds]
sivoais has joined #ocaml
rgrinberg1 has joined #ocaml
tennix has joined #ocaml
Haudegen has joined #ocaml
hcarty1 has joined #ocaml
thomasga has quit [Quit: Leaving.]
sivoais has quit [Ping timeout: 260 seconds]
tennix has quit [Ping timeout: 256 seconds]
sivoais has joined #ocaml
Haudegen has quit [Ping timeout: 255 seconds]
luzie has joined #ocaml
tennix has joined #ocaml
thomasga has joined #ocaml
ely-se has quit [Quit: leaving]
sivoais has quit [Ping timeout: 264 seconds]
tmtwd has joined #ocaml
sivoais has joined #ocaml
tennix has quit [Ping timeout: 265 seconds]
sheaf has quit [Quit: WeeChat 1.3]
<tibor_> Can someone tell me an easy way to find a function definition without grep in ocal (IDE,etc..)?
<tibor_> ocaml
<tibor_> sorry
<ollehar> tibor_: ctags + ctrl-] in vim
<Drup> (or merlin locate)
<tibor_> thank you
tennix has joined #ocaml
ely-se has joined #ocaml
Bluddy has joined #ocaml
jeffmo has quit [Ping timeout: 264 seconds]
regnat has quit [Quit: WeeChat 1.0.1]
<flux> merlin is the superior solution
<flux> for one, it doesn't get confused by modules and scopes
tennix has quit [Ping timeout: 264 seconds]
<freehck> flux: is there something better mode for ocaml than merlin?
<freehck> *some
<ely-se> merlin is a wizard
sivoais has quit [Ping timeout: 246 seconds]
<freehck> Am I the only one who associates the word wizard with Microsoft installers? )
<haesbaert> me too
sivoais has joined #ocaml
<haesbaert> tbh, I associate with a process that never does what I want.
Haudegen has joined #ocaml
damason has quit [Remote host closed the connection]
<flux> freehck, no, merlin is the best there is AFAIK
<flux> freehck, there are related tools to use with it, however
<flux> such as ocp-index and ocp-indent
sivoais has quit [Ping timeout: 272 seconds]
sivoais has joined #ocaml
ely-se has quit [Quit: leaving]
MercurialAlchemi has joined #ocaml
sivoais has quit [Ping timeout: 246 seconds]
Mercuria1Alchemi has joined #ocaml
sivoais has joined #ocaml
<tibor_> how can I use merlin from comand line?
<rks`> you can't really
<rks`> what do you want to do?
BitPuffin has joined #ocaml
<tibor_> I try to be a member of a huge ocaml project and I would like to study the code
<tibor_> but it is very dificult to find the functions :(
kushal has quit [Ping timeout: 260 seconds]
<Drup> merlin locate doesn't help you ?
<rks`> why don't you just call merlin from you editor tibor_ ?
<freehck> tibor_: don't you forget to build your project?
kushal has joined #ocaml
<freehck> Merlin uses cymbols from .cmi files to autocomplete your code.
<freehck> *symbols
<tibor_> I didn't worked in ocaml till now, so I would like to figure out a way to understand the code
raphaelssss has joined #ocaml
<Drup> that seems like a problem not at all related to the tooling.
sivoais has quit [Ping timeout: 268 seconds]
<tibor_> Is merlin an editor?
MercurialAlchemi has quit [Ping timeout: 240 seconds]
<freehck> tibor_: I believe that the best practice to understand any code is: "pogrep is an alias for grep -RHn --binary-files=without-match" :D
<freehck> merlin is an emacs package which is used for highlighting, autocompleting and so on.
<rks`> freehck: no.
sivoais has joined #ocaml
<freehck> no?
<rks`> it's not an emacs package, it's editor independent
<rks`> and it doesn't do highlighting
<rks`> see http://the-lambda-church.github.io/merlin/ ( freehck tibor_ )
raphaelsss has quit [Ping timeout: 240 seconds]
<freehck> wow.
freehck has quit [Quit: Page closed]
<tibor_> thank you
freehck has joined #ocaml
thomasga has quit [Quit: Leaving.]
<Drup> freehck: actually, ocp-grep is good for those things
<Drup> it's a grep that is open aware
<freehck> Drup: what is ocp-grep?
<freehck> It seems not to be in debian8 repository
sivoais has quit [Ping timeout: 268 seconds]
<Drup> it's in the ocp-index package
<freehck> Drup: thx, found.
tennix has joined #ocaml
ely-se has joined #ocaml
thomasga has joined #ocaml
rand__ has quit [Quit: leaving]
sivoais has joined #ocaml
tmtwd has quit [Ping timeout: 264 seconds]
freehck has quit [Quit: Page closed]
ncthom91 has joined #ocaml
freehck has joined #ocaml
sivoais has quit [Ping timeout: 240 seconds]
<freehck> Drup: I've not got: for what things is it good?
<Drup> See where a function is used
<freehck> I've installed it via opam and added into my emacs, but I don't see any documentation for it.
<freehck> Drup: Ah, I thought you're about autocompletion.
ollehar has quit [Quit: ollehar]
<Drup> It's called "ocp-grep" ...
<freehck> Drup: Yes, now I understand you.
<freehck> I have some problems with merlin. Sometimes it's just can't complete my functions.
Kakadu has quit [Quit: Page closed]
sivoais has joined #ocaml
jeffmo has joined #ocaml
BitPuffin has quit [Ping timeout: 256 seconds]
<freehck> rks`: just 15 minutes ago :)
<rks`> ok
<freehck> I had merlin-mode installed via emacs package manager.
sivoais has quit [Ping timeout: 260 seconds]
<rks`> you shouldn't do that
<freehck> now I've installed it using this manual and everything works fine
<rks`> ok
sivoais has joined #ocaml
thomasga has quit [Quit: Leaving.]
tennix has quit [Ping timeout: 264 seconds]
thomasga has joined #ocaml
raphaelssss has quit [Quit: Leaving]
NingaLeaf has joined #ocaml
tennix has joined #ocaml
sivoais has quit [Ping timeout: 260 seconds]
sivoais has joined #ocaml
<ggole> "The opinions expressed in this paper are not those of Princeton University, nor even those of the author." Heh.
<Drup> :D
<zozozo> ggole: which paper ?
<ggole> "Intensional Equality ;=) for Continuations"
tennix has quit [Ping timeout: 252 seconds]
Pepe_ has quit [Remote host closed the connection]
<orbifx> sucks having to do C++ after learning Ocaml :P
Denommus has joined #ocaml
<zozozo> :)
sivoais has quit [Ping timeout: 255 seconds]
tennix has joined #ocaml
sivoais has joined #ocaml
<freehck> orbifx: You won't work with C++ even if you just try lisp. :)
<orbifx> hahah
larhat1 has joined #ocaml
<orbifx> the problem with C++ is how bad others make it
<orbifx> I blame Java
<orbifx> Java programmers poison C++ :P
<freehck> Arrgh, JAVA!!!!! >:(
<orbifx> but it had it coming
tennix has quit [Ping timeout: 252 seconds]
<ely-se> my C++ bad code litmus test: does it use new or new[]? if yes, it's bad
<ely-se> it's a good enough test in the majority of cases
<freehck> orbifx: You know, Java has some benefits: it has a perfect parallelism. And this is the reason of it's high performance.
BitPuffin has joined #ocaml
<freehck> But it's a question of adding threading into normal languages. Not realisation of good languages analogs insede JVM.
<freehck> So we can blame Scala here too.
<freehck> And Clojure btw.
ely-se has quit [Quit: leaving]
sivoais has quit [Ping timeout: 250 seconds]
zaquest has quit [Quit: Leaving]
zaquest has joined #ocaml
sivoais has joined #ocaml
tennix has joined #ocaml
<orbifx> it can keep it's perfect parallelism even if that is the case
ollehar has joined #ocaml
<orbifx> anyway, bbl
orbifx has quit [Quit: WeeChat 1.3]
tennix has quit [Ping timeout: 264 seconds]
tennix has joined #ocaml
sivoais has quit [Ping timeout: 272 seconds]
sivoais has joined #ocaml
larhat1 has quit [Quit: Leaving.]
thomasga has quit [Quit: Leaving.]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sivoais has quit [Ping timeout: 240 seconds]
jonludlam has quit [Ping timeout: 264 seconds]
sivoais has joined #ocaml
sivoais has quit [Ping timeout: 260 seconds]
sivoais has joined #ocaml
shinnya has joined #ocaml
Pepe_ has joined #ocaml
tane has joined #ocaml
sivoais has quit [Ping timeout: 250 seconds]
sivoais has joined #ocaml
sivoais has quit [Ping timeout: 250 seconds]
<ollehar> anyone tried mercury? that seem to have compile-time gc.
<ollehar> quite interesting.
sivoais has joined #ocaml
<freehck> compile-time GC? is it possible?
<ollehar> freehck: there's a looong paper about it, haven't read it yet.
<ollehar> but the language must be adapted to it.
<freehck> Already reading. )
<ollehar> mercury is a logical language, based on prolog.
<ollehar> ok >(
<ollehar> :)
<companion_cube> but it's typed
<ollehar> yes?
<ollehar> prolog is not?
<ollehar> I don't know prolog.
<companion_cube> prolog isn't
<companion_cube> prolog is like the LISP of logic languages
<ollehar> ah ok
<ollehar> companion_cube: you've used it?
jwatzman|work has joined #ocaml
<ggole> ollehar: you've never toyed with prolog?
<ollehar> ggole: nope
<companion_cube> not much, but I'm more interested in how it works
<ggole> You should, it's interesting to see how differently computation can be arranged
<ollehar> ggole: hm, maybe if there's time...
<ollehar> but there's never time!!
<ollehar> gah
<freehck> ggole: aren't Lisps and MLs enough?
sivoais has quit [Ping timeout: 246 seconds]
<companion_cube> well it's totally different
<ggole> Lisp and ML are arguably fairly close
<freehck> ggole: +1.
^elyse^ has joined #ocaml
<ggole> Append in lisp and append in ML are basically the same thing with or without types, whereas append in Prolog is quite a different beast
sivoais has joined #ocaml
thomasga has joined #ocaml
BitPuffin has quit [Remote host closed the connection]
tennix has quit [Ping timeout: 250 seconds]
Denommus` has joined #ocaml
yomimono has quit [Ping timeout: 264 seconds]
haesbaert has quit [Remote host closed the connection]
Denommus has quit [Ping timeout: 256 seconds]
tennix has joined #ocaml
oscar_toro has joined #ocaml
rgrinberg1 has quit [Ping timeout: 246 seconds]
sivoais has quit [Ping timeout: 264 seconds]
sivoais has joined #ocaml
BitPuffin has joined #ocaml
tennix has quit [Ping timeout: 256 seconds]
jwatzman|work has quit [Quit: jwatzman|work]
thomasga has quit [Quit: Leaving.]
tennix has joined #ocaml
sivoais has quit [Ping timeout: 240 seconds]
sivoais has joined #ocaml
tennix has quit [Ping timeout: 264 seconds]
tennix has joined #ocaml
sivoais has quit [Ping timeout: 272 seconds]
yomimono has joined #ocaml
sivoais has joined #ocaml
tennix has quit [Ping timeout: 246 seconds]
f[x] has joined #ocaml
yomimono has quit [Ping timeout: 240 seconds]
<octachron> I didn't realize up to now that 'A is valid type variable. It is strange to have this mismatch between type and type variable name
Denommus` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<ggole> Huh, that is strange
nullcatxxx_ has joined #ocaml
<ggole> The ' isn't part of the name, either: I found that out by accident a little while back
rgrinberg1 has joined #ocaml
sivoais has quit [Ping timeout: 268 seconds]
<apache2> Looking at the unix module
<apache2> >val send : file_descr -> bytes -> int -> int -> msg_flag list -> int
<apache2> Send data over a connected socket.
<apache2> how am I supposed to guess what the ints mean?
sivoais has joined #ocaml
<apache2> "len" and "flags" ?
<octachron> it is also seems to create strange error with polymorphic variant: type t = ['Name | `Hi ] report an error on the type 'a
<ggole> Look at the docs, or use UnixLabels
<ggole> octachron: I assume that's related to inclusion
<companion_cube> apache2: it's in the doc, it's a signature you find in lots of places
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apache2> I'm looking here, I don't see it: http://caml.inria.fr/pub/docs/manual-ocaml/libref/Unix.html
<apache2> but UnixLabels had it, thanks, ggole !
<octachron> ggole, probably except that type t = [ 'lid | `Hi ] keeps the original name 'lid
<ggole> octachron: hmm, it does too. Seems like a bit of a wrinkle.
tennix has joined #ocaml
* ggole wonders if this is the same mistake as with polymorphic variants allowing both upper and lowercase names
<ggole> eg, whack a ' or ` on the front and who cares about the rest
sivoais has quit [Ping timeout: 240 seconds]
tennix has quit [Ping timeout: 260 seconds]
sivoais has joined #ocaml
toomuchtvrotsurb has joined #ocaml
^elyse^ has quit [Quit: Leaving]
__uu___ has quit [Ping timeout: 240 seconds]
palomer has joined #ocaml
<palomer> hey guy
<palomer> s
<palomer> so I’m compiling my program using -g (more specifically: ocamlfind ocamlopt -c -g -package atdgen -package ppx_deriving.std -package ppx_deriving_yojson -package lwt.ppx -package websocket.lwt -o test2.cmx test2.ml)
tennix has joined #ocaml
<palomer> Printexc.print_stacktract stdout; <— isn’t printing anything
<palomer> make that print_backtrace
hcarty1 is now known as hcarty
<companion_cube> you need Printexc.record_backtrace true, maybe
<palomer> I’m catching the exception using try%lwt
pilne has joined #ocaml
<palomer> ah yes, now it works
slash^ has joined #ocaml
<palomer> thanks!
psy_ has joined #ocaml
psy_ has quit [Max SendQ exceeded]
sivoais has quit [Ping timeout: 260 seconds]
psy_ has joined #ocaml
<companion_cube> another way: OCAMLRUNPARAM=b youprogram
sivoais has joined #ocaml
tennix has quit [Ping timeout: 256 seconds]
<palomer> thanks for the tip :D
tnguyen has joined #ocaml
tennix has joined #ocaml
haesbaert has joined #ocaml
tnguyen1 has quit [Ping timeout: 255 seconds]
sivoais has quit [Ping timeout: 240 seconds]
aftershave has joined #ocaml
tennix has quit [Ping timeout: 240 seconds]
sivoais has joined #ocaml
ncthom91 has joined #ocaml
^elyse^ has joined #ocaml
tennix has joined #ocaml
sivoais has quit [Ping timeout: 250 seconds]
tennix has quit [Ping timeout: 244 seconds]
sivoais has joined #ocaml
sivoais has quit [Read error: Connection reset by peer]
sivoais has joined #ocaml
jwatzman|work has joined #ocaml
palomer has quit [Ping timeout: 260 seconds]
palomer has joined #ocaml
Haudegen has quit [Ping timeout: 265 seconds]
tennix has joined #ocaml
sivoais has quit [Ping timeout: 240 seconds]
psy_ has quit [Read error: Connection reset by peer]
darkf has quit [Quit: Leaving]
sivoais has joined #ocaml
tennix has quit [Ping timeout: 256 seconds]
Haudegen has joined #ocaml
tennix has joined #ocaml
psy_ has joined #ocaml
psy_ has quit [Max SendQ exceeded]
nullcatxxx_ has joined #ocaml
sivoais has quit [Ping timeout: 268 seconds]
tennix has quit [Ping timeout: 244 seconds]
sivoais has joined #ocaml
octachron has quit [Quit: Leaving]
tennix has joined #ocaml
<apache2> hm, is there an easy way to look for a substring in a string ?
ncthom91 has quit [Read error: Connection reset by peer]
palomer has quit [Quit: palomer]
ncthom91 has joined #ocaml
palomer has joined #ocaml
orbifx has joined #ocaml
tennix has quit [Ping timeout: 240 seconds]
sivoais has quit [Ping timeout: 272 seconds]
kushal has quit [Ping timeout: 246 seconds]
sivoais has joined #ocaml
kushal has joined #ocaml
<hcarty> apache2: re or pcre
<hcarty> apache2: (two libraries available via opam)
tennix has joined #ocaml
<companion_cube> otherwise, the stdlib extensions must provide it
<companion_cube> with various perf depending on the algorithm used and the length of the substring
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ggole has quit []
sivoais has quit [Ping timeout: 265 seconds]
sivoais has joined #ocaml
tennix has quit [Ping timeout: 272 seconds]
^elyse^ has quit [Quit: Leaving]
palomer has quit [Quit: palomer]
larhat1 has joined #ocaml
^elyse^ has joined #ocaml
sivoais has quit [Ping timeout: 240 seconds]
swgillespie has joined #ocaml
sivoais has joined #ocaml
johnf_ has joined #ocaml
Haudegen has quit [Ping timeout: 260 seconds]
nullcatxxx_ has joined #ocaml
tennix has joined #ocaml
Sim_n has joined #ocaml
sivoais has quit [Ping timeout: 244 seconds]
ril has joined #ocaml
Simn has quit [Ping timeout: 256 seconds]
tennix has quit [Ping timeout: 250 seconds]
sivoais has joined #ocaml
palomer has joined #ocaml
tennix has joined #ocaml
johnf_ has quit [Read error: Connection reset by peer]
tennix has quit [Ping timeout: 250 seconds]
sivoais has quit [Ping timeout: 246 seconds]
sivoais has joined #ocaml
octachron has joined #ocaml
kushal has quit [Quit: Leaving]
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tennix has joined #ocaml
sepp2k has quit [Quit: Leaving.]
sivoais has quit [Ping timeout: 265 seconds]
tennix has quit [Ping timeout: 240 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Haudegen has joined #ocaml
sivoais has joined #ocaml
BitPuffin has quit [Remote host closed the connection]
tennix has joined #ocaml
Kakadu has joined #ocaml
ncthom91 has quit [Quit: Textual IRC Client: www.textualapp.com]
sivoais has quit [Ping timeout: 255 seconds]
tennix has quit [Ping timeout: 264 seconds]
lobo has joined #ocaml
sivoais has joined #ocaml
Denommus has joined #ocaml
jonludlam has joined #ocaml
tennix has joined #ocaml
tennix has quit [Ping timeout: 240 seconds]
rgrinberg1 has quit [Ping timeout: 252 seconds]
TheLemonMan has joined #ocaml
sivoais has quit [Ping timeout: 244 seconds]
sivoais has joined #ocaml
tennix has joined #ocaml
sivoais has quit [Ping timeout: 265 seconds]
tennix has quit [Ping timeout: 250 seconds]
<Bluddy> anyone know if ocaml supports DWARF call-stack output?
sivoais has joined #ocaml
Denommus` has joined #ocaml
hcarty1 has joined #ocaml
Denommus has quit [Ping timeout: 246 seconds]
sivoais has quit [Read error: Connection reset by peer]
sivoais has joined #ocaml
hcarty has quit [Ping timeout: 240 seconds]
palomer has quit [Quit: palomer]
<def`> Bluddy: CFI? yes
sh0t has joined #ocaml
_andre has quit [Quit: leaving]
mort___ has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
freehck has quit [Ping timeout: 246 seconds]
octachron has quit [Quit: Leaving]
palomer has joined #ocaml
rgrinberg1 has joined #ocaml
<orbifx> any opinions on ocaml-systemd
<orbifx> it's not what i thought anyway :/
<orbifx> looking for a systemctl library if anyone knows one
hcarty1 has quit [Ping timeout: 256 seconds]
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mort___ has quit [Quit: Leaving.]
^elyse^ has quit [Quit: Leaving]
octachron has joined #ocaml
sh0t has quit [Ping timeout: 250 seconds]
^elyse^ has joined #ocaml
Denommus` is now known as Denommus
mac10688 has joined #ocaml
f[x] has quit [Ping timeout: 240 seconds]
sh0t has joined #ocaml
palomer has quit [Ping timeout: 250 seconds]
nullcatxxx_ has joined #ocaml
orbifx has quit [Ping timeout: 264 seconds]
jeffmo has quit [Quit: jeffmo]
tane has quit [Quit: Verlassend]
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
^elyse^ has quit [Quit: sleep]
thomasga has joined #ocaml
ceryo has quit [Quit: Textual IRC Client: www.textualapp.com]
thomasga has quit [Quit: Leaving.]
tennix has joined #ocaml
jonludlam has quit [Ping timeout: 272 seconds]
tennix has quit [Ping timeout: 268 seconds]
octachron has quit [Quit: Leaving]
oscar_toro has left #ocaml [#ocaml]
Mercuria1Alchemi has quit [Ping timeout: 260 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
ollehar has quit [Quit: ollehar]
swgillespie has joined #ocaml
antkong_ has joined #ocaml
larhat1 has quit [Read error: Connection reset by peer]
larhat1 has joined #ocaml
f[x] has joined #ocaml
Sim_n has quit [Quit: Leaving]
antkong_ has quit [Quit: antkong_]
sh0t has quit [Ping timeout: 240 seconds]
Kakadu has quit [Remote host closed the connection]
Bluddy has quit [Quit: Connection closed for inactivity]
Denommus has quit [Quit: going home]
yaewa has joined #ocaml
Algebr has joined #ocaml
moei has quit [Ping timeout: 272 seconds]
pleiosaur has quit [Ping timeout: 255 seconds]
pleiosaur has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tnguyen has quit [Ping timeout: 240 seconds]