Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-other / 2017-03

Re: WebAssembly Target

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
Show quoted text 7 lines
[...] > JS uses Double, which can express integers correctly from > -$10000000000000 to $fffffffffffff. > That should be enough for most browser programs, don't you think? No, to be honest, I don't think so. I already tracked down bugs in native client side software caused by this, because of stupid NodeJS backends.

May I ask, what you used to translate your int64 code to NodeJS?

Because someone thought it will be "good enough". It wasn't. Not to mention the cases I got "NaN" string as value in an integer field, but that's just JS in general for fun.

I agree, that the NaN, Infinity and div by zero specials of JS are for a Pascal programmer hard to befriend.

Although NodeJS wasn't running in the browser, admittedly. But I think the more complex apps you bring to the web, on top of JS, the more such issues will appear,

True.

and the harder it will be to track it down.

Why?

Show quoted text 5 lines
Bottom line: It's not good enough if you want to guarantee the same results as on other platforms, for all integer arithmetics with all standard types, including 64bit ones. Which is a must for any self respecting multiplatform compiler, IMO. (There are ways to do it nevertheless even w/o WebAssembly, but with a clear performance hit.)

You can calculate wrong with int64 as well. That's why FPC has the nice range checking feature. Same can be done for other integer types, including the JS int53bit.

Mattias

Reply by email

Unknown author
Graeme Geldenhuys wrote 15 lines
On 2017-03-11 23:23, Daniel Gaspary wrote: > WebAssembly > <https://www.bleepingcomputer.com/news/software/mozilla-releases-firefox-52-the-first-browser-to-support-webassembly/>") 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, security issues *will* pop up. Saying all that, I really respect Mozilla for what they have done regarding the web. Firefox is the only browser I ever use.

There is no such thing as completely secure.

Most security these days is held together by a single 8-12 character string of text. That's not security.

And, those obsessed with security (OpenBSD types) are the biggest hypocrites of all, claiming to value privacy and security, while completely ignoring security and privacy of people - stalking them and harassing them.

Security is a joke. Let's hold together all our data by a 8-12 character string! Yippee! That's security!
Security always has been a joke and always will be. You could create a system where it requires 3562 passwords to log in, in sequence, but then it would take too long to log in.

Website security is to use static html files and a static site generator. Which renders your website basically utterly castrated and un-interactive for the users. Think: no web forum, as there are no logins.. just a static site with static html content. That's security for you: rendering computers utterly useless and boring. Basically describes the openbsd operating by default: a castrated OS that does nothing useful, until you install something unsecure (or worse, "insecure") from "ports" or some website.

I'm not saying the attempts at trying to solve security weren't (or aren't) worthwhile - anyone who heads down this road of security is a brave soul. It's just that time after time again, security has been and will always be a bad joke.

Then you've got the whole quantum computer issue. First guy to get ahold of a quantum computer may be able to crack passwords in a few milliseconds which a classic computer would take thousands of years to do, if the quantum computer hype holds up and we actually understand quantum mechanics the way we think we do. And then, what happens to bitcoin if someone cracks it and starts hording up millions of bitcoins across several accounts.

Reply by email

Unknown author
Graeme Geldenhuys wrote 10 lines
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 future.

As soon as you start securing your system down and disabling things to make it secure, your system is rendered useless, or castrated..

I have a fantasy of buying a cabin, and running my cabin off solar panels or some clever nuclear technology and never connecting to the internet again (buying a copy of the current internet from archive.org) and running my own super secure network in this cabin in the middle of nowhere. What is the security system I will enable? Not connecting to any network nor having a cell phone, or internet connection. i.e. unplugged. With a local copy of the 2016 internet on hands.... an archived copy... And just going from there.

That's security at it's best: isolating yourself so that your cabin is completely unconnected to anything. But there could be a security breach in quantum mechanics where some guy hacks the universe itself and is able to connect to your by wirelessly sending signals into your cabin which affect your brain waves.

Put this on the science fiction book to write todo list: but it's not fiction.

Reply by email

Graeme Geldenhuys
to Unknown author
With a local copy of the 2016 internet on hands....

hahaha.... That just made me remember circa 1994. I worked as a computer technician. An oldish lady walked into the shop and handed me a box of 720KB floppies - asking if I could give her a copy of The Internet. :-D

Regards,
Graeme

Reply by email

Lukasz Sokol
to Graeme Geldenhuys
Graeme Geldenhuys wrote 9 lines
On 2017-03-16 20:48, wrote: > With a local copy of the 2016 internet on hands.... hahaha.... That just made me remember circa 1994. I worked as a computer technician. An oldish lady walked into the shop and handed me a box of 720KB floppies - asking if I could give her a copy of The Internet. :-D Regards, Graeme

Also from about that time, a joke about someone dragging Internet to the Recycle Bin, in Windows 95 ;) causing entire pages to disappear and their internet cable (sic) to start glowing red ;)

those were the days ;)

-L.

Reply by email