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: is there a chance to see lice with hardware acceleration or it will not make such a difference? I searched, cool... ;)
Asked by gio (62.103.65.x) on August 21 2011, 9:23pm
Reply on August 22 2011, 1:24am:
    I don't think that the advantages would be significant enough to make up for the additional complexity.. unless all of the drawing (including text glyphs, etc) could be done accelerated; otherwise you end up copying data back and forth to the GPU, which isn't ideal.
Comment...
Question: What's your opinion about Objective-C design over C++ (or C)? Like/dislike?
Asked by Rodrigo (177.16.144.x) on August 19 2011, 11:23pm
Reply on August 21 2011, 2:35pm:
    I'm not a huge fan of the wordy syntax, or the runtime requirements, but objective C does have some nice points. I prefer minimalist C++, though. Templates are awesome, too.
Comment...
Question: do you think being lazy is a good developer trait?
Asked by Stench (68.28.147.x) on August 19 2011, 1:30pm
Reply on August 21 2011, 2:36pm:
    I know I've said that before, but it's not exactly that.. I guess it is the willingness to think things through before starting that is of value. Also if you do wait a few years to start a project you do benefit from faster computers, more RAM, etc...
Comment...
Question: Have you seen the web audio API? Ever think about writing some in-browser audio apps?
Asked by Matt (68.173.75.x) on August 19 2011, 12:14pm
Reply on August 21 2011, 2:36pm:
    I haven't, and I haven't.
Comment...
Question: Does Cockos have an office or does everyone work from home?
Asked by John (69.15.110.x) on August 19 2011, 9:48am
Reply on August 21 2011, 2:36pm:
    We have offices and we work from home.
Comment...
Question: Hi Justin. Lots of professional/amatuer composers on the Reaper forums. Any chance of getting a composition subforum?
Asked by Eyes (114.73.39.x) on August 19 2011, 8:53am
Reply on August 21 2011, 2:36pm:
    Interesting.
Comment...
Question: Does over-engineered OOP solutions piss you off?
Asked by Will (24.234.128.x) on August 17 2011, 6:04pm
Reply on August 18 2011, 7:49pm:
    Piss me off? No. Annoy me into avoiding that code? Yes.
Comment...
Question: You should tell this Martin guy that REAPER has a forum, where he can post such things.
Asked by Charlie (161.148.171.x) on August 17 2011, 4:31pm
Reply on August 18 2011, 7:49pm:
    True indeed.
Comment...
Question: Any new plugins planned for R4? The selection of plugins is seriously limited to mixing/mastering. Nothing fun for musicians
Asked by Bharath (59.92.128.x) on August 16 2011, 10:45pm
Reply on August 18 2011, 7:49pm:
    This belongs on the forums, but nothing specific planned at the moment.
Comment...
Question: Do you plan to implement a "search" option for askjf.com? It would be useful.
Asked by Stench (67.88.171.x) on August 16 2011, 8:30pm
Reply on August 18 2011, 7:49pm:
    Will do soon.
Comment...
Question: What do you use generate the 2048 bits for your asymmetrical encryption (rsa)? How do you generate large prime numbers?
Asked by Stench (67.88.171.x) on August 16 2011, 2:01pm
Reply on August 16 2011, 4:57pm:
    libtomcrypt has some good examples.
Comment...
Question: i'm still stuck with swell's interface to NSMenus. How can i disable an item in the 1st menu? E.g. About MyApp? thx
Asked by olilarkin (80.2.114.x) on August 16 2011, 7:33am
Reply on August 18 2011, 7:50pm:
    Might be easiest to have some objective C code that casts HMENU to NSMenu and operates on them directly..
Comment...
Question: The C++ exception handling is known for adding a lot of overhead to the generated code. Do you use C++ exception handling?
Asked by Rodrigo (200.146.126.x) on August 16 2011, 12:16am
Reply on August 16 2011, 2:45am:
    I'm not totally sure what the real overhead to generated code is.. I know it does add some size to most functions. I don't much like the exception model, honestly, it raises too many questions about what happens in various cases. I like to keep it lower level.
Comment...
Question: Will we finally see freeze in reaper 4.x? :)
Asked by Martin (93.136.238.x) on August 15 2011, 8:02pm
Reply on August 16 2011, 2:45am:
    Render stems is getting a lot faster in 4.02.
Comment...
Question: Would it be possible to create a burn dialog for DDP in Reaper?
Asked by Wyatt (76.3.251.x) on August 15 2011, 2:37pm
Reply on August 16 2011, 2:45am:
    Possibly, Sergej, the guy who has done the DDP work, has a lot of stuff we need to integrate.
Comment...
Question: How did you learn certain ways of writing code are faster than others (code gen question below)
Asked by John (70.173.150.x) on August 14 2011, 7:58pm
Reply on August 14 2011, 8:22pm:
    You can theorize about what a compiler will do, but nothing quite beats using g++ -O -S (or cl.exe /Fafile.asm) and looking at the generated assembler output, which shows you the exact code being generated.
Comment...
Question: Probably a WT question: What's the font for "Digital Audio Workstation" @ reaper.fm/siteimages/logo4.jpg
Asked by gio (62.103.65.x) on August 14 2011, 11:33am
Reply on August 21 2011, 2:58pm:
    I should ask him.
Comment...
Question: What helps you most when you're stuck on a coding problem and getting nowhere?
Asked by schmoe (96.55.149.x) on August 14 2011, 1:28am
Reply on August 14 2011, 8:22pm:
    Doing other things and coming back to it. 'git stash' is hugely awesome for this.
Comment...
Question: Do you use to return objects from functions? Is there anything wrong with this practice? Example: pastebin.com/x1SB2bZ6
Asked by Rodrigo (189.26.130.x) on August 13 2011, 12:33pm
Reply on August 13 2011, 5:22pm (edited at August 13 2011, 7:51pm):
    I don't usually return structs, just out of habit, since at one point in my life it wasn't always possible.

    As far as performance/code generation go goes, assuming the structure type is simple (and doesn't have copy constructors, destructors, etc), it appears that they should compile to very close to the same code. Note that the form of:
      RECT r = someFunc(); // or: RECT r; someFunc2(&r);
      printf("%d %d",r.left,r.top);
    
    is often faster / smaller than:
      printf("%d %d",someFunc().left,someFunc().top);
    
    ...due to the fact that the compiler might call the code in someFunc twice, unless it is a trivially inlineable function that does change any state... that style is relying more on the compiler.
Comment...
Question: What video games are you playing your free time?
Asked by gio (62.103.65.x) on August 13 2011, 10:52am
Reply on August 13 2011, 5:23pm:
    Mostly RE5 mercenaries mode, at this point. PS3, split screen.
Comment...
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]
Copyright 2025 Justin Frankel. | RSS