| 23 Nov 2025 |
piegames | In reply to @grimmauld:m.grimmauld.de Tbh ich will envirnment.systemPackages = [ inherit [pkgs] curl jq hello ]; oder so pkgs.[curl jq hello] (one day) | 16:39:56 |
hexa | I don't fancy the way it looks 😄 | 16:40:42 |
pentane ⭔ | Julia also has a syntax for vectorizing functions that looks something like this | 17:00:25 |
pentane ⭔ | basically, if you have a function callef foo, you'd normally invoke it as foo(x), but you can also invoke it for each member of a list by writing foo.([a, b, c]) which essentially is the same as [foo(a), foo(b), foo(c)] | 17:01:38 |
pentane ⭔ | makes scientific computing a whole lot easier | 17:02:00 |
piegames | That is a weird way to write a map ^^ | 17:04:51 |
pentane ⭔ | yeah, vectorization in julia basically is the same as map for 1D arrays :D | 17:05:26 |
pentane ⭔ | (random thought: in Haskell terms, multidimensional arrays are functors too, so Julia vectorization basically is 1:1 the same as Haskell fmap) | 17:15:01 |
Atemu | Now let's sprinkle some clojure into this where attrsets are just functions you call with a key to get the corresponding value and we could get this syntax using julia-like vectorisation | 17:40:00 |
Grimmauld (any/all) | doesn't numpy/scipy do the same? | 18:03:27 |
pentane ⭔ | haven't used numpy in like 4 years but yeah, iirc numpy has np.vectorize which basically does the same but without the syntactic sugar | 18:19:57 |
grimmauld (any/all) | don't even need that: | 18:24:47 |
grimmauld (any/all) |  Download image.png | 18:24:50 |
grimmauld (any/all) | moment was ist denn eigentlich mit der Sprache passiert XD
Oh well | 18:25:38 |
pentane ⭔ | das ist schlechtes sprschdesign imo, weil z.B. elementwise quadrieren von den Elementen einer Matrix was anderes ist, als die Matrix als ganzes zu quadrieren | 19:01:34 |
pentane ⭔ | * | 19:01:41 |
grimmauld (any/all) | stimmt schon | 19:01:58 |
grimmauld (any/all) | wobei matrix quadrieren selten nützlich ist... | 19:02:48 |
grimmauld (any/all) | nicht nie, aber na gut | 19:03:18 |
grimmauld (any/all) | numpy hat @ um matrix-multiplikation gegen element-wise * abzugrenzen | 19:03:47 |
grimmauld (any/all) | aber das geht etwas drunter und drüber | 19:03:55 |
grimmauld (any/all) | fast so schlimm wie Eigen in C++, wo auto und Eigen::Vec3f von der scheinbar selben operation unterschiedliche Ergebnisse geben können weil das templating mist baut | 19:05:24 |
grimmauld (any/all) |  Download image.png | 19:08:15 |
grimmauld (any/all) | ich mag es nicht, aber na gut | 19:08:24 |
grimmauld (any/all) | python versucht halt zu viel zu erraten, das hilft nicht wenn man mathematisch stabilen code will. Und numpy ist noch schlimmer als stock python | 19:10:20 |
hexa | ok, aber listen mit kommas als separator ❤️ | 19:25:17 |
ma27 | wenn der separator wenigstens echte spaces und nicht token boundaries wären, wäre ich schon happy :> | 19:39:41 |
ma27 | hast du das Pad noch von der Essensbestell-Nix-Expression von letztem Jahr? :> | 19:39:55 |
hexa | puhhhhhh | 19:40:03 |
Atemu | Ich hab das irgendwo gesaved; kann ich dir Schicken wenn ich wieder an einem Computer bin :D | 19:43:17 |