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

i just made a cute 'hello world' app

Name: Anonymous 2017-07-29 17:56

https://pastebin.com/qprgVAmc
(couldn't post it here)

Name: Anonymous 2017-07-29 19:03

Where's the community code of conduct? How can I use this without a CoC? It's 2017 already! I literally can't even.

Name: Anonymous 2017-07-29 23:19

El Mao
/prog/ 1
Stallkike 0

Name: Anonymous 2017-07-30 3:56

>>2
Stop sucking CoC.

Name: Anonymous 2017-07-30 4:54

printf("Hello World");
Nice line feed, nerd.

Name: Anonymous 2017-07-30 5:19

>>3
But there is nothing in that program that originates from /prog/. 98.995% of the text in that file is from the FSF, the rest has been in the public domain at least since the mid nineties.

Name: Anonymous 2017-07-30 7:30

>>1 Bloatware
main(){write(1,"Hello world\n",12);}

Name: Anonymous 2017-07-30 7:39

>>7
Here it is in action. return value of write(bytes written) is output by main.
http://codepad.org/m7rjCkG5

Name: Anonymous 2017-07-30 7:42

>>8
You forgot to return -1

Name: Anonymous 2017-07-30 9:03

>>9
Its equivalent to
int main(){return write(1,"Hello world\n",12);}

Name: Anonymous 2017-07-30 9:45

>>8
This code is undefined behaviour.

Name: Anonymous 2017-07-30 14:13

>>7-8
e/g/in /g/ode /g/ro

~ $ gcc nigger.c
nigger.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main(){write(1,"Hello world\n",12);}
^~~~
nigger.c: In function ‘main’:
nigger.c:1:8: warning: implicit declaration of function ‘write’ [-Wimplicit-function-declaration]
main(){write(1,"Hello world\n",12);}
^~~~~
~ $ nig() { ./a.out; echo "Exit code: $?" }
~ $ nig
Hello world
Exit code: 0
~ $ tcc nigger.c
nigger.c:1: warning: implicit declaration of function 'write'
~ $ nig
Hello world
Exit code: 12
~ $ clang nigger.c
nigger.c:1:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
main(){write(1,"Hello world\n",12);}
^
nigger.c:1:8: warning: implicit declaration of function 'write' is invalid in
C99 [-Wimplicit-function-declaration]
main(){write(1,"Hello world\n",12);}
^
2 warnings generated.
~ $ nig
Hello world
Exit code: 0

Name: VIPPER 2017-08-01 8:35

Cool app, OP. Wanna come to MIT to show it to me?

Name: Anonymous 2017-08-01 10:59

I saw Frozen Void put some of his current code online recently. It looked like the kind of thing college freshmen would be assigned in their first semester. That got me thinking how many people actively remained at the mental level of introductory classes for the last 10 years?

Name: Anonymous 2017-08-01 11:08

>>14
Are you talking about reddit filter script? Its not going to use design patterns, its only purpose is to filter reddit in least milliseconds. Adding OOP and functional traits will make it way slower.

Name: Anonymous 2017-08-01 15:10

>>15
There was some other stuff too and I think an odd chess game in one place. It all seemed reminiscent of Hello World jokes over the decade. I just wondered if people actually spend a significant time on these things rather than progressing.

Name: Anonymous 2017-08-01 15:18

>>16
I don't get paid for it, its hobby projects.
>I just wondered if people actually spend a significant time on these things rather than progressing.
I like to tinker with it if i have free time. I don't have to progress to anything, its not like there is deadline and customers who demand features every week.

Name: Anonymous 2017-08-02 9:57

>>17
you could make hobby projects that, you know, do anything.

Name: Anonymous 2017-08-02 10:20

>>18
FrozenAnus prefers to make userscripts and cute C macros.

Name: Anonymous 2017-08-02 10:30

>>19
wouldn't it be cool if he could demonstrate how such macros can be useful in a larger project? because I wouldn't be surprised if they introduced weird and hard to diagnose bugs

Name: ( ≖‿≖) 2017-08-02 11:19

>>20
sure kid, just #include "void.h" and see if your project works
http://void.wikidot.com/void-h

Name: Anonymous 2017-08-02 11:27

>>18
I could do anything.. but maintaining software projects isn't my job.
>>20
I don't like big projects. I like Unix tools to do one thing.

Name: Anonymous 2017-08-02 11:45

>>22
so why don't you write unix tools?

Name: Anonymous 2017-08-02 11:50

Name: Anonymous 2017-08-02 12:12

>>24
then why doesn't it use your macros? are they not supposed to be useful?

Name: Anonymous 2017-08-02 13:17

>>25
I do use macros see e.g. http://void.wikidot.com/namegen-c
The point of dirname is writing a short self-contained utility, to showcase something in plain C.
Using my headers would obscure the meaning.

Name: Anonymous 2017-08-03 10:10

>>26
idented your code, FrozenAnus-senpai

#include"void2/boilerpl
at e.h"
# includ
e " void2/
t y p edefs.
h " #in c lude" void2/ti
m in g . h"/ /t sc()#inc
l u de "v o id2/ra nd o m.h"//ts
# i nc l ude"vo id2 /macro.h"
/ / t#i n clude<std lib. h>#include
< stdi o. h >#defineR N AME _MAX253#
d ef i ne is vo wel(x)((x == 'a')||(x=='e'
) || ( x== 'i' ) ||(x=='o') ||( x=='u'))#def
in er nd num 1() ( {u64timesee d=t s c();tim
e se ed =rhas h(( u 8*)&timeseed,8);timeseed;})
#d e f inerndco n()c ons[ rndnum1()%2 1]#defi nerndvo
w( ) vo w s[ rndnum 1()%5]STDS T ARTsize_tna melen ,i=0;con
st c 8 alp[]="abcdefghijklmno pqrstuvwxyz" ;//2 6constc8co
n s [ ] ="bcdfghjklmnpqrstvwxyz";//21constc 8vo ws[]= "ae
io u " ; //5if(argc>1){namelen =(size_t)strtoull(ar gv[1],
NULL, 1 0 ) ;if(namelen >RNAME_MAX| |namelen<1)g otoerr n a m
elen ;} e l se{errnamelen:;puts("Syn tax:namegenlength length:fr
om0t o" s tr ingify(RNAME_MAX));e xit(1);};c8res[RN AM E_M AX+1]=
{0}; w hil e(i<na mel en){size_ tr emain=(namele n-i );bo olla
stvo w= 0 ; if(i>1){l ast vow=isv o wel(res[i-1]);}if (remain==
1){re s [ i++ ]=last vo w?rndco n():rndvow();continue;}if(
remai n= =2){ res[i ++]= lastvo w?r ndcon(): r nd vow( );
res[i++ ]= last vow? rn dvow () : rndcon();continue;
}if(rema i n= =3 ){ / / vcv /c v cres[i++]=lastvow?r
ndcon():rn dv ow ();res [i + +]=lastvow?rndvow():rndco
n();res[ i++]=lastvow?rndco n ():rndvow();continue;}//vc,cv
,vcc,cvc,v cv,vvc,ccvswitch( tsc()&7){cas e0://vcr es[i++]
=rndvow(); r es[i++]= rndcon(); break;case1:/
/cvres[i++ ] =rndcon() ;res[i++]=r ndvow ();brea
k;case2://vcc re s[i++] = rndvow ();res[i++]=
rndcon() ;r es[ i + + ]= rndc on();b
reak;case3 : // ccv res [i++]=rndco
n(); r es[i ++] =rndcon ();
res[i ++]=r nd vow();break;
case4 ://v c vres[ i++]=rndvow(
);res[i ++] =rn dcon();res[i
++]=rndvow ( ) ;break;case5:
//vvcr es[i ++]=rndvow();r
es[i ++ ]=r n dvow();res[i+
+]=rndcon() ; break;case6://
cvc de fault ://cvcres[i ++]=r
ndcon();res[i+ +]= r ndvow();res[i++]=rn
dcon();}}puts(re s);STDEND#inc lude"v
oid2/boilerplate.h"# i nclude"void2/typedefs.h"
#inc lude"void2/timing. h"//tsc()#include"vo id2/ra
ndom.h"//ts#include"void2/m acr o.h"//t#include<stdlib.h>#incl
ude<stdio.h>#defineRNAME_MAX253#def ineisvowel(x)((x=='a')||(x
=='e' ) ||(x=='i')|| ( x=='o')||(x=='u'))#defi
nerndnum1()({u64ti meseed= ts c ();times eed=rhash((u8*)&timesee
d,8);timeseed;})#d e f i nerndcon()cons[rndnum1(
)%21]#defi nerndvow () v o ws[rndnum1()%5]STDSTART
size_tnamelen,i=0;c o n s t c8 alp[]="ab cdefghijklmno
pqrstuvwxyz"; //26 c o n s t c8con s[] ="bcdfghjklmnpq
rstvwxyz";//21 c o nstc 8 v o ws []= "aeiou";//5if(argc>1
){namelen=(size_t) strtoul l(argv[1],NUL L,10 );if(namelen>R N
AME_MAX||namelen<1) g otoerrnamelen;}els e{errna me len:;puts
("Sy ntax:n ame genlengthlength :from0to"s tr ingif
y( RN AME_MAX ) ) ; exit(1);};c 8res
[ RNAME_M AX+1]={0};while(i<namelen){siz e_tr
e main=( namelen-i);boollastvow=0; if(i > 1 ) { l
as tvow=i svowel(res[i-1]);}if(rema in==1){ r e s[i++
]= lastvow ?rndcon():rndvow();continue;}if(rem a in==2
){ res[i ++]=lastvow?rndcon():rndvow() ;res [ i++] =
las tvow? rndvow():rndcon();continue;}if(re ma in==3){/
/ v cv/cvc res[i++]=lastvow?rndcon():rndvow ( );res[i
++]= lastvo w?rndvow():rndcon();res[i++]=l astvow?r
ndcon ( ):rndvo w();contin u e;}//vc,cv, vcc , cvc,vcv,vv
c,ccvs witch(ts c()&7){ca s e0: //vcres[i++] =rndvow();
res[i++ ] =rndcon() ;br eak ;case1://cvres[ i ++]=rndcon(
);r es[i + +]= rndvow();br eak ; case2://vccre s [i++]=rndvow(
);res[i++] = rnd c on (); r e s [i+ + ]= rndc on();break;case
3://ccvres [ i++] =r ndc o n ( );re s [i+ + ]=rndcon();res[i+
+]= rndvow ( );break;case4://vcvres[i++]=rndv ow();res[i++]=rnd
con();res[i+ + ]=rndvow();break;case5://vvcre s[i++]=rndvow();res
[i++]=rndvow() ; res [i+ +] =rndcon();break;case
6://cvcdefault:/ / c vcres[i++]=rndcon();r
es[i++]=rndvow(); re s [ i++]=rndcon();}}puts(re
s);STDEND#include"v o i d 2/boilerplate.h"#include
"v oid2/typedefs.h"#i n c lude"void2/timing.h"//tsc()
# include"void2/random. h " // ts#include"void2/macro.h
"//t#include<stdlib.h>#i n clude< stdio.h>#defineRNAME_MAX253#d
efineisvowel(x)((x=='a')|| ( x== 'e' )||(x=='i')||(x=='o')||(x=='u'))
#definerndnum1()({u64timese ed=tsc();ti meseed=rhash( (u8*)&timeseed,8);timeseed;})#defi
nerndcon()cons[rnd num1()%21] #def iner nd vow( )vow s[r ndnum1()%5]STDSTARTsize_tnamelen,i=
0;constc8alp[]="abcdefghijklmn opq rstu vwxy z"; //26constc8 cons[]="bcdfgh jklm npqr st vwxyz ";/
/21constc8vows[]="aeiou";//5if(ar gc>1){ nam elen=(size_t)strtoull(argv[1],NULL,10);
if(namelen> RNAME_MAX||namelen<1)go toe r rnamelen;}else{errnamelen:;puts("Syntax :
namegenlengthlength:from0to"stringify( RNA M E_MAX));exit(1);};c8res[RNAME_MAX+1] ={0};

Name: Anonymous 2017-08-03 10:50

>>24
>>26

FrozenAnus combines Mentifex and Terry Davis, creating the new a kind of comedy. Can even be some SJW plan to deconstruct C.

Name: Anonymous 2017-08-03 11:12

>>28
plan to deconstruct C
He's on the ISO committee?

Name: Anonymous 2017-08-03 11:49

>>17
>>22
It doesn't seem like you projects do anything useful or new, much like writing another HelloWorld program.
>>28
I'm reminded of Mentifex as well when I see these kinds of projects. I'm positive they're all very right wing, this is the neo con method of programming.

Name: Anonymous 2017-08-03 12:17

>>30
I'm reminded of Mentifex as well when I see these kinds of projects. I'm positive they're all very right wing
Seems like you don't really know Mentifex then.

Name: Anonymous 2017-08-03 12:33

Democracy? Hillary Won the Popular Vote
Trump for Registered Sex Offender
mentifex cracks me up

Name: Anonymous 2017-08-03 14:56

>>31
Yeah the crackpot theory of AI that revolves around a chat program with a thousand redundant global variables. What a kook, like the Alex Jones of AI researchers.

Name: Anonymous 2017-08-04 2:33

>>33
or he could just be a bad programmer

Name: Anonymous 2017-08-04 2:37

>>32
What did you expect from Seattlites?

Name: Anonymous 2017-08-04 3:55

Name: Anonymous 2017-08-04 4:00

>>36
FrozenVoid is a commie
From what did you get that, exactly?

Name: Anonymous 2017-08-04 4:13

>>37
Posts in commie subreddits, unironically.

Name: Anonymous 2017-08-04 4:38

>>36-38
I'm a transhumanist actually and my views(environment,anti-globalism/trade treaties,basic income, strong social safety nets) align with Bernie Sanders in US and most european social democrats.
I'm mostly not into politics though and i'm against feminism/ableism/sjw/etc whatever far-left demagogues present as "true left".

Name: Anonymous 2017-08-04 6:03

>>39
So, communist-lite.

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