Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Mooey Cow
Jan 27, 2018

by Jeffrey of YOSPOS
Pillbug

Captain Beans posted:

What’s the beef with python?

Apart from being an idiot language that treats whitespace as control characters, with weakly typed variables that you can't even declare etc. etc., let me tell you about that time I tried to use one of those image generation libraries.

Installing that poo poo is a complete mess. I already two python versions installed so you'd figure you jist download the scripts and run them? Hooooo no. First you gotta get 500 libraries, and to get those, you gotta get a program that downloads libraries. Fine I get the program, but turns out the python versions i got are too old to run that program, also written in python of course. Fine, I get the latest version, and download all the libraries. So now the drat thing runs, right? Wrong. Well it does something but nothing comes out. Check some kind of log output, search the internet for an hour, and it turns out the version of python I picked is too recent. The drat thing only works with a very specific version of the language, not too young, not too old. And this is apparently not unusual for python and its libraries. So I gotta do all that poo poo all over again, and get all the libraries, and then it runs. Terrrrribly. I rewrite the script to not seem like it was written by a complete doucheturd piece of poo poo and then it was vaguely usable.

To run one drat script, i needed to install multiple gigabytes of libraries, and if I wanted to run a different script alongside that one, i would have needed to install the all same stuff again but of a slightly different version.

Adbot
ADBOT LOVES YOU

Pug Rodeo
Feb 20, 2007

BRING IT ON BRING IT ON YEAH


David Bowie and Prince riding a moped together on the surface of Mars.

Lil Swamp Booger Baby
Aug 1, 1981

More like gently caress-e Sucki

Revins
Nov 2, 2007





tune the FM in to static and pretend that its the sea
barney the dinosaur struggling to survive in a dangerous cyberpunk city



Hardawn
Mar 15, 2004

Don't look at the sun, but rather what it illuminates
College Slice


Buddha eating a popsicle on a hot summer day

numberoneposter
Feb 19, 2014

How much do I cum? The answer might surprise you!

numberoneposter
Feb 19, 2014

How much do I cum? The answer might surprise you!

Revins
Nov 2, 2007





tune the FM in to static and pretend that its the sea
oo I have a fun game









guess a single part of the prompt here and your wildest dreams will come true

Nigmaetcetera
Nov 17, 2004

borkborkborkmorkmorkmork-gabbalooins

deep dish peat moss posted:

Hyperrealistic next-gen 3d render of a gigantic Forums Goon, his shirt is stained in sweat, mustard, and cheeto dust.






Forums goons look like retired pro wrestlers.

kntfkr
Feb 11, 2019

GOOSE FUCKER
this poo poo is wild

Only registered members can see post attachments!

numberoneposter
Feb 19, 2014

How much do I cum? The answer might surprise you!

numberoneposter
Feb 19, 2014

How much do I cum? The answer might surprise you!

kntfkr
Feb 11, 2019

GOOSE FUCKER
your wasting all your wall-e credits on smash mouth

Three Olives
Apr 10, 2005
I FUCKING HATE POOR PEOPLE BUT I LOVE BEING FUCKED IN THE ASS and having two dishwashers in my CONDO!!!!!!!!!!!!!!!!!!!!

deep dish peat moss posted:

You can then join their discord and fill out this form to sign up for "Promptober" which will give you 5 additional free credits every day of October: https://forms.gle/yxdYvJ2qs25rD3gaA

Sorry, not good at Discord, how do I find their official Discord?

numberoneposter
Feb 19, 2014

How much do I cum? The answer might surprise you!

kntfkr posted:

your wasting all your wall-e credits on smash mouth
Any promt suggestions?

OhsH
Jan 12, 2008

numberoneposter posted:

Any promt suggestions?

Schumacher waking up, jim davis style

numberoneposter
Feb 19, 2014

How much do I cum? The answer might surprise you!

Cubone
May 26, 2011

Because it never leaves its bedroom, no one has ever seen this poster's real face.

numberoneposter posted:

Any promt suggestions?

barack the hedgehog, colored pencil on notebook paper

mudskipp
Jan 1, 2018

stop making sense

Blitter posted:

All the formatting fun of COBOL with the garbage performance of a runtime interpreter?

