Note there could be some useful python tips in the pearl blog. Perhaps it’s better to move the z_py posts there.
li + [1,2,3] # can be used directly in a for loop
### all solutions below return None!
li.append(1) # one argument exactly. To append more than one, use extend:
li.extend( [1,2] )
background: My laser (and time) is a scarce resource. Need to economize it and prioritize.
Upshot — Perhaps algo practice has higher ROI than quant xx…
Both are seldom needed on the job but valuable to IV. Which one is more valuable? See post on algo IV for bbg
Most of Quant math is too hard to self-study, though the probability quizzes are manageable.
Many people ask how to make a child thread’s exception “bubble up” to the parent thread.
Background — A Runnable task is unsure how to handle its own exception. It wants to escalate to parent thread. Note parent has to block for the entire duration of the child thread (right after child’s start()), blocked either in wait() or some derivative of wait().
This question is not that trivial. Here are my solutions:
1) Callable task and Futures results — but is the original exception escalated? Yes. P197 [[java threads]]
2) Runnable’s run() method can temporarily catch the exception, save the object in a global variable such as a blocking queue, and notifyAll(). Parent thread could check the global variable after getting notified. Any thread can monitor the gloabal.
If you don’t have to escalate to parent thread, then
3) setUncaughtExceptionHandler() – I think the handler method is called in the same exception thread — single-threaded. In the handler, you can give the task to a thread pool, so the exception thread can exit, but I don’t know how useful.
4) adopt invokeAndWait() design — invokeAndWait() javadoc says “Note that if the Runnable.run() method throws an uncaught exception (on EDT) it’s caught and rethrown, as an InvocationTargetException, on the callers thread”
In c#, there are various constructs similar to Futures.get() — seems to be the standard solutions for capturing child thread exception.
* Task.Result property
IRS is not transferable. IRS contract can be re-assigned in some cases, but the original 2 counter parties and the new party must all agree.
Both parties must scrutinize the other’s credit worthiness. Libor rate is for top-credit borrowers. If the floating-payer is lower, then the spread on Libor (or the fixed rate?) will reflect that – a.k.a. credit spread. Alternatively, the counter party (floating receiver) can demand collateral.
There’s no secondary market for IRS like there are in listed securities.
Q: Is there an IRS trading system?
%%A: Most needed system might be a deal management system that tracks all our unexpired IRS contracts. Since each deal is bespoke, volume is not high. The basic entity in the system is known not as a position, but a deal. It’s treated like a trade as there are 2 accounts involved, and multiple settlement dates.
Q: Is IRS market regulated?
A: Regulators set limits on total exposure. Participant’s quarterly balance sheets include these IR swaps. One big swap could push a company above the limit.
–Mac over 18M
C++ compilation/linking? a bit
–OC over 23M
MSVS? But no critical mass yet
Spare time for UChicago
See also post on top 5 expertise I could teach.
In the US job market, people often ask “What do you specialize in?”. I think most non-managers in this industry, esp. the successful ones, do specialize in something. Whether you like it or not, you are often perceived that way.
Clearly, many professionals are jack of all trades (or a jack of very few trades), and don’t have any real expertise or insight. Depending on your view, this may not be a problem for them.
Like property evaluation, I have a list of criteria:
- theoretical complexity — so most peers can’t master it. I get lower stress. Threading, statistics, pricing models …
- accumulation and low churn — Look at grandpa
- market value on job market
- Commercial value; could make a living; pathway to startup
- opportunities in research/teaching, for my later years. Very few choices.
- Something related to early childhood education
- ———– Rest are secondary —————-
- Something I believe in or care about, such as personal investment, or health. Self-knowledge: If it has commercial value I will care about it.