Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

UNIX philosophy.

Name: Anonymous 2016-02-15 13:21

Why is the opposite of cat tee, and it's not even a proper opposite but also does a different thing (outputs to stdout) (which is ostensibly its real purpose)?

Also, why do I even need the opposite of cat (and cat itself while we are at it) when those needs should have been served by input and output redirection, but turns out that the latter is completely made up and broken shell bullshit: you can't cat <file1 <file2, and you can't EDITOR='echo zzz >>$1' visudo for example.

Orthogonal design, my ass. Do one thing and do it well, my ass.

Name: L. A. Calculus !jYCj6s4P.g 2016-08-24 22:01

Well, LAC is proposing an 8 bit storage format, and it's easy to show that 8 bits are not enough. you can try it out with a gradient in gimp and compare expansions to 8 and 16 bit. you can easily make out letterboxes in the former.

HOW OFTEN IS DA AVERAGE PERSON SITTIN AT DER COMPUTER PULLIN DER HAIR OUT BECOS AN IMAGE IS ENCODED WITH 8 BIT COMPONENTS RATHER THAN 16 BIT? BECOS DEY CAN MAKE OUT LETTERBOXES IN GRADIENTS? NOW DATS A RARE OCCURRENCE!

MAYBE DEY'RE PISSED OFF WITH COLOUR SPACES, BUT PROGRAMMERS R PROBABLY FUCKIN UP DA COLOUR TRANSLATION IN DA FIRST PLACE.

HOW MANY COLOUR SPACES DOES UR MONITOR OR GRAPHICS HARDWARE USE AT ANY GIVEN TIME? 1 FUCKIN COLOUR SPACE.

HOW MANY COLOUR SPACES DOES UR PRINTER USE AT ANY GIVEN TIME? 1 FUCKIN COLOUR SPACE.

NOW IF DEY BOTH USE DIFFERENT ONES, SAY RGB ON DA MONTIOR N CYMK ON DA PRINTER, DON'T TRANSLATE TO CYMK N TRY TO RENDER DAT SHIT ON UR FUCKIN MONITOR. PRINT OUT SHIT-LOADS OF SHEETS OF COLOUR IMAGES UNTIL DA RGB COLOUR SPACE RENDERED ON DA MONITOR MATCHES DA CORRESPONDING CYMK COLOUR SPACE RENDERED ON DA PAPER. K.I.S.S! IT ONLY GETS COMPLICATED WHEN U UNCONSCIOUSLY ADD A BUNCH OF STUPID FACTORS INTO DA PROBLEM.

We all know PBM and it's capability of storing images in a non-binary format, but it has drawbacks as well, e.g., it doesn't compress well.

FROM quotes.cat-v.org:

So much complexity in software comes from trying to make one thing do two things.

— Ryan Singer

DON'T DIP UR HAND INTO DAT BUCKET OF CRABS, U'LL GET NIPPED. EITHER UR SHOOTING FOR SIMPLICITY N A FILE FORMAT DAT'S EASY TO HANDLE, OR UR TRYING TO DO TWO THINGS DAT ARE IN DIRECT CONTRADICTION TO EACH OTHER N TRYING TO FIND A BALANCE ON DA TOP OF DA FUCKIN FENCE. PICK A SIDE OF DA FENCE N FUCKIN STICK WITH IT. STOP SHOOTIN FOR DA "PERFECT BALANCE". MANY HAVE TRIED, U HAVE A BUNCH OF STUPID FILE FORMATS AS A RESULT, DEY ALL SUCK, N SO DOES FARBFELD. "DO ONE THING N DO IT WELL."

EITHER IT COMPRESSES WELL OR IT REPRESENTS WELL. IF IT REPRESENTS WELL U NEED MINIMAL SOFTWARE TO READ N WRITE IT. IF IT COMPRESSES WELL U NEED MINIMAL RESOURCES (BANDWIDTH, DISK SPACE, ETC) TO PROCESS IT. PICK 1 N ONLY 1 ...

How often are you going to look at the image data by hand? How often are you going to generate images in the command line? This is a rare use-case

IT'S A RARE USE CASE BECOS IT'S IMPOSSIBLE WITH ALL DA IMAGE FORMATS DAT ARE OUT DER TODAY. NONE OF DEM HAVE DIS CAPABILITY SO NOBODY DOES IT, YA FUCKIN RETOID. DAT IS WHY IT IS A RARE USE CASE, N IF U USE A FORMAT LIKE DA ONE I DESCRIBED, IT BECOMES AN OPTION, N USIN DESE UTILITIES BECOMES "FAIRLY DAM OFTEN" BECOS U DON"T HAVE TO CLUNK HEAVY DEPENDENCIES AROUND WHEN U WANT TO PROCESS A FILE. U GO FROM HAVING TO USE A PIECE OF SHIT LIBRARY IN EVERY LANGUAGE, TO USIN DA BASIC TEXT PROCESSING UTILITIES, EITHER THOSE DAT R AVAILABLE WITH DA BASIC TEXT PROCESSIN FUNCTIONS OF UR FAVOURITE PROGRAMMIN LANGUAGE (LIKE printf N scanf) OR DA RICH SET OF UTILITIES AVAILABLE WITH UNIX (fold, sort, uniq, grep, wc, sed, tr, awk, ...)