Fuckin weakly typed, poo poo performing, fotm languages, god drat kids these days!!

:argh:

Now if only would give out my phone number I could see if I could get a painting outta my screed!!

I had to look COBOL up on the internet and it said "due to the retirement of experienced COBOL programmers, code is now being rewritten in modern languages"

Which gave your post a further more subtle old man complaining vibe, well done

Dr. Video Games 0031
Jul 17, 2004

are they ever gonna release this thing for local image generation, or are they gonna gate it behind a paywall forever?

Geemer
Nov 4, 2010



Dr. Video Games 0031 posted:

are they ever gonna release this thing for local image generation, or are they gonna gate it behind a paywall forever?

There's a bunch of Stable Diffusion implementations that you can run locally. Some of them come with a web gui so you're not typing poo poo into a command prompt constantly. And there's support for low VRAM (at least 4gb) cards, at the cost of extra processing time.

Someone even got it to run on their iPhone, really slowly, by breaking up the model into chunks so they'd fit in the memory.

Mooey Cow
Jan 27, 2018

by Jeffrey of YOSPOS
Pillbug
Stable Diffusion has a bunch of warnings that any prompt could potentially produce "explicit and adult material". Anyone done any cyberporn yet?

corgski
Feb 6, 2007

Silly goose, you're here forever.

How did lowtax end up in this photo?

ChubbyChecker
Mar 25, 2018

Mooey Cow posted:

Apart from being an idiot language that treats whitespace as control characters, with weakly typed variables that you can't even declare etc. etc., let me tell you about that time I tried to use one of those image generation libraries.

Installing that poo poo is a complete mess. I already two python versions installed so you'd figure you jist download the scripts and run them? Hooooo no. First you gotta get 500 libraries, and to get those, you gotta get a program that downloads libraries. Fine I get the program, but turns out the python versions i got are too old to run that program, also written in python of course. Fine, I get the latest version, and download all the libraries. So now the drat thing runs, right? Wrong. Well it does something but nothing comes out. Check some kind of log output, search the internet for an hour, and it turns out the version of python I picked is too recent. The drat thing only works with a very specific version of the language, not too young, not too old. And this is apparently not unusual for python and its libraries. So I gotta do all that poo poo all over again, and get all the libraries, and then it runs. Terrrrribly. I rewrite the script to not seem like it was written by a complete doucheturd piece of poo poo and then it was vaguely usable.

To run one drat script, i needed to install multiple gigabytes of libraries, and if I wanted to run a different script alongside that one, i would have needed to install the all same stuff again but of a slightly different version.

u mad? :troll:

Mooey Cow
Jan 27, 2018

by Jeffrey of YOSPOS
Pillbug

Yes

frumpykvetchbot
Feb 20, 2004

PROGRESSIVE SCAN
Upset Trowel

Mooey Cow posted:

Anyone done any cyberporn yet?

nobody has. never. anywhere. it's forbidden in the T&C and besides who would want such.

sigher
Apr 22, 2008

My guiding Moonlight...



Mooey Cow posted:

Apart from being an idiot language that treats whitespace as control characters, with weakly typed variables that you can't even declare etc. etc., let me tell you about that time I tried to use one of those image generation libraries.

Installing that poo poo is a complete mess. I already two python versions installed so you'd figure you jist download the scripts and run them? Hooooo no. First you gotta get 500 libraries, and to get those, you gotta get a program that downloads libraries. Fine I get the program, but turns out the python versions i got are too old to run that program, also written in python of course. Fine, I get the latest version, and download all the libraries. So now the drat thing runs, right? Wrong. Well it does something but nothing comes out. Check some kind of log output, search the internet for an hour, and it turns out the version of python I picked is too recent. The drat thing only works with a very specific version of the language, not too young, not too old. And this is apparently not unusual for python and its libraries. So I gotta do all that poo poo all over again, and get all the libraries, and then it runs. Terrrrribly. I rewrite the script to not seem like it was written by a complete doucheturd piece of poo poo and then it was vaguely usable.

To run one drat script, i needed to install multiple gigabytes of libraries, and if I wanted to run a different script alongside that one, i would have needed to install the all same stuff again but of a slightly different version.

