Mangle symbol for JS #736
juancarlospaco
started this conversation in
Ideas
Replies: 1 comment
-
|
Not a good idea ?. 😅 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering if
jsgen.nimmust have the "id" as the mangle for some mandatory reason ?.Because I was wondering if it can have a custom mangling only for JS,
that still random enough so it does not collide but is more human readable,
because the JS source is more frequently looked at then the C and C++ ones.
Right now
jsgen.nimuses something like:My idea and implementation:
So given
foois a symbol, now it generates something likefoo_3315506830,I was wondering if it can use something like
foo_cat420, orfoo_cat420dog, orfoo_123bee531?,this
420can be part of the "id" as it is currently, but using 3 char short words makes it more human readable.@timotheecour
Beta Was this translation helpful? Give feedback.
All reactions