Page 1 of 1

I know...Get A Life! Lines of Code in DP?

Posted: Thu May 18, 2017 3:31 pm
by buzzsmith
Just curious...

My DP 9.01 is showing a size of 305 megs.

I just wonder how many lines of code that might contain?

Inquiring minds...

Buzzy


Sent from my iPad using Tapatalk

Re: I know...Get A Life! Lines of Code in DP?

Posted: Thu May 18, 2017 7:39 pm
by FMiguelez
I'd pay money just to glance at parts of the DP code, just out of curiosity.

It must be mind-bogglingly complex... Can you imagine? Just keeping all the parts organised in libraries must be quite a challenge.

I suppose it's written in C++? It would be nice if one of the MOTU programmers came here to chat with us about this. I've been doing some reading on DSP lately, and it's fascinating :)

http://www.dspguide.com/pdfbook.htm

I think we need to get lives, Buzzy :lol:

Re: I know...Get A Life! Lines of Code in DP?

Posted: Thu May 18, 2017 11:31 pm
by mhschmieder
DSP is way harder than analog. We're on our third generation of DSP concepts now, and it's easier this time around than the last time, as we finally went to 64-bit integer math. It simplifies stuff like headroom, noise suppression, etc. I think MOTU made this switch a few years ago already.

Counting lines of code is a meaningless task. Well-architected code shrinks (re-factoring) and grows (new features) at the same time. Microsoft code just gets bigger, due to lack of architecture, or poor design (I've seen quite a bit of it over the years).

I'm far more curious about how MOTU tackled the multi-platform problem. They have a large workforce so can afford to do separate code bases, but I wonder if they did.

Companies that barely have any software engineers, like mine, are forced out of pragmatism into using Qt/C++ and JavaFX/Java, sometimes Nue and other cross-platform toolkits (even JavaScript). They're getting better, but it remains the case that to do truly compliant stuff you kind of have to develop directly for the platform -- perhaps using Xcode and Apple's recommended languages.

One cue as to how much native code or native tools are involved, is to look at the file choosers in an app. Adobe has what appear to be proprietary plug-ins near the bottom of theirs, that I have found no way to access programmatically and yet do not think they are Adobe-specific. Either Apple shares some stuff with them that they don't with others, or doing Xcode-based development with Apple/Mac-specific tools/languages provides more features than merely wrapping native code.

Re: I know...Get A Life! Lines of Code in DP?

Posted: Fri May 19, 2017 8:39 am
by bayswater
Most of that probably does not come from compiled lines of code. There are a lot of image files and other data used by DP. The exec file is less than 40 meg.

Re: I know...Get A Life! Lines of Code in DP?

Posted: Sat May 20, 2017 2:30 am
by mhschmieder
That's actually somewhat small, which likely means they don't use much, if any, third-party code, as such libraries tend to contribute more to compiled code size than local application code does.

Of course, if they're depending mostly on installed libraries vs. dynamic or static linked libraries, due to be highly native in writing style, that would also explain the somewhat small executable style.