I love it when my favorite GBS posters serious post and they're actually smart people who will stop joking to point out some certified stupid poo poo.

numberoneposter posted:

Any promt suggestions?

"Smashmouth eat the eggs."

Bad Purchase
Jun 17, 2019




Mooey Cow posted:

Apart from being an idiot language that treats whitespace as control characters, with weakly typed variables that you can't even declare etc. etc., let me tell you about that time I tried to use one of those image generation libraries.

Installing that poo poo is a complete mess. I already two python versions installed so you'd figure you jist download the scripts and run them? Hooooo no. First you gotta get 500 libraries, and to get those, you gotta get a program that downloads libraries. Fine I get the program, but turns out the python versions i got are too old to run that program, also written in python of course. Fine, I get the latest version, and download all the libraries. So now the drat thing runs, right? Wrong. Well it does something but nothing comes out. Check some kind of log output, search the internet for an hour, and it turns out the version of python I picked is too recent. The drat thing only works with a very specific version of the language, not too young, not too old. And this is apparently not unusual for python and its libraries. So I gotta do all that poo poo all over again, and get all the libraries, and then it runs. Terrrrribly. I rewrite the script to not seem like it was written by a complete doucheturd piece of poo poo and then it was vaguely usable.

To run one drat script, i needed to install multiple gigabytes of libraries, and if I wanted to run a different script alongside that one, i would have needed to install the all same stuff again but of a slightly different version.

most of the problem described isn’t python, it’s all the underlying stuff cobbled together using python bindings as the glue. python is fantastic as a glue language, particularly for things that provide C APIs. i use it to control and test a whole bunch of C and C++ products at work and it’s a million times easier, nicer, and more powerful than doing it with a lower level compiled language.

are you installing the AI/ML tools with pip or some 3rd party thing? if it’s pip, then you may have a point about dependency hell being a python-adjacent issue, but if it’s some 3rd party install script or guide, then you are also blaming the wrong thing. python can’t resolve all the dependencies and paths and poo poo that are specific to all the separately packaged libraries needed — that’s the job of a package manager. i don’t know the specifics in this case because i haven’t tried any machine learning python stuff, but i’ve worked with a bunch of other large frameworks with python frontends, and the issues were always with dependencies and configurations outside the language.

i am curious what specific built-in python syntax broke when you installed a newer version, though. not counting the python 2->3 migration a decade ago, i’ve yet to run into any python 3.x code that broke when installing a newer version, and i’ve got a bunch of installs across linux, windows, macos of both the vanilla cpython with modules from pip and anaconda installs.

not saying it’s impossible, just that it isn’t that common and i’m genuinely interested in seeing a specific syntax that breaks from 3.x to 3.x+1.

Bad Purchase
Jun 17, 2019




Mooey Cow posted:

Apart from being an idiot language that treats whitespace as control characters..

also, what exactly is the problem with a mandatory convention for indentation? do you miss the semiconlons and curly braces so much you’d be willing to go back to the days of people writing unreadable, haphazardly indented code with all sorts of conflicting styles from project to project, or hell, even within the same file? i see this in code reviews all the time and it drives me nuts and also distracts from the actual behavior and functionality that should be the focus.

python’s greatest feature isn’t even the language itself, it’s that they have a style guide which you are, at least at a high level, forced to use and that the community actually adopted. and sure, you’ll still get some disagreements about max line lengths or how to indent multi-line arguments or arrays or whatever, but compared to other big enterprise languages like C++ and Java, it’s a night and day difference in stylistic consistency. plus, you can just auto-format with a PEP8 formatter like black. formatters also exist for other languages, but at least for C++ i’ve found that they are rarely used in the real world, and also tend to lag behind the latest language syntax and will break if they find something they don’t understand. with python, you’re actively encouraged (and for some projects required) to use them.

e: basically, python understands that you should give programmers as little freedom as possible to make their own choices because programmers are among the dumbest people on the planet, myself included.

Bad Purchase fucked around with this message at 21:24 on Sep 30, 2022

StarkRavingMad
Sep 27, 2001


Yams Fan

Mooey Cow posted:

Stable Diffusion has a bunch of warnings that any prompt could potentially produce "explicit and adult material". Anyone done any cyberporn yet?

