Better HN
topnewbestaskshowjobs
Log inSign up

spir

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

https://twitter.com/ryanberckmans
Submissions

comment 6y ago · link · parent

Here's a great talk given by Martin Odersky, "A Tour of Scala 3" https://www.youtube.com/watch?v=_Rnrx2lo9cw

That talk is almost a year old now :) a lot of progress has been made towards launching Scala 3. The latest Dotty release was March 18 https://dotty.epfl.ch/blog/index.html

Scala 3 combined with Scala.js and GraalVM native compilation will be a killer stack :). You can write code that's as high level as python and typesafe as Haskell. Use the same code on the backend and in-browser with Scala.js. Compile your code to statically linked native executables with instant startup time, great for CLI tools.

In terms of developer experience, Scala 3's compiler is much faster than Scala 2 because the data structure representing incremental compilation is not rebuilt for each compiler phase. The faster compiler can be used with Microsoft's Language Server for a delightful IDE experience, especially in VS Code which is the current recommended editor for Scala 3.

comment 6y ago · link · parent

It's less true now because some of the patterns associated with code that's difficult to understand have been deprecated or flagged by the community to avoid.

For example, implicit conversions are now disabled by default. It's possible in Scala to pass a Foo to a function requiring a Bar due to a chain of automatic conversions from Foo -> Baz -> BazMutable -> Bar. This is fun and magical but difficult to understand and debug. The community and language itself now suggests against this pattern.

Another example is that it's now (more or less) recognized within the community that it's not preferable to dogmatically adhere to a particular style of programming, such as pure functional or reactive/actors. It's better to use the right tool for the right problem.

Whole classes of confusing code are now prevented or mitigated by language changes in Scala 3. For example, Scala 2's implicits are famously hard to learn and follow within a codebase. One reason for this is that in Scala 2 the keyword "implicit" was overloaded into a few common patterns, including the aforementioned implicit conversions, typeclass instances, and dependency injection. Scala 3 introduces new constructs and keywords to split out these patterns into separate language features, making them easier to learn and more understandable within a codebase.

comment 6y ago · link · parent

I've worked with Dotty a bit and read about it a lot.

I am very excited about Scala 3 :)

Scala 3 isn't a python2/python3 situation. It will take years for large codebases to be upgraded to Scala 3. However, the tools to migrate code from Scala 2 to Scala 3 will be reliable and highly automated, due to Scala's strong type system. Most popular Scala libraries and frameworks will be available on Scala 3 right from the get-go. I expect that most Scala programmers and companies will want to write Scala 3 code asap.

Within the Scala community, the only truly divisive aspect of Scala 3 afaik is the introduction of optional python-style and Haskell-style syntax with significant whitespace. I was stridently against significant whitespace and now prefer it after having tried coding Scala 3 for awhile.

comment 6y ago · link · parent

In my mind, GraalVM native compilation has superseded scala-native.

GraalVM native compilation works really well. Many projects will compile to native out of the box. Many more with a bit of reflection config that's autogenerated. The native executables are slim, statically linked so they "just work", and startup instantly as one would expect.

Scala is now a great choice for CLI tools.

185.

Show HN: A Monte Carlo estimate of US deaths from Covid-19, written in Scala(scastie.scala-lang.org ↗)

3 points · by spir · 6y ago · discuss

comment 6y ago · link · parent

PSA: I just received a github phishing request that was not detected by Gmail. I almost fell for it.

Phishing email looks like a "review your suspicious activity" alert, but the alert is the suspicious activity.

https://imgur.com/a/zdtWmuN

187.

Magic, a passwordless login SDK that secretly onboards users to Ethereum(magic.link ↗)

3 points · by spir · 6y ago · discuss

188.

Tuesday 24 March comparison of coronavirus testing in USA vs. South Korea(twitter.com ↗)

1 points · by spir · 6y ago · discuss

189.

Covid testing positivity rate USA vs. South Korea over last three days(github.com ↗)

1 points · by spir · 6y ago · discuss

190.

A CLI report to show percent of newly tested people that have the coronavirus(github.com ↗)

1 points · by spir · 6y ago · discuss

comment 6y ago · link · parent

Citizens that are given Helicopter Money or UBI will then spend it at their discretion. This kind of free money is a complement to, not a failure of, capitalism.

comment 6y ago · link · parent

Many of us in the cryptocurrency community always knew this wasn't true. Unfortunately it's a misconception that was long and frequently advertised as recently as last week.

