Re: [fpc-pascal] First pas2js public release

2018-01-07 Thread Sven Barth via fpc-pascal
On 07.01.2018 15:03, Ingemar Ragnemalm wrote: > and here is an (almost) fully working snake game: > > http://ragnemalm.se/images/santa/snake/snake.html > Perhaps you should write somewhere how the snake is controlled. I personally am used to using all four cursor keys to control the snake's

Re: [fpc-pascal] First pas2js public release

2018-01-07 Thread Sandro Cumerlato
Awesame work! :-) areas for improvement: in santa2 - loop Jingle Bells.mp3 for an infinite pleasure ;-) - play boing.mp3 multiple times in case of multiple keyboard hits. in snake: - avoid this: https://imagebin.ca/v/3nOH4webezqH On 7 January 2018 at 15:03, Ingemar Ragnemalm

Re: [fpc-pascal] First pas2js public release

2018-01-07 Thread Ingemar Ragnemalm
An update on my tests with pas2js: I have overcome most problems now and am quite a bit happier with what I see - and what I did see before was good! Reimar Grabowski asked for interactivity. Done! Myself, I wanted to reduce the amount of information, like file references in the HTML file,

Re: [fpc-pascal] First pas2js public release

2017-12-27 Thread el_es
On 24/12/17 09:20, Ingemar Ragnemalm wrote: > > Den 2017-12-22 kl. 12:00, skrev Michael Van Canneyt: >> On Wed, 20 Dec 2017, Reimar Grabowski wrote: [...] >>> While you are updating your code you can remove the two >>> dependencies on bootstrap (as they are not satisfied anyway and I >>> think

Re: [fpc-pascal] First pas2js public release

2017-12-26 Thread Graeme Geldenhuys
On 2017-12-24 09:36, Michael Van Canneyt wrote: If it was standard on all browsers (it is not on IE), then we could add it to web.pas. But since IE does not support it, the classes can then be added to a new units websound.pas. Sounds like a good candidate for a Decorator or Factory

Re: [fpc-pascal] First pas2js public release

2017-12-24 Thread Michael Van Canneyt
On Sun, 24 Dec 2017, Ingemar Ragnemalm wrote: In that sense, the demo demonstrates this. The server is just there for you to be able to download the "program"... Exactly. I get a cross-platform solution with no installations, in a way that users are increasingly used to. And I can write

Re: [fpc-pascal] First pas2js public release

2017-12-24 Thread Ingemar Ragnemalm
Den 2017-12-22 kl. 12:00, skrev Michael Van Canneyt: On Wed, 20 Dec 2017, Reimar Grabowski wrote: On Wed, 20 Dec 2017 15:14:50 +0100 Ingemar Ragnemalm wrote: Although I would like to make some improvements - who doesn't? To be precise, I want to figure out a way to

Re: [fpc-pascal] First pas2js public release

2017-12-22 Thread Reimar Grabowski
On Thu, 21 Dec 2017 15:49:01 +0100 Michael Schnell wrote: > Rather obviously this > would needed to be provided by the library (e.g. Lazarus or mse). LOL, no. R. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] First pas2js public release

2017-12-22 Thread Reimar Grabowski
On Fri, 22 Dec 2017 08:53:03 +0100 (CET) Michael Van Canneyt wrote: > That is one of the points of pas2js. To allow you to program the browser [in > pascal]. Fixed that for you. And yes, that's what most transpilers to javascript are meant for. > There is no need for a

Re: [fpc-pascal] First pas2js public release

2017-12-21 Thread Michael Van Canneyt
On Wed, 20 Dec 2017, Reimar Grabowski wrote: On Wed, 20 Dec 2017 15:14:50 +0100 Ingemar Ragnemalm wrote: Although I would like to make some improvements - who doesn't? To be precise, I want to figure out a way to play sounds, and I want image loading directly in the

Re: [fpc-pascal] First pas2js public release

2017-12-21 Thread Michael Schnell
On 20.12.2017 17:30, Reimar Grabowski wrote: Not dissing you or your work or pas2js but I fail to see the web application part. There is no communication between client and server. Actually there is no server side code at all and there is no interactivity. Rather obviously this would not be a

Re: [fpc-pascal] First pas2js public release

2017-12-21 Thread el es
On 21/12/17 11:53, Ryan Joseph wrote: > > >> On Dec 20, 2017, at 9:14 PM, Ingemar Ragnemalm wrote: >> >> Absolutely, and I don't mind sharing the code. It is in the same folder! >> Very small and simple program, and all FPC. :) > > Can you post the code? I haven’t

Re: [fpc-pascal] First pas2js public release

