<ptolomy>
Anybody know what is on the horizon for the next major version of the compiler? or if there is a next major version in the works?
<beschmi>
next release is 3.09 afaik, but i don't know of any big changes
<beschmi>
but there are some extensions to ocaml that are not integrated in the mainline like acute or ocamlduce
<twobitsprite>
I'm trying to figure out a goo way to break long lines... are there strong conventions in place, or do you generally just break and indent where it seems reasonable?
vodka-goo has quit [Read error: 110 (Connection timed out)]
<twobitsprite>
hmm... it seems like changing the contents of the ref that you are matching on has undefined results.... :P
threeve has quit []
mikeX has joined #ocaml
<Smerdyakov>
twobitsprite, you read that in the manual?
Maldoror has quit [Read error: 110 (Connection timed out)]
pango_ has joined #ocaml
pango has quit [Read error: 148 (No route to host)]
mikeX has quit ["Leaving"]
UziMonkey has joined #ocaml
Submarine has joined #ocaml
vezenchio has joined #ocaml
CruX_ has quit [Read error: 104 (Connection reset by peer)]
CruX has joined #ocaml
UziMonkey has quit [":q"]
__DL__ has joined #ocaml
__DL__ has quit [Remote closed the connection]
__DL__ has joined #ocaml
Skal has joined #ocaml
m3ga has joined #ocaml
m3ga has quit [Client Quit]
__DL__ has quit [Remote closed the connection]
__DL__ has joined #ocaml
Submarine has quit ["Leaving"]
Demitar has joined #ocaml
pango_ has quit [Read error: 104 (Connection reset by peer)]
Demitar has quit [Client Quit]
ski_ has joined #ocaml
ski has quit [Nick collision from services.]
pango has joined #ocaml
ski_ is now known as ski
mlh has quit [Client Quit]
avlondon1 has joined #ocaml
avlondono has quit [Read error: 110 (Connection timed out)]
revision17_ has joined #ocaml
Submarine has joined #ocaml
Schmurtz has joined #ocaml
avlondono has joined #ocaml
Submarine has quit [Client Quit]
Revision17 has quit [Read error: 110 (Connection timed out)]
avlondon1 has quit [Read error: 110 (Connection timed out)]
alek2 has joined #ocaml
Nutssh has quit ["Client exiting"]
alek2 has left #ocaml []
ski has quit ["nmi"]
ski has joined #ocaml
menace has joined #ocaml
ski_ has joined #ocaml
ski has quit [Nick collision from services.]
ski_ is now known as ski
Snark has joined #ocaml
jave has left #ocaml []
m3ga has joined #ocaml
y6cmE has joined #ocaml
mattam has quit ["brb"]
m3ga has quit ["disappearing into the sunset"]
mattam has joined #ocaml
threeve has joined #ocaml
Schmurtz has quit [Read error: 104 (Connection reset by peer)]
Schmurtz has joined #ocaml
Skal has quit [Read error: 54 (Connection reset by peer)]
Skal has joined #ocaml
Snark has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
Submarine has quit ["Leaving"]
y6cmE has quit [Read error: 110 (Connection timed out)]
Snark has joined #ocaml
albertelegance has joined #ocaml
Aradorn has joined #ocaml
chs__ has quit []
CruX has quit [Nick collision from services.]
CruX_ has joined #ocaml
ski_ has joined #ocaml
ski has quit [Nick collision from services.]
ski_ is now known as ski
Aradorn has quit [Connection timed out]
pango has quit ["bbl"]
pango has joined #ocaml
mikeX has joined #ocaml
Msandin has joined #ocaml
mikeX has quit ["Leaving"]
ski_ has joined #ocaml
ski has quit [Nick collision from services.]
ski_ is now known as ski
Msandin has quit [Read error: 110 (Connection timed out)]
ski has quit ["Zzzz"]
<mellum>
I need a data structure like Set or Map where the size is tracked so it doesn't need O(n) to retrieve. Does that exist anywhere already?
<twobitsprite>
mellum: hashtable?
<mellum>
twobitsprite: no, something functional
<twobitsprite>
why does it have to be functional?
<mellum>
twobitsprite: because that makes programming much easier
<twobitsprite>
does this data structure need to be dynamic? i.e. is it going to be constructed on the fly?
<mellum>
Yes. If I just query it, it wouldn't matter whether it's functional or imperative, would it?
<twobitsprite>
correct...
menace has quit []
<twobitsprite>
well... updating memory in place is always going to be faster than the copy/substitute methodology, and the only way to avoid ether of those (that I know of) is through some form of linking mechanism, where one member of the data structure canbe created and "attached" to the rest of the structure, but then you get into linking, and to querry this data strcutre from any given element, you must walk these links... thus giving rise to hi
<mflux>
mellum, I think the size could be tracked by simply each node knowing the size of its siblings, no?
<mflux>
that would also allow queries in the form 'how many values between 7 and 42'
<twobitsprite>
mflux: but you still have O(n) to querry the size of the structure... you have to walk through each simbling to compute the total size...
<mflux>
twobitsprite, no, you build the size to each node while you build/modify/balance the structure?
<mellum>
mflux: absolutely, that would work. I'm just to lazy to code that myself
<mellum>
but it looks like I'll have to.
<mflux>
happy coding ;)
<mflux>
maybe you could take some existing one and hack that feature to it
<mellum>
yeah, I'll look into that... *sigh*
Snark has quit ["Leaving"]
zigong has joined #ocaml
natv has joined #ocaml
zigong has left #ocaml []
vezenchio has quit ["Free Tibet with each Asian nation of a lesser or equal value"]
CruX_ has left #ocaml []
monochrom has joined #ocaml
smimou has joined #ocaml
threeve has quit []
__DL__ has quit [Remote closed the connection]
smimou has quit ["?"]
threeve has joined #ocaml
mlh has joined #ocaml
Skal has quit [Read error: 54 (Connection reset by peer)]
Schmurtz has quit [Read error: 104 (Connection reset by peer)]
threeve has quit []
<lispy`>
what is the syntax for cascading match-with expressions?
<lispy`>
i've tried lots of things and i get syntax errors
<monochrom>
You probably want to throw in parentheses.
<monochrom>
Note that "begin ... end" is another way to write "( ... )"
<lispy`>
i'll try the parens
* lispy`
fires up ocaml
<lispy`>
where should i put them?
<lispy`>
around the entire match with ... sturcture?
<monochrom>
put them to clarify scopes
<monochrom>
e.g., match x with 0 -> (match y with 0 -> ... | 1 -> ...) | 1 -> ...
<monochrom>
without the parentheses the computer would misunderstand.
<lispy`>
okay thanks
<lispy`>
so, you can only pattern match on a single variable at a time, does that make it common to use tuples?
<monochrom>
You can match (x,y) with (0,0) -> ... | (0,1) -> ... too.