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 11:39:47 AM UTC+2, raxim wrote:
>
> I have got a chance to look at emscripten, and my question is. Is it 
> making an unreadable javascript code?
>
> For example the ffmpeg project is very unreadable in C++, lots of hacks 
> bugs all over the places.
> If it can be converted to for example javascript, you can easily fix 
> issues, and after some time you can convert it back.
>
> The other thing is, the ffmpeg and the codec part would be very good to 
> learn to for example create better algorithm.
> If you can show people the code in javascript on the web, than it would be 
> much more easier to figure out better things.
>
> Most of the C/C++ code is too complex, and you just waste your time 
> fiddling around.
>
> Ffmeg is the project which has got decades of pain, but it would be very 
> good to clean it.
>
> Any idea how to make readable javascript code with emscrypten?
>

-- 
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