Re: [pypy-dev] Sandbox 2

2019-08-13 Thread Ryan Gonzalez
Just as a random side note, this reminds me a bit of https://gvisor.dev/ On Tue, Aug 13, 2019, 4:41 AM Armin Rigo wrote: > Hi all, > > I've got an early but probably usable PyPy and PyPy3 with sandboxing. > Like the old sandboxing, these new versions are made out of a special > version of PyPy (

Re: [pypy-dev] Python 2 vs Python 3 again, and a 2.x-only dependency

2019-07-16 Thread Ryan Gonzalez
I mean once Python 2 is EOL requiring it for bootstrap might not be as practical, and PyPy requiring itself to bootstrap would be doable but a bit trickier. On Tue, Jul 16, 2019, 3:35 AM William ML Leslie < william.leslie@gmail.com> wrote: > > > On Tue., 16 Jul. 2019, 2:34 p

Re: [pypy-dev] Python 2 vs Python 3 again, and a 2.x-only dependency

2019-07-15 Thread Ryan Gonzalez
I'm actually largely wondering if RPython is going to eventually move to 3... On Mon, Jul 15, 2019, 6:25 PM Dan Stromberg wrote: > > What is Pypy planning to do with Python 2.x, now that many packages on > Pypi are dropping Python 2.x support? > > EG, I believe Pypy caters to Scientific Computin

Re: [pypy-dev] Can you please help?

2018-06-12 Thread Ryan Gonzalez
First off: don't bother with easy_install. Use pip instead, like the official directions use (http://pypy.org/download.html#installing-numpy): "C:\Program Files\Python36\pypy3-v6.0.0-win32\bin\pypy" -m ensurepip "C:\Program Files\Python36\pypy3-v6.0.0-win32\bin\pip" install numpy On June 12, 2

Re: [pypy-dev] Pip fails to work

2018-03-20 Thread Ryan Gonzalez
Did you build PyPy yourself? If so, you didn't compile the ssl module. Not really PyPy's fault... OTOH if this is a distro package/binary, where did you get it from? You can try the portable PyPy binaries: https://github.com/squeaky-pl/portable-pypy -- Ryan (ライアン) Yoko Shimomura, ryo (superce

Re: [pypy-dev] Details on project idea: Explicit typing in RPython

2017-03-29 Thread Ryan Gonzalez
RPython already has this: https://bitbucket.org/pypy/pypy/src/tip/rpython/rlib/signature.py -- Ryan (ライアン) Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else http://refi64.com On Mar 29, 2017 7:01 AM, "Richard Plangger" wrote: > Hello Joannah, > > Ronan might know more

Re: [pypy-dev] 2, 7 and 3.5 release is almost here - please help check you favorite platform

2017-03-21 Thread Ryan Gonzalez
Typo: in this subject header, you wrote 2, 7 instead of 2.7. ;) -- Ryan (ライアン) Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else http://refi64.com On Mar 20, 2017 2:47 PM, "Matti Picus" wrote: > The release is almost ready. Please check the website for obvious typos, >

Re: [pypy-dev] Disassembling methods called by LOOKUP_METHOD

