HNHacker News
TopNewBestAskShowJobs

latencyloser

560 karma · joined June 9, 2017

I make applications go greater than 30 speed. Views and opinions are my own and such.
submissionscomments
latencyloser··on CME Group Statement on Vanity Fair Article
Even if they got the exchange's order-book they'd probably just see a bunch of orders from some guys named Morgan Stanley and JP Morgan. So many of these trades are routed or entered by brokers or other large firms.
latencyloser··on CME Group Statement on Vanity Fair Article
Agreed. My experience with regulators, CFTC and SEC, was they were pretty no-bullshit about auditing and compliance. We jumped through a lot of technical hoops to make them happy.

My colleagues would get called away for hours, days explaining how our systems worked, how we verified it. etc. I recall some had to go testify in court about them!

latencyloser··on CME Group Statement on Vanity Fair Article
Disclaimer: I used to work there years ago as a programmer and got a lot of exposure to this stuff. My opinions are my own and that's all these are.

I think this article is a bit over-hyped. I know in my circle we sorta joke that trump trades on his tweets, or has cronies/staffers/friends that do, and he probably does. I'm sincerely not sure how anyone would know for sure, that's beyond me.

In any case, by the time things hit the exchange it's mostly just brokers and market makers. There's few "people" that trade directly on exchanges. Some big firms, sure. But I doubt any one person profited heavily from this. Another thing to remember, you've gotta have the money to actually buy all these in the first place and that's a lot put on the table. 82k contracts at the money, about a month out right now would cost me ~$84mm. I'm sure insiders get better margin rates than me but that still gives some idea as to the barrier of entry for this kind of trade.

If the traders expected a large move, why trade all at the final hours? Why not spread the volume over a few hours or, hell, even days like the article alleges they had on occasions?

There's entire teams of people at large brokerages and banks that work specifically on hiding their large trades among the normal volume, so competitors don't intentionally try to ride the large, incoming volume. Any coordinated effort would've probably participated in such a process or done something similar.

The article also mentions just the futures, but doesn't say what strike and expiry. Depending on these, it greatly effects the actual outcome and cost of entry. These would also be interesting bits of journalism as it would speak to the level of risk assumed in these bets: way in the money = safe, way out = risky, short-dated=risky, far-out=safe. This suggests to me that the author doesn't really know how these contracts work?

Similarly, these types of securities are a more of a zero-sum game than equities, someone was on the losing side of those trades and they thought whatever position they took was worth the premium paid to them. There's really no "averaging down" in derivatives in the same way as equities, they expire and so does their value. Again, how quickly this happens depends on the contract expiry which the author omitted.

Lastly, derivatives traders love volatility. This presidency and recent world events have created lots of volatility. It's no surprise these contracts are seeing lots of activity.

I guess I just don't really see the plausibility to this and the article itself is painfully uninformative.

Somewhat related story time:

I used to sit and watch the pit the e minis traded in close on occasion--always kinda quiet towards the end of the day until the very end when things picked up. E minis still got quite a bit of volume through the pits at the time. Trading in my own time years later--much of the volume is on the open and the close electronically as well.

Going to meetups with pit traders, I remember a few here and there getting blitzed and rambling about market makers front-running them somehow and being able to out compete them because "AI" and "algorithms." But really they just moved faster and could act on more data than small shops or retail.

The CTO of a market-maker gave a talked I attended and he described how people yelling and arguing in the pits was such an obvious battle at the "forefront of capitalism" and people sort of understood and accepting of that. However, the fear the silence and all that they don't know about the computer and it's algorithms.-- I think all people somewhat fear finance, derivatives especially, in the same sort way. What you don't understand or see regularly can be strange or unsettling.

Obviously I have somewhat rose-tinted glasses on the subject.

latencyloser··on The Myth of 10,000 hours
I've heard it's also important to distinguish _practice_ as separate form of _doing_. Without knowing anything about your golf habits, so not intending to criticize, but to use as an example: 10k hours of _playing_ golf is quite different from 10k hours of _practicing_ golf and the latter would, from what I understand of the distinction, have a more appreciable outcome. As you said though, mastery and success are not necessarily correlated.

An example from my life being: I spent much of my youth "practicing" guitar (guided lessons, learning theory, improving my abilities in different techniques) while my peers simply "played" and the difference in our skill levels (from a purely technical perspective) was noticeable. However, I still never had a successful music career :) whereas I can think of at least one of my peers who "merely played" that's since made a living off their abilities.

