Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xiaq
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
xiaq
6y ago
Sounds to me that they will build some sort of hosted service or maybe PaaS based on the Deno runtime (like AppEngine or AWS lambda), but yeah it's pretty vague.
122.
▲
Quick Tour – Elvish Shell
(elv.sh)
3 points
by
xiaq
6y ago
|
0 comments
123.
▲
by
xiaq
6y ago
> Also, the post states that you can't have nested "tail-call optimized" loops in clojure, which is only partially correct: Using nested loops is commonly done in Clojure, the only thing you can't do is have the loops
124.
▲
by
xiaq
6y ago
Elvish author here, glad that you like it, and thanks for the plug :) To save people a search, here's Elvish's homepage: https://elv.sh
125.
▲
by
xiaq
6y ago
Or use Elvish, which has builtin directory history :) Directory history is the 3rd demo on the homepage: https://elv.sh/
126.
▲
by
xiaq
6y ago
If you have a long expression, you can break it into multiple ones by storing some intermediate results in another cell. You can also hide such cells or put them in another sheet. This might sound like a hack, but being able to see intermed
127.
▲
by
xiaq
6y ago
A tangential point, but I find it weird and somewhat amusing that an article on US Google employees should use a photo of Google's London engineering office. Maybe they don't have a good shot of a lot of people standing in front o
128.
▲
by
xiaq
6y ago
Elvish and PowerShell shares one big thing: let command outputs carry structured value. Everything else is quite different: * Elvish is a more minimalist language influenced by the Lisp tradition, whereas PowerShell is a much larger languag
129.
▲
by
xiaq
6y ago
Thanks! Is there anything you particularly like, and anything that can be improved?
130.
▲
by
xiaq
6y ago
Yes, Elvish's $nil maps to JSON's null.
131.
▲
by
xiaq
6y ago
Elvish has a really simple API for writing completers ( https://elv.sh/ref/edit.html#completion-api ). The simplicity of the API stems from some fundamental language features like first-class functions, value pipes and c
132.
▲
by
xiaq
6y ago
Yes, Elvish now has a dedicated number type, so conversation from JSON is now lossless.
133.
▲
by
xiaq
6y ago
> Oil is the most bash-compatible shell by a mile (which means it's also POSIX compliant). Bash is not POSIX-compliant by default; it has a POSIX mode ( https://www.gnu.org/software/bash/manual/html_nod
134.
▲
by
xiaq
6y ago
No. If you are looking for a POSIX-ish shell with modern features, Oil ( http://www.oilshell.org/ ) is your best option.
135.
▲
by
xiaq
6y ago
> too difficult to use third party servers after that Just "scp" the binary to the server and you're good to go :)
136.
▲
by
xiaq
6y ago
fzf is indeed a very neat standalone tool, and for the use cases it has been optimized for, it is superior to Elvish's UI in many aspects. However, Elvish also has a very expressive programming language, and eventually it will offer mo
137.
▲
by
xiaq
6y ago
> it doesn't set the pane title in tmux correctly out-of-the-box Yeah, it's an unfortunate side effect of Elvish not having job control at the moment; tmux (and terminal emulators) use the information about the foreground proce
138.
▲
by
xiaq
6y ago
Elvish author here, AMA :)
139.
▲
by
xiaq
6y ago
A belated disclaimer: I work for GCP, but not this product.
140.
▲
by
xiaq
6y ago
Yeah, I agree that YAML is not the best language for embedding a DSL, but in general GCP seems to have a preference for using YAML in its configuration languages. I can imagine that the developers chose YAML based on its popularity elsewher
141.
▲
by
xiaq
6y ago
Well, that was a contrived example. Something more useful would be e.g. enumerating all the HTTP endpoints being depended on, or calculating the maximum resource consumption. I think our disagreement really boils down to different approache
142.
▲
by
xiaq
6y ago
The actual question being asked and answered here is why a mile is defined as 5280 feet, as opposed to any other number, such as 5000 feet.
143.
▲
by
xiaq
6y ago
Yes, the orchestration code can be developed and debugged as normal code. I agree that it can be a pain to write and debug YAML "code". But what's usually more interesting when it comes to workflows is inspecting and debuggin
144.
▲
by
xiaq
6y ago
But what this does under the hood is still sending instructions to a workflow engine that does the actual work, as opposed to this code doing the actual work directly, right? If that's the case, then what you could do is still restrict
145.
▲
by
xiaq
6y ago
Saying this is reinventing BASIC in YAML seems to miss the point here; the programming model here is essentially a finite state machine with optional data flowing between nodes, and AFAIK there isn't really a widespread language that t
146.
▲
by
xiaq
6y ago
That sounds a bit like Vaadin: https://vaadin.com/
147.
▲
by
xiaq
6y ago
AFAIK in London the data are extracted from the archives of the local councils that planted the trees in the first place and were responsible for maintenance afterwards. I can imagine a best-case scenario is that they already have maps of t
148.
▲
by
xiaq
6y ago
Living in the UK, most ISPs will give you with a router if you sign a contract of a year or more. They are are usually branded $ISP-hub but really just generic ADSL or fiber modem/routers with a colorful casing (and in some cases just
149.
▲
by
xiaq
6y ago
Shameless plug: if you like the idea of processing structured data in a shell, you might also like Elvish ( https://elv.sh/ ).
150.
▲
Racket News – Issue 29
(racket-news.com)
1 points
by
xiaq
6y ago
|
0 comments
More ›