1,169 karma · joined Dec 16, 2010 (15y ago) · 291 submissions
comment 7y ago · link · parent
Have you had any success using Scala.js-generated JavaScript in TypeScript projects?
I'm quite interested in a full stack of create-react-app + TypeScript + graphQL + front end libraries written in Scala + back end services written in Scala.
212.
Why ETH has intrinsic value based on free cash flow(reddit.com ↗)
2 points · by spir · 7y ago · discuss
comment 7y ago · link · parent
Proof of stake reduces the issuance of new ETH to pay for the cost of securing the network. It's cheaper than paying miners. And anybody can buy ETH to stake so it's more egalitarian than mining which requires economies of scale in hardware and electricity.
214.
Most users of Ethereum are FinCEN money transmitters. Where do we go from here?(twitter.com ↗)
1 points · by spir · 7y ago · discuss
215.
Walmart Canada Launches Largest Blockchain for Supply Chain Management Ever(newswire.ca ↗)
1 points · by spir · 7y ago · discuss
comment 7y ago · link · parent
You can register a domain at https://app.ens.domains/
comment 7y ago · link · parent
You can register an ENS domain here https://app.ens.domains/
ENS is mature, but the tld is not yet wired into dns. For now there is a bridge of *.eth.link, eg. https://almonit.eth.link/, see https://medium.com/the-ethereum-name-service/ethdns-9d56298f...
comment 7y ago · link · parent
comment 7y ago · link · parent
For example, see https://comingsoon.idex.io/ which is state of the art.
comment 7y ago · link · parent
You need some sort of cryptocurrency for this as
microtransactions don't really work in the legacy
system.
Yes, you're right: Ethereum has lower transaction costs, lower non-monetary transaction costs, and ERC20 tokens are interoperable with other Ethereum-based services. Also by using their own token they can boot strap
the ecosystem cheaply as they can mint the tokens
themselves with the value accruing later after
network participants are onboarded and transacting.
This is a common sentiment that I believe is incorrect: if a project could use ETH or USDC instead of its own token, but still function correctly, then that token is malpractice. Such tokens are a blight on the blockchain industry.Projects like Augur and MakerDAO must have their own token or they wouldn't work at all. Augur and MakerDAO have healthy token economics.
I'm not an expert on BAT token economics, but I believe Brave would have been much better off using ETH itself or a stablecoin. afaik Brave's microtransactions don't require BAT to work and that makes BAT a bad token.
comment 7y ago · link · parent
Blockchain (ie. Ethereum) excels when a heterogenous network of 3rd and 4th parties come together in a commons and interact permissionlessly based on a set of rules enforced by the system.
Ethereum is basically the World Wide Web with hyperlinks except with programs in general and money can live inside those programs.
An Ethereum-based supply chain system could do a lot of things. Not sure if these are valuable because I'm not a supply chain expert. But I can speculate.
Coca-Cola's Ethereum-based supply chain system could...
1. associate an eBay-style reputation with each supply chain participant. These reputations could then be used by more parties (eg. Pepsi) than if they were locked in a centralized system. Coca-Cola might retain the option to override any reputation.
2. provide a global audit trail of supply tracking. Similar to FedEx's "track my shipment", except you could transfer payment for supplies in the same blockchain transaction that updated their status. And those updates could automatically feed into the reputation system.
3. pay for supplies with a security. For example, Coca-Cola could tokenize a portion of its common stock and pay suppliers tokens of common stock in the same transaction that pays them currency. Or Coca-Cola could automatically distribute a pro rata stock grant to the entire supply chain each quarter. This could better align a global, heterogenous supply chain with the long term interests of Coca-Cola.
4. integrate with other Ethereum-based systems. For example supply payments held in escrow could automatically earn interest in https://compound.finance/. Payments crossing international borders could automatically exchange currencies at a very competitive, no-fee rate (eg. https://dex.ag/).
Should Coca-Cola embrace an Ethereum-based supply chain? I have no idea. But after spending hundreds of hours studying Ethereum I feel very confident that there is something very special going on here.
comment 7y ago · link · parent
But, it's important to understand that Ethereum is not a replacement for or opponent of KYC, AML, or checking if transactions are legal. Ethereum is a starting point, a base layer. It is necessary to rebuild all kinds of monetary controls into Ethereum's app layer. I support this development. Within 5-10 years all of the traditional controls will become available on various parts of Ethereum -- KYC, ability for government to freeze accounts, etc.
comment 7y ago · link · parent
Example of reduced monetary transaction costs:
The current Ethereum gas price for a token transfer is $0.04 (https://ethgasstation.info/). Operations on Ethereum are relatively inexpensive and will become much cheaper with Ethereum v2 in a couple of years. The cost of Ethereum operations is orthogonal to the value of the money being manipulated. You can transfer $100M for $0.04.
Example of reduced non-monetary transaction costs:
Say you wanted to launch an eBay-type app with a single market for a dozen countries. Some customers may bring Euros, others Swiss Francs, some USD. Each market auction selects a currency from a whitelist. All bids for that auction must be in its selected currency. On Ethereum you can bid Swiss Francs which will be dynamically exchanged for USD. Unlike using your VISA for forex, this currency exchange is at the same price that whales and banks get; you pay no spread fee for being an end consumer. The non-monetary transaction cost part is that this Ethereum-based currency exchange API can be permissionlessly integrated in an afternoon.
2nd example of reduced non-monetary transaction costs:
https://www.pooltogether.us/ is a no-loss, audited, provably fair lottery built on Ethereum. The way the lottery works is -- you always get your money back, but your money bears interest during the lottery period, and all the interest goes to a single lottery winner. So the cost of the lottery is the time value of your money. PoolTogether is built on other Ethereum projects, that's why the lottery proceeds earn interest. The non-monetary transaction cost part is that PoolTogether is able to access interest-bearing deposits as easily as you can use jQuery. Also anyone in the world can participate - reduced cost of being in another country.
comment 7y ago · link · parent
A blockchain is a singleton global computer of program code and data. It turns out this is sufficient to represent capital (money) on that computer.
In practice this results in dramatically reduced transaction costs. For example you can transfer money with an API call.
Another example is that an API can be "implemented with money". The https://uniswap.io/ API allows you to exchange currencies without any API keys or middlemen. But, the Uniswap API only works because there's a large amount of liquidity deposited by 3rd parties into its system, much like an inventory of food in a grocery store that shoppers can then access.
"What's the big deal?", you might say. "Uniswap sounds just like a bank. Who cares?". Well as I understand it Uniswap was built by a dude in a basement over a few months, not a multi-million dollar bank project. And you can integrate your app with Uniswap in an afternoon. If you don't think that's going to change the world then you might consider spending a few dozen hours reading https://weekinethereumnews.com/ and see if your opinion is stable :)
225.
Why I like Scala(medium.com ↗)
11 points · by spir · 7y ago · discuss
comment 7y ago · link · parent
This will be live by the end of 2019 in a similar form.
The MakerDAO stablecoin system on the Ethereum blockchain produces the DAI stablecoin, with 1 DAI pegged at 1 USD. There's currently $85M of DAI in circulation.
Each $1 of DAI is backed with $1.50 of Ether, the currency of the Ethereum blockchain.
Later this year a major upgrade will go live named "MakerDAO multi-collateral DAI". The "multi-collateral" bit is related to a basket of currencies.
By Q1 2020, the DAI stablecoin will be backed still by ETH, but also backed by USDC (a US dollar stablecoin run by Coinbase), REP (a token for the Augur decentralized prediction market), and other tokens.
Not exactly "a digital currency backed by a floating basket of currencies" but a related concept and in production very soon :-)
https://mkr.tools https://vote.makerdao.com https://makerdao.com
comment 7y ago · link · parent
A previous version of the server codebase was written in ruby[1]. The playable branch of that repo has a combat demo that's a bit fun, however the performance is so terrible that I shelved the whole codebase years ago.
As a long-term vision I'd like to launch an indie MMORPG that supports at least 1,000 players per synchronous, single-threaded server. It's an item/equipment focused game. Each player may have hundreds of items with a total of thousands of affects. noric-bot helps me stay on track with that goal.
What bugs did you find or do you hope to find this way?
The server is an actor-based "distributed system" using Akka. I only ever run it on one jvm but in theory it could be clustered. The bot helps find performance bottlenecks and actor-related edge cases.The server runs at 4fps and Very Bad things happen if the 250ms frame time budget is routinely exceeded. The bots use a special password to spawn "fully loaded" player mobs with hundreds of items and ~1k affects. This helps me see bottlenecks like saving/persistence, I/O, Akka mailboxes growing, time spent processing player cmds vs moving the simulation forward naturally, etc.
Sometimes the bot will find logical bugs. This is usually in the context of assertions I've added that the bots will trigger.
I'll routinely write fake commands that bots will spam to execute scenarios that otherwise would be unreachable (if only due to lacking gameplay functionality at this early stage).
Often I'll just run the bots for fun and see how the game feels with a lot of other "players" running around :-)
[1] https://github.com/ryanberckmans/NoricMud ruby codebase
comment 7y ago · link · parent
The new text is
For me, from a type system perspective,
going from TypeScript to Scala is like
going from JavaScript to TypeScript.
(I love TypeScript and write a lot of it!)comment 7y ago · link · parent
235.
Show HN: Noric-bot – A bot to stress-test text-based MUDs, written in Scala 3(github.com ↗)
116 points · by spir · 7y ago · 67 comments
comment 7y ago · link · parent
To improve this, the broker can throw out the best
performing clients, since they might genuinely
know what they’re doing.
This practice is pervasive in sports betting. It's a common practice to ban winners, especially in the US and UK.https://augur.net is an Ethereum-based betting market that will help traders/bettors avoid these kinds of malicious practices. Augur v2 is being developed now, you can expect it to be Really Cool by about April 2020. Millions of dollars will be wagered on Augur for the 2020 election.
comment 7y ago · link · parent
The cost profile of a repeated 51% attack in [Ethereum 2.0's Proof of Stake]
is as if “your ASIC farm burned down” with each additional round.” ~Vlad Zamfir
And 95% of techstars blockchain applicants are building on Ethereum For all the fud that is doing the rounds about Ethereum...
of the hundreds of applications I receive from blockchain
startups to join @techstars, 95% are building on Ethereum.
There hasn’t been any significant shift to other chains in
what I’m seeing on a daily basis. [1]
So this kind of potential 51% attack is likely to become less relevant for blockchain applications in general. Of course Bitcoin doesn't benefit from these improvements. Bitcoin may one day even reside within Ethereum.If you read this far and aren't familiar with the latest progress of Ethereum, consider trying out 4.95% interest rate on your money with Ethereum's Compound Finance https://app.compound.finance/asset/cUSDC . Here's a good article discussing the security implications of doing this with your money https://medium.com/@ameensol/what-you-should-know-before-put...
[1] https://twitter.com/yossihasson/status/1169571179650322433
comment 7y ago · link · parent
A Tour of Scala 3 https://www.youtube.com/watch?v=_Rnrx2lo9cw
Also, GraalVM's ahead of time compilation is somewhat of a competitor to Scala native https://www.graalvm.org/docs/reference-manual/aot-compilatio...
Cat is great, this book is too http://underscore.io/books/scala-with-cats/