comment 6y ago · link · parent

Do any of these roles involve writing software?

comment 6y ago · link · parent

How does Google "select heavily for generalists" when the interview is almost entirely comp sci? Perhaps you mean "computer science generalist".

Afaik, the only way for me to get a software offer from Google is to spend dozens or hundreds of hours studying computer science, and nothing else.

If I interview for software at Google, they don't ask about my skills in product design, economics, or strategy. If I interview for a non-software role at Google, they don't ask about my experience writing software.

Show me a Google interview that's half software and half product. That's a role to which I'd like to apply :).

I think TFA argues that Google's org structure is not optimized to benefit from or hire cross-disciplinary generalists.

comment 6y ago · link · parent

Congrats! Awesome that you use Scala!

196.

$1B locked in Ethereum's DeFi(imgur.com ↗)

4 points · by spir · 6y ago · 1 comment

197.

Does the act of burning Ethereum transaction fees increase ETH's market cap?(twitter.com ↗)

1 points · by spir · 6y ago · discuss

198.

Proof of work costs Ethereum $700M+ per year and it's going away soon(medium.com ↗)

3 points · by spir · 6y ago · discuss

comment 6y ago · link · parent

I don't disagree :)

There's no silver bullet for 51% attacks, and proof of work uses unconscionable amounts of electricity, which is why Ethereum is transitioning to proof of stake.

comment 6y ago · link · parent

Interesting article on this topic:

https://blog.coinbase.com/how-coinbase-views-proof-of-work-s...

Also, Ethereum is transitioning to proof of stake which will make attacks much more expensive because an attacker must acquire large amounts of ETH for each attack.

comment 6y ago · link · parent

Yes, Ethereum is transitioning to proof of stake.

Proof of stake is more secure than proof of work because an attacker must acquire a large amount of ETH each time they attempt an attack. Attacks against proof of stake are incredibly capital-inefficient.

comment 6y ago · link · parent

> cryptocurrency era

Cryptocurrencies and their associated boom-bust market cycles are here to stay.

95% of blockchain development happens on Ethereum, and Ethereum is growing well, https://medium.com/@jjmstark/the-year-in-ethereum-2019-24201..., so the idea that there was a cryptocurrency era that's ended is not true.

comment 6y ago · link · parent

> AFAIK there aren't really any good solutions to prevent this problem

https://blog.coinbase.com/how-coinbase-views-proof-of-work-s...

> Coins at the greatest risk of 51% attack are the ones where there exists large amounts of hashpower not actively mining the coin that could begin mining and disrupt the coin’s blockchain.

Also, Ethereum's upcoming transition to Proof of Stake is not contentious, it's a large-scale project years in the planning and execution.

204.

The Year in Ethereum 2019(medium.com ↗)

3 points · by spir · 6y ago · discuss

comment 6y ago · link · parent

As a technical matter, it will be cheap and convenient for an Ethereum user to buy $200 of an asset one hundred times instead of $20,000 of that asset once.

Programmatic money has a blurring effect on the definition of a "transaction".

comment 6y ago · link · parent

A hundred years ago a wonderful slender book was written, "How To Live On 24 Hours A Day" by Arnold Bennett. He suggests getting up early and doing your passion projects before work.

https://www.amazon.com/How-Live-24-Hours-Day/dp/1603863680

comment 6y ago · link · parent

The interest rates are set by a governance group that collects data on supply/demand for the DAI stablecoin. The interest rates are a reactionary function of global spot supply and demand for DAI.

Their governance calls are open, you can join and watch them be money scientists.

Here's the link to the most recent governance call https://forum.makerdao.com/t/agenda-discussion-scientific-go...

comment 6y ago · link · parent

> whatever that crazy contraption is

The people who built "that crazy contraption" are pioneers in an industry that is going to help lift hundreds of millions out of poverty via cheap, non-predatory financial services and create trillions in wealth by further unifying the global market.

I am somebody who spends hundreds of hours per year reading about Ethereum and blockchain. I could stop doing this whenever I want, I'm not bound by my employer or anything.

I keep at it because the underlying technology and things being built with it are amazing and valuable.

If you take one thing away from this thread, let it be that Bitcoin is the "Ask Jeeves" of cryptocurrency and the future is actively being built on Ethereum.

comment 6y ago · link · parent

Have you guys considered decoupling your physical cash technology from the underlying token?

Physical DAI or ETH would be most excellent.

1
678910