2017-03-03 Thread Ryan Gonzalez
You can look at the source code for the objects (all located in pypy/objspace/std) and find the method implementations there. Here's append's (form pypy/objspace/std/listobject.py): def append(self, w_item): """L.append(object) -- append object to end""" self.strategy.append(

Re: [pypy-dev] cppyy fails to build on gcc 5 and clang

2017-01-17 Thread Ryan Gonzalez
2017, at 3:30 pm, Tobias Oberstein wrote: > Hi Ryan, > > Am 17.01.2017 um 20:56 schrieb Ryan Gonzalez: > This one looks like a bug in cppyy! > Try going to clingcwrapper.cxx and changing line 525 from: > > Yeah, that helps: the issue at line 525 is gone, but the 2nd issu

Re: [pypy-dev] cppyy fails to build on gcc 5 and clang

2017-01-17 Thread Ryan Gonzalez
This is > > oberstet@thinkpad-t430s:~/scm/oberstet/scratchbox/cpp/capnproto/test1$ clang++ --version clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin > > Thanks for your help! Tobias > >

Re: [pypy-dev] cppyy fails to build on gcc 5 and clang

2017-01-17 Thread Ryan Gonzalez
In your Makefile, change this: CXX=`which clang` \ to: CXX=`which clang++` \ -- Ryan (ライアン) Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else http://kirbyfan64.github.io/ On Jan 17, 2017 12:41 PM, "Tobias Oberstein" wrote: > Am 17.01.2

Re: [pypy-dev] cppyy fails to build on gcc 5 and clang

2017-01-17 Thread Ryan Gonzalez
On Jan 17, 2017 12:37 PM, wrote: Hi Ryan, On Tuesday 2017-01-17 18:28, Ryan Gonzalez wrote: > I think you misunderstood me. Your build log shows: > no, I didn't. :) It's not my build log, it's Tobias's. *facepalm* I need to double-check who exactly I'm rep

Re: [pypy-dev] cppyy fails to build on gcc 5 and clang

2017-01-17 Thread Ryan Gonzalez
om/> On Jan 17 2017, at 12:20 pm, wlavrij...@lbl.gov wrote: > Hi, > > On Tuesday 2017-01-17 18:03, Ryan Gonzalez wrote: > What happens if you remove the `-stdlib=libc++`? Seems like that's where the > Clang build error is coming from. > > that will likely

Re: [pypy-dev] cppyy fails to build on gcc 5 and clang

2017-01-17 Thread Ryan Gonzalez
What happens if you remove the `-stdlib=libc++`? Seems like that's where the Clang build error is coming from. \-- Ryan (ライアン) Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else On Jan 17 2017, at 11:53 am, Tobias Oberstein wrote: > Hi

Re: [pypy-dev] cannot use "id" in Rpython

2016-12-29 Thread Ryan Gonzalez
What exactly are you trying to do. Using id to get the address of a function is usually a bad idea... -- Ryan (ライアン) Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else http://kirbyfan64.github.io/ On Dec 29, 2016 1:19 PM, "Shubha Ramani via pypy-dev" wrote: > > What can

Re: [pypy-dev] bitbucket enbled clonebundles

2016-12-27 Thread Ryan Gonzalez
Does it make pulls any faster? I have the PyPy repo, but I haven't pulled in over a year and am scared of it burning my CPU... -- Ryan (ライアン) Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else http://kirbyfan64.github.io/ On Dec 27, 2016 3:43 PM, "Matti Picus" wrote: > B

Re: [pypy-dev] with rpython is there a way to not write out the "c" files ?

2016-12-05 Thread Ryan Gonzalez
Should be --no-source, but I have to wonder...what exactly are you trying to do? On Mon, Dec 5, 2016 at 12:36 PM, Shubha Ramani via pypy-dev < pypy-dev@python.org> wrote: > It takes a long time and I don't really care about the backend c > implementation at the moment. > Do I just do a -s as show

Re: [pypy-dev] NumPy or NumPyPy

2016-09-27 Thread Ryan Gonzalez
IIRC referring to numpy w/ cpyext. -- Ryan [ERROR]: Your autotools build scripts are 200 lines longer than your program. Something’s wrong. http://kirbyfan64.github.io/ On Sep 27, 2016 4:02 PM, "Papa, Florin" wrote: > Hello, > > I read this announcement [1] saying that "over 99% of the upstream

Re: [pypy-dev] improve error message when missing 'self' in method definition

2016-09-27 Thread Ryan Gonzalez
Have you considered bringing this up on python-ideas, too? On Tue, Sep 27, 2016 at 12:19 PM, Carl Friedrich Bolz wrote: > Hi all, > > I read this paper today about common mistakes that Python beginners > make: > > https://www.researchgate.net/publication/307088989_Some_ > Trouble_with_Transparen

Re: [pypy-dev] PyPy2 v5.3.0 released, help us get the word out

2016-06-08 Thread Ryan Gonzalez
Posted to /r/programming! -- Ryan [ERROR]: Your autotools build scripts are 200 lines longer than your program. Something’s wrong. http://kirbyfan64.github.io/ On Jun 8, 2016 2:53 PM, "Matti Picus" wrote: > > https://morepypy.blogspot.co.il/2016/06/pypy2-v53-released-major-c-extension.html > Thi

Re: [pypy-dev] Reflex home page?

2016-04-27 Thread Ryan Gonzalez
Only page I can find is: https://root.cern.ch/download/doc/ROOTUsersGuideHTML/ch07s10.html Looks like they just re-did the ROOT website. -- Ryan [ERROR]: Your autotools build scripts are 200 lines longer than your program. Something’s wrong. http://kirbyfan64.github.io/ On Apr 27, 2016 2:27 AM,

Re: [pypy-dev] Error Messages

2016-04-26 Thread Ryan Gonzalez
I personally think it's fine: 1. CPython has pretty decent error messages. Other than long stack traces with recursion errors, or maybe column offsets, there isn't really anything that could be significantly improved. 2. Changing the actual errors would likely break...a *lot*! -- Ryan [ERROR]: Y

Re: [pypy-dev] Current status of GUI support in PyPy

2015-12-18 Thread Ryan Gonzalez
I find HTML5 overkill if you're not using JS... On December 18, 2015 7:52:40 AM CST, Phyo Arkar wrote: >Best GUI for every language these days is HTML5. > >Use PyPy as backend process , and use HTML5 as UI. > >Check out Electron .http://electron.atom.io/ HTML5 Desktop UI that >powers >Atom edito

Re: [pypy-dev] Current status of GUI support in PyPy

2015-12-16 Thread Ryan Gonzalez
On December 16, 2015 7:05:43 AM CST, Oscar Benjamin wrote: >On 16 December 2015 at 12:45, Armin Rigo wrote: >> >> On Wed, Dec 16, 2015 at 1:39 PM, Oscar Benjamin >> wrote: >>> Does tkinter work with PyPy yet (It doesn't in >>> the version I have installed here)? >> >> It should work. Did you

[pypy-dev] PyPy doesn't implement the most important module!

2015-10-21 Thread Ryan Gonzalez
ryan@DevPC-LX:~$ ipython Python 2.7.6 (default, Mar 22 2014, 22:59:56) Type "copyright", "credits" or "license" for more information. IPython 1.1.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's o

Re: [pypy-dev] "PyPy lets us go where we need to"

2015-10-16 Thread Ryan Gonzalez
Crud...I think I accidentally sent that twice... :O I also x-posted this to /r/programming: https://www.reddit.com/r/programming/comments/3p128a/from_python_to_go_and_back_again_xposted_from/. On October 16, 2015 3:07:24 PM CDT, Ryan Gonzalez wrote: >You know how it goes: everyone overhy

Re: [pypy-dev] "PyPy lets us go where we need to"

2015-10-16 Thread Ryan Gonzalez
You know how it goes: everyone overhypes something as "perfect", only to realize it's not actually perfect. See: Node.js, Java, Rails, ... PyPy definitely deserves a bit more use in the real world, so I really like this presentation. On October 16, 2015 2:31:32 PM CDT, Tuom Larsen wrote: >Dea

Re: [pypy-dev] "PyPy lets us go where we need to"

2015-10-16 Thread Ryan Gonzalez
You know how it goes: everyone overhypes something as "perfect", only to realize it's not actually perfect. See: Node.js, Java, Rails, ... PyPy definitely deserves a bit more use in the real world, so I really like this presentation. On October 16, 2015 2:31:32 PM CDT, Tuom Larsen wrote: >Dea

Re: [pypy-dev] About gurobipy

2015-09-30 Thread Ryan Gonzalez
http://pypy.readthedocs.org/en/latest/cpython_differences.html#differences-related-to-garbage-collection-strategies On Wed, Sep 30, 2015 at 1:10 PM, Vasily Evseenko wrote: > Hi, > Could you explain about closed file objects (do you mean open file > descriptors)? > I've never heard about this res

Re: [pypy-dev] State of GUI toolkits with PyPy?

2015-09-18 Thread Ryan Gonzalez
I'd advise you to try PGI (https://github.com/lazka/pgi). It's a set of PyPy-compatible Gtk+ 3 bindings that's mostly compatible with PyGObject. They're not complete, but I've used them before, and they work quite well. On September 18, 2015 12:53:18 AM CDT, Eric Driggers wrote: >Looking at re

Re: [pypy-dev] prepping for pypy 2.6.1 release cycle

2015-07-29 Thread Ryan Gonzalez
ARE YOU SERIOUS??? The Chocolatey mods haven't even approved the 2.6 release yet! On July 28, 2015 10:26:55 PM CDT, Matti Picus wrote: >It seems the time has come to release pypy 2.6.1 >Does anyone have work not-yet-merged that they would like in the >release, or any big issues blocking a rele

Re: [pypy-dev] Are there any methods to view pypy gc log?

2015-07-15 Thread Ryan Gonzalez
On July 15, 2015 3:42:17 AM CDT, Yicong Huang wrote: >Great thanks! >We tried gc log, and got a piece of below output. >However, it is hard to read. >Is it possible to get some common metrics, e.g. timestamp of GC >occourred, >gc paused time, gc count? >We found there is a tool gcanalyze.py migh

Re: [pypy-dev] A simple file reading is 2x slow wrt CPython

2015-06-29 Thread Ryan Gonzalez
Could you try just using: for line in f: ... That refrains from the loading the entire file into memory at once. On June 29, 2015 8:02:23 AM CDT, "Ozan Çağlayan" wrote: >Hi, > >I just downloaded PyPy 2.6.0 just to play with it. > > >I have a simple line-by-line file reading example where t

Re: [pypy-dev] RFFI Usage and Documentation

2015-06-22 Thread Ryan Gonzalez
On June 22, 2015 10:17:24 AM CDT, Derek Lockhart wrote: >After a bit of a struggle I finally got RFFI working for a shared >libary I >had compiled. I found a few strange discrepancies in the behavior of >ExternalCompilitionInfo on OSX I thought may benefit from fixes to make >behavior more cons

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
VM so it could >finish >> faster.) >> >> On Thu, Jun 11, 2015 at 10:01 PM, Ryan Gonzalez >wrote: >> >>> Ah, minor detail. You need to first run: >>> >>> sudo apt-get install libffi-dev pkg-config libz-dev libbz2-dev \ >>> libsqlite

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
gt;>>> [translation:ERROR] ^ >>>> [translation:ERROR] compilation terminated. >>>> [translation:ERROR] """) >>>> [translation] start debugger... >>>> > >>>> /home/ubuntu/Desktop/pypy-2.6.0-src/rpython/rtyper/tool/rffi_pla

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
t;> [translation:ERROR] """) >>> [translation] start debugger... >>> > >>> >/home/ubuntu/Desktop/pypy-2.6.0-src/rpython/rtyper/tool/rffi_platform.py(834)configure_external_library() >>> -> raise last_error >>> (Pdb+) >>> >>>

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
:ERROR] #include > [translation:ERROR] ^ > [translation:ERROR] compilation terminated. > [translation:ERROR] """) > [translation] start debugger... > > > /home/ubuntu/Desktop/pypy-2.6.0-src/rpython/rtyper/tool/rffi_platform.py(834)configure_external_library() > -> r

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
On Thu, Jun 11, 2015 at 1:39 PM, Ryan Gonzalez wrote: > Honestly, these is just general Linux issues. Like I said, not even Linus > Torvalds makes binaries of his dive logger for Linux. It a pain in the > everything. > *these are* (damn, I hate autocorrect...) > > I usual

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
y easier to install. This also goes for Windows: Why isn't there an > installer? But yeah, it's an open-source project, so I'm just ranting. > > On Thu, Jun 11, 2015 at 9:30 PM, Ryan Gonzalez wrote: > >> Remember: I am *dead* serious about you rebuilding it. I

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
t; python-ideas about this, maybe the -m flag should be changed to work on > scripts. > > I tried a few things, including pyenv, but it didn't work. I've given up > at this point. Thanks for your help. > > > On Thu, Jun 11, 2015 at 8:15 PM, Ryan Gonzalez wrote: &g

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
Dang, I forgot about that. Unfortunately, I don't think that works for some other Python packages. On June 11, 2015 11:44:38 AM CDT, Romain Guillebert wrote: >pypy -m pip works > >On Thu, Jun 11, 2015 at 5:05 PM, Ryan Gonzalez >wrote: >> I don't think you can out

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
Stuff gets installed in >> site-packages I believe (just like on cpython) >> >> On Thu, Jun 11, 2015 at 4:46 PM, Ram Rachum wrote: >> > Things I don't care about so much right now: >> > - How fast PyPy runs. >> > >> > Things I care a lo

