HNHacker News
TopNewBestAskShowJobs

tzone

254 karma · joined December 14, 2019

submissionscomments
tzone··on Jepsen: MySQL 8.0.34
Here is my issue with this. We are assuming you need to read a "consistent snapshot" in some type of real time application. Because if it isn't real time, you can always have those snapshot type of querying on "replicas", since that is a lot easier to implement correctly without sacrificing performance.

So assuming you are looking at reading "consistent snapshot" in the context of a real time transaction. If the data that you want to read as a "consistent snapshot" is small, locking + reading is good enough in most cases.

If the data to read is too large (i.e. query takes long time to execute, and pulls a lot of data), you are going to have ton of scaling issues if you are depending on something like "repeatable read". Long running transactions, long running queries, etc are bane of all the database scaling and performance.

So you really want to avoid that anyways, you would almost always be much better of changing your application logic to make sure you can have much shorter, time bounded transactions and queries and setup better application level consistency scheme. Otherwise you will at some point hit scaling/performance problems and they will be an absolute nightmare to fix.

tzone··on Jepsen: MySQL 8.0.34
I have been advocating for the longest time that "repeatable read" is just a bad idea. Even if implementations were perfect. Even when it works correctly in the Database, it is still very tricky to reason about when dealing with complex queries.

I think two isolation levels that make sense are either:

* read committed

* serializable

You either go all the way to have a serializable setup, where there are no surprises. OR, you go in read committed direction where it is obvious that if you want have a consistent view of the data within a transaction, you have to lock the rows before you start reading them.

Read committed is very similar to just regular multi-threaded code and its memory management, so most engineers can get a decent intuitive sense for it.

Serializable is so strict that it is pretty hard to make very unexpected mistakes.

Anything in-between is a no man's land. And anything less consistent than Read Committed is no longer really a database.

tzone··on Helping a kid who made a math mistake
Funny coincidence, this is also a great way to get ChatGPT to produce correct solutions when it produces incorrect stuff on its first try.
tzone··on Staff Engineer Archetypes (2020)
If you have never seen a 10x engineer you either have never worked with truly talented people or you haven’t worked on actual hard problems.

There aren’t just 10 or 100x engineers , there are even infinityX engineers when you work on actual hard problems because some of those can only be solved by handful of people.

tzone··on Testing Distributed Systems
High availability + uptime is now necessary for any business no matter how small. If you need to run 24/7 available high uptime services you can’t avoid distributed systems one way or another. (Distributed systems vary by complexity of course but anything that has some failover type of mechanism is going to be a distributed system )

Also, industry is now transitioning where even small business might need geo distribution , not just for compute but also for data. That is going to make distributed systems even more complex even for the small guys.

Cloud services have made a lot of this stuff easier for average Joe but you can’t really avoid dealing with at least some fundamental concepts of distributed systems

tzone··on Incomplete history of Forbes.com as a platform for scams, grift, bad journalism
I have been wondering for a while now, how does Forbes still maintain its brand?

It has now been at least two decades that it has had close to zero credibility, but somehow in general population it is maintaining its brand as a legit publication

tzone··on Approx. 24 hours ago, Tether printed 1B $USDT out of thin air
https://www.theblockcrypto.com/data/decentralized-finance/st...

Ethereum was dominating TRON until very recently and this does have to do with huge increases in Gas prices on Ethereum

tzone··on Approx. 24 hours ago, Tether printed 1B $USDT out of thin air
While I am no huge volume arbitrageour/market maker, I actually make a living running arbitrage systems and market making systems specifically for stablecoins.

I do consider to know what I am talking about, considering my systems make hefty profits and have no real exposure to volatile crypto assets (or even long term exposure to crypto in general, my profits are in real world dollars). This is why I know that USDT has actual real utility and it is currently best instrument in its category. USDT is indeed somewhat shady but it’s premise and utility are all sensible and it is hugely profitable for its founders. They have zero reasons or incentives to do suspect things that could risk its peg.

If something goes horribly wrong for USDT it is going to be due to incompetence and not because of some long term planned con.

tzone··on Approx. 24 hours ago, Tether printed 1B $USDT out of thin air
Nah, most of USDT is on TRC20 because gas fees are way cheaper there and most of the exchanges support withdrawing USDT using TRC20.

So all arbitrageurs, market makers, etc, transfer USDT between different entities through TRC20 network. USDT on TRC20 started to increase only after Ethereum gas fees got ridiculously high and it became too expensive to use even for pretty high volume market makers.

tzone··on Approx. 24 hours ago, Tether printed 1B $USDT out of thin air
People who have no idea how crypto markets work always get riled up by these tweets. Contrary to popular belief, there is generally huge demand spike for USDT when crypto market has flash crashes, not other way around.

More USDT got issued because there was opportunity to make 0.1-0.2% on each new USDT since demand for it was that high (i.e. people were paying real USD to buy USDT at a premium, imagine that).