latencyloser··on Books on Burnout
To offer a contrasting opinion, I had to step away from "meaningful" work in order to recover from burnout. It was absorbing my life and I ended up feeling like I was trying to save the world with just myself and my little band of trusted colleagues. It was truly the most exhausting and deeply frustrating "job" I've ever had. Quite frankly, I don't think I'll ever go back. I don't know what could be worth the emotional difficulties that came with all that. Triumph, maybe? But we failed so I never got that. Fighting for something you truly believe in as meaningful can be _hard_. Insanely hard--because sometimes the world is just against you on it and there's nothing you can do about it.

In the end, I get paid far more to work on "junk" (cloud infrastructure) and it's orders of magnitude more easy to walk away from it at the end of the day and sleep peacefully over. Maybe it makes my boss far richer than I'll ever be, but I'm happier, my family's happier, and overall I enjoy my life more. So for me, I'm gonna keep being a "drone" (and happily continue to serve my customers that do seem to need these things for whatever reasons they have) because it's easy and sometimes it just beats suffering ever day--even if it's for something you believe in. Maybe I'll find some meaningful "work" in my free time but at that point is it even really work?

latencyloser··on Using TLA+ for fun and profit in the development of ElasticSearch [video]
TLA+ is less a programming language and more a systems modeling language. It's like writing a mathematical proof for your system where you describe each action the system takes, the invariants to describe "correctness" of the system and its state, and the TLA checker runs some kind of analysis of every possible state described by your model and that the invariants still hold true for all possible states. To me, it's like running a unit test in parallel where all possible inputs are provided concurrently.

I'm not an expert on it, but I've worked with it some to verify distributed systems at a FAANG company (with the oversight of real experts)--so it does get used there!

latencyloser··on Everything I googled in a week as a professional software engineer
Not necessarily. The purpose is to show how you reason your way through a problem where you can't simply google "how do I solve x problem." It's intended to see how you communicate, how you handle mistakes, how thorough you are in double-checking yourself, your work style (do you jump right in or ask lots of questions first), etc.

In any case, there's a lot of strategies to show that you understand a concept without relying on exact memorization. For example, a common answer I give if I can't remember something might be something like: "The language has a sort function that can accept a list, I don't remember the exact API or the underlying implementation but let's assume it's n log(n) as that's a common runtime complexity for sorting--I'm going to define that as 'sort(listArg)'." I don't remember the exact function, so I'll just define and explain how it might work myself. If you're expected to be able to compile the code you're writing, simply ask the interviewer and explain the API you're looking for, I've had great success with that as well and prefer when an interviewee asks me over staring at the screen or board.

If it's a problem where you're expected to produce some algorithm, if you can't come up with any solution, explain to your interviewer what you're stuck on. They may provide a hint that will get you rolling. I had this happen during an interview at Microsoft (spoiler, I got the job) where I forgot how to determine the length of the hypotenuse of a triangle haha. The interviewer wrote the formula on the board and we moved on. Interviewer later told me I seemed nervous and he chalked it up to a brain fart--good call, I was really nervous! The point of that problem wasn't to see if I knew the Pythagorean theorem--it was just a small piece of the puzzle I was stumped on. Similarly start from a simple, naive solution, and interatively optimize rather than trying to recall a perfectly optimal solution. If time is running low, explain your intended optimization or ones you think might be meaningful, making note of any uncertainties in that explanation.

I've worked at Microsoft, Amazon, some other notables and interviewed at many others. I am speaking from that experience. Others may have better ideas. Of course, not all places approach this in a reasonable fashion and some are just missing the point entirely with their interview and they do expect you to somehow memorize everything.

latencyloser··on The Anti-College Is on the Rise
You're probably right. Any recommendations on where I might look that's not as glamorous? Not being facetious (in case it sounds that way), just curious to have some recommendations.
latencyloser··on The Anti-College Is on the Rise
Microsoft definitely still did as of late 2017, when I was still there. You're absolutely right, it was easier to just get a job elsewhere and that was what I did! Hah. I'm trying to avoid that here, because I like the company, just hoping to work on a different product.

Is a transfer interview not common elsewhere? Anyone know if Amazon or Google requires something like that?

