Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hzhou321
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
1.
▲
by
hzhou321
1y ago
One is a boss's view, looking for an AI to replace his employees someday. I think that is a dead end. It is just getting better to become a sophisticate, increasingly impressive but won't work. One is the worker's view, looki
2.
▲
by
hzhou321
3y ago
> To illustrate, Rust macros are basically that. They have a substantially different syntax to normal Rust code that make it very difficult to quickly grok what is going on. It's a net negative IMO, not a positive. Yeah, more like a
3.
▲
by
hzhou321
3y ago
M4 only do token-level macros or inline macros. M4 macros are identifier that can't be distinguished from underlying language. M4 macros does not have scopes. M4 does not have context level macros. M4 does not have full programmable ab
4.
▲
by
hzhou321
3y ago
In another word, it (to have runtime macro expansion) is a side effect, a compromise, a wart, rather than a design goal, right?
5.
▲
by
hzhou321
3y ago
> I think a general purpose macro language is only as useful as the average code-gen/templating language. It's just string manipulation, which can be harder to reason about than true metaprogramming ... I would like you to reco
6.
▲
by
hzhou321
3y ago
> That being said, I think homoiconicity is actually a useful feature, but runtime macro expansion is the dangerous part. Practically, why would you ever want a runtime macro expansion?
7.
▲
by
hzhou321
3y ago
LISP has been singing homoiconicity as its feature. I lately start to think homoiconicity is really a wart. The macros are a system to program the code, while the code is a system to program the application. They are two different cognition
8.
▲
by
hzhou321
3y ago
The ban is not having an issue between China and US. US can do whatever to China, and only need balance potential retaliation. There is no moral debate between countries, just power play. The ban is an issue between US government/polit
9.
▲
by
hzhou321
4y ago
Since you are already familiar with other languages, I suggest just pick a tool that you use daily that is open source in C, and start hacking it.
10.
▲
by
hzhou321
4y ago
Some billionaires grow integrity at some point since every thing else is just money. Some billionaires never.
11.
▲
by
hzhou321
4y ago
> C specification says a program is ill-formed if any UB happens. So yes, the spec does say that compilers are allowed to assume UB doesn't happen. I disagree on the logic from "ill-formed" to "assume it doesn't
12.
▲
by
hzhou321
4y ago
> Indeed. UB in C doesn't mean "and then the program goes off the rails", it means that the entire program execution was meaningless, and no part of the toolchain is obligated to give any guarantees whatsoever if the progr
13.
▲
by
hzhou321
4y ago
Nice! If the robots can sustain on solar energy, even better.
14.
▲
by
hzhou321
4y ago
How silly is this.
15.
▲
by
hzhou321
4y ago
What prevents linux to achieve the same bandwidth?
16.
▲
by
hzhou321
4y ago
It's not about the amount of time kids takes up in your life. It is about how kids changes your life forever. Your priority in life changes, then your life changes. I guess when kids leave us, we need relearn the life.
17.
▲
by
hzhou321
4y ago
The `infix` syntax is missing from the major items. Without infix syntax, all languages are just variations of LISP -- I guess that was all the article is about.
18.
▲
Show HN: A CC Wrapper for -finstrument-functions
(github.com)
1 points
by
hzhou321
4y ago
|
0 comments
19.
▲
by
hzhou321
4y ago
For those who are interested, checkout MyDef - https://github.com/hzhou/MyDef
20.
▲
by
hzhou321
4y ago
Yes, I agree! In fact, the break through we needed is to view programming as a human cognitive operation and embrace the text, and treat manipulating text as a main component of coding. For example, I want to code foreach item in lis
21.
▲
by
hzhou321
4y ago
The author's view is very relatable (to me). I am going to bookmark it since it verbalize my feeling so fittingly. I am not sure I am autistic, but I have to be to some extent. I can see where the essay goes partial. The author focuses
22.
▲
by
hzhou321
4y ago
When one reads a reply that is out of his expectation, and when his expectations was for granted, then that reply will be perceived as negative or hostile, right? But the reply may just be out of his expectation. This is common when a newbi
23.
▲
by
hzhou321
4y ago
You mean -- where to find experts that can tolerate newbie asking off-base questions and showing off their bottle half full? If you just find people with "a deep love of learning", you guys end up just bouncing shallow questions a
24.
▲
by
hzhou321
4y ago
> Ruby is clever, it can be beautiful, but I've never seen a good codebase using it grow well without enforcing strictly opinionated ways of writing it to ensure maintainability. I believe every good maintainable software needs an e
25.
▲
by
hzhou321
4y ago
I think it is a crowd dumbing effect. Since hundreds of engineers sharing the mono-repo, no one can or care to make the decision or is able to push the decision for alternate. Even when every one is complaining, it is still far from every o
26.
▲
by
hzhou321
4y ago
Think about programing layers: A->B->C->D->...->Compiler->binary->output, where A is the end programmer, and B, C, D are the libraries and modules. I think what the article describes is not much different from issues in
27.
▲
by
hzhou321
4y ago
Perl started with scripting, so many design philosophy are centered around scripting. Python, I think, is started with the goal of building applications. My first impression when I learned Python (around 2000) was the OOP nature of Python.
28.
▲
by
hzhou321
4y ago
> Lmao Python has been around since 1991 only three years after Perl appeared. How's it a fad? If everyone start wearing pink this year, that's a fad. A fad has nothing to do with when the stuff was invented. It only has to do
29.
▲
by
hzhou321
4y ago
Python never succeeded in scripting. Shell still dominates scripting today. Perl is rooted in scripting.
30.
▲
by
hzhou321
4y ago
Perl is really cursed by the past glory. People still trying to revive Perl against modern fad, for example, Python. Fad are powered by steam of live Eco-systems, which Perl once had, but no longer have. There is no real reason why Perl co
More ›