News for hackers. Stuff that matters.
Re:Chez Scheme is now free by piyush_soni on Tuesday April 26, 2016 @04:17PM (#11575247)
I newly joined this company, and they have 20 years old codebase which is mix of C and Scheme code. The only way they debug the massive Scheme part is using print statements. And I only have bad things to say about that. :( If there's a better way all of them have been missing, I'd love to hear that. I've learned that they have adapted the MIT Scheme implementation to add Object Oriented features, and it "kind of" works like an object oriented language, except when it doesn't - which happens a lot. It's a mess.
Re:Chez Scheme is now free by NotRustAgain on Tuesday April 26, 2016 @08:24PM (#11576946)
Pretty much every 20 year old codebase is a mix of terrible stuff. The exceptions are rare and usually involve a strong handed dictator who is willing to make cleanups from time to time.

You're lucky it isn't Fortran and a homegrown (crappy) macro language.... You can't fairly judge Scheme or C from a legacy codebase unless you judge every other language that way too.

Re:Chez Scheme is now free by piyush_soni on Wednesday April 27, 2016 @02:01AM (#11578122)
I'm judging only from its debugging capabilities - and it looks like even now there's no (open to all) way to do that. Compared to that, C even if that's 20 years old code too, has some great debugging tools for it.
Re:Chez Scheme is now free by sklogic on Wednesday April 27, 2016 @06:51AM (#11579276)
> The only way they debug the massive Scheme part is using print statements.

Why would you need anything else for debugging?!?

Re:Chez Scheme is now free by piyush_soni on Wednesday April 27, 2016 @10:27AM (#11580693)
See I'm so naive I don't even know if this is sarcasm. :/
Re:Chez Scheme is now free by sklogic on Wednesday April 27, 2016 @10:29AM (#11580718)
I'm 100% serious. Interactive debugging is hugely overrated. I am not aware of a debugging technique better than logging + contracts + asserts.
Re:Chez Scheme is now free by piyush_soni on Wednesday April 27, 2016 @11:28AM (#11581243)
For one, that forces you to change the code and recompile all the time. And some projects have huge recompile times.
Re:Chez Scheme is now free by sklogic on Wednesday April 27, 2016 @11:47AM (#11581473)
And compiling in a debug mode also results in huge recompile times. Is it such a problem?

There is no big difference between building with contracts and logs on (log level is selected dynamically, no need to recompile) and building with debug symbols/suppressed optimisations.