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: Ah, it was just a rounding error so I thought you use something fancy (as it seems you do for drawing white piano keys to align then with note row every 4th/3rd key). I was doing this: value = (int)(mouse/laneH * 127) when I should have used this: value = (int)(128/laneHeight * mouse). OCD is a nasty thing, but it's for greater good (trying to let ReaScripters know where the mouse is :) Mandatory question: did you ever try replacing coffee with black tea? It's definitely much more healthier alternative!
Asked by Martin (78.0.233.x) on April 7 2014, 12:14am
Reply on April 7 2014, 12:58am (edited at April 7 2014, 1:03am):
    What's wrong with coffee? Also, I don't like to describe foodstuffs as "healthy" or "unhealthy" because I think it is misleading. I might be healthy or unhealthy, but that piece of pepperoni pizza is just a bunch of nutrients and other stuff, which may or may not be ideal for various parts of my digestive system, but to characterize it as "healthy" or "unhealthy", or compare ("healthier than", "less healthy than") is a mistake. Anyway :)
Comment...
Question: Do you think this is good or bad? bluedesk.blogspot.com.br/2014/03/a-simple-alternative-to-c-excep...
Asked by Rodrigo (177.16.151.x) on April 5 2014, 6:25pm
Reply on April 5 2014, 7:51pm:
    Looks like someone is overthinking it to me. I don't like C++ exceptions, either.
Comment...
Question: Let's say I have CC lane height. How would I calculate value at certain pixel? It seems it's somehow related to horizontal lines. Could you please help me not to go mad from reverse engineering all those pixels and share the formula? :)
Asked by Martin (78.0.208.x) on April 4 2014, 7:17pm
Reply on April 5 2014, 7:53pm:
    Not sure I understand the question, but the CCs are generally drawn linearly (if the CC has 128 steps and the CC lane is 128 pixels high, 1px=1 step, etc). It's unclear whether you want the CC value associated with a y-coordinate, or to query the value at a particular x-coordinate...
Comment...
Question: Thoughts on Hack/HVVM? Maybe they looked at EEL for inspiration? :)
Asked by Will (24.234.85.x) on April 2 2014, 11:26pm
Reply on April 3 2014, 3:38pm:
    Looks neat, doubtful on the EEL-influence though.
Comment...
Question: What do you feel in your heart every time marketing material includes "the cloud" ?
Asked by Will (24.234.85.x) on April 2 2014, 6:43pm
Reply on April 3 2014, 3:39pm:
    Heh I don't think much about marketing material, but I love EC2.
Comment...
Question: VS6 forever, VB6 specificly. Mine is 64bit on XP+SP2 and the threads work. Paul Allen is fired, I'll make her recompile VB6 for me. K, my VS2013 question... I want?
Asked by Nick Forystek (173.31.164.x) on April 2 2014, 1:53am
Reply on April 3 2014, 3:39pm:
    I like VS2013 for C++ development, can't say much about VB.
Comment...
Question: Thoughts on Aaron Swartz?
Asked by Will (68.104.121.x) on March 30 2014, 8:36pm
Reply on March 31 2014, 3:18pm:
    It's tragic. Having people in positions of authority taking things too seriously and going on the warpath is bad times.
Comment...
Question: Have you had any good laugh lately? o_0
Asked by gio (94.66.86.x) on March 30 2014, 4:30pm
Reply on March 30 2014, 7:51pm:
    The Louis CK opening monologue for SNL was pretty good.
Comment...
Question: channel9.msdn.com/Shows/Going+Deep/Expert-to-Expert-Erik-Meijer-... 51:55 Lars Bak (author of v8) discusses your concern of multithreading in js.
Asked by Will (68.104.121.x) on March 29 2014, 5:58am
Reply on March 29 2014, 2:50pm:
    Yeah, they're saying you could have completely separate VMs that pass messages back and forth, which can be very useful but is also no substitute for real threads. My point is that for simple apps the web stack is getting there, but for intensive media applications, it has a long and unclear road ahead.
Comment...
Question: I can't let VC6 go too, it's got that something special. but for the argument sake: have you tried in VC13 /LTCG:PGO and /favor:xxx? I don't like the idea of cpu dispatching in ICC but to be fair i'm using an AMD cpu and never had performance related problems w/ R. I remember clearly the days you made the switch and everything turned lightning fast immediate
Asked by gio (94.66.76.x) on March 26 2014, 9:46pm
Reply on March 26 2014, 9:55pm:
    I haven't tried profile-guided optimizations, it'd be tough to decide what to run for testing, would want to come up with a bunch of test projects perhaps...

    Re: ICC performance: actually, from my initial tests, VC2013 vs VC6+ICC actually was pretty comparable on a Ivy Bridge i7. On a c2d though VC6+ICC was significantly faster. Unsure of how it would look on an AMD chip, but I'd guess that the VC6+ICC build would at least be comparable to the VC2013 build.
