Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xiaq
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
xiaq
1y ago
Elvish author here, seems like I missed the annual posting of Elvish to HN this time :)
2.
▲
by
xiaq
2y ago
> Later, it will be a rejection of the insurance claim for a kid's life-saving surgery. According to this article, it's been happening for a while now: https://www.statnews.com/2023/03/13/medicare
3.
▲
by
xiaq
2y ago
Such old urban places would just be car-free in the Netherlands (sometimes with limited access for delivery and emergency vehicles), a trend fortunately becoming popular in other European cities now. The “urban” in the title is a bit mislea
4.
▲
by
xiaq
2y ago
I would love to see the diff between the hand-rolled recursive-descent parser and the ANTLR syntax! I certainly feel the amount of boilerplate in my hand-rolled recursive-descent parser is manageable. Of course it's not as succinct as
5.
▲
by
xiaq
2y ago
Yeah, ultimately there's an element of personal taste at play. The authoritative tone of "how to write ..." is meant in jest, but obviously by doing that I risk being misunderstood. A more accurate title would be "how I
6.
▲
by
xiaq
2y ago
History entries are kept indefinitely.
7.
▲
by
xiaq
2y ago
FWIW, I've just added this instruction to https://elv.sh/get/default-shell.html#vim-/-neovim
8.
▲
by
xiaq
2y ago
Did you set your login shell to Elvish? Vim unfortunately relies on your shell being a POSIX shell, but you can fix that with "set shell=/bin/sh" in your rc file.
9.
▲
by
xiaq
2y ago
Thanks, I appreciate the comment the appreciation :)
10.
▲
by
xiaq
2y ago
Thanks! Glad that the talk is working as a marketing pitch for Elvish :)
11.
▲
by
xiaq
2y ago
Thanks! Murex talk when??? :)
12.
▲
by
xiaq
2y ago
Thanks for your question and glad that you enjoyed it!
13.
▲
by
xiaq
2y ago
Right, I may have forgot to mention that lexerless parsers are somewhat unusual. I didn't have much time in the talk to go into the reason, so here it is: - You'll need a more complex lexer to parse a shell-like syntax. For exampl
14.
▲
by
xiaq
2y ago
I gave a talk about the design: https://www.youtube.com/watch?v=wrl9foNXdgM As the sibling comment mentioned, you can find documentation on Elvish itself on the website https://elv.sh . There are tutorials and (n
15.
▲
by
xiaq
2y ago
I don't have a version with captions, sorry. You can find the slidedeck at https://github.com/elves/elvish/blob/master/website/slides/2... The remaining 8% mostly falls into the following
16.
▲
by
xiaq
2y ago
Hey, it's my talk, AMA :) If you're interested in Elvish, you may also be interested in the talk on its design - https://www.youtube.com/watch?v=wrl9foNXdgM
17.
▲
Designing a shell language for the 2010s [video]
(youtube.com)
2 points
by
xiaq
2y ago
|
0 comments
18.
▲
by
xiaq
2y ago
Look for “POSIX” on https://justine.lol/cosmo3/
19.
▲
by
xiaq
2y ago
That seems to be a bad translation, the original text means something like “sharpen something fully and it won’t last so long” (presumably due to it being more brittle). The text (like the rest of Tao Te Ching) is pretty vague and doesn’t a
20.
▲
by
xiaq
2y ago
Oh, I definitely didn't read your entire comment as negative, just the way you used "elvishism". Elvish definitely has its quirks! But I hope you'll find it a compelling package overall :)
21.
▲
by
xiaq
2y ago
> In case there are no jpg files in the working directory, Bash will put the pattern itself (*.jpg) into the $x variable. You need to explicitly check that the file in the variable actually exists before working on it. Indeed that's
22.
▲
by
xiaq
2y ago
> Elvish visibly leans into this to try to have a consistent syntax. Sometimes the similarities go deeper, too; IIRC, its number types are inspired by Scheme, for example. Yes! Similarity to Lisp is very much a deliberate design choice a
23.
▲
by
xiaq
2y ago
Ha it's just a typo.
24.
▲
by
xiaq
2y ago
It wasn't directly borrowed from any other language ( https://news.ycombinator.com/item?id=40317577 ) but there's definitely something nice about the syntax that causes multiple languages to use it. Elvish predates
25.
▲
by
xiaq
2y ago
Thank you for the compliment!
26.
▲
by
xiaq
2y ago
I take your comment as implying that https://elv.sh is nice, clean and elegant, and thank you for the compliment :) I can't speak for other people, but I made it on my own and don't have any formal training in design.
27.
▲
by
xiaq
2y ago
Yes! I haven't been using it as my daily driver for almost 10 years now. There are detailed instructions on how to get it and use it as your default shell in https://elv.sh/get/ .
28.
▲
by
xiaq
2y ago
While I don't agree with most of your analysis - in particular for the second example, I'd invite you to read its explainer that goes into much more depth ( https://elv.sh/learn/scripting-case-studies.html#upda
29.
▲
by
xiaq
2y ago
Ha, no problem. The number syntax is documented in https://elv.sh/ref/language.html#number
30.
▲
by
xiaq
2y ago
It was inspired by browsers' location bar - the name (location mode) and the default ^L binding are a nod to browsers too. These days browsers will often suggest results from search engines but back then (at least in Firefox?) it was j
More ›