middayc_ has quit [Read error: 110 (Connection timed out)]
comglz has quit [Client Quit]
comglz has joined #ocaml
AxleLonghorn has left #ocaml []
vixey has quit [Connection timed out]
comglz has quit ["AddToFunc ExitFunction I Exec exec sudo halt"]
comglz has joined #ocaml
comglz has quit [Client Quit]
sporkmonger has joined #ocaml
<mfp>
Yoric[DT]: tried to build on GODI + 3.11.0+beta2-dev2, make opt died: problem with a type in src/core/extlib.mli not matching Unix.socket_bool_option
<Yoric[DT]>
mmmhhh....
<Yoric[DT]>
Could you file a bug?
<Yoric[DT]>
I'm going to stop for the night.
<mfp>
is 1.0-alpha-2 supposed to build on 3.11, or do I need a diff branch?
<Yoric[DT]>
Thanks for the feedback, though.
<mfp>
IIRC this was fixed somewhere else
<Yoric[DT]>
It should build on 3.11
<Yoric[DT]>
(and it does on my computer)
<mfp>
(either this or a very similar issue)
<mfp>
ah
<mfp>
maybe it's because 3.11.0+beta2-dev2 ?
<Yoric[DT]>
Possibly.
<Yoric[DT]>
I'm using OCaml 3.11 .
<mfp>
I'll try to build 3.11 final tomorrow and see what happens
<Yoric[DT]>
Ok, thanks.
<maxote>
i will wait until 3.11.1
<mfp>
(or just look at Unix.socket_bool_option to find if it's changed)
<Yoric[DT]>
In the meantime, I've found a minor bug, the fix of which I'm going to upload tomorrow.
<Yoric[DT]>
Anyway, time to call it a night.
<Yoric[DT]>
Cheers.
<mfp>
night
Yoric[DT] has quit ["Ex-Chat"]
sporkmonger has quit []
jonasb has quit [Remote closed the connection]
thelema has joined #ocaml
slash_ has quit ["Lost terminal"]
sporkmonger has joined #ocaml
sporkmonger has quit [Client Quit]
middayc_ has joined #ocaml
<astronut>
what's the order of operations on functions if no parenthesis are used?
<astronut>
for example, if foo and bar are functions and baz is a data type, what order does it attempt "foo bar baz"
<astronut>
is that the same as foo(bar(baz))
middayc has quit [Read error: 60 (Operation timed out)]
middayc_ is now known as middayc
<mfp>
astronut: application is left-associative => ((foo bar) baz)
bohanlon has quit [Remote closed the connection]
kg4qxk has quit [Client Quit]
bohanlon has joined #ocaml
kg4qxk has joined #ocaml
<tsuyoshi>
if bar isn't a function, it does the same thing
middayc__ has joined #ocaml
middayc has quit ["ChatZilla 0.9.84 [Firefox 3.0.5/2008120122]"]
<middayc__>
sorry for a little newbie question... I need to quick look up (if word exists) in a huge list of words.. common sense says me I should try to make this tree structure from words and recursively search?
ched has quit [Remote closed the connection]
<middayc__>
let words_tree = ['t',['e',['s',['t',[]]];'i',['m',['b',['e',['r',[]]]]]];'f',['o',['e',[]]]]
<middayc__>
this would be the tree for : let words = [ "test"; "timber"; "foe" ];;
<middayc__>
am I looking at the right direction?
<middayc__>
I read about ternary search tree which seems similar and have found a partial implementation by khigia, but it seems not fully finished complex (I am OCaml newb) and too capable for what I need
<kig>
if it's not a really huge list, you could also get by with a Hashtbl or a Map
<tsuyoshi>
middayc__: how huge?
<middayc__>
Not sure but after a while it will contain most words from my language probably
<middayc__>
slovene language, but I have no idea how many words that is
sporkmonger has joined #ocaml
sporkmonger has quit [Client Quit]
* brendan
is down on hashtbls now
<brendan>
could try a trie
<middayc__>
on a sidenote.. can you split a string to head and tail somehow (without making a function of my own) - I googled and looked at String and Str and coulnd't find anything?
<brendan>
batteries (or extlib) have a nice split
<brendan>
jane st has split_on_char
<middayc__>
I saw trie mentioned on the blog of the guy who made TST (khigia) .. I will look up what it meand
<middayc__>
means
<brendan>
Str has split, but it's on regexps
<kig>
trie is what you're doing in words_tree
<tsuyoshi>
middayc__: probably less than a million words then.. a map should be fine
<tsuyoshi>
or a hash table
AxleLonghorn has joined #ocaml
<middayc__>
thanks for all answers about both things, I am reading about trie and looking batteries :) @tsuyoshi - probably less, but trie or what's it called seems quite interesting :)
AxleLonghorn1 has joined #ocaml
AxleLonghorn has quit ["Leaving."]
AxleLonghorn1 has quit [Client Quit]
AxleLonghorn has joined #ocaml
<thelema>
how is batteries doing?
<hcarty>
thelema: The alpha3 .tar.gz released yesterday compiles and runs here (3.11, 64bit), with some errors Yoric[DT] commented on
<thelema>
hcarty: I must have missed those comments.
<hcarty>
Bigarray.* in Batteries is missing a few functions (unsafe_*) for 3.11
<hcarty>
thelema: Init file not found: "/home/hcarty/Applications/godi/lib/ocaml/pkg-lib/camomile/../batteries/top.ml".
<thelema>
ah, godi problems.
* thelema
wonders if a uservoice for batteries would be useful
tripwyre has joined #ocaml
<hcarty>
uservoice?
<thelema>
uservoice.com
<thelema>
a nice "feedback" site
<thelema>
hmm, we don't really have a good logo...
<thelema>
I guess I'll just use the camel with duracells in it
<thelema>
hmm, the # of downloads has dropped - yoric must have uploaded a new alpha 3
Axioplase_ has quit ["brb"]
ulfdoz has quit [Read error: 60 (Operation timed out)]
ulfdoz has joined #ocaml
jeddhaberstro has quit []
Axioplase has joined #ocaml
Axioplase has quit [Client Quit]
middayc__ has quit [Read error: 60 (Operation timed out)]
tripwyre has quit []
Axioplase has joined #ocaml
AxleLonghorn has left #ocaml []
AxleLonghorn has joined #ocaml
Palace_Chan has joined #ocaml
Palace_Chan has quit ["Palace goes to sleep"]
seafood has quit [Read error: 104 (Connection reset by peer)]
seafood has joined #ocaml
AxleLonghorn1 has joined #ocaml
AxleLonghorn has quit ["Leaving."]
rwmjones is now known as rwmjones_holiday
AxleLonghorn1 has left #ocaml []
seafood has quit [Read error: 110 (Connection timed out)]
xah_lee has joined #ocaml
<xah_lee>
how to print a array? or is there a general way to print any of list, tuple, record?
Associat0r has quit []
<mrvn>
Array.iter
_zack has joined #ocaml
seafood has joined #ocaml
pierre- has joined #ocaml
|jedai| has joined #ocaml
smimram has joined #ocaml
Yoric[DT] has joined #ocaml
<Yoric[DT]>
hi
<flux>
xah_lee, no. it is possible to use a language extension such as sexplib to generate such functions for your data types, though.
<flux>
or, for debugging purposes, there is a library that dumps the contents of a value without exploiting type information
<xah_lee>
flux: i c. thx & mrvn
smimou has quit [Read error: 110 (Connection timed out)]
<flux>
in general one could write something like: let string_of_2tuple f1 f2 (x, y) = (f1 x ^ ", " ^ f2 y) let string_of_array f a = String.concat ";" (List.map f (Array.to_list a)) let identity a = a let s = string_of_array (string_of_2tuple int_of_string identity) [|(4, "foo"); (5, "bar")|] (may contain typoes)
OChameau has joined #ocaml
s4tan has joined #ocaml
ched has joined #ocaml
pango has joined #ocaml
middayc has joined #ocaml
Axioplase is now known as Axioplase_
hkBst has joined #ocaml
kig has quit ["leaving"]
|jedai| has quit [Read error: 60 (Operation timed out)]
|jedai| has joined #ocaml
l_a_m has quit [Remote closed the connection]
<Yoric[DT]>
Grmph.
<Yoric[DT]>
GODI seems down.
<Yoric[DT]>
Hard to update to the latest version of Batteries.
<flux>
godi does annoyingly seem to have one big central point of failure
<Yoric[DT]>
yeah
vpalle has joined #ocaml
<Yoric[DT]>
Ok, it seems back up.
<Yoric[DT]>
Uploading Batteries...
<Yoric[DT]>
I'll be looking for volunteers for testing, by the way.
_zack has quit ["Leaving."]
<Yoric[DT]>
Looking for volunteers now.
<Yoric[DT]>
Any GODI user willing to try and install the latest version of Batteries?
<Yoric[DT]>
Well, I'll go and eat something.
<mfp>
Yoric[DT]: I'm building GODI (section 3.10) atm., installing batteries when done
<Yoric[DT]>
If you're willing to test, it's on GODI.
<Yoric[DT]>
mfp: yeah :)
<Yoric[DT]>
Both 3.10 and 3.11 should work.
<Yoric[DT]>
Gasp, there's still a bug in the help system.
<Yoric[DT]>
er...
<Yoric[DT]>
And there seems to be a bug with documentation generation.
haelix_ has joined #ocaml
haelix has quit [Read error: 104 (Connection reset by peer)]
<mfp>
Yoric[DT]: installed fine, got the errors you're probably seeing in the docs (missing html/api/System.Unix.html, etc.)
<mfp>
then #man "for programmers"; => Several definitions exist for "for programmers". (...) please use one of #man_topic "for programmers" #man_topic "for programmers"
<mfp>
is it normal for doc gen to be so noisy? (the GODI "protocol" file is huge)
<mfp>
and missing renames(?) like Extlib.ExtSet.Set.S.ExceptionLess (and the page for Set refers to itself as module Set: Extlib.ExtSet.Set)
<Yoric[DT]>
Yeah, I need to check all of this.
<Yoric[DT]>
Ok, I know what happened to the missing documentation.
<Yoric[DT]>
It's either camlp4 or sexplib.
<mfp>
regarding 3.11, turns out I wasn't building the right sources
<Yoric[DT]>
ok
<Yoric[DT]>
Yeah, just checked, it's a sexplib bug.
<mfp>
died w/ Error: The variant or record definition does not match that of type Gc.control, because allocation_policy was added after 3.11.0+beta2-dev2 (the one I have running with GODI)
<mfp>
changed & tried again, then Error: Unbound constructor Parse_error -> another beta2 -> final change I guess
<Yoric[DT]>
No, that's probably an issue with Sexplib, too.
<Yoric[DT]>
They changed a constructor name from ParseError to Parse_error.
<mfp>
there's a #if ocaml_version >= (3, 11) there
<Yoric[DT]>
Yep.
<mfp>
is there any way to get more fine-grained version info?
<mfp>
with optcomp
<Yoric[DT]>
Ideally, there should be a [#if sexplip_version >= 3.7.5] but I don't quite see how I could do this.
<Yoric[DT]>
Perhaps with autoconf magic.
<mfp>
ah, so there's a diff sexplib for 3.10 and 3.11
<mfp>
this is a bit like functors
<Yoric[DT]>
Technically, it's not different for 3.10 and 3.11, it's just an arbitrary difference which more or less matches the release of 3.11 .
<Yoric[DT]>
And it's quite annoying.
<mfp>
instead of handling the "polymorphism" inside (opt comp for 3.10 and 3.11 inside sexplib), it bubbles up to the surface
xah_lee has quit []
<middayc>
hi, can I make a record with hashtable slot? I can with array for example but can't with ht.. type linkbase = { links: int hashtbl } ? It says "Unbound type constructor hashtbl"
_zack has joined #ocaml
<Yoric[DT]>
middayc: that's because the type name is not hashtbl, it's Hashtbl.t .
<mfp>
middayc: ('key, 'value) Hashtbl.t
<Yoric[DT]>
mfp: yeah
<mfp>
middayc: (or 'value MyHashtbl.t if you did you own hash module with Hashtbl.Make)
<middayc>
aha, I saw t definition in docs and tried hashtbl.t but not with the upper case
<middayc>
thanks a lot
<Yoric[DT]>
np
<Yoric[DT]>
Ok, that should be one thing fixed.
<Yoric[DT]>
Next item: the double "man".
<mfp>
Yoric[DT]: is it me or are some modules missing? (back to the fresh, working GODI + 3.10 batteries install)
<Yoric[DT]>
mfp: what do you mean?
<mfp>
not only in the docs, but in the module itself
<mfp>
rlwrap ocamlfind batteries/ocaml
<Yoric[DT]>
Which modules would that be?
<mfp>
module R = Rope ok
<mfp>
module V = Vect => not found
<Yoric[DT]>
Gasp.
<Yoric[DT]>
That's possible.
<Yoric[DT]>
Let me check.
<mfp>
but it's in the .mlpack
* Yoric[DT]
realized yesterday that LazyList was missing.
<Yoric[DT]>
Ok, adding Vect.
seafood has quit [Connection timed out]
<Yoric[DT]>
Mmmhh...
<Yoric[DT]>
Vect would need a serious update.
<mfp>
Yoric[DT]: are all extlib modules supposed to be exposed under Batteries (flattened) now?
<Yoric[DT]>
Yeah, LazyListLabels and OptionLabels should disappear.
<Yoric[DT]>
I've just added Vect, Result and LazyList
ched_ has joined #ocaml
<Yoric[DT]>
Std, InnerIO and InnerWeaktbl are internal only.
<Yoric[DT]>
And Substring, too.
<Yoric[DT]>
As for ExtNativeint, I'm surprised.
<Yoric[DT]>
Are you sure?
<Yoric[DT]>
Okay, #man problem should be fixed.
<mfp>
# module E = ExtNativeInt;;
<mfp>
Unbound module ExtNativeInt
<Yoric[DT]>
Well, it's just called [Native_int] in the public API.
<Yoric[DT]>
# module E = Native_int;;
<Yoric[DT]>
module E :
<Yoric[DT]>
sig
<Yoric[DT]>
type t = nativeint
<Yoric[DT]>
val zero : nativeint
<Yoric[DT]>
...
<Yoric[DT]>
(that's with OCaml 3.11)
<Yoric[DT]>
I'll push the release this evening.
<Yoric[DT]>
Now, time to demonstrate.
<Yoric[DT]>
Cheers.
Yoric[DT] has quit ["Ex-Chat"]
l_a_m has joined #ocaml
vpalle has quit [Read error: 110 (Connection timed out)]
<mrvn>
middayc: upper case is the Module path and the lower case at the end is the type.
ikaros has joined #ocaml
pierre- has quit [Read error: 110 (Connection timed out)]
comglz has joined #ocaml
comglz has quit [Client Quit]
<middayc>
mrvn: - aha, from what you say it all seems logical now, and now that I look at it is .. Hashtbl.(anything) is upper case like .create .find .. so .t is also , types outside module are lower case , good
seafood has quit []
<middayc>
btw: developing with emacs and it's interactive top-level really impressed me, now I write code in toplevel and when it works I copy it up into the file.. I works better in this intractive mode than anything I tried so far at so called dynamic languages
<middayc>
too bad there isn't a command that would put the last input you wrote to top-level into clipboard .. something in menus looks a little like it but it doesn't seem to work that way
marmotine has joined #ocaml
|jedai| has quit [Read error: 110 (Connection timed out)]
|jedai| has joined #ocaml
sporkmonger has joined #ocaml
Snark has joined #ocaml
vpalle has joined #ocaml
<gildor>
Snark: ping
<gildor>
I need some info
<Snark>
gildor, pong
<Snark>
about?
<gildor>
I need some data for your inscription to OCaml Meeting
<gildor>
What organization/firm do you belong to ?
<Snark>
gildor, uh... I'm an individual
<Snark>
gildor, math teacher in CPGE
<gildor>
Snark: just to know what to write on your "badge"
<Snark>
ok
<gildor>
what CPGE ?
<Snark>
spé PC
<Snark>
(no computer science)
<gildor>
I mean which one
<Snark>
(but I still have maple sessions for Saint-Cyr)
<gildor>
the name of the school)
<Snark>
École des Pupilles de l'Air
<gildor>
You want "Ecole des Pupilles de l'Air" on you badge ?
<Snark>
if you wish -- or "EPA" ;-)
vpalle_ has joined #ocaml
<gildor>
EPA is nice (and will be short enough to write)
<gildor>
Snark: thanks and see you next wednesday
<Snark>
:-)
<Snark>
I should be there for 13h30
Stefan_vK1 has joined #ocaml
vpalle has quit [Read error: 110 (Connection timed out)]
Stefan_vK has quit [Read error: 110 (Connection timed out)]
love-pingoo has joined #ocaml
<Snark>
<- gone
Snark has quit ["Ex-Chat"]
<middayc>
can I ask for opinion, I have a list of records { a: int; b: int; x:int } I need the ability to change x (ab stay the same) at any time. I see 2 ways.. (1) I set x mutable in record and change it directly - I don't like this one that much;
chupish has joined #ocaml
<middayc>
(2) I insert new record with { a b new x } at the begining of list and when I will seek list I will always find the first one , the dead elements would be cleaned out every once in a while (by creating new list from just undead values)
<middayc>
but list is immutable too so there is no insert so I guess there must be something that will take element or list and list and create a new list with that el. at the start.. but I don't see that in List
<middayc>
module
<mfp>
middayc: x :: list
<mfp>
(aka cons)
<middayc>
the reverse of append , which seems to be rev_append, but I don't get why it I would need the reversal and all and it seems there should be something more basic for this
<middayc>
ups.. so :: goes both ways?
<mfp>
both ways?
<mrvn>
:: prepends an element to a list
<middayc>
I used it so far for " match l with h::tail -> ... "
<middayc>
to split to head and tail .. I know :: doesn't split it but somehow declares it
<mrvn>
middayc: Well, if you will the "match" does the reversing.
willb has joined #ocaml
<mrvn>
same as if you write match foo with Tree (Leaf 1, 2, Leaf 3) ->
<mrvn>
(except :: is inline)
<middayc>
aha, yes I used this too.. didn't fully get the "magic" with match yet
<mrvn>
that magic is what makes ocaml so great. :)
<middayc>
:) yes must be something about it
<middayc>
I only now 5% of ocaml and I already like how my functions come nicely together :)
<middayc>
now=know
bluestorm has joined #ocaml
willb has quit [Read error: 110 (Connection timed out)]
willb has joined #ocaml
thelema has quit [Read error: 110 (Connection timed out)]
vixey has joined #ocaml
pango has quit [Remote closed the connection]
patronus has quit ["leaving"]
patronus has joined #ocaml
willb has quit [Read error: 60 (Operation timed out)]
AxleLonghorn has joined #ocaml
willb has joined #ocaml
pango has joined #ocaml
prime2 has quit ["Lost terminal"]
|jedai| has quit [Read error: 110 (Connection timed out)]
|jedai| has joined #ocaml
vpalle_ has quit [Read error: 110 (Connection timed out)]
AxleLonghorn has left #ocaml []
Stefan_vK1 has quit [Read error: 104 (Connection reset by peer)]
Stefan_vK has joined #ocaml
s4tan has quit []
marmotine has quit ["mv marmotine Laurie"]
|jedai| has quit [Read error: 110 (Connection timed out)]
|jedai| has joined #ocaml
ChrisRoland has joined #ocaml
<ChrisRoland>
Does anyone use a gui library in OCaml? If so, what do you use and do you like it? So far LablGTK2 looks like the best bet
<ChrisRoland>
I know there is F#, but I wanted to find something with a little less vendor lock-in
thelema has joined #ocaml
|jedai| has quit [Success]
|jedai| has joined #ocaml
<middayc>
wxwidgets is a crossplatform GUI library too, it has native L&F on all systems and there is a binding to it in Ocaml, but I don't know what state it's in
<middayc>
I think wxocaml is autogenerated from haskell's binding so if they have been updating theirs maybe it can get updated simply
<ChrisRoland>
hm, cool. I'll read that.
<ChrisRoland>
middayc: ah ok, I'll go check theirs out.
<middayc>
I am not trying to persuade you.. yust saying what I heard :)
_zack has quit ["Leaving."]
<ChrisRoland>
Yeah wxHaskell's latest release was on Jan 4 2009. I like wx better than gtk, so I might look into wxocaml first.
<middayc>
now that QT is free for windows it can be worth checking out too
<ChrisRoland>
yeah, I know the QtCaml project was a Google Summer of Code project, I'm just having a hard time finding source. Maybe I'm just looking in the wrong spot :)
<ChrisRoland>
I'm hoping it takes off. Out of the three, Qt would be my first choice since I've done work in it and I love GraphicsView
<middayc>
yes, Qt looks best to me to.. I used wxPython long ago for some serrious project and didn't really like it.. it shows that it's a wrapper above multiple different gui libs not a designed set on it's own
<middayc>
interesting
Amorphous has quit [Read error: 110 (Connection timed out)]
|jedai| has quit [Read error: 110 (Connection timed out)]
|jedai| has joined #ocaml
Amorphous has joined #ocaml
middayc has quit ["Ex-Chat"]
ikaros has quit [Read error: 60 (Operation timed out)]
rwmjones has joined #ocaml
ikaros has joined #ocaml
<ChrisRoland>
I think I'm going to do a couple prototype apps first using LablGTK, then wxOCaml and go out from there.
mbishop has quit [Remote closed the connection]
Yoric[DT] has joined #ocaml
mbishop has joined #ocaml
<Yoric[DT]>
Hi again
<brendan>
are you rested? :)
<Yoric[DT]>
:)
ikaros_ has joined #ocaml
ikaros has quit [Read error: 60 (Operation timed out)]
pierre- has joined #ocaml
|jedai| has quit [Read error: 145 (Connection timed out)]
bla has joined #ocaml
|jedai| has joined #ocaml
Snark has joined #ocaml
rwmjones has quit ["Leaving"]
rwmjones_holiday is now known as rwmjones
ChrisRoland has quit []
vpalle_ has joined #ocaml
vpalle__ has joined #ocaml
itewsh has joined #ocaml
AxleLonghorn has left #ocaml []
vpalle_ has quit [Connection timed out]
itewsh has quit ["There are only 10 kinds of people: those who understand binary and those who don't"]
|jedai| has quit [Read error: 60 (Operation timed out)]
|jedai| has joined #ocaml
^authentic has joined #ocaml
pierre- has quit [Connection timed out]
authentic has quit [Connection timed out]
^authentic is now known as authentic
* Yoric[DT]
rebuilds and installs Batteries for GODI.
LLB has joined #ocaml
xah_lee has joined #ocaml
* Yoric[DT]
rebuilds and installs Batteries for GODI (again).
|jedai| has quit [Read error: 110 (Connection timed out)]
_jedai_ has joined #ocaml
middayc has joined #ocaml
<Yoric[DT]>
Grmpf.
<Yoric[DT]>
Still that sexplib bug biting us.
<vixey>
sexplib from jane st. or what?
<Yoric[DT]>
yep
<vixey>
oh weird I am surprised that it is buggy
<vixey>
I expected better off them :p
<Yoric[DT]>
Well, the bug only appears when generating documentation from .mli files.
<Yoric[DT]>
And just because some comments are dropped.
thelema has quit [Read error: 110 (Connection timed out)]
<mrvn>
Yoric[DT]: aren
<mrvn>
't they kind of essential for documentation?
<Yoric[DT]>
Yep.
<Yoric[DT]>
Hence the bug :0
<Yoric[DT]>
Hence the bug :)
<hcarty>
Has anyone here used FrGui much, either the OSP version or the earlier one?
_jedai_ has quit [Connection timed out]
|jedai| has joined #ocaml
Snark has quit ["Ex-Chat"]
jonasb has joined #ocaml
^authentic has joined #ocaml
^authentic has quit [Client Quit]
^authentic has joined #ocaml
authentic has quit [Read error: 145 (Connection timed out)]
^authentic is now known as authentic
mehdid has quit [Read error: 60 (Operation timed out)]
mehdid has joined #ocaml
<Yoric[DT]>
grrrrr
<Yoric[DT]>
still not working
<Yoric[DT]>
hcarty: I tried it briefly, one or two years ago and I liked it.
<hcarty>
Yoric[DT]: They seem to be significantly different... the OSP version does not include a syntax extension
<Yoric[DT]>
There was no syntax extension when I tried it.
<hcarty>
So it seems to be much easier to build on 3.10+
<hcarty>
Ah
<hcarty>
The version I found from 2006 on Google Code has an old-camlp4/camlp5 syntax extension
<hcarty>
Whereas the 2007 OSP version does not. I'm not sure what differences they have in function though.
<hcarty>
It seems like a potentially very nice library though
<Yoric[DT]>
Well, if there was a syntax extension, I didn't see it.
seafood has joined #ocaml
|jedai| has quit [Read error: 110 (Connection timed out)]
|jedai| has joined #ocaml
chupish has quit ["leaving"]
<hcarty>
Perhaps "the earlier one" is a dropped branch then. I'm hoping to try the non-camlp4 version soon on a new app
<Yoric[DT]>
I used the version I found from Chris King's page.
<Yoric[DT]>
It was on his darcs repository.
<Yoric[DT]>
Can't remember anything more specific, sorry.
|jedai| has quit [Operation timed out]
|jedai| has joined #ocaml
<hcarty>
Ok, thanks. Just curious.
Associat0r has joined #ocaml
schme has quit ["leaving"]
schme has joined #ocaml
love-pingoo has quit [Read error: 110 (Connection timed out)]
love-pingoo has joined #ocaml
seafood has quit []
seafood has joined #ocaml
|jedai| has quit [Success]
|jedai| has joined #ocaml
sporkmonger has quit [Read error: 110 (Connection timed out)]
Platyna has joined #ocaml
<Platyna>
Hi.
<Platyna>
ocamlfind: Package `snippets' not found
<Platyna>
Where can I get this package?
<bla>
snippets; hm.
<bla>
Hi Platyna.
jonasb has quit [Remote closed the connection]
sporkmonger has joined #ocaml
sporkmonger has quit [Client Quit]
|jedai| has quit [Read error: 60 (Operation timed out)]
|jedai| has joined #ocaml
thelema has joined #ocaml
<Yoric[DT]>
Platyna: what's that package supposed to be?
<Platyna>
I have no idea.
<Platyna>
I am trying to compile nmag.
jonasb has joined #ocaml
nuncanada has joined #ocaml
ikaros_ has quit [".quit"]
vpalle has joined #ocaml
<Platyna>
I see something like snippets in one dir.
<Platyna>
How can I make ocamlfind to find it?
<Platyna>
;)
vpalle__ has quit [Read error: 110 (Connection timed out)]
smimram has quit [Read error: 104 (Connection reset by peer)]
|jedai| has quit [Read error: 110 (Connection timed out)]
|jedai| has joined #ocaml
vpalle has quit ["Leaving"]
smimram has joined #ocaml
realtime has quit [Remote closed the connection]
realtime has joined #ocaml
ched_ has quit ["Ex-Chat"]
Amorphous has quit [Read error: 54 (Connection reset by peer)]
Amorphous has joined #ocaml
LLB has quit ["ERC Version 5.2 (IRC client for Emacs)"]
<sanguinev>
Is there a way to make an output_channel that just accepts output and doesn't do anything?
<brendan>
open_out "/dev/null" ?
<sanguinev>
brendan: I am looking for something that won't require a file/any specified location.
<Yoric[DT]>
Shameless plug: with Batteries, it's possible.
<Yoric[DT]>
(other than that, you could trick it with a pipe, but that's much more complicated than /dev/null)
<sanguinev>
Yoric[DT]: I am hoping for something nice and system agnostic so I can run the same code on linux/unix/mac OSx/cygwin...
<Yoric[DT]>
Yeah.
<Yoric[DT]>
The problem is that output_channel is necessarily connected to a Unix file descriptor.
<Yoric[DT]>
So /dev/null seems the best way to go.
vixey has quit ["There exists an infinite set!"]
<sanguinev>
Yoric[DT]: What about if you have a unix file descriptor for it, but don't want it to actually send anything (or at the very least to prevent a "flush" of the channel?
<Yoric[DT]>
flushes happen every so often
<brendan>
you'll probably have to use wrappers for output_*
<Yoric[DT]>
Shameless plug: such as Batteries'.
<brendan>
hehe
<Yoric[DT]>
We do have an abstraction layer on top of channels just to allow subtle manipulation of inputs and outputs.
love-pingoo has quit ["Connection reset by pear"]
<sanguinev>
Ok, assuming I can't use batteries because I am stubborn/stupid/not allowed to induct other code... ;)
<brendan>
does batteries have a hashtbl that doesn't waste tons of ram too?