From: "Nicolas Cannasse" <warplayer@free.fr>
To: "Nicolas FRANCOIS (AKA El Bofo)" <nicolas.francois@free.fr>,
"Liste Caml" <caml-list@inria.fr>,
"Liste UPS-Info" <ups-info@enst-bretagne.fr>
Subject: Re: [Caml-list] Ca marche pas, et ca m'enerve
Date: Sat, 12 Jun 2004 09:54:19 +0200 [thread overview]
Message-ID: <001b01c45052$77e652a0$19b0e152@warp> (raw)
In-Reply-To: <20040612031354.01a6603a.nicolas.francois@free.fr>
> Mais c'est pas trop gros, donc je joins en attachement pour que d'autres
> testent.
>
> Mon probleme : ce programme explore les machines de Turing a n etats, pour
> decouvrir les "castors actifs", i.e. les MdT ecrivant le plus de 1 sur la
> bande avant de s'arreter. Si l'on cherche les CA a deux etats (ligne "
> and tablesize = 2 in" dans le fichier main.ml), ca marche. Par contre,
> j'ai une erreur de Stack Overflow si je lance le programme avec tablesize
> = 3.
>
> Ca semble venir des incessantes manipulations de listes representant le
> macro-ruban (fichier macro_strip.ml). C'est bizarre, je pensais que les
> pointeurs de "cons-cells" n'etaient pas affectes sur la pile. Ca plante,
> avec ocamldebug, au pas 770000 et quelques, sur une operation sur une
> liste.
>
> Mes manipulations sur les listes sont-elles incorrectes ? Comment faire
> pour aider le garbage collector a se rendre compte qu'un pointeur ne sera
> plus jamais utilise ?
>
> Merci pour tout conseil.
Cela veut surement dire que certaines de tes fonctions ne sont pas
"tail-recursive" :
http://www.google.fr/search?q=tail+recursive+function&ie=UTF-8&hl=fr&meta=
Nicolas Cannasse
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2004-06-12 7:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-12 1:13 Nicolas FRANCOIS
2004-06-12 7:54 ` Nicolas Cannasse [this message]
2004-06-12 10:24 ` Damien Doligez
2004-06-12 13:14 ` Nicolas FRANCOIS
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001b01c45052$77e652a0$19b0e152@warp' \
--to=warplayer@free.fr \
--cc=caml-list@inria.fr \
--cc=nicolas.francois@free.fr \
--cc=ups-info@enst-bretagne.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox