flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 4.00.1 http://bit.ly/UHeZyT | http://www.ocaml.org | Public logs at http://tunes.org/~nef/logs/ocaml/
<ollehar> ousado: and those branches can be used with opam switch something-something?
<ousado> ollehar: I've only used one experimental branch so far
<ousado> ollehar: and I just checked it out and did a local build
<ollehar> kk
<ousado> if opam helps with that, that'd be great news to me :)
<ousado> I'm not very experienced with ocaml infrastucture/tools
<Cypi> Now, you indeed have to build it yourself
<ollehar> now = no?
<Cypi> Hum, no*, sorry
<ollehar> ;)
<ousado> sigh.. I guess my experiment using gnome shell is over
<ousado> does someone know a tiling WM that can be scripted in JS?
ulfdoz_ has joined #ocaml
mattrepl has joined #ocaml
ulfdoz has quit [Ping timeout: 245 seconds]
ulfdoz_ is now known as ulfdoz
pkrnj has quit [Quit: Computer has gone to sleep.]
darkf has joined #ocaml
dsheets has quit [Ping timeout: 264 seconds]
ulfdoz has quit [Ping timeout: 255 seconds]
ousado has quit [Read error: Connection reset by peer]
<wmeyer> ousia: hello
<wmeyer> oops sorry meant ousado who is not here
ousado has joined #ocaml
oriba has quit [Quit: oriba]
mlh has quit [Read error: Connection reset by peer]
mlh has joined #ocaml
madroach has quit [Ping timeout: 248 seconds]
madroach has joined #ocaml
q66 has quit [Remote host closed the connection]
ousado has quit [Quit: --]
eikke has quit [Ping timeout: 245 seconds]
ollehar has quit [Quit: ollehar]
eikke has joined #ocaml
eikke has quit [Ping timeout: 256 seconds]
ollehar has joined #ocaml
<ollehar> anyone wake still? :) need to purge opam
<ollehar> don't know how
<wmeyer> me
<wmeyer> ollehar: what do you mean 'purge opam' ?
<ollehar> remove it completely, it keeps giving me "failure: exception not_found"
<ollehar> and reinstall later
<wmeyer> removing the directory ~/.opam would be working for you?
<wmeyer> and then reinstalling (again) packages?
<wmeyer> you do: [opam list > pkg_list.txt' && rm -rf ~/.opam && opam init && for P in `cat pkg_list.txt`; do opam install $P; done]
tane has quit [Remote host closed the connection]
ollehar has quit [Ping timeout: 256 seconds]
pkrnj has joined #ocaml
mattrepl has quit [Quit: mattrepl]
weie_ has quit [Read error: Connection reset by peer]
weie has joined #ocaml
groovy2shoes has joined #ocaml
cdidd has quit [Ping timeout: 264 seconds]
ttamttam has joined #ocaml
awm221 has quit [Quit: Leaving.]
groovy2shoes has quit [Quit: Computer has gone to sleep]
osa1__ has joined #ocaml
Kakadu has joined #ocaml
<Kakadu> morning!
<pippijn> morning
<pippijn> Kakadu: do you have a girlfriend or boyfriend?
<Kakadu> pippijn: no
<Kakadu> pippijn: I spend too much time in IRC?
<pippijn> hm.. ok
<pippijn> no
<pippijn> I didn't mean that
<Kakadu> why this question then?
<pippijn> my girlfriend went to a concert alone last night
<pippijn> and she was texting me the whole time
<pippijn> "I'm going to the concert"
<pippijn> "I'm at the concert, it's great"
<Kakadu> What kind of concert?
<pippijn> epica (symphonic metal)
<pippijn> "it's finished, I'm on the subway, so tired"
<pippijn> "I'm in the taxi"
<pippijn> "I'm almost home"
adahlber_ has joined #ocaml
<pippijn> and then she stopped
<pippijn> I wrote her 4 texts after that
<Kakadu> pippijn: she has a good taste
<Kakadu> (epica, I mean)
<pippijn> yeah, she does
<pippijn> she didn't text me "I'm home, going to sleep" or something
<pippijn> and I sent her another message in the morning "hey, did you arrive home safely?"
<pippijn> no reply
<Kakadu> And u are worried now?
<pippijn> am I overly attached for being worried now?
yacks has quit [Read error: Connection reset by peer]
<Kakadu> have u tried to call insteat of texting?
<Kakadu> instead*
adahlberg has quit [Ping timeout: 248 seconds]
yacks has joined #ocaml
<pippijn> no, I almost did
<pippijn> but I just went online, and she told me everything is ok
<pippijn> I am just wondering if I was acting overly attached by being worried
<Kakadu> Don't think so
<Kakadu> pippijn: Sometimes my friends ask me how I was arrived after late meeting
<Kakadu> pippijn: And girls which are not girlfriends too
<Kakadu> pippijn: so either it is country dependent or you are OK
<pippijn> normally when we are chatting online or texting, she always tells me when she's off to sleep
lenstr has quit [Quit: ZNC - http://znc.sourceforge.net]
<Kakadu> I spent last weeek trying to build my OCaml+QML stuff on other machines than mine.
<Kakadu> And now I know that in Mac Qt 5.0.2 can probably doesn't redraw a windows because some bug message
<Kakadu> And also I know that linking with Qt5.0.1 pacakges in Ubuntu 13.04 is broken
<pippijn> what are you doing with ocaml+qml?
<Kakadu> Hence, best environment to built it is mine debian/unstable and Qt5 built from git
<pippijn> bindings?
<orbitz> Kakadu: make a Nix package, that will tell you the best way to build it in isolation:)
<Kakadu> I just don't now how to write in caml-list something like "My stuff probably will not compile onyour machine"
<Kakadu> pippijn: Some codegenerator and test example with a la ocamlbrowser application
<orbitz> Kakadu: i believe the technical term is 'pre-alpha'
<Kakadu> orbitz: static linking?
<pippijn> ah
<pippijn> nice
mort___ has joined #ocaml
<orbitz> Kakadu: no, I actually don't think nix will help you here, but i just like to see things in nix packages since it's a pretty good key for how to build something + deps have to be extremely explicit since it buidls in chroot jail
tootooroo has quit [Quit: Brain.sys has encountered a problem and needs to close. We are sorry for the inconvenience.]
<Kakadu> orbitz: So, are you recommending me to built my code in debian chroot?
<orbitz> Kakadu: well if you install Nix you just write a nix package and it takes care of it for you
<orbitz> I personally have found it useful for determining how to get things to build in a replicatable fashion. But I already run Nix so it probably isn't worth it for yourself
<Kakadu> hmmm, it seems Nix is not a short word for unixes here ....
<orbitz> It is not, it is a package manager
<orbitz> I run NixOS as my primary development distro
<Kakadu> purely-functional storing of packages.... This approach probably uses a lot disk space
<pippijn> orbitz: that's cool
<pippijn> orbitz: I've had my eye on nixos for years
Trollkastel has joined #ocaml
<pippijn> orbitz: it builds packages in an empty chroot jail?
Tobu has quit [Ping timeout: 246 seconds]
<pippijn> orbitz: how does it handle dependencies?
<pippijn> orbitz: I suppose things you've already installed on your system will be copied over?
<pippijn> (or bind-mounted)
<Kakadu> hmmm,
<Kakadu> I don't feel enough power and disk space today to study this NixOS
osa1__ has left #ocaml []
wsebastian has joined #ocaml
Tobu has joined #ocaml
Snark has joined #ocaml
Yoric has joined #ocaml
eni has joined #ocaml
Fullma has joined #ocaml
Trollkastel has left #ocaml []
Tobu has quit [Ping timeout: 246 seconds]
mort___ has quit [Quit: Leaving.]
typoclass has joined #ocaml
mcclurmc has joined #ocaml
ulfdoz has joined #ocaml
Kakadu has quit []
Kakadu has joined #ocaml
LeNsTR has joined #ocaml
mcclurmc has quit [Ping timeout: 264 seconds]
Cyanure has joined #ocaml
RagingDave has joined #ocaml
anderse has joined #ocaml
ollehar has joined #ocaml
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
mcclurmc has joined #ocaml
mcclurmc has quit [Ping timeout: 256 seconds]
thomasga has joined #ocaml
ChristopheT has joined #ocaml
ChristopheT has quit [Remote host closed the connection]
ChristopheT has joined #ocaml
dsheets has joined #ocaml
q66 has joined #ocaml
madroach has quit [Quit: Lost terminal]
madroach has joined #ocaml
ontologiae has joined #ocaml
ulfdoz has quit [Ping timeout: 245 seconds]
Christop` has joined #ocaml
ontologiae has quit [Ping timeout: 252 seconds]
ChristopheT has quit [Ping timeout: 245 seconds]
tane has joined #ocaml
dsheets has quit [Ping timeout: 245 seconds]
thomasga has quit [Quit: Leaving.]
Christop` has left #ocaml []
tane has quit [Quit: Verlassend]
<orbitz> pippijn: you specify dependencies explicilty
<orbitz> Kakadu: it does use more, but it has a garbage collector
<orbitz> pippijn: bind mounting
<pippijn> orbitz: and the ones that are not installed in the system?
<orbitz> pippijn: will be installed
<orbitz> pippijn: installing a package is equivalent to evaluating a thunk
<orbitz> so installing something has to evaluate what it depends on so it can get to their values
<pippijn> oh
<pippijn> ok, I see
<pippijn> can you build a package without installing it?
<orbitz> what's the difference?
<pippijn> does nixos have binary packages at all?
<orbitz> it supports source, prebuilt binaries, and third party binaries (like java)
<pippijn> in debian, you build a package in a subdirectory, and then install it
<pippijn> a .deb file (cpio)
<orbitz> installing a package = building it (or downloading it), then creating some symlinks to the /nix/store path that you can now see
<adrien> (jdk isn't a third-party binary anymore btw)
<orbitz> uninstalling == removing symlinks
<adrien> (rather, shouldn't be ; since the one from oracle can't be redistributed)
<orbitz> and to really remove it, you do a garbage collect
<pippijn> I see
<orbitz> so /usr/bin is basically empty
<orbitz> the cool thing is, users can install packages without being root and without affecting other users env
<orbitz> so i can install ocaml 3.12, and you can install 4.00.1 on the same system and we'll never conflict
<adrien> where I disagree with nix is that there *ARE* hardcoded paths in binaries
<pippijn> is that a problem with nix or with that program?
<adrien> I'm having troubles understanding how you can have per-user installation of binary packages
<adrien> and I don't like source-based package managers that much
<pippijn> it should have a kind of union fs
<adrien> I'm fine with that for ocaml since I need to rebuild often but not for other things
<adrien> pippijn: you need to be root for that
<pippijn> where /usr is the union of all system installed packages
<adrien> everyone on the system will see the same thing
<pippijn> and a user sees a /usr with his packages mounted, as well
<adrien> not _his_: _all_
<pippijn> yeah, so there should be user-specific views
<adrien> that doesn't exist :P
<pippijn> just like freebsd has user-specific process tables
<adrien> unioning filesystems are already a very big issue
<pippijn> that should exist :)
<adrien> they're not in the linux kernel because of thse (although one fairly simple is likely to get in very soon)
<adrien> and filesystems providing views sound even worse
<pippijn> what issues?
<adrien> linux also has a user-specific process table but that is done through permissions
<adrien> but, using a system with per-user ability to list processes, I can guarantee you it's often awful
<adrien> want to know what's causing the high load on the system? you won't
<pippijn> yeah, I know
<adrien> which is why I consider the authors of pax/grsec quite stupid for some things (i.e. they remove the ability to see processes from others, which good for security, but they don't provide anything to fill in the gap they've left)
<adrien> anyway, for unioning file systems, you should try to find a series of article by valerie aurora (iirc) on lwn.net
<adrien> pretty good read; it's from a few years ago
<adrien> if you can't find it, let me know, I'll dig it up for uyou
<orbitz> adrien: because a users env is just a bunch of symlins from ~/.nix-profile, so I can isntall x and it's in my profile and you can install y and it's in your pfoile
<pippijn> I found 2
orbitz has quit [Quit: moving]
<adrien> pippijn: that's the articles I thought of
<adrien> there might be a third one
Yoric has quit [Ping timeout: 246 seconds]
Cyanure has quit [Remote host closed the connection]
beginner42 has joined #ocaml
<beginner42> what is the fix for this output?
<beginner42> .opam/config: Bad format! Expecting a string, got option(string("default"),{string("http://opam.ocamlpro.com") string("curl")})
ousia has quit [Ping timeout: 276 seconds]
orbitz has joined #ocaml
ousia has joined #ocaml
eikke has joined #ocaml
Cyanure has joined #ocaml
<eikke> has there ever been any work on encoding type-families in ocaml?
tane has joined #ocaml
tane has quit [Quit: Verlassend]
anderse has quit [Quit: anderse]
ontologiae has joined #ocaml
emmanuelux has joined #ocaml
typoclass has quit [Quit: Leaving.]
<adrien> anyone know how to prevent vim from splitting my long strings?
<adrien> I have a string of around 140 chars and textwidth=80; every time I do something, vim splits the line into two or three lines
<adrien> work-around 1: factor the string
<pippijn> hmm
<pippijn> I know a way
<pippijn> let me think for a while
adahlber_ has quit [Remote host closed the connection]
ttamttam1 has joined #ocaml
<pippijn> :autocmd CursorMoved,CursorMovedI * :if match(getline(.), '"') == 0 | :setlocal textwidth=0 | :else | :setlocal textwidth=80 | :endif
<pippijn> adrien: replace the if match/else/... code with an arbitrarily complex function that checks whether you're in a string and sets the text width appropriately
<pippijn> this might be enough, though
<adrien> ok, thanks; I'll have to spend some time dissecting that
<pippijn> I think in ocaml you can do
<pippijn> let foo = "blah blah \
<pippijn> blah blah"
<pippijn> and it's "blah blah blah blah"
<rks_> indeed
cdidd has joined #ocaml
romildo has joined #ocaml
<romildo> It seems that tuareg-mode-2.0.6 is not respecting tuareg-match-clause-indent:
<romildo> | pattern ->
<romildo> clause
<romildo> What shoud I do to get:
<romildo> | pattern ->
<romildo> clause
<romildo> Any clues?
ttamttam1 has quit [Quit: ttamttam1]
<Kakadu> Try to use ocp-indent
dsheets has joined #ocaml
romildo has quit [Quit: Leaving]
tane has joined #ocaml
ontologiae has quit [Ping timeout: 276 seconds]
Yoric has joined #ocaml
dsheets has quit [Ping timeout: 245 seconds]
<wmeyer> to answer romildo's question: 'M-x customize-mode <ENTER> tuareg-mode <ENTER>' brings immediately to indentation options for tuareg. There is of course other another way always, you can directly customize the variables.
<bernardofpc> is it possible to align after the -> ?
<wmeyer> you'd have to experiment, the answer is: I don't know :-)
<bernardofpc> ;-)
<wmeyer> for sure tuareg-mode brings a lot of identation options to the user
ontologiae has joined #ocaml
<wmeyer> Now I see that romildo has tried to use some variable
ontologiae has quit [Ping timeout: 256 seconds]
<wmeyer> adrien: hey :-)
<adrien> o/
<wmeyer> \o
darkf has quit [Quit: Leaving]
ollehar has quit [Quit: ollehar]
ollehar has joined #ocaml
<ollehar> how do I uninstall ocaml? purge doesn't work (ubuntu), the command is still there. need to start from scratch after major screw-up.
<ollehar> *command = ocaml
<orbitz> sounds like a distro problem
<orbitz> for me, nix-env -e ocaml
<ollehar> naw, it started when I tried to install branch ocaml-contract (adapted from 3.12.1), but I have 4.00.1 on my system.
<orbitz> why is that not a distro problem?
<ollehar> ah, you mean ocaml distro. not linux distro :)
<orbitz> no, i mean linux distro
<ollehar> hm
<ollehar> what's "nix-env"?
groovy2shoes has joined #ocaml
anderse has joined #ocaml
<wmeyer> ollehar: it's Nix based distro
<ollehar> ok
<orbitz> it's the command for installing/uninstalling packages in Nix
anderse has quit [Quit: anderse]
wwilly has joined #ocaml
<wmeyer> I think I can use OCaml to write my shell scripts ;-) (for many people a dodgy idea)
<orbitz> jane st claims to do it
<wmeyer> they do
<wmeyer> it brings safety for sure ;-)
<pippijn> with a small library of common functions
<pippijn> that is very reasonable
dsheets has joined #ocaml
<pippijn> the guy who turned SML/NJ into Mythryl also does that
<pippijn> (with mythryl)
<wmeyer> dsheets: wow, you are in CB
<pippijn> (cynbe)
<wwilly> hiop
<wmeyer> pippijn: there is Cash, and ShCaml
<wmeyer> both of them have some good stuff
<wmeyer> ShCaml seems to use very advanced type system features
<pippijn> like what?
<wmeyer> Cash is more like Scheme shell
<pippijn> ocaml's type system is rather simple
<pippijn> what advanced features does it use?
<wmeyer> phantom types with subtyping
<wmeyer> pippijn: yes, but it's heavy
<pippijn> maybe I'm old now
<pippijn> but phantom types feel very natural to me
beginner42 has quit [Quit: irc2go]
<orbitz> phantom types are natural, i don't know what 'with subtyping' exactly means though
<wmeyer> means that you annotate your phantom types using class types, which have structural subtyping relations
<wmeyer> they have dummy methods to express properties of your type
<pippijn> meh
<wmeyer> the same approach as in Macaque
<wmeyer> internally the ShCaml uses row types
<pippijn> I like the lablgtk way
<wmeyer> polymorphi variants?
<pippijn> yes
<pippijn> it has the same effect as classes
<wmeyer> well Shcaml does not use objects, but it does use row types (class types expressed in compact syntax)
ollehar has quit [Ping timeout: 252 seconds]
<wmeyer> look at empty type and set_seq value
<pippijn> yeah
<pippijn> and the rest of set_*
<pippijn> looks ok
<wmeyer> yes, it's a nice approach
<pippijn> I like it
ollehar has joined #ocaml
<wmeyer> and gives posibilty of enormous error messages to the user as well :-)
anderse has joined #ocaml
<dsheets> wmeyer, yep
<wmeyer> dsheets: beer?
<dsheets> tonight?
<wmeyer> why not, I can try to make it ;-)
<wmeyer> how long are you staying?
<dsheets> perhaps, where are you?
<dsheets> at least a year
<wmeyer> I know some good pubs
<wmeyer> but I am afraid might not be able to take the chalenge tonight I think
<dsheets> that's ok. i'm a bit tired. i just moved today out of a room in coton so xavier clerc can move in tomorrow ;-P
<wmeyer> what? You are coming in waves to CB, what's happend :-)
<dsheets> ocaml labs is hot
<wmeyer> looks like it is
<pippijn> I'm in cold karlsruhe
<wmeyer> karlsruhe almost sounds like Polish swearing
<bernardofpc> ruhe sounds like peace, doesn't it ?
<pippijn> it is
<pippijn> rest
<pippijn> charles' rest
<pippijn> he's resting here
<pippijn> in a pyramid
<wmeyer> interesting
eikke has quit [Ping timeout: 245 seconds]
eikke has joined #ocaml
breakds has joined #ocaml
ollehar has quit [Ping timeout: 264 seconds]
mcclurmc has joined #ocaml
iZsh has quit [Quit: Coyote finally caught me]
ollehar has joined #ocaml
pkrnj has joined #ocaml
<ollehar> trying to compile ocamlbranch contracts, get "cannot find graph.cma", but it's located in:
<ollehar> olle@olle-ThinkPad-X220:~/ocaml/contract/contracts$ locate graph.cma
<ollehar> /usr/lib/ocaml/ocamlgraph/graph.cma
<ollehar> should I specify something in ./configure?
eni has quit [Quit: Leaving]
<ollehar> or what's the ocaml lib path again?
<orbitz> depends on where it's installed
<wmeyer> ollehar: some older versions of ocamlgraph are not ocamlfind enabled AFAIK, you have to add "-I ocamlgraph graph.cma" to your command line before your cmo's
<ollehar> you mean -I +ocamlgraph etc? yeah, that's done in the makefile of ocaml-contracts
<ollehar> can't I `echo $OCAML_LIB_PATH`?
<wmeyer> it's usually not enough as ocamlgraph is a separate directory
anderse has quit [Quit: anderse]
iZsh has joined #ocaml
<ollehar> so if caml is not looking in /usr/lib/ocaml, how do I know where it's looking?
<orbitz> Do you care where it is looking, or do you just want to tell itto look more palces?
<ollehar> look more placec would do
<ollehar> *places
anderse has joined #ocaml
<orbitz> Are you using ocamlfind?
<ollehar> it's an ocaml branch, so there answer is no, I think
<ollehar> there is this line:
<ollehar> COMPFLAGS=-warn-error A -I +ocamlgraph $(INCLUDES)
pkrnj has quit [Quit: Computer has gone to sleep.]
<ollehar> in the makefile
<orbitz> What are you having compiling? A library for ocaml, or ocaml itself/
<wmeyer> and you have to add the library itself
pkrnj has joined #ocaml
<ollehar> ocaml itself (but branched)
<orbitz> Why do you need it to look new places for libraries?
<ollehar> it didn't find /usr/lib/ocaml/ocamlgraph
<ollehar> I copied ocamlgraph to /usr/local/lib/ocaml/...
<ollehar> kind of messy, that's why I wanted to purge ocaml before :P
<orbitz> well if it can't find something in /usr/lib/ocaml, copying it to /usr/local/lib/ocaml won't help much
groovy2shoes has quit [Quit: It is now safe to turn off your groovebot.]
mcclurmc has quit [Ping timeout: 256 seconds]
mcclurmc has joined #ocaml
anderse has quit [Quit: anderse]
ontologiae has joined #ocaml
awm22 has joined #ocaml
thomasga has joined #ocaml
pkrnj has quit [Quit: Computer has gone to sleep.]
typoclass has joined #ocaml
ollehar has quit [Ping timeout: 245 seconds]
breakds has quit [Quit: Konversation terminated!]
wmeyer has left #ocaml []
astertronistic has joined #ocaml
dsheets has quit [Ping timeout: 245 seconds]
ttamttam has left #ocaml []
ollehar has joined #ocaml
Yoric has quit [Quit: Instantbird 1.4a1pre -- http://www.instantbird.com]
Yoric has joined #ocaml
jave has quit [Ping timeout: 255 seconds]
jave has joined #ocaml
Snark has quit [Quit: leaving]
awm22 has quit [Quit: Leaving.]
jave has quit [Ping timeout: 245 seconds]
jave has joined #ocaml
gnuvince has quit [Remote host closed the connection]
scribble has joined #ocaml
Yoric has quit [Ping timeout: 246 seconds]
wsebastian has quit [Quit: Bye]
Kakadu has quit []
walter has quit [Quit: This computer has gone to sleep]
Cyanure has quit [Read error: Connection reset by peer]
walter has joined #ocaml
ulfdoz has joined #ocaml
smerz_ has joined #ocaml
pkrnj has joined #ocaml
walter has quit [Quit: This computer has gone to sleep]
jbrown has quit [Ping timeout: 260 seconds]
hto has quit [Ping timeout: 256 seconds]
dsheets has joined #ocaml
<ollehar> can you compile a bytecode file into binary format? cmo to cmx, or exe.
gnuvince has joined #ocaml
_yezariaely has quit [K-Lined]
emmanuelux has quit [Quit: emmanuelux]
ollehar has quit [Ping timeout: 260 seconds]
walter has joined #ocaml
pkrnj has quit [Quit: Computer has gone to sleep.]
RagingDave has quit [Quit: Ex-Chat]
scribble has quit [Ping timeout: 252 seconds]
ollehar has joined #ocaml
thomasga has quit [Quit: Leaving.]