Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hzhou321
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
37 ms
·
301.
▲
Send More Money
(hz2.org)
8 points
by
hzhou321
11y ago
|
0 comments
302.
▲
Imperative Parser – Parsing JavaScript in Python
(hz2.org)
6 points
by
hzhou321
11y ago
|
0 comments
303.
▲
Operator precedence based parsing
(hz2.org)
4 points
by
hzhou321
11y ago
|
0 comments
304.
▲
Write a calculator parser imperatively
(hz2.org)
2 points
by
hzhou321
11y ago
|
0 comments
305.
▲
by
hzhou321
11y ago
Yeah, what is Perl - Regex? Couldn't they manage to compile regex to pcre?
306.
▲
by
hzhou321
11y ago
Common sense should not be defined as common knowledge. It is not describing a type of knowledge which one simply know or ignorant. Rather it describes a most general type of critical thinking process where common people will reach the simi
307.
▲
by
hzhou321
11y ago
Let's say you go out of your way helping someone, because you go out your way, it is not really a pleasure. Of course it is a pleasure and a feel of privilege when someone thanks/appreciates you. So saying "my pleasure"
308.
▲
by
hzhou321
11y ago
> Turning down gifts sends a strong social signal that you don't want whatever relationship the gift implies. I believe that interpretation is incorrect. In Chinese culture, it is important to balance social relationship, and the wo
309.
▲
by
hzhou321
11y ago
I have been in US for almost 20 years now and I am still having trouble responding to "thank you". I have no trouble saying "thank you" though. Replying "you are welcome" feels like an acknowledgement that some
310.
▲
by
hzhou321
11y ago
It is not really about people IMHO but about their headphone and amplifier. Better equipment require more expensive up-keeping, that is usual.
311.
▲
by
hzhou321
11y ago
Read the source: https://github.com/STRML/strml.net/blob/master/app.js
312.
▲
by
hzhou321
11y ago
Jquery is/was a practical solution, never a right solution. For example, most people recognize the merit of Jquery as it solves the inconsistency of browser support. The right solution is of course the inconsistency itself, but practic
313.
▲
by
hzhou321
11y ago
People are lazy and we took legacy complexity as granted. Time evolves and rarely any problem looks the same. If for no other values, having a second (and third and beyond) look at legacy complexity will worth all the attention.
314.
▲
by
hzhou321
11y ago
I agree. Macros are what made lisp, not parentheses. However, if we broaden the concept a little, we can do this type of macros for any language with a meta-layer such as MyDef. e.g. if you observe certain foreach pattern in Java, you can m
315.
▲
by
hzhou321
11y ago
Thanks. MyDef is not really a programming language, but a meta layer. Sounds like a new concept but it is more like cpp or m4 in the toolchain point of view. As such, it can work with any programming languages. e.g. In the Nim example, ever
316.
▲
by
hzhou321
11y ago
Nice! > Yes, I do Lisp and I do stupid. :) Why stupid? I think that is straight solutions for simple problems. MyDef is basically the same idea but with complete programming layer to achieve almost anything. I have been using MyDef for a
317.
▲
by
hzhou321
11y ago
It worked! Now how do I incorporate this into my tool chain (Makefile)?
318.
▲
by
hzhou321
11y ago
Or, with a text based meta-layer (MyDef): import macros $(for:A in A,B,C) proc $(A)() = echo "$(A)" proc execute(order: seq[int], callbacks: seq[proc]) = for i in items(order):
319.
▲
Implementing Hobby Curve
(hz2.org)
4 points
by
hzhou321
11y ago
|
0 comments
320.
▲
by
hzhou321
12y ago
Lately I have been thinking that we are getting the abstraction wrong in programming. In real world, abstraction is a lossy process. From "white horse" to "horse", we lose the information about color. And this lossy natu
321.
▲
by
hzhou321
12y ago
Thanks a lot for understanding. I am puzzled why most readers see MyDef as another language or library. Let's use Javascript for example, Coffee script or other language force you to re-learn and write in the new language, but with MyD
322.
▲
by
hzhou321
12y ago
I am not familiar with APL or J (only viewed some presentations). >> Like APL, J is built on a grammar of nouns, verbs, adverbs, etc. I think this is counter the true nature of natural language. In English at least, the word is in the
323.
▲
by
hzhou321
12y ago
How do you map from something imprecise to something precise in daily life? For example, you tell the kids "go to school", very vague (walk or bus or wait for you to drive), and each detailed steps require even detailed actions (c
324.
▲
by
hzhou321
12y ago
Generics as in current C++ and Java are still tied to the low level data types. They merely extended from single data type to a collection of data types (that fits certain strict condition). Now look at our natural language, "eat"
325.
▲
Direct Approach Neural Networks
(hz2.org)
7 points
by
hzhou321
12y ago
|
0 comments
326.
▲
by
hzhou321
12y ago
I think your comments are focused at learning side: we learn about the syntax, we learn about the library, we learn about "fold/reduce". At the learning side, abstraction do feel like just one more layer to penetrate, unless,
327.
▲
by
hzhou321
12y ago
> Sorry, still nonsense. No apology necessary. Unfortunately, sense is individual context dependent.
328.
▲
by
hzhou321
12y ago
I understand, and this is kind of today's programming wisdom. But I think we can change it, unless you take the "hard way" as benefit. In English, I say "go to school", there will be some oversight that end up the k
329.
▲
by
hzhou321
12y ago
Thanks for reading to the end; I appreciate it. I quoted "fold" because it is essentially a vocabulary word (which is the whole reason I quote it), it only feels like a language keyword because it is designed and programmer typi
330.
▲
by
hzhou321
12y ago
Natural language is imprecise and vague. And it is relying on a lot of your experience. However, this is why natural language is so much more effective than the programming language counterpart -- it leverages on people's experience, o
More ›