!GczNDVOkmUAxrFFnCg:maralorn.de

❄️ Nix Da(rmstadt)

119 Members
Nächstes Treffen: 03.11.2025.(<https://md.darmstadt.ccc.de/nixda-202507>) | Dekoratives Systemmanagement. How dare you … wenn Nix hilft | Use `/roomnick` for silly sentiments. | https://nix-cheatsheet.pixie.homes67 Servers

Load older messages


SenderMessageTime
23 Nov 2025
@cyclopentane:aidoskyneen.eupentane ⭔ 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
@cyclopentane:aidoskyneen.eupentane ⭔makes scientific computing a whole lot easier17:02:00
@piegames:flausch.socialpiegames That is a weird way to write a map ^^ 17:04:51
@cyclopentane:aidoskyneen.eupentane ⭔ yeah, vectorization in julia basically is the same as map for 1D arrays :D 17:05:26
@cyclopentane:aidoskyneen.eupentane ⭔ (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
@atemu12:matrix.orgAtemuNow 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 vectorisation17:40:00
@grimmauld:grapevine.grimmauld.deGrimmauld (any/all) doesn't numpy/scipy do the same? 18:03:27
@cyclopentane:aidoskyneen.eupentane ⭔ 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:m.grimmauld.deGrimmauld (any/all)don't even need that:18:24:47
@grimmauld:m.grimmauld.deGrimmauld (any/all)image.png
Download image.png
18:24:50
@grimmauld:m.grimmauld.deGrimmauld (any/all)moment was ist denn eigentlich mit der Sprache passiert XD Oh well18:25:38
@cyclopentane:aidoskyneen.eupentane ⭔das ist schlechtes sprschdesign imo, weil z.B. elementwise quadrieren von den Elementen einer Matrix was anderes ist, als die Matrix als ganzes zu quadrieren19:01:34
@cyclopentane:aidoskyneen.eupentane ⭔ * 19:01:41
@grimmauld:m.grimmauld.deGrimmauld (any/all)stimmt schon19:01:58
@grimmauld:m.grimmauld.deGrimmauld (any/all)wobei matrix quadrieren selten nützlich ist...19:02:48
@grimmauld:m.grimmauld.deGrimmauld (any/all)nicht nie, aber na gut19:03:18
@grimmauld:m.grimmauld.deGrimmauld (any/all) numpy hat @ um matrix-multiplikation gegen element-wise * abzugrenzen 19:03:47
@grimmauld:m.grimmauld.deGrimmauld (any/all)aber das geht etwas drunter und drüber19:03:55
@grimmauld:m.grimmauld.deGrimmauld (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:m.grimmauld.deGrimmauld (any/all)image.png
Download image.png
19:08:15
@grimmauld:m.grimmauld.deGrimmauld (any/all)ich mag es nicht, aber na gut19:08:24
@grimmauld:m.grimmauld.deGrimmauld (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 python19:10:20
@hexa:lossy.networkhexaok, aber listen mit kommas als separator ❤️ 19:25:17
@ma27:nicht-so.sexyma27wenn der separator wenigstens echte spaces und nicht token boundaries wären, wäre ich schon happy :>19:39:41
@ma27:nicht-so.sexyma27hast du das Pad noch von der Essensbestell-Nix-Expression von letztem Jahr? :>19:39:55
@hexa:lossy.networkhexapuhhhhhh19:40:03
@atemu12:matrix.orgAtemuIch hab das irgendwo gesaved; kann ich dir Schicken wenn ich wieder an einem Computer bin :D19:43:17
25 Nov 2025
@atemu12:matrix.orgAtemu

Kennt jemand eine re-implementation von flakes via normalen eval, die nicht so hart suckt?

Like, implementiert das selbe interface aber halt ohne bei jedem eval mein Projekt in den Nix store zu kopieren und system wieder als stinknormales argument mit currentSystem als default und so

15:01:28
@piegames:flausch.socialpiegamesuh, working on it? kinda?15:02:40
@atemu12:matrix.orgAtemuFür wenn man mal flakes verwenden muss oder tbh. wäre an dem Punkt der flake.nix "standard" dann sogar vlt. reasonably nutzbar15:03:19

Show newer messages


Back to Room ListRoom Version: 6