Re: [pypy-dev] Question

2015-06-11 Thread Ryan Gonzalez
Note: The PyPy bundled with Ubuntu 12 LTS is insanely slow. On June 11, 2015 9:27:12 AM CDT, Ram Rachum wrote: >When I install Pypy on Ubuntu using apt-get, and then run get-pip.py , >how >do I access the pip that belongs to PyPy? > > >

Re: [pypy-dev] Working version of pypy3 that support Python 3.3

2015-06-11 Thread Ryan Gonzalez
I tried it, got this error: >> >> debug: OperationError: >> debug: operror-type: ImportError >> debug: operror-value: No module named 'encodings' >> debug: OperationError: >> debug: operror-type: AttributeError >> debug: operror-value: stdout >>

Re: [pypy-dev] Working version of pypy3 that support Python 3.3

2015-06-09 Thread Ryan Gonzalez
:: curl -L http://buildbot.pypy.org/nightly/py3.3/pypy-c-jit-76553-deae634f291c-linux64.tar.bz2 > pypy.tar.bz2 tar xf pypy.tar.bz2 cd pypy-c-jit* cd bin ./pypy # or ./pypy-c? I *think* this is what you'd need to run. On Tue, Jun 9, 2015 at 1:01 PM, Ram Rachum wrote: > Ah, so I guess I have no

