jonc211

joined 1 year ago
[–] [email protected] 26 points 6 hours ago

I told you. I’m not Xena, I’m Lucy Lawless

[–] [email protected] 12 points 3 days ago (2 children)

https://mitpress.mit.edu/9780262046305/introduction-to-algorithms/

This one is pretty hardcore. I bought the 2nd edition of it over 20 years ago when I started my career as a developer due to not doing a CS degree.

[–] [email protected] 119 points 5 days ago (2 children)

It’s not necessarily how far things are, it’s that you need a car to get to places in a sensible way.

I’m a fellow Brit, but have stayed in suburban US enough to have experienced how different it is. You might have a supermarket a couple of miles away, but if you want to attempt to walk there, you’ll often be going well out of your way trying to find safe crossing points or even roads with paved sidewalks.

Train stations are mostly used for cargo in most US cities. If you don’t have a car, you’re pretty much screwed.

Some cities are different. NYC being the obvious one. You can get about there by public transport pretty easily in most places there. San Francisco is another city that is more doable without a car, but more difficult than NYC.

I stayed near Orlando not too long ago and there it’s just endless surburban housing with shops and malls dotted about mostly along the sides of main roads. You definitely need a car there.

[–] [email protected] 3 points 5 days ago

Also take a look at the Specification Pattern for something similar.

That’s something I would only use if the logic becomes very complex, but it can help break things down nicely in those cases.

[–] [email protected] 5 points 1 week ago

An annual degradation of 1.8% over 20 years gives more than 69% capacity the end of the period, so it’s better than what you posted.

Each year, you have 0.982 of the previous year’s capacity (1 - 0.018), so the capacity at the end of the 20 years is 0.982 ^ 20.

[–] [email protected] 14 points 1 week ago (2 children)

I was unsure about this as I read the start of the article. The territories system allays most of my concerns though. It basically puts the onus on you to go and pro-actively defeat the worm that owns the territory before expanding into it.

If it had been the case where the worms can come and attack you wherever you are, I think that would have been a nightmare. Glad there seems to be a reasonable balance.

[–] [email protected] 8 points 2 weeks ago

But it’s not a mini pig. It’s over 200 miles long

[–] [email protected] 2 points 3 weeks ago (3 children)

Why the assumption that reactivity is only a front-end thing?

I’ve used it plenty on the back-end when dealing with streams of data that need to trigger other processing steps.

[–] [email protected] 20 points 4 weeks ago (2 children)

I mean, why does anything have value?

In the strict financial sense, something is only worth what somone else is willing to pay for it. That's the whole premise of financial trading. Getting a bit beyond ELI5 now, but most exchanges use something called a Central Limit Order Book (CLOB) to let the participants in the market see who wants to buy and sell what and for how much, and also to match those buyers and sellers. This is a good intro: https://optiver.com/explainers/orders-and-the-order-book/

In terms of shares in companies, then they do have some fundamental value according to the market. If you buy a share in the company, you get a share of the profits (paid as dividends), which gives those shares some value. Obviously, there's a lot of speculation too as people are involved, so emotions and wild predictions can come into play!

Financial instruments that get traded aren't limited to shares in companies though. There are all kind of other financial instruments that get traded every day, some are pretty basic like buying and selling different currencies. Others involve all kinds of crazy financial engineering , like the sort that caused the crash in 2008!

Most have some fundamental value based on their attributes, so it's a little different to the likes of an NFT. The big issues come if the values that the market has agreed upon don't match reality, which is what happened in 2008.

[–] [email protected] 61 points 4 weeks ago (5 children)

If you strip things back, the most fundamental point of a market is to bring buyers and sellers together and to enable price discovery.

The price of a financial instrument you see on a stock exchange or similar is simply the last traded price between a buyer and a seller. If you want to buy or sell something, then the price you get depends on who wants to sell/buy on the other side and what price they have put an order in for.

The more trades going on in the market, the more likely it is that you will be able to buy at a price close to what you see as the last price in the market.

If you only allow trading every hour, then you lose some of that price discovery.

Additionally, as already mentioned, trades would likely still happen, but away from the designated marketplace. If I want to sell something, then I may just ask who else has the thing I want to sell and try to negotiate a price directly with them.

That way, fewer trades happen in the marketplace and more trades happen in private away from there.

That sort of limited trading does happen for some very niche products that don’t have a lot of potential buyers and sellers. For common financial instruments, have a lot of participants wanting to trade, having a centralised marketplace helps avoid the issues that would come otherwise.

Now, you can argue that in practice it doesn’t work as well as the theory, and I would agree there. If you are a HFT, then you can make money by getting in milli or microseconds ahead of others.

For a lot of market participants, that doesn’t really matter though. The big banks typically don’t do that sort of trading. They are buying and selling on behalf of their clients, both individuals and companies that want access to the market. The bank makes their money by charging a margin to their client (similar to how it works for pretty much any retailer), and the fact that the HFTs are making all these trades helps them with price discovery and liquidity (ensuring there is someone to buy what they want to sell, or sell what they want to buy)

[–] [email protected] 16 points 4 weeks ago
 

I've just set up arcosphere balancing in my K2SE playthrough.

My set up is relatively simple, though it uses a lot of combinators! I'm taking the inputs for a recipe as signal I and the products as signal P. If I > P then I request the inputs for that particular recipe.

I then added a slight tweak to multiply the products by 1.1, so the inputs need to exceed products by 10% before the request comes through.

Initially, it never reached equilibrium and the gravimetrics facilities would keep churning away. With the extra 10% buffer, it settles down a lot more easily and kicks in only when things start to become more unbalanced.

I've been producing naquium tesseracts and DSS3 data cards for a while now and it seems to be hanging together.

I had a hiccup early on when I ended up really unbalanced due to the length of time bots were in the air with arcospheres leading to the balancing running amok. My fix for now has been to move DSS3 and tesseracts close to the balancing area, but not sure this is going to be sustainable. Let's see!

view more: next ›