latencyloser··on The Anti-College Is on the Rise
I'm just gonna vent for a sec out of envy: As someone who did the software route, there are days I deeply wish I had done this sort of thing instead. My neighbor is a welder, lives in a house the same as mine, doesn't work crazy hours without getting paid overtime, doesn't spend weekends keeping up with the latest welding technology or practicing esoteric welding techniques just to pass an interview (as I sit here learning Rust because my team is starting to use it and practicing interview problems because I'm trying to transfer internally at the company). His boss probably doesn't pressure him to go give talks at welding conferences off hours as publicity to the company. Or come in on Saturday's to listen to presentations on what other parts of the welding org are working on. I'm tired of a career that consumes _my life_. I so truly just want to clock in, clock out, work about 40hrs/week and have time for my family. But I'm scared to do that in my industry, it just moves too fast and it's too easy to feel left behind, especially where I'm at in it--a weird limbo between programmer and manager where I'm expected to know how do to things without being allowed time to learn them. I loved programming when I was younger, and I still do, but my god I hate this industry. I daydream about taking a pay cut just to be able to go live in like... Cheyenne, WY or something and not be a part of the tech rush. Once I pay down my house a bit and can afford to start over with my family somewhere else, I just might. /rant

If any software folks who understand where I'm coming from wanna chime in on that, I'd love to hear about what you did about it... Or maybe I'm just a negative nancy, that's plausible too.

latencyloser··on Lyft prices IPO at top of range
I'm uncertain when the contracts will begin to be listed, but I believe the minimum is 5 days after IPO.

Personally, there's quite a few unknowns that would deter me from entering this trade off the bat, as I don't usually trade IPOs. I don't really know what the short pressure on such a stock would be immediately after IPO. Ideally, I'd want an expiry less than 30-45 days away since I'm selling but, I'm uncertain that's enough time for this trade following IPO. I might execute it after seeing what happens at IPO for a few weeks or so. (edit) Of course, that may be far too late.

Also, I think it would be a hot stock for people to trade against, so I expect the spread to be reasonable, but the pricing to be extremely aggressive, which means the potential upside may not be enough for me to want the trade.

Options are all about timing, sooner may not be better.

latencyloser··on Lyft prices IPO at top of range
Just to add, a mildly more conservative/higher probability short would be a short call spread, can adjust the strikes depending on your risk tolerance/confidence. This limits upside but you no longer need to outpace theta, it's working in your favor on the sell side.

The long put is more sensitive to timing whereas the short call spread limits upside returns. Trade-off depending on your goals.

Edit: not to be confused with a short call, which has unlimited downside risk.

latencyloser··on Implications of Rewriting a Browser Component in Rust
I write Java daily, I haven't seen one in a production environment in... at least recent memory. Most common NPEs I've seen can be resolved by doing two things: 1) for returning a single, nullable value, wrap it in Optional. 2) Never return null collections, always default to an empty collection instead.

More nuanced ones can often be caught by using all args constructors and requiring the constructor values with Objects.requiresNonNull() or similar. Using spring? Don't use field or setter injection, always constructor so the above applies as well. Making the state of your objects largely immutable means their state is more consistent and what is null and when becomes a lot less surprising.

Lastly, write good tests. If you're exhausting the behavior of your system with tests, these things are much less likely to surprise you later.

NPEs are definitely a problem with Java, but they're a very avoidable one as well.

Edit: I don't understand the downvotes. The parent said they're a huge deal and I'm disagreeing because I think they're relatively simple to avoid?

latencyloser··on SpaceX gets Nasa’s approval to test launch Crew Dragon
I'm fairly certain you'd need to be a US Citizen to work on anything at SpaceX anyways due to ITAR. At least, that's a requirement at Blue Origin.
latencyloser··on Teaching People to Trade Stocks Is Like Starting Them on Heroin – Munger
> Picking up those pennies in front of a bulldozer

That is not what I'm advocating at all.

latencyloser··on Teaching People to Trade Stocks Is Like Starting Them on Heroin – Munger
I feel like there's a lot of misinformation in this thread, not about the article necessarily, but markets and trading in general.

Stocks are kind of the "beginner's" asset. They're fairly easy to understand conceptually. "Trading" them is even easier. However, trading them in isolation for a profit _consistently_ is very difficult or just a product of luck. I don't know anyone who does it and wasn't burned eventually.