Re: [pypy-dev] An overview of the RPython language

2015-05-31 Thread Ryan Gonzalez
Thanks! I edited the post. On Sun, May 31, 2015 at 8:38 AM, Maciej Fijalkowski wrote: > None in the target mens the default annotation of the entry point > (list of strings) > > On Sat, May 30, 2015 at 6:28 PM, Ryan Gonzalez wrote: > > > > > > On May 30, 2015 6:

Re: [pypy-dev] An overview of the RPython language

2015-05-30 Thread Ryan Gonzalez
On May 30, 2015 6:18:36 AM CDT, "Yury V. Zaytsev" wrote: >On Fri, 2015-05-29 at 20:32 -0500, Ryan Gonzalez wrote: >> >> IMO, this is needed. Most RPython articles are insanely old (from >> 200x) or just cover the JIT (Andrew Brown's excellent tutorial).

[pypy-dev] An overview of the RPython language

2015-05-29 Thread Ryan Gonzalez
I wrote a quick overview of the RPython language at http://kirbyfan64.github.io/posts/the-magic-of-rpython.html. Any suggestions for improvement would be appreciated. :) IMO, this is needed. Most RPython articles are insanely old (from 200x) or just cover the JIT (Andrew Brown's excellent tutorial

Re: [pypy-dev] PyPy 2.6.0 release binaries available

2015-05-27 Thread Ryan Gonzalez
Not me! I just updated the Chocolatey package from 2.2 to 2.5.1 about 2 weeks ago! On May 27, 2015 8:52:46 AM CDT, Phyo Arkar wrote: >Congrats! i love that pypy releases are getting faster and faster! >i haven't even upgrade to 2.5.1 yet in my systems, 2.6 is relased. Time >to >try it out now an

Re: [pypy-dev] What is the oldest version of CPython that can be used to build PyPy?

2015-05-26 Thread Ryan Gonzalez
Ok. Thanks! On Tue, May 26, 2015 at 1:42 PM, Maciej Fijalkowski wrote: > I think we settled on 2.7 > > On Tue, May 26, 2015 at 8:30 PM, Ryan Gonzalez wrote: > > ^ see subject > > > > -- > > Ryan > > [ERROR]: Your autotools build scripts are 200 lines lo

[pypy-dev] What is the oldest version of CPython that can be used to build PyPy?

2015-05-26 Thread Ryan Gonzalez
^ see subject -- Ryan [ERROR]: Your autotools build scripts are 200 lines longer than your program. Something’s wrong. http://kirbyfan64.github.io/ ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Re: [pypy-dev] For embedding pypy, how to deal with None value

2015-05-20 Thread Ryan Gonzalez
On May 20, 2015 1:39:57 AM CDT, Armin Rigo wrote: >Hi Ryan, > >On 19 May 2015 at 20:09, Ryan Gonzalez wrote: >> Why not return a pointer to a double? Like (UNTESTED!): >> >> d = ffi.new('double*') >> d[0] = 9.0 >> return d > >This doesn

Re: [pypy-dev] For embedding pypy, how to deal with None value

2015-05-19 Thread Ryan Gonzalez
Why not return a pointer to a double? Like (UNTESTED!): d = ffi.new('double*') d[0] = 9.0 return d Then you could return None, which is converted to a C NULL (same thing other way around). On May 19, 2015 11:27:28 AM CDT, Yicong Huang wrote: >One approach we thought of is to use additional int

Re: [pypy-dev] How to call the "same pypy function" from C for thousands of times?

2015-05-12 Thread Ryan Gonzalez
Couldn't you just write the loop in Python? On May 12, 2015 9:42:47 PM CDT, Yicong Huang wrote: >Hi, > >I read the document "Embedding Pypy". It introduces the method to call >pypy >function from C. >In our scenaro, we would like to call the same pypy function from C for >thousands of times or ev

Re: [pypy-dev] PyPy on Windows 7: Icon file for pypy.exe

2015-05-04 Thread Ryan Gonzalez
You can use rcedit : rcedit pypy.exe --set-icon pypy.ico Or use Resource Hacker (a GUI tool). Reminds me: I need to update the Chocolatey package for PyPy. I haven't touched it since 2.2... On Mon, May 4, 2015 at 3:37 AM, Armin Rigo wrote: > Hi Eun, > > On 4 M

Re: [pypy-dev] Mod typing error

2015-03-27 Thread Ryan Gonzalez
I don't know much about RPython internals, but PyPy calls rpython.rtyper.lltypesystem.module.ll_math.math_fmod for modulus operations on floats. On Fri, Mar 27, 2015 at 5:46 PM, Timothy Baldridge wrote: > I have some RPython that does this: > > return a % b > > while in another function I'm call

Re: [pypy-dev] Language Parser Ontology

2015-03-10 Thread Ryan Gonzalez
Pycparser doesn't use the C compiler to strip comments; it uses the C *preprocessor*. Even without comments, it'd probably need the C preprocessor anyway for things like macros and includes. On Mon, Mar 9, 2015 at 1:43 PM, anatoly techtonik wrote: > I'll start from afar, so that it will be easi

Re: [pypy-dev] trsnslating pypy to another language besides C

2015-03-05 Thread Ryan Gonzalez
I didn't figure I'd even get that far... It's mostly just for toying with the static backend, without the JIT. On Wed, Mar 4, 2015 at 11:02 PM, Armin Rigo wrote: > Hi Ryan, > > On 4 March 2015 at 19:48, Ryan Gonzalez wrote: > > Not necessarily. I figured that

Re: [pypy-dev] trsnslating pypy to another language besides C

2015-03-04 Thread Ryan Gonzalez
Nevermind. The link seems dead. On Wed, Mar 4, 2015 at 3:41 PM, Ryan Gonzalez wrote: > I seriously doubt PyPy is going to work well at all under JASS2; it'll > probably be insanely slow. > > This <http://www.wc3c.net/showthread.php?t=61352> would probably be > bet

Re: [pypy-dev] trsnslating pypy to another language besides C

2015-03-04 Thread Ryan Gonzalez
t the first one. > ** theres about 20 built in types.. that are mostly ints in reality.. but > you cant use that. > *** this can be circumvented in a number of ways but at some cost .. its > a real pain tho if u want to calculate something expensive. > of all types except "

Re: [pypy-dev] trsnslating pypy to another language besides C

2015-03-04 Thread Ryan Gonzalez
aciej Fijalkowski wrote: > C is C++ right? or what precisely did you want to do? > > On Wed, Mar 4, 2015 at 8:15 PM, Ryan Gonzalez wrote: > > I'd kind of like to know this, too. I've wanted to try to get PyPy to > > translate to C++. I doubt it would be of any adv

Re: [pypy-dev] trsnslating pypy to another language besides C

2015-03-04 Thread Ryan Gonzalez
I'd kind of like to know this, too. I've wanted to try to get PyPy to translate to C++. I doubt it would be of any advantage, but I'm just too curious... On Wed, Mar 4, 2015 at 2:58 AM, Joonas Liik wrote: > Hey > > If i wanted to translate PyPy in to another language.. > > Where would i start? >

Re: [pypy-dev] pypy2.5 with stdlib-2.7.9?

2015-01-19 Thread Ryan Gonzalez
I don't have a lot of time to help...but I do enjoy contributing to various OSS projects. Is there a file somewhere that says what the things that need to be finished for stdlib 2.7.9 are? Also, I'm assuming PR's are the preferred method of contributing. On Mon, Jan 19, 2015 at 2:37 PM, Matti Pi

Re: [pypy-dev] Experiments with PyPy and libgccjit

2014-12-15 Thread Ryan Gonzalez
On Mon, Dec 15, 2014 at 4:53 AM, Maciej Fijalkowski wrote: > > On Mon, Dec 15, 2014 at 9:22 AM, Maciej Fijalkowski > wrote: > > On Mon, Dec 15, 2014 at 6:35 AM, Ryan wrote: > >> I don't know; it just seems weird, since LLVM and libgccjit seem to hold > >> similar concepts (though there's a 99% c

Re: [pypy-dev] Experiments with PyPy and libgccjit

2014-12-14 Thread Ryan Gonzalez
As awesome as this would be, I'd be surprised if this worked since LLVM didn't. On Fri, Dec 12, 2014 at 8:13 PM, David Malcolm wrote: > > I'm the maintainer of a new feature for the (not-yet-released) GCC 5: > libgccjit: a way to build gcc as a shared library, suitable for > generating code in-pr

Re: [pypy-dev] Segfault in Hy for PyPy 2.4

2014-11-05 Thread Ryan Gonzalez
That's the weird issue: it's already fixed! A version compiled from tip works, but the prebuilt 2.4 binaries are the ones that crash. On Wed, Nov 5, 2014 at 2:27 AM, Amaury Forgeot d'Arc wrote: > 2014-11-05 1:57 GMT+01:00 Ryan Gonzalez : > >> I just built the PyPy alp

[pypy-dev] Segfault in Hy for PyPy 2.4

2014-11-04 Thread Ryan Gonzalez
I just built the PyPy alpha yesterday. I can run the tests using nose for the Hy project under PyPy 2.5 alpha and PyPy 2.3. However, using the prebuilt PyPy 2.4 binaries fails with a segfault. Why does this happen? -- Ryan If anybody ever asks me why I prefer C

Re: [pypy-dev] lltype.malloc with opaque structs

2014-11-04 Thread Ryan Gonzalez
I think last time I checked, I used rffi.COpaquePtr("MyType") to refer to a pointer to MyType. On Tue, Nov 4, 2014 at 6:30 PM, Timothy Baldridge wrote: > There seem to be many ways to define rffi structs, rffi.Struct CStruct, > rffi_platform.Struct, lltype.Struct, what I need is this: > > There'

Re: [pypy-dev] Getting involved

2014-07-09 Thread Ryan Gonzalez
Well, if the stack still shows the function call, it isn't a bad idea. On Wed, Jul 9, 2014 at 2:17 AM, Armin Rigo wrote: > Hi John, > > On 8 July 2014 22:57, John Smith <4u5vj...@gmail.com> wrote: > > Yes. But tail-call optimization is a performance optimization, so it goes > > well with PyPy.

Re: [pypy-dev] [pypy] Adding gcc flags to Makefile

2014-06-19 Thread Ryan Gonzalez
NOTE: I am not a PyPy developer. Looking at RPython's translator(rpython/translator/c/genc.py), can't you set the CFLAGSEXTRA environment variable with the extra flags? On Thu, Jun 19, 2014 at 3:28 AM, Joe Borġ wrote: > Hi all, > > Because I've had to build zlib away from its normal home, I ne

Re: [pypy-dev] PyPy download hosting

2014-05-13 Thread Ryan Gonzalez
Just out of curiosity, what about SourceForge? I know that several major projects such as MinGW use them. Their download hosting is great; I've used them before. On Tue, May 13, 2014 at 7:29 AM, Alex Gaynor wrote: > Hi all, > > Right now PyPy binaries for releases are hosted on bitbucket. > Unf

Re: [pypy-dev] PyPy 2.3 alpha release

2014-05-05 Thread Ryan Gonzalez
*reply to self* I noticed you fixed most of the issues I mentioned, but you forgot about bullet point 3 and the bullet point first word capitalization under NumPy. On Sun, May 4, 2014 at 5:00 PM, Ryan Gonzalez wrote: > I can't help you with the motto, but I noticed some grammar iss

Re: [pypy-dev] PyPy 2.3 alpha release

2014-05-04 Thread Ryan Gonzalez
I can't help you with the motto, but I noticed some grammar issues(yeah, I'm a grammar nerd): - Under the section labeled "NumPy", there's inconsistent capitalization. NumPy is written as both "NumPy" and "Numpy". The bullet point first words are also inconsistent in capitalization. - Again under

