Visualizza post

Questa sezione ti permette di visualizzare tutti i post inviati da questo utente. N.B: puoi vedere solo i post relativi alle aree dove hai l'accesso.


Topics - vuott

Pagine: 1 ... 373 374 [375] 376 377 ... 379
5611
Vi presento CreaSo, semplicemente un'interfaccia che intende agevolare la procedura di creazione delle "Librerie condivise" .so (Shared Library), da utilizzare come librerie esterne in Gambas con la funzione Extern.


Gli utenti iscritti a questo forum possono scaricare la versione 0.0.6 del sorgente in fondo nell'ultimo messaggio.


5612
Ho l'impressione che la chiamata a funzioni esterne con Extern non funzioni più.  :-\
Potete controllare e verificare anche voi questa cosa ?

5614
Domande tecniche / "Transparent" alla proprietà SidePanel
« il: 01 Giugno 2012, 16:39:38 »
Ambasciata della Comunità italiana di Gambas sulla mailing list internazionale

Comunicazione n. 7 dal vostro Ambasciatore     :rotfl:

Questa Ambasciata porta a conoscenza un avviso inviato oggi da Minisini:


Hi,

In revision #4800, I added a "Transparent" to the SidePanel property to
restore its old behaviour.

By default, Transparent is FALSE, and you get the old behaviour.

If you set Transparent to TRUE, you get the new behaviour, with the
SidePanel handles appearing when the SidePanel border is hovered.

Regards,

--
Benoît Minisini

5616
Domande tecniche / Gambas3 & SubVersion
« il: 27 Maggio 2012, 18:13:04 »
«Con la nuova versione Gambas3 è stata introdotta una nuova struttura dell'albero delle directory per i progetti, andando ad integrare quella presente nella precedente versione 2. ... »

Vorrei comunicare alla nostra Comunità che md9327 ha redatto nella WIKI una pagina su quest'argomento, inserendo anche una dettagliata descrizione della struttura base delle cartelle creata da Gambas-3.
Gli interessati possono leggere il lavoro qui:
http://www.gambas-it.org/wiki/index.php/Gambas3_%26_SubVersion

5617
Domande tecniche / New JIT Compiler
« il: 23 Maggio 2012, 23:49:20 »
Ambasciata della Comunità italiana di Gambas sulla mailing list internazionale

Comunicazione n. 6 dal vostro Ambasciatore     ;D

Questa Ambasciata porta a conoscenza un avviso inviato oggi da Emil Lenngren (della mailing list internazionale di Gambas):


Hi everybody.

I've been working on a JIT-compiler for Gambas for some months, and I'm now
ready to release an alpha-version in the latest svn of Gambas.
The compiler uses LLVM to produce machine code for x86 or x86_64. You need
LLVM on your computer for it to work, preferably the latest version from
svn (3.0 from Ubuntu repos does not seem to work any well). Find more
instructions in the README file.

To use it, place the word "Fast" at the top of a Gambas Class file, for a
class that you want all functions JIT-compiled instead of interpreted. (At
the moment you cannot make individual functions JIT-compiled, but that is
limited by the gbc compiler.)

As it takes some milliseconds for LLVM to emit machine code and do
optimizations, you should only use it for functions you really need
optimizations.

As the JIT compiler analyses the whole function before execution starts,
some extra type safety is added. In interpreter mode, you can normally do
things like:
Print "hello"
Print 1.3 \ 5
and you will first see hello on the screen, and then an error message
complaining you can't do integer division on floats.
If you run the same function in the JIT compiler, the error message will be
thrown before execution starts instead, hopefully in order to make programs
less buggier.
As a consequence, you can not have code like "Try Print 1.3 \ 5" either. At
the moment the incorrect line is reported in the error message...

The best speed-ups will be in functions that use a lot of low-level
calculations and control flows (except For Each loops), like functions that
do a lot of math. If the function mostly calls other libraries, you won't
see speed-ups either.
There are still the same overhead when calling functions, since the gambas
stack must be maintained as before, to make error handling work.
Using Try/Catch is probably slightly slower too because a real exception
handler must be set up.

Something the LLVM optimizer is very good at is transforming a chain of
if-else statements to a jump table, so code like:
Select Case x
  Case 1:
    ..
  Case 2:
    ..
  Case 3:
    ..
End Select
will be much faster than before, so you don't have to use the "On Goto"
syntax and a lot of labels. This will produce identical machine code.

Most things are implemented, but there are still many bugs to fix.
Some of the (so far) unimplemented features are
Calling external C libraries (the Extern keyword).
The use of "_unknown" special method.
IIf and Choose with different argument data types.
The possibility to use Component.Load to load functions that are executed
right after in the same function.
Profiling
Breakpoints

