Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread noreply
On 2017-03-16 08:35, Mattias Gaertner wrote: On Thu, 16 Mar 2017 14:07:51 +0100 (CET) "Karoly Balogh (Charlie/SGR)" wrote: [...] Also, WebAssembly is a descendant of asm.js, Maybe historically. Technically asm.js is higher lvl than webassembly. which was

Re: [fpc-pascal] Threadvar member field

2017-03-16 Thread Michael Van Canneyt
On Thu, 16 Mar 2017, African Wild Dog wrote: I have a class where its instances are shared between multiple threads. How can I declare one variable per instance per thread? The code below does not compile (fpc 3.0.0): TMyClass = class public threadvar MyValue: Integer; end; This is not

[fpc-pascal] Threadvar member field

2017-03-16 Thread African Wild Dog
I have a class where its instances are shared between multiple threads. How can I declare one variable per instance per thread? The code below does not compile (fpc 3.0.0): TMyClass = class public threadvar MyValue: Integer; end; Regards ___

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread wkitty42
On 03/16/2017 06:56 AM, Graeme Geldenhuys wrote: On 2017-03-11 23:23, Daniel Gaspary wrote: I was reading about the new Firefox making WebAssembly publicly available ("On Tuesday Firefox 52 became the first browser to support WebAssembly My system (FreeBSD) is compiling Firefox 52 in the

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Graeme Geldenhuys
On 2017-03-16 15:39, Michael Van Canneyt wrote: > It should be opposite. Start with very tight security, and loosen up if > deemed safe... Yes, that definitely is a much better way to go. Regards, Graeme ___ fpc-pascal maillist -

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Graeme Geldenhuys
On 2017-03-16 15:48, José Mejuto wrote: > about:config > > javascript.options.wasm;true/false Thanks for correcting me, my bad. I search for "assembly", "webassembly" and also looked under "security.*" Regards, Graeme ___ fpc-pascal maillist -

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread José Mejuto
El 16/03/2017 a las 16:27, Graeme Geldenhuys escribió: On 2017-03-16 14:45, Karoly Balogh (Charlie/SGR) wrote: I think there's still a master switch to disable this in the browsers. So far Firefox 52 has none. Not in the Preferences, and not in about:config either. Hello, about:config

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Michael Van Canneyt
On Thu, 16 Mar 2017, Graeme Geldenhuys wrote: On 2017-03-16 14:45, Karoly Balogh (Charlie/SGR) wrote: I think there's still a master switch to disable this in the browsers. So far Firefox 52 has none. Not in the Preferences, and not in about:config either. But yeah, it is early days, so

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Graeme Geldenhuys
On 2017-03-16 14:45, Karoly Balogh (Charlie/SGR) wrote: > I think there's still a master switch to disable this in the browsers. So far Firefox 52 has none. Not in the Preferences, and not in about:config either. But yeah, it is early days, so hopefully security will tighten up in the near

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Karoly Balogh (Charlie/SGR)
Hi, On Thu, 16 Mar 2017, Graeme Geldenhuys wrote: > And this brings me to my next worry. As far as I understand, WebAssembly > is C (for now - other languages to follow) compiled into WebAssembly > bytecode. So now we have C code with all its pointer access, buffer > overflow issues etc running

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Karoly Balogh (Charlie/SGR)
Hi, On Thu, 16 Mar 2017, Mattias Gaertner wrote: > > which was basically striped down Javascript with some integer/pointer > > type tagging. As far as I know, the main problem with JS from a > > computing point of view, that it handles all numbers as floats for > > "simplicity", but with some

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Graeme Geldenhuys
On 2017-03-16 13:07, Karoly Balogh (Charlie/SGR) wrote: > Yes, but it is important to know there's a difference with Java Applets, > Flash and Silverlight - WebAssembly is not a plugin. It runs in the same > VM which runs everything Javascript in the browser. So the browser vendors > have full

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Mattias Gaertner
On Thu, 16 Mar 2017 14:07:51 +0100 (CET) "Karoly Balogh (Charlie/SGR)" wrote: >[...] > Also, WebAssembly is a descendant of asm.js, Maybe historically. Technically asm.js is higher lvl than webassembly. > which was basically striped > down Javascript with some

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Benjamin Rosseaux
The ECMAScript standard uses 64-bit double-precision floating point numbers, and a double-precision floating point value can represent absolute integer values up to of less than or equal to 2^53, without any loss of accuracy, since an IEEE 754 64 bit double-precision floating point number has a

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Karoly Balogh (Charlie/SGR)
Hi, On Thu, 16 Mar 2017, Graeme Geldenhuys wrote: > I love how they say multiple times in the video: > >"... and completely secure." > > Umm, didn't they say the exact same thing about Java Applets, Flash, > Silverlight etc. :) I guess time will tell, but if history is anything > to go buy,

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Graeme Geldenhuys
On 2017-03-16 10:56, Graeme Geldenhuys wrote: > I’ll be pleasantly surprised if it works - after all, so many browser > features often only work for OSX and Windows, even though the browser > and web is supposed to be “cross-platform”. I’ll report back later. ;-) And I am pleasantly surprised!

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Graeme Geldenhuys
On 2017-03-11 23:23, Daniel Gaspary wrote: > I was reading about the new Firefox making WebAssembly publicly > available ("On Tuesday Firefox 52 became the first browser to support > WebAssembly My system (FreeBSD) is compiling Firefox 52 in the background as we speak. I’m very curious to see

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Graeme Geldenhuys
On 2017-03-15 16:58, Karoly Balogh (Charlie/SGR) wrote: > It's now committed to the webassembly branch in FPC SVN, the compiler > itself should build at least as "wasm" target, but don't expect much. Thanks for the update Charlie. Lets just say you are a brave man in my eyes to tackle something

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Graeme Geldenhuys
On 2017-03-11 23:23, Daniel Gaspary wrote: > WebAssembly > ") I love how they say multiple times in the video: "... and completely secure." Umm, didn't they say the exact

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Lukasz Sokol
To all who received my previous message through mailing list: please disregard. posted without reading thoroughly. apologies. -L. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread Lukasz Sokol
Hi, On 15/03/17 16:58, Karoly Balogh (Charlie/SGR) wrote: > Hi, > > On Sun, 12 Mar 2017, Michael Van Canneyt wrote: > >>> Is there something planned in this matter for FPC? >>> >>> I was reading about the new Firefox making WebAssembly publicly >>> available ("On Tuesday Firefox 52 became the