gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0 http://bit.ly/aNZBUp
Edward__ has quit []
SEcki has quit [Remote host closed the connection]
fraggle_ has quit [Ping timeout: 250 seconds]
fraggle_ has joined #ocaml
ccasin has quit [Quit: Leaving]
tmaeda has quit [Ping timeout: 260 seconds]
tmaeda has joined #ocaml
ccasin has joined #ocaml
ulfdoz has quit [Ping timeout: 240 seconds]
unkanon has joined #ocaml
eaburns has joined #ocaml
<unkanon> I'm trying to compile glMLite
<unkanon> I downloaded it and untarred it
<unkanon> I do sudo make
<unkanon> but it fails:
<unkanon> varray.wrap.c:65:20: error: GL/glx.h: No such file or directory
<unkanon> I bet that's an easy peasy fix
<adrien> you need headers for mesa probably
<unkanon> oh mesa
<adrien> (if you're on linux that is)
<unkanon> i'm on a mac
<adrien> mesa-dev or something like that
<unkanon> but the tutorial did mention mesa
<unkanon> oh apt-get it?
<adrien> hmmm
<adrien> on mac?
<unkanon> yep. I wanna do ocaml + opengl on a mac :)
<adrien> I really don't know for mac os x, I think the "dev" tools are separate and if you have make/gcc you've probably installed part of them, so now you need to find which "package" it comes from
<unkanon> it = mesa ?
<unkanon> I wonder why I need this "mesa" thing though
<unkanon> I can run opengl code from other languages fine
<adrien> oh, sorry, it maybe won't be called mesa
<adrien> I jsut don't know at all the name
<unkanon> ok, I'll google the error, message
<unkanon> oops, don't know what that comma is doing there
<adrien> basically it's headers for opengl, on linux it'd be "mesa-dev" typically, on mac os x, if you can't find the info somewhere else, load the package manager or the list of packages for development and get what relates to opengl and headers/development
<unkanon> they say the headers come with an installation of Xcode
<unkanon> which is the devplatform for mac
<unkanon> problem is, I already have Xcode installed
<unkanon> soooo I think I'll as on #macosx
<adrien> it's also possible that the headers are somewhere else or under a different name
<adrien> I'm pretty sure there are people here who've done opengl on mac so you can probably wait (but it's the channel sleep-time so there aren't that many people)
<unkanon> okay I found my header files!
<unkanon> well, somebody else at #macosx found them for me
<unkanon> now I need to find a way to tell make where they are
ccasin has quit [Quit: Leaving]
<xl0> Do I get it right that one needs to use the string module to solve the second problem from the first ora chapter?
<xl0> It is not introduced before 100 pages later.
smerz has quit [Quit: Ex-Chat]
<adrien> what the "problem"?
<xl0> s/problem/exersise/, http://pastie.org/1418836
<xl0> Or is there a simple way to split characters from strings that I've missed?
<adrien> afaict (late and horrible headache), not realy: you need to test if two strings are equal and you can do this with =
<adrien> the only thing you'll need seems to be String.length
<xl0> It seems that I'd need to be able to dissect strings into individial characters to build a lexical tree.
<adrien> I can't think at all right now, but if you want to access the i-th character of a string s, use s.[i]
eaburns has quit [Quit: leaving]
<adrien> also, the doc for the String module is quite easy, it won't take much thinking to understand so if something is missing, you can jump there directly
<adrien> good night
<xl0> Thank you.
boscop_ has joined #ocaml
boscop has quit [Ping timeout: 240 seconds]
eaburns has joined #ocaml
Amorphous has quit [Ping timeout: 272 seconds]
caligula_ has joined #ocaml
caligula has quit [Ping timeout: 264 seconds]
Amorphous has joined #ocaml
drunK has quit [Remote host closed the connection]
banisterfiend has quit [Ping timeout: 264 seconds]
<opla2> how does one define an interface that in turn implements 2 other inferfaces?
ftrvxmtrx has joined #ocaml
Pip has joined #ocaml
Asmadeus has joined #ocaml
joewilliams is now known as joewilliams_away
banisterfiend has joined #ocaml
LeNsTR|emacs has joined #ocaml
LeNsTR|emacs has left #ocaml []
LeNsTR has joined #ocaml
Pip has quit [Quit: It's not my problem.]
kmicinski has joined #ocaml
edwin has joined #ocaml
kmicinski has quit [Ping timeout: 264 seconds]
ygrek has joined #ocaml
ski has quit [Ping timeout: 264 seconds]
ski has joined #ocaml
avsm has quit [Ping timeout: 240 seconds]
avsm has joined #ocaml
avsm has quit [Ping timeout: 240 seconds]
avsm has joined #ocaml
ttamttam has joined #ocaml
ttamttam has left #ocaml []
<gildor> ygrek: more info about hudson broken links ?
<gildor> ygrek: it doesn't work in anon mode ?
<ygrek> yes, says permission denied
<gildor> I can confirm that
<gildor> would you be kind enough to open a bug?
<ygrek> ok :)
<gildor> I have several bugs to solve ;-)
<gildor> Do you know who is tautologico ?
<ygrek> nope
<gildor> too bad, I hope he won't stay stuck in this situation
<gildor> I think he got banned due to too many invalid login
<ygrek> btw imho the current aggressively red forge theme is worse than previous one..
<gildor> ygrek: it can be improve, any suggestion are welcomed
<ygrek> revert to the previous one :)
<gildor> ygrek: you can do this for your account into your setting
<ygrek> oh, just logged in - it is ok
<gildor> ygrek: what is your problem with the theme ?
<ygrek> no problem, I just think that the default anonymous theme is too aggressive (in color)
<gildor> do you have an idea how to change the color to be less aggressive ?
<ygrek> I like my current (when logged in) theme more - with silver background - it is called "default theme" in settings
<gildor> yes, this is the one from fusionforge, but it lacks a bit of OCaml identity
<gildor> ygrek: I can change background colors et al, I just would like to make the OCaml Forge theme different enough to the FusionForge theme
<ygrek> maybe the "sand" color as in oasis front page? (anyway it is my subjective opinion)
<gildor> that is an option
<gildor> (to be honest, I am really bad at color scheme)
<gildor> the pb with the sand color is that I take it from ocamlcore.com, and I don't want people to think that I am trying to convert the OCaml Forge into a commercial advertisement for my company
<gildor> (it is not the case)
Edward__ has joined #ocaml
ikaros has joined #ocaml
Edward__ has quit []
yezariaely has joined #ocaml
yezariaely has left #ocaml []
ulfdoz has joined #ocaml
Yoric has joined #ocaml
opla2 has quit [Ping timeout: 255 seconds]
<rixed> gildor: ever tried something like http://www.colorschemer.com/ ?
<gildor> rixed: yep, I have links like this
<gildor> mais c'est comme une poule qui a trouvé un couteau
<gildor> I don't really know how to build nice looking website
<gildor> rixed: do you agree with ygrek about the color being too aggressive ?
<gildor> rixed: would you prefer sand color background
LeNsTR has quit [Quit: LeNsTR]
hto has joined #ocaml
LeNsTR has joined #ocaml
avsm1 has joined #ocaml
avsm has quit [Read error: Connection reset by peer]
LeNsTR has quit [Quit: LeNsTR]
<rixed> gildor: I had a quick look at the new design and I liked it. But c'est comme une poule qui regarde un couteau
<rixed> gildor: the problem I noticed, though, is the red links (link to login IIRC) that were barely visible
<gildor> rixed: indeed, C. Troestler told me about the red link
LeNsTR has joined #ocaml
LeNsTR has quit [Changing host]
LeNsTR has joined #ocaml
<gildor> rixed: I will change it
ftrvxmtrx has quit [Read error: Operation timed out]
ftrvxmtrx has joined #ocaml
eaburns has left #ocaml []
ygrek has quit [Ping timeout: 240 seconds]
ygrek has joined #ocaml
<gildor> ygrek: hudson pb fixed
<ygrek> thx
<gildor> ygrek: refresh your web browser page on the forge
<gildor> (just change the background)
<gildor> using the OCaml Forge theme
* gildor gtg, back in an hour
<edwin> I like the sand color better than the red one too
rks has quit [Quit: {'EXIT', rks, "bye"}]
<gildor> edwin: if rixed, ygrek and C. Troestler think the same, I will use the OASIS theme
<edwin> ok
<edwin> gildor: there's some overlapping text on the extunix page on the forge. Do you want a bugreport, or does it happen on your browser as well?
<edwin> gildor: the top rightmost tab "ExtUnix - extended Unix module" overlaps with the Hudson tab below
<gildor> adrien: you can go for a bug report
<gildor> adrien: I don't know how to solve this one, however
joewilliams_away is now known as joewilliams
<edwin> gildor: did you mean edwin instead of adrien?
<adrien> actually I have the same problem with yypkg, it takes two lines, but I'm leaving right now (I even have my gloves on)
* ygrek thinks forge looks better now
* ygrek away
<gildor> edwin: I mean edwin, sorry
trch has joined #ocaml
<edwin> gildor: filed a bug, thanks
ulfdoz has quit [Ping timeout: 246 seconds]
unkanon_ has joined #ocaml
<unkanon_> I remember seeing a set of slides showing the strengths of an ML language (I suspect it was ocaml) regarding programming parsers
<unkanon_> and I remember them doing some code like [| code here |] and the interpreter/compiler would generate an AST for that code
<unkanon_> do you guys know what I'm talking about?
<unkanon_> it was indeed ocaml *whew* :)
<unkanon_> I'm amazed at how underrated ocaml is
ftrvxmtrx has quit [Read error: Operation timed out]
<gildor> edwin, ygrek: have a look at the "sandy" theme
<gildor> (hit refresh on your browser)
<edwin> gildor: this one's fine with me, but I'm not a designer so what do I know? :)
<gildor> edwin: do you believe I am designer ?
<gildor> edwin: (hint 1: I edit the theme with vim)
<edwin> no, just saying that taking advice from me is not going to make the site better :D
<edwin> if you ask me there are too many tabs and links on the site, I never really liked the design of sourceforge and the like
<edwin> but I don't have the skills to design something better so I just live with it (I'm a coder, not a webdesigner)
<gildor> edwin: you are part of the ocaml community and you can express what you think about the website
<gildor> (and I decided to hear you)
<edwin> sure
<edwin> thanks
<gildor> concerning too many links, that is indeed a recurring pb of FusionForge website
<gildor> the only thing we can do is to help them improve that
<gildor> on the long term, forge like site, has more and more links
ftrvxmtrx has joined #ocaml
<edwin> I don't know what would be better, but I think the summary pages are overcrowded
<edwin> thats more like a very detailed about page
<adrien> I found that simply moving some boxes around improved things (makes the page shorter)
<edwin> I like simpler welcome pages
<edwin> just project description, link to download, bugreport, and scm
<edwin> for example I like the simplicity of google code
<adrien> adand something simple: "License : OSI Approved : GNU General Public License (GPL)" is simply too long
<adrien> might sound useless to shorten it but it takes two lines to display here
<gildor> simpler welcome page -> it seems possible to remove boxes on the welcome page of each project
<gildor> (that is a nice new feature BTW)
rixed_ has joined #ocaml
<edwin> something like oasis's webpage looks more suitable to me
<gildor> adrien: ok, I hear you (though I don't have enough manpower to solve the problem)
<edwin> gildor: maybe I should setup a project and play with the boxes to see if I can get something that I like
<gildor> edwin: you mean like http://oasis.ocamlcore.org/dev/browse?ver=0.2.0~alpha1&pkg=oasis
<gildor> edwin: yes, go ahead
<edwin> thats not ideal either, but I like it more than the forge and alioth welcome pages
<gildor> edwin: ok, will try to find an in-between solution (one day)
<edwin> this is really nice (IMHO) for example: http://code.google.com/p/bitstring/
<edwin> (both the project itself, and the way the welcome page looks like)
<gildor> edwin: I know google code, but we don't have the same people behind the scene
<gildor> I mean that google have some webdesigner -- I don't ;-)
<edwin> :)
<edwin> I'd say don't waste too much on design, getting oasis-db up and running would be far more interesting for me
<gildor> ah thx, for the change of subject
<gildor> I can focus on another windows of my workspace ;-)
<edwin> the bundled tarball looks good, especially if you start using it with oasis itself. Right now I need to download 2 or 3 other tarballs, build and install them just to build oasis
<edwin> does oasis support subprojects? or what will be the "script to compile everything"?
<adrien> I shortened things a bit ( http://notk.org/~adrien/yypkg_forge.html, missing css ) and was able to spare several lines without removing everything (compare to https://forge.ocamlcore.org/projects/yypkg/ ), I believe it can be shortened without a major redesign
avsm1 has quit [Quit: Leaving.]
ftrvxmtrx has quit [Ping timeout: 260 seconds]
<gildor> edwin: seems to be the case with other as well
<gildor> edwin: you don't mind feeling a bug report
<gildor> ?
<edwin> ok opening one
<gildor> I'll leave for my new year eve evening
<gildor> in a few minutes
<gildor> happy new yer all #ocaml
<edwin> happy new year
<adrien> I believe there are a lot of poorly worded sentences and I hope I can get in touch with fusionforge next week, lots of low-hanging fruits
<adrien> and will leave soon too: happy new year =)
<adrien> (one thing done a lot in the forges is: write "Project Description" instead of "Description", and a general abuse of caps)
ftrvxmtrx has joined #ocaml
Pip has joined #ocaml
<rixed_> Anything better than Facile for CSP in OCaml ?
almaisan-away is now known as al-maisan
al-maisan is now known as almaisan-away
almaisan-away is now known as al-maisan
al-maisan is now known as almaisan-away
dark has joined #ocaml
<dark> may I say that in ocaml, all operators are left associative? (I see that 1 - 2 - 3 = (1 - 2) - 3, 12 / 2 / 3 = (12 / 2) / 3, ..)
<mrvn> no
<dark> ::?
trch has left #ocaml []
<dark> i see that a :: b :: c is a :: (b :: c)
<dark> but is :: an operator?
<alpounet> it's a special operator
<alpounet> not like + for example
<mfp> dark: (**), (^), (@), and other operators having these as the prefix (e.g (@@) or (^^)) are right-associative
<dark> oh. thanks
<alpounet> dark, for example, you can't do:
<alpounet> # let foo f = f 0 [1;2];;
<alpounet> # foo (::) ;;
<dark> oh, ok
<dark> is + left associative? (i guess its associativity may be undefined without much trouble)
<dark> oh, the ocaml manual has a part on "operators" at "the ocaml language"
<dark> ok, found the associativity table, +, -, *, .. are left associative
Yoric has quit [Quit: Yoric]
fraggle_ has quit [Read error: Operation timed out]
fraggle_ has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
ftrvxmtrx has quit [Ping timeout: 246 seconds]
ftrvxmtrx has joined #ocaml
mnabil_ has joined #ocaml
rixed_ has quit [Ping timeout: 246 seconds]
rks has joined #ocaml
lamawithonel has joined #ocaml
Pip has quit [Quit: It's not my problem.]
lamawithonel has quit [Read error: Connection reset by peer]
lamawithonel has joined #ocaml
<thelema_> alpounet: (::) isn't a function, it's a variant constructor
<banisterfiend> thelema_: stop talking fancy
edwin has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 240 seconds]
<hcarty> banisterfiend: It may be fancy talk, but it's rather important and somewhat surprising to newcomers fancy talk
<dark> thelema_, is :: really a constructor?
<dark> i see haskell has this, uhm, concept, of infix constructors
<dark> it seems :: is lonely in ocaml then
<dark> also if I have type a = Something of int, I can't use Something as an int -> a function in ocaml. But I can use (::) as a function? why is that? (Btw (::);; at interpreter here gives syntax error..)
<dark> oh, that foo (::) code does not work, alpounet..
<hcarty> dark: I'm fairly certain you can't use ( :: ) as a function
<hcarty> dark: I think that was part of alpounet's intention
<hcarty> In the example, that is
<dark> oh. uhm. well I should. ._. the constructor-used-as-function model is, erm, nice