Freebasic to JavaScript-Converter ?
Freebasic to JavaScript-Converter ?
PB2Web a PureBasic to JavaScript-Converter :
http://pb2web.de/
http://pb2web.de/forum/index.php
Phaser : 2D game framework
http://pb2web.de/forum/index.php?topic=102.0
http://www.photonstorm.com/phaser
awesome job ...
is there a equivalent FreeBasic ?
FreeBasic to a javascript converter could help generate the consistent linux windows macos ios android cross-platform programs ...
http://pb2web.de/
http://pb2web.de/forum/index.php
Phaser : 2D game framework
http://pb2web.de/forum/index.php?topic=102.0
http://www.photonstorm.com/phaser
awesome job ...
is there a equivalent FreeBasic ?
FreeBasic to a javascript converter could help generate the consistent linux windows macos ios android cross-platform programs ...
Re: Freebasic to JavaScript-Converter ?
All this nonsense, complete nonsense. Java script - very easy language (easier to learn) what for still write on something, then after parsing to get a bunch of extra code generated.PB2Web a PureBasic to JavaScript-Converter
Re: Freebasic to JavaScript-Converter ?
I'm not talking about the simplicity of the language javascript (I know ...) but make programs FreeBasic multi-platform. JavaScript is practically on all systems ...
Re: Freebasic to JavaScript-Converter ?
FB is about native code from the beginning (thinking about pointers, C ABI compatibility, inline ASM), so naturally it can't work in virtual/scripting environments, at least not without removing/disallowing lots of these things. But then a lot of FB programs won't work in that environment.
-
- Posts: 5494
- Joined: Sep 12, 2005 20:06
- Location: California
Re: Freebasic to JavaScript-Converter ?
I think having syntax options on the web are a good thing. Even with standard web technologies, there are alternatives such as HAML (for HTML), LESS and SASS (for CSS), and server-side processing languages such as Razor (for C# "cshtml" views in MVC.).
If I wanted to code Ruby or BASIC on the web, would that be so bad?
I think the only issue is that most people don't use the web the same way you would normally use BASIC. A BASIC to JavaScript convertor would be more valuable server-side, IMO.
If I wanted to code Ruby or BASIC on the web, would that be so bad?
I think the only issue is that most people don't use the web the same way you would normally use BASIC. A BASIC to JavaScript convertor would be more valuable server-side, IMO.
Re: Freebasic to JavaScript-Converter ?
Use VB.NET and ASP ? :-)anonymous1337 wrote:I think having syntax options on the web are a good thing. Even with standard web technologies, there are alternatives such as HAML (for HTML), LESS and SASS (for CSS), and server-side processing languages such as Razor (for C# "cshtml" views in MVC.).
If I wanted to code Ruby or BASIC on the web, would that be so bad?
There is a point though to that provocative statement: while one could argue about adding more weblanguages that are virtually indistinguishable to Javascript except for some basic syntax is pointless, assume that need as a given for now. At least for some of us.
The main point is that such effort would have to come from one of the Basic interpreters or from a new project, not from the compilers, like FB. A bit of base syntax is simply not enough commonality for it to be in the same project as a base, native compiler.
Everything FB has outside the basic parser would just be unnecessary luggage, and the differing requirements would only cause strife between web and native devels. And once the webbers start adding javascript borrowed syntax, there would even be dissent in the parser.
Re: Freebasic to JavaScript-Converter ?
demos are worth more than a long discour :
I do not think WebGL and JavaScript enabled that kind of thing (use firefox or chrome):
http://dl.dropboxusercontent.com/u/2355 ... index.html
http://alteredqualia.com/three/examples ... rials.html
http://www.jbeach.ca/test/SoSolitaire/SoSolitaire/
most impressive: http://www.unrealengine.com/html5/
author PureBasic developed a new language suited for web under the name spiderbasic, see here:
http://forums.purebasic.com/english/vie ... ece227f08e
http://www.purebasic.fr/french/viewtopi ... piderbasic
small demo :
http://www.purebasic.com/spidertest/gadgets.html
http://www.purebasic.com/spidertest/waponez/index.html
http://comtois.developpez.com/spiderbas ... lling.html
I do not think WebGL and JavaScript enabled that kind of thing (use firefox or chrome):
http://dl.dropboxusercontent.com/u/2355 ... index.html
http://alteredqualia.com/three/examples ... rials.html
http://www.jbeach.ca/test/SoSolitaire/SoSolitaire/
most impressive: http://www.unrealengine.com/html5/
author PureBasic developed a new language suited for web under the name spiderbasic, see here:
http://forums.purebasic.com/english/vie ... ece227f08e
http://www.purebasic.fr/french/viewtopi ... piderbasic
small demo :
http://www.purebasic.com/spidertest/gadgets.html
http://www.purebasic.com/spidertest/waponez/index.html
http://comtois.developpez.com/spiderbas ... lling.html
-
- Posts: 2655
- Joined: Aug 28, 2008 10:54
- Location: new york
Re: Freebasic to JavaScript-Converter ?
If you're talking about a translator, I think it would be very difficult. I think it would be more difficult in fact, that translating C++ into JavaScript. I've worked on projects where I translated FreeBASIC into JavaScipt and I needed a number of workarounds where the pointer architecture was concerned. Translating JavaScript into FreeBASIC is even more difficult because the native array type is really an indexed list and FB has no native equivalent. I imagine the process would be painful.
Re: Freebasic to JavaScript-Converter ?
And don't forget the average advanced source on this forum being full of preprocessor-foo due to the lack of generics.
Re: Freebasic to JavaScript-Converter ?
in case someone would be interested, I found this language (BrowserBasic) :
http://retrogamecoding.org/board/index. ... board=13.0
http://retrogamecoding.org/board/index. ... board=13.0
Re: Freebasic to JavaScript-Converter ?
A linux emulator has been made in javascript:
http://bellard.org/jslinux/
if you manage to run a program written in freebasic on it, you could achieve what you want.
http://bellard.org/jslinux/
if you manage to run a program written in freebasic on it, you could achieve what you want.
Re: Freebasic to JavaScript-Converter ?
Awesome created by the author of qemu. only for text mode. not yet at the point graphically. in all it gives an idea of the power of language javascript ...
in the same kind Tululoo Game Maker. the author shows the source code is in PureBasic. I just tested. interesting. damage that is not made FreeBasic. to see here:
http://www.tululoo.com/
in the same kind Tululoo Game Maker. the author shows the source code is in PureBasic. I just tested. interesting. damage that is not made FreeBasic. to see here:
http://www.tululoo.com/
Re: Freebasic to JavaScript-Converter ?
There is a C/C++ (actually LLVM bytecode) to javascript: https://github.com/kripken/emscripten/wiki.
When the FB's LLVM backend is finished, it should be possible to use Emscripten to compile FB to javascript.
Then you need the FB runtime lib and the gfxlib also in javascript, but probably someone will have to "port" the rtlib (and the gfxlib), writting the helper functions in javascript.
If even the Unreal engine was ported using that compiler, anything is possible.
When the FB's LLVM backend is finished, it should be possible to use Emscripten to compile FB to javascript.
Then you need the FB runtime lib and the gfxlib also in javascript, but probably someone will have to "port" the rtlib (and the gfxlib), writting the helper functions in javascript.
If even the Unreal engine was ported using that compiler, anything is possible.
Re: Freebasic to JavaScript-Converter ?
thank you for the link. very interesting ...