Some of the benchmarks from http://gambasdoc.org/help/doc/benchmark
Polynom: 102.7 seconds to 4.7 seconds
Primes: 18.3 seconds to 3.5 seconds
Nbody: 16.0 seconds to 1.8 seconds

If you are curious and want to see the optimized LLVM IR you can uncomment
the line M->dump() at the bottom of the jit_codegen.cpp file in gb.jit/src.

I hope the JIT compiler will be useful for you ;)

/Emil

Forgot to mention that the 64-bit version is probably more bug-free than
the 32-bit version, since I myself have a 64-bit computer and therefore
have run only some few tests on 32-bit...

5619
Domande tecniche / Novità in Gambas 3
« il: 19 Maggio 2012, 15:32:54 »
Ambasciata della Comunità italiana di Gambas sulla mailing list internazionale

Comunicazione n. 5 dal vostro Ambasciatore     :rotfl:

Questa Ambasciata porta a conoscenza un avviso inviato oggi da Minisini:


Hi,

I have just added the ability to profile a project from the IDE.

This is not finished yet. At the moment, the IDE will tell you how much
time you spend in each function, and, for each function, how much time
is spent in other functions called from it.

Next, I will try to profile each line of code.

I hope it will help to optimize your projects!

Regards,

--
Benoît Minisini

5620
Domande tecniche / Significativa modifica in gb.gtk
« il: 15 Maggio 2012, 16:35:31 »
bene bene.... adesso ti nominiamo ambasciatore della comunità italiana di gambas sula mailing list internazionale  ;D

Ambasciata della Comunità italiana di Gambas sulla mailing list internazionale

Comunicazione n. 4 dal vostro Ambasciatore      ;D

Questa Ambasciata porta a conoscenza un avviso inviato da Minisini:


No, it's not the support of GTK+ 3.0, but a big redesign that allows
gb.gtk controls to be "transparent" like their gb.qt4 counterparts.

This is in revision 4729, and this is work in progress, so you can complain.

Now the PhotoTouch and MediaPlayer example can work with gb.qt4 or
gb.gtk indifferently... except that there is some bugs in gb.gtk yet:

- For some reason, the PhotoTouch brightness dialog does not work with
gb.gtk+. No idea why.

- The MediaPlayer control window is not on the bottom of the screen. No
idea why too. And making the main window fullscreen loses the maximized
state.

Anyway, I hope you will enjoy my efforts to allow making cool GUIs with
gb.gtk!

Regards,

--
Benoît Minisini


5621
Vi presento questo nuovo applicativo: Clalsa, che consente di vedere tutti i Client Midi di Alsa e le loro Porte al momento attivi ed individuarne il relativo numero identificativo.

Anche questa capacità è ottenuta utilizzando le API di Alsa mediante la funzione Extern.

Gli utenti iscritti a questo forum possono scaricare la versione 0.0.3 del sorgente qui allegato .

5622
...tornando ai giochetti  ;D allego qui un semplicissimo e simpatico applicativo, Insegui il Tasto!, che può - per quanto possibile - svolgere la sua piccola  :-[ parte nel mostrare a livello di codice una modalità per distruggere e ri-creare un oggetto posizionandolo in modo casuale sul form.

Gli utenti iscritti a questo forum possono scaricare il sorgente della versione 0.0.1 qui in allegato.

Provatelo, e... non sparate sul pianista !  :'(

5623
Io effettuo gli aggiornamenti del mio Gambas 3 tramite SVN.

Bene, da qualche mese durante la solita procedura di aggiornamento, dopo aver lanciato in terminale l'istruzione: ~/trunk $ ./configure -C, io ho ricevuto sempre questo avviso:


||
|| GNU Scientific Library component is disabled
|| GSL BLAS is disabled
||



ed alla fine ho sempre ricevuto questo messaggio
> ||
|| THESE COMPONENTS ARE DISABLED:
|| - gb.gsl


Da un po' di giorni il messaggio ha aggiunto questo nuovo componente all'avviso:

||
|| GStreamer media is disabled
||


e al termine di quella procedura ho questo avviso:

||
|| THESE COMPONENTS ARE DISABLED:
|| - gb.gsl
|| - gb.media
||


Ho posto la questione a Minisini, il quale mi ha risposto così:
« These are new components, so you must install the corresponding
development packages to compile them.
»


Bene... la domanda che vorrei porvi è questa: dove trovo questi corrispondenti pacchetti ?

5625
Programmazione / [RISOLTO] Pulire la coda degli eventi
« il: 18 Aprile 2012, 19:42:55 »
Quale istruzione per pulire la coda di un evento (ad esempio un _Enter() o un _MouseDown()) ?

Pagine: 1 ... 373 374 [375] 376 377 ... 379