On dimanche 18 janvier 2009, birchy wrote:
Benoit Minisini wrote:
Can you show us the code in Python? Maybe it will help me to find
something
that could be enhanced in Gambas if Python can do better? :-)
Ok, i think the bottleneck is related to the function call overhead:
PYTHON: wrote:
On dimanche 18 janvier 2009, Gareth Bult wrote:
Conversely, people use GTK bindings in Python .. Why ?!
I understand that once upon a time it's what there was .. but not any more!
Development time for Python or C based GUI applications is 50x more than
the Gambas equivalent (in this instance I
Benoit Minisini wrote:
As I never used Python, I don't really realized how much an equivalent of
partition() is needed.
To be honest, partition() doesn't do anything that can't be achieved using
Split() or Scan(), only reason i used partition() in Python is because it is
quite a bit faster
Benoit Minisini wrote:
In other words, maybe it is silly to say, but I made Gambas to have a
language
that have features not found in other languages, that allowed me to
program
Gambas. :-)
RAPID development is exactly the reason why users choose languages like
Gambas, VB6, Python, etc.
On dimanche 18 janvier 2009, Jaap Cramer wrote:
I timed the function with this line s = Scan(QWERTYUIOP, *WE*IO*)[1]
to be 2.94800719 seconds But there is a faster way:
s = Mid(QWERTYUIOP, InStr(QWERTYUIOP, WE), InStr(QWERTYUIOP, IO))
only takes 0.52580698 sec!
Maybe the Scan
On dimanche 18 janvier 2009, Jaap Cramer wrote:
I timed the function with this line s = Scan(QWERTYUIOP, *WE*IO*)[1]
to be 2.94800719 seconds But there is a faster way:
s = Mid(QWERTYUIOP, InStr(QWERTYUIOP, WE), InStr(QWERTYUIOP, IO))
only takes 0.52580698 sec!
Maybe the Scan
Could I add to the wish list string functions to do these things.
* Strip duplicated blanks from within a string
eg. john Doe becomes:
john Doe
* Upper case only the first letter of a sentance or all words
eg. john doe becomes John Doe (useful in entering names)
right. my fault... :(
the line s = Split(Split(QWERTYUIOP, WE)[2], (IO))[0] is approx 3 times
//SLOWER// than the Scan method.
sorry again :)
From: gam...@users.sourceforge.net
To: gambas-user@lists.sourceforge.net
Date: Sun, 18 Jan 2009 21:53:34 +0100
Subject: Re: [Gambas-user] Gambas
On dimanche 18 janvier 2009, nando wrote:
After reading all the comments about speed, optimization, etc,
do not forget that an optimizing compiler will absolutely
poduce faster execution time:
Since this code reads no data, saves no data and doesn't print any
calculated data, then why even
I set up a bug tracker here;
http://gambasrad.org/bugtrak
But it didn't really get used.
I'm sure bugzilla is great, I just don't like using it.
- Original Message -
From: Benoit Minisini gam...@users.sourceforge.net
To: richard terry rte...@pacific.net.au, mailing list for gambas users
On vendredi 16 janvier 2009, nando wrote:
Benoit,
Question regarding the line:
WRITE #pResult + (ii * 8), .x
does WRITE see it casted as variant or int ?
-Fernando
You exactly got the point. :-)
As fResult is an Object[] array, fResult[ii].x is a Variant.
Why? Because, in Gambas, the
11 matches
Mail list logo