Better HN
topnewbestaskshowjobs
Log inSign up

spir

1,169 karma · joined Dec 16, 2010 (15y ago) · 291 submissions

https://twitter.com/ryanberckmans
Submissions

comment 7y ago · link · parent

I recently learned that Scala.js doesn't yet support generating TypeScript *.d.ts type definitions. I intend to open a Gitcoin bounty to get this work done.

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

Phase 0 of Ethereum v2 arrives in Q1 2020. Coming since 2014 but finally arriving :)

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

We should support public goods like the Ethereum Name Service https://ens.domains/

You can register a domain at https://app.ens.domains/

comment 7y ago · link · parent

.eth, the Ethereum Name System. https://ens.domains/

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

I ran an information site for an Ethereum project[1] and was pleased to see that our first revenue came from visitors' BAT donations. It wasn't a lot of money. But, it was fully automatic and easy to use. Our site earned BAT before we even signed up as a publisher. I signed up to claim the money.

[1] https://predictions.global/

comment 7y ago · link · parent

This only used to be true. The state of the art of Ethereum has very effective microtransactions. This will improve again by orders of magnitude within the next three years.

For example, see https://comingsoon.idex.io/ which is state of the art.

comment 7y ago · link · parent

I spend a lot of time studying blockchain and Ethereum and wanted to clarify your remarks.

  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

Here's how monetary and non-monetary transaction costs are relevant to a Coca-Cola supply chain --

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

Yes, I'd agree that, today, typically nobody is checking to make sure that an Ethereum transaction is legal.

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

Blockchain (ie. Ethereum) is, overall, a reducer of monetary and non-monetary transaction costs.

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

Because while the core innovation of blockchain is a trusted database a context without trust, the core benefit of blockchain is reduced transaction costs.

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

> a digital currency backed by a floating basket of currencies

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

Thanks!

comment 7y ago · link · parent

noric-bot has been extremely useful as a test tool, if a bit narrow due to just spamming random cmds. To your point, the bot in its present form can't automatically run a dungeon or verify edge cases.

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 project isn't open source or playable yet. Working on a playable demo!

I'm active on the MUD Discord. I'm registered for the MUD Coders Guild but am allergic to Slack :p

ryanb#6419 on Discord

comment 7y ago · link · parent

Thanks for the feedback. I have updated the README to use less inflammatory language and be more specific that the comparison is just for the type system.

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

Really polished UI!

comment 7y ago · link · parent

If you like MUDs check out the new, excellent, and often-updated https://www.titansoftext.com podcast :-)

comment 7y ago · link · parent

Thanks, updated.

comment 7y ago · link · parent

Fair enough. I try to spend as little time as possible on the bot and more time on the game itself :-)

The bot you describe sounds cool -- would love to see it!

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

Such a 51% attack is much more expensive in Ethereum 2.0 vs. Ethereum 1.0 and Bitcoin:

  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

Scala 3 launches in 2020 after a new compiler was written over a five year period. The new compiler is named "Dotty".

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/

1
678910