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

2015-03-09 Thread anatoly techtonik
I used to backends that are kind of service that is plugged into application. Maybe a `backendc` would be a better name, but then what `backendopt` is for? On Sat, Mar 7, 2015 at 3:21 PM, Carl Friedrich Bolz wrote: > That makes no sense, one cannot import packages with '-' in them. > > Carl Fried

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

2015-03-07 Thread Carl Friedrich Bolz
That makes no sense, one cannot import packages with '-' in them. Carl Friedrich On March 6, 2015 3:23:49 PM GMT+01:00, anatoly techtonik wrote: >On Fri, Mar 6, 2015 at 4:48 PM, Amaury Forgeot d'Arc > wrote: >> 2015-03-06 13:24 GMT+01:00 anatoly techtonik : >>> >>> On Wed, Mar 4, 2015 at 9:24

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

2015-03-06 Thread anatoly techtonik
On Fri, Mar 6, 2015 at 4:48 PM, Amaury Forgeot d'Arc wrote: > 2015-03-06 13:24 GMT+01:00 anatoly techtonik : >> >> On Wed, Mar 4, 2015 at 9:24 PM, Maciej Fijalkowski >> wrote: >> > you need to write a backend. Backends are in translator/xxx. >> >> There are multiple dirs in rpython/translator: >>

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

2015-03-06 Thread Amaury Forgeot d'Arc
2015-03-06 13:24 GMT+01:00 anatoly techtonik : > On Wed, Mar 4, 2015 at 9:24 PM, Maciej Fijalkowski > wrote: > > you need to write a backend. Backends are in translator/xxx. > > There are multiple dirs in rpython/translator: > > backendopt > c > goal > platform > sandbox > test > to

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

2015-03-06 Thread anatoly techtonik
On Wed, Mar 4, 2015 at 9:24 PM, Maciej Fijalkowski wrote: > you need to write a backend. Backends are in translator/xxx. There are multiple dirs in rpython/translator: backendopt c goal platform sandbox test tool Which of those are backends? -- anatoly t. ___

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 a C++ target might look a tad nice

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

2015-03-04 Thread Armin Rigo
Hi Ryan, On 4 March 2015 at 19:48, Ryan Gonzalez wrote: > Not necessarily. I figured that a C++ target might look a tad nicer because > it has built-in objects and exception handling. Yes, this might be true for the static backend. However, the JIT integration would be extremely painful. To ha

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

2015-03-04 Thread Armin Rigo
Hi Joonas, To make sense out of it, you would need an "ootype" backend, as opposed to a "lltype" backend which generates C-like code. Google for Antonio's thesis "High performance implementation of Python for CLI/.NET with JIT compiler generation for dynamic languages". But we killed support for

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 would probably be > better. It's a Python-to-Jass conve

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

2015-03-04 Thread Ryan Gonzalez
I seriously doubt PyPy is going to work well at all under JASS2; it'll probably be insanely slow. This would probably be better. It's a Python-to-Jass converter. On Wed, Mar 4, 2015 at 2:29 PM, Joonas Liik wrote: > the host language is called JASS2*

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

2015-03-04 Thread Joonas Liik
Oh yeah, forgot to mention there are hashtables (in JASS2) that do have infinite storage so .. not quite hopeless.. i hope. :) On 4 March 2015 at 22:29, Joonas Liik wrote: > the host language is called JASS2* > > JASS2 is the underlying scripting language for game basically,(Blizzards > Warcraf

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

2015-03-04 Thread Joonas Liik
the host language is called JASS2* JASS2 is the underlying scripting language for game basically,(Blizzards Warcraft 3 from 2002/2003 depending on where you're from) It is -strongly typed, -not very fast, -supports a grand total of 0 bit-wise operations -it has obscure and arcane w

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

2015-03-04 Thread Ryan Gonzalez
Not necessarily. I figured that a C++ target might look a tad nicer because it has built-in objects and exception handling. Of course, again, it'd likely have its own set of painful holes and would be largely useless. But I still want to try it. ;) On Wed, Mar 4, 2015 at 12:23 PM, Maciej Fijalkow

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

2015-03-04 Thread Maciej Fijalkowski
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 advantage, but I'm just too > curious... > > On Wed, Mar 4, 2015 at 2:5

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

2015-03-04 Thread Maciej Fijalkowski
you need to write a backend. Backends are in translator/xxx. Historically we used to support C, LLVM (to varying degrees), JS, C# (or it's bytecode). What are you targeting? is it low-level enough to make sense? What about the JIT? can you emit assembler and run it? On Wed, Mar 4, 2015 at 10:58 AM

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

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

2015-03-04 Thread Joonas Liik
Hey If i wanted to translate PyPy in to another language.. Where would i start? What would be the absolute minimum i had to do to get it working? I cant run any C code.. at all (obscure sandboxed platform that only runs an obscure scripting language none of you has probably ever heard of) how m