Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lihaoyi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
331.
▲
by
lihaoyi
6y ago
As implemented, we do not change the superficial python syntax. That has a number of advantages around compatibility, but it means embedding raw SQL outside string literals isn’t possible. We could do things like validating/transformin
332.
▲
by
lihaoyi
6y ago
Author here, funny to see this up here again after so many years. Happy to answer questions
333.
▲
by
lihaoyi
6y ago
The main reason @case is an example macro is that data classes did not exist when this project was conceived
334.
▲
by
lihaoyi
6y ago
The page has links to a dozen different examples, with code snippets and discussion of the motivations and potential use cases for each
335.
▲
by
lihaoyi
6y ago
e
336.
▲
by
lihaoyi
7y ago
Haha one step at a time. First I need to finish this final round of reviews and edits to get this manuscript out the door!
337.
▲
by
lihaoyi
7y ago
Sure! I have the table of contents for "Scala for the Impatient" open in front of me: - S4tI goes into a lot more detail into language features: custom extractors, abstract overrides, annotations, higher kinded types, custom ope
338.
▲
by
lihaoyi
7y ago
I love Python too! The style of Scala used in this book is much closer to Python than Mathematica or Scheme, with many of the libraries involved being carbon copies (os-lib, requests-scala, ujson) so you will feel right at home. As to what
339.
▲
by
lihaoyi
7y ago
Glad you like them! The reason Scalatags is so good is that it is my 7th iteration of a HTML templating library: starting from using XHP at work, I had written my own templating libraries in PHP, Python, C#, F#, and 2 others in Scala before
340.
▲
by
lihaoyi
7y ago
Yes! We use a lot of functional techniques in this book, but we do not dwell on them. In the end you will be using functional techniques not because they’re interesting, but because they’re the obvious and easy. That is how functional progr
341.
▲
by
lihaoyi
7y ago
I can’t really promise the “before”, but the e-book will be released when the current round of review and edits is complete. The physical books released when I can figure out the logistics of printing and distribution
342.
▲
by
lihaoyi
7y ago
> Is there a concrete example of the Python-like code vs the more complex ones? I appreciate the help. Haha this book is going to be 400 pages of concrete examples. It's not out yet, so you'll have to take my word for it for th
343.
▲
by
lihaoyi
7y ago
It doesn't for now, and doesn't really need to. Scala 3 isn't out yet, and when it is there will be a migration period (as always) while things will remain backwards compatible and libraries will remain cross compiled. This b
344.
▲
by
lihaoyi
7y ago
I didn't post this, but cool to see this up here! The full book is ~400 pages and will be released Summer 2020 (i.e. soon!). If you're interested in being notified when it comes out, there's a mailing list link on the page an
345.
▲
Mill: A Build Tool Based on Pure Functional Programming
(vimeo.com)
3 points
by
lihaoyi
7y ago
|
0 comments
346.
▲
by
lihaoyi
7y ago
Author here. The full title is “The Death of Hype: What’s Next for Scala”, and the full title is significant. This article is as much about the initial hype and its decline as it is about the future prospects of the language. It very much i
347.
▲
by
lihaoyi
7y ago
In one of my current projects, I'm using Scalatags on the server-side generating strings, and then using the same templates on the client to generate Preact.js vdom nodes to re-hydrate the server side templates. Cross-platform, cross-b
348.
▲
Standardizing IO Interfaces to Scala Libraries
(lihaoyi.com)
4 points
by
lihaoyi
7y ago
|
0 comments
349.
▲
by
lihaoyi
7y ago
I’d say you deal with it the same as in any other language(s): with consensus, coordination, and code review. After all, if you are a Go shop, what’s stopping someone implementing their code in Haskell? Or someone in a Python shop deciding
350.
▲
by
lihaoyi
7y ago
The way I look at modern Scala is a mix of Python and Java. Do it badly, and you end up with the unmaintainability of Python and the clunkiness of Java. Awful. Do it well, and you end up with the convenience and interactivity of Python and
351.
▲
Beyond Liskov: Type Safe Equality in Scala
(lihaoyi.com)
3 points
by
lihaoyi
7y ago
|
0 comments
352.
▲
Beyond Liskov: Type Safe Equality in Scala
(lihaoyi.com)
2 points
by
lihaoyi
7y ago
|
0 comments
353.
▲
by
lihaoyi
7y ago
Honestly I do not remember at all why I put in that script tag. It was something to do with github-pages not supporting HTTPS properly in the past, the details escape me. I should probably remove it
354.
▲
How an Optimizing Compiler Works
(lihaoyi.com)
164 points
by
lihaoyi
7y ago
|
22 comments
355.
▲
How an Optimizing Compiler Works
(youtube.com)
2 points
by
lihaoyi
7y ago
|
0 comments
356.
▲
Working with Databases Using Scala and Quill
(lihaoyi.com)
2 points
by
lihaoyi
7y ago
|
0 comments
357.
▲
Scraping Websites Using Scala and Jsoup
(lihaoyi.com)
1 points
by
lihaoyi
7y ago
|
0 comments
358.
▲
Scraping Websites Using Scala and Jsoup
(lihaoyi.com)
2 points
by
lihaoyi
7y ago
|
1 comments
359.
▲
Build Your Own Programming Language with Scala
(lihaoyi.com)
7 points
by
lihaoyi
7y ago
|
5 comments
360.
▲
Simple Web and API Servers with Scala
(lihaoyi.com)
1 points
by
lihaoyi
7y ago
|
0 comments
More ›