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


Groups > comp.lang.python > #19817

Re: SnakeScript? (CoffeeScript for Python)

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python.': 0.04; 'instance,': 0.05; 'subject:Python': 0.05; 'python': 0.08; 'libraries.': 0.09; 'cc:addr:python-list': 0.15; 'syntax': 0.15; 'brand-new': 0.16; 'code?': 0.16; 'ecosystem': 0.16; 'input,': 0.16; 'translates': 0.16; 'wrote:': 0.16; 'language': 0.17; 'cheers,': 0.20; 'cc:no real name:2**0': 0.21; 'maybe': 0.21; 'feb': 0.22; 'header:In-Reply-To:1': 0.22; 'libraries': 0.24; "python's": 0.24; 'cc:2**0': 0.25; 'code': 0.25; 'creating': 0.25; 'compiled': 0.25; 'tests': 0.25; 'pm,': 0.26; 'asking': 0.27; 'message-id:@mail.gmail.com': 0.28; 'compile': 0.28; 'cc:addr:python.org': 0.29; '(unless': 0.30; 'translator': 0.30; 'correct': 0.31; 'thu,': 0.32; 'instead': 0.33; 'received:209.85.212': 0.34; 'something': 0.35; 'regular': 0.35; 'url:python': 0.36; 'awesome': 0.36; 'thread': 0.36; 'url:pipermail': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'could': 0.37; 'some': 0.38; 'received:209.85': 0.38; 'third': 0.38; 'think': 0.38; 'url:org': 0.39; 'why': 0.39; 'received:209': 0.39; 'subject:: ': 0.39; 'your': 0.61; 'andrea': 0.84; 'compiles': 0.84; 'source?': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=vbe0ToSsJRuFOfOh8VK+2okhli8ri9Shq2cmg728cTo=; b=BmiyKSXJ88aVbWzYzGBkxju+CZtm4bsvJpWEAFG6a3q7uugOd9f2MyNspgcnZ0pa6S vC4Wtc3W8yT9yT0w8xgjddTfcEp+iZaPG7bfDJX8MRL9Mkr1CZlS5ebaqoapppAR6kvh 1I3X7tbNVLKB5/bWqWJ3qYVfS0FSZezPv/rfo=
MIME-Version 1.0
In-Reply-To <CAF_E5JbBdZuNRyUbEKBkrac5dVEQQtpAq=1B1HwL8QuL3q+TcQ@mail.gmail.com>
References <21293604.477.1328191753730.JavaMail.geo-discussion-forums@vbbfd4> <CAL7_Mo-b6F7moEvK9BkvCqNb7GOZJmEaVb6u3Mi-CaboFpxhiw@mail.gmail.com> <CAF_E5JbBdZuNRyUbEKBkrac5dVEQQtpAq=1B1HwL8QuL3q+TcQ@mail.gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Thu, 2 Feb 2012 18:19:22 -0700
Subject Re: SnakeScript? (CoffeeScript for Python)
To andrea crotti <andrea.crotti.0@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5385.1328231999.27778.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1328231999 news.xs4all.nl 6859 [2001:888:2000:d::a6]:41124
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:19817

Show key headers only | View raw


On Thu, Feb 2, 2012 at 3:53 PM, andrea crotti <andrea.crotti.0@gmail.com> wrote:
> 2012/2/2 Amirouche Boubekki <amirouche.boubekki@gmail.com>:
>> They are solution to write Python code that translates to javascript see
>> this thread
>> http://mail.python.org/pipermail/python-list/2011-November/1283110.html
>>
>
> Mm I don't think it's what the OP is asking (unless I misunderstood...).
> I think he wants to compile some syntax TO Python.
> But I don't really see why you would something like this (if not for fun).

Maybe because you think that Python syntax could be improved upon --
for instance, Python with pattern-matching would be freaking awesome
-- but at the same time you want to leverage Python's extensive
ecosystem of libraries.  So instead of creating your own brand-new
language with no third party libraries whatsoever, you create one that
just compiles down to regular Python.

> Then how are you going to maintain the code? Maintain the compiled
> code or the source?

As with all compiled software, you maintain the input, not the output.

> And proving that your translator is always correct

That's what unit tests are for.

Cheers,
Ian

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


Thread

SnakeScript? (CoffeeScript for Python) Michal Hantl <michal.hantl@gmail.com> - 2012-02-02 06:09 -0800
  Re: SnakeScript? (CoffeeScript for Python) Paul  Moore <p.f.moore@gmail.com> - 2012-02-02 08:30 -0800
    Re: SnakeScript? (CoffeeScript for Python) Devin Jeanpierre <jeanpierreda@gmail.com> - 2012-02-02 12:12 -0500
    Re: SnakeScript? (CoffeeScript for Python) Michal Hantl <michal.hantl@gmail.com> - 2012-02-02 12:23 -0800
      Re: SnakeScript? (CoffeeScript for Python) "bruno.desthuilliers@gmail.com" <bruno.desthuilliers@gmail.com> - 2012-02-03 04:03 -0800
  Re: SnakeScript? (CoffeeScript for Python) andrea crotti <andrea.crotti.0@gmail.com> - 2012-02-02 22:53 +0000
  Re: SnakeScript? (CoffeeScript for Python) Ian Kelly <ian.g.kelly@gmail.com> - 2012-02-02 18:19 -0700
    Re: SnakeScript? (CoffeeScript for Python) Matej Cepl <mcepl@redhat.com> - 2012-02-03 11:42 +0100
      Re: SnakeScript? (CoffeeScript for Python) alex23 <wuwei23@gmail.com> - 2012-02-06 19:52 -0800
  Re: SnakeScript? (CoffeeScript for Python) Chris Angelico <rosuav@gmail.com> - 2012-02-03 13:51 +1100
  Re: SnakeScript? (CoffeeScript for Python) Nathan Rice <nathan.alexander.rice@gmail.com> - 2012-02-03 09:08 -0500
  Re: SnakeScript? (CoffeeScript for Python) Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-02-03 11:20 -0500
  Re: SnakeScript? (CoffeeScript for Python) andrea crotti <andrea.crotti.0@gmail.com> - 2012-02-03 17:24 +0000

csiph-web