Type 'hinting', mobile

26 views
Skip to first unread message

sal

unread,
Aug 7, 2012, 9:03:31 AM8/7/12
to shedskin...@googlegroups.com
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!!!

Farz Hemmati

unread,
Aug 7, 2012, 6:02:18 PM8/7/12
to shedskin...@googlegroups.com
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.


--
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...@googlegroups.com.
To unsubscribe from this group, send email to shedskin-discu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/shedskin-discuss?hl=en.


Reply all
Reply to author
Forward
0 new messages