2017-12-21 Thread Ryan Joseph
> On Dec 20, 2017, at 9:14 PM, Ingemar Ragnemalm wrote: > > Absolutely, and I don't mind sharing the code. It is in the same folder! Very > small and simple program, and all FPC. :) Can you post the code? I haven’t actually seen any examples so I have no idea how it

Re: [fpc-pascal] First pas2js public release

2017-12-20 Thread Reimar Grabowski
On Wed, 20 Dec 2017 15:14:50 +0100 Ingemar Ragnemalm wrote: > Although I would like to make some improvements - who doesn't? To be > precise, I want to figure out a way to play sounds, and I want image > loading directly in the code and not dependent on the HTML. Any

Re: [fpc-pascal] First pas2js public release

2017-12-20 Thread Ingemar Ragnemalm
Den 2017-12-20 kl. 13:09, skrev Mattias Gaertner: On Wed, 20 Dec 2017 12:29:25 +0100 Ingemar Ragnemalm wrote: And then I got some of the provided demos running too and managed to write one of my own. So it looks good! Here is an early result, expressing my feelings for

Re: [fpc-pascal] First pas2js public release

2017-12-20 Thread Graeme Geldenhuys
On 2017-12-20 11:29, Ingemar Ragnemalm wrote: http://ragnemalm.se/images/santa/santa.html I couldn't get sound working, but otherwise it seems to work as it should! (I hope it does for the rest of you.) Awesome - I still have to get my head around this whose Pas2JS functionality. It seems

Re: [fpc-pascal] First pas2js public release

2017-12-20 Thread Dave Connolly
cal@lists.freepascal.org>, FPC > > > development mailing list<fpc-de...@lists.freepascal.org>, Lazarus > > > mailing list<laza...@lists.lazarus-ide.org> > > > Subject: [fpc-pascal] First pas2js public release > > > Message-ID:<alpine.deb.2

Re: [fpc-pascal] First pas2js public release

2017-12-20 Thread Mattias Gaertner
lt;fpc-pascal@lists.freepascal.org>, FPC > > development mailing list<fpc-de...@lists.freepascal.org>, Lazarus > > mailing list<laza...@lists.lazarus-ide.org> > > Subject: [fpc-pascal] First pas2js public release > > Message-ID:<alpine.deb.2.20.171

Re: [fpc-pascal] First pas2js public release

2017-12-20 Thread Ingemar Ragnemalm
list<fpc-de...@lists.freepascal.org>, Lazarus mailing list<laza...@lists.lazarus-ide.org> Subject: [fpc-pascal] First pas2js public release Message-ID:<alpine.deb.2.20.1712161655180.32...@home.telenet.be> Content-Type: text/plain; format=flowed; charset=US-ASCII He

Re: [fpc-pascal] First pas2js public release

2017-12-17 Thread Graeme Geldenhuys
Well done to everybody involve. This is truly impressive news! * Debugging: Obviously, the browser debugger can be used to debug the Javascript. But there is more: the compiler can emit a source map, and this means that if the browser finds the source file, it will display the original source

Re: [fpc-pascal] First pas2js public release

2017-12-17 Thread Snorkl e
Wow, nice job  On Dec 17, 2017 2:29 AM, "Michael Van Canneyt" wrote: > > > On Sun, 17 Dec 2017, Sven Barth via fpc-pascal wrote: > > Am 17.12.2017 08:01 schrieb "code dz" : >> >> good news & thanks for the effort >> >> is it similar to Emscripten ?

Re: [fpc-pascal] First pas2js public release

2017-12-17 Thread Michael Van Canneyt
On Sun, 17 Dec 2017, Sven Barth via fpc-pascal wrote: Am 17.12.2017 08:01 schrieb "code dz" : good news & thanks for the effort is it similar to Emscripten ? Not really. Emscripten (and WebAsm) has the goal to convert native programs that rely on pointers. It is

Re: [fpc-pascal] First pas2js public release

2017-12-17 Thread Sven Barth via fpc-pascal
Am 17.12.2017 08:01 schrieb "code dz" : good news & thanks for the effort is it similar to Emscripten ? Not really. Emscripten (and WebAsm) has the goal to convert native programs that rely on pointers. It is essentially an assembly language in JavaScript. Pas2JS is on the

Re: [fpc-pascal] First pas2js public release

2017-12-16 Thread code dz
good news & thanks for the effort is it similar to Emscripten ? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] First pas2js public release

2017-12-16 Thread Michael Van Canneyt
Hello fellow Pascal enthousiasts, It is with great pleasure that I can finally announce the first publicly available version of pas2js. A "beta" version, version 0.8.39. The endpoint (for the time being) of nearly 10 years of (slow) development. pas2js is a Object Pascal to Javascript