USDT (and USDC) demand spikes during crypto crashes because people actually cash out to these instruments because they are so widely used and trusted by actual market players. People aren't cashing out of crypto ecosystem during most crashes, money actually stays in crypto networks.

tzone··on US real estate a safe haven for billions in dirty money, report says
I sometimes wonder how many of the commenters actually read the article itself. All the discussion in comments is about residential properties when in the article it clearly says:

" Another concern the report outlines is that the U.S. anti-money laundering regime is focused on residential purchases, when a significant portion of the cases GFI reviewed involve commercial real estate transactions. "

Or another:

“When you talk about residential real estate, the heart of it is identifying who is the beneficial owner, [because] if you find out who the beneficial owner is, it also tells you who the criminal is,” Kumar told ICIJ. “In a commercial real estate investment, you don’t have to own the majority stake to be a criminal. You can own 2% of a $500 million property, and you are [still] laundering millions through it.”

tzone··on Giraffes are as socially complex as elephants
In case of human rights, what would more advanced mean other than one that is more fair to all humans of a particular society or country?

More advanced human rights just simply means more fair human rights, it has nothing to do with chronology or recency. There are plenty of examples of countries that had more advanced human rights in the past and regressed and made things worse over time.

Easy example: Russia had much better human rights for LGBT community not so long ago, however, it has regressed and gotten much worse over last 10-15 years.

tzone··on Giraffes are as socially complex as elephants
Honestly curious, which other cultures have more advanced and fairer human rights setup compared to "western civilizations"?
tzone··on John McAfee found dead in Spanish jail after court approves extradition to US
McAfee could easily have had plenty of dirt on ton of powerful people. He would have given up all that info for reducing his sentence in the US.

It is not super crazy to think that there would be plenty of people who would have rather see him die vs get extradited to US.

tzone··on Compensation as a Reflection of Values
Companies pay different amounts based on the location due to market price differences for software developers not because of differences in cost of living.

If you relocate to Zurich or Vancouver from SF, highly likely most companies that re-adjust salaries will decrease your salary even though cost of living is pretty high in both of those places.

tzone··on Wrecking sandwich traders for fun and profit
While information is public on blockchains and everyone has same level of access to it, transaction execution is not democratized.

The premise of this whole reverse-exploit is that there are people who are extracting value by getting preferential treatment with their transaction execution by doing deals outside of the blockchain itself (which are hidden and not public by default).

tzone··on Wrecking sandwich traders for fun and profit
That makes absolutely no sense. HFT and overall arbitrage games in traditional markets are way more wild and complex than all this.
tzone··on Wrecking sandwich traders for fun and profit
Sandwich attack is more than just "front running". It is both "front running" and "back running" combined.
tzone··on Falling sperm counts, declining egg quality, and endocrine disruptors
In the list of: "practical suggestions" in the article, they talk about literally everything except for weight-loss and getting in shape.
tzone··on Falling sperm counts, declining egg quality, and endocrine disruptors
Weight loss and proper exercise will probably deliver 99% of the improvements for 99% of the people. Stressing about heat, radiation, micro plastics, or other random stuff seems like extra stress for not that much benefit.

Most people in Western world are either out of shape, or straight up obese. It makes sense that, that will have huge negative effects on fertility.

tzone··on The Bit Short: Inside Crypto’s Doomsday Machine
There seem to be quite a lot of misunderstandings in this post. Not sure how familiar author really is with inner workings of crypto markets.

First thing first, is Tether sketchy? Yeah, pretty sketchy. But not for the reasons provided in the article.

USDT is the most traded asset against other crypto because it is the easiest vehicle to use for all sorts of arbitrage. USDT is available to trade with on every non-US exchange and it is the easiest asset to move around. As overall market size increases, it makes sense that demand for USDT is increasing because it is used in most of the trading/arbitraging/etc...

When looking for highest USDT/USD trading volume, it isn't Kraken that you should be looking at, but Curve. Curve is a DEX that does largest amounts of stable coin trading volume. Curve also has incredible liquidity depth. Right now, you can go there and exchange: 10 million USDT to 9.99 million USDC in a single transaction. USDC can be cashed out for USD very easily and is regulated not just by regular US regulators but also NY financial department too, which is the most aggressive regulator to ever exist probably. If you wanted to, you would be able to cash out billions of USDT to other NY regulated stable coins in a single day.

While USDT is certainly very sketchy, it is the dominant market player specifically because of its sketchiness (and due to it being the first one). USDT's independence from US regulators is a huge plus for most of the major non-US crypto players. Those players would be more worried about holding USD (or USDC) directly, because they are more worried about US government freezing their funds, rather than Tether going insolvent.

tzone··on Attacking the DeFi ecosystem with flash loans for fun and profit (2020)
I think you are few years behind from current state of the ecosystem. You can easily go from Eth -> renBTC (on Ethereum) -> BTC (on Bitcoin chain). None of those steps require KYC/AML or any kind of registration. You can move 100s of millions of dollars that way with very minimal slippage or fees.

