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


Groups > comp.lang.python > #73182

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

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.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 UNSURE 0.413
X-Spam-Level ****
X-Spam-Evidence '*H*': 0.49; '*S*': 0.31; 'url:github': 0.09; 'cc:addr:python-list': 0.11; 'def': 0.12; 'skip:@ 20': 0.16; 'wrote:': 0.18; 'import': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'possibly': 0.26; 'post': 0.26; 'header:In-Reply- To:1': 0.27; 'url:mailman': 0.30; 'code': 0.31; 'url:python': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'message-id:@gmail.com': 0.38; '12,': 0.39; "couldn't": 0.39; 'url:mail': 0.40; 'header :Message-Id:1': 0.63; 'iphone': 0.65; '8bit%:96': 0.70; '8bit%:98': 0.78; 'charset:gb2312': 0.80; 'comment.': 0.84; 'skip:\xca 40': 0.84; '8bit%:58': 0.91; '8bit%:67': 0.93; 'to:addr:none': 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=00qHqW9iAOn29iOF4eEwx/h2zzsj2bOyuI7Uv2yCljM=; b=YbrrmCb6xJBlS4zH57GCfdO+ZlafKmxYlWdTvkoL4oDrgSX6ZlQmnxbzUF7Vrq6lyB QgGCrCA+/3O6lQBDGptd35EUFojOfvCG+54x8MjV/tOpeHAet4pnKpvUf34OXCFZL7vG /mOHx9SHdzzKHeZZDIJY451V8rm8JZsacIOIf9uwqavjF1klx+y9hRmNHKGKfYZtHooz nyG9qhfcaz70FQ/MGoBGTVkgDgjFMtqvhNgOtAxiBBv71dCrO9OEjhfyFC2hez/IOQSP 6RILjhs9AaInd+I+8sJjq1tXgEa1kCRGuTiJZk/G2Et3tDLe8M/xcYcZC1R1NolAIBdY Oblg==
X-Received by 10.66.193.104 with SMTP id hn8mr14851590pac.99.1402505428416; Wed, 11 Jun 2014 09:50:28 -0700 (PDT)
References <mailman.11006.1402484547.18130.python-list@python.org> <Xh%lv.308109$Ch2.69303@fx13.am4>
Mime-Version 1.0 (1.0)
In-Reply-To <Xh%lv.308109$Ch2.69303@fx13.am4>
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 00:50:19 +0800
To mm0fmf <none@mailinator.com>
X-Mailman-Approved-At Wed, 11 Jun 2014 19:33:03 +0200
Cc "python-list@python.org" <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.11016.1402507984.18130.python-list@python.org> (permalink)
Lines 53
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1402507984 news.xs4all.nl 2965 [2001:888:2000:d::a6]:36231
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:73182

Show key headers only | View raw


sorry,wrong version post

发自我的 iPhone

> 在 Jun 12, 2014,0:16,mm0fmf <none@mailinator.com> 写道:
> 
>> On 11/06/2014 10:37, 1989lzhh wrote:
>> 我正在写一个使用cython code作为后端的即时编译器名为cyjit,将python code
>> 转换为cython code再编译为c extension导入.设计上主要参考numba.jit的思路,
>> 使用decorate来指定要编译的function,例如:
>> 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)
>> 
>> 目前还不支持类型推导,需要手动使用c的语法对局部变量进行定义。
>> 编译过程是在jit函数中完成的,后续计划将编译过程移到函数运行时完成,实现
>> 重载。
>> 目前支持编译cache,第一次运行需要编译,时间稍慢,再次运行直接导入编译好
>> 的extension,速度就很快了。
>> 
>> 欢迎大家fork,pull,提建议。
>> 
>> https://github.com/liuzhenhai/cyjit
> 
> You might say that but I couldn't possibly comment.
> 
> 
> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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