Message from discussion
Type 'hinting', mobile
Received: by 10.66.83.74 with SMTP id o10mr1524528pay.33.1344376938965;
Tue, 07 Aug 2012 15:02:18 -0700 (PDT)
X-BeenThere: shedskin-discuss@googlegroups.com
Received: by 10.68.219.40 with SMTP id pl8ls2044697pbc.9.gmail; Tue, 07 Aug
2012 15:02:18 -0700 (PDT)
Received: by 10.68.191.137 with SMTP id gy9mr2047183pbc.0.1344376938382;
Tue, 07 Aug 2012 15:02:18 -0700 (PDT)
Received: by 10.68.191.137 with SMTP id gy9mr2047181pbc.0.1344376938358;
Tue, 07 Aug 2012 15:02:18 -0700 (PDT)
Return-Path: <fahh...@gmail.com>
Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48])
by gmr-mx.google.com with ESMTPS id vo7si2455057pbc.1.2012.08.07.15.02.18
(version=TLSv1/SSLv3 cipher=OTHER);
Tue, 07 Aug 2012 15:02:18 -0700 (PDT)
Received-SPF: pass (google.com: domain of fahh...@gmail.com designates 209.85.160.48 as permitted sender) client-ip=209.85.160.48;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of fahh...@gmail.com designates 209.85.160.48 as permitted sender) smtp.mail=fahh...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-pb0-f48.google.com with SMTP id rq8so382011pbb.35
for <shedskin-discuss@googlegroups.com>; Tue, 07 Aug 2012 15:02:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=djShwtlIlqujuz5HDfF0K9Ut672Er9RquuYKlK3daek=;
b=D1MvAMcBHHRroJjozvMYmmMIUxKXfzcPBcPlCZTAQqihGyreqeNQEtL60h0fBR+zrz
o87tlsKe4zDsRhNkgLzeqrL1dAmkZ0OSwZnWfapK2wAVwGVOzjIL3tlpgN7W4bncZsWe
AUDox+fVWjQxgyj9/mvEmnThSINqmOctHALuTMdFuG30W7FIRyVIwJ7KWH7jTXsxlb2H
ivbijzSi3wpvC4/RONB6IPf0z6Cg33PFp0MpNy7rGk4rdAEkR4/jYtLOhTb7Jpd2hucQ
n3oRY0udPSKJOENxY3XcDmskWbk1rWF5uL9iIKz0bI5n6yni1PTIsahHI/7IXoYvpHBM
ttLQ==
MIME-Version: 1.0
Received: by 10.68.220.231 with SMTP id pz7mr30827518pbc.110.1344376938209;
Tue, 07 Aug 2012 15:02:18 -0700 (PDT)
Received: by 10.68.60.201 with HTTP; Tue, 7 Aug 2012 15:02:18 -0700 (PDT)
In-Reply-To: <e2344197-ca20-4214-a029-f5da024313c5@googlegroups.com>
References: <e2344197-ca20-4214-a029-f5da024313c5@googlegroups.com>
Date: Tue, 7 Aug 2012 15:02:18 -0700
Message-ID: <CAD8hrTO8psmABm03Sfcpe=GfQzaRrG9r6q5x33Xy_Sj-cZ9...@mail.gmail.com>
Subject: Re: Type 'hinting', mobile
From: Farz Hemmati <fahh...@gmail.com>
To: shedskin-discuss@googlegroups.com
Content-Type: multipart/alternative; boundary=047d7b2ee00dd8a32d04c6b4250e
--047d7b2ee00dd8a32d04c6b4250e
Content-Type: text/plain; charset=ISO-8859-1
Glad to hear it works on Android and iOS!
mark tends to consider type-hinting an abomination and any needs for it to
be bugs (I found a need for it recently with base classes not getting
type-inferences from their subclasses).
Also, he's gotten the type-inferencing to scale to moderately large
programs roughly linearly instead of the expected exponential growth, but
if you've got something over 10k lines, he'd be interested in performance
results.
I don't know if non-builtin modules are going to be shipped with shedskin,
but it would be cool if we had some shedskin-only modules available
somewhere.
On Tue, Aug 7, 2012 at 6:03 AM, sal <svfe...@gmail.com> wrote:
> Just a few random thoughts for the seasoned here.
>
> I'd like to do something like 'x=None' but also have shedskin understand
> the type is of 'Y()' for the static inferencing. Akin to: 'x=Y(); x=None;'
> but more elegantly. Cython has some helper types (like c_int, etc.) so
> it is pure python but carries more semantics. Just for the purposes of
> making more readable code... and perform well. (at compile and runtime). I
> know its not very pythonic but I was curious if others had some techniques.
> The SS docs mentioned that SS inferencingdoesn't scale... so that would
> also help a bit.
>
> I've also gotten SS output to run on Android, iOS. It required patching
> some parts, and Android needed an NDK cross compiler toolchain to work.
> Any interest in patches for this?
>
> Lastly I'm implementing OpenGL ES bindings for mobile targets... let me
> know if there is any work done here already, or if I should package that up
> for consumption as well.
>
> Thanks!!!
>
> --
> You received this message because you are subscribed to the Google Groups
> "shedskin-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/shedskin-discuss/-/N1xlLhlh7e0J.
> To post to this group, send email to shedskin-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> shedskin-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/shedskin-discuss?hl=en.
>
>
--047d7b2ee00dd8a32d04c6b4250e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Glad to hear it works on Android and iOS!<div><br></div><div>mark tends to =
consider type-hinting an abomination and any needs for it to be bugs (I fou=
nd a need for it recently with base classes not getting type-inferences fro=
m their subclasses).</div>
<div><br></div><div>Also, he's gotten the type-inferencing to scale to =
moderately large programs roughly linearly instead of the expected exponent=
ial growth, but if you've got something over 10k lines, he'd be int=
erested in performance results.</div>
<div><br></div><div>I don't know if non-builtin modules are going to be=
shipped with shedskin, but it would be cool if we had some shedskin-only m=
odules available somewhere.<br><br><div class=3D"gmail_quote">On Tue, Aug 7=
, 2012 at 6:03 AM, sal <span dir=3D"ltr"><<a href=3D"mailto:svferro@gmai=
l.com" target=3D"_blank">svfe...@gmail.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Just a few random thoughts for the seasoned =
here.<br>
<br>
I'd like to do something like 'x=3DNone' but also have shedskin=
understand the type is of 'Y()' for the static inferencing. Akin t=
o: 'x=3DY(); x=3DNone;' =A0but more elegantly. =A0Cython has some h=
elper types (like c_int, etc.) =A0so it is pure python but carries more sem=
antics. =A0Just for the purposes of making more readable code... and perfor=
m well. (at compile and runtime). =A0I know its not very pythonic but I was=
curious if others had some techniques. =A0The SS docs mentioned that SS in=
ferencingdoesn't scale... so that would also help a bit.<br>
<br>
I've also gotten SS output to run on Android, iOS. =A0It required patch=
ing some parts, and Android needed an NDK cross compiler toolchain to work.=
=A0Any interest in patches for this?<br>
<br>
Lastly I'm implementing OpenGL ES bindings for mobile targets... let me=
know if there is any work done here already, or if I should package that u=
p for consumption as well.<br>
<br>
Thanks!!!<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
--<br>
You received this message because you are subscribed to the Google Groups &=
quot;shedskin-discuss" group.<br>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msg/shedskin-discuss/-/N1xlLhlh7e0J" target=3D"_blank">https://groups.=
google.com/d/msg/shedskin-discuss/-/N1xlLhlh7e0J</a>.<br>
To post to this group, send email to <a href=3D"mailto:shedskin-discuss@goo=
glegroups.com">shedskin-discuss@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:shedskin-di=
scuss%2Bunsubscribe@googlegroups.com">shedskin-discuss+unsubscribe@googlegr=
oups.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/shedskin-discuss?hl=3Den" target=3D"_blank">http://groups.google.com/g=
roup/shedskin-discuss?hl=3Den</a>.<br>
<br>
</font></span></blockquote></div><br></div>
--047d7b2ee00dd8a32d04c6b4250e--