Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tastyminerals2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
tastyminerals2
6y ago
Julia was written in C++ in early stages if I remember correctly then Julia ;) The point here is that NumPy is heavily fine-tuned and will beat almost any other language implementation out there. The community is bigger and therefore there
92.
▲
by
tastyminerals2
6y ago
But the runtime performance is not that great either. Dot product: NumPy 0.03528 vs 0.03 Julia (x1/1.1) Element-wise sum: NumPy 0.00379 vs 0.0063 Julia (x1.6) Element-wise mul: NumPy 0.00419 vs 0.00617 Julia (x1.5) L
93.
▲
The Lost Logic of Elementary Mathematics
(docs.google.com)
2 points
by
tastyminerals2
6y ago
|
0 comments
94.
▲
Do you know about OpenBLAS alternative Mir GLAS?
(github.com)
8 points
by
tastyminerals2
6y ago
|
2 comments
95.
▲
by
tastyminerals2
6y ago
Yes, they are frequently compared. If you like style-insensitive (case insensitivity, underscore ignored) languages with hacker mentality, Nim is for you. This is simply a no-go for me. I briefly tried Nim before even knowing about D and it
96.
▲
by
tastyminerals2
6y ago
True. I forgot about implicits (because I try not to use them :). Unfortunately it looks more like a kludge tbo. Sort and uniq get also hidden in a class which can be tucked away from your eyes and this is never good.
97.
▲
by
tastyminerals2
6y ago
Unlike in Scala, you can chain your custom methods in D. For example, seqOfChars.map!(a => a.toLower).filterIfNotDigitChar.sort.uniq; is simply not possible in Scala. Here is a great presentation about fp in D: http://beza1e1.
98.
▲
by
tastyminerals2
6y ago
There are dedicated installers for Windows if that is what you want: https://dlang.org/download.html I never used the "install.sh" but just tried and since I have Windows git installed (which comes with MSYS2) it
99.
▲
by
tastyminerals2
6y ago
Anonymous lambdas instead of comprehensions, delegates instead of closures. D does not have decorators in the sense Python does, well function attributes might come close. What I do enjoy in D syntax-wise is UFCS: https://tour.dl
100.
▲
by
tastyminerals2
6y ago
You will be surprised if you do ;) Multi-paradigm to be exact. Scala is a multi-paradigm as well btw. http://beza1e1.tuxen.de/stuff/FunctionalD.pdf
101.
▲
by
tastyminerals2
6y ago
In theory and to some degree in practice. The compiler won't fix the code that compiles but runs incorrectly. Besides, there are statically typed functional languages where compiling time is not a problem, see D.
102.
▲
by
tastyminerals2
6y ago
You forgot about D, where you can basically bind ctrl+s to rdmd in your favourite IDE and enjoy scripting language akin experience.
103.
▲
by
tastyminerals2
6y ago
* bad or missing tooling - true, it's missing but I wouldn't say it is bad * no clear direction - agree * no vision - there is but not well maintained unfortunately https://wiki.dlang.org/Vision/2018H1 * no i
104.
▲
by
tastyminerals2
6y ago
Yes, "make an explicit choice regarding mutability" can be done even easier by actually writing "immutable double[] arr = [1, 2, 3];", "const double[] arr = [1, 2, 3];". See, no Scala val/var which to a pe
105.
▲
by
tastyminerals2
6y ago
Subjectively, I see no point in having "val", "var", "let", "def", "fn" symbols which bring only noise to code. Why would you want to explicitly tell that something is a value while all you
106.
▲
by
tastyminerals2
6y ago
Let me throw my uneducated and biased opinion on the table. It's amazing how Rust development and popularity progressed over the years. Uncompromising features, no trade-offs except for complexity and compilation speed but what languag
107.
▲
by
tastyminerals2
6y ago
(Let me nip a little here). Looks like not only Scala inference types but also its compile times too migrated into Rust.
108.
▲
by
tastyminerals2
6y ago
True. But unlike C++ or Rust, D is not a difficult language at all. You can easily understand when and how not to use GC. Which data structures require allocation and which can circumvent it. There is an ongoing work to make std a @nogc com
109.
▲
by
tastyminerals2
6y ago
One of the reasons why I haven't approached Rust is its syntax. Subjectively ugly and polluted with punctuation symbols that tell you little about their semantics. D looks cleaner and more readable even for a person not familiar with t
110.
▲
by
tastyminerals2
6y ago
Emm, screen config not retained is an OS issue and not a laptop tbo. I agree that tablet mode is not convenient but you are free to stay in desktop mode. USB resources are not enough but I never ran out of USB ports because I have no use fo
111.
▲
by
tastyminerals2
6y ago
They don't and I would not advise you to. I had Archlinux installed on Surface Book 2 and was dual booting for some time but the Linux experience was pretty bad. Camera is not working and never will. Touchscreen works as an alternativ
112.
▲
by
tastyminerals2
6y ago
I disagree in case of Surface Book. I didn't try Go. This is a powerful premium laptop which can be used not only for pleasant programming experience due to good keyboard and 4k screen but also gaming due to powerful GPU card. It does
113.
▲
by
tastyminerals2
6y ago
I agree. It is a design flaw I was well aware before making a purchase and bought a screen protector for Surface. It served me well so far, I am also more careful of not holding the laptop by the edge or slapping it too much. However, I thi
114.
▲
by
tastyminerals2
6y ago
This is debatable but I would agree to some extend that it is easier to resell MacBook Air/Pro than Surface. I would also argue that it is rather due to higher familiarity with Apple products, not hardware. In anyway, this is not an ar