The thing to remember is, people doing funds or "trading" professionally aren't just buying and selling FANG stocks all day. They're balancing these trades with futures and options or options on futures and other alternative assets. They're hedging their positions and setting themselves up so that their probability of coming out ahead is much greater than you're standard "it either goes up or down" stock movement.

A simple example is the "wheel" strategy in options. A short put at a .30 delta on the underlying, assuming 1 stddev movements gives about a 70% chance of collecting the premium without assignment (of course this isn't perfectly true, it's an approximation). This is already better than buying the stock, which under the same methodology, would have a 50% chance of profit (either going up or down from the purchase price). When assigned, turn around and open a short call against the assigned shares at a similar delta and repeat. In the flat market we've seen the last year or so, this is reasonably profitable and very low effort.

Edit: The reason the "buy and hold an index forever" strategy is recommended is because it's the lowest effort, highest probability of profit strategy one can probably take. I agree with it entirely for 99.9% of people. But that's not to say there isn't other opportunity out there if you're willing to learn about it.

Source: spent a few years at the Chicago Mercantile Exchange working on these sorts of things exchange side and now trade regularly on my own.

latencyloser··on Why the “Self-Made” Success Story Is a Myth
This reminds me of when I was working at Microsoft and a colleague said to me: "I don't know how anyone raises a family off less than $130k/year." I laughed and asked him if he'd ever been anywhere in the US outside of Seattle before. Turns out, he hadn't and assumed the insane cost of living we're subject to in this area also exists in the rest of the country.

My point of reference is my family's house in a rural area that is about 2x the size of mine (the property is 10x) and costs 1/3 as much. I wish my career as a software engineer better enabled this type of living but, alas, my corporate overlords require I am ass in desk every day in a metro area.

latencyloser··on Amazon in Its Prime: Doubles Profits, Pays $0 in Federal Income Taxes
I'm really sick of articles like this. Amazon or $insertCompany that isn't paying taxes didn't do _anything_ illegal. Don't hate the player, hate the game. If shit like this bothers you, write your local representatives and ask them to change it.
latencyloser··on Jeff Bezos Turned Narrative into Amazon's Competitive Advantage
I'm not sure about Amazon, but we do the memo thing at Jeff's other company, Blue Origin, as well. Charts are fair game and I've used them a few times. I've noticed others at the company use them too, but sparingly.
latencyloser··on “Git Tower” revokes licenses when discussing bugs/feedback on Reddit
As someone who made the opposite transition: no. My colleagues that are still GUI bound are generally slower at accomplishing most day to day tasks. Committing, rebasing, merging, pushing tags, etc.
latencyloser··on Event Sourcing is Hard
You generally only have to guarantee the ordering of _some_ events--not all of them. Ideally you want a way to partition your data such that ordering is only important per partition. For example, when I worked in derivatives trading, we only needed to guarantee ordering by product class, but events could be generally unordered given multiple product classes, as long as each individual one was ordered. Similarly, the telemetry systems I work on now guarantee ordering per sensor (duh) and per sensor grouping, but not across _all_ sensors on the vehicle. Partitioning makes for easy scaling (just make a new partition yay).
latencyloser··on Google Plans Large New York City Expansion
Personally, I have the opposite opinion. I took a pay cut to leave Seattle ( I lived in Chicago before that, I've lived in dense metro areas for many, many years now) so I could go live in a smaller town.

I can actually afford a house. My dog has a yard to play in. I haven't been mugged since I left! No one uses my doorstep as a bathroom. My neighbors actually come say hi to me and are invested in forming relationships knowing I won't just up in move in the next year due to housing costs. We have decent enough restaurants, bars, bowling alleys, pool halls, movie theater, mall, etc, and if I really want to, I am within driving distance of the city (edit: for a day trip, no way in hell would it work for me as a commute). Yet, I haven't been back since I left.

I think it's more nuanced than your comment indicates. You might be surprised how many people might take up an offer from Google to move to the boonies (I'm at least one).

latencyloser··on You could have invented the LMAX Disruptor, if only you were limited enough
Just adding on that this is my experience as well.

Objects usually fell into one of two categories: discarded immediately or held for the entire application lifetime. Anything in between was problematic. Most things ended up using object pools. We also used to never really convert anything from binary format and just used wrapper objects to access the byte arrays directly.