Re: [pypy-dev] Blocked Block error

2014-04-22 Thread Ryan Gonzalez
Thank you so much again! That makes sense! On Tue, Apr 22, 2014 at 3:14 AM, Armin Rigo wrote: > Hi Ryan, > > On 21 April 2014 20:37, Ryan Gonzalez wrote: > > What I want to know is the meaning of the Blocked Block error. I always > get > > that error at least once

[pypy-dev] Blocked Block error

2014-04-21 Thread Ryan Gonzalez
First, a quick apology: I don't want anyone to feel like I'm abusing the list or something. I just really need help, and StackOverflow isn't necessarily RPython-friendly. What I want to know is the meaning of the Blocked Block error. I always get that error at least once. Usually I can solve it my

Re: [pypy-dev] Alternatives to multiple inheritance

2014-04-18 Thread Ryan Gonzalez
That makes sense! Thanks a lot! On Fri, Apr 18, 2014 at 1:44 AM, Armin Rigo wrote: > Hi Ryan, > > On 18 April 2014 01:13, Benjamin Peterson wrote: > > On Thu, Apr 17, 2014, at 15:42, Ryan Gonzalez wrote: > >> The exception object needs to > >> derive from my

[pypy-dev] Alternatives to multiple inheritance

2014-04-17 Thread Ryan Gonzalez
I’m writing a scripting language using RPython. I have a base class for all my objects. Now, I have an exception object. The exception object needs to derive from my base class in order for me to use polymorphism inside the interpreter. However, it also needs to derive from the Exception class to b

