I'm not sure what to suggest, because I don't know what the issue is. You cannot get the name of an atom, without first obtaining a pointer to it, so, whatever your API is, it does have to have pointers in it, somehow.
If you want to always use ints, you could keep a private table that translates from ints to atoms and back. My long-term goal is to create such a "private table" in the database backends, and remove UUID's in general. The rest API would need to do something similar, too. The advantages are that it should make the management of atoms easier. But this remains fairly low-priority, for now. --linas On Thu, Jul 21, 2016 at 4:32 PM, Roman Treutlein <[email protected]> wrote: > Hello, > > I was just trying to get the Haskell Lib to use Handle/AtomPtr instead of > UUIDs. Unfortunately, I was unsuccessful thus far. The issue being that I > can't use Handle/AtomPtr directly as they are Objects which aren't directly > supported by the C-Interface. > > I could use a Pointer to the Atom but that is unsafe on multiple levels. > > Looking at the Scheme code it also seems to use UUIDs but I am not quite > sure to what extend. > > Anyway, I just wanted to know if somebody had some thoughts about this. > > regards > /Roman > > > -- > You received this message because you are subscribed to the Google Groups > "opencog" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/opencog. > To view this discussion on the web visit > https://groups.google.com/d/msgid/opencog/d80fa1af-b3cf-47b4-908a-8c42061519db%40googlegroups.com > <https://groups.google.com/d/msgid/opencog/d80fa1af-b3cf-47b4-908a-8c42061519db%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "opencog" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/opencog. To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/CAHrUA34BM2cbp0AqQXA-TtNBY62iV7v%3D5r3Uo7w%3DzCzauUbOHg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
