Post B2R0z4lp55TO4l9IP2 by HatkeshiatorTND@annihilation.social
 (DIR) More posts by HatkeshiatorTND@annihilation.social
 (DIR) Post #B2R0hczv5NqN19QH9k by HatkeshiatorTND@annihilation.social
       2026-01-19T06:42:17.583424Z
       
       2 likes, 1 repeats
       
       alleged Verbose, Beginner-Friendly, Near-English programming language python just threw yours truly for a loop. given no background information, what do you guess float* randn(int n) does? generate n random numbers, right? as opposed to rand() which would presumably generate just one?nope!
       
 (DIR) Post #B2R0psytXlFGuEsgds by Zergling_man@sacred.harpy.faith
       2026-01-19T06:43:39.594051Z
       
       0 likes, 0 repeats
       
       @HatkeshiatorTND That doesn't look like a python header at all, are you in the wrong aisle?Python is not a beginner-friendly language, IMO, because it never bothers to explain by-ref vs by-val, which is a great way to introduce subtle bugs because you'll use it constantly.
       
 (DIR) Post #B2R0tgPyCBXH6GM7yC by HatkeshiatorTND@annihilation.social
       2026-01-19T06:44:29.276845Z
       
       1 likes, 1 repeats
       
       rand and randn have the same signature and the difference is that one generates uniform 0 to 1, and randn generates gaussian with mean 0 and sdev 1.
       
 (DIR) Post #B2R0yNCZ4IigwxK1ya by Zergling_man@sacred.harpy.faith
       2026-01-19T06:45:08.783105Z
       
       0 likes, 0 repeats
       
       @HatkeshiatorTND Oh yeah in addition, python's random number generation function is random.random(), not rand or randn, so...
       
 (DIR) Post #B2R0z4lp55TO4l9IP2 by HatkeshiatorTND@annihilation.social
       2026-01-19T06:45:28.236570Z
       
       2 likes, 1 repeats
       
       @Zergling_man i describe functions like i'm writing c, because it's easier for me to understand (i suck at math but like thinking about simple data structures)
       
 (DIR) Post #B2R14Wq69Hj6ZtkTzc by HatkeshiatorTND@annihilation.social
       2026-01-19T06:46:27.477336Z
       
       1 likes, 1 repeats
       
       @Zergling_man well i'm talking about numpy.random.* not anything else. also, go figure, python gives you eight ways to do it with unclear differences. who knew?
       
 (DIR) Post #B2R15rfKCdQTSWLYDw by Zergling_man@sacred.harpy.faith
       2026-01-19T06:46:32.502037Z
       
       0 likes, 0 repeats
       
       @HatkeshiatorTND I think that's a bad habit, given that function headers are not necessarily compatible between languages.For example, in python, functions can have multiple return types depending on what happens in it.
       
 (DIR) Post #B2R1DfSdSmrNvK8Fdo by menherahair@eientei.org
       2026-01-19T06:48:06.419905Z
       
       1 likes, 1 repeats
       
       @Zergling_man @HatkeshiatorTND
       
 (DIR) Post #B2R1KW24ur90i1yXke by Zergling_man@sacred.harpy.faith
       2026-01-19T06:49:03.772874Z
       
       0 likes, 0 repeats
       
       @HatkeshiatorTND import this>numpy.random.* not anything else. also, go figure, python gives you...>eight ways to do it with unclear differencesTo be fair, they are documented and the documentation states that they are compatibility wrappers for functions with much clearer names:>>>help(numpy.random.rand)This is a convenience function for users porting code from Matlab, and wraps `random_sample`.>>>help(numpy.random.randn)This is a convenience function for users porting code from Matlab, and wraps `standard_normal`
       
 (DIR) Post #B2R1YS5qMJWuXuNkZc by Zergling_man@sacred.harpy.faith
       2026-01-19T06:51:34.780631Z
       
       0 likes, 0 repeats
       
       @menherahair @HatkeshiatorTND It's a pretty handy behaviour IMO.If your thing returns some scalar and then suddenly it's returning a tuple, you inspect it and it's (scalar,notes). You still have to handle it separately but doing so is relatively straightforward. (Granted, it's generally a better idea in that case for the function to just return (scalar,None) so you can always just res,notes=call().)
       
 (DIR) Post #B2R1jY5GQTrcJLP0Bk by menherahair@eientei.org
       2026-01-19T06:53:52.252052Z
       
       1 likes, 1 repeats
       
       @Zergling_man @HatkeshiatorTND I'm just trying to not bring up perl rn because I wanna play minecraft and clean my place in an hour instead of whatever's about to go down here
       
 (DIR) Post #B2R1lCEgcy0X86ay2K by HatkeshiatorTND@annihilation.social
       2026-01-19T06:54:09.996213Z
       
       1 likes, 1 repeats
       
       @Zergling_man @menherahair look man this is about where you lose me. i'm the kind of guy who thinks printf in c is too much, that putting awk in a pipeline is pushing it. i abhor what i don't understand and i don't understand much.
       
 (DIR) Post #B2R1vypenoUikD1vP6 by Zergling_man@sacred.harpy.faith
       2026-01-19T06:55:40.788612Z
       
       1 likes, 1 repeats
       
       @menherahair @HatkeshiatorTND
       
 (DIR) Post #B2R2IRIVeKfxOnEcdM by Zergling_man@sacred.harpy.faith
       2026-01-19T06:59:48.338955Z
       
       0 likes, 0 repeats
       
       @HatkeshiatorTND @menherahair Seems like there's a relatively straightfoward way to handle it.>>> def function(param):...     if param: return '1'...     return 0...>>> function(1)'1'>>> function(0)0>>> function()Traceback (most recent call last):  File "<python-input-3>", line 1, in <module>    function()    ~~~~~~~~^^TypeError: function() missing 1 required positional argument: 'param'>>> function('')0>>> function([1])'1'
       
 (DIR) Post #B2R2TFUNtSHDxdwZA8 by Zergling_man@sacred.harpy.faith
       2026-01-19T07:01:47.898245Z
       
       0 likes, 0 repeats
       
       @HatkeshiatorTND @menherahair [I know roughly nothing about perl except that some people like to use it in place of bash, which seems strange to me]
       
 (DIR) Post #B2R2kYLz0c79OJGVXM by Zergling_man@sacred.harpy.faith
       2026-01-19T07:04:56.113506Z
       
       0 likes, 0 repeats
       
       @menherahair @HatkeshiatorTND Anyway instead of minecraft, come play swat with me >:|
       
 (DIR) Post #B2R3KaXENMW0a7i2E4 by HatkeshiatorTND@annihilation.social
       2026-01-19T07:11:45.320775Z
       
       1 likes, 1 repeats
       
       @Zergling_man @menherahair btw your website status page says you intended to set up a minetest server way back in the cambrian epoch when minecraft released 1.19, is that still your intention?
       
 (DIR) Post #B2R3R2Xl9abxBb26aG by Zergling_man@sacred.harpy.faith
       2026-01-19T07:12:48.255758Z
       
       0 likes, 0 repeats
       
       @HatkeshiatorTND @menherahair Just as soon as I finish mail server stuff, 13cal, amb-crawl, big space, Shoujo: Harem, jitsi...
       
 (DIR) Post #B2R3XJ94LEzwPfTNbc by Zergling_man@sacred.harpy.faith
       2026-01-19T07:13:53.327236Z
       
       0 likes, 0 repeats
       
       @menherahair @HatkeshiatorTND ... warsmash, feditribes/もえ.ヰ.dev/DUG-VP...
       
 (DIR) Post #B2R3bn1ZC6BCEu6JVY by menherahair@eientei.org
       2026-01-19T07:14:51.902744Z
       
       1 likes, 1 repeats
       
       @Zergling_man @HatkeshiatorTND depending on what you're doing you may have better odds for every relevant environment to both run and come packaged with perl rather than bash. it's fast to write, maybe on par with shell script which is why I use it. the programs grow gracefully unlike bash where you start passing references by names and other dumb shit. it's also like a creole of c and shell, and it has a loong and arduous learning curve full of pitfalls exactly like shell, so a kind of person may prefer to use it for very practical reasons related to that.
       
 (DIR) Post #B2R3iDjcnVuGonm7RA by Zergling_man@sacred.harpy.faith
       2026-01-19T07:15:45.797745Z
       
       1 likes, 0 repeats
       
       @menherahair @HatkeshiatorTND I would sooner set my shell to /bin/python.
       
 (DIR) Post #B2R3qoZnhnkPOgHIci by menherahair@eientei.org
       2026-01-19T07:17:35.632504Z
       
       2 likes, 1 repeats
       
       @Zergling_man @HatkeshiatorTND I can't the minecraft server has girls on it
       
 (DIR) Post #B2R40KTqSNYEx41sFk by Zergling_man@sacred.harpy.faith
       2026-01-19T07:19:04.697899Z
       
       1 likes, 0 repeats
       
       @menherahair @HatkeshiatorTND Get the fuck off the autist network, you damn normie traitor
       
 (DIR) Post #B2RNbx8BcEAQfUYIpk by Yoruka@eientei.org
       2026-01-19T10:59:01.547916Z
       
       1 likes, 1 repeats
       
       @Zergling_man @HatkeshiatorTND @menherahair /usr/bin/nodejs
       
 (DIR) Post #B2RNz3rOlLCaCOid7I by Zergling_man@sacred.harpy.faith
       2026-01-19T11:02:43.508898Z
       
       1 likes, 0 repeats
       
       @Yoruka @menherahair @HatkeshiatorTND stop
       
 (DIR) Post #B2RO0Bgr8WMUlyKCP2 by Zergling_man@sacred.harpy.faith
       2026-01-19T11:03:13.317486Z
       
       0 likes, 0 repeats
       
       @menherahair @HatkeshiatorTND @Yoruka Alternate:
       
 (DIR) Post #B2RO3qlItBnb1V9SLo by Yoruka@eientei.org
       2026-01-19T11:04:03.360080Z
       
       1 likes, 1 repeats
       
       @Zergling_man @HatkeshiatorTND @menherahair /usr/bin/wine-cmd
       
 (DIR) Post #B2ROA7yXnoWk9DL1Um by Zergling_man@sacred.harpy.faith
       2026-01-19T11:04:50.975511Z
       
       0 likes, 0 repeats
       
       @menherahair @Yoruka @HatkeshiatorTND [also I forgot what this is from and it's kinda annoying meif I look through the last ~15 OVI entries I should find it]
       
 (DIR) Post #B2RV3Vi5rI13PZR2hM by menherahair@eientei.org
       2026-01-19T12:22:25.101869Z
       
       2 likes, 1 repeats
       
       @Yoruka @Zergling_man @HatkeshiatorTND pwsh