Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lihaoyi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
481.
▲
Easy Parsing with Parser Combinators
(lihaoyi.com)
92 points
by
lihaoyi
10y ago
|
25 comments
482.
▲
Announcing Scala.js 0.6.12
(scala-js.org)
4 points
by
lihaoyi
10y ago
|
3 comments
483.
▲
Ammonite-Shell: a Scala systems-shell running on the JVM
(lihaoyi.com)
1 points
by
lihaoyi
10y ago
|
0 comments
484.
▲
Diving into Other People’s Code – NUS Hackers
(youtube.com)
2 points
by
lihaoyi
10y ago
|
0 comments
485.
▲
by
lihaoyi
10y ago
If you read the whole post and didn't come out thinking "types are a surprisingly big deal", I have failed as a writer.
486.
▲
by
lihaoyi
10y ago
The point wasn't to show how to build HTML fragments, the point was to show javascript interop. You could create a nice wrapper-library around anything in any-language, really, but that misses the entire point of that example: to sho
487.
▲
by
lihaoyi
10y ago
For all the people asking "Why didn't I talk about X"... The real reason is that this 24-page heavily-researched blog post is already too damn long lol
488.
▲
by
lihaoyi
10y ago
The live coding presentation is two years out of date; Scala.js now compiles to a single JS blob Everything function marked with @JSExport will be exposed to Javascript. There's no concrete difference between an application with one `@
489.
▲
by
lihaoyi
10y ago
Never used it but it seems like a plausible project; it has Google's infinite $$$ backing it and smart people like Gilad Bracha on the team. They've built up quite a lot (language, tools, package-manager, IDE, ...) from scratch wh
490.
▲
by
lihaoyi
10y ago
I can't say, really. I have written a lot of Javascript/Coffee/Java/Scala/C#/F#/Python/PHP, and made a bunch of crappy websites, but I have never written any code in a language that compiles to assemb
491.
▲
by
lihaoyi
10y ago
No clue, as far as I know (as an outsider) the effect system is still in the brainstorming phase with not much pinned down or concrete yet. On the other hand Dotty has a lot of very, very concrete benefits I would like. 2x faster compile ti
492.
▲
by
lihaoyi
10y ago
I wrote this; ask me anything
493.
▲
From first principles: Why I bet on Scala.js
(lihaoyi.com)
106 points
by
lihaoyi
10y ago
|
87 comments
494.
▲
Scala Scripting
(lihaoyi.com)
1 points
by
lihaoyi
10y ago
|
0 comments
495.
▲
Build your own Command Line with ANSI escape codes
(lihaoyi.com)
1 points
by
lihaoyi
10y ago
|
0 comments
496.
▲
Build your own Command Line with ANSI escape codes
(lihaoyi.com)
8 points
by
lihaoyi
10y ago
|
1 comments
497.
▲
Strategic Scala Style: Designing Datatypes
(lihaoyi.com)
2 points
by
lihaoyi
10y ago
|
0 comments
498.
▲
Micro-optimizing your Scala code
(lihaoyi.com)
2 points
by
lihaoyi
10y ago
|
0 comments
499.
▲
Strategic Scala Style: Practical Type Safety
(lihaoyi.com)
80 points
by
lihaoyi
11y ago
|
16 comments
500.
▲
by
lihaoyi
11y ago
I agree with this 100%. Having too many ways of doing things, and no way to pick between them, results in everyone doing things every which way, all different. That's why this document exists at all. We can definitely make things bette
501.
▲
Strategic Scala Style: Conciseness and Names
(lihaoyi.com)
1 points
by
lihaoyi
11y ago
|
0 comments
502.
▲
by
lihaoyi
11y ago
You didn't touch a nerve, I'm just being snarky because it's the internet and if I don't the internet police will arrest me. "code complexity means you can't get away with it" seems very common. Five neste
503.
▲
by
lihaoyi
11y ago
I was going to say Scala's secret weapon was in it's non-turing-complete typesystem. Unfortunately, Scala's typesystem is turing complete.
504.
▲
by
lihaoyi
11y ago
> The thing about Turing-complete languages is that the only real dimmension of power is their expressiveness - i.e. how much boilerplate do you have to write to implement something Have fun implementing your compile-time Common Lisp typ
505.
▲
by
lihaoyi
11y ago
How on earth are those things related? Because using mutability to model mutable things makes programming easier, while using mutability to model immutable things makes it harder. It's not rocket science...
506.
▲
by
lihaoyi
11y ago
I don't type-ascribe all public methods. Maybe I should but I'm lazy. I don't even type-ascribe my implicit vals or defs... i probably should but i don't As to Either, I didn't mention it because I don't use it
507.
▲
by
lihaoyi
11y ago
I like immutability too. It's just sometimes rather inconvenient. I would agree with you if you could write something like http://www.lihaoyi.com/roll/ in a pure immutable style and show me how it's better. Y
508.
▲
by
lihaoyi
11y ago
i say "hardcode dependencies" for three reasons: - If you want to extract them out, it's safe and straightforward. Still a tedious refactor, but a safe tedious refactor. It's not any harder than injecting stuff up-front.
509.
▲
by
lihaoyi
11y ago
Find something you want to do, try to do it, find out what you don't know, and learn it. You could try learning from a book or a course, but personally I've never found a better way of learning "what I need to learn for X&quo
510.
▲
by
lihaoyi
11y ago
Neat to see this appear here. I wrote this. Ask me anything
More ›