Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
andralex
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
121.
▲
by
andralex
15y ago
Those are not ideas.
122.
▲
by
andralex
15y ago
... "and if we were still in 1981".
123.
▲
by
andralex
15y ago
Well we're not in court. I simply meant to say that it takes longer to write a compiler for a larger language, and that today the D compiler is of good quality.
124.
▲
by
andralex
15y ago
without throwing the good parts away.
125.
▲
by
andralex
15y ago
D1's compiler was great when D did as little as Go does. Also please stop spreading FUD - the current compiler is eminently usable.
126.
▲
by
andralex
15y ago
I disagree. As far as I can tell, Go is a resolute step backwards from C++ in efficiency, modeling power, and generic programming. That's not necessarily bad; simplicity has its virtue, too. The larger problem is that Go fails to avail itse
127.
▲
by
andralex
15y ago
Thanks for your kind words. In D's standard library we consistently attempt to define each and every algorithm in its most general form, with opportunistic specializations wherever available. As a trivial example, startsWith works on averag
128.
▲
by
andralex
15y ago
I disagree with such umbrella assessments. Besides, forcing people to use garbage collection is very unlike C.
129.
▲
by
andralex
16y ago
Lysdexia is killing me.
130.
▲
by
andralex
16y ago
Could you please clarify that a bit? That would imply that either everybody knows C++ or that I don't. Thanks!
131.
▲
by
andralex
16y ago
D rocks as usual: filter!`a % 2 == 0`(iota(1, 5)) (no eager computation, no dynamic allocation)
132.
▲
by
andralex
16y ago
Filtering a list of numbers by a criterion is not a standard. It's a simple task. The discussion does have relevance - it shows why Java programmers need to rely so heavily on cookie cutter libraries: writing something from scratch is a hug
133.
▲
by
andralex
16y ago
Still terrible.
134.
▲
by
andralex
16y ago
That statement takes considerable license with the word "interesting" and practically reverses the meaning of "enforce".
135.
▲
by
andralex
16y ago
Please make sure you give the example a close read, as it surprises even experienced Go programmers. Both examples look similar to code in the likes of C, C++, Java, and so on, _except_ the semantics gets radically changed depending on one
136.
▲
by
andralex
16y ago
If you like defer's or panic's savings on indentation, you're in desperate need of D: http://www.digitalmars.com/d/2.0/statement.html#ScopeGuardSt...
137.
▲
by
andralex
16y ago
The point of my example was simple - Go's gross mishandling of whitespace is a permanent trap for the unwary and a huge liability for people coming from other languages. When D was nascent, many people proposed various schemes for making se
138.
▲
by
andralex
16y ago
Also traffic in the digitalmars.D forum (the main hangout of D developers and users) is roughly twice the traffic on go's mailing list.
139.
▲
by
andralex
16y ago
I'm not so sure about giving credit. Consider: package main import "fmt" func blah() bool { return false } func main() { x := 5 if(blah()) { x++; } fmt.Printf("%d\n", x) } (which prints 5) and the