Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xiaq
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
421.
▲
by
xiaq
12y ago
No this doesn't work either, unless you sacrifice the functionality of using variables as commands. Suppose $echo is equal to "echo", what is the most reasonable thing one would expect `$echo = $ip` to do? Also consider the f
422.
▲
by
xiaq
12y ago
See my reply to omaranto.
423.
▲
by
xiaq
12y ago
Of course! PowerShell definitely has a lot of brilliant ideas. Sadly it is overenginnered and has quite some design mistakes. Nevertheless it has served as a great source of inspiration for me - I have actually gone through several PowerS
424.
▲
by
xiaq
12y ago
@hyperpape we seem to have hit the critical level for flame war and now I cannot reply to you :) it's said I will be able to reply after some cooldown time, but here is my reply: re "word space* = ...": should this echo an eq
425.
▲
by
xiaq
12y ago
The need for `set` has to do with syntax. In shells the first word of a statement is always considered to be the command, so "x = 5" will not work - it reads "execute command 'x' with arguments '=' and &#x
426.
▲
by
xiaq
12y ago
A shell is a REPL. The problem is that the shell is sloppy in that it only deals with bytes and cannot process any complex data structure. Again, advertisement for my side project https://github.com/elves/elvish , a Uni
427.
▲
by
xiaq
12y ago
Option hell is indeed a problem. The problem with `find` happens to have a solution (-print0). However it is a PITA in deal with \0-separated strings in traditional shells, unless you pipe it to another command that happens to recognize \0-
428.
▲
by
xiaq
12y ago
Yes, one thing that can be done (in future) with elvish is writing wrappers for external commands that run the commands and convert their (bytes) output to strongly typed values. For instance, `ls` outputs a bunch of lines where each line i
429.
▲
by
xiaq
12y ago
var is for declaration, set for assignment. This is an important contrast that some dynamic languages miss; ironically JavaScript got it right. Contrast this var $x = "foo"; if $true { set $x = "bar" }; echo $x # o
430.
▲
by
xiaq
12y ago
Time for advertisement! You might like elvish https://github.com/elves/elvish which proudly has optional typing and much more well-defined semantics than say, bash. This is work in progress though. Advertisement aside,
431.
▲
by
xiaq
12y ago
Best wishes on the switch, but I'm afraid that the leap being taken is too big. Suddenly we go from bare HTML served by cgi to a single-page, style-rich and interaction-rich JavaScript application. That said, I actually like the new we
432.
▲
by
xiaq
12y ago
IIRC the new VM (MoarVM) is around for quite a short time and it replaced Parrot in a dramatically short time. What are the advantages of MoarVM over Parrot and why were we stuck at Parrot for so long before giving it up?
433.
▲
by
xiaq
12y ago
Not to say that quite a lot of CEOs don't...
434.
▲
by
xiaq
12y ago
I just played the nice little game on about:home. But shooting is extremely tricky since I need to keep suppressing my hjkl muscle memory. Update: that game seems to be a demo of Voxatron in the bundle.
435.
▲
by
xiaq
12y ago
Yes it's very poor, but we're talking about education here. Primary and secondary education is free except for a yearly contribution that is typically 100 to 200 Yuan (16 to 32 dollars), which even the poorest family can afford. I
436.
▲
by
xiaq
12y ago
> I have never been to china, but my Chinese lab mate says that the best translation for Chinese outside of the cities is "peasant" not farmer. One good example of the way these people are treated is the lack of public educatio
437.
▲
by
xiaq
12y ago
It's no coincidence that frontend developers make good websites :)
438.
▲
Maniker
(mankier.com)
1 points
by
xiaq
12y ago
|
0 comments
439.
▲
by
xiaq
12y ago
> The problem is that it was designed 25 years ago. It's just my imagination, but I keep picturing someone who did point out the possible security risks but was then dismissed as being too paranoid.
440.
▲
by
xiaq
12y ago
I think go's approach to readability is comparable to "simple English". Both have a minimal set of words (tokens) and syntax constructs. You lose some witty constructs, and you often find yourself writing in a stupid way. But
441.
▲
by
xiaq
12y ago
Hey, I just checked out your homepage and learned that Pyret is already being used to teach programming at Brown University. Cool!
442.
▲
by
xiaq
12y ago
Codes are read much more often than written. paredit makes editing parens easier, but reading them is still difficult for the unskilled (rainbow parens help, but it's still far from painless). Compare this to how autocompletion makes i
443.
▲
by
xiaq
12y ago
Maybe some lisp hackers gradually find out that a lot of parenthesis is not that fun for everyone. Not meant to enrage Lisp hackers, I actually find parenthesis bearable. There is also Pyret( http://www.pyret.org/ ) created b
444.
▲
by
xiaq
12y ago
Time for advertisements! I've been doing this for some time: https://github.com/xiaq/elvish ( https://news.ycombinator.com/item?id=8090534 )
445.
▲
by
xiaq
12y ago
Ah, indeed. It turns out that the "doc" actually means "text documents" instead of "software documentation".
446.
▲
by
xiaq
12y ago
I found this in the doc/ subdirectory of the repository: http://c9x.me/git/?p=ed.git;a=blob;f=doc/republic.txt;h=366f... I am really curious about what the full text of Republic is doing here...
447.
▲
by
xiaq
12y ago
Because they are not very reasonable? * "dd" isn't reasonable because it violates the "command + movement/region" structure of vi commands. So is "cc" and "yy". None of "c d y" is
448.
▲
by
xiaq
12y ago
Well, it runs on the terminal. But not on the command line. These are different concepts.
449.
▲
by
xiaq
12y ago
The first few parts make a pretty good pipeline preach. Two interesting points about pipelines are the concurrency and the difficulty to handle errors (at least without cluttering the syntax), which are often missed by newcomers.
450.
▲
by
xiaq
12y ago
Good to know that, thanks. I have captured and pushed the screenshots with subpixel turned off.
More ›