Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mgaunard
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
751.
▲
by
mgaunard
2y ago
And that documentation just says all differences are minute, e.g. no matrix operators and zero-based indexing. The matrix type exists because the operators don't exist. Any good general-purpose programming language can enable any domai
752.
▲
by
mgaunard
2y ago
The only difference is that MATLAB has more operators like matrix multiplication in addition to element-wise multiply, but that applies to Julia too.
753.
▲
by
mgaunard
2y ago
You're just repeating that it's bad without any argument. Numpy's syntax is the same as MATLAB's. Both MATLAB and Julia also use dynamic typing, though it is true Julia does have support for ad-hoc static typing through
754.
▲
by
mgaunard
2y ago
"its" not "it's" numpy has similar syntax to MATLAB and Julia Python's type system is pretty rich and allows overloading all operators
755.
▲
by
mgaunard
2y ago
Identifying what's parallelizable is valuable in the world of language theory, but pure functional languages are as trivial as it gets, so that research isn't exactly ground-breaking. And you're just not fast enough for anyon
756.
▲
by
mgaunard
2y ago
Is it? The nature of their work is that it's more about reaching the conclusion about what the data says rather than build nice reusable software.
757.
▲
by
mgaunard
2y ago
My experience when trying to give such tools to data scientists is that they can't use them effectively and will attempt to circumvent the idea of vector programming whenever they can get away with it. They will also often write code t
758.
▲
by
mgaunard
2y ago
There are restrictions on calling conventions; it's not equivalent.
759.
▲
by
mgaunard
2y ago
This is the exact same thing except you're visiting two arguments at a time. Guess what, the same syntax I gave supports exactly that as well.
760.
▲
by
mgaunard
2y ago
That doesn't work since you cannot pass that as a single argument to a function.
761.
▲
by
mgaunard
2y ago
C has always had them, it's called union. In practice you need to couple it with an enum, and your visitation mechanism is a switch statement. But C doesn't impose that on you and lets you do it as you see fit.
762.
▲
by
mgaunard
2y ago
If I look around elsewhere than the article. Basically I have no reason to be interested in another Atom clone, and there is no sell in this article that explains why I should care.
763.
▲
by
mgaunard
2y ago
I don't understand how that disproves it; your code is not well-formed.
764.
▲
by
mgaunard
2y ago
that's a forward declaration, you'll need to provide the inline definition in the same translation unit.
765.
▲
by
mgaunard
2y ago
That's not an inline definition, that's a normal definition, which should never be in a header file. Non-inline definitions need to be in their own translation unit.
766.
▲
by
mgaunard
2y ago
I don't understand the question. Here is the first example I found on Google if that helps you understand. std::variant<Fluid, LightItem, HeavyItem, FragileItem> package; std::visit(overload{ [](Fluid& )
767.
▲
by
mgaunard
2y ago
You thought wrong. Marking the symbol as weak is what inline indeed does from a technical point of view.
768.
▲
by
mgaunard
2y ago
I fail to see how it's more precise. Obviously if the definition is inline, it's duplicated in every point where the declaration is imported. Beginners fail to understand for example that providing a class member function definiti
769.
▲
by
mgaunard
2y ago
inline definitely means inline, as in the definition is provided in-line with the declaration. People are just confusing it with the inlining optimization that a compiler might do.
770.
▲
by
mgaunard
2y ago
the article doesn't tell me what Zed is. If I look around, it just says it's the new text editor from the authors of Atom.
771.
▲
by
mgaunard
2y ago
Atom, like most recent editors like VS Code etc., are just clones of Sublime Text with just lots of bloat and JavaScript tech. I'll just stick to Sublime Text.
772.
▲
by
mgaunard
2y ago
High-performance numerical kernels are hardly general-purpose programming.
773.
▲
by
mgaunard
2y ago
C++ has pattern matching through overloading.
774.
▲
by
mgaunard
2y ago
Or even simpler, just make your application listen to a particular port and implement a full HTTP server, and reverse proxy to that (or not) using whatever tech you fancy (Apache, nginx, Cloudflare, Cloudfront, ELB...) This achieves the sam
775.
▲
by
mgaunard
2y ago
https://pypl.github.io/PYPL.html https://www.tiobe.com/tiobe-index/
776.
▲
by
mgaunard
2y ago
std optional is based on boost optional which was written in 2003 before any sort of lambdas made monadic operations usable. The main concern with that component was ensuring we can allocate stack storage for an object that may or may not b
777.
▲
by
mgaunard
2y ago
funny how we only get LoC between the different versions, but not the performance... Of course the parallel algorithms are shorter, it's a more high-level interface. But being explicit gives you more control and potentially more perfor
778.
▲
by
mgaunard
2y ago
It is an undeniable fact, the numbers don't lie.
779.
▲
by
mgaunard
2y ago
Python is the world's most popular programming language and a true general-purpose language usable for any application.
780.
▲
by
mgaunard
2y ago
mod_php runs in the same process as your http server, with the same rights. It's comically bad, especially in mutualized environments, and the reason why PHP is such a common target for hacks.
More ›