adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Current MOOC: https://huit.re/ocamlmooc | 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
hpd[m] has joined #ocaml
rgrinberg has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
jamesst20 has joined #ocaml
ollehar has quit [Quit: ollehar]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
d0nn1e has quit [Ping timeout: 255 seconds]
d0nn1e has joined #ocaml
octachron has quit [Quit: Leaving]
Jtj has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
planet_en has quit [Ping timeout: 240 seconds]
jamesst20 has quit [Remote host closed the connection]
cbot has joined #ocaml
cbot_ has quit [Ping timeout: 260 seconds]
wtetzner has quit [Remote host closed the connection]
rpg has joined #ocaml
rpg has quit [Ping timeout: 260 seconds]
snhmib has quit [Ping timeout: 260 seconds]
jamesst20 has joined #ocaml
rgrinberg has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
wagle_ is now known as wagle
silver has quit [Read error: Connection reset by peer]
moei has quit [Quit: Leaving...]
mfp has quit [Ping timeout: 260 seconds]
moei has joined #ocaml
nahra has quit [Remote host closed the connection]
Guest86370 is now known as micro_
rpg has joined #ocaml
rpg has quit [Quit: Textual IRC Client: www.textualapp.com]
wtetzner has joined #ocaml
cbot_ has joined #ocaml
cbot has quit [Ping timeout: 240 seconds]
zv has joined #ocaml
jamesst20 has quit [Remote host closed the connection]
jamesst20 has joined #ocaml
jamesst20 has quit [Ping timeout: 240 seconds]
scitesy has joined #ocaml
Rurik has joined #ocaml
Rzrik has quit [Ping timeout: 260 seconds]
jamesst20 has joined #ocaml
AdmWiggin is now known as tianon
FreeBirdLjj has joined #ocaml
newbie has joined #ocaml
newbie is now known as lolisa
wtetzner has quit [Remote host closed the connection]
FreeBirdLjj has quit [Remote host closed the connection]
neo_ has joined #ocaml
lopex has quit [Quit: Connection closed for inactivity]
jmct_ has joined #ocaml
wtetzner has joined #ocaml
sfri_ has joined #ocaml
Jaxan_ has joined #ocaml
S11001001 has quit [Ping timeout: 252 seconds]
jmct has quit [Ping timeout: 252 seconds]
jmct_ is now known as jmct
sheijk_ has joined #ocaml
seliopou_ has joined #ocaml
wtetzner has quit [Ping timeout: 240 seconds]
john5_ has joined #ocaml
cartwright has joined #ocaml
sfri has quit [Ping timeout: 252 seconds]
Jaxan has quit [Ping timeout: 252 seconds]
lolisa has quit [Ping timeout: 252 seconds]
sheijk has quit [Ping timeout: 252 seconds]
seliopou has quit [Ping timeout: 252 seconds]
newbie has joined #ocaml
zozozo has quit [Ping timeout: 252 seconds]
cantstanya has quit [Ping timeout: 252 seconds]
john5 has quit [Ping timeout: 252 seconds]
newbie has quit [Read error: Connection reset by peer]
newbie78 has joined #ocaml
wtetzner has joined #ocaml
zozozo has joined #ocaml
jamesst20 has quit [Remote host closed the connection]
jamesst20 has joined #ocaml
jamesst20 has quit [Ping timeout: 268 seconds]
neo_ has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
newbie78 has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
cbot has joined #ocaml
cbot_ has quit [Ping timeout: 268 seconds]
wtetzner has quit [Remote host closed the connection]
slash^ has joined #ocaml
S11001001 has joined #ocaml
Simn has joined #ocaml
AlexDenisov has joined #ocaml
<jerith> nicoo: Unspeakable GC patches in pypy or ocaml?
<nicoo> jerith: The compactor patches we discussed at DebConf (in OCaml), where you said you should introduce me to some PyPy GC people :P
<jerith> Ah, right.
<jerith> You can find them all in Switzerland at the moment, I believe.
<nicoo> I'm very far away from Switzerland at the moment
jamesst20 has joined #ocaml
<jerith> My implied suggestion that you crash their sprint wasn't *entrely* serious. ;-)
jamesst20 has quit [Ping timeout: 240 seconds]
<nicoo> I totally would, if I was on the right continent. (OK, s/totally/perhaps/)
<jerith> I'm sure you'd be welcome. But you might suddenly find yourself refactoring metainterpreter optimisations or something.
<nicoo> I don't know anything about PyPy, so that's unlikely
<adrien> morning :)
<adrien> nicoo: do you use or know nixos? :P
<nicoo> I do, why?
pyx has joined #ocaml
<nicoo> Also, ah! Totally up before you
pyx has quit [Client Quit]
FreeBirdLjj has quit [Remote host closed the connection]
<adrien> yeah, totaly still not sleeping :)
<adrien> there's a github pr about using findlib in the compiler codebase; currently it's expecting findlib packages in $(ocamlc -where)/.. or something like that; would that be an issue for nix?
<adrien> (yeah, the kind of question you love to hear when you're actually hoping to get to bed :P )
MercurialAlchemi has joined #ocaml
sfri_ has quit [Ping timeout: 255 seconds]
<nicoo> adrien: No idea off-hand, check yourself :P
<nicoo> And yes, I just read GH#1065
sfri has joined #ocaml
AlexDeni_ has joined #ocaml
AlexDenisov has quit [Read error: Connection reset by peer]
mryau has joined #ocaml
malina has joined #ocaml
orbifx has joined #ocaml
<adrien> :P
demonimin has quit [Ping timeout: 240 seconds]
orbifx has quit [Ping timeout: 260 seconds]
demonimin has joined #ocaml
<mryau> Hello, is there any tutorials for Batteries BatParserCo module?
FreeBirdLjj has joined #ocaml
larhat has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
larhat has quit [Quit: Leaving.]
arj has joined #ocaml
arj has quit [Client Quit]
malina has quit [Ping timeout: 240 seconds]
arj has joined #ocaml
jamesst20 has joined #ocaml
spew has joined #ocaml
shinnya has joined #ocaml
malina has joined #ocaml
jamesst20 has quit [Ping timeout: 240 seconds]
jnavila has joined #ocaml
AlexDeni_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Simn has quit [Quit: Leaving]
cbot has quit [Quit: Leaving]
spew has quit [Ping timeout: 240 seconds]
malina has quit [Ping timeout: 240 seconds]
ciniglio has quit [Ping timeout: 240 seconds]
ygrek has quit [Ping timeout: 260 seconds]
zpe has joined #ocaml
malina has joined #ocaml
mfp has joined #ocaml
tane has joined #ocaml
silver_ has joined #ocaml
zpe has quit [Remote host closed the connection]
silver_ is now known as silver
<companion_cube> not that I know of
zpe has joined #ocaml
<companion_cube> if you know parsec (for haskell) it's probably quite similar in principle
djellemah has quit [Ping timeout: 268 seconds]
malina has quit [Ping timeout: 240 seconds]
zpe has quit [Remote host closed the connection]
arj has quit [Quit: Leaving.]
arj has joined #ocaml
abeaumont has joined #ocaml
djellemah has joined #ocaml
lopex has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
slash^ has joined #ocaml
jamesst20 has joined #ocaml
bobbypriambodo has joined #ocaml
bobbypriambodo has quit [Client Quit]
bobbypriambodo has joined #ocaml
bobbypriambodo has quit [Ping timeout: 255 seconds]
_y has joined #ocaml
fre has joined #ocaml
djellemah has quit [Ping timeout: 240 seconds]
arj has quit [Quit: Leaving.]
djellemah has joined #ocaml
mryau has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mryau has joined #ocaml
wtetzner has joined #ocaml
abeaumont has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 260 seconds]
jamesst20 has quit [Remote host closed the connection]
jamesst20 has joined #ocaml
spew has joined #ocaml
jamesst20 has quit [Ping timeout: 260 seconds]
wtetzner has quit [Remote host closed the connection]
wtetzner has joined #ocaml
wtetzner_ has joined #ocaml
wtetzner has quit [Ping timeout: 260 seconds]
scitesy has quit [Ping timeout: 255 seconds]
wtetzner_ has quit [Remote host closed the connection]
jamesst20 has joined #ocaml
tormen has joined #ocaml
Anarchos has joined #ocaml
wtetzner has joined #ocaml
lobo has quit [Quit: WeeChat 1.0.1]
wtetzner has quit [Ping timeout: 260 seconds]
sh0t has joined #ocaml
lobo has joined #ocaml
alex`` has joined #ocaml
<alex``> Hi
<alex``> Where I can find the list of OCaml keywords?
<Anarchos> alex`` it is in the manual
<alex``> I’m doing a Kakoune syntax file for a knowledge but I don’t know much OCaml
<alex``> at all actually
<alex``> XD
<alex``> Thanks !
<alex``> is there a reference too for the indent rules?
<Drup> alex``: indentation rules are more difficult, and you should use ocp-indent
<alex``> Drup: thanks :)
<alex``> It is supposed to work interactively?
<alex``> while typing
<_y> yes
<alex``> split(system(cmdline, getline('1','$')))
<alex``> looks like it indent the whole buffer
<alex``> oh no
<alex``> cmdline = "ocp-indent --numeric --indent-empty --lines " . a:lnum . '-'
<alex``> make just touching the `lnum`?
<Drup> yeah, it can outputs indentation for a specific line
<alex``> oki
<alex``> we pass the whole buffer to stdin, and it outputs the whole buffer, only touching the lnum
<alex``> ?
<alex``> given lnum* with --lines <n>
<_y> i think only a limited context is passed to ocp-indent
<alex``> getline('1','$')
<alex``> '$' doesn’t refer to last buffer line?
<alex``> or current line
<_y> $ is last line, so you are probably right
<_y> ocp-indent is given the whole file, but i thought that maybe it would only use a limited context around your lines and discard the rest, but i don't see anything in the manual in that sense
<_y> (man ocp-indent)
<alex``> for limited context we have to know where starts context
infinity0 has quit [Remote host closed the connection]
<alex``> i'm ok for first version with whole buffer
jamesst20 has quit [Remote host closed the connection]
<alex``> it's only to give a starting point :p
jamesst20 has joined #ocaml
<_y> alex``, of course, it would only be a heuristics, but that’s a fairly reasonable approximation
infinity0 has joined #ocaml
<_y> to avoid really big cost each time you insert a new line in a big source file
<Drup> you guys are seriously over estimating the cost of parsing a whole file ^^'
<alex``> XD
infinity0 has quit [Remote host closed the connection]
<alex``> Drup may be costly on kakoune
jamesst20 has quit [Ping timeout: 240 seconds]
<alex``> with multi selections
<Drup> I have no idea what it is, but honestly, I doubt it
<_y> Drup, idk, i have experience with painful editing of 800-lines-long source files with vim
<alex``> oki
infinity0 has joined #ocaml
<Drup> _y: 800 is not very long and I doubt ocp-indent was causing a slow down
<Drup> it's probably more costly to *color* your file with syntax coloration rules than whatever ocp-indent is doing.
<_y> may be due to syntax coloring as well, but those are regex matching with limited context
wtetzner has joined #ocaml
<alex``> the syntax for ocp-indent --lines range only?
<alex``> -l RANGE, --lines=RANGE (absent=-)
<alex``> Only re-indent the lines in RANGE (eg. 10-12), adapting to the current indentation of surrounding lines. Lines start at 1.
<alex``> not list of ranges / lines ?
<_y> try it!
<alex``> i would like to pass the given lines
<alex``> on kakoune, on <ret> i would like doing one `ocp-indent` --lines and given each selection line
<alex``> instead of spawning a shell with ocp-indent for each selection
<alex``> seems not handled
AlexDenisov has joined #ocaml
<Drup> try to call ocp-indent several time, and if it's too slow, make a feature request
<alex``> ouki
<alex``> i think it should handle a list anyway
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Simn has joined #ocaml
arj has joined #ocaml
larhat has joined #ocaml
fre has quit [Ping timeout: 240 seconds]
ygrek has joined #ocaml
lucybun has quit [Quit: lucybun]
AlexDenisov has joined #ocaml
lucybun has joined #ocaml
AlexDeni_ has joined #ocaml
jamesst20 has joined #ocaml
copy` has joined #ocaml
AlexDenisov has quit [Ping timeout: 255 seconds]
johnf_ has joined #ocaml
jamesst20 has quit [Ping timeout: 240 seconds]
iyy has quit [Ping timeout: 245 seconds]
zpe has joined #ocaml
jnavila has quit [Ping timeout: 260 seconds]
kakadu has joined #ocaml
ygrek has quit [Ping timeout: 260 seconds]
d0nn1e has quit [Ping timeout: 260 seconds]
fre has joined #ocaml
djellemah_ has joined #ocaml
d0nn1e has joined #ocaml
zpe has quit [Remote host closed the connection]
jamesst20 has joined #ocaml
wtetzner has quit [Remote host closed the connection]
atsampson has quit [Ping timeout: 240 seconds]
atsampson has joined #ocaml
wtetzner has joined #ocaml
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0_ has joined #ocaml
infinity0_ is now known as infinity0
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
wtetzner has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
<alex``> Re
infinity0 has joined #ocaml
Xadnem has joined #ocaml
fre has quit [Ping timeout: 240 seconds]
fraggle_ has joined #ocaml
fre has joined #ocaml
arj has quit [Quit: Leaving.]
wtetzner has joined #ocaml
jamesst20 has quit [Remote host closed the connection]
jamesst20 has joined #ocaml
ryanartecona has joined #ocaml
slash^ has quit [Ping timeout: 240 seconds]
jamesst20 has quit [Ping timeout: 240 seconds]
orbifx has joined #ocaml
<alex``> Drup: string are double quote only?
foo30303 has joined #ocaml
<alex``> not single quote?
<Drup> yes
<Drup> the bulk of the grammar is available in http://caml.inria.fr/pub/docs/manual-ocaml/language.html
<alex``> thanks :)
octachron has joined #ocaml
wtetzner has quit [Remote host closed the connection]
<octachron> alex``, there are also quoted strings http://caml.inria.fr/pub/docs/manual-ocaml-4.04/extn.html#sec250 (e.g {|string|}) for raw strings
cbot has joined #ocaml
<alex``> {|is a string|} :o
<alex``> octachron: we can access to variable in "foo" string?
<alex``> in ruby there is "foo #{var} bar"
ruuns has joined #ocaml
myst|fon has quit [Quit: Connection closed for inactivity]
<octachron> alex``, no string interpolation, but OCaml has strongly typed printf
<alex``> oki
<octachron> i.e `Printf.printf "%d = %s" 1 "One"` fails if the first argument is not an integer
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
tane has quit [Ping timeout: 240 seconds]
jmiven has quit [Quit: co'o]
jamesst20 has joined #ocaml
average is now known as not_a_CTO
not_a_CTO is now known as average
jmiven has joined #ocaml
<Drup> alex``: are you implementing syntactic coloration now ?
<alex``> yep
<Drup> you should reuse the grammars for textmate
<alex``> i’m only doing the basics
<alex``> keywords, string, comments
fre has quit [Ping timeout: 255 seconds]
<Drup> it's a more generic remark. There are complete textmate grammars for lot's of languages, you would just have to implement one thing
djellemah has quit [Ping timeout: 255 seconds]
johnf_ has quit [Remote host closed the connection]
ryanartecona has quit [Read error: Connection reset by peer]
ryanartecona has joined #ocaml
tane has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 240 seconds]
<alex``> i added basic ocaml support
<alex``> very basic @_@
jamesst20 has quit [Remote host closed the connection]
jamesst20 has joined #ocaml
<alex``> Drup: can u give me the link?
larhat has quit [Read error: Connection reset by peer]
zv has quit [Ping timeout: 240 seconds]
jamesst20 has quit [Ping timeout: 264 seconds]
ryanartecona has quit [Quit: ryanartecona]
ryanartecona has joined #ocaml
kakadu has quit [Remote host closed the connection]
jamesst20 has joined #ocaml
jamesst20 has quit [Ping timeout: 264 seconds]
mengu has joined #ocaml
<alex``> Drup: list support will not work well with --numeric actually
<alex``> adding list support to --lines
<alex``> numeric should return a list
<alex``> double empty lines to separate list?
<alex``> one*
freusque has quit [Ping timeout: 260 seconds]
cbot has quit [Ping timeout: 255 seconds]
ryanartecona has quit [Ping timeout: 255 seconds]
orbifx has quit [Ping timeout: 260 seconds]
AlexDeni_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
myst|fon has joined #ocaml
octachron has quit [Quit: Leaving]
johnf_ has joined #ocaml
abeaumont has joined #ocaml
foo30303 has quit [Quit: leaving]
zv has joined #ocaml
wtetzner has joined #ocaml
spew has quit [Ping timeout: 260 seconds]
<_y> the Weird Midnight Question:
<_y> is it possible to define a value of type 'a t = T of 'a t t (whose evaluation terminates and without invokation to magic)?
<_y> without -rectypes
<companion_cube> don't you need a base case?
<_y> i thought it was possible because « let rec x = T x » is accepted with -rectypes, and i assumed this option do not add expressivity to the language
<_y> but after more reflexion maybe that last assertion is true only for the type system (ie a recursive *type* definition that is accepted with -rectypes will always be accepted without, modulo the addition of constructors)
jamesst20 has joined #ocaml
<_y> i don’t know how type polymorphism mixes with type recursivity
<_y> roughly speaking, i would have guessed that this type is the greatest fixpoint of µt . t∘t, which is (??) the constant function equal to the unit type, so 'a t should have (exactly) one inhabitant
jamesst20 has quit [Ping timeout: 264 seconds]
<companion_cube> there is no fxipoint to this definition?
<companion_cube> I mean, no fixpoint using finite values
<companion_cube> there's only one solution and it's infinite; it would work as a codatatype
<_y> but it may as well have no sense at all :-)
<companion_cube> but not as a datatype
<_y> yes companion_cube, that’s why i considered the *greatest* fixpoint
<companion_cube> so you want a codatatype
<companion_cube> not available in OCaml ^^
<_y> since ocaml is turing-complete, it accepts much more than the lesser fixpoint, so i assume what ocaml accepts really is the greatest fixpoint
<_y> hm but now i have stated this, i realize it may be false, for example i know no way of building an arbitrary (= not cyclic) infinite list in ocaml
mengu has quit [Read error: Connection reset by peer]
<_y> (“question for a friend”)
<_y> btw, does there exist people trying to add cothings to ocaml?
<companion_cube> no idea
<companion_cube> you can do stuff with recursive functions though
<companion_cube> like, `type 'a t = unit -> 'a node and 'a node = Nil | Cons of 'a * 'a t`
<companion_cube> this makes it possible to build infinite lists
mengu has joined #ocaml
Xadnem has quit [Quit: leaving]
tormen has quit [Quit: Lost terminal]
Simn has quit [Read error: Connection reset by peer]
<mengu> my best sopranos moment
<mengu> when tony kills cifaretto
<mengu> "she was a beautiful innocent creature what she'd ever do to you?"
<mengu> oh damn
<mengu> wrong channel
<companion_cube> that's an interesting change though
<mengu> lol