I don't know why everbody gets so obsessed about endianness to be honest.

SHO ME WHERE uint32_t IS IN DA STANDARD.

SHO ME WHERE uint16_t IS IN DA STANDARD.

SHO ME WHERE ntohl, ntohs, N htons ARE IN DA STANDARD.

YAINT RED DA FUCKIN STANDARD.

unsigned long width, height;
unsigned rgba[4];
unsigned char buf[256];

width = buf[8]*0x1000000LU + buf[9]*0x10000LU + buf[10]*0x100LU + buf[11];

height = buf[12]*0x1000000LU + buf[13]*0x10000LU + buf[14]*0x100LU + buf[15];

rgba[i] = buf[i*2]*0x100LU + buf[i*2 + 1];

buf[i*2 + 0] = rgba[i] >> 8;
buf[i*2 + 1] = rgba[i];


WE DIDNT NEED DATA SERIALISATION DEPENDENCIES IN DA 80S N WE DONT NEED DEM NOW. UR SOFTWARE SUCKS JUST AS MUCH AS DA BSD socket SHIT. UR NO BETTER THAN DA HYENAS AT DA ISO WHO TURNED DA LANGUAGE DEANIS RICKY LOVED INTO DA PILE OF CRAP DAT IT IS TODAY.

Name: Anonymous 2016-08-24 22:14

>>41
la, why do you use an operating system, a piece of software that does many more than 2 things?

Name: Anonymous 2016-08-24 23:06

>>42
An operating system isn't a piece of software.
It's a damn lot of programs working together, each one with a different task.
In the ideal word, these lots of programs do each 1 thing and when put together make a working system.
Not saying that's how it's done, but also saying an operating system is a single piece of software is bullshit.

Name: Anonymous 2016-08-25 2:00

(this space left intentionally baffled by suckless shitsucking)

Name: Anonymous 2016-08-25 2:01

>>43
i'm not talking to you.

if he really believed the "one program does one thing" schtick, he'd be using forth or something similar writing each program as it's own independent system.

Name: FRIGN 2016-08-25 11:08

>>41

I suggest you study a bit more about the topic of color spaces.

Name: L. A. Calculus !jYCj6s4P.g 2016-08-25 18:35

>>46
I SUGGEST U STUDY A BIT MORE ON DA TOPIC OF READIN DA FUCKIN STANDARD

Name: L. A. Calculus !jYCj6s4P.g 2016-08-25 18:53

UR WELCOME FOR MY WORK N IDEAS, BTW. ALWAYS HAPPY TO ENLITEN U RETOIDS ON DA UNIX SPIRIT. "TEXT'S DA UNIVERSAL INTERFACE"

AS FOR COLOR SPACES, I KNO EM WELL ENOUGH DAT I STILL REMEMER SUPPORTIN DAT SHIT IN EARLY DAYS

N IT AINT MY ISSUE IF UR MIND'S SO CLOGGED WITH NON-ISSUES DAT U GOT IMPROPER FLOW OF OXYGEN THROUGHOUT UR BODY, IM JUST GONNA BE CHILLIN OUT HERE IN HAWAII DRINKIN MY COCONUT INSTED OF REEDIN WAT DA RETOIDS ARE WRITIN ABOUT COLOR SPACES. ALWAYS PUT UR HEALTH N WELLBEING ABOVE UR WORK, FRIGN, IF U AINT THRIVIN THEN NEITHER IS UR WORK. N DATS DA BEST ADVICE I CAN GIVE TO YA. IF UR WORK AINT EASY, MAKE IT DA EASIEST THING IN DA FUCKIN WORLD. HAHA

Name: L. A. Calculus !jYCj6s4P.g 2016-08-25 19:04

>>45

I JUST HAPPEN 2 NO ONE THING ABOUT CUTTIN' COMPLEXITY. N WAT I KNO IS DAT I DONT NEED TO KNO A SECOND THING ABOUT CUTTIN COMPLEXITY. HAHAHA

NOW GET DA FUK OUTTA MY THRED

Name: Anonymous 2016-08-25 19:51

>>38
How often are you going to generate images in the command line?
Very often Mr. Finley Rigin, just take a look at imagemagic.

>>41
SHO ME WHERE uint32_t IS IN DA STANDARD.
SHO ME WHERE uint16_t IS IN DA STANDARD.
7.20.1.1 (ISO 9899:2011)

