5 ms·
Remake – GNU Make with comprehensible tracing and a debugger
- db48x 9y agoI've dreamt of both a make debugger and a bash debugger, and here we have someone casually demoing both in the same video.
- SwellJoe 9y agoI noticed the same person has made seemingly very powerful gdb-inspired debuggers for a whole bunch of languages, which is really impressive. I'm not super comfortable with gdb (it's been years since I used it with any regularity), in general, but I'd be willing to invest more time in it knowing the knowledge transfers to other languages.
- linsomniac 9y agoThere are tons of front-ends that interface with gdb, which is part of why so many things use a gdb-like UI. One of the demos on the page is using "ddd" (the Data Display Debugger), which I was pretty impressed with 20 years ago when I last used it.
- rurban 9y agobashdb being the most popular one by Rocky. The others unfortunately never really took off.
- rockybernstein 9y agoYeah, you win a few and lose a lot. I guess it all evens out. Judging by github ratings, the debugger for zsh (zshdb) is more popular than I would have expected. And that means I have had to know more about zsh than I would have otherwise. Like bashdb, zshdb is packaged in Debian/Ubuntu; recently the debian maintainer asked me to update this for more recent zsh releases, which I've done. By the way, I use github ratings to decide which of several projects to work on when there is a choice. remake ratings have shot up quite a bit by this post, so I guess I'll have to beef it up: add a screenshot of profiling and update the older versions of GNU make for more recent changes. My recent focus has been on using decompilation as a means of getting more accurate position information. See https://github.com/rocky/python-uncompyle6/wiki/Deparsing-Paper https://github.com/rocky/python-uncompyle6/wiki/Deparsing-Pa... Sure, I use this in my debuggers, but it would be probably as or more valuable in tracebacks. For example there is a decent decompiler in Perl for example: https://metacpan.org/pod/B::DeparseTree https://metacpan.org/pod/B::DeparseTree . I would love to figure out how to hook into Perl's traceback (not Carp, but the one for Perl) to augment that to give this more accurate position information.
- rurban 9y agoYou are speaking with the Perl expert :) glad to help. Positions are stored in COP's only, you need to get them dynamically via the API. Some blocks do have wrong or bad line ranges, yes.
- rockybernstein 9y agoI know. I am a long-time fan of your Perl work. And I know how to get them dynamically via an API which is done for example in https://metacpan.org/pod/Devel::Trepan::Deparse https://metacpan.org/pod/Devel::Trepan::Deparse What I don't know how to do, if you could help is register in Perl that I want my routine called when Perl hits an error, so that I can do the deparse and spit out a more detailed location message. Thanks!
- linsomniac 9y agoMy mind is trying to reconcile such a seemingly awesome thing being hosted on sourceforge...
- oneplane 9y agoThis had me baffled as well. I wonder what the reason behind it was.
- TeMPOraL 9y agoProbably it being older than Github (or at least older than Github popularity).
- systems 9y agowhat is exactly wrong with sourceforge? apart from the obvious superiority of github and social git services, i think sf is a decent project hosting service
- mcpherrinm 9y agoThis project has been around for many years it seems (eyeballing the commit graph on github, it looks like 2004 or so). It doesn't surprise me if you'd pick Sourceforge in 2004, but they've done enough dodgy stuff that I'd choose something else today. At first, they had a confusing download UI with "DOWNLOAD NOW" advertisements that went to unrelated software. Then, they were wrapping adware into OSS project installers. http://www.theregister.co.uk/2013/11/08/gimp_dumps_sourceforge_over_dodgy_ads_and_installer/ http://www.theregister.co.uk/2013/11/08/gimp_dumps_sourcefor... https://arstechnica.com/information-technology/2015/05/sourceforge-grabs-gimp-for-windows-account-wraps-installer-in-bundle-pushing-adware/ https://arstechnica.com/information-technology/2015/05/sourc...
- agumonkey 9y agoOne guy on twitter told me the new SF parent company has "big plans" so maybe it will evolve in good ways.
- kaushalmodi 9y agoMirror on GitHub by the remake author: https://github.com/rocky/remake/blob/remake-4-2/README.md https://github.com/rocky/remake/blob/remake-4-2/README.md
- Gonzih 9y agosourceforge is a scary place to get your software from
- badsectoracula 9y agoThat was at the past, they got bought by new people last year that removed all the shady stuff and instead replaced them with automatic malware checks [0] from Bitdefender and ESET. IIRC from a Reddit AMA they also have someone looking and flagging for misleading ads (although you get no ads at all if you are logged in). [0] https://sourceforge.net/blog/sourceforge-now-scans-all-projects-for-malware-and-displays-warnings-on-downloads/ https://sourceforge.net/blog/sourceforge-now-scans-all-proje...
- Gonzih 9y agothanks, had no idea about that.
- luckydude 9y agoAnyone have a mirror for the first video introducing? Seems like we've hugged that one to death.
- rockybernstein 9y agoSigh. Showmedo seems to have shut down. I looked on my disk and I don't see a copy of the video. Or the notes I used to make the video. A shame because this was probably the more practical (day-to-day use) of the two. The closest I can find that is like an outline is what I covered in the 2007 talk I gave at UbuntuCon: https://wiki.ubuntu.com/DebuggerTalk https://wiki.ubuntu.com/DebuggerTalk I will contact the showmedo person who asked for the video to see if he can pull off a copy.
- luckydude 9y agoWould the wayback machine have a copy?
- rockybernstein 9y agoYes it does! It took a while however to find. I've now updated the remake wiki to include it. Direct link though is: https://github.com/rocky/remake/wiki/linuxBernsteinMakeDebug1.flv https://github.com/rocky/remake/wiki/linuxBernsteinMakeDebug...
- luckydude 9y agoAwesome, gotta pick up my kid from school but I'll check it out when I get back. It sure sounds like interesting work.