Re: [pypy-dev] lltype.Signed type in ThreadLocalReference

2017-03-21 Thread John Zhang
Hi Manuel, I attempted to change it to OBJECTPTR in my local repo and it worked. So I will see how it go I guess… Thanks for the reply. Cheers, John Zhang -- John Zhang Research Assistant Programming Languages, Design & Implementa

[pypy-dev] lltype.Signed type in ThreadLocalReference

2017-03-21 Thread John Zhang
is that in my back-end I cannot cast an integer to a GC-ed heap object reference (which the OBJECTPTR translates to), it can only be cast to a non-GC-ed memory object reference (a different memory space not part of the GC managed heap). Any ideas? Regards, John Zhang

Re: [pypy-dev] What is RuntimeTypeInfo?

2017-03-15 Thread John Zhang
? Would this be the case? And thus this wouldn’t be a good idea, right? Regards, John Zhang -- John Zhang Research Assistant Programming Languages, Design & Implementation Division Computer Systems Group ANU College of Engineering &

Re: [pypy-dev] What is RuntimeTypeInfo?

2017-03-15 Thread John Zhang
Thanks Carl, Armin and William! We will look into it further. Cheers, John Zhang -- John Zhang Research Assistant Programming Languages, Design & Implementation Division Computer Systems Group ANU College of Engineering & Computer Sci

[pypy-dev] What is RuntimeTypeInfo?

2017-03-14 Thread John Zhang
information. Thus, among other ways, we are trying to see how much we can recover this object layout/type information. RTTI seems promising based on the description on the documentation, but I can’t picture what it looks like at run time. Can anyone provide some insight on this? Thanks, John Zhang

[pypy-dev] '@rpython/$(TARGET)' problem

2017-02-16 Thread John Zhang
solution. Regards, John Zhang -- John Zhang Research Assistant Programming Languages, Design & Implementation Division Computer Systems Group ANU College of Engineering & Computer Science 108 North Rd The Australian National University A

[pypy-dev] os_read & rposix.c_read

2017-01-17 Thread John Zhang
just add a small hack in my backend. But I’d like to know why this is the case in the first place, is there a special reason for it? Regards, John Zhang -- John Zhang Research Assistant Programming Languages, Design & Implementation Divi

Re: [pypy-dev] RPython Darwin platform description so_prefixes empty

2016-12-06 Thread John Zhang
‘lib’ and empty prefix. On the other hand, I wonder if it’s also reasonable to modify the `_finish_linking` function to include `platform.so_prefix[0]` to the generated shared library name (see the attached patch). Regards, John Zhang -- John

Re: [pypy-dev] Request to make `makedev`, `major` and `minor` macros

2016-12-06 Thread John Zhang
Thanks Armin! I will keep my eyes open for other cases and let you know. :) Cheers, John Zhang -- John Zhang Research Assistant Programming Languages, Design & Implementation Division Computer Systems Group ANU College of Engineering &

Re: [pypy-dev] RPython Darwin platform description so_prefixes empty

2016-12-06 Thread John Zhang
‘lib’ in the so_prefix on Darwin platforms. The attached is a suggested solution patch. Regards, John Zhang -- John Zhang Research Assistant Programming Languages, Design & Implementation Division Computer Systems Group ANU Col

Re: [pypy-dev] Request to make `makedev`, `major` and `minor` macros

2016-12-06 Thread John Zhang
Forgot the attachment, sorry! -- John Zhang Research Assistant Programming Languages, Design & Implementation Division Computer Systems Group ANU College of Engineering & Computer Science 108 North Rd The Australian National University A

[pypy-dev] Request to make `makedev`, `major` and `minor` macros

2016-12-06 Thread John Zhang
appreciate someone can patch the change (it’s a bit tricky on my end using git-remote-hg. :P ). Regards, John Zhang -- John Zhang Research Assistant Programming Languages, Design & Implementation Division Computer Systems Group ANU Col

[pypy-dev] RPython Darwin platform description so_prefixes empty

2016-11-30 Thread John Zhang
me some problems with not being able to find my shared libraries on macOS X. I’m wondering if that’s intentional, or just a mistake? It should be a simple fix if it’s a mistake. Regards, John Zhang -- John Zhang Research Assistant Programming

[pypy-dev] Recursive struct definition in rffi?

2016-06-27 Thread John Zhang
) (A*); } Help appreciated. Regards, John Zhang -- John Zhang Research Assistant Programming Languages, Design & Implementation Division Computer Systems Group ANU College of Engineering & Computer Science 108 North Rd The Australian National Un

[pypy-dev] Compiling PyPy interpreter without GC

2015-03-18 Thread John Zhang
-backendopt-none \ $PYPY/pypy/goal/targetpypystandalone.py It gives off an error during annotation stage, saying that it's not able to find a module called '_rweakref'. Does anyone know what the problem might be, and how one might go and solve it? Appreciate greatly, John

Re: [pypy-dev] Compiling PyPy interpreter without GC

2015-03-18 Thread John Zhang
Hi Carl, Great! It worked! So the option disables all modules, and IO as well? Cheers, John Zhang On 19 Mar 2015, at 4:18 am, Carl Friedrich Bolz cfb...@gmx.de wrote: On 18/03/15 01:01, John Zhang wrote: Hi all, I'm working on developing a MicroVM