Re: [pypy-dev] Easy way to get access to cmpxchg?

2014-02-21 Thread Ryan Gonzalez
Well, I know that Python uses references, so that wouldn't be possible in normal Python code without using stack inspection. In RPython, which restricts all of that, it'd have to be another translator feature that uses magic to get things done. On Fri, Feb 21, 2014 at 6:39 PM, Timothy Baldridge

Re: [pypy-dev] PyPy Intermediate C Files

2014-02-17 Thread Ryan Gonzalez
Note that that needs to be done when using Clang, too. If you leave the default GC root finder, you'll get some crazy errors. On Mon, Feb 17, 2014 at 4:45 PM, Romain Guillebert wrote: > Hi Kirk > > If you want to compile with something that is not gcc, you should use > "--gcrootfinder=shadowstac

Re: [pypy-dev] Spam mail?

2014-02-03 Thread Ryan Gonzalez
p to carry 150 > kilotons/gigagrams! > > - Kenny Levinsen > > On 03 Feb 2014, at 22:59, Ryan Gonzalez wrote: > > > Some stupid company labeled "Potephos Shipping and Chartering" seems to > have sent some advertisement mail using this mailing list. Just wanted

[pypy-dev] Spam mail?

2014-02-03 Thread Ryan Gonzalez
Some stupid company labeled "Potephos Shipping and Chartering" seems to have sent some advertisement mail using this mailing list. Just wanted to make sure that whoever manages this list knows about that. -- Ryan If anybody ever asks me why I prefer C++ to C, my answer will be simple: "It's becau

