Page 3 of 30

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 9:22 pm
by ts-soft
@infratec

simple start the other IDE ones and all works as before

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 9:37 pm
by akee
Extensive jquery-ui... I can see development on mobile devices on the horizon... :)

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 9:38 pm
by skywalk
Fred wrote:
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).
Ok, but I run web apps now on both mobile and pc that can run when not connected to a network. They remember my last settings and store new ones for next time to sync when connected. Will this mode be available in SpiderBasic?

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 9:41 pm
by Fred
skywalk wrote:
Fred wrote:
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).
Ok, but I run web apps now on both mobile and pc that can run when not connected to a network. They remember my last settings and store new ones for next time to sync when connected. Will this mode be available in SpiderBasic?
Yes

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 9:46 pm
by skywalk
Another question. Can I get around the lack of disk access by calling myPBapp.exe which does the heavy work and then passes data to mySBapp?

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 9:56 pm
by Fred
I think it should be possible if your pbapp.exe open a websocket (javascript own socket format). You could also write a small app which acts like a webserver and handle the GET/PUT request for your app (like atomic web server for example).

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 9:58 pm
by User_Russian
infratec wrote:If I now double click on my PB files, they open in SpiderBASIC.
Run SpiderBasic with parameter /PORTABLE.

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 10:06 pm
by skywalk
Fred wrote:I think it should be possible if your pbapp.exe open a websocket (javascript own socket format). You could also write a small app which acts like a webserver and handle the GET/PUT request for your app (like atomic web server for example).
Ok, but this is only a solution for x86-64 based computers and not android tablets/phones. The disk or hardware access restriction does limit my use models.

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 10:15 pm
by Danilo
RGB() colors are reversed (BGR).
Can't get Sprite(Pixel)Collision to work.

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 10:16 pm
by Fred
skywalk wrote:
Fred wrote:I think it should be possible if your pbapp.exe open a websocket (javascript own socket format). You could also write a small app which acts like a webserver and handle the GET/PUT request for your app (like atomic web server for example).
Ok, but this is only a solution for x86-64 based computers and not android tablets/phones. The disk or hardware access restriction does limit my use models.
Well, don't get it wrong: it's not a language to replace PureBasic. Performance wise it will be much worse and you can't access hardware, filesystem, sockets etc. It's just another tool to create other application types, or complex and reactive front ends to your web applications (for example connecting to a NodeJS server app). We will indeed continue PureBasic development, it's not the end of the road as some suggests. We have the time to handle both, don't worry. It will also help to forge new commands for PureBasic to make it stronger.

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 10:23 pm
by plouf
PureBasic SHOULD definitely be continued ;)

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 10:31 pm
by Danilo
First try, but can't get collisions to work. Tried some things, get weird effects.

- Waponez_III_Web.zip (32k) :D

Cursor keys to move, space for shooting.

Doesn't work anymore when I disable the debugger. With debugger it is OK.

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 10:40 pm
by ts-soft
Thx Fred :D

Sounds comes after closing the Tab in Firefox :mrgreen:

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 11:14 pm
by akee
I'm thinking that SpiderBasic should be integrated into PureBasic and be something like, compile as a web app (new feature)
together with the existing windows .exe, console .exe, .dll, etc etc.

I also agree that for this to happen, the licensing for PureBasic needs to change for it to be beneficial for Fred to maintain it. Something like buy at $X and pay a $Y subscription every year. where Y can be a portion of X. We are reaping the rewards off Fred's hard work. If we all can contribute, I feel Fred can probably retire and focus on a better k*ck-@ss compiler that we can all enjoy developing on.

My opinion... :)

Re: SpiderBasic 1.00 alpha

Posted: Sun Jan 19, 2014 11:27 pm
by Fred
Danilo wrote:First try, but can't get collisions to work. Tried some things, get weird effects.

- Waponez_III_Web.zip (32k) :D

Cursor keys to move, space for shooting.

Doesn't work anymore when I disable the debugger. With debugger it is OK.
And the web version with a (mostly) fixed sprite lib :). Better with Chrome for now.

http://purebasic.com/spidertest/waponez/