delamarche has quit [Read error: 110 (Connection timed out)]
menace has quit [Connection timed out]
so__ has quit [Client Quit]
khaladan has joined #ocaml
chessguy has joined #ocaml
CosmicRay has quit [Read error: 110 (Connection timed out)]
Nargg_ has quit [Read error: 104 (Connection reset by peer)]
Nargg has joined #ocaml
WhatTheDeuce has joined #ocaml
<jer>
anybody know of an ocaml bundle for textmate?
Nargg_ has joined #ocaml
Nargg has quit [Read error: 110 (Connection timed out)]
<cyyoung>
there's one standard in the current release I'm using
<jer>
hrmm.. what release? i'm using 1.5.1
<jer>
i see one in svn, but i can't check it out, keep getting 501 server doesn't support PROPLIST and whatnot (guessing it's not got mod_svn/mod_webdav running)
<cyyoung>
hmm, i'm on 1.5.1 also
<cyyoung>
try asking in #textmate
<jer>
oh right =] sorry
<cyyoung>
i may have gotten it from the svn now that i think about it
<cyyoung>
just fyi it has a few syntax bugs
<cyyoung>
like if you do: let function (value:type) = the bundle doesn't catch the function
<jer>
ah
<jer>
oh well, i just want *something* =]
<cyyoung>
it actually is pretty good and has snippets, it's just a couple syntax omissions that annoy more than anything
delamarc1e has quit [Read error: 110 (Connection timed out)]
Smerdyakov has quit ["Leaving"]
oat|fr has joined #ocaml
oat|fr has quit []
delamarche has quit []
shawn has joined #ocaml
masteraka has quit [Remote closed the connection]
wimp has left #ocaml []
pango is now known as pangoafk
pangoafk is now known as pango
Schmurtz has quit ["Dodo !"]
_jol_ has joined #ocaml
_jol__ has joined #ocaml
_jol__ has left #ocaml []
_jol_ has quit [Read error: 110 (Connection timed out)]
b00t has quit [Remote closed the connection]
Revision17 has joined #ocaml
_JusSx_ has joined #ocaml
revision17_ has quit [Read error: 110 (Connection timed out)]
Bigb[a]ng is now known as Bigbang
slipstream-- has joined #ocaml
slipstream has quit [Read error: 110 (Connection timed out)]
<creichen>
Is there some way to filter out structures from export during library construction?
<creichen>
That is, if I have a library consisting of modules A and B, but only want to provide B (where A is presumably used within B or exported as a sub-module of B) to people who link against my library, how would I achieve that?
<love-pingoo>
probably using interfaces
<love-pingoo>
I did very few .cma packing, so I don't really know
<creichen>
Is there some way to name the signature implicitly defined for an mli file?
szloto has quit [Read error: 104 (Connection reset by peer)]
<pango>
creichen: the other way around is probably easier: define your signature somewhere, and "include" it in the .mli
<creichen>
pango: At that point, I might as well bypass the mli entirely and put it all into the ml file...
<pango>
then you'll have nested module, no ?
<creichen>
module type SIGNATURE = sig ... end;; module Structure : SIGNATURE = sig ... end;; open Structure;;
<pango>
yes, but from outside you'll need B.Structure
_jol_ has joined #ocaml
<creichen>
No, because of the 'open'.
<creichen>
Unless 'open' semantics are different than in SML...
<pango>
open is only visible from within B, in your example
<pango>
bbl
<creichen>
So 'open' semantics are different than in SML. Thanks, I'd forgotten about that...
pango is now known as pangoafk
szloto has joined #ocaml
<creichen>
This implicit module naming stuff is turning out to be a very annoying misfeature in practice...
<creichen>
Concatenating all source files before compilation would give me the desired semantics but (surprise!) break incremental compilation.
<creichen>
pangoafk: Thanks. It would seem that your suggestion is the most reasonable solution.
Ali` has quit []
CosmicRay has joined #ocaml
<creichen>
Is there some functionality in the standard library for getting the time of day (in millisecond resolution or better)?
mikeX has joined #ocaml
<_jol_>
creichen: Unix.gettimeofday
Snark has joined #ocaml
_jol_ has quit [Read error: 104 (Connection reset by peer)]
_jol_ has joined #ocaml
<creichen>
_jol_: Thanks... I guess I should use some external library if I want to remain platform independent (Sdltimer or some such).
chessguy has joined #ocaml
CosmicRay has quit [Read error: 110 (Connection timed out)]
CosmicRay has joined #ocaml
pangoafk is now known as pango
<pango>
creichen: it's called Unix because functions names match libc API, but some of it is implemented on non-Unix platforms too
khaladan has quit [Read error: 104 (Connection reset by peer)]
smimou has joined #ocaml
CosmicRay has quit [Read error: 110 (Connection timed out)]
Bigbang is now known as Bigb[a]ng
jcreigh has joined #ocaml
pango is now known as pangoafk
pangoafk is now known as pango
jcreigh has quit ["Do androids dream of electric sheep?"]
finelemon has joined #ocaml
finelemo2 has joined #ocaml
finelemo1 has quit [Read error: 110 (Connection timed out)]
finelemon has quit [Read error: 110 (Connection timed out)]
CosmicRay has joined #ocaml
khaladan has joined #ocaml
jcreigh has joined #ocaml
cmeme has quit [Connection timed out]
cmeme has joined #ocaml
jcreigh has quit ["Do androids dream of electric sheep?"]
jcreigh has joined #ocaml
jcreigh has quit ["Do androids dream of electric sheep?"]
love-pingoo has quit ["Connection reset by by pear"]
khaladan has quit [Read error: 104 (Connection reset by peer)]
CosmicRay has quit [Read error: 110 (Connection timed out)]
ski has quit [Read error: 110 (Connection timed out)]
ski has joined #ocaml
danly has joined #ocaml
CosmicRay has joined #ocaml
Snark has quit ["Leaving"]
Schmurtz has joined #ocaml
Schmurtz has quit [Client Quit]
_JusSx_ has quit ["leaving"]
coder_ has joined #ocaml
<coder_>
This language irritates me so much.... No variables!? How do you guys do it?! :P
<coder_>
I don't understand!
<coder_>
I like the syntax's look, but how is it possible to write anything without variables and only constants?
<mellum>
well, there are zillions of examples you can look at
<coder_>
I'd love to use OCaml (because its syntax is so darn pretty :P) but I can't get my head around the stinking no variables + recursion stuff
<mellum>
No problem. Just enter some IRC channel, ask a vague question, and you will get a 2-line answer that will immediately solve all of your problems.
<coder_>
I'm sorry for being stupid....
smimou has quit ["bli"]
<creichen>
coder_: What exactly are those "variables" supposed to be good for anyway?
<coder_>
Everything.
<coder_>
42.
<mellum>
coder_: well, I don't think we can tell you anything you don't probably know: go read a book. Write small programs. Ask somebody when you get stuck.
<mellum>
Just like with learning anything else.
<coder_>
Ay. I'm not sure this is the language I want to use for my current projects.
<coder_>
I'm skipping around
WhatTheDeuce has joined #ocaml
<creichen>
coder_: Let's just say that it works. You can even have mutable values if you really need them, but usually they just complicate matters.
<coder_>
You can?
<coder_>
I'm writing an interpreter suite for tons of esoteric languages
<creichen>
Bytecode interpreter or lexer+parser+interpreter?
<coder_>
Not exactly sure how to change values of cells (in Brain****) using OCAML... Or in theory (from what I know about OCaml) how it'd be possible
<creichen>
IIRC, arrays are mutable reference objects in O'Caml (well, at least in SML they are). Those should probably work for that, but if you're not concerned about performance, closures offer a much easier solution.
<coder_>
Ah, I'll take a looksie at that
<mellum>
actually, you'd probably use the Map module if you wanted to have a functional solution
<creichen>
mellum: What kind of map does the O'Caml Map module implement?
<creichen>
mellum: Well, closures are syntactically trivial, and if performance is a non-issue...
<coder_>
Oooh, I found some tutorials that will help me learn the part of OCaml I need to figure out
<coder_>
(As well as file IO and the like, that I'll need)
* creichen
did some measurements on SML/NJ on IA32 once and actually found nested closures to outperform all other representations he could think of for very small maps (<6 or 7 entries). Doesn't say anything about O'Caml, of course...
<mellum>
creichen: balanced binary tree
coder_ has quit ["Leaving"]
<creichen>
mellum: Thanks!
<mellum>
well, going to bed now... see you
<jer>
anybody know of a coroutine library for ocaml? (i could bind a C lib, but i'm curious if there's something pre-existing)
shawn has quit ["This computer has gone to sleep"]
<flux__>
you mean threading with scheduling controlled by a 'yield'?
<flux__>
a related concept is 'streams', they are fun
<jer>
ok, i'll have a look (sorry, i'm still fairly new to ocaml)
Ali` has joined #ocaml
<jer>
flux__, can you help me out with a link? i've been hunting and hunting and the only thing i can find named "streams" is related to parsing; which isn't at all what i need this for (nor does it sound like what you described)
shawn has joined #ocaml
CosmicRay has quit [Read error: 113 (No route to host)]