Name: Anonymous 2016-08-25 19:53

>>50
It looks like I had to put a space after the >, weird considering that this did not occur in the past.

SHO ME WHERE uint32_t IS IN DA STANDARD.

SHO ME WHERE uint16_t IS IN DA STANDARD.
7.20.1.1 (ISO 9899:2011)

Name: Anonymous 2016-08-25 20:48

>>51
C11 is a mess.
ISO 9899:1999 is the actual standard when we talk about DA STANDARD.

Name: Anonymous 2016-08-25 20:50

>>48
Text is the stupidest most ass-backwards interface for computers. All it does is make the uncommon case a bit easier for humans, and the ultra common case more difficult and error-prone to programming.

But hey, since suckless is all about hypocritical bullshit, the most error-prone, cobbled together fuckpile of shit is their preferred way. Go kill yourselves and ghost fuck each others' corpses.

Name: FRIGN 2016-08-25 21:18

>>53

I think you got it wrong then. Farbfeld is a binary format, and our friend LAC here proposes a text format. You are right about the common case though, and binary formats make a lot of sense in so many ways.

>>50

yeah yeah sure, what I meant with the question is: how often do you actually generate images in the command line just using command line tools (say a simple task like "fill a 50x50 pixel with just red pixels"). These tasks are simple to solve with a text format, but this is the 0.1% case and this is not what you should go for.

Talking about cobbled-together: If you find a bug in farbfeld I invite you to a beer. It's a one-time offer of course.
And no subtle bug, I mean a real bug that crashes the program.

Name: Anonymous 2016-08-25 21:46

>>52
7.18.1.1 on 9899:1999 TC3 then.

>>54
how often do you actually generate images in the command line just using command line tools (say a simple task like "fill a 50x50 pixel with just red pixels").
Very often!

And no subtle bug, I mean a real bug that crashes the program.
I consider most bugs that is unrelated to user interfaces as major. Returning incorrect results is worse than having the program crash.

Name: Anonymous 2016-08-25 22:02

>>49
i love you 2 mr calculus

Name: L. A. Calculus !jYCj6s4P.g 2016-08-25 22:53

U GOT FRIGN'S CHALLENGE. FIND BUGS IN HIS SOFTWARE N HE'LL POUR BEER DOWN YA GIZZARD, GET YA DRUNK, N TURN YA INTO HIS INTERNET GIRLFRIEND

HERE'S MY CHALLENGE. DO DA FOUR TASKS LISTED IN >>30 FOR FARBFELD FILES, COME UP WITH SOMETHIN MORE SIMPLE THAN WAT I WROTE N I'LL SEND A FEW COCONUTS UR WAY.

Name: L. A. Calculus !jYCj6s4P.g 2016-08-25 22:55

N FOR DA RECORD, IM CALLIN MY FILES SUCKLESS IMAGES, COS DEY SUCK LESS THAN FARBFELD

Name: Anonymous 2016-08-26 2:42

Im gay

Name: Anonymous 2016-08-26 3:03

>>59
fuck u

Name: Anonymous 2016-08-26 3:29

>>60
I think he'd enjoy that.

Name: Anonymous 2016-08-26 5:32

>>58
Arthur please impregnate my wife

Name: L. A. Calculus !jYCj6s4P.g 2016-08-27 23:32

NOT 1 REPLY TO >>57

IM WAITIN ON U, FRIGN.

Name: /lounge/ 2016-08-28 14:39

>>63
I don't do project euler puzzles, thanx

Name: Anonymous 2016-08-28 15:19

>>63
You just keep your damn coconuts away from me.

Name: Chad 2016-08-28 18:25

Babe, you know I don't do Project Euler puzzles.

Name: L. A. Calculus !jYCj6s4P.g 2016-08-29 1:27

>>64
DIS AINT NO MATH BOI SHIT YA FUCKIN RETOID

EEEEH EEEEEH EEEEEH

Name: /lounge/ 2016-08-29 8:09

>>67
Programming is applied mathematics, thanx

Name: Anonymous 2016-08-29 21:41

>>64
that's why you're a shit programmer

Name: Anonymous 2016-08-30 5:43

check dubs

Name: L. A. Calculus !jYCj6s4P.g 2016-09-14 1:00

YAINT LETTIN DIS THRED DIE DAT EASILY, SGT KABUTERRIMON

Name: Anonymous 2016-09-14 3:12

Don't let dem stackbois have it their way, LAC!

Name: Anonymous 2016-09-15 0:22

👈 check my prime digits

Name: Anonymous 2016-09-15 21:40

EEEEEEEEEE EEEEEEEEEE EEEEEEEEEE EEEEEEEEEE

Name: Anonymous 2025-02-17 21:09

>>9
She's right.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List