It is very easy these days to go between Eth <-> BTC without any KYC/AML.

tzone··on Nocoiner predictions: 2021 will be year of comedy gold
Is this satire? The very first comment: "He believes the bitcoin ecosystem is running low on cash", is provably false since it is not just Tether that is increasing in MarketCap. USDC + PAX dollars have also increased in MarketCap to ~5 billion total now.

USDC and PAX are both regulated by US financial regulators, including NY.

There are plenty of ways to be skeptical of Bitcoin or Ethereum or rest of the Crypto, but this article is not it.

tzone··on You weren't meant to have a boss (2008)
Do you actually have any experience or even a remotely internal view of how much CEO actually matters in multi billion dollar companies? Or are you just making incorrect assumptions based on no actual knowledge and experience?
tzone··on Robinhood now valued at $11.2B with new fund backing
I don't know, Vanguard is pretty good for what its supposed to be used for. You can get money in and out real fast. Even very large sums of money. You can trade without waiting for full settlement and all that, to make all the proper large rebalancing trades quickly without losses. You can have all your retirement accounts in it and tax management and integration works well.

Their flows are all pretty smooth, you really don't need slick UI to make 3-4 trades a month at most.

Of course you do need slicker UI when you are essentially offering an online casino to your users. Nice colors, engaging UI, etc is important to keep your audience entertained and to have them roll the dice more often.

tzone··on Co-founder of Gokada found decapitated, dismembered inside New York condo
Credit Karma being a Foreign Data Collection scheme makes no sense. They are in the process of being acquired by Intuit, unless you think that Intuit is also tied to Foreign countries too, which would make even less sense. Just because one of the founders happens to be of Chinese descent does not automatically make a company a foreign spying tool.
tzone··on MIT 6.001 Structure and Interpretation (1986) [video]
I think you can spend your time learning much more useful things in Software Engineering than learning Lisp or Scheme.

Examples:

* Learn about type systems: advantages and disadvantages of various modern (or older) type systems: c++, java, typescript, rust, go, etc... Understanding pros and cons of various type systems would help you improve as a software engineer, and make you better at designing proper abstractions and apis in whatever language you are working in.

* Learn about concurrency primitives, asynchronous event loops, parallel programming, etc. In modern software engineering pretty much every type of work involves concurrency, understanding what type of primitives exist in different platforms and languages, and what are their pros and cons would make you much more effective as a software engineer overall.

* Learn about data structures in scope of data storage and data transfer in practice. Get understanding of network i/o, disk i/o, how things get stored in memory, how things get stored persistently. This stuff is way more complex and way more useful in practice than learning about slightly different ways of doing computation or calling functions in a programming language.

* and many more...

I would say in modern software engineering, part of "how to express basic computation" is really the least complex and least interesting of the bunch. You can skin that cat many ways but compared to many other challenges, it is in my opinion at the way bottom in terms of importance.

tzone··on HSE: Heterogeneous-memory storage engine designed for SSDs
All storage engines prioritize performance? Back in the day, way before WiredTiger got acquired by MongoDB they also had very similar graphs showing perf differences with RocksDB and InnoDB: https://github.com/wiredtiger/wiredtiger/wiki/Read-scalabili... https://github.com/wiredtiger/wiredtiger/wiki/iiBench-result... https://github.com/wiredtiger/wiredtiger/wiki/YCSB-Mapkeeper...

And of course RocksDB has had similar graphs to showing perf against other systems.

Every system manages to find a benchmark that fits their narrative :)

Reality is both RocksDB and WiredTiger are high performance storage engines, and they are both optimized for SSDs too. These type of benchmarks rarely tell real story.

tzone··on Covid-19: the harms of exaggerated information and non‐evidence‐based measures
It takes ~2 weeks for a person to die after they get infected. So when you are looking at numbers from Germany, you should look at current death count / number of infected somewhere around 10-14 days ago.

While virus is actively spreading, taking "current death count / current total infected", can easily underestimate mortality rate by 5-10x because it takes quite a while from infection -> death.

tzone··on NYC Active Major Construction
High housing prices aren't simply matter of supply and demand though. At least not what would be considered expected/desirable demand. Large part of demand on NYC housing, is as investment units. Because of very favorable tenant laws, investment units don't even get rented out, because it isn't worth renting it out and dealing with the tenant laws. So there are a lot of units in Manhattan that are actually unoccupied. More than that, there are also new housing units that are clearly built to be sold more as investment units than as actual primary residencies.

That is only one example of pretty complex dynamics. There are many other complex issues, including mortgage rates, more nuances about tenant laws and renting out apartments, extra costs associated with selling/buying houses and so on.

It is a pretty complex situation. Another big part of the equation is that there are a lot of wealthy people who benefit from high housing prices that continue to increase, so it is very unlikely that things will change towards other direction any time soon.

← PreviousPage 2 of 3Next →