[Pycon] [new paper] "Alexander Ivanov" - Py2Nim: compiling Python to idiomatic code in statically typed languages
info a pycon.it
info a pycon.it
Dom 13 Gen 2019 20:59:24 CET
Title: Py2Nim: compiling Python to idiomatic code in statically typed languages
Duration: 45 (includes Q&A)
Q&A Session: 15
Language: en
Type: Talk
Abstract: Translating between high level languages usually result in strange, almost obfuscated result code. It's also harder to port code written in dynamic languages to statically typed target.
Py2Nim it tries to solve both problems. It analyzes a Python codebase, it infers types on runtime and generates idiomatic Nim code, using special knowledge about Python and Nim patterns, stdlib idioms and API.
The goals are to showcase how important is to generate maintainable and easily customizable code(the output requires some manual work, but it's far closer to what a programmer would write) and to demonstrate different ways in which languages stdlib API-s like Python's and Nim's can cooperate
It should be accessible for all audiences, implementation details might require some experience, but examples and language comparisons should be easy to visualize
Tags: [u'programming-languages', u'static-typing', u'Pseudocode']
Maggiori informazioni sulla lista
Pycon