Re: [pypy-dev] Chocolatey package for windows ?

2014-01-30 Thread Ryan Gonzalez
I'll do that, cause it sounds great. However, it'll take about 1 week. I'm pretty busy right now. On Thu, Jan 30, 2014 at 5:56 AM, Stuart Axon wrote: > http://chocolatey.org/ bills itself as apt-get for windows, it's fairly > convenient - any chance of adding a pypy package ? > > If so, then on

Re: [pypy-dev] cppyy and callbacks

2014-01-09 Thread Ryan Gonzalez
What about the CINT backend? https://bitbucket.org/pypy/pypy/src/52bbec630c1faec5ea0c1772872411de541d507f/pypy/module/cppyy/test/test_cint.py On Thu, Jan 9, 2014 at 12:14 P

Re: [pypy-dev] Boost.Python and PyPy -- status?

2014-01-09 Thread Ryan Gonzalez
indings. Note that one of these is VERY long! https://qt.gitorious.org/pyside/pyside/source/d2a47ab8f27af7e74d34797464da85c128c17c37:PySide - The best(and largest) example of all: PySide itself. On Thu, Jan 9, 2014 at 3:25 PM, Toby St Clere Smithe wrote: > Ryan Gonzalez writes: > > Ever

Re: [pypy-dev] Boost.Python and PyPy -- status?

