Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hashed Kind #155

Open
ncannasse opened this issue Mar 27, 2024 · 2 comments
Open

Hashed Kind #155

ncannasse opened this issue Mar 27, 2024 · 2 comments

Comments

@ncannasse
Copy link
Owner

In order to speedup performances at runtime, we could use either represent kind id that is currently a String as an hashed id or an index based id to perform kind-kind comparison (in switch/case XXX or inf.id == XXX). But then the debugger would only display the hashed id instead of the actual identifier, which would be make everything more complicated to debug.

In order to fix this we would need to be able to tag specific ints in the HL debugger (same as we are planning for EnumFlags, but using an abstract such has hl.HashedIdent) and be able to reverse the hash based on the cache from the VM. Ping @yuxiaomao

@yuxiaomao
Copy link

For now, we can imagine some handling similar to CDB Enum type (based on index), like this : vshaxe/hashlink-debugger@868f79f
However, the display hint must be set manually in the watch section for each variable

@ncannasse
Copy link
Owner Author

Yes but in the case of CDB ids we really need them to be working without any manual hint :'(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants