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

Pages: 1-

scheme robots

Name: Anonymous 2013-03-22 11:06

A programming game I'm making
Any feedback is more than welcome
It runs in javascript and html5, and has a scheme interpreter that can't do proper tail recursion.
http://schemerobots.comlu.com/textarea.html
Put the code for each player in the textareas and press submit code.
Example code:
http://bpaste.net/show/hRqvv38dZSc3NtNNezaV/
It is a work in progress, creatures lose hp but don't die yet.

Name: Anonymous 2013-03-22 11:14

(define map (lambda (f l) (begin (define result null)
    (for 0 (lambda (x) (not (null? l))) (lambda (x) (begin (set! result (cons (f (car l)) result)) (set! l (cdr l)))))
    result)))

Are you this guy? http://dis.4chan.org/read/prog/1363902515

Name: Anonymous 2013-03-22 11:25

>>2
No, but like I said, it can't do proper tail recursion. I use for so map won't cause an error of too much recursion.

Name: Anonymous 2013-03-22 11:35

>>3
Oh, sorry, I misread that as can. The language might be a part of the project (in which case, you're probably better off considering them as seperate projects), but have you considered using an existing scheme-in-js?

Name: Anonymous 2013-03-22 11:46

>>4
I've tried biwascheme, it has proper tail recursion, but doesn't have a way to create separate environments.
Any others you recommend?

Name: Anonymous 2013-03-22 12:12

>>5
There was a thread recently in which someone posted a link to a comparison-by-feature table of various Lisp JSs. I can't find it now, but if that rider reads this, I'm sure they wouldn't mind posting it again(?)

Name: >>6 2013-03-22 12:14

I mena, I haven't actually had to use anything of the sort yet, so I can't recommend. I wasn't trying to be unhelpful.

Name: Anonymous 2013-03-22 12:20

>>6
Is this it? http://ceaude.twoticketsplease.de/js-lisps.html
Which of the features is the ability to create separate environments?

Name: Anonymous 2013-03-22 12:36

>>8
I'm not sure; I wouldn't have used environments for this in the first place.
There's also Gay Lisp, which is apparently r5rs-compliant. The home page suffers from Web 3.6 syndrome though.
http://gay-lisp.org/

Name: Anonymous 2013-03-22 14:54

>>9
That repl seems a bit laggy, or is it just here?

Name: Anonymous 2013-03-22 15:54

>>9
Welcome to Gay Lisp! To get started, please type your name in double quotes, like this: "Cordelia"

 

>> "Faggot"
Hey Faggot, welcome! Gay Lisp is a program that understands the language Scheme. It's so much fun. You're going to love it.

We've already covered how to enter strings -- you just put them between double quotes.

Numbers are pretty easy too. Type 10 to get the number 10.

 

>> 10
That's right!
Negative numbers, decimals, exponents, different bases -- no problem.

Type 1e6 for a shorter way to get a million. (It's short for 1 x 10^6, 1 times 10 raised to the sixth power.)

 

>> 1e100
Sorry Faggot, that's not quite what I had in mind.
 

>> 1e6
Good.
It's easy to make lists out of things.

If you want to make a list that looks like (blah1 blah2), just type (list blah1 blah2).

For example, type (list -10 3 "Cornwall") to get the list (-10 3 "Cornwall").

 

>> (list -10 3 "Cornwall")
Keep up the good work.
As you can see, the things in the list don't have to be all the same kind.

They can be anything. Numbers, strings...even other lists.

Can you make a list whose first element is the number 75, and whose second element is the list (1 2)?

 

>> (list 75 (list 1 2))
Awesome, Faggot! That was tricky.

If you typed (list 45 60 "Goneril" "Regan"), how many elements would there be in the list it would create?

 

>> 4
Keep up the good work.
And how many elements were in that tricky list -- the one you created by typing (list 75 (list 1 2))?

 

>> 2
Exactly! The big list is made up of two elements: the number 75 and the list (1 2).

Here's a challenge for you, Faggot.

Can you think of a way to make a list with zero elements?

 

>> (list)
That's right!
Numbers, strings, lists -- we've covered the most important kinds of things in Scheme.

Lists are the most important, because they can contain anything.

And this brings us to the secret of Scheme, the thing that sets it apart from almost every other language.

Faggot, are you ready to learn the secret of Scheme?

(Type "yes", with the quotes.)

 

>> "yes"
The secret of Scheme is:

 _    ___ ___ _____ ___
| |  |_ _/ __|_   _/ __|
| |__ | |\__ \ | | \__ \
|____|___|___/ |_| |___/
                       
   _   ___ ___
  /_\ | _ \ __|
 / _ \|   / _|
/_/ \_\_|_\___|
              
 ___ ___  ___   ___ ___    _   __  __ ___
| _ \ _ \/ _ \ / __| _ \  /_\ |  \/  / __|
|  _/   / (_) | (_ |   / / _ \| |\/| \__ \
|_| |_|_\\___/ \___|_|_\/_/ \_\_|  |_|___/
                                         


That sounds banal, but it really is the secret of Scheme, and the more you use Scheme, the more profound it gets.

Type "tell me more" (in quotes) when you're ready to go on. No rush.

Name: Anonymous 2013-03-22 15:55

Name: Anonymous 2013-03-22 17:09

>>12
hahah, nice [sprawlers]/prog/[/sprawlers] meme you kik (lol!) you hahah sure told that F.A.G. hahah

Name: Anonymous 2013-03-22 17:10

Name: Anonymous 2013-03-22 17:18

>>14
http://www.reddit.com/r/MensRights
jesus christ it's like reading /prog/. i bet a number of the idiots here come straight from there.

Name: Anonymous 2013-03-22 17:53

>>15
As long as they'll drive out you kikes from my /prog/, they are encouraged to post here.

Name: Anonymous 2013-03-22 18:28

>>15
I agree, it's pretty good for a reddit.

Name: Anonymous 2013-03-22 18:51

>>15,17
I wanted to see if reddit really could be anything other than absolute shit, but when i clicked on the link...
reddit is down
for scheduled maintenance

Fuck you too, reddit.

Name: Anonymous 2013-03-22 18:59

>>18
>LE ENCULER FACE

Name: Anonymous 2013-03-22 22:51

>>15
go back to http://314n.ru

Name: Anonymous 2013-03-22 22:56

>>18
It's shit. It's full of bitter divorced guys and miscellaneous misogynists who think that they are the most oppressed minority in the world. They obsess over circumcision, the tiny minority of false-rape accusations, and do absolutely jack shit other than trashtalking on their blogs and harassing people online. It's not that they don't get certain things right, but they have their heads far higher up their collective asses than all but the most fucktarded of feminists.

At least their sworn enemies do get off their asses and do shit for actual causes IRL.

Name: Anonymous 2013-03-22 23:10

>>21
Are they like Johnny from The Room?

Name: FUCK YOU VICTIM BLAMER 2013-03-22 23:44

>>21
In the United States, the average life span of women is 7 years longer than that of men. Women live longer than men in all developed countries. Women also tend to have a lower mortality rate at every age. Even in the womb, male fetuses have a higher mortality rate than female fetuses.

Men have external testes, which are susceptible to severe injury, rupture or torsion.

Women have more sensitive hearing than men. Women also have a more sensitive sense of smell than men, both in the differentiation of odors, and in the detection of slight or faint odors.

Women generally have faster blood flow to their brains and lose less brain tissue as they age than men do.

Women produce more antibodies at a faster rate than men. Hence they develop fewer infectious diseases and succumb for shorter periods. Women are also less likely to suffer from cancer than men.

Certain conditions are X-linked recessive, in that the gene is carried on the X chromosome. Genetic females (XX) will have the disease only if both their X chromosomes are defective with a similar deficiency, whereas genetic males (XY) will have the disease if their only X chromosome is defective. For this reason, such conditions are far more common in males than in females. Examples of X-linked recessive conditions are color blindness, hemophilia, and Duchenne muscular dystrophy.

Statistically more men than women work in more dangerous occupations including: construction, transportation and utilities, mining, agriculture, forestry, fishing, firefighting, policing and patrol officers. There is also harder physical entrance criteria for men in these occupations.

The majority of occupational deaths occur among men. In one U.S. study, 93% of deaths on the job involved men, with a death rate approximately 11 times higher than women.

Insurance companies often charge different rates for men and women: Automobile insurance companies charge more for teenage boys than their female counterparts. Life and disability insurance is also higher for males than for females.

52.9% of American women are in the labor force versus 73.3% of men. 70.7% of women with children under 18 are in the workforce (up from 47% in 1975), compared with 94% of men with children under 18. Approximately 26% of employed women only work part time, compared with about 11% of employed men. Women in non-agricultural industries only work 35.9 hours per week versus 41.6 hours for men.

Women are more likely to be hired to child-related occupations than men. In general, men are more likely to be accused of pedophilia. Single men are also much less likely to be allowed to adopt children or gain custody of children than single women.

In many countries a disproportionate amount of maternity leave is granted than paternity leave.

Many countries, including the US, have male-only conscripted military service.

There is often a bias in health concerns in favor of women. For example, there is more advertisements and awareness for breast cancer than prostate cancer, though both cancers kill approximately the same number of people each year.

It is generally acceptable for a woman to wear traditionally male clothing, while the converse is often seen as unusual. Also, in most societies, homosexual and bisexual women are more widely accepted than their male counterparts.

In most societies, men are generally expected to play the more active role in the early stages of courtship, for example in asking the woman for a date. Society places a greater expectation on males to conform to "masculine" social norms that on women to conform to "feminine" social norms. It's usually seen as socially acceptable for a female to try out or follow more masculine social norms, whereas if a male does the same for feminine social norms they often attract unwanted attention and are victims of ridicule and insult.

Much more pressure is put on men than women to preform well sexually by the media.

In western countries, males are much more likely to die by suicide than females (usually by a factor of 3–4:1); 69 out of 74 non-western countries found an excess male mortality from suicide. American males between the ages of 20 and 24 have a suicide rate that is seven times higher than that of women.

With the exception of rape, men are far more likely than women to be the victims of violent crime.

Violence against men is taken less seriously than violence against women. Depiction of violence against men are often used as humorous in the media and elsewhere where the reverse would be seen as unacceptable.

There is also much less support or sympathy for male victims in domestic violence than for female victims. Statutory rape laws are enforced more vehemently in instances where the victim is female and/or the perpetrator is male. Many female-on-male rape cases are dismissed without investigation. The media also portrays female-on-male rape as humorous in the media and elsewhere where the reverse would be seen as unacceptable.

Women often have lower incarceration rates and shorter sentences than men for the same crimes.

Numerous tenets of the divorce favor women over men, including the previously mentioned child custody, but also alimony and child support payments and division of property from the husband. In their study titled "Child Custody Policies and Divorce Rates in the US," Kuhn and Guidubaldi find it reasonable to conclude that women anticipate advantages to being single, rather than remaining married. When women anticipate a clear gender bias in the courts regarding custody, they expect to be the primary residential parent for the children and recipient of the resulting financial child support, maintaining the marital residence, receiving half of all marital property, and gaining total freedom to establish new social relationships. Over two-thirds of all divorces are initiated by women. Among college-educated couples, the percentages of divorces initiated by women is approximately 90%.

Overall, women claim to be far happier than men with their lives, and reported more often that they had made personal progress in the last five years.

Name: Anonymous 2013-03-23 0:00

>>21
At least their sworn enemies do get off their asses and do shit for actual causes IRL.
such as getting men fired for making dick jokes in the name of great social justice

Name: Anonymous 2013-03-23 0:03

>>24
And making vagina jokes while they're doing it... Apparently it's OK for women to joke about vaginae, but if a man even utters a euphemism for penis he deserves to be publicly beheaded.

Name: Anonymous 2013-03-23 0:14

>>24
BUT THOSE POOR LITTLE GIRLS WILL NEVER LEARN TO PROGRAM, DICK JOKES ARE LIKE KRYPTONITE TO THEM!

Name: Anonymous 2013-03-23 0:15

>>25
Citation needed

Name: Anonymous 2013-03-23 0:25

Name: Anonymous 2013-03-23 0:41

>>28
Where is the public beheading?

Name: Anonymous 2013-03-23 0:53

>>29
Middle East.

Name: Anonymous 2013-03-23 5:42

>>20
Oh shit, that is awesome. I rather BBS' it via telnet although.

Name: Anonymous 2013-03-23 11:48

I think I've implemented TCO, but am still testing it.
What do you guys think? http://bpaste.net/show/Qh97OQkWkK14wjgeIvyI/

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