caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* GC question.
@ 2005-10-24 17:53 MATTHEW HAMMER
  2005-10-25 18:41 ` [Caml-list] " Damien Doligez
  0 siblings, 1 reply; 9+ messages in thread
From: MATTHEW HAMMER @ 2005-10-24 17:53 UTC (permalink / raw)
  To: caml-list

Is there more documentation on the stuff in the Obj module?
What I see/know-about is here:

  http://caml.inria.fr/pub/docs/manual-ocaml/libref/Obj.html

I'm very interested in getting (write) access to GC-information on
ocaml values.

Thanks,
Matt

On Mon, Oct 24, 2005 at 05:51:54PM +0900, Keiko Nakata wrote:
> Hello.
> 
> Why I cannot have *any types* in signatures of functor arguments?
> Concretely, the following F is not typable.
> 
> module F(X:sig type t = [`A of _ ] val f : t -> int end) = 
>   struct
>     let f = function `A x as a -> X.f a | `B -> 0
>   end
> 
> The above F could be made typable as in
> 
> module F(X:sig type s type t = [`A of s ] val f : t -> int end) = 
>   struct
>     let f = function `A x as a -> X.f a | `B -> 0
>   end
> 
> However, this change requires me to add the type component s
> to every module to which F are going to be applied.
> This is not very nice...
> 
> Regards,
> Keiko Nakata
> 
> 
> 
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs


^ permalink raw reply	[flat|nested] 9+ messages in thread
* GC question
@ 2005-07-05  7:59 dmitry grebeniuk
  2005-07-06  7:29 ` [Caml-list] " Jean-Christophe Filliatre
  0 siblings, 1 reply; 9+ messages in thread
From: dmitry grebeniuk @ 2005-07-05  7:59 UTC (permalink / raw)
  To: caml-list

Hello, caml-list.

  I have some objects (custom blocks with method suite attached)
which can be referenced from caml heap.  How to ensure that
finalisation function is called for all non-referenced objects?
I know, call to caml_gc_full_major(Val_unit) will do this work,
but it can be costly when there are many values on the heap
(or not?).  Are there any quicker solution?  (I can make no
assumptions about "age" (young/old) of allocated custom blocks
and about current GC state)

-- 
WBR,
 dmitry                          mailto:gds-mlsts@moldavcable.com


^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [Caml-list] Native compiler support for m68k?
@ 2003-09-08  9:52 Damien Doligez
  2003-09-08 20:36 ` [Caml-list] GC Question Christophe Raffalli
  0 siblings, 1 reply; 9+ messages in thread
From: Damien Doligez @ 2003-09-08  9:52 UTC (permalink / raw)
  To: caml-list

On Friday, September 5, 2003, at 11:58 PM, Richard Zidlicky wrote:

> What could be the source of such indeterministic behaviour?

There is at least one source of nondeterminism in the compiler:
the generation of temporary file names.  And it can be influenced
by the contents of the /tmp directory, especially when a previous
compiler run has crashed and left its temporary files there...
There may be other sources of nondeterminism, but I can't think
of any off the top of my head.

> gc?

No, the GC is completely deterministic (thank God).

-- Damien

-------------------
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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-10-27 14:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-24 17:53 GC question MATTHEW HAMMER
2005-10-25 18:41 ` [Caml-list] " Damien Doligez
2005-10-25 19:20   ` MATTHEW HAMMER
2005-10-27 14:25     ` Damien Doligez
  -- strict thread matches above, loose matches on Subject: below --
2005-07-05  7:59 dmitry grebeniuk
2005-07-06  7:29 ` [Caml-list] " Jean-Christophe Filliatre
2003-09-08  9:52 [Caml-list] Native compiler support for m68k? Damien Doligez
2003-09-08 20:36 ` [Caml-list] GC Question Christophe Raffalli
2003-09-09  9:32   ` Pierre Weis
2003-09-09 10:40     ` Christophe Raffalli
2003-09-11 15:04   ` Xavier Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).