This doesn’t do anything when cars decide to park in your bike lane anyways, and your bike lane has maybe a foot clearance to traffic in the other side.
It’s also an interesting attitude, that cars are so much more important than bikes that it’s not car drivers who should check the road when opening their door, but bikers who should lose the 6 feet of street space near parked cars which is the only semi-safe place for bikes in New York
> This doesn’t do anything when cars decide to park in your bike lane anyways
When there's a stopped vehicle in the lane you're in, you can simply check for traffic in the next lane and switch lanes.
> your bike lane has maybe a foot clearance to traffic in the other side.
You're not restricted to the bike lane if there's an obstruction.
> that cars are so much more important than bikes that it’s not car drivers who should check the road when opening their door
No one is saying that they shouldn't check before opening their door, but I am saying that you can eliminate the risk of being doored if you ride far enough away from parked vehicles. It's far easier to take responsibility for your own safety than to rely on others to do it for you.
> but bikers who should lose the 6 feet of street space near parked cars which is the only semi-safe place for bikes in New York
Riding in the door zone is not safe, period. It's safer to just ride in the general purpose traffic lane far enough away from parked vehicles. There's a reason why drivers of motor vehicles don't typically drive in the door zone.
> When there's a stopped vehicle in the lane you're in, you can simply check for traffic in the next lane and switch lanes.
> You're not restricted to the bike lane if there's an obstruction.
These comments proves my whole second point. If a car were to just park in the car lane because it felt like it, there would be outrage, tickets, and the car would get towed immediately. Nobody would say "no big deal, just change lanes". But when a biker says "I don't like using the street because it's dangerous", it's just dismissed like this.
You also ignore that bikers DO just change lanes into the street, which can be quite dangerous somewhere like New York. I don't know if you've ever ridden a bike in New York, but drivers, especially taxis, are at best ignorant of you and often antagonistic. There's a reason bike lanes exist in the first place, and it's because the car lanes are dangerous.
> It's far easier to take responsibility for your own safety than to rely on others to do it for you
Imagine somebody saying this when a car driver complains about somebody else running a red light, or cutting them off in a lane - you would get laughed out of the room. But when drivers act dangerously towards a biker it's the biker who should be taking responsibility.
When bikers do all the terrible biker things like roll through stop signs, or "act like pedestrians", or roll to the front of the line, that IS taking our own safety into our hands by doing legally dubious things that make biking much safer, yet everybody hates that as well.
> There's a reason why drivers of motor vehicles don't typically drive in the door zone.
Have you ever been in New York? Plenty of car lanes themselves are near the door zone, not to mention bike lanes themselves ARE the door zone usually.
I don't mean to be aggressive, but the endless victim blaming towards bicyclists gets really tiresome. I really wish that people who just dismiss these complaints out of hand would bike to work in NYC for just a week.
You're arguing past the GP. They're saying "here's some practical tips, in the real world, at this point in space time, to stay safe while riding a bicycle". And you're talking about how that sucks, and it shouldn't have to be that way. Ok right, it shouldn't. But that's how it is. Do you want to ride a bicycle safely or not?
> If a car were to just park in the car lane because it felt like it, there would be outrage, tickets, and the car would get towed immediately.
And drivers of those cars would switch lanes to get around it in the interim. Cars can develop mechanical issues that prevent them from proceeding and if they driver can't get to the side of the road, then they remain in the general purpose traffic lane (which isn't for the exclusive use of cars).
> But when a biker says "I don't like using the street because it's dangerous", it's just dismissed like this.
What's dangerous about changing lanes after checking for traffic in the adjacent lane? People do this all the time while driving cars, trucks and motorcycles. Why would it be any different when on a bicycle?
> There's a reason bike lanes exist in the first place, and it's because the car lanes are dangerous.
According to NY state law, they exist so that cyclists do not interfere with traffic[1]. It's not for safety. It's just to keep cyclists out of the way.
> Imagine somebody saying this when a car driver complains about somebody else running a red light
When I drive a car or ride a bike, I check for approaching traffic when I enter an intersection. This is out of self-preservation. People are going to screw up (whether intentionally or not). But if you can avoid a collision regardless of what someone else did, then that's a far better alternative.
> When bikers do all the terrible biker things like roll through stop signs, or "act like pedestrians", or roll to the front of the line, that IS taking our own safety
No, that's for the cyclist's convenience. If everyone followed the same set of rules, then everyone's actions are predictable and there would be fewer conflicts and lower risk of collision. Imagine if drivers of motor vehicles started following the same strategy you mentioned. They can justify it by saying they needed to stay out of the way of the bus and they saved time as well.
> Plenty of car lanes themselves are near the door zone, not to mention bike lanes themselves ARE the door zone usually.
If other lanes are present, then drivers stay out of the door zone. That is always true when there is a door zone bike lane.
> I don't mean to be aggressive, but the endless victim blaming
Providing advice in order to prevent others from becoming victims is not victim blaming.
This is definitely not victim blaming. It is sound advice based on the usual flow of traffic and the uniform vehicle code.
Bike lanes of various types are experimental parallel transport systems dropped into an existing system with which most people have experience and education. The bizarre undertaking on the inside and right-hook problems at intersections are completely predictable.
I can attest to the basic lock-free spsc queues being far faster than a basic spinlocking version of the same queue, on xeon-class X86 at least.
LOCK'ed instructions (one might use lock xchg or lock cmpxchg) perform a full memory barrier, which has quite a few performance implications if there are any outbound loads/stores. Further, if the cache line containing the spinlock is in anything except an exclusively-held state on the writing core (it will usually be on a different core or in a shared state), simply acquiring the lock will stall for ~25-30ns+.
On the other hand, a simply spsc lock-free queue can hit <10ns per message with a latency about equal to the core-core communication latency.
I'm not sure if I'm the target audience for this (low-latency trading), but here's my thought - code which would allocate in a fast path is a strict no-go for me, and this runs fairly close to that in a few regards:
> It seems easy to accidentally make allocating code allocate by changing some variable names (b = fnc(a) - oops, allocation)
> I would be extremely wary of trusting a compiler to realize what sort of allocations are optimizable and not - I already have problems with inlining decisions, poor code layout, etc in fairly optimized c++/rust code compiled by gcc+llvm.
Replace allocation with any other expensive work that duplicating a datastructure would result in, and you have the same story. I suspect many of the people that would be evaluating this compared to C/C++/Rust have similar performance concerns.
You need to stop pretending they are not globals. Just accept you work on one continuous memory patch and are simply passing pointers around. If you don't lie to yourself, you can't shoot your own foot when the compiler do not see your lie.
If you are in an environment where you can guarantee that a piece of code runs in bounded time (no interrupts, no faults, etc), then locks can actually be used in lock-free algorithms since code inside the lock will always be making forward progress and will exit in or before some deterministic time. If the lock is fair and there's a bounded number of threads accessing the lock, then it technically becomes wait-free under these conditions since time to completion is bounded by n_threads * task_time;
This environment only happens to exist in very specific and uncommon settings, so it's not a generally useful concept for lock-free programming. It's common in the linux kernel to see spinlocks taken in sections which have disabled all interrupts, for example, but this is not an environment that normal programs can live in.
In New York at least, constructions unions extract large amounts of money from the government. Some examples that come to mind:
* Lots of construction employees are mandated by unions to stay around (crane greasers I believe are an example) even though these employees do no work, and then managers have to be hired to manage more employees, etc.
* Sometimes employees are hired to do no work at all
* Highly experienced employees will be given menial jobs like coffee-fetcher sort of deal, but get paid very highly for it due to their experience.
* The MTA has no negotiating power, the unions and the construction contractors agree on a price and then give it to the MTA
Why is it like this? I don't know, one could imagine all sorts of corruption, political plays to get the construction vote, political games to avoid seeming anti-union, who knows.
There is also the case when no one else wants to sell (buy) and bids (asks) way out number asks (bids), especially on contracts that people are using to cover for their other trades. There's plenty of times where I massaged the price up (or down) to where I wanted it more, and dumped/slurped up contracts (at least confirming by checking the bar once it filled and seeing that the price I got filled at was the highest/lowest price of that bar). Granted, it doesn't happen every time, nor do I count on it.
If you're an HFT, you would much rather just pay for the order flow and not deal with all the shit that is retail (government, customers, all that shit). If you're some big retail firm, you're probably run by suits, way to beauracratic to run a difficult high-tech trading team, and any talent you got would get siphoned off to a good trading firm.
IEX's speed bump in the end simply allowed their special internal dpeg order type to pull slightly back when they saw adverse movements incoming, for many normal trades it's essentially an exchange that acts like it's a little farther away (longer latency) than it actually is with some dark order types which move weird.
This trade is theoretically possible, but customers don't frequently trade enough volume to move all the lit markets that much, and it's extremely dubious from a legal perspective anyways.
It might simply just be that's the terms that Robinhood reached with the firms? Paying 0.2c/share and giving 0.2c/share price improvement is fairly similar from the perspective of a market maker as just paying 0.4c/share, and Robinhood might be funding themselves by having firms only compete on payment for orders and not on price improvement.
On a more meta level, my firm suspects that Citadel is trying very hard to price other players out of the market even if it's at the cost of their current profitability, so they might be driving up the terms of newly minted deals. I don't work on the retail desk so I don't know.
It’s also an interesting attitude, that cars are so much more important than bikes that it’s not car drivers who should check the road when opening their door, but bikers who should lose the 6 feet of street space near parked cars which is the only semi-safe place for bikes in New York