Comment...
Question: VC2013 barfs but VC6 does not? Could you list 2 or 3 things VC6 supports properly which VC2013 does not?
Asked by Will (24.234.85.x) on March 26 2014, 4:56pm
Reply on March 26 2014, 7:05pm:
    The latest ICC on VC2013 was barfing on some code. Normal VC2013 is fine (but VC6+ICC produces faster code in general than VC2013 w/o ICC).
Comment...
Question: Is this you? www.theverge.com/2014/3/25/5547628/oculus-investor-says-facebook...
Asked by Justin (76.90.239.x) on March 26 2014, 1:05am
Reply on March 26 2014, 1:12am:
    I was thinking about ordering a rift 2 devkit, but now not so much.
Comment...
Question: Facebook recently bought Oculus, the VR company that employs (among other people) John Carmack. Is this real life? Or some weird tech-bubble false-reality?
Asked by Eric (70.191.121.x) on March 26 2014, 12:41am
Reply on March 26 2014, 1:12am:
    Heh you couldn't make that shit up.
Comment...
Question: Does that mean you're using VC2013 as your primary C IDE now?
Asked by Will (24.234.85.x) on March 25 2014, 8:55pm
Reply on March 25 2014, 11:27pm:
    I use it often, but I don't really have a "primary" anything. It isn't used to compile our release builds yet, either (I did test VC13 with the latest ICC, but it barfed a lot... it'll get mature soon enough though).
Comment...
Question: The modern web stack offers so much! Are you gonna die clinging to win32 and visual c++ 6.0? :)
Asked by Will (24.234.85.x) on March 24 2014, 6:44pm
Reply on March 24 2014, 7:03pm (edited at March 24 2014, 7:04pm):
    I've been enjoying VC2013 and Xcode5/LLVM (Win64 and SWELL rounding out the API targeting). The modern web stack does offer a lot, but it also is missing even more. There is a long, LONG way to go for a lot of interesting things. Random off the top of my head pick: multithreading support?
Comment...
Question: Would you use this address instead? nsis.neotext.org
Asked by Nick (173.31.164.x) on March 22 2014, 3:20am
Reply on March 24 2014, 2:36am:
    Nope
Comment...
Question: Global auto destroy ptrlist:now you're telling me :D The small problem is that whole SWS is filled with that idiom using SWSProjConfig
Asked by Martin (93.136.3.x) on March 18 2014, 2:31pm
Reply on March 18 2014, 3:41pm:
    email me :)
Comment...
Question: Problem is I can't be picky when things get deleted since they reside in WDL_PtrListDeleteOnDestroy within WDL_PtrList which manages stuff in all active projects. So sometimes the object may get deleted because it's not needed, and sometimes when Reaper quits :) However, this seems to do the trick for now: if (EnumProjects(0, NULL, 0)) DestroyAudioAccessor(m
Asked by Martin (93.139.111.x) on March 18 2014, 1:17am
Reply on March 18 2014, 1:29am (edited at March 18 2014, 1:51am):
    Just don't delete anything that you don't need to in the unload, then (and don't make your global ptrlists DeleteOnDestroy)... On OSX you will not get your DLL unloaded, too.

    Anyway fixing it on our end too, mostly.
Comment...
Question: I wrote some small patches for NSIS back in the day, and you were kind enough to include me in the credits. As a nerdy teen i found that cool.. thanks man! Anyway you mentioned liking East London. If you ever need a coffee buddy here give me a shout!
Asked by PeterWindridge (81.157.72.x) on March 17 2014, 10:47pm
Reply on March 17 2014, 11:36pm:
    Ah nice! Thanks for your contributions!
Comment...
Question: I have DestroyAudioAccessor call in destructor of an object that gets deleted in REAPER_PLUGIN_ENTRYPOINT() on !rec If accessor is not NULL I get Access violation reading location (location is not NULL). Is this Reaper's fault or I shouldn't do that?
Asked by Martin (93.139.111.x) on March 17 2014, 10:11pm
Reply on March 17 2014, 11:35pm (edited at March 17 2014, 11:39pm):
Comment...
[newer questions][unreplied] | [replied] | [recent comments] | [all]
[older questions]
Copyright 2024 Justin Frankel. | RSS