r/programming • u/Property404 • Oct 07 '17
Fetlang - Fetish-themed programming language NSFW
https://github.com/Property404/fetlang1.0k
u/Capital_EX Oct 07 '17
Group Sex: Threading library
Voyeurism: Networking
Exhibitionism: GUI
Autofellatio: Macros
88
313
u/Deightine Oct 07 '17
Even the reference guide:
Assertiveness - Contains assertion operators. Useful for unit tests
Core - The included-by-default fetish that defines the language
Obedience - File IO operators
They were certainly thorough. Categorically.
8
30
Oct 07 '17
So if you fail to lock your critical sections, would that be like 2 dudes going at it in the same hole?
→ More replies (2)38
58
Oct 07 '17
Swingers: Coroutines
Penetration: Security & Crypto
74
u/Capital_EX Oct 07 '17
Crypto and Security are to prevent penetration so maybe chastity instead?
47
14
19
3
2
0
229
373
u/sebgggg Oct 07 '17
Lick Property404's upvote
189
u/Property404 Oct 07 '17
-blush-
76
u/euclid047 Oct 07 '17
Property404 how long, giggity, did it take you to whip up this language?
134
u/Property404 Oct 07 '17
Honestly, way too long. Last year I started on this, gave up, and then started on Fetlang in the middle of the Summer to practice C++ for my internship
→ More replies (5)69
99
u/Free_Math_Tutoring Oct 07 '17 edited Oct 08 '17
60
u/Property404 Oct 07 '17
If somebody can prove its Turing completeness(or incompleteness) using the only the included fetishes, I'll mention them on the README.
(e.g, if you can create a Brainfuck or CGOL implementation)
34
u/Free_Math_Tutoring Oct 08 '17
I'm fairly sure I did it.
https://github.com/KjeldSchmidt/Fetlang_110
This is an implementation of Rule 110, which is Turing complete. It's fairly small (only 8 fields wide) and unfortunately, neither commented well, nor good erotica, but the concept could very easily be expanded to a much bigger board by automatic code generation, so the request is fulfilled; A Turing complete thing has been implemented in Fetlang.
Thanks for the challenge!
3
u/Property404 Oct 08 '17
woah - nice! I have to check this out later, sorry, when I'm not sleep deprived and running on six energy drinks at 5 AM
4
u/Free_Math_Tutoring Oct 09 '17
I've successfully added a generator in python now, so it can easily be scaled. I'll put together a small readme and then I'm done.
For the first time in my life, I can honestly say that I'm one of the worlds foremost experts on a specific programming language, probably.
→ More replies (2)23
u/inconspicuous_male Oct 08 '17
Lick AsciiOcto's thigh thirty five times (Numerical constant for #)Is the hottest thing I've ever read
→ More replies (1)11
u/Uristqwerty Oct 07 '17
Interpreting Brainfuck definitely looks possible from the documentation. String modification would be an awkward iterate, count, and accumulate workaround, but as long as the string being iterated over could be updated in an outer loop, that should be sufficient for a crude memory. Implementing
]efficiently might be tricky, but making a reversed copy of the input code could work, or maybe annotating it with jump offsets. Actually implementing it would be a lot of work, though.→ More replies (1)19
u/Free_Math_Tutoring Oct 07 '17 edited Oct 07 '17
First I figured I might try Game of Life because it's fun, then looked up CGOL and thought "I ain't gonna implement a LISP" and then realized that you probably meant Game of Life by that... well... :D
I think I might just try.
Edit: I'm onto something. I think I might get it done.
77
u/MesePudenda Oct 07 '17
You gave the documentation a really good time, but it might still need some aftercare. Two descriptions of operators seem to be opposing each other.
is dominant towardsis Fetlang's version of "greater than" or ">"
is dominant towards-<=
Are there any plans to add chain comparison or support both > and >=? Maybe cannot dominate or won't submit to for the <= and >= comparisons? If chains/strings are being compared, then insensitively could modify the comparison to indicate that case doesn't matter.
44
u/Property404 Oct 07 '17
First part is fixed - I like the second part; I'll think about it or you can submit a pull request
48
18
u/MesePudenda Oct 07 '17
Awesome! I probably won't submit a pull request, since I haven't used c in a while and have my own projects I'm procrastinating on..
4
u/dahud Oct 08 '17
In version 2 of Fetlang, variables should have orientations on top of their genders. Variables may be assigned an orientation of gay or straight, or be left as the default bi. Variables are only allowed to interact with other variables as their orientation allows: Alice will refuse to spank Bob if Alice is a lesbian.
Not only would this fit the theme of the language, it might actually have real utility for encapsulation. For example, a lesbian component that can only interact with a gay component by way of a bisexual interface.
Damn, I might need to learn something about compilers.
33
u/CrystalLord Oct 07 '17
68
u/Property404 Oct 07 '17
I'm kinda done with/sick of this project, but you can add fetishes to it. Maybe a WAM fetish as an OpenGL wrapper? (Cause writing in OpenGL is messy)
Originally I was thinking of adding a fetish/package manager but I scrapped it.
→ More replies (1)32
170
u/hagg3n Oct 07 '17
71
246
u/Buckwheat469 Oct 07 '17
Developing your own language and compiler like this looks great on your resum.... nevermind.
151
u/Property404 Oct 07 '17
Yeah - might have to make a new GitHub account for my resumé now
137
u/Sean1708 Oct 07 '17
/u/Katie_Pornhub, are you guys looking for developers at the moment? I think I've found the perfect candidate.
→ More replies (5)19
12
13
33
u/abbadon420 Oct 07 '17
Why this reaction gif? The readme clearly states it's not recommended for medical applications.
15
u/hellotrishamarie Oct 07 '17
I mean, I know I'm a very niche audience, but I'm a computer science major AND the president of kink club at my university, so you bet your ass that if my projects don't specify which language to use (and they usually don't), I'm using this one!
→ More replies (1)4
u/Apocalyptic0n3 Oct 07 '17
Not the first esoteric language I've seen like this. https://github.com/lhartikk/ArnoldC
4
u/PointyOintment Oct 08 '17
Other well-known ones are Shakespeare and Chef. (If I correctly guess what we're talking about; I can't load the gif.)
0
Oct 07 '17
[deleted]
21
u/euclid047 Oct 07 '17
Exactly. What about this sadistic gem. "Confusing English-like syntax and unhelpful error messages"
480
u/kauefr Oct 07 '17
"lick Duke's left nipple one million times" is the greatest line of code ever written.
78
Oct 07 '17
What does that mean in human language?
196
4
8
u/dosaki Oct 07 '17
Can I not have two nested Bind loops?
Bind Alex to Alice's wrists
If Alex is Neil's bootycall
Bind Nelia to Bobs's ankles
Make slave scream Nelia's name
Make slave scream Alex's nameBoth Alice and Bob have values (a bunch of characters each), but my slave never screams Nelia's or Alex's name
8
7
u/pouar Oct 07 '17
It's missing diapers and furries :P
16
6
u/poshpotdllr Oct 07 '17
can i transcompile existing c code into fetlang?
4
u/Property404 Oct 07 '17
If you implement it, sure
But you can also link to existing C/C++/Rust code by installing a fetish, or doing something kinda hacky by replacing cached fetish objects in the /tmp/ directory
4
u/poshpotdllr Oct 08 '17
i was hoping it would go both ways haha. (am i doing this right?)
→ More replies (2)
2.5k
u/FearlessFreep Oct 07 '17
Never thought I’d see something in /r/programming tagged NSFW
960
u/Omnicrola Oct 07 '17
And yet very on topic
→ More replies (2)510
u/V-Bomber Oct 07 '17
What a time to be alive
312
u/Omnicrola Oct 07 '17
Does this qualify as Rule 34? Or would only something written in fetlang be considered Rule34?
→ More replies (2)312
u/Property404 Oct 07 '17
I think it only counts if someone writes erotica about Fetlang
→ More replies (29)205
112
u/Watchful1 Oct 07 '17
I've got this bot that compiles a multireddit of porn subs that hit the front page of /r/all. When a nsfw post from a sub it hasn't seen before hits the front page, it messages me to check if it's a porn sub. The craziest things you wouldn't expect show up.
41
4
71
u/LuizZak Oct 07 '17
There was this one very popular Yahoo! nudity detection AI post once, too https://www.reddit.com/r/programming/comments/559ehn/open_sourcing_a_deep_learning_solution_for/
Seems like nudie detection/ranking is a loophole-y way to post (relevant) NSFW content here
52
→ More replies (1)15
24
u/arcticblue Oct 07 '17
There was a nsfw post in /r/Arduino a few weeks ago that caught me off guard. IIRC, it was someone making a sex toy.
5
u/wasabichicken Oct 08 '17
No doubt controllabe through Emacs. Check out https://github.com/qdot/deldo
→ More replies (1)21
u/matthieuC Oct 07 '17
We should have a rule about weakly typed languages
→ More replies (1)41
u/MrPhatBob Oct 07 '17
Do you prefer a Strongly Typed Domineering language, with Strict Syntax? With a compiler that gives LOTS of Warnings... Personally I prefer to get into a coding frenzy but always to have a safe keyword.
→ More replies (1)2
u/rubygeek Oct 08 '17
Well, there are plenty of languages I'd consider exercises in sadomasochism...
Brainfuck, Befunge, Malbolge, Intercal.... Java.
→ More replies (1)→ More replies (6)2
u/msiekkinen Oct 08 '17
I get the feeling author had to sit through too many sensitivity reeducation camps about in appropriate code comments getting committed or something
3
u/petticoatsissy Oct 08 '17
I've stolen and posted this to fetlife, but if you want to post, I'll delete mine.
3
1.1k
u/Vondi Oct 07 '17
Confusing English-like syntax and unhelpful error messages
This is the kind of transparency I can get behind.
415
u/glop102 Oct 07 '17
The first step is to admit there is a problem
The second step is to ignore it
→ More replies (1)60
u/Ethesen Oct 07 '17
Alternatively - there is no second step.
15
u/Always_Has_A_Boner Oct 07 '17
Just like Python, where no error should pass silently... Unless explicitly silenced.
→ More replies (3)32
→ More replies (3)4
755
u/Spoonofdarkness Oct 07 '17
Even the license is part of the theme. Awesome
154
u/TakeFourSeconds Oct 07 '17
Wait, how so? Am I missing something?
836
u/asaltycaptain Oct 07 '17
"Fetlang is licensed under the BSDM (BSD, modified) license" 😂
http://reddit.com/r/programming/comments/74uvc7/fetlang_fetishthemed_programming_language/do1bjhz
153
→ More replies (1)34
729
Oct 07 '17
Fetlang is not recommended for production use at this moment, especially in medical or military applications
especially in medical or military applications
30
u/Subtle__ Oct 07 '17
I don't get it.
→ More replies (1)56
7
0
438
u/poshpotdllr Oct 07 '17
Fetlang is licensed under the BSDM (BSD, modified) license
you are a fucking artist.
→ More replies (2)58
312
u/syntaxvorlon Oct 07 '17
Make Betty moan
Worship Carrie's feetYou are amazing and crazy.
0
Oct 07 '17
[deleted]
33
u/amicloud Oct 07 '17
Can anyone explain the
lick Duke's left nipple one million timespart? Everything makes sense to me except the first two lines....53
u/xonjas Oct 07 '17
That line sets the duke variable to 1000000 (I think, although the example-comment only sets it to 10). That is the upper limit for the fibonacci search.
→ More replies (1)→ More replies (1)16
u/muntoo Oct 08 '17
I'm gonna guess this translates to:
Bob = 1 Duke = 1000000 while Ada < Duke: print Ada Charlie = 0 Charlie += Ada Charlie += Bob Ada = Bob Bob = Charlie
243
u/cfors Oct 07 '17
So far, my favorite bit of the source code.
#pragma once
// There are exactly 6 genders in the world. No more, no less.
enum Gender {
UNASSIGNED_GENDER = 0, /* Gender has yet to be assigned - Variables
should default to this*/
MALE_GENDER, FEMALE_GENDER, /* Applies to people (singular) only */
NEUTRAL_GENDER, /* Includes non-binary and plural, mostly applies to
* people, rarely to a group of objects
*
* No technical distinction is made between singular
* non-binary and plural
*/
NONPERSON_GENDER, /* Singular object, applies to nouns only */
NA_GENDER, /* Gender not applicable - applies to non-nouns only */
};241
u/minno Oct 07 '17
It's easy to be inclusive when one of your options is "all the rest".
86
u/antonivs Oct 07 '17
That's why most groups have a word like "barbarian", "unbeliever", "infidel", "outsider", "muggle", "foreigner", "illegal alien", "heretic", "colored".
Inclusiveness in action!
22
u/sje46 Oct 07 '17
Reminds me of how Whitaker in his famous Latin look-up program assigned genders in Latin (traditionally it's viewd that Latin has three genders: Masculine, Feminine, and Neuter): X for unknown, Masculine, Femine, Neuter, and C for common (Masculine or Feminine, aka "animate"). Similar to fetlang's scheme except you gotta conflate NA with Unassigned (which makes sense since Whitaker's Words is not a programming language), and nonperson_gender is inverted to the animate, C gender.
http://archives.nd.edu/whitaker/wordsdoc.htm Control+F GENDER_TYPE
→ More replies (2)13
73
126
u/InvisibleEar Oct 07 '17
Oh my God, literally a programming circlejerk
63
205
835
u/GYN-k4H-Q3z-75B Oct 07 '17
Bondage loops allow you to iterate through a chain.
I wish I had time to come up with something like this.
323
u/benihana Oct 07 '17
this is a prototypical hacker news comment, its like pro level dismissiveness and haughtiness
→ More replies (2)24
u/windsostrange Oct 07 '17
it’s the hn version of the ubiquitous reddit comment
“but i have no friends”
when someone mentions coop gameplay
→ More replies (1)12
31
Oct 07 '17
Reading the documentation gave me quite a few laughs.
"Richard Stallman's sexy feet is the same as riCHard StallMAN"
25
u/SpotfireY Oct 07 '17
(Assign "If I could just interject" to Richard)
Make Richard moan "If I could just interject"
Gave me quite a chuckle aswell.
54
u/pribnow Oct 07 '17
some exciting code reviews ( ͝° ͜ʖ͡°)
122
u/bgog Oct 07 '17
Code review: “it would be more efficient here to have Malary lick Donna’s toes as it would prevent an out of spankings error later.”
26
u/Ars-Nocendi Oct 07 '17
Getting restrained and escorted out of company campus
"I FUCKING SWEAR! IT IS THE SOURCE CODE I AM WORKING ON!!!"
3
u/istarian Oct 07 '17
Unlikely, it seems pretty tame.
Maybe just maybe if you used the names of actual fellow students and mentioned offhand an intention to do something and/or posted a printed of said code file...
Otherwise the most that'll happen, at least at a technical school, are probably funny looks and maybe being sent to a counselor or something. Probably make the girls that are there even less interested in you...
18
18
u/cbbuntz Oct 07 '17
(This is a basic Hello World program)
(Anything assigned/appended to "slave" pipes to stdout)
make slave scream "Hello World!"Best hello world ever.
2
17
u/halomcdk Oct 08 '17
This is from cat.fet:
** lick Trisha's feet ten times
make Clara moan
Until Amy is dominant towards Alicia
Have Mistress torture Betty
if Betty is Trisha's little pet
call safeword**
Fucking lmao
34
u/abw Oct 07 '17
Confusing English-like syntax and unhelpful error messages
Take all my upvotes, ever.
7
15
14
25
u/mayhempk1 Oct 07 '17
Well, that is definitely not what I was expecting. Especially the BSDM licensing, wow. lmao
12
u/enigma9133 Oct 07 '17
new bullet to add in skills section: extensive experience with backend fetish languages
10
10
9
9
9
u/digital_cucumber Oct 07 '17
make slave scream "#include <stdio.h>\nint main(){char array[3000]={0};\nchar* pointer = array;"
Just your regular day at work.
8
16
16
Oct 07 '17
I honestly thought this was a joke at first. Then I read the example code snippets and realized it was real. I think Fetlang is the first programming language ever to make me die laughing.
12
2
u/DuchessofSquee Oct 08 '17
Lolcode will always be my first love but this is a close second.
HAI 1.3 VISIBLE "Hai world!" KTHXBYE
6
6
5
5
5
8
u/Exastiken Oct 07 '17
!RedditSilver
6
u/RedditSilverRobot Oct 07 '17
Here's your Reddit Silver, Property404!
/u/Property404 has received silver 1 time. (given by /u/Exastiken) info
4
4
4
22
3
3
u/foxfyre2 Oct 07 '17
Oh I already program with a language like this. It looks just like c++ but it's this really sick and disgusting fetish called "normalling." My compiler loves it when I tell it what to do.
3
3
3
u/bro_can_u_even_carve Oct 08 '17
License
Fetlang is licensed under the BSDM (BSD, modified) license
But of course
2
2
2
Oct 07 '17
Interesting cause programming is already a process of fetishization
3
u/istarian Oct 07 '17
You mean like you obsess over so far as to skip sleep and forget to eat and clean yourself... Oh and on top of that you actually claim to like doing it. ?
→ More replies (1)
2
u/KotFare38 Oct 07 '17
Time to put it on my resume as my preferred language, now I just have to learn it
2
2
2
2
u/ultraswank Oct 08 '17
Fuck, I've been challenged to write Kirk/Spock erotica with it. I'm going to have to learn this thing now.
2
u/coopermidnight Oct 08 '17
Alright, now we need Fetish.NET. Or is it .FET? Either way, I want to start writing my view models in this language. BTW you're welcome for the gold :)
(I have a fetish for System.Collections.Generic)3
3
0
u/bobtehpanda Oct 07 '17
On this episode of Shame! That! Kink!
5
u/throwawaysub88 Oct 07 '17
Pfff. There's no shaming going on.
5
u/Property404 Oct 07 '17
Yeah - I didn't mean to come across as kink shaming. My outlook is fairly sex positive
3
44
u/Property404 Oct 07 '17
Gilded, thanks! Wish I was on my main account, now, though :P