Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
apta
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
451.
▲
by
apta
6y ago
> try { ... } catch(Exception ex) { ... } The error here is explicitly handled, and cannot be accidentally ignored. Unlike golang where it's quite easy for errors to go ignored accidentally.
452.
▲
by
apta
6y ago
The following line in golang ignores the error: fmt.Println("foo") Compare to a language with exception handling where an exception will get thrown and bubbles up the stack until it either hits a handler, or crashes the p
453.
▲
by
apta
6y ago
How are they making it worse? In any case, there already exist solutions in place: https://checkerframework.org/manual/#example-use https://github.com/uber/NullAway
454.
▲
by
apta
6y ago
A form of pattern matching and switch expression has already made it to the language as of JDK 14. Those are paving the way for full blown pattern matching and sealed types: https://cr.openjdk.java.net/~briangoetz/amber
455.
▲
by
apta
6y ago
> If it was strictly inferior, why would a modern language be designed that way golang is not a modern language (how old it is is irrelevent), and the people who designed it did not have a proper language design background (their other
456.
▲
by
apta
6y ago
Because multiple return values for handling errors is a strictly inferior and error prone way for dealing with the matter.
457.
▲
by
apta
6y ago
> having implicit nulls (C, C++, Java, JS, C#), > lack of proper sum types (C, C++, Java, JS) Incidentally, Java and C# have addressed (or are in the process of addressing) both issues. Both languages/platforms are superior to go
458.
▲
by
apta
6y ago
> that a group of people basically decide for the whole world, cultures and countries how should they feel about things Hopefully people see now the plight of the Palestenians citizens of other regions in that area, about what the West d
459.
▲
by
apta
6y ago
You're giving them too much credit :) I think they're unaware of the dumbing down they're doing.
460.
▲
by
apta
6y ago
They should just ignore them. Leave the github issue open, just don't respond to it. Let's see where it gets those SJW's
461.
▲
by
apta
6y ago
> Anyone who chooses to be offended by words used in a totally different context is doing exactly that - choosing to be offended. It's even more absurd in these situations, since the ones "offended" are almost always white
462.
▲
by
apta
6y ago
> or are there just a load of white people who have focused on literally the most unimportant aspect of being a black person in the tech community? Seems that way. It's actually offensive to suggest that such a person should be offe
463.
▲
by
apta
6y ago
When's Muslim history month? Jewish history month? Aramaic history month? Japanese history month?
464.
▲
by
apta
6y ago
> A religious view makes no difference - it just pushes the question back one step. I disagree. You have well-known atheist figures that have expressed views similar to what I was describing. That rape isn't inherently bad, it'
465.
▲
by
apta
6y ago
> If the person I'm selling food to already has enough food, why would he be buying more? Food is perishable, and people like diversity in what they eat. Your example is an apples to oranges comparison. If he doesn't like what
466.
▲
by
apta
6y ago
> The increase in money lending us directly correlated with a vast increase in the standard of living for the average human. You said it yourself, it's correlation, not causation. There are other factors that occurred in that time f
467.
▲
by
apta
6y ago
When you're selling a good or a service, you're exchanging one type for another, usually hand-in-hand. You buy food, furniture, etc. in exchange for money. There's value in the thing you're selling in exchange for a cert
468.
▲
by
apta
6y ago
There are true risk sharing models that do not involve interest. For example, I want to start a business, instead of taking a interest-bearing loan, I have someone invest in my business in return for equity. This way, risk is shared by both
469.
▲
by
apta
6y ago
Selling money is unethical because of the inherent exploitation involved, by taking advantage of someone who is in need of it. No one is saying not to make profit, just do it properly. You can rationalize interest as being compensated for r
470.
▲
by
apta
6y ago
So as you're putting it, it doesn't matter, it's all the same either way whether we or don't have a legal system. So why punish people if they don't have free will?
471.
▲
by
apta
6y ago
You seem to be arguing from an agnostic or atheist point of view (correct me if I'm wrong). If that's the case, then there is no incentive whatsoever to limit the "damage" to the people who do get locked up, because it&#
472.
▲
by
apta
6y ago
It's a moral argument against the inherent exploitation involved in usury. No one denies the time value of money, it's about how to extract that value morally and ethically, and not at the expense of the needy.
473.
▲
by
apta
6y ago
> better than Kotlin I haven't used Kotlin in any significant capacity, but what does Dart do better than it?
474.
▲
by
apta
6y ago
> Our system is 100% entirely dependent upon ARTIFICIALLY low interest rates driven by Central Banks. It's the other way around: the entire reason why everything is so screwed is because of interest. It's an evil and exploitati
475.
▲
by
apta
6y ago
The current economic system is fundamentally flawed. Unless someone has the courage to ban interest/usury, things will stay the way they are. We have known this for thousands of years now, but unfortunately greed and exploitation persi
476.
▲
by
apta
6y ago
If there's no free will as you're positing, what logically follows is that we should not have a legal system. Why punish someone because they stole for example? It was all pre-determined. This is where this line of reasoning break
477.
▲
by
apta
6y ago
Synthetic benchmarks are not representative of real world performance. People who have dealt with large programs can testify to this. Yet, the binary-trees benchmark is allocation heavy, and typical of workloads similar to those described i
478.
▲
by
apta
6y ago
Where is it beating Java by any significant amount? The regex benchmark uses Java's native regex matcher, whereas the golang implementation uses a PCRE regex matcher, so not an apples to apples comparison. The mandelbrot benchmark are
479.
▲
by
apta
6y ago
> For one thing, Go can be made memory safe if you avoid concurrent mutability. golang's performance won't be as good as Java's.
480.
▲
by
apta
6y ago
> C# and its structs, yummy. Yep. Java should also be getting value types, hopefully soonish: https://cr.openjdk.java.net/~briangoetz/valhalla/sov/01-back...
More ›