Another sort of trick was scheduling GC for times when the application was OK to pause helped considerably, and made behavior more predictable as well.

It'd be tough to compare it to C/C++ given the complexity of the application. But without giving away specifics, we had solid performance afaik. But you're correct that it does end up making for some interesting Java code.

latencyloser··on With more students boasting flashy GPAs, academic honors lose their luster
As someone who went to a "lower-tier" school. I hate how true this feels sometimes. My colleagues who went to big name schools all seem to be in some sort of "club" together. At least, they have shared experiences that I have no such ability to relate to. They've been "elite" tech people since before they were in the job force.

That being said, the only time I feel this is in social settings and it's usually minor. People ask where I went to school and then I usually get an "oh?" back, as they've never heard of it. But it's never really impacted my professional life to my knowledge. Maybe I didn't get the same opportunities as these people as quickly, but I've worked at and enjoyed success at a few of the big names and am enjoying my time at a well known "start up" now.

Kids, go to school where you can afford. Bust your ass, make connections, move on and move up. School doesn't matter once you're out of it.

latencyloser··on Ask HN: Anyone making money through algorithmic trading?
Not me, no. But if you've got a good money manager they can/will do this sort of thing if you ask. Otherwise, this is sort of how a hedge fund works--delta neutral portfolio management. You can always try to join one of those.
latencyloser··on Ask HN: Anyone making money through algorithmic trading?
Yes. I "algo" trade equity options. It's strange to me that I don't see much mention of this answer given all the argument about stocks being a 50-50 bet.

Options let you just roll the dice on probabilities off the assumption that the market is effectively random. You can use them to push the 50-50 probability much further in your favor.

For example, I stand to profit nicely at the next expiration (May) of most of my options as long as the market doesn't move more than a stddev in either direction. It could go up, down, sideways, no matter. I will make money. If it drops significantly, I will lose marginally until my "insurance" (far OTM puts) kick in and I start marking money again.

Edit: A common beginner's option strategy is to write a put for a stock you'd like to own. If the stock stays flat or goes up, you make money off the premium. If it goes down, you now own that stock. You can now turn around and sell calls against that stock, collecting premium until you're forced to sell the stock because it's moved back up again. You only "lose" if the stock makes an extremely large move down (like going bankrupt, or a GE style dividend) and you're stuck with a stock you can't sell premium against. Far from the 50-50 bet most people think of when they think of stocks.

latencyloser··on The latest trend for tech interviews: Days of unpaid homework
I'm gonna second this. Started my career as a software dev at a commodities exchange. Pay was excellent for the area I lived in and my experience level, 9-5 was 100% standard and enforced by the team culture, on-call was nonexistent as dedicated support people handled that, bonus was better than the ones I got while working at Microsoft, and got to work with some of the best software engineers I've ever met. Incredible job security, no one got let go or put on any kind of PIP as everyone was pretty self motivated--even if they weren't the best. All in all, I would highly recommend this as a good career path.

I left because it was my first job out of college and I wanted to see what else was out in the world. But it stays a fond memory of a solid job.

latencyloser··on YouTube and Reddit roll out new restrictions including channel and sub bans
One of the founding principles of the US was the right of its citizenry to protect itself from the overreach of the government, which was enabled partly through the right for citizens to own firearms and other weapons. They're a means of self defense, but more importantly as a way to keep the gov in check. No government can control millions of armed citizens--which is exactly the point.

Killing in response to being disarmed is probably one of the most "American" things its citizens could do.

latencyloser··on YouTube and Reddit roll out new restrictions including channel and sub bans
It was removed, but also (and maybe because) it was nearly impossible to effectively enforce. Gun restrictions would very much experience the same problems. There are millions of guns and gun owners in the US and many of those people are firm believers in their right to own a gun. They'd likely bury them in the yard or, as the old joke goes, "lose" them in a boating accident, before turning them over to authorities.

I personally would _never_ willingly turn mine in--they're for my and my family's protection and have saved my life before. I am certain many gun owners feels this way as well. Trying to enforce such a rule would be difficult, if not impossible.

latencyloser··on Google bans cryptocurrency ads
Yes, essentially. He understood it was some kind of currency. But wasn't sure _why_ people used it, _what_ they really used it for or what all the hype was about. He bought mostly due to fear of missing out.
← PreviousPage 2 of 4Next →