It's not very good at it. I think it's a combination of it not being trained on porn and it not being very good at understanding where limbs and appendages intersect with each other so the couple of porn-ish prompts I tried just gave me a horrifying mass of body parts melting into each other. I didn't try very much though, I'm sure if someone really wanted to get into crafting the perfect prompt rather than just throwing "two people loving" at it, maybe you could get something.

I'm sure someone will have some kind of porno specific model sooner rather than later

Bad Purchase
Jun 17, 2019




if an AI generates child porn, everyone who worked on it should be put in jail, it’s the right thing to do

Tiberius Christ
Mar 4, 2009

Mooey Cow posted:

Stable Diffusion has a bunch of warnings that any prompt could potentially produce "explicit and adult material". Anyone done any cyberporn yet?

https://twitter.com/RoyDelfino/status/1575990515748966403?t=ZcnA9IsiaoZWBI_S5zD2kw&s=19

Squatch Ambassador
Nov 12, 2008

What? Never seen a shaved Squatch before?
Gangster Computer God Secret Worldwide Containment Policy Frankenstein Controls








Computer God Brain Bank Cities on the Far Side of the Moon

Revins
Nov 2, 2007





tune the FM in to static and pretend that its the sea

Lucky Guy
Jan 24, 2013

TY for no bm

Bad Purchase posted:

they created this whole AI image generator just to get my phone number

but i'm not sharing

I was gonna use "Bad Purchase's phone number" as the input, but I don't to give it mine either.

Bad Purchase
Jun 17, 2019




my phone number is 13 (pro)

Mooey Cow
Jan 27, 2018

by Jeffrey of YOSPOS
Pillbug

Bad Purchase posted:

not saying it’s impossible, just that it isn’t that common and i’m genuinely interested in seeing a specific syntax that breaks from 3.x to 3.x+1.

The only syntax errors were with the downloading tool that tried and failed to use my old python installs. The other errors that were due to a too recent version were not syntax errors but either some sub-dependency that didn't exist, or a function in a dependency that didn't exist or did something that the script didn't expect. Whatever it was, I only remember how long I had to spend trying to track down what the hell the problem was, because it didn't outright say that the functionality was missing or changed.

As for why this dependency hell exists, it both is and isn't the fault of python. It's one thing to use it as a glue language between systems or as a more capable batch scripting language, but python should never have been used for large systems and high intensity general purpose computations like these. It's not python's fault that people are trying to use it for this, maybe it's because they don't know anything else or whatever the reason was this started. But the fact that python is not performant enough to allow these computations to be done in a reasonable time, that it can't properly support threading (it pretends to, but the interpreter is in fact not thread-safe and no code will be executed in parallel, making "multithreaded" python often execute even slower) etc etc, is the reason why those many, many compiled libraries had to be created, so people could do the things they wanted to do. People even recommend that you shouldn't even do simple looping in python if you can offload it to some library function. It's no wonder you get a million libraries if you can't even rely on such simple language constructs not wasting time doing whatever nonsense it's doing behind the scenes.


Bad Purchase posted:

e: basically, python understands that you should give programmers as little freedom as possible to make their own choices because programmers are among the dumbest people on the planet, myself included.

It's all well and good to enforce a particular coding style on a language community (though most communities would never accept it), but that's quite different from changing the behavior of the program when the amount of whitespace present changes. You could have well-defined start and end points of a code block and still have the compiler say "you messed up the indentation here". That would in fact let the compiler know even better where you messed up the indentation. Whereas now I don't know how many times I've seen some beginner wonder why their code isn't working right in some edge cases, and it turns out it's because they accidentally gave a line too much or too little indentation so it ended up in a control block they didn't intend. Those kind of bugs can be very subtle and hard to track down in code that is nested more than one or two levels; you basically have to go through each line near a block boundary and consider if it really belongs there. It also makes it much more difficult to refactor code than it should be, not to mention sharing code with people in channels that don't support "code tags" that preserve whitespace like you wrote it. E.g. if you posted nested python code here without using the code tags, the browser would remove all leading whitespace, making the code not necessarily invalid (that would have been one thing), but might instead do something completely different from what you wanted. I.e. it might still compile but do something else. This may seem convenient but is actually Very Bad. In languages with well-defined code-blocks, it might look like poo poo when posted like that but it will always do what you intended, and even basic text editors these days have functions for auto-formatting code to make it readable again.

