Newsgroups: comp.arch Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!kithrup.com!mrs From: mrs@kithrup.com (Mike Stump) Subject: Re: The freedom that give us C++ and C Message-ID: Date: Mon, 18 Jan 2016 13:06:29 GMT References: <1cf0a601-3d4c-4123-94ff-3542e9de04ff@googlegroups.com> <88a3bbe1-c27b-4142-af1b-078779da5e8e@googlegroups.com> Organization: Kithrup Enterprises, Ld. X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Lines: 39 X-Received-Bytes: 2484 X-Received-Body-CRC: 4139475602 Xref: csiph.com comp.arch:32845 In article <88a3bbe1-c27b-4142-af1b-078779da5e8e@googlegroups.com>, Öö Tiib wrote: >The UNIX emulator is awesome No. That isn't what that is. It is a native to your platform linux binary running directly on your CPU. It is more like you inserted a normal linux CDROM, spun up a VM for it and booted it. Imagine that you ran your web broswer on x86_64 linux. And memcpy was 20 machine instructions. In the linux distribution you just booted, there is a memcpy, and though it might not be exactly 20 machine instructions, it would be some epsilon off that in x86_64 assembly code which was the output from a compiler. In 2013, one post said 2x. As time goes on, it should asymptotically approach 0% slower. I saw another post that said 1.5x. It truely is an odd sort of thing, and a new sort of thing. They do this so that they can have large code bases like an entire game run off the web and run fast. In time, I'd hope it could get within 30%. I don't know if they can get it to 10% in the next 20 years, but, maybe. Anyway, at even 100% slowdown, I still find it compelling. http://arstechnica.com/information-technology/2013/05/native-level-performance-on-the-web-a-brief-examination-of-asm-js/3/ has some very old and hopefully outdated results. Some of those seem to be only 10-20% off. >but emulator wasn't entirely what I meant. No emulator. >We have UNIXes all around ... soon in every thermostat and flat >iron. That is fine for work but normal people consider us dinosaurs >when we play with our odd consoles. But, it isn't that it is unix. It is any compiled code works from any language. And you can appear what ever graphic content you want, including visually stunning cutting edge 3d graphics at almost full native speed in a target independent way. The limitations are only what is or can be programmed.