<seafoodX>
Okay guys, I've got a problem. I'm getting a stack overflow. Now I've set OCAMLRUNPARAM=b so that I can see a stack trace but I'm getting the following error.
<seafoodX>
Fatal error: exception Stack_overflow
<seafoodX>
Raised by primitive operation at unknown location
<seafoodX>
Called from file "pervasives.ml", line 203, characters 22-31
<seafoodX>
The last line is repeated many many times.
<seafoodX>
Now, line 203 in pervasives.ml is append (@)
<seafoodX>
But I use that all the time.
<seafoodX>
How do I have any hope of finding where the problem is?
<tsuyoshi>
seafoodX: I would recommend just using the append from extlib
<tsuyoshi>
it's tail-recursive, unlike the append in the ocaml standard library
schme` has quit [Success]
ulfdoz has quit [Read error: 60 (Operation timed out)]
piggybox has joined #ocaml
[azoic] has joined #ocaml
psnively has joined #ocaml
jlouis has joined #ocaml
jlouis_ has quit [Connection timed out]
psnively has quit [kornbluth.freenode.net irc.freenode.net]
TaXules has quit [kornbluth.freenode.net irc.freenode.net]
eck has quit [kornbluth.freenode.net irc.freenode.net]
joshcryer has quit [kornbluth.freenode.net irc.freenode.net]
bebui has quit [kornbluth.freenode.net irc.freenode.net]
eroyf has quit [kornbluth.freenode.net irc.freenode.net]
haelix has quit [kornbluth.freenode.net irc.freenode.net]
psnively has joined #ocaml
joshcryer has joined #ocaml
eck has joined #ocaml
haelix has joined #ocaml
bebui has joined #ocaml
eroyf has joined #ocaml
TaXules has joined #ocaml
crabstick has quit []
screwt8 has quit [Remote closed the connection]
Abo-Marwan has quit [Remote closed the connection]
Abo-Marwan47 has joined #ocaml
screwt846 has joined #ocaml
mordaunt has quit [Remote closed the connection]
<seafoodX>
tsuyoshi: Thanks for telling me about the existence of this library.
psnively has quit []
piggybox_ has joined #ocaml
Demitar has quit [Read error: 110 (Connection timed out)]
ramki has joined #ocaml
piggybox has quit [Connection timed out]
ulfdoz has joined #ocaml
Mr_Awesome has joined #ocaml
<pango>
seafoodX: or let ( @ ) l1 l2 = List.rev_append (List.rev l1) l2
Mr_Awesome has quit [Read error: 110 (Connection timed out)]
<pango>
Both are O(n) (vs. l1's length) so while they may not blow the stack, they may not solve complexity/efficiency issues with using @ on large lists
seafoodX has quit [Read error: 110 (Connection timed out)]
[azoic] has quit [Read error: 104 (Connection reset by peer)]
Tetsuo has joined #ocaml
hagman has joined #ocaml
hagman has quit [Client Quit]
love-pingoo has joined #ocaml
EliasAmaral has quit [Remote closed the connection]
pierpa has joined #ocaml
kelaouchi has joined #ocaml
olegfink has quit [Read error: 104 (Connection reset by peer)]
olegfink has joined #ocaml
Tetsuo has quit ["Leaving"]
Demitar has joined #ocaml
ramki has quit ["Leaving"]
hnaz has joined #ocaml
Demitar has quit [Remote closed the connection]
jlouis_ has joined #ocaml
Abo-Marwan47 has quit [Remote closed the connection]
screwt846 has quit [Remote closed the connection]
jlouis has quit [Connection timed out]
lde` has joined #ocaml
Smerdyakov has joined #ocaml
lde has quit [Connection timed out]
lde` has quit ["ERC Version 5.2 (IRC client for Emacs)"]
lde has joined #ocaml
jlouis has joined #ocaml
magius_pendragon has joined #ocaml
<magius_pendragon>
at the risk of starting a flame war, i'm curious about the community option of vi vs emacs for ocaml codding. I know some other pl communitites are heavy one way or another, so I was curious if htere's a bias because of editor features or if its a relativly even split.
<flux>
I use (x)emacs, but I used it before ocaml already. its tuareg mode is terrific, though (especially the determine-type-of-an-expression-feature)
<fremo>
emacs, as usual...
<fremo>
flux: what is this determine-type-of-an-expression-feature ?
<flux>
if you compile with -dtypes, you can point your cursor over an expression and press C-c-C-t and it gives out the type of the expression
* fremo
is trying :)
<magius_pendragon>
*laughs* now look what i've done :p
<fremo>
Is it old (I have Tuareg Version 1.46.0rc4)
<fremo>
it doesn't do anything, I put the cursor on an expression C-c C-t and nothing, what's the name of the function ?
<flux>
you actually need to have the original caml mode around also
<flux>
the functionality is in file caml-type
<flux>
which tuareg will load if it finds it
jlouis_ has quit [Connection timed out]
<flux>
the function is caml-types-show-type
<flux>
the file might be called caml-types.el also..
<fremo>
ok, thanks :)
<fremo>
neat !
<fremo>
heh, it comes with little annot files...
<magius_pendragon>
flux: out of curiosity, does it do anything nifty with .mly or .mll files as well?
<flux>
magius_pendragon, well, it's compiler generated data, and those files are eventually compiled too, I think the feature works just fine with them also
<flux>
I _think_ I've even used it so
<flux>
but it doesn't generate any mly-specific information
<magius_pendragon>
i wasn't referring specifically to the show-type feature, just tuareg mode in general
<flux>
I think it does standard indentation with those
<flux>
but it's been some time since I've last written those files, so I don't recall for sure
CRathman has quit ["ChatZilla 0.9.78.1 [Firefox 2.0.0.7/2007091417]"]
j0j0j0j0 has quit ["Leaving."]
piggybox_ has quit [Read error: 104 (Connection reset by peer)]
Mr_Awesome has quit ["aunt jemima is the devil!"]
jlouis has joined #ocaml
Cygaaal has quit [Read error: 110 (Connection timed out)]
jlouis_ has quit [Connection timed out]
lde has quit [Remote closed the connection]
lde has joined #ocaml
piggybox has joined #ocaml
PaulButler has joined #ocaml
xavierbot has joined #ocaml
<PaulButler>
I get the error "./renderset: /lib32/libc.so.6: version `GLIBC_2.4' not found" when running a locally compiled program on a remote machine, is there an easy way around this?