Live data from Hacker News

Building an economy simulator from scratch

thomassimon.dev

51–60 of 217 posts

Re: Building an economy simulator from scratch

#51
post #30

Simulation 16 is hilarious. By the state dynamically scaling how much they print money in order to support government workers, government workers accumulate more wealth than the producers of goods.

Those that actually produce goods are very far down the wealth pecking order

And the social pecking order, it would seem.

Re: Building an economy simulator from scratch

#53

I've long had the fantasy of an economics simulator given dwarf fortress levels of dedication and attention to detail. This might not be it, but it does warm my soul a bit.

Tropico series is simple but fun.

The bulk of it is obvious Capitalism vs Communism political jokes though, so I wouldn't consider it a very serious economic simulator. But its better than most IMO.

Re: Building an economy simulator from scratch

#54

This is interesting, in that I've tried to come up with simple simulations like this for strategy games before. But I was a little "eww" when he kicked the number of government workers up to 40% of the workforce. Looks like it goes all the way up to 50%. On simulation #13, where tax is fixed at 10%, the government workers all eventually starve. Surprisingly, the libertarians are correct because at this point the qual…

> After, the developer then introduces ration tickets. This is simulation #20, and I'm pretty sure it's Zimbabwe. But it's not the real world Zimbabwe, it somehow works. That is, if you're ok printing trillion dollar bills.

In a cashless society, I suspect the zimbabwe method would actually probably work. The only hangup was "Now I need to crate around boatloads of money". In a cashless society, we can just move the decimal point every so often.

Re: Building an economy simulator from scratch

#56
post #5

dont' mistake a beautiful map for the territory, you'll find yourself lost amongst lines that aren't a real place.

On Exactitude in Science By Jorge Luis Borges …In that Empire, the Art of Cartography attained such Perfection that the map of a single Province occupied the entirety of a City, and the map of the Empire, the entirety of a Province. In time, those Unconscionable Maps no longer satisfied, and the Cartographers Guilds struck a Map of the Empire whose size was that of the Empire, and which coincided point for point with…

nice, you beat me to this gem (with a side of Lewis Carroll and Baudrillard) because I was finishing work

the lesson is, never try

edit OH and the other part is that it was staged literary forgery by "Suarez Miranda, Viajes de varones prudentes, Libro IV, Cap. XLV, Lerida, 1658." Borges overclocked the meta

Re: Building an economy simulator from scratch

#57

This is interesting, in that I've tried to come up with simple simulations like this for strategy games before. But I was a little "eww" when he kicked the number of government workers up to 40% of the workforce. Looks like it goes all the way up to 50%. On simulation #13, where tax is fixed at 10%, the government workers all eventually starve. Surprisingly, the libertarians are correct because at this point the qual…

> at this point the quality of life index abruptly rockets up That's because on this simulation the government isn't doing any useful work. The ration tickets work because the people were programed to actually follow the law. It fails every time on the real world because real people aren't. And the simulation #20 works because the simplistic model actually works. At a first approximation, inflation isn't a problem at…

The "useful work" was implied. That is, the assumption was the government was perfectly valuable to society with relation to the cost it incurred. It might've been interesting to see the government throw money at the farmers every year or so, though.

Re: Building an economy simulator from scratch

#58
Beautifully made and illustrative of a currently non-existing branch of economic education, if not economic theory itself.

While people get to be force-fed all sorts of complex subjects at school, economics does not feature prominently.

The result of this widespread economic illiteracy is easily seen at the quality of political discourse.

Re: Building an economy simulator from scratch

#59
post #19
post #6

Is the source code for this simulator available anywhere? The post's code itself is minimized/obfuscated: https://thomassimon.dev/assets/cashloss.1fca21f6.js I couldn't find anything on the author's GitHub. I'm mostly just curious how it's built.

Author here, if there is enough interest I can clean the code up and put it on GitHub. It is basically a state machine.

I'd appreciate it. :D

Re: Building an economy simulator from scratch

#60
The simulation only has workers/producers and it has a free market – it is missing capitalism. To make it realistic you need a subset of people owning the labor output of others, taking out all the surplus, using it to buy stakes of more economic activity, diverting profits to themselves, thus creating the loop of concentration of wealth which removes the surplus wealth from the producers and assigns it to ever decreasing number of ever wealthier individuals.
Post reply on HN