Page 2 of 30

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 6:45 pm
by skywalk
Poshu wrote:@skywalk : Why? I'd guess because 1.00 alpha. Amaright?
I can understand the SQLite omission in alpha, but I don't understand a programming language even in alpha form, that cannot read or write to disk. Is that not a core browser function, like cookies?
Is there a way to access the windows api?

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 6:58 pm
by Danilo
Poshu wrote:@Danilo : It works for me, even with debugger enabled. (Win 8.1 in a VM, firefox up to date, spiderbasic installed at the root of C:\, using an admin account )
Everything works fine in Safari, also outside IDE.

With IE11 it works only from within the IDE. Opening the .html directly with IE11, it does not work correctly here:
Some examples don't display the window, with Canvas example the window is empty.
2DDrawing example also empty window.
And with IE11 the shark image looks weird, it is nearly complete white.

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 7:14 pm
by infratec
Hi,

not tested anything up to now, but...

I hate this browser stuff.
Years ago I decided to use flash, because that was independent from the used browser.
Now the only way looks like to use HTML5 and the canvas stuff.
In good hope that everything produced looks similar on all browsers.

But one very big and ugly thing:

We can not access real hardware stuff out of the browser.
We often have to communicate via serial ports and network and have to access databases.
I think that will not be possible on all OSs and browsers.

So I still have to use some other languages on Android and ARM CPUs.

Maybe if I can really use the same code without to much compilerif ...

Bernd

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 7:37 pm
by infratec
Hi,

just played a bit:

The screen program works once.
When I compile it a second time the web browser window opens, background is coloured, but no program starts.
(FireFox 26)
When I try some stuff, like open and run an other example, or close and open SpiderBasic, it works one time again.

Bernd

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 8:21 pm
by plouf
Pretty Good and nice waiting for the "beta" version to really test it !


@infratec , thats seems one of the reasons to be a separate project, even if it looks identical ! definitely need to be hardware access and in the real future both binary executable and web based based apps will have its place.

but obviously "true web based" its what more and more "simple users" are all they want ! most people use their "computer" for just web apps
(facebook gmail online games etc..)

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 8:23 pm
by akee
Wow! Thanks Fred...

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 8:30 pm
by Fred
skywalk wrote:
Poshu wrote:@skywalk : Why? I'd guess because 1.00 alpha. Amaright?
I can understand the SQLite omission in alpha, but I don't understand a programming language even in alpha form, that cannot read or write to disk. Is that not a core browser function, like cookies?
Is there a way to access the windows api?
All is sandboxed for web apps, that means you can't access the host file system (for security reasons) or native API. The idea here is to have something which run everywhere :). So files are pretty much useless and only required for caching. The way web apps works is to store data on servers. On mobile phone it's a bit different as you can access local file system (within your directory).

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 8:32 pm
by Fred
User_Russian wrote:How to create a working application?
Files, similar to SpiderBasic_Compilation0.html not work if open in the browser.
You can not create easily a standalone app for now, it should be run from the IDE.

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 8:38 pm
by plouf
quick idea ! , i believe some kind of "scramble" code if can be implemented in final version 1.0 !?

as it seems right now that its easy and very easy to copy codes from programs

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 8:42 pm
by Fred
Yes, you can use an obfuscator, but they can all be reversed very quickly and will slow down your code.

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 8:45 pm
by Fred
I just re-uploaded a new version which includes the missing requester library (for MessageRequester())

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 8:46 pm
by uwekel
Hmh, that sounds not that good to me :-(
I would more like to see further and intensive developement of PureBasic (like in the past year).
I am afraid it get stuck a bit :-(
If so, it would force me to entirely move to Python.
Fred, what is your future plan to PureBasic?

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 9:01 pm
by akee
Yup! missing MessageRequester and also False positive on LibraryMaker.exe using Avast anti-virus... ;)

I have reported it... ;)

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 9:04 pm
by plouf
Fred wrote:Yes, you can use an obfuscator, but they can all be reversed very quickly and will slow down your code.
this must be external ? not possible (or unwanted to) be part of sb 1 ?

at least some parts in SOME apps will be needed. i dont know how "easy will be" especialy if functions naming and variable naming its all messed up.
its significant diffirent to be a variable called NumberofCustomers from varXYS234

as always it is not ment to be super proof but "protected enough" IMHO

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 9:17 pm
by infratec
Ugly:

If I now double click on my PB files, they open in SpiderBASIC.
And when I uninstall SpiderBASIC, I get an error.
So I have to setup the extensions again.

Maybe (since it is not compatible) the source files should have an other extension: SB and SBI
PB stands for PureBASIC.

Bernd