Seems like the implicit conversion from Float[] to Integer[] fails (2/8
performs float calculation)...
2016-11-30 23:42 GMT+01:00 :
> http://gambaswiki.org/bugtracker/edit?object=BUG.1041=L21haW4-
>
> Zainudin AHMAD added an attachment:
>
>
I actually never tried the jit on arm, only on x86(_64). LLVM is supposed
to be cross-platform but I guess there are differences that need to be
taken care of.
2016-06-09 20:00 GMT+02:00 :
> http://gambaswiki.org/bugtracker/edit?object=BUG.950=L21haW4-
>
> Comment #8
Where is the source code for GBrubik?
2015-11-26 0:32 GMT+01:00 :
> http://gambaswiki.org/bugtracker/edit?object=BUG.846=L21haW4-
>
> Comment #2 by Jussi LAHTINEN:
>
> Try the rubik cube (GBrubik).
>
> 1. Open modMotor3D module.
> 2. Add Fast to get "Fast Public Sub
It's quite bad the LLVM team dropped the old jit...
I haven''t really looked into it but it might not be that hard to port it
to the new MCJIT (see
http://blog.llvm.org/2013/07/using-mcjit-with-kaleidoscope-tutorial.html).
Hopefully the API for generating the code instructions are the same and
I think
GB_STATIC_PROPERTY_READ("Dir", "i", Application_Dir)
should be
GB_STATIC_PROPERTY_READ("Dir", "s", Application_Dir)
:)
/Emil
2015-10-31 4:45 GMT+01:00 :
> http://gambaswiki.org/bugtracker/edit?object=BUG.833=L21haW4-
>
> Benoît MINISINI changed the state of
Sigh... Why did they remove the old jit... I'll try to see how easy or hard
it is to port it to their MCJIT.
/Emil
Den 11 mar 2015 00:18 skrev Benoît Minisini gam...@users.sourceforge.net
:
Le 11/03/2015 00:03, Jussi Lahtinen a écrit :
Exactly. Only Emil can confirm, as I don't have enough
Can you send a screenshot of how the error message looks like in the ide?
Den 13 dec 2014 19:31 skrev Jussi Lahtinen jussi.lahti...@gmail.com:
Hi!
Is it possible to have bit better integration with JIT and IDE?
Now when you try to run project with JIT enabled, you may not get line
number of
Hi!
Actually this will also fail:
Dim a As Integer[]
a = [1]
The problem is with the new _convert mechanism, introduced in
http://sourceforge.net/p/gambas/code/4908/. The JIT code expects the older
API, which therefore crash...
I haven't found out how much refactor needs to be done to support
...@users.sourceforge.net:
Le 31/10/2014 21:40, Emil Lenngren a écrit :
Hi!
Actually this will also fail:
Dim a As Integer[]
a = [1]
The problem is with the new _convert mechanism, introduced in
http://sourceforge.net/p/gambas/code/4908/. The JIT code expects the
older
API
And this is done in the function JR_object_cast in gb_runtime.c, which is
called from jitted code when objects are converted to other object types.
2014-10-31 21:55 GMT+01:00 Emil Lenngren emil.lenng...@gmail.com:
The problem is the signature of the _convert functions in the classes.
Before
Hi.
There was a problem with the IIf function. If you had two strings as the
last two arguments, but one of them was a string constant, but not the
other, it failed.
I fixed this in the latest revision.
/Emil
2014-10-12 21:11 GMT+02:00 Emil Lenngren emil.lenng...@gmail.com:
Hi. I'll check
Hi. I'll check.
/Emil
Den 12 okt 2014 21:09 skrev Jussi Lahtinen jussi.lahti...@gmail.com:
Thanks to unnecessary complexness of Finnish language and my lack of
ideas, I have written some monster lines with nested Substs. JIT doesn't
seem to like them.
I isolated the problem to simplest
Hm, could you provide a backtrace (from gdb) if it is the JIT that
segfaults?
2014-05-30 0:25 GMT+02:00 Tobias Boege tabo...@gmail.com:
On Fri, 30 May 2014, Jussi Lahtinen wrote:
According to documentation, debugging information is enabled by default.
If not it should be enough to
For best performance, loop over index from 0 to length-1 instead of using
the For Each construct.
2014-05-18 14:43 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net:
Le 18/05/2014 13:44, Patrik Karlsson a écrit :
I'm converting a Java app of mine to Gambas and I could not find any
For i = 0 To avValues.Length - 1
If avValues[i] = vValue Then
Inc iFrequency
Endif
Next
Return iFrequency
End
2014-05-18 14:50 GMT+02:00 Emil Lenngren emil.lenng...@gmail.com:
For best performance, loop over index from 0 to length-1 instead of using
the For Each
Can someone print a gambas disassembly of a gambas file (and source code)
where this happens?
gbc -v File.class
will compile the file and print the disassembly if I remember correctly.
2014-05-14 15:50 GMT+02:00 Roki n.rogozar...@gmail.com:
Hi Jussi! If you find a solution to this problem,
+02:00 Benoît Minisini gam...@users.sourceforge.net:
Le 14/05/2014 15:54, Emil Lenngren a écrit :
Can someone print a gambas disassembly of a gambas file (and source code)
where this happens?
gbc -v File.class
will compile the file and print the disassembly if I remember correctly.
I
How does your Gambas source code for the test look like?
For the best speed when using JIT (Fast), you could try to use
one-dimensional embedded arrays (http://gambasdoc.org/help/cat/arraydecl?v3)
But then they must be fixed-sized...
/Emil
2014-01-31 Jussi Lahtinen jussi.lahti...@gmail.com
Hi. It should be possible with a distro version. However, you might have to
change the configuration file for gb.jit and run autoconf. If you look at
the file list of the distro llvm package, you should be able to figure out
where the library is located.
Den 17 nov 2013 10:06 skrev wally
Hi Jussi. What is the error message when you use g++?
/Emil
2013/9/21 Jussi Lahtinen jussi.lahti...@gmail.com
Download 3.1 from Sourceforge and unpack to wherever you want - I used
david/llvm. Then create
a build folder within llvm.
Then from this build folder:
../configure
Cool ;)
2013/2/7 John konaexpr...@mail.com
Here are a few screen shots of GambOS as it is now, enjoy.
John
http://www.flickr.com/photos/mynetbookos/8453527047/
http://www.flickr.com/photos/mynetbookos/8453527177/
http://www.flickr.com/photos/mynetbookos/8453527287/
The Len function counts the number of bytes in the string. Strings are
always in UTF-8, so é is two bytes. String.Len counts the number of
characters.
2012/12/31 Johny Provoost johny.provo...@skynet.be
Thank you, that's working.
Johny
Op 31-12-12 12:28, M. Cs. schreef:
Use String.Len()
What's the point to be able to convert pointers to strings (take the
numerical value of the pointer)?
If I would like a string representation of a pointer I would at least want
it in hexadecimal form.
But I also think most people that convert pointers to strings want to get
the string out of a
Ah, smart ;)
2012/12/30 Benoît Minisini gam...@users.sourceforge.net
Le 30/12/2012 03:18, Emil Lenngren a écrit :
What's the point to be able to convert pointers to strings (take the
numerical value of the pointer)?
If I would like a string representation of a pointer I would at least
Gah..
In the trunk it's called Attribute, and in version 3.2, it's called
Attributes...
2012/12/19 Benoît Minisini gam...@users.sourceforge.net
Le 19/12/2012 16:04, Emil Lenngren a écrit :
Let's wait until tomorrow. Who knows if they re-rename it again in the
last
minutes? ;)
/Emil
I use distcc to compile faster on my Raspberry Pi. It works good.
2012/12/20, Mike Crean mike.cr...@y7mail.com:
Hi John,
I have had my Pi for a while
now and admit I have not used it much.
I downloaded the wheezy image with GB3
(3.2.1) from
Let's wait until tomorrow. Who knows if they re-rename it again in the last
minutes? ;)
/Emil
2012/12/19 Tobias Boege tabo...@gmail.com
On Tue, 18 Dec 2012, Tobias Boege wrote:
Hi Emil,
Hans gave me some output from his gb.jit compilation attempt:
--8---
make[4]:
, Emil Lenngren a écrit :
It's a pity that almost all linux distributions put the llvm libs in
different places. Also, some distributions use the static library, and
some
of them use a dynamic library.
Can you see where your package manager has installed the llvm files?
/Emil
2012
) :
In jit_gambas_pass.cpp line 28 and jit.h line 36 : change
/llvm/Support/IRBuilder.h to /llvm/IRBuilder.h
In jit_codegen.cpp, line 3617 and line 3668 : change llvm:Attribute
to llvm::Attributes
Regards.
Le 26/11/2012 01:13, Emil Lenngren a écrit :
It's a pity
I compiled from source, that worked fine. Maybe there are binary packages
for armhf now, they didn't exist when I tested...
/Emil
2012/12/17 John Rose john.aaron.r...@gmail.com
Could anyone tell me what the best method of installing Gambas3 on a
RaspberryPi is? When I get my RaspberryPi, I
Nice tutorial, but just a little note: you do not need Clang for gb.jit ;)
/Emil
2012/11/27 The Phantomgraph };8 phantomgr...@gmail.com
Hey All,
I run Ubuntu 11.10 and I was able to get llvm compiled and
subsequently Gambas 3-3.3.3 with the gb.jit component. I did have a
lot of trouble,
It's a pity that almost all linux distributions put the llvm libs in
different places. Also, some distributions use the static library, and some
of them use a dynamic library.
Can you see where your package manager has installed the llvm files?
/Emil
2012/11/25 Matti math.e...@t-online.de
It's the same in VB. If you run CInt(some string) you get the same error
message. I think it's better to throw an error message rather than
returning 0 or something...
/Emil
2012/11/3 Jussi Lahtinen jussi.lahti...@gmail.com
First, a void string has never been a number.
Yes, but, why Type
Lambda functions feature detection would be better...
2012/10/14 Laurent Carlier lordhea...@gmail.com
Le dimanche 14 octobre 2012 14:20:00 Emil Lenngren a écrit :
Ian, you are correct. You need at least gcc 4.5 or newer.
/Emil
This macro could help:
https://www.gnu.org/software
You probably have a too old version of GCC. Ubuntu 10.04 is like two and a
half years old ;)
/Emil
2012/10/11 Pino Zollo pinozo...@gmail.com
On Ubuntu
Version 10.04 Lucid
Kernel 2.6.32-43-generic-pae
GNOME 2.30.2
Error compiling jit
Attached the output of
(./reconf-all ./configure
Sorry to disappoint you, but there is no way (yet) to slice an array.
You can do slicing on strings, with Left, Right and Mid. For example:
Dim str1 As String
Dim str2 As String
str1 = hello there
str2 = Mid(str1, 2, 4) ' will point to the same string but with the length
4 and offset 2.
Print
What prefix did you use for llvm?
Please read the README file in the gb.jit directory for how to compile llvm.
/Emil
2012/10/1 Pino Zollo pinozo...@gmail.com
I have installed LLVM 3.1 fron sources but I still get:
|
|| Unable to find file: libLLVM-3.1.so
|| gb.jit is disabled
||
by the
It is the same in almost all languages.
unsigned char i;
for(i=0; i255; i++){}
and
unsigned int i;
for(i=0; i4294967295U; i++){}
in C will never terminate.
In Gambas,
Dim i As Integer
For i = 0 To 2147483647
Next
will not terminate either.
You might think that because you say the range 0 To X,
You cannot access array elements with the Array type. That is just a
base class with no _get method. If you have an unknown array type you
must first cast the array to an object, or to the real type.
Read more about this here:
http://code.google.com/p/gambas/issues/detail?id=175 ;)
/Emil
2012/8/29 Tobias Boege tabo...@gmail.com
Maybe I'm too young to be conservative, but isn't sending patches and
discussion just what the gambas-devel mailing list is for? User comments go
to gambas-user. My mail programs perform well; why bring a second tool in?
I can't see how it could make
I hope that the real signature is
void serialPrintf (int fd, *const* char *message, ...)
because extern functions are not allowed to manipulate gambas strings.
/Emil
2012/8/20 Benoît Minisini gam...@users.sourceforge.net
Le 20/08/2012 11:05, wally a écrit :
How should i declare this function
A 64-bit floating point value use to have about 14-15 correct digits.
/Emil
2012/8/13 nando nand...@nothingsimple.com
That's perfectly fine.
Let me offer this plan of attack.
Test if it is between -90 and +90
multiply by 1,000,000 into an INTEGER
which chops all decimal digits to the right
I tried to run it on the raspberry pi. LLVM seemed to crash or produce
illegal code or something... I will check further when I have time.
/Emil
2012/8/12 wally wa...@voosen.eu
Hello,
does it make sense to build and use gb.jit component on
other than Intel CPUs ?
e.g. ARM , Raspberry etc.
2012/8/10 John Spikowski supp...@scriptbasic.org
I'm curious, was the Raspberry Pi Gambas3 binary distribution built with
a cross compiler (on Intel/AMD Linux) or native under Ubuntu ARM on the
Pi?
There is not a single the gambas3 binary distribution, but one for each
distro. I think most
It worked without problems on Raspbian, as all the auto* tools are
available through apt-get.
/Emil
2012/8/9 John Spikowski supp...@scriptbasic.org
On Wed, 2012-08-08 at 22:10 -0700, John Spikowski wrote:
On Wed, 2012-08-08 at 21:29 -0700, John Spikowski wrote:
Is there a Gambas 3 ARM
I finally managed to compile the main components (compiler/interpreter) and
run the benchmark primes (takes 430 seconds, compared to 20 seconds for
standard x86).
What I don't like is the reconf-scripts. Even for components that take ~10
seconds to compile, I first have to run the ./reconf script
Yay, the IDE works too, and it is actually faster than I expected. I think
it is not sluggish at all!
It is just that most of the IDE windows are a bit too large for my 720x576
tv...
2012/8/8 Emil Lenngren emil.lenng...@gmail.com
I finally managed to compile the main components (compiler
...@scriptbasic.org
On Wed, 2012-08-08 at 21:40 +0200, Benoît Minisini wrote:
Le 08/08/2012 21:39, Emil Lenngren a écrit :
Yay, the IDE works too, and it is actually faster than I expected. I
think
it is not sluggish at all!
It is just that most of the IDE windows are a bit too large for my
720x576
I tried to install
http://tomv.home.xs4all.nl/raspberry/gambas3_3.1.1-1_armel.deb on Raspbian
but I got package architecture (armel) does not match system (armhf).
When I tried with --force-architecture, I got a lot of dependency errors,
but the files were installed.
Running gambas3 prints:
ERROR:
Try
$hConn.Begin
$hConn.Exec(INSERT INTO inventory VALUES(1), txtName.Text)
$hConn.Commit
Do you only have one column in that table?
2012/8/8 rocko sunblast...@gmail.com
Ok I tried this:
$hConn.Begin
$hConn.Exec(INSERT INTO inventory VALUES(name), txtName.Text)
$hConn.Commit
it with the first column to see if it works,
which it doesn't.
Tried your suggestion:
$hConn.Exec(INSERT INTO inventory VALUES($1), txtName.Text)
Values are still not inserting.
On Wed, 2012-08-08 at 00:31 +0200, Emil Lenngren wrote:
Try
$hConn.Begin
$hConn.Exec(INSERT
What exactly are you trying to do?
Using Like/Regexp is probably much slower than anything else.
/Emil
2012/8/6 gam...@googlecode.com
Comment #3 on issue 297 by kokok...@gmail.com: square bracket and LIKE
http://code.google.com/p/gambas/issues/detail?id=297
Thanks, changing the pattern
g means to enable debugging information. a means to recompile everything.
Omitting a means only compile files that have new changes.
2012/8/6 RICHARD WALKER richard.j.wal...@ntlworld.com
Perfect! That's the one. I don't think I have ever seen that checkbox
before. It must.
I'm not sure what
Try
Dim TimeS As String = Format$(Now, hh:nn:ss)
Read more at: http://gambasdoc.org/help/lang/userformat?v3
http://gambasdoc.org/help/lang/userformat?v3/Emil
2012/8/5 abbat abbat...@mail.ru
Dim TimeS as String = Hour(Now) : Minute(Now) : Second(Now)
We get a string like 9:8:4
But it
As Integer
With [1]
For i = 1 To 2
GoSub lbl
Next
End With
Return
lbl:
Error.Raise(Hello)
Catch
Print catching;; Error.Text
Return
End
2012/7/23 Benoît Minisini gam...@users.sourceforge.net
Le 23/07/2012 01:14, Emil Lenngren a écrit :
It was this line I
Does somebody have a compiled version of Gambas for the Raspberry Pi? (I
don't have time to compile my own...)
/Emil
2012/8/4 Christer Johansson li...@hth.com
Pardon me for butting in, but I wonder if you have tried a Gambas
short (16 bits).
The last time I can recall seeing a byte or
OK, it should work now.
2012/7/28 Emil Lenngren emil.lenng...@gmail.com
Can't really do anything right now. I am in Venice now on Vacation :)
I come home in 8 days or something.
If you want, you can post the llvm output, gdb stacktrace or whatever...
/Emil
2012/7/28 Jussi Lahtinen
Can't really do anything right now. I am in Venice now on Vacation :)
I come home in 8 days or something.
If you want, you can post the llvm output, gdb stacktrace or whatever...
/Emil
2012/7/28 Jussi Lahtinen jussi.lahti...@gmail.com
Before continuing my vacation again in countryside...
You should write Dim t As New Float[25] instead of Dim t[25] As Float
if you don't have special reasons.
/Emil
2012/7/28 wally wa...@voosen.eu
Thank you very much.
so if i use
VB: ReDim t#(0 To 25)
GB: Dim t[25] as Float
VB: If (i 10) Then t(I) = 0#
GB: If(i 10) then
Does exception handling with Catch work as I stated before?
I am at a hotel in Vienna with Wi-Fi now so I can't test it right now :)
/Emil
2012/7/22 Benoît Minisini gam...@users.sourceforge.net
Le 09/07/2012 00:46, Emil Lenngren a écrit :
Just store it inside a T_POINTER?
val-type
It was this line I was worried about:
while (SP (BP + FP-n_local + FP-n_ctrl))
/Emil
2012/7/23 Benoît Minisini gam...@users.sourceforge.net
Le 23/07/2012 00:47, Emil Lenngren a écrit :
Does exception handling with Catch work as I stated before?
I am at a hotel in Vienna with Wi-Fi now
jussi.lahti...@gmail.com
Yes it works now.
But Print 0.6 ^ x did crash, but x = 0.6 ^ x alone did not crash
(imMatr[10, 10] += x was needed)!
So I wonder was 0.6 ^ x culprit alone?
Jussi
On 10 July 2012 18:13, Emil Lenngren emil.lenng...@gmail.com wrote:
It should work now in revision #4934
Yes, 0.6 ^ x was the culprit alone ;)
2012/7/10 Emil Lenngren emil.lenng...@gmail.com
Because if you only write x = 0.6 ^ x, that statement is completely
optimized away, because x is never used later on.
If you write Print 0.6 ^ x, the result of the operation is printed, i.e.
used.
If you
Yes I know...
I sent a bug report to llvm May 21:
http://llvm.org/bugs/show_bug.cgi?id=12906
http://llvm.org/bugs/show_bug.cgi?id=12906They haven't done anything
about it yet :/
As a workaround, you can run
LANG=en GB_JIT=info gbx3
/Emil
2012/7/10 Benoît Minisini gam...@users.sourceforge.net
: How to determine if a menu exists? (Bruce)
3. ComboBox.List.Insert( Array as String[]) used as a Sub (Bruce)
4. Menu.Group property??? (Bruce)
5. Re: JIT bug 4 (Emil Lenngren)
6. Re: Menu.Group property??? (Tobias Boege)
7. xml.save() (Antonio Carlos Siqueira)
8. Re
Fixed in the latest revision!
Gambas should have a real unit test system...
/Emil
2012/7/10 Jussi Lahtinen jussi.lahti...@gmail.com
OK, see attachment.
Jussi
On 10 July 2012 22:30, Jussi Lahtinen jussi.lahti...@gmail.com wrote:
Strange, this crash occurs on somewhere in
Public Sub Button1_Click()
test(19)
End
Fast Private Sub test(x As Integer)
Print 0.6 ^ x
End
Does this crash for you as well?
I think there is a bug in llvm or something. It doesn't seem to like that I
call llvm.powi.f64.
I shall see what I can do about it ...
/Emil
2012/7/9 Jussi
From gdb I disassemble the jit function to this:
...
0x77e3f05c: movabs $0x0,%rax
0x77e3f066: callq *%rax
...
You can see that llvm replaced the llvm.powi.f64 to a null function :/
2012/7/9 Emil Lenngren emil.lenng...@gmail.com
Public Sub Button1_Click()
test(19
remove the function
STACK_free_gosub_stack.
Can this be a good idea?
/Emil
2012/3/7 Kevin Fishburne kevinfishbu...@eightvirtues.com
On 03/05/2012 09:00 PM, Benoît Minisini wrote:
Le 06/03/2012 02:11, Emil Lenngren a écrit :
Yeah, if there is no stack relocation, I can assume that a lot
Just store it inside a T_POINTER?
val-type = T_POINTER;
val-_pointer.value = PC;
Or whatever big enough datatype that doesn't do anything on RELEASE.
2012/7/9 Benoît Minisini gam...@users.sourceforge.net
Le 09/07/2012 00:13, Emil Lenngren a écrit :
I have a little optimization idea
I have the same problem on Gentoo.
||
|| Unable to met pkg-config requirement: libgsl
|| Unable to met pkg-config requirement: libgslcblas
||
However, I could still do a make and sudo make install.
/Emil
2012/7/9 Adrien Prokopowicz adrien.prokopow...@gmail.com
Hi,
I noticed that I
When you are declaring the array by writing
A[3] As Single
you declare an inline array, i.e. NOT a reference to an array.
So you cannot write
ThatStruct.A = AnArray.
Instead you have to copy the contents from AnArray into A.
2012/7/4 Kevin Fishburne kevinfishbu...@eightvirtues.com
On 07/04/2012
As Benoît says,
Dim Normals As New Tile_Normals[TileGrid.Size, TileGrid.Size]
only gives an array where you can store references to Tile_Normals.
You also have to do:
Dim I As Integer
Dim J As Integer
For I = 0 To TileGrid.Size - 1
For J = 0 To TileGrid.Size - 1
Normals[I, J] = New
It uses no CPU on my computer...
2012/7/2 Benoît Minisini gam...@users.sourceforge.net
Le 02/07/2012 22:33, Adrien Prokopowicz a écrit :
Le lundi 2 juillet 2012 19:31:35 Benoît Minisini a écrit :
Le 02/07/2012 07:20, Benoît Minisini a écrit :
Le 02/07/2012 00:41, Adrien Prokopowicz a
Yes, you are correct. My computer has an Intel i7 processor :)
/Emil
2012/7/3 Adrien Prokopowicz adrien.prokopow...@gmail.com
Le lundi 2 juillet 2012 23:09:31 Emil Lenngren a écrit :
It uses no CPU on my computer...
2012/7/2 Benoît Minisini gam...@users.sourceforge.net
Le 02/07/2012
Does it work in revision #4880?
/Emil
2012/7/2 Ru Vuott vu...@yahoo.it
Hello,
I tried update my Gambas3 with revision 4879 from svn, but I obtained an
error (usual...):
***
jit_gambas_pass.cpp:28:28: fatal error: llvm/IRBuilder.h: No such file or
directory
compilation terminated.
If you use the JIT compiler, you can override native classes with classes
written in Gambas, but not override classes written in gambas with a native
one. I hope that makes sense..
/Emil
2012/6/24 Benoît Minisini gam...@users.sourceforge.net
Le 24/06/2012 20:46, tobi a écrit :
Alright,
* Something broke!!.
But if I add 'Return', under Message(Everything works!), or I remove
'Fast' then everything works as expected.
See attachment.
Gambas 3 rev 4860 @ Xubuntu 12.04 64bit
Jussi
On 20 June 2012 20:14, Emil Lenngren emil.lenng...@gmail.com wrote:
That bug was actually
()
Jussi
On 26 June 2012 21:05, Emil Lenngren emil.lenng...@gmail.com wrote:
I am in Italy now on holiday so I cannot debug the code, but could you
please run gbx3 with GB_JIT=info and post the llvm code?
/Emil
2012/6/26 Jussi Lahtinen jussi.lahti
:10, Emil Lenngren emil.lenng...@gmail.com wrote:
Is revision #4851 useful for you?
You can now convert functions in the current running class to pointers.
/Emil
2012/6/19 Emil Lenngren emil.lenng...@gmail.com
It should work in the latest revision :)
2012/6/19 Emil Lenngren
problem with argument counting.
Jussi
On 20 June 2012 19:14, Emil Lenngren emil.lenng...@gmail.com wrote:
Tomorrow I will travel away for a week so I cannot do anything then, but
just keep sending emails and I will reply when I come home :)
/Emil
2012/6/20 Jussi Lahtinen jussi.lahti
You can test the 3.0 version of LLVM and see if it works. When I used the
3.0 version from Ubuntu repository, I got errors. But try it out!
/Emil
2012/6/20 Willy Raets wi...@earthshipbelgium.be
On do, 2012-06-14 at 19:07 +0300, Demosthenes Koptsis wrote:
i did not incude the libs for
jit
now!
Jussi
On 18 June 2012 22:34, Emil Lenngren emil.lenng...@gmail.com wrote:
Does it work in revision #4847?
/Emil
2012/6/18 Jussi Lahtinen jussi.lahti...@gmail.com
Starting program: /usr/local/bin/gbx3
[Thread debugging using libthread_db enabled]
Using host
has about 120 000 lines of code. And I try JIT with every module
and class of it.
So I think I will find more bugs... But in some point I must wait support
for callbacks to finish that.
Jussi
On 19 June 2012 21:58, Emil Lenngren emil.lenng...@gmail.com wrote:
Hi. Kiitos for another bug
It should work in the latest revision :)
2012/6/19 Emil Lenngren emil.lenng...@gmail.com
If you want a quick workaround, you can have non-fast method that creates
a callback, and immediately returns it, like:
Private Function GenerateCallback() As Pointer
Return CallbackFunction
End
Is revision #4851 useful for you?
You can now convert functions in the current running class to pointers.
/Emil
2012/6/19 Emil Lenngren emil.lenng...@gmail.com
It should work in the latest revision :)
2012/6/19 Emil Lenngren emil.lenng...@gmail.com
If you want a quick workaround, you can
What is the real reason for limiting inheritance to max 16 levels? I see no
problem having no limit at all.
/Emil
2012/6/18 Bruce bbr...@paddys-hill.net
On Sun, 2012-06-17 at 18:06 +0200, Emil Lenngren wrote:
Instead of overriding, why not simply create a module that does things
with
your
is at, then declare a
variable-size array (directly on the stack, not with malloc) with the depth
as size, then fill it with all parents.
/Emil
2012/6/18 Benoît Minisini gam...@users.sourceforge.net
Le 18/06/2012 13:24, Emil Lenngren a écrit :
What is the real reason for limiting inheritance
Haha lol.
I looked up the class hierarchy for LLVM, which is a quite large project,
and the longest chain had 9 classes.
/Emil
2012/6/18 Bruce bbr...@paddys-hill.net
On Mon, 2012-06-18 at 14:32 +0200, Emil Lenngren wrote:
Even if most projects don't need more than depth 16, there might
You don't need to call alloca(). Simply use something like this:
CLASS *her[get_the_size()];
It is valid in C99.
2012/6/18 Benoît Minisini gam...@users.sourceforge.net
Le 18/06/2012 14:32, Emil Lenngren a écrit :
Even if most projects don't need more than depth 16, there might be
some
|| Addr == 0) GlobalMapping already
established!' failed.
I'm out of time, but as soon as I have time I try to isolate code causing
the problem.
Jussi
On 17 June 2012 20:24, Emil Lenngren emil.lenng...@gmail.com wrote:
It should be fixed in revision #4843!
/Emil
2012/6
Yes, it works now :)
2012/6/17 Benoît Minisini gam...@users.sourceforge.net
Le 17/06/2012 02:54, Jussi Lahtinen a écrit :
Yeah, terminal gives other position...
With my actual project, I got error message; wanted string, got
blaablaaClass instead.
And that error message comes from
Instead of overriding, why not simply create a module that does things with
your array instead?
Instead of
Public Function Decode(ivar as String[], pattern as Integer[]) as
Variant[]
in some new array-class,
you can simply have
Public Function Decode(array As Variant[], ivar as String[],
).
This seems not to be related to compare method, so just ignore name of the
attached project.
I will look it more closely when this is fixed.
Jussi
On 17 June 2012 19:01, Emil Lenngren emil.lenng...@gmail.com wrote:
Yes, it works now :)
2012/6/17 Benoît Minisini gam
Hi. What error do you get? The extern part seems to work fine for me...
/Emil
2012/6/16 Jussi Lahtinen jussi.lahti...@gmail.com
See attachment.
If you comment out Fast from mTest, all works perfectly.
Gambas 3 rev 4837 @ Xubuntu 12.04 64bit
Jussi
: wanted Standard type, got Class instead in FMain:9.
Jussi
On 17 June 2012 02:47, Emil Lenngren emil.lenng...@gmail.com wrote:
Hi. What error do you get? The extern part seems to work fine for me...
/Emil
2012/6/16 Jussi Lahtinen jussi.lahti...@gmail.com
See attachment.
If you
actual project I had similar error messages from modules
where extern is used.
Also the error message is pretty misleading as it points to the line I
copypasted.
I will investigate more...
Jussi
On 17 June 2012 03:23, Emil Lenngren emil.lenng...@gmail.com wrote:
That has nothing to do
...@gmail.com wrote:
The source can be found here:
http://bazaar.launchpad.net/~sebikul/mundus/trunk/view/head:/.src/Main.module
Let me know if you need more info!
Thanks!!
-Original Message-
From: Emil Lenngren emil.lenng...@gmail.com
Date: Sun, 10 Jun 2012 01:06:19
You can create a Variant[] that can contain arbitrary data types. You
can store a reference to that array both in a .Tag field, and some
other global variable.
Public MyArray As Variant[]
and in your code:
MyArray = [1, 2, yeah]
something.Tag = MyArray
2012/6/12, Bruce bbr...@paddys-hill.net:
Yes please, how does your source code look like? Are you trying to
enumerate a class?
/Emil
2012/6/9 Sebastian Kulesz sebi...@gmail.com
Hi! I'm getting a crash when I place the fast keyword on top of a
module. The output:
19PushClassExpression
gbx3: jit.h:145: virtual llvm::Value*
1 - 100 of 207 matches
Mail list logo