Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
phaker
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
phaker
15y ago
> the code for each language is clearly different. It's always the case. That's why writing them is interesting.
92.
▲
by
phaker
15y ago
> The page is more of a dictionary of language constructs. Which would come incredibly useful if you wanted to write a polyglot program. Why else would you use a reference like this? If you wanted to learn a language, or had to hack s
93.
▲
by
phaker
15y ago
The site doesn't mention which meaning of "polyglot" the people behind it had in mind. I assumed it was for people writing "polyglot" toy programs, because it'd be very useful resource. I very rarely encounter uses of the term "polyglot" re
94.
▲
by
phaker
15y ago
> do a few easily duplicated UI difference really justify billions? A large (paying) customer base would. But, just like johnrob, I'm not sure dropbox has that many users.
95.
▲
by
phaker
15y ago
You can't create 'idiomatic polyglots'. You just hack things together until they sorta work, for more than few languages this basically involves large strings and lots of backslashes, or base64 or something like that. (Writing a polyglot th
96.
▲
by
phaker
15y ago
'rename' uses arbitrary perl expressions, including regexes. from the manpage: rename 's/\.bak$//' *.bak
97.
▲
by
phaker
15y ago
You really, really should use 'set -e' which will exit if there are any errors. Otherwise if 'bar' doesn't exist, you'll 'do something' in a wrong directory and frobnicate something you didn't want frobnicated.
98.
▲
by
phaker
15y ago
> For reference, daytime sunlight is around 5500k— these bulbs are marketed as 2700k, which is about the color of sunset, sunrise, or a large fire. Cold light will mess up your sleep patterns: http://en.wikipedia.org/wiki/Circadian_rhy