Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #73190

Re: 基于cython的即时编译器cyjit,欢迎大家提建议

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <1989lzhh@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'example:': 0.03; 'english.': 0.04; 'syntax': 0.04; 'compiler': 0.07; 'variables': 0.07; 'function,': 0.09; 'instance.': 0.09; 'rewrite': 0.09; 'run,': 0.09; 'runtime': 0.09; 'suggestions.': 0.09; 'to:addr:pobox.com': 0.09; 'to:addr:skip': 0.09; 'url:github': 0.09; 'translate': 0.10; 'cc:addr:python-list': 0.11; 'python': 0.11; 'def': 0.12; 'b):': 0.16; 'extension,': 0.16; 'follow-up': 0.16; 'backend': 0.19; 'import': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'compilation': 0.24; 'skip': 0.24; 'specify': 0.24; 'looks': 0.24; 'compiled': 0.26; 'extension': 0.26; 'possibly': 0.26; 'post': 0.26; 'defined': 0.27; 'header:In-Reply- To:1': 0.27; 'function': 0.29; 'primarily': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'code': 0.31; 'run': 0.32; 'quite': 0.32; 'url:python': 0.33; 'could': 0.34; 'convert': 0.35; 'plans': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'add': 0.35; 'done': 0.36; 'url:listinfo': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'wrong': 0.37; 'received:10': 0.37; 'message- id:@gmail.com': 0.38; 'list,': 0.38; 'does': 0.39; '12,': 0.39; "couldn't": 0.39; 'structure': 0.39; 'url:mail': 0.40; 'first': 0.61; 'complete': 0.62; 'header:Message-Id:1': 0.63; 'here': 0.66; 'quality': 0.72; 'charset:gb2312': 0.80; 'chinese,': 0.84; 'comment.': 0.84; 'decorate': 0.84; 'received:10.44': 0.84; 'good,': 0.91; 'cc:addr:none': 0.93; 'instant': 0.97; 'subjectcharset:gb2312': 0.99
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=JcRM31A1UMHtos3cFF068OIyusrGSvb7wJfSpSZHI58=; b=yE1JTbSg/JmAWkYd3vf4xUHefCH1cPvFQx7mdERFeDMmHh8SNLUGlPqpA1W6FCwq4y VJogpm/MUtxMIwQ99rDirqBXEBVlIseWLNAUm9tWpvUnxq5yBD63MI6TXL2jFQP6bRKS jBmVEddjuv/Zr4lzDcjpUOFKtmolmM0SLddJFKRaCCVzuVtW8ZNE95mxt6VIKX5AY6Yz LmkvfNCG9uc5rtYI1tMg4z+aBXeTRHS4LWIhSj/i07w+dSa4I4JeUNNJN5yMxmMtiQFS qw4Q43Zp/JBZD3d8cbaceEvI4sWwteUEd7x0icllk+aZhIDotsrmviIkEmrI7TjLKuye +NbQ==
X-Received by 10.68.180.65 with SMTP id dm1mr7830122pbc.142.1402530641280; Wed, 11 Jun 2014 16:50:41 -0700 (PDT)
References <mailman.11006.1402484547.18130.python-list@python.org> <Xh%lv.308109$Ch2.69303@fx13.am4> <CANc-5UxL+ENb3P3SKQsPmVdT=T7QOK_U_Lt6bkj98+U8UcHqhg@mail.gmail.com>
Mime-Version 1.0 (1.0)
In-Reply-To <CANc-5UxL+ENb3P3SKQsPmVdT=T7QOK_U_Lt6bkj98+U8UcHqhg@mail.gmail.com>
Content-Type text/plain; charset=gb2312
Content-Transfer-Encoding quoted-printable
X-Mailer iPhone Mail (11D201)
From 1989lzhh <1989lzhh@gmail.com>
Subject Re: 基于cython的即时编译器cyjit,欢迎大家提建议
Date Thu, 12 Jun 2014 07:50:31 +0800
To Skip Montanaro <skip@pobox.com>
Cc mm0fmf <none@mailinator.com>, Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.11021.1402530644.18130.python-list@python.org> (permalink)
Lines 58
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1402530644 news.xs4all.nl 2927 [2001:888:2000:d::a6]:48273
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:73190

Show key headers only | View raw



在 Jun 12, 2014,1:16,Skip Montanaro <skip@pobox.com> 写道:

>> You might say that but I couldn't possibly comment.
> 
> You could run the message through Google Translate. It's not
> publication quality translation, but serves the needs in this
> instance. (Gmail offers to translate the OP's message for me.)
> 
> Here's what GT produced (successfully translates the Chinese, but
> destroys the code structure in the process - what's wrong with those
> people at Google? <wink>):
Thanks skip, I post the email into wrong mail list, I will rewrite it into English. :)
> 
>> I'm writing a cython code using the compiler as a backend instant named cyjit, the python code
>> Convert cython code is then compiled c extension import. Designed primarily reference numba. jit ideas,
>> Use decorate to specify compile function, for example:
>> from cyjit import jit
>> @ Jit ('int (int, int)')
>> def add (a, b):
>> return a + b
>> add (1,2) # compiled
>> 
>> @ Jit ('int (int, int)',
>> locals ='' '
>> int c
>> '' ')
>> def add1 (a, b):
>> c = add (a, b) # fast invoked
>> return c
>> add1 (1,2)
>> 
>> Currently does not support the type of derivation, C syntax to use local variables defined manually.
>> Jit compilation process is done in the function of Follow-up plans to move to complete the compilation process runtime functions to achieve overloading.
>> Currently supports compilation cache, you need to compile the first run, slower time, Run again compiled directly into the extension, the speed very quickly.
>> 
>> Welcome to fork, pull, and suggestions.
>> 
>> https://github.com/liuzhenhai/ cyjit

The translation's quality is quite good, I will edit it and post here again. Thanks
> 
> The concept looks like of interesting.
> 
> Skip
> -- 
> https://mail.python.org/mailman/listinfo/python-list

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

基于cython的即时编译器cyjit,欢迎大家提建议 1989lzhh <1989lzhh@gmail.com> - 2014-06-11 17:37 +0800
  Re: 基于cython的即时编译器cyjit,欢迎大家提建议 mm0fmf <none@mailinator.com> - 2014-06-11 17:16 +0100
    Re: 基于cython的即时编译器cyjit,欢迎大家提建议 Skip Montanaro <skip@pobox.com> - 2014-06-11 12:16 -0500
    Re: 基于cython的即时编译器cyjit,欢迎大家提建议 1989lzhh <1989lzhh@gmail.com> - 2014-06-12 00:50 +0800
    Re: 基于cython的即时编译器cyjit,欢迎大家提建议 1989lzhh <1989lzhh@gmail.com> - 2014-06-12 07:50 +0800

csiph-web