justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]

Question: www.grimes.demon.co.uk/dotnet/man_unman.htm Ever consider switching to managed?
Asked by Jane (68.96.249.x) on October 2 2010, 12:27pm
Reply on October 3 2010, 5:45pm:
    No. That page makes a lot of assumptions that are incorrect as well -- sure, you can benchmark code and get similar results, but that's a very synthetic test, and the real world does not necessarily work that way. Having said that, I'm sure it's possible to write stuff managed that isn't much less efficient, but I have little interest in that.
Comment...
Question: If you didn't do Reaper, what would u b working on?
Asked by manGaga (68.203.3.x) on October 2 2010, 11:20am
Reply on October 3 2010, 5:45pm:
    No idea. Today I've been learning perl and writing some git additions...
Comment...
Question: Why, do you think, no one has touched AVS in terms of visual quality? iTunes vis sucks.
Asked by Will (24.234.128.x) on October 2 2010, 8:56am
Reply on October 3 2010, 5:45pm:
    Maybe no incentive? Most people are happy enough with simple stuff. Milkdrop is pretty rad too, though.
Comment...
Question: Are you interested in AI? Have you done any work in this area?
Asked by _gio (62.103.65.x) on October 1 2010, 11:20pm
Reply on October 1 2010, 11:23pm:
    Not really, and not really. I've done a little bit of neural network stuff, which is very cool (i.e. watching a program randomly build FIR filters to meet criteria), but I haven't seen it be useful for my stuff.
Comment...
Question: I see that you use VC6 for programming reaper. How do you build it for OS X also?
Asked by RicoSuave (97.65.238.x) on October 1 2010, 7:54am
Reply on October 1 2010, 11:25pm:
    Our code compiles in VC6, VC2005, Xcode (all optionally with ICC), and also with normal linux gcc 4.x... I use VC6 most as a code editor, though. Our releases use VC6+ICC for Win32, VC2005+ICC for x64, and Xcode+ICC for OSX/intel, and XCode+gcc for OSX/ppc.
Comment...
Question: Do you recommend using LGPL library in a commerical project?
Asked by poop (75.119.11.x) on September 30 2010, 9:30pm
Reply on October 1 2010, 11:25pm:
    No harm in it as long as you're prepared to provide the source for it and make it clear where to get that, IMO...
Comment...
Question: I find it interesting how you went from winamp to reaper What was ur process before even writing code 4 it? were u intimidated ?
Asked by AnalSecuerRX (76.220.32.x) on September 30 2010, 8:20pm
Reply on October 1 2010, 11:25pm:
    Just random, really...
Comment...
Question: what is 'justins' remedy for when your burnt out from coding and caffeine aint doing the trick no mo :( shit the matrix has me!
Asked by AnalSeduceR&R (76.220.32.x) on September 30 2010, 3:38pm
Reply on September 30 2010, 7:37pm:
    maybe some cocktails and rest?
Comment...
Question: What is your browser of choice these days? Linux distro?
Asked by Will (24.234.128.x) on September 30 2010, 12:00pm
Reply on September 30 2010, 7:38pm:
    Firefox, and Ubuntu.
Comment...
Question: After completing reaper, how long did it take to get people using it? How did they find out about it? Did you advertise?
Asked by AnalSeducer (76.220.32.x) on September 29 2010, 8:58pm
Reply on September 30 2010, 7:38pm:
    Completing isn't really accurate, it's never done. People gradually started playing with it and giving feedback.. it grew organically, people found out about it via their friends, etc, mostly.
Comment...
Question: Could you explain at a high level how C code can call run-time created machine code? How do you set that up programtically?
Asked by Will (24.234.128.x) on September 28 2010, 11:35am
Reply on September 28 2010, 6:29pm:
    You can see how EEL2 does this, but I'll give a basic explanation here:

    First off, this is highly dependent on architecture, compiler, OS, etc. Generally, though, this is the process:
    1. Generate the code you wish to run. This can be done by writing the opcodes to a buffer, or by combining stubs of code (Using nasm can be helpful, otherwise you can use __declspec(naked) on MSVC and use inline assembly, or you can use gcc and inline assembly and strip out the compiler generated code, etc).
    2. Mark the pages of code as executable, using VirtualProtect() on win32 or (from memory, I think it is) mprotect on posix.
    3. Execute the code -- you can do this using inline assembly or an assembly stub function, and it would essentially do: "mov eax, address ; call eax". or similar.
    4. Watch things explode! Your code will likely need to save registers, align the stack, etc. The devil is often in the details.
Comment...
Question: Cockos rocks but that might not be enough; so are there any open source projects that you recommend for source code reading?
Asked by _gio (62.103.65.x) on September 26 2010, 1:19am
Reply on September 27 2010, 12:31pm:
    I've enjoyed doing some git hacking, but generally I'd say look at the source to stuff you like to use.
Comment...
Question: Can you elaborate on your statement: "My Windows programming until maybe 2002 was pretty awful. Now it's just a little awful".
Asked by Chuck (150.101.96.x) on September 25 2010, 4:29pm
Reply on September 27 2010, 12:34pm:
    Yeah, the Windows code I wrote back in the day was ugly and often broken or wrong. Code I write now probably is too, to a lesser extent. Example: recently it came to my attention that DM_GETDEFID was the same as WM_USER; so if you use WM_USER for some purpose on a dialog, you might get surprises).

    Having said that, Win32 is pretty forgiving, too, allowing for broken software to run (mostly) successfully.
