sponge45 changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/
Eridius has quit []
Eridius has joined #ocaml
Eridius has quit [Client Quit]
Eridius has joined #ocaml
Eridius has quit [Remote closed the connection]
Eridius has joined #ocaml
pango_ has joined #ocaml
pango has quit [Remote closed the connection]
MisterC has quit [Read error: 60 (Operation timed out)]
danly has joined #ocaml
stevan_ has joined #ocaml
oip has quit ["ERC Version 5.1.2 $Revision: 1.796.2.4 $ (IRC client for Emacs)"]
stevan has quit [Read error: 110 (Connection timed out)]
johnnowak has quit []
whatitdo100 has joined #ocaml
<whatitdo100>
whatd a good way to edit .csv files and alter info ./ pull info out etc ?
sponge45 has joined #ocaml
ikaros has quit [Read error: 60 (Operation timed out)]
benny has quit [Read error: 110 (Connection timed out)]
ikaros has joined #ocaml
mbishop has joined #ocaml
ChoJin has joined #ocaml
Smerdyakov has quit ["Leaving"]
joshcryer has quit [Read error: 54 (Connection reset by peer)]
shawn has joined #ocaml
joshcryer has joined #ocaml
Smerdyakov has joined #ocaml
twobitsprite has joined #ocaml
<twobitsprite>
can someone recommend a good tutorial on ocamlyacc? I found one and it was very informative, but it seemed to focus specifically on interpreters as opposed to compilers... I'm curious about it's ability as an actual compiler...
<Smerdyakov>
You don't find the manual sufficient?
llama32 has joined #ocaml
<ChoJin>
I would suggest menhir by the way
<ChoJin>
(instead of ocamlyacc)
johnnowak has joined #ocaml
Smerdyakov has quit ["Leaving"]
<whatitdo100>
anyone up ?
<ChoJin>
tes
<ChoJin>
yes
<whatitdo100>
can you print list ?
<whatitdo100>
or in a debugger or when the script is running see the values of list and whats in them ?
<ChoJin>
in the debugger you should
<ChoJin>
otherwise in the code
<ChoJin>
I'm using Std.dump from extlib
<Eridius>
is there any way to get access to the mechanism the toplevel uses to display an object?
<whatitdo100>
This function arranges the data into a more usable form which is robust against changes in column ordering. The output of the function is:
<whatitdo100>
but i need to access certain parts of the csv
sponge45 has quit ["zzzzzzzzzz"]
<whatitdo100>
heh
<whatitdo100>
i will learn more later i need ot get it done ........think i will do this small job in lua
shawn has quit ["This computer has gone to sleep"]
shawn has joined #ocaml
shawn has quit [Remote closed the connection]
shawn has joined #ocaml
Mr_Awesome has quit ["...and the Awesome level drops"]
llama32 has quit [Read error: 110 (Connection timed out)]
johnnowak has quit []
Eridius has quit [Read error: 104 (Connection reset by peer)]
Eridius has joined #ocaml
_velco has joined #ocaml
llama32 has joined #ocaml
revision17 has joined #ocaml
flux__ has joined #ocaml
<flux__>
hmh, apparently the only way to get a backtrace is to let the ocaml runtime catch it?
_fab has joined #ocaml
<tsuyoshi>
I think there's a compiler option
<tsuyoshi>
but yeah.. you can't do it with native code
<flux__>
there's -g and OCAMLRUNPARAM=b, but they produce backtrace only if the process exits due to an exception?
shawn has quit [Read error: 113 (No route to host)]
<tsuyoshi>
when else do you want a backtrace?
<flux__>
I have a framework that catches exceptions caught by the actions
<flux__>
also it is run in its own thread
<flux__>
does the backtrace work in that case?
<tsuyoshi>
I don't know
<tsuyoshi>
it should be possible
<tsuyoshi>
but I don't know if it's already implemented or not
slipstream-- has joined #ocaml
shawn has joined #ocaml
slipstream has quit [Read error: 145 (Connection timed out)]
piggybox has joined #ocaml
pango_ has quit [Remote closed the connection]
pango has joined #ocaml
love-pingoo has joined #ocaml
velco has joined #ocaml
ChoJin has quit ["This computer has gone to sleep"]
asm has joined #ocaml
asm has quit ["mittach"]
llama32 has quit [Read error: 110 (Connection timed out)]
llama32 has joined #ocaml
<llama32>
yyyy
<llama32>
oosp
<llama32>
oops
<llama32>
gah, i'll just give up
<llama32>
with type = A of something | B of something else | C of ......., what is the memory overhead of this [how much space is used to determin A from B or C]
<llama32>
*determine
<mattam>
one word
<flux__>
not two?
triple_ has quit [Read error: 113 (No route to host)]
<flux__>
the second being the pointer to the actual value
<mattam>
well, it is boxed yes
<llama32>
ah... seems a touch inefficient [assuming you mean even integers are boxed]
<mattam>
but something and something else may be boxed too
<mattam>
int's are not
<llama32>
ah ok
<flux__>
llama32, there's a chapter on interfacing with C in the ocaml manual, it explains how the data is laid into the memory
<mattam>
so if something and something else are just ints, well, you could use a pair instead
ramkrsna has quit [Remote closed the connection]
ramkrsna has joined #ocaml
<pango>
tuples are also blocks, aren't they ? So that wouldn't remove the boxing (and would be a waste because you'd keep both values at the same time in memory)
llama32 has quit ["Leaving"]
<mattam>
oh right, same number of indirections
ikaros has quit ["Leaving"]
asm has joined #ocaml
ikaros has joined #ocaml
bpar77_ has joined #ocaml
bpar77_ has quit ["Chatzilla 0.9.77 [Firefox 2.0/2006101023]"]
twobitsprite has quit [Read error: 110 (Connection timed out)]
asm has quit ["Verlassend"]
ikaros has quit ["Leaving"]
ikaros has joined #ocaml
Eridius has quit []
love-pingoo has quit ["Leaving"]
smimou has joined #ocaml
ChoJin has joined #ocaml
Smerdyakov has joined #ocaml
postalchris has joined #ocaml
triple_ has joined #ocaml
velco has quit ["Ex-Chat"]
ChoJin has quit ["This computer has gone to sleep"]
ChoJin has joined #ocaml
Eridius has joined #ocaml
ChoJin has quit ["This computer has gone to sleep"]
Eridius has quit [Client Quit]
love-pingoo has joined #ocaml
danly has quit [Read error: 104 (Connection reset by peer)]
danly has joined #ocaml
ikaros_ has joined #ocaml
_velco has quit [Remote closed the connection]
Eridius has joined #ocaml
Eridius has quit [Client Quit]
ikaros_ has quit ["Leaving"]
ikaros_ has joined #ocaml
iZZy`` has joined #ocaml
iZZy`` has quit [Client Quit]
batdog|gone is now known as batdog
joshcryer has quit [Read error: 104 (Connection reset by peer)]
ikaros has quit [Read error: 60 (Operation timed out)]
joshcryer has joined #ocaml
ikaros has joined #ocaml
ikaros has quit [Read error: 104 (Connection reset by peer)]
benny has joined #ocaml
<whatitdo100>
hmmmmm
<whatitdo100>
anyone here ever work with the ocaml-csv thing?
revision17 has quit [Read error: 104 (Connection reset by peer)]
joshcryer has quit [Nick collision from services.]
joshcryer has joined #ocaml
Eridius has joined #ocaml
ikaros_ has quit [Read error: 110 (Connection timed out)]
ikaros_ has joined #ocaml
Submarine has joined #ocaml
fab__ has joined #ocaml
_fab has quit [Read error: 110 (Connection timed out)]
rillig has joined #ocaml
rillig has quit [Client Quit]
rillig has joined #ocaml
pango has quit ["Leaving"]
malc_ has joined #ocaml
pango has joined #ocaml
shawn has quit ["This computer has gone to sleep"]
dark_light has joined #ocaml
<whatitdo100>
also in anyone of yours experince whats faster to program in C / D or Ocaml ?
<Eridius>
I don't know anything about D, but yesterday I did my Algorithms homework (design and implement a probabilistic algorithm to estimate solutions to the n-queens problem) in OCaml, which I hadn't actually written a program in before
<malc_>
assembly.. direct machine code on the good day
<Eridius>
and I'm sure it was faster than if I had done it in C
<Eridius>
especially since I had to use big integers
<Eridius>
if I didn't use OCaml I would have either gone with Ruby or Scheme, though. ruby certainly would have been slower to execute (a lot slower), which would have been bad since mine already took enough time
<Eridius>
and Scheme probably would have taken more time to write, and given me other problems
<malc_>
Eridius: sigh.. Scheme is a language name with multiple implementations, there's a slight chance that should you code the task in, say, guille, it would have been slower than some iron ruby
<Eridius>
I would have used DrScheme with the language PLT - Textual (MZScheme, includes R5RS)
<mbishop>
code it in Stalin and it'd take a while to compile, but would execute crazy fast :)
<mbishop>
well, code it FOR stalin (needs some special declarations I believe)
<pango>
malc_: I think it was a question about development time rather than performance (but I could be wrong; that's how I understood the question=
<malc_>
pango: i know, i know. just pulling the leg while my nitpickers hat is on
<mbishop>
the only thing D is lacking (as far as I know, not a D expert) is type inference...it has garbage collection (it's even optional) and has an familiar syntax (if you are unfortunate enough to know C)
<malc_>
Cyclone has both GC and type inference.. as well as region based memory management and whatnot. so what?
<mbishop>
So maybe that's the answer to the original question? (what's fastest to develop in)
<malc_>
no that was some observation about D, which may or may not lead to quite arbitrary conclusions
<Eridius>
I dunno, but I like what I've seen about OCaml so far
<Eridius>
so I intend to keep poking at it
<mbishop>
malc_: Well, in my opinion, a language either has to be dynamically typed, or statically typed with type inference, and it must have GC if you plan on having fast production times
<Eridius>
oh? Objective-C is quite a decent language for writing real code in
<Eridius>
and as a superset of C, there's no type inference
<Eridius>
and it doesn't have GC (well, Leopard will add optional GC)
<malc_>
mbishop: 'if you plan on having fast production times', i take a freedom to read that as 'if _i_ plan ...', because this is clearly your opinion not mine, nor to the best of my knowlege any third party
<mbishop>
I DID say it was my opinion :)
<malc_>
and _I_ never claimed to remove my hat
<mbishop>
:P
clog has joined #ocaml
ppsmimram has joined #ocaml
descender has quit [Read error: 104 (Connection reset by peer)]
desc has joined #ocaml
desc has quit [sterling.freenode.net irc.freenode.net]
cypher23 has quit [sterling.freenode.net irc.freenode.net]
zmdkrbou has quit [sterling.freenode.net irc.freenode.net]
bebui has quit [sterling.freenode.net irc.freenode.net]
ppsmimou has quit [sterling.freenode.net irc.freenode.net]
sardella has joined #ocaml
love-pingoo has quit ["Connection reset by pear"]
Submarine has quit [Remote closed the connection]
lmbdwr has joined #ocaml
<lmbdwr>
hi
lmbdwr has quit [Remote closed the connection]
desc has joined #ocaml
fab__ has quit []
buluca has quit [Remote closed the connection]
malc_ has quit ["leaving"]
erider has joined #ocaml
buluca has joined #ocaml
batdog has quit [Read error: 104 (Connection reset by peer)]