I thought the manual debugging and -g options makes some sort of readable 
code.

As my aim was not not create and code codecs in javascript, just fix source 
code in javascript which can be tracked back to the original c++ code and 
c++ source code can be automatically modified according to that, human 
readability might be issue in restricted way.

I don't want to replace any c++, but if the development can be speed up 
with a fancy layer it would be a big deal, as you might be 90% confident 
what you change in javascript can work under c++. The big benefit here 
would be to be able track issues with chrome profiler and debugger, and fix.

There are plenty of project where the development can be improved 
dramatically with this technic.

That's a certain need i think, even the c++ statically typed language or 
not. Some set of rules needs to be implemented, reading about asm.js,
but it can be improved in a certain way to reach the goal. (I'm not saying 
that it needs to be achieved as it is, it can be achieved with tricks, 
workable solutions in a present ecosystem also) Let's think about it.:)

On Sunday, August 13, 2017 at 12:15:14 PM UTC+2, Shlomi Fish wrote:
>
> Hi Peter, 
>
> On Sun, 13 Aug 2017 02:39:46 -0700 (PDT) 
> Peter Szabo <[email protected] <javascript:>> wrote: 
>
> > I have got a chance to look at emscripten, and my question is. Is it 
> making 
> > an unreadable javascript code? 
> > 
>
> emscripten compiles the C, C++, etc. code first to LLVM bitcode and then 
> compiles that to either asm.js or WebAssembly which are client-side ways 
> to 
> encode machine-like code which are: 1. Not idiomatic JS. 2. Aim to be 
> executed 
> quickly. 3. Are not too human-programmer friendly. 
>
> > For example the ffmpeg project is very unreadable in C++, lots of hacks 
> > bugs all over the places. 
>
> Then emscripten won't make it into more readable JS code. 
>
> Regards, 
>
>         Shlomi Fish 
>
> -- 
> ----------------------------------------------------------------- 
> Shlomi Fish       http://www.shlomifish.org/ 
> Humanity - Parody of Modern Life - http://shlom.in/humanity 
>
> What is is. Perceive It. Integrate it. Act on it. Idealize it. 
>     — Leonard Peikoff 
>
> Please reply to list if it's a mailing list post - http://shlom.in/reply 
> . 
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to