2014-01-09 Thread Ryan Gonzalez
Every tried Shiboken? My guess is that it'd work better with cpyext thatn Boost::Python, since there's less black magic in the background. On Thu, Jan 9, 2014 at 10:59 AM, Toby St Clere Smithe wrote: > Hi there, > > I have written a (C)Python extension using Boost::Python, and would like > to ge

Re: [pypy-dev] clarification cffi vs _ffi_ vs _ffi vs libffi vs _rawffi vs rffi

2013-12-02 Thread Ryan Gonzalez
Check the _tkinter and _sqlite3 modules. On Mon, Dec 2, 2013 at 1:29 PM, Dima Tisnek wrote: > Thanks, Armin, doc page looks good now! > > On a related note, I'm thinking to interface jvm/dalvik, similar to > jpype (C module) and following pyjnius (cython module), but in cffi. > > I'd be very gr

[pypy-dev] Print unicode strings in RPython?

2013-11-25 Thread Ryan Gonzalez
Hello, I'm writing an app in RPython. Whenever I try and print a unicode string, the compiled application will crash with a UnicodeEncodingError. Here is an example: def entry_point(argv): print u'\u2502' return 0 def target(driver, args): return entry_point, None When running it, I

Re: [pypy-dev] Preparing for the release of PyPy 2.2

2013-11-12 Thread Ryan Gonzalez
is all resolved, we can update the buildbot to use the zip file > contents and package the needed dlls > Matti > > > On 12/11/2013 9:06 PM, Ryan Gonzalez wrote: > >> I could probably do the Windows DLL fixes, if someone told me how to >> upload the changes... >> >

Re: [pypy-dev] Preparing for the release of PyPy 2.2

2013-11-12 Thread Ryan Gonzalez
I could probably do the Windows DLL fixes, if someone told me how to upload the changes... On Mon, Nov 11, 2013 at 5:53 AM, Armin Rigo wrote: > Hi all, > > Preparing for the next release. The Linux binaries of PyPy 2.2, > release candidate, are here: > > http://buildbot.pypy.org/nightly/releas

[pypy-dev] PyPy acting slow

2013-11-09 Thread Ryan Gonzalez
For some reason, my PyPy installation seems very slow; both the version from the Ubuntu repos and a custom build I did(WITH the JIT enabled). I ran example2.py from the RPython tutorial using CPython and PyPy. Even after the JIT(visibly) kicked in, it was still much slower than CPython. While CPyth

[pypy-dev] Using PyPy's GC

2013-11-03 Thread Ryan Gonzalez
If I'm implementing my own language in RPython, can I use the same garbage collector that PyPy uses? Or do I have to write my own? -- Ryan ___ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

[pypy-dev] RPython Environment Variables

2013-10-31 Thread Ryan Gonzalez
I am writing a tool in RPython that needs to access environment variables. Now, all has been going well, but I noticed something interesting. The RPython translator sees os.environ as constant. But, will it still be constant on other platforms? What I'm saying is, are the environment variables per

[pypy-dev] Using RPython for a semi-statically-typed language

2013-10-26 Thread Ryan Gonzalez
Hello, I am in need of a little assistance. I am thinking of writing a language in RPython. Now, here is what I want: -Polymorphism(C++) without pointers, i.e., Derived can be implicitly cast to Base I am thinking of picking RPython because of the JIT. However, I am worried about the speed. I kn