Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lihaoyi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
241.
▲
by
lihaoyi
6y ago
We're scaling out Scala to a larger team here at work, and part of the effort is certainly about putting in guardrails. In fact, a lot of it is putting in thr guardrails people like from Go: enforced autoformatting, banning unused vari
242.
▲
by
lihaoyi
6y ago
I actually came to Scala via F#. You can even find exact dates of those transitions in my stackoverflow history. Scala and F# are sinilar enough to basically be the same language, though I found F# had a number of warts and idiosyncracies t
243.
▲
by
lihaoyi
6y ago
> You use alternatives at your own peril. This means you won't be able to understand other people's builds, for example. The tradeoff is with SBT, you won't be able to understand your own builds! (This is kind of a joke, b
244.
▲
by
lihaoyi
6y ago
> - don't pretend the JVM and JS have identical runtimes when it comes to concurrency or numerics. Clojure is a language, not a platform abstraction. > - Emit efficient, optimally minifiable javascript code, at the cost of offeri
245.
▲
by
lihaoyi
6y ago
> Hard to win technical arguments with Scala geniuses that like using complicated language features. This is an interesting point. Perhaps part of the reason my current employer has been successful with Scala has been that we never were
246.
▲
by
lihaoyi
6y ago
The compiler has sped up 3x in the past few years. That's a very big speedup, and the current experience is likely nothing like what you remember
247.
▲
by
lihaoyi
6y ago
Yeah cold compiles are slow, but most modern tools keep a hot compiler to re-use and once warm a hot compile of hello world is more like ~200ms. There's a bit of complexity managing these daemons, but that's something that the bui
248.
▲
by
lihaoyi
6y ago
I use Scala with Mill and Bazel for my OSS and professional work respectively. I haven't used SBT in 3 years. The post-SBT world is wonderful!
249.
▲
From First Principles: Why Scala?
(lihaoyi.com)
286 points
by
lihaoyi
6y ago
|
329 comments
250.
▲
From First Principles: Why Scala?
(lihaoyi.com)
2 points
by
lihaoyi
6y ago
|
0 comments
251.
▲
From First Principles: Why Scala?
(lihaoyi.com)
2 points
by
lihaoyi
6y ago
|
0 comments
252.
▲
by
lihaoyi
6y ago
Yeah I decided to take these topics that I've been posting in random comment threads, and turn it into a proper article that I can circulate around :) Long form publishing isn't dead yet!
253.
▲
From First Principles: Why Scala?
(lihaoyi.com)
9 points
by
lihaoyi
6y ago
|
2 comments
254.
▲
From First Principles: Why Scala?
(lihaoyi.com)
7 points
by
lihaoyi
6y ago
|
4 comments
255.
▲
by
lihaoyi
6y ago
Yeah I don't disagree. Kotlin is great. I personally think Scala is a better Kotlin than Kotlin is for most use cases, with the exception of Android, but there's a big enough market to support multiple such languages
256.
▲
by
lihaoyi
6y ago
The community as a whole has definitely dialled back use of complex features. If you're used to Lift-era Scala, that was probably the high water mark in terms of "people having fun with confusing features and syntax", and thi
257.
▲
by
lihaoyi
6y ago
Yeah the line between FP and OO can be argued over. At my work it's pretty OO, with FP used where convenient. People join and start reading/writing Scala with zero experience or training, and it works out OK. At Stripe, I understa
258.
▲
by
lihaoyi
6y ago
Yeah the effort to speed up compilation around Scala 2.12 really took off. You can see it in the compiler benchmarks: https://scala-ci.typesafe.com/grafana/dashboard/db/scala-ben... Where the better-files lib
259.
▲
by
lihaoyi
6y ago
For most use cases you probably don't need Actors at all. How many systems do you see using Actors in Java/Python/Ruby/PHP/C#? Not many, and they get by just fine. A plain old web server handling HTTP/Thrift&#x
260.
▲
by
lihaoyi
6y ago
Not as fast as Go, but straight compilation is about ~3x faster than 2015, with many improvements around incrementality and IDE speed that make things a lot better. Compilation still isn't "as fast as Go", but has probably ap
261.
▲
by
lihaoyi
6y ago
I'd argue it's just "languages that are not Python struggle in this space". Python has an undoubtably unique ecosystem and gravity around ML, but that's more a unique advantage of Python than a weakness of every oth
262.
▲
by
lihaoyi
6y ago
Scala gets a lot of hate, but honestly it's a great language. As fast as Java with all the great tooling and ecosystem and compiler/IDE help, as concise as Python and just as usable for fast prototyping and rapid development. How
263.
▲
Build your own Command Line with ANSI escape codes (2016)
(lihaoyi.com)
62 points
by
lihaoyi
6y ago
|
13 comments
264.
▲
Cask: A Scala HTTP micro-framework
(lihaoyi.com)
3 points
by
lihaoyi
6y ago
|
0 comments
265.
▲
Mill: A Build Tool Based on Pure Functional Programming
(youtube.com)
1 points
by
lihaoyi
6y ago
|
1 comments
266.
▲
by
lihaoyi
6y ago
While this example is pretty dense, a "one page programming language interpreter" doesn't need to be so impenetrable. Here's a one-page (67 line) interpreter for a subset of the Jsonnet programming language, implemented
267.
▲
Scala Native 0.4.0 is here
(scala-lang.org)
3 points
by
lihaoyi
6y ago
|
0 comments
268.
▲
Message-Based Parallelism with Actors
(lihaoyi.com)
1 points
by
lihaoyi
6y ago
|
0 comments
269.
▲
Message-Based Parallelism with Actors
(lihaoyi.com)
2 points
by
lihaoyi
6y ago
|
0 comments
270.
▲
by
lihaoyi
6y ago
https://www.lihaoyi.com/workbench-example-app/raytracer.html is a ray tracer I wrote in a few hours; maybe a single afternoon's worth of time. I already knew my way around 3D vector math from my previous work maki
More ›