I also gotta wonder if this isn't why lambdas in python are limited to a single line expression; because they just couldn't figure out what the indentation rules should be for multiple statements.

sigher
Apr 22, 2008

My guiding Moonlight...




:eyepop:

mobby_6kl
Aug 9, 2009

by Fluffdaddy
I've seen and had to write some non-example python code and it's not any more readable than, say, C++. It's dumb

Something I tested based on stolen SD prompts

Adbot
ADBOT LOVES YOU

Bad Purchase
Jun 17, 2019




Mooey Cow posted:

As for why this dependency hell exists, it both is and isn't the fault of python. It's one thing to use it as a glue language between systems or as a more capable batch scripting language, but python should never have been used for large systems and high intensity general purpose computations like these. It's not python's fault that people are trying to use it for this, maybe it's because they don't know anything else or whatever the reason was this started. But the fact that python is not performant enough to allow these computations to be done in a reasonable time, that it can't properly support threading (it pretends to, but the interpreter is in fact not thread-safe and no code will be executed in parallel, making "multithreaded" python often execute even slower) etc etc, is the reason why those many, many compiled libraries had to be created, so people could do the things they wanted to do. People even recommend that you shouldn't even do simple looping in python if you can offload it to some library function. It's no wonder you get a million libraries if you can't even rely on such simple language constructs not wasting time doing whatever nonsense it's doing behind the scenes.

what you're asking for does not and will never (in our lifetimes) exist. there is not one language to rule them all where everyone writes compiled libraries using compatible ABI/calling/symbol conventions where you can just import packages and do all of your glue logic in the same high performance language that every single one of your dependencies uses, and then compile and link them together as one big happy, integrated product. and even if it was possible, unless you're running in a highly standardized environment or container, you still have to worry about what other stuff is going on in the operating system where someone might have their own competing versions of libraries installed that get picked up at runtime instead of the one you meant to package. or, even more common, where you rely on something to be available in the OS (a language runtime, or a basic library) that everyone thinks should be common but actually isn't.

the reason python is used to put this stuff together is that it is the best tool available for it, at least with widespread adoption and the backing of developer experience and know-how to maintain and grow it. you could try to put a competing AI workflow system together using nothing but ANSI C to glue it all up, but good luck getting a community to want to learn and use it.

Mooey Cow posted:

It's all well and good to enforce a particular coding style on a language community (though most communities would never accept it), but that's quite different from changing the behavior of the program when the amount of whitespace present changes.

nah, not buying this. being different than you're used to doesn't make whitespace as syntax any different from curly braces and semicolons, and newbies will mess those up just as much as they'll mess up an indent or line breaks. one of my younger coworkers whose college curriculum mostly used python always gets annoyed when he touches C++ and has to remember to manually tell the compiler where the statements end and where scope ends instead of it just being automatic. it took me a while to come around too, but now it seems very obvious that the C/java style scoping and statement separation are more error prone and less intuitive for beginners.

in my experience it's also much easier to find instances of broken scope in python code just because auto-formatting is so prevalent and good. just press the auto-format keybind for the file you have open and you'll see where the unexpected change in indentation occurs (or sometimes an error about what line it got stuck on). you can kind of do this in brace/bracket-based languages where auto-format is less common by relying on your editor/IDE to highlight the start and end of blocks when your cursor is on a curly brace, but it's less obvious visually when you're quickly scrolling through looking for where a block got hosed up.

Mooey Cow posted:

I also gotta wonder if this isn't why lambdas in python are limited to a single line expression; because they just couldn't figure out what the indentation rules should be for multiple statements.

i think that's part of it, but there are ways they could've supported multi-line lambdas if they really wanted to. but with how easy it is to just define a local function anywhere and pass a function object, there's not much need. i guess with lambdas it's a bit more obvious what's going on with local variable capture, but i think it's a pretty good rule of thumb in general that if your lambda expression is gonna go bast 80 characters, just define a function because it will be more readable anyway.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply