News for hackers. Stuff that matters.
Re:Fe: next generation smart contract language for Ethereum by Gigachad on Tuesday December 06, 2022 @01:10AM (#33876465)
What value did any of this provide to the world? Just reads like a buzzword soup where finance bros find more and more obscure ways to leach money.
Re:Fe: next generation smart contract language for Ethereum by chrisco255 on Tuesday December 06, 2022 @01:31AM (#33876555)
Automated Market Makers, like Uniswap, provide open, accessible, auditable, open source, extensible, liquidity to the world wide web. Anyone with an internet connection gets access to the market. Market access is taken for granted by Americans, but it should be noted that even here, Uniswap is superior to a NYSE or Nasdaq exchange along several vectors (openness, 24/7 availability, censorship resistance, full auditability, permissionless access, fair market making, etc).

Tokens are also fully programmable, and that enables a number of primitives that are not possible with stock certificates or grain contracts. For one, they can easily be held within a multisig smart contract wallet, governed by configurable rules for spending (in an M-of-N scheme). This makes it frictionless to set up a small group or organization on the internet even if the participants are in 7 different countries. This helps to coordinate human and financial capital, because rules can be programmed in the DAO or multisig to prevent one person from stealing all the funds. Since everything is on-chain, everything is above the board. Very difficult to arrange this with traditional corporate checking accounts, and even then, one executive ultimately controls the account.

Those two alone would be huge and worth it for humanity, but I listed more on that list and I'm running out of time for a reply. But I invite you to analyze the products yourself. Try them on testnets for free if you like.

Re:Fe: next generation smart contract language for Ethereum by dmitriid on Tuesday December 06, 2022 @01:45AM (#33876628)
> This helps to coordinate human and financial capital, because rules can be programmed in the DAO or multisig

"Rules can be programmed (in esoteric programming languages using new made up terms for everything)" and frictionless in one sentence. Smh.

Re:Fe: next generation smart contract language for Ethereum by chrisco255 on Wednesday December 07, 2022 @02:48AM (#33891750)
Very simple explanation: imagine you want to start a software company with 5 people you met on the internet. You each live in 5 different countries. How do you decide who holds the treasury? How do you decide which jurisdiction to register a partnership agreement in? There's a lot of friction there. And a lot of trust involved. Even if one person takes it upon themselves, the other 4 members have to trust the 1 guy in charge of the legal org & bank account won't rug pull on them and run off with the money or spend it needlessly.

With a multisig smart contract wallet (https://gnosis-safe.io/), it's frictionless to setup a simple smart contract for holding the treasury and for enacting M-of-N rules on any expenditures from that multisig. This may be a 3 of 5 signature requirement or even a 5 of 5 signature requirement. It's fully programmable. So when starting a Web3 project, it's possible to jump into a partnership with a group and be productive without having to worry as much about establishing trust, navigating five different jurisdictions for employment agreements, or centralizing control in a single person.

In addition, far more elaborate org structures are possible, and there exist plenty of tooling for making those happen without even needing to know how to code (https://juicebox.money/, https://daohaus.club/).

Solidity is not all that esoteric. It's similar in syntax to JavaScript, but it's statically typed. There are also widely recognized and audited open source code bases to build off of (https://www.openzeppelin.com/contracts). And tons of developer tooling (https://docs.ethers.io/v5/, https://wagmi.sh/), along with countless resources on the web.

Re:Fe: next generation smart contract language for Ethereum by dmitriid on Wednesday December 07, 2022 @03:31AM (#33892019)
> Very simple explanation: imagine you want to start a software company with 5 people you met on the internet.

This is sufficiently rare that "traditional" finance hasn't come up with a product for that. Or maybe it has, but it's just as obscure as Gnosis.

> It's fully programmable.

You keep saying this as if this was a desirable quality.

> Solidity is not all that esoteric. It's similar in syntax to JavaScript

It doesn't make it not esoteric. It doesn't make it Javascript.

It's its own language with its own idiosyncrasies, its own lingo, its own terminology (so much of the terminology in the crypto space is just absolutely random bullshit people came up on the spot for things that already exist in the language).

There are no tools, no way to debug, no way to revert a deployment, no way to upgrade a "contract" etc.

And it's so bad that repeated audits and bug hunts routinely fail to find issues in the code of even the simplest contracts.

Re:Fe: next generation smart contract language for Ethereum by chrisco255 on Wednesday December 07, 2022 @05:34AM (#33892801)
> This is sufficiently rare that "traditional" finance hasn't come up with a product for that. Or maybe it has, but it's just as obscure as Gnosis.

Traditional finance doesn't have an answer for this. It's not rare at all. I personally work with people from Argentina, Denmark, Canada, Serbia, Croatia, Australia and Hong Kong. It's very common to work in a fully distributed online manner, using chat products to communicate. It's very easy to meet people in online hackathons, on Discord servers, on gaming platforms, etc these days, from all over the world.

Yes, programmability is always superior to non-programmability, as it is a superset of non-programmability. After all, you could always encode whatever non-configurable properties you wanted as part of the ruleset for the contract or asset.

> It doesn't make it not esoteric. There are no tools, no way to debug, no way to revert a deployment, no way to upgrade a "contract" etc.

At this point Solidity is 7 years old. There are more than 200K developers that have learned it (50K from ETHGlobal hackathons alone: https://ethglobal.com/), 20K stars on Github, 44 million smart contracts have been deployed to ETH mainnet, 60K people watched Devcon Colombia vids a couple weeks ago (6K attended in person), 20K attended ETHDenver earlier this year, etc.

There's tons of tools: Hardhat (https://hardhat.org/) - for JS based task running, deployment, testing, debugging, etc. Even deploys a local chain or allows you to fork a copy of mainnet locally to test against.

Foundry (https://getfoundry.sh/) - if you want to run your build/test/debug tool-chain in Solidity

WAGMI (https://wagmi.sh/) - Robust React hooks for client-side interactions with smart contracts

Ethers.js (https://docs.ethers.io/v5/) - Client side lib for interacting with Solidity primitives like 256 bit numbers

Block Explorers like https://etherscan.io/ or https://beaconcha.in/

In the pareto distribution of smart contracts, the most consequential contracts get the most eyeballs, and after they've been deployed for years without hacks, in spite of holding billions in user funds, you can be reasonably assured of their security. If not, I invite you to use your superior powers of analysis to find a bug in:

Uniswap V3: https://github.com/Uniswap/v3-core (Currently open $2.2M bug bounty plus additional $3M reward for the Universal Router and Permit2 contracts https://uniswap.org/bug-bounty)

Or Aave V3: https://docs.aave.com/developers/deployed-contracts/security..., which has been audited by ABDK, OpenZeppelin, Trail of Bits, Peckshield, and SigmaPrime (up to $250K for critical bugs: https://github.com/aave/bug-bounty).

Also, see: https://docs.openzeppelin.com/learn/upgrading-smart-contract... about upgrading smart contracts. Not always desirable, but of course, entirely possible, thanks to the proxy pattern. There's also the alternative of doing "migrations" by wrapping an asset in another contract.

Re:Fe: next generation smart contract language for Ethereum by foxes on Tuesday December 06, 2022 @04:34AM (#33877515)
blub
Re:Fe: next generation smart contract language for Ethereum by rglullis on Tuesday December 06, 2022 @01:26AM (#33876539)
Don't you guys get tired of rehashing the same baseless arguments over and over again?

The value of decentralized platforms is that it gets rid of the tech bros and financial scams. Anyone, anywhere in the world, can make transactions independently, without having to blindly trust that the funds are actually there.

If people transacted using DeFI, there would be no FTX, no Coinbase, no VC trying to leech off the masses.

Re:Fe: next generation smart contract language for Ethereum by dmitriid on Tuesday December 06, 2022 @01:42AM (#33876612)
> The value of decentralized platforms is that it gets rid of the tech bros and financial scams.

Ah yes. No scams or tech bros. Except the implicit blind trust in programs written in esoteric programming languages on esoteric VMs that are rife with financial scams.

> If people transacted using DeFI, there would be no FTX, no Coinbase, no VC trying to leech off the masses.

Except that Uniswap is currently almost 100% automated bots "swapping" fictional tokens. And for anything useful you depend on centralized oracles. And for anything related to actual real world you must go through centralized entities.

Re:Fe: next generation smart contract language for Ethereum by lamp987 on Tuesday December 06, 2022 @03:41AM (#33877218)
"And for anything useful you depend on centralized oracles."

chainlink etc

Re:Fe: next generation smart contract language for Ethereum by dmitriid on Tuesday December 06, 2022 @07:27AM (#33878612)
> chainlink etc

Which are entirely dependent on centralised oracles etc.

Hint: if there are only 2/5/10 centralised oracles providing you with data, no amount of fluffy "decentralised tamper-proof inputs" statements make them such.

Re:Fe: next generation smart contract language for Ethereum by rglullis on Tuesday December 06, 2022 @06:37AM (#33878243)
> almost 100% automated bots "swapping" fictional tokens.

Even if that was true (which it is not) it is still valuable for the people that use it and for the liquidity providers who can employ their capital in a reasonably safe manner without relying on banks.

Re:Fe: next generation smart contract language for Ethereum by dmitriid on Tuesday December 06, 2022 @07:28AM (#33878625)
There's no such thing as "liquidity" in these fantasy land tokens. The absolute vast majority of things happening on uniswap is indistinguishable from Forex and flash loans, only in these fantasy tokens.
Re:Fe: next generation smart contract language for Ethereum by rglullis on Tuesday December 06, 2022 @08:13AM (#33879115)
I don't need to care about the "absolute vast majority" of the tokens to make use of Uniswap to exchange, e.g, Storj/BAT/ETH for DAI/USDC/EURS and to spend it for real goods.

All I need is to have a market of people willing to trade. If you don't see the value of it, fine. But just go find someone who got their PayPal account frozen with no recourse and ask them how much they would value the ability to trade in a permissionless network.

Re:Fe: next generation smart contract language for Ethereum by dmitriid on Tuesday December 06, 2022 @11:01AM (#33882184)
> I don't need to care about the "absolute vast majority" of the tokens to make use of Uniswap

I didn't say "absolute vast majority of tokens". I said "absolute vast majority of things happening on uniswap".

> All I need is to have a market of people willing to trade.

There's absolutely a market for people willing to trade. If there wasn't, Amazon, eBay, AliExpress etc. wouldn't have been multi-trillion behemoths they are.

Uniswap isn't a "market for people willing to trade". It's a market for people willing to engage in currency speculation and flash loans using fantasy tokens. Even you are saying this. Quote: "make use of Uniswap to exchange, e.g, Storj/BAT/ETH for DAI/USDC/EURS". There's nothing new or revolutionary in this.

Re:Fe: next generation smart contract language for Ethereum by rglullis on Tuesday December 06, 2022 @01:48PM (#33885089)
You are grasping as straws.

Speculation in markets are always going to exist. We have people making a living by speculating on the price of commodities, forex, company stock and event insurance policies. You calling them fantasy does not change the fact that there are people willing to trade them and does not change the fact that there is value in being able to do this without a central authority.

I gave the example of Storj/BAT precisely because these are business who are paying actual money for a service (Storj is paid for those hosting data, BAT distributed by Brave as a reward for those willing to receive privacy-protecting ads).

You could argue that the tokens themselves are not needed and that we could do it with cash, but that would be missing the point: such systems could not work on a worldwide scale as easily as they work now, and the speculation is a desired property of the system. Most people are getting into the network not because of the $5/month they get from seeing ads, but because of the possibility of the received tokens going up in value. At the same time, the people who do want to sell their tokens and get cash can do so.

Re:Fe: next generation smart contract language for Ethereum by dmitriid on Wednesday December 07, 2022 @03:34AM (#33892040)
> You are grasping as straws.

I am not. I am describing the absolute vast majority of cases on Uniswap.

> Speculation in markets are always going to exist. We have people making a living by speculating on the price of commodities, forex, company stock and event insurance policies.

Yes, but you're effusing that currency speculation and flash loans (majority of Uniswap) is this some new grand thing that never existed before. Reality disagrees.

> such systems could not work on a worldwide scale as easily as they work now

Forex was (and probably still is) a huge global market. I know because my friends spent a lot of time on it in early 2000s. Global market works easily, and at scale. For much longer and at much larger scale than anything crypto maximalists can even dream of.

> Most people are getting into the network not because of the $5/month they get from seeing ads, but because of the possibility of the received tokens going up in value.

Yup. Pure speculation. You're pretending it's something new, novel, and hasn't ever existed before.

Re:Fe: next generation smart contract language for Ethereum by rglullis on Thursday December 08, 2022 @11:53AM (#33910114)
> You're pretending it's something new, novel, and hasn't ever existed before.

At no point I said that what makes Uniswap (or crypto in general) valuable is the speculation in itself. The value of crypto is in the ability of doing things permissionlessly.

The value of Uniswap is not to that it is "better" than Forex. The value of Uniswap is that it lets people exchange value permissionlessly.

The value of ENS is not that it is "better" than the ICANN. The value of ENS is that it lets people control a stable, unique, global identity permissionlessly.

The value of crypto payment networks is not that it is "better" than Visa. The value of crypto payment networks is that it lets people make transactions around the world permissionlessly.

The value of Storj

> my friends spent a lot of time on (Forex) in early 2000s.

After jumping through all the required hoops, putting together minimum deposit requirements, passing KYC to show their legal standing with who-knows how many financial authorities... but what about those people who wanted to do Forex, but failed to pass any type of requirement? What about, e.g, people in Argentina who are forced to buy and sell dollars at the totally artificial rate imposed by the government?

> Global market works easily, and at scale.

If it works for you, great! Plenty of people who don't have the same luck.

> For much longer and at much larger scale than anything crypto maximalists can even dream of.

Nice strawman you got here. Where in this conversation was there any type of "maximalist" proclamation?