Hacker News new | ask | show | jobs
by loeg 1281 days ago
> This is a rather strange thing to bolt onto a language.

It can just be an extremely fun and cute demo, without practical application.

2 comments

It can also be something that looks cool and doesn't necessarily ever get past "kinda works", but piques the interest of the core dev team and they take steps to make it work even better, resulting in the ultimate "deprecation" of this sort of thing by virtue of it being even better integrated into the core.

I don't have the context to judge the probability of that in this specific case (lots of technical nitty-gritty comes in to this sort of thing), but I've certainly seen similar things happen in other communities.

how about adding this to debuggers for better object-views? (could it be possible to provide near-js/python/java level of obj view?)
Thus is already using DWARF debug infos. Using this for debugging would be a long way around to arrive where you started

You can already script gdb to provide rich views of any data structure.

DWARF is a standard for data to support debuggers, so this crate does effectively the opposite: it uses info normally only available during debugging to provide reflection.