Le 2018-02-21 à 05:27, Chris Angelico a écrit :
"""If you find that your production code is too slow because you’re
using mutual recursion between nine different languages, blame Dan Luu
for this terrible idea."""
I have... NEVER gone as far as nine. That takes the cake. In fact, I
don't reca
On Wed, Feb 21, 2018 at 9:04 PM, Steven D'Aprano
wrote:
> On Wed, 21 Feb 2018 04:13:56 -0500, Etienne Robillard wrote:
>
>> Hi,
>>
>> Would it be possible to build a Python to Julia code generator??
>>
>> i'm interested to learn Julia and would love
I found this: https://github.com/JuliaPy/PyCall.jl
Looks pretty awesome already! :-)
Thx
E
Le 2018-02-21 à 05:04, Steven D'Aprano a écrit :
On Wed, 21 Feb 2018 04:13:56 -0500, Etienne Robillard wrote:
Hi,
Would it be possible to build a Python to Julia code generator??
i'm int
On Wed, 21 Feb 2018 04:13:56 -0500, Etienne Robillard wrote:
> Hi,
>
> Would it be possible to build a Python to Julia code generator??
>
> i'm interested to learn Julia and would love to have the capacity to
> embed or run native Python code in Julia..
http://blog.l
Hi,
Would it be possible to build a Python to Julia code generator??
i'm interested to learn Julia and would love to have the capacity to
embed or run native Python code in Julia..
Thx
Etienne
--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/
--
bhattacharya.kush...@gmail.com schrieb am 17.01.2018 um 12:03:
> Is there any python framework or any tool as which can generate C code from
> python code as it is .
http://cython.org/
Stefan
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, 23 Jan 2018 17:43:18 +, bartc wrote:
> It wouldn't be a satisfactory way of writing C programs. So, although
> I'm not that big a fan of C syntax, it might be better to write C as C,
> and Python as Python, to avoid confusion.)
This.
The fundamental reality is that `a + b` means diff
On 23/01/2018 13:34, bartc wrote:
Perhaps you simply want to use Python syntax to write C code? That would > be a different kind of translator. And a simpler one, as 'a=b+c' >
translates to 'a+b+c;' in C.
Or rather, 'a=b+c;'
(I've written source to source translators, some of which could targe
On Wed, Jan 24, 2018 at 1:45 AM, wrote:
> Hey Ally,
>
> Cython adds a big chunk of complexity to simple things. That's the problem.
That's like saying "Unicode adds a big chunk of complexity to the
simple task of translating a word from Japanese into Russian". No, it
doesn't; the complexity is i
Hey Ally,
Cython adds a big chunk of complexity to simple things. That's the problem.
Greetings.
On 01/23/2018 01:54 PM, ally.m...@bankmail.host wrote:
Have you tried cython ?
On 01/23/2018 01:25 PM, kushal bhattacharya wrote:
On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal
bha
On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal bhattacharya
wrote:
> Hi,
> Is there any python framework or any tool as which can generate C code from
> python code as it is .
>
> Thanks,
> Kushal
ok so which python tool would be the best one which can be included and
parameter
Id go this way too. Basic C is straightforward. I usually consider
learning a new "thing " if the time to support potwntially combersome
solution using existing methods justifies the effort.
On Jan 23, 2018 09:01, "Ned Batchelder" wrote:
> On 1/23/18 8:48 AM, kushal bhattacharya wrote:
>
>> On
You can look at SymPy code generator
http://docs.sympy.org/latest/modules/utilities/codegen.html
Perhaps this is exactly what you need.
With kind regards,
-gdg
2018-01-23 17:00 GMT+03:00 Ned Batchelder :
> On 1/23/18 8:48 AM, kushal bhattacharya wrote:
>
>> On Tuesday, January 23,
On 1/23/18 8:48 AM, kushal bhattacharya wrote:
On Tuesday, January 23, 2018 at 7:05:02 PM UTC+5:30, bartc wrote:
On 23/01/2018 13:23, kushal bhattacharya wrote:
On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal bhattacharya
wrote:
Hi,
Is there any python framework or any tool as
On Tuesday, January 23, 2018 at 7:05:02 PM UTC+5:30, bartc wrote:
> On 23/01/2018 13:23, kushal bhattacharya wrote:
> > On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal bhattacharya
> > wrote:
> >> Hi,
> >> Is there any python framework or any tool as which can generate C code
> >>
On 23/01/2018 13:23, kushal bhattacharya wrote:
On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal bhattacharya
wrote:
Hi,
Is there any python framework or any tool as which can generate C code from
python code as it is .
Thanks,
Kushal
yes i have but it generates a complex C co
On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal bhattacharya
wrote:
> Hi,
> Is there any python framework or any tool as which can generate C code from
> python code as it is .
>
> Thanks,
> Kushal
yes i have but it generates a complex C code with python dependencies.I want to
c
What about Cython?
On 01/23/2018 01:25 PM, kushal bhattacharya wrote:
On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal bhattacharya
wrote:
Hi,
Is there any python framework or any tool as which can generate C code from
python code as it is .
Thanks,
Kushal
hi,
I have found nu
On Wednesday, January 17, 2018 at 4:34:23 PM UTC+5:30, kushal bhattacharya
wrote:
> Hi,
> Is there any python framework or any tool as which can generate C code from
> python code as it is .
>
> Thanks,
> Kushal
hi,
I have found nuitka as asuitable candidate but it seems that nuitka doesnt
ge
On 17/01/2018 11:04, kushal bhattacharya wrote:
Hi,
Is there any python framework or any tool as which can generate C code from
python code as it is .
What C code would you expect to see from this line of Python:
a = b + c
?
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
Have a look at Cython.
Best
2018-01-17 12:04 GMT+01:00 kushal bhattacharya :
> Hi,
> Is there any python framework or any tool as which can generate C code from
> python code as it is .
>
> Thanks,
> Kushal
> --
> https://mail.python.org/mailman/listinfo/python-list
--
https://mail.python.
Hi,
Is there any python framework or any tool as which can generate C code from
python code as it is .
Thanks,
Kushal
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
Is there any python framework or any tool as which can generate C code from
python code as it is .
Thanks,
Kushal
--
https://mail.python.org/mailman/listinfo/python-list
how to write code generator for Isabelle by using pygments?
i am thinking to write a machine learning code to generate code
by learning example from Isabelle code
however, after google, not much information about this.
--
https://mail.python.org/mailman/listinfo/python-list
Mark Lawrence wrote:
> On 17/07/2010 20:38, Mick Krippendorf wrote:
>>
>> If Java were *really* a multiple dispatch language, it wouldn't be
>> necessary to repeat the accept-code for every subclass. Instead a single
>> accept method in the base class would suffice. In fact, with true
>> multiple d
On 17/07/2010 20:38, Mick Krippendorf wrote:
Karsten Wutzke wrote:
The visitor pattern uses single-dispatch, that is, it determines
which method to call be the type of object passed in.
Say, in Python, I have an object o and want to call one of it's methods,
say m. Then which of possibly many
Hello,
Am 16.07.2010 09:52, Michele Simionato wrote:
> [os.path.walk vs os.walk]
> There is a big conceptual difference between os.path.walk and os.walk.
> The first works like a framework: you pass a function to it and
> os.path.walk is in charging of calling it when needed. The second works
> li
Karsten Wutzke wrote:
> The visitor pattern uses single-dispatch, that is, it determines
> which method to call be the type of object passed in.
Say, in Python, I have an object o and want to call one of it's methods,
say m. Then which of possibly many methods m to call is determined by
the type
On 07/16/2010 11:00 AM, Jean-Michel Pichavant wrote:
> Karsten Wutzke wrote:
>>> Yes, typo, I meant strictly.
>>>
>>>
>>
>> Damn, I mean strongly. At least not for identifying which methods to
>> call depending on the type/s.
>>
>> Karsten
>>
> Stringly is the perfect combination of strictl
Karsten Wutzke wrote:
Yes, typo, I meant strictly.
Damn, I mean strongly. At least not for identifying which methods to
call depending on the type/s.
Karsten
Stringly is the perfect combination of strictly and strongly. Nice one :)
JM
--
http://mail.python.org/mailman/listinfo/pytho
Carl Banks, 16.07.2010 07:50:
On Jul 15, 8:33 pm, Stefan Behnel wrote:
The code I referenced is from the Cython compiler, and we use it to "do
stuff" with the AST. The visitor pattern is actually a pretty common way to
bind code in a single place that does a certain thing to different parts of
a
On Jul 15, 7:58 pm, Karsten Wutzke wrote:
> Hello,
>
> this is obviously a Python OO question:
>
> Since Python isn't stringly typed, single-dispatch isn't available per
> se. So is the "double-dispatch" Visitor pattern, which is usually used
> in OO systems to implement code generators. So, what
On Jul 15, 8:33 pm, Stefan Behnel wrote:
> Carl Banks, 16.07.2010 01:14:
>
>
>
>
>
> > Around these parts, we consider the main use of most Design Patterns
> > to be to work around limitations of other languages. Visitor Pattern
> > is probably the worst example of it.
>
> > In Python it's comple
Karsten Wutzke writes:
> Since Python isn't stringly typed, single-dispatch isn't available per
> se. So is the "double-dispatch" Visitor pattern, which is usually used
> in OO systems to implement code generators. So, what is the de facto
> method in Python to handle source code generation?
A mi
Carl Banks, 16.07.2010 01:14:
Around these parts, we consider the main use of most Design Patterns
to be to work around limitations of other languages. Visitor Pattern
is probably the worst example of it.
In Python it's completely unnecessary (at least in its boilerplate-
heavy incarnation as u
in Python to handle source code generation?
>
> > WHOA! Now if that isn't a Gedankensprung. Also, I'm still very far from
> > your train of thought, apparently: Now, the thing that code generators
> > probably share is that they write code to files. It depends on what I
On 15/07/2010 18:58, Karsten Wutzke wrote:
Hello,
this is obviously a Python OO question:
Since Python isn't stringly typed, single-dispatch isn't available per
se. So is the "double-dispatch" Visitor pattern, which is usually used
in OO systems to implement code generators. So, what is the de
On 15/07/2010 18:58, Karsten Wutzke wrote:
Hello,
this is obviously a Python OO question:
Since Python isn't stringly typed, single-dispatch isn't available per
se. So is the "double-dispatch" Visitor pattern, which is usually used
in OO systems to implement code generators. So, what is the de
MRAB, 15.07.2010 21:33:
Stefan Behnel wrote:
Karsten Wutzke, 15.07.2010 20:45:
Well, I'm most experienced in OO, so writing OO in Python seems like
the way to start with Python. The visitor pattern uses single-
dispatch, that is, it determines which method to call be the type of
object passed i
Karsten Wutzke web.de> writes:
> So, what is the de facto method in Python to handle source code generation?
Take a look at the NodeVisitor class in the ast module in python 2.6+.
The visitor pattern is implemented in the python standard library.
Matt
--
http://mail.python.org/mailman/listi
Stefan Behnel wrote:
Karsten Wutzke, 15.07.2010 20:45:
Well, I'm most experienced in OO, so writing OO in Python seems like
the way to start with Python. The visitor pattern uses single-
dispatch, that is, it determines which method to call be the type of
object passed in.
Well, then do that.
Karsten Wutzke, 15.07.2010 21:00:
Yes, typo, I meant strictly.
Damn, I mean strongly. At least not for identifying which methods to
call depending on the type/s.
I think you meant "statically typed".
http://c2.com/cgi-bin/wiki?StronglyTyped
http://www.c2.com/cgi/wiki?StaticTyping
Stefan
--
Karsten Wutzke, 15.07.2010 20:45:
Well, I'm most experienced in OO, so writing OO in Python seems like
the way to start with Python. The visitor pattern uses single-
dispatch, that is, it determines which method to call be the type of
object passed in.
Well, then do that. Put the types into a d
to handle source code generation?
>>
>> WHOA! Now if that isn't a Gedankensprung. Also, I'm still very far from
>> your train of thought, apparently: Now, the thing that code generators
>> probably share is that they write code to files. It depends on what I'
>
> Yes, typo, I meant strictly.
>
Damn, I mean strongly. At least not for identifying which methods to
call depending on the type/s.
Karsten
--
http://mail.python.org/mailman/listinfo/python-list
parently: Now, the thing that code generators
> probably share is that they write code to files. It depends on what I'm
> trying to do of course, but I expect there's a good chance that if I
> wrote a code generator in Python, it wouldn't be particularly
> object-oriented at
> Since Python isn't stringly typed, single-dispatch isn't available per
> se. So is the "double-dispatch" Visitor pattern, which is usually used
> in OO systems to implement code generators. So, what is the de facto
> method in Python to handle source code generation?
Do you mean strongly typed l
Now if that isn't a Gedankensprung. Also, I'm still very far from
your train of thought, apparently: Now, the thing that code generators
probably share is that they write code to files. It depends on what I'm
trying to do of course, but I expect there's a good chance that
Hello,
this is obviously a Python OO question:
Since Python isn't stringly typed, single-dispatch isn't available per
se. So is the "double-dispatch" Visitor pattern, which is usually used
in OO systems to implement code generators. So, what is the de facto
method in Python to handle source code
Rouslan Korneychuk, 03.07.2010 19:22:
The code also never uses PyArg_ParseTuple or its variants. It converts
every argument using the appropriate PyX_FromY functions. I noticed
PyBindGen does the following when a conversion is needed for one argument:
py_retval = Py_BuildValue((char *) "(O)", va
I missed one:
func="operator[]" would also work, I assume?
Yes, you can also supply a function if the first parameter accepts the
type being wrapped (__rop__ methods will even accept the second
parameter taking the wrapped type).
--
http://mail.python.org/mailman/listinfo/python-list
On 07/03/2010 01:54 PM, Thomas Jollans wrote:
On 07/03/2010 07:22 PM, Rouslan Korneychuk wrote:
It's still in the rough, but I wanted to give an update on my C++
extension generator. It's available at http://github.com/Rouslan/PyExpose
Question that pops to mind immediately: How does this diff
On 07/03/2010 07:22 PM, Rouslan Korneychuk wrote:
> It's still in the rough, but I wanted to give an update on my C++
> extension generator. It's available at http://github.com/Rouslan/PyExpose
Question that pops to mind immediately: How does this differentiate
itself from SWIG? ( I can't say I'm
It's still in the rough, but I wanted to give an update on my C++
extension generator. It's available at http://github.com/Rouslan/PyExpose
The documentation is a little slim right now but there is a
comprehensive set of examples in test/test_kompile.py (replace the k
with a c. For some reason
trzewiczek writes:
> On 01/13/2010 05:09 PM, Arnaud Delobelle wrote:
[...]
>> Sure, here are some example of self-evaluating python objects,
>> i.e. for each v below,
>>
>> v == eval(v)
>>
>> I'm quite proud of the last one.
[...]
>> v = "\"%s\" %% ((r\"%s\",)*2)" % ((r"\"%s\" %% ((r\"%s\
On 01/13/2010 05:09 PM, Arnaud Delobelle wrote:
nyoka writes:
Can someone help me with sample python code for a code generator
Sure, here are some example of self-evaluating python objects, i.e. for each v
below,
v == eval(v)
I'm quite proud of the last one.
v = (l
http://nedbatchelder.com/code/cog/
--
http://mail.python.org/mailman/listinfo/python-list
En Wed, 13 Jan 2010 13:09:38 -0300, Arnaud Delobelle
escribió:
nyoka writes:
Can someone help me with sample python code for a code generator
Sure, here are some example of self-evaluating python objects, i.e. for
each v
below,
v == eval(v)
I'm quite proud of the las
nyoka writes:
> Can someone help me with sample python code for a code generator
Sure, here are some example of self-evaluating python objects, i.e. for each v
below,
v == eval(v)
I'm quite proud of the last one.
v = (lambda x:x%('"''""
nyoka wrote:
> Can someone help me with sample python code for a code generator
>>> print "print"
print
Seriously, you have to provide more information if you want a meaningful
answer. If the generated code is Python, too, then the advice is most likely
that you don&
nyoka, 13.01.2010 16:48:
Can someone help me with sample python code for a code generator
Such as Cheetah?
http://www.cheetahtemplate.org/
BTW, you might want to be more specific about your problem at hand. Code
generation is a rarely used technique in Python. Most of the time, it's
Can someone help me with sample python code for a code generator
--
http://mail.python.org/mailman/listinfo/python-list
Sam Denton schrieb:
Code generators seem to be popular in Python.
(http://www.google.com/search?q=python+code-generator)
Certainly not. The most of them will be used for generating bindings.
Apart from that, you rareley (if ever) need to generate code.
I have one that I'd like to inte
On Sun, 01 Jun 2008 10:40:09 -0500, Sam Denton wrote:
> Code generators seem to be popular in Python.
I don't think so.
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list
Code generators seem to be popular in Python.
(http://www.google.com/search?q=python+code-generator)
I have one that I'd like to integrate into IDLE. Ideally, I'd like to
(1) have a new file type show up when I use the File/Open dialog, and
(2) have a function key that lets
> You might want to look at COG (http://www.nedbatchelder.com/code/
> cog/). It might be helpful to you. I really enjoy using it and keep
> finding things to use it with.
Thanks Mike. I agree. COG looks really promising.
-T
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 28, 1:48 pm, gamename <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Can anyone recommend a good method of using python to generate c
> source code? I have tables of test cases to use as input to a
> process which would generate the test's source code. The Cheetah tool
> looks interesting. Has any
> Instead of reading the testcase tables and generating source for test
> routines you simply can do the tests right away.
>
Can't. :( This is for an embedded system. I need to create source
(in C) on one machine and then compile on others. The only thing that
I can be certain of is an ANSI co
On Fri, 28 Sep 2007 12:57:49 -0700, gamename wrote:
>> How about using c-types to access your C-stuff to test, and use python + the
>> testcase-tables to invoke that?
>>
>
> Sure, that's possible. But the source code for tests (once all the
> parms are read)
> still needs to be generated. Calli
>
> How about using c-types to access your C-stuff to test, and use python + the
> testcase-tables to invoke that?
>
Sure, that's possible. But the source code for tests (once all the
parms are read)
still needs to be generated. Calling the lib from python or from C,
there still
needs to be a wa
gamename wrote:
> Hi,
>
> Can anyone recommend a good method of using python to generate c
> source code? I have tables of test cases to use as input to a
> process which would generate the test's source code. The Cheetah tool
> looks interesting. Has anyone used it? Any other suggestions?
H
Hi,
Can anyone recommend a good method of using python to generate c
source code? I have tables of test cases to use as input to a
process which would generate the test's source code. The Cheetah tool
looks interesting. Has anyone used it? Any other suggestions?
TIA,
-T
--
http://mail.pytho
I've added a document for fgen.
Please check it.
Thanks,
Kevin
[EMAIL PROTECTED] wrote:
> Kevin Wan wrote:
> > fgen is a free command line tool that facilitates cross platform c++
> > development, including header generation, cpp file generation, makefile
> > generation, unit test framework gener
Sorry, I didn't write that much document.
But you can use fgen --help to get the usage.
I'm writing document now. :)
Thanks,
Kevin
[EMAIL PROTECTED] wrote:
> Kevin Wan wrote:
> > fgen is a free command line tool that facilitates cross platform c++
> > development, including header generation, cp
I'm writing the document for fgen. You can use SVN to access the most
updated files.
Basically you can use fgen --help to get the usage.
It's my c++ development tool, and I didn't spend that much time on
writing document. Sorry. But I'm writing now.
Thanks and waiting to work with you guys,
Kevi
Kevin Wan wrote:
> fgen is a free command line tool that facilitates cross platform c++
> development, including header generation, cpp file generation, makefile
> generation, unit test framework generation, etc.
>
> http://sf.net/projects/fgen
>
> I'm not very familiar with Python. Any feedback a
Hi,
I am interested in your proposal. I am basically a C/C++ programmer,
but recently fell in love with python. Please send more details on
fgen. We could probably start working. :)
Kevin Wan wrote:
> fgen is a free command line tool that facilitates cross platform c++
> development, including head
fgen is a free command line tool that facilitates cross platform c++
development, including header generation, cpp file generation, makefile
generation, unit test framework generation, etc.
http://sf.net/projects/fgen
I'm not very familiar with Python. Any feedback are appreciated! Or
anyone like
Hello NG! Can anybody explain me how to install the code generator fo
ctypes on my pc? I use windows...
for example I found this line command on the overview:
python h2xml.py windows.h -o windows.xml -q -c
Where do I have to type? and where do I have to put the file that I got
from the
Steve Holden wrote:
> If this isn't spam I'll eat my hat. How many other irrelevant newsgroups
> has this been sent to? Headers follow for abuse tracking and retribution.
More precisely, the email is from a marketer in Pakistan.
http://www.pid.org.pk/resume.html
Note the lack of programming exp
[EMAIL PROTECTED] wrote:
Code Generators!!!
I think now a days programmers should prefer Code Generator to do their
coding rather than doing everything by hand. They are almost generator
for every database. If you do n't have enough time write all the code
by hand, invest some in code ge
Code Generators!!!
I think now a days programmers should prefer Code Generator to do their
coding rather than doing everything by hand. They are almost generator
for every database. If you do n't have enough time write all the code
by hand, invest some in code genetor and make you lifew
82 matches
Mail list logo