Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nercht12
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
nercht12
3mo ago
The downvotes explain why the world is declining in population. Most people fail to see this is the problem.
2.
▲
by
nercht12
3mo ago
The problem with society is that people are commonly selfish, so the majority of people only do things that benefit them. Children benefited ancient societies. The problem with industrialized societies is that people lost all markers of adu
3.
▲
Ask HN: Use GTK3 or GTK4?
13 points
by
nercht12
4y ago
|
6 comments
4.
▲
by
nercht12
6y ago
What if it's through ad networks? Do the ad-networks pay or do they bill their users? Do they start offering the option, "exclude Maryland"? It seems to me this would be really, really difficult to enforce. So much of what is
5.
▲
by
nercht12
6y ago
Dubious. They're doing all they can to kill it with censorship. It takes more than just new tech to keep something afloat - you also have to treat your userbase well.
6.
▲
by
nercht12
6y ago
Copper does not distinguish between function and object. An object-function has two parts: the member part and the executable body. In C++, it's analogous to: class FunctionObject { FunctionObject* members[]; void* operator() { /*
7.
▲
by
nercht12
6y ago
Hey, I thought Episode 1 was good. It was the only prequel that could stand on its own as a complete story. The others were "Oops, I forgot to plan this out better so let's just add a ton of fighting and action to hide that fact&q
8.
▲
by
nercht12
6y ago
a's type didn't change. The trap was that the wrapping function returned its nested function instead of itself. You can do the same thing in other languages, it's just easier to slip into code in Copper. Let me illustrate wit
9.
▲
by
nercht12
6y ago
x = foo() bar(x.a: x.b:) Functions can return data. So say, a=5, then to get the value of 5 out, all you have to do is call the function a. Edit: I'm assuming foo() here returns an object with members "a" and "b". A
10.
▲
by
nercht12
6y ago
The colon is a shorthand for (). Incidentally, it also makes for lots of little smiley faces everywhere.
11.
▲
by
nercht12
6y ago
The dropping of semicolons and commas isn't what makes it simple, I'll agree. I was referring to the simplicity of the parse tree as a whole. It's easier to figure out what a Copper statement does because there are very few t
12.
▲
by
nercht12
6y ago
Actually, it can take multiple. gte(a: b: c: d:) is equivalent to (in C) a >= b && a >= c && a >= d. By making operators like functions, you can group like-operations and simplify code. Admittedly, it's not as
13.
▲
by
nercht12
6y ago
You are correct. "object-function" is basically like in Javascript: It's an object (having members) and an executable body. The colons are a shorthand for function call. ie myfunc() In Copper, variables only store functions.
14.
▲
by
nercht12
6y ago
An article on the blog explains the parse tree. https://copperlang.wordpress.com/2016/11/18/printsyntax/ Edit: The design of the parse tree is such that there is no need for things like statement termina
15.
▲
by
nercht12
6y ago
I see what you're getting at. Yes, a ) is needed... eventually. I think the key with "loose" is that it's forgiving. You won't encounter many syntax errors in average programming because the syntax has few rules. In
16.
▲
by
nercht12
6y ago
No semicolons are ever required. It is loose syntax in that most anything, including this paragraph, is valid and readable code
17.
▲
by
nercht12
6y ago
The guy who wrote it isn't a lawyer either.
18.
▲
Copper: A statically-typed, loose syntax programming language
(github.com)
30 points
by
nercht12
6y ago
|
30 comments
19.
▲
by
nercht12
7y ago
I think being off social media is very healthy. It's sad that people don't interact in person as much anymore, but maybe we'll get more social media that encourages meeting offline (e.g. meetup.com). Anyone want to make an ap
20.
▲
Ask HN: What's a good name for a new programming language?
1 points
by
nercht12
7y ago
|
0 comments
21.
▲
by
nercht12
7y ago
Have a look at this advice: https://www.busymonk.com/how-to-get-a-software-job/ While it's intended for new grads, there are a number of items on it that we often miss/forget/neglect.
22.
▲
by
nercht12
7y ago
Come on, guys. Don't downvote him. He was being funny. X) Along those lines, we can say anything made for ChristOS is definitely cross-platform. XD (There's a double pun in that one if you know Greek.)
23.
▲
by
nercht12
7y ago
On the right track, but even moreso of a factor is the personal relations in one's life. A kid straight out of school being told constantly to "go get a job" has trouble trying new things and getting a startup going. They end
24.
▲
by
nercht12
7y ago
I wish Thunderbird would show me the email address of the sender without requiring that I open the email. That way I could check for spammers and fakes posing as friends. I've searched for such a feature and haven't found it yet.
25.
▲
by
nercht12
7y ago
If companies didn't require "higher education" degrees for entry, then schools would be forced to start appealing more to the masses. In an information age such as we live in, we can access virtually all the info we could get
26.
▲
by
nercht12
7y ago
Plato didn't imagine his audience to be idiots. He really debated with himself or with questions he'd probably heard other people actually make (since he was with lots of other philosophers). He's harder to appreciate if you
27.
▲
by
nercht12
7y ago
I started to understand pointers easily because I was told variables were mailboxes that held data/stuff (like numbers). A pointer was just another variable (mailbox) that held the address of a different mailbox. There you have it. Poi
28.
▲
by
nercht12
7y ago
I really liked the idea of traits in Rust - a kind of interfacing you couldn't get cleanly with C++. The early snag in development there was that the public-vs-private issue couldn't be (sensibly) resolved when a trait was inherit
29.
▲
by
nercht12
7y ago
> The Treaty of Paris (1783) ended the revolutionary battle. You took me literally there. I meant the PAST tense, but it seems I wrote the present active tense of "fight". > Nor do I understand your third paragraph It's
30.
▲
by
nercht12
7y ago
> Any arguments based on lower cost of anything collapse instantly. That's too broad an assumption. In truth, it'll depend on WHAT you are trying to manufacture and if you can keep it on Mars and send its product/output ba
More ›