Comment...
Question: Does this make you happy? yro.slashdot.org/story/10/09/24/2059221/Most-Software-Patent-Tro...
Asked by roberttheiii (71.234.18.x) on September 24 2010, 3:03pm
Reply on September 25 2010, 3:14pm:
    It could be worse sure, but no, that doesn't make me particularly happy. It still means people often have to put up a ton of cash to defend cases.
Comment...
Question: Times must be tight for fluffers these days, do you still keep up with your former female co-workers?
Asked by James (68.225.40.x) on September 24 2010, 12:39pm
Reply on September 25 2010, 3:15pm:
    I'm not sure if I have any transgender co-workers, if that's what you mean... OK I know it's not.
Comment...
Question: Have you ever tried any BlackBerry phones? What do you think about BlackBerry?
Asked by Dave (117.136.25.x) on September 24 2010, 7:58am
Reply on September 24 2010, 10:51am:
    I've played with other people's, but never had one as my own.
Comment...
Question: Regarding EEL and the compiled code system, did you cross compare with interpreted system? Performance gains realized?
Asked by Will (24.234.128.x) on September 23 2010, 2:23pm
Reply on September 23 2010, 3:46pm:
    I haven't done any real comparisons since we first made EEL for AVS. These days, with things like Lua, I have no idea. I can't imagine any interpreted language being even close to as fast, though.
Comment...
Question: Any general tips on implementing undo in an application? (something I'm struggling with)
Asked by schmoe (96.55.149.x) on September 22 2010, 5:15pm
Reply on September 22 2010, 10:38pm:
    Well, generally, I would make it so your application can serialize its state (either as text, binary data in memory, or file, etc). Once that is supported (presumably load/save of file would use this), you could also use it for undo/redo, keeping a list of states and creating new state points on user actions.

    If you want to optimize memory use, you could also reduce duplicate blocks of memory, of course this adds complexity and possibility of mistakes being made.
Comment...
Question: You said you learned win32 as you wrote winamp. Did you read petzold? How'd you get started learning win32 for the project?
Asked by Will (24.234.128.x) on September 22 2010, 3:43pm
Reply on September 22 2010, 10:39pm (edited at September 22 2010, 10:40pm):
    I did read some of Petzold's book (Programming Windows 95, I believe), but didn't much mesh with the style of programming. My Windows programming until maybe 2002 was pretty awful. Now it's just a little awful.

    There was a lot of experimenting, and I didn't use version control back in the day, so things were a bit chaotic.

    What was funny, though, is at some point Winamp because ubiquitous enough that audio hardware driver makers would use Winamp to test with, so it was widely supported (even though it wasn't necessarily "correct" to begin with). Heh.
Comment...
Question: who/what inspired you make signal processing studio and then jesusonic the way it is?
Asked by _gio (62.103.65.x) on September 22 2010, 1:44pm
Reply on September 22 2010, 10:41pm:
    Well, it was a logical extension of AVS for audio, and it used the same basic compiled code system (EEL). Christophe and I wanted programmable FX in pedal form for guitar playing...
Comment...
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]
Copyright 2025 Justin Frankel. | RSS