Programming thread

  • 🔧 Site instability resolved. You can report double-posts and broken attachments. For bigger issues, use the Technical Grievances thread.
    🇵🇦 Nuestro primer dominio localizado está en español en kiwifarms.pa. Our first localized domain is on Spanish on kiwifarms.pa.
  • Want to keep track of this thread?
    Accounts can bookmark posts, watch threads for updates, and jump back to where you stopped reading.
    Create account
No thanks, I'll take my future with Mr. God and HolyC.

A helpful table of APL symbols
Ver archivo adjunto 8355198
still better than J - https://code.jsoftware.com/wiki/NuVoc

to be honest i like those types of languages
i personally use uiua from time to time, it has way too much faggotry for my tastes but aside from that the language is interesting

its meant to be something like a stack based APL, but recently the language has been switching from forth-like stack managment like swap or dup or whatever to i guess more idiomatic approach of manipulating the arguments while calling a function like calling a function with order of arguments reversed (n-adic/polyadic commute) or more familiar self modifier which calls a function with all the arguments being the value on top of the stack (in APL also uses the same glyph as commute funnily enough)

if you want a more modern APL theres a language called BQN https://mlochbaum.github.io/BQN/
i like it, but i cant use it for the same reason i cant use apl (i cant comprehend the uhh "flow" of data)
 
Mfw after writing code that places the responsibility on the caller and I am now the caller
guy-pointing-gun-at-self-meme-3.jpg
 
I wish:

def many(f, n):
return (f() for _ in range(n))
#used like:
v, c, d, b = many(list, 4)

or something very similiar
came with default python. I have to do it for nearly every single project.

I don’t want to define helpers just to express something that is conceptually simple and safe.
chained assignements evaluate each expression once, while tuple unpacking does it seperately and neither are very much fun.
there's no standard syntax for evaluationg expressions (O)N to unpack the results.
I think new syntax would be justified.
and no

v, c, d, b = iter(list, None)

is not acceptable because it breaks for ints, bools, strings and floats.
I would also love something for the leftern side of the equation too but asking for that's a stretch that will likely never be met, even lesso than a default 'many'.
 
I wish:

def many(f, n):
return (f() for _ in range(n))
#used like:
v, c, d, b = many(list, 4)

or something very similiar
came with default python. I have to do it for nearly every single project.

I don’t want to define helpers just to express something that is conceptually simple and safe.
chained assignements evaluate each expression once, while tuple unpacking does it seperately and neither are very much fun.
there's no standard syntax for evaluationg expressions (O)N to unpack the results.
I think new syntax would be justified.
and no

v, c, d, b = iter(list, None)

is not acceptable because it breaks for ints, bools, strings and floats.
I would also love something for the leftern side of the equation too but asking for that's a stretch that will likely never be met, even lesso than a default 'many'.
im pretty sure that goes against the zen of python
 
Yeah well your stupid fucking Zen is wrong, why do you think we don't have constants outside of "social enforcement".
ion fucking know nigga

python itself doesnt follow the zen all that well
they added "t-strings" (template strings) to the language recently, so now you can format strings in like 5 different ways, which also violates the zen of python
 
I wish:

def many(f, n):
return (f() for _ in range(n))
#used like:
v, c, d, b = many(list, 4)

or something very similiar
came with default python. I have to do it for nearly every single project.

I don’t want to define helpers just to express something that is conceptually simple and safe.
chained assignements evaluate each expression once, while tuple unpacking does it seperately and neither are very much fun.
there's no standard syntax for evaluationg expressions (O)N to unpack the results.
I think new syntax would be justified.
and no

v, c, d, b = iter(list, None)

is not acceptable because it breaks for ints, bools, strings and floats.
I would also love something for the leftern side of the equation too but asking for that's a stretch that will likely never be met, even lesso than a default 'many'.
Imagine not having a personal standard library you include in all your projects for exactly this kind of situation.
 
Imagine not having a personal standard library you include in all your projects for exactly this kind of situation.
I avoid doing that kind of thing now to prevent overheard and maintenance burden. I'm not typically working with 200 people, collabs don't usually happen that often for me and when I pass that code I want it to be understood without forcing others to understand my 'personal standard lib', so no that's by design.
 
quick question in a G74 cycle it cannot be used with G02 and G03 movements, only G01 movements with no angular interpolation, right? I've been trying to make it work but just keep getting errors, do I just need to hand write a function to replace G74 but does the proper calculations for positions across an arc?
 
Drunk and watching an old episode of The Computer Chronicles; still worth watching today for the historical knowledge and context
And holy shit:
Screenshot 2026-01-02 at 21-08-00 The Computer Chronicles - Artificial Intelligence (1984) - Y...png
In pace requiescat
 
Última edición:
Atrás
Top Abajo