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

Pages: 1-4041-

Newest Programming Challenge

Name: Anonymous 2011-10-26 5:38

i found the lack of basic programming skills in prog
disturbing, so today and for the next 52 weeks
i m gonna try teach people on prog and maybe /g/ how to program
through small programming challenges.
CHALLENGE NUMBER I
1.copy the following  lines to a small text editor
2.save it as hello_world.c
3.open up a termnial
4. give gcc hello_world.c -o hello_world -Wall
5.type ./hello_world to execute it
VOILA!! you've just finished the first challenge
one step closer to being a programmer

//VODE
#include <stdio.h>

void main()
{
   system("echo hello world!");
}
//CODE

COMPLETION TIME:2 weeks starting from NOW!!!
Good luck gentlemen!!!

Name: Anonymous 2011-10-26 5:49

Trolling ain't easy.

Name: Anonymous 2011-10-26 5:55

-Wall
-fuck-you -faggot

Name: Anonymous 2011-10-26 6:19

This is programming?

Name: Anonymous 2011-10-26 6:35

先生 i'm stuck with hello world.c.txt
where i find notepad *.c butan

Name: alert("sage")"">"<script>" 2011-10-26 7:44

i am stuck
could somebody help me please!

Name: Anonymous 2011-10-26 7:44

"<script>alert("sage")</script>"

Name: Anonymous 2011-10-26 8:09

Please keep these series of challenges in one thread.

Name: Anonymous 2011-10-26 8:25

>>8
>>7
>>>>>6
>>5
>>4
>>3
>>2
i see you guys have already too much trouble
with the first challenge
i'll mail m00t if he can make a special Q&A section
hung in there little buddies help is on the way

Name: Anonymous 2011-10-26 8:28

>>9
Get out.

Name: Anonymous 2011-10-26 8:28

>>9
I'd prefer that you would not create a new thread for each new challenge you decide to share with us.

Name: Anonymous 2011-10-26 8:32

>>11
well people are already confused
keeping challenges on seperate threads
instead of appending them to one thread
will make their life a whole lot easier
trust me i am a school teacher

Name: Anonymous 2011-10-26 8:36

>>12
Threads do not expire here and have a post limit of 1000 posts per thread. It's obvious you are going to do a series of these challenges so please, keep them all aggregated in one thread for easy reference.

Name: Anonymous 2011-10-26 8:48

>>2
You should consider that there is a slight chance he actually isn't trolling.

Name: Anonymous 2011-10-26 9:02

oh enough with the trolling bs
i am trying to do something substantial here
fyi i spent about a week reading many of the posts
and it became apparent to me that most
people here posting lack the skills and knowledge of
super basic stuff.So please dont be a dick
and help me out.

Name: Bonzy_Buddy_Programmer 2011-10-26 10:47

You're a scrub, a midget in the toilet. Me, I was part of a team of 2500 programmers in Bangalore writing bug-ridden, pattern-designed expert enterprise solutions.

Name: Anonymous 2011-10-26 11:27

>>16
hahahhhhhahahhaha
hahahahahhhhahha
you should trademark that
pitch it to the bigGangTheoryGuys
hahah

Name: Anonymous 2011-10-26 12:43

(defparameter *env* nil)

(defun eprogn (exps env)
  (when exps
    (cond ((cdr exps) (evaluate (car exps) env)
                      (eprogn (cdr exps) env))
          (t (evaluate (car exps) env)))))

(defun extend (env vars vals)
  (append (mapcar #'cons vars vals) env))

(defun let-env (env vars)
  (extend env (mapcar #'car vars) (mapcar #'(lambda (var)
                                              (evaluate (cadr var) env)) vars)))

(defun lookup (exp env)
  (let ((var (find exp env :key #'car)))
    (if var
        (cdr var)
        (error "unknown identifier ~A" exp))))

(defun make-function (vars body env)
  (lambda (vals)
    (eprogn body (extend env vars vals))))

(defun self-evaluating-p (exp)
  (or (keywordp exp) (numberp exp) (stringp exp)
      (and (symbolp exp) (or (eq exp t) (eq exp nil)))))

(defun evaluate (exp env)
  (cond ((self-evaluating-p exp) exp)
        ((symbolp exp) (lookup exp env))
        ((listp exp)
         (case (car exp)
           (lambda (make-function (cadr exp) (cddr exp) env))
           (quote (cadr exp))
           (if (if (evaluate (cadr exp) env)
                   (evaluate (caddr exp) env)
                   (evaluate (cadddr exp) env)))
           (let (eprogn (cddr exp) (let-env env (cadr exp))))
           (t (funcall (evaluate (car exp) env)
                       (mapcar #'(lambda (exp) (evaluate exp env))
                               (cdr exp))))))
        (t (error "unknown expression ~A" exp))))

(defun defprimitive (name fun)
  (push (cons name #'(lambda (args) (apply fun args))) *env*))

(defprimitive 'car #'car)
(defprimitive 'cdr #'cdr)
(defprimitive 'cons #'cons)
(defprimitive 'print #'(lambda (val) (format t "~A" val)))

(defun main ()
  (evaluate (read-from-string "(let ((map (lambda (f g lst)
                                            (if lst
                                                (cons (g (car lst))
                                                      (f f g (cdr lst)))
                                                nil)))
                                     (symbols '(h e l l o | | w o r l d |!|)))
                                 (map map print symbols)
                                 nil)")
            *env*))

Name: Anonymous 2011-10-26 16:00

>> 18
GC is shit.

Name: Anonymous 2011-10-26 16:01

>>19
kill yourself you fucking cock sucking faggot

Name: Anonymous 2011-10-27 4:34

hmmm 13 days remaining
bummer, didnt know it would that difficult
come on guys try harder
i know you can do this!!!
just believe in yourself!

Name: Anonymous 2011-10-27 5:25

challenge my dubs ^___^

Name: Anonymous 2011-10-27 5:50

I wonder if OP understands that not every in /prog uses a linux system. A pondry.

Name: Anonymous 2011-10-27 6:03

>>23
Enlighten me why a programmer would want to use anything else?

Name: Anonymous 2011-10-27 6:08

Name: Anonymous 2011-10-27 6:22

gcc hello_world.c -o hello_world -Wall
Invalid command "gcc"
./hello_world
Invalid command "."

I am as cool as RMS himself!

>>23
Not using Linux
2011

ISHYGDDT

Name: Anonymous 2011-10-27 7:35

>>26
Get the fuck out.

Name: Anonymous 2011-10-27 9:00

>>27
make me

Name: Anonymous 2011-10-27 9:17

make: *** Error pos found.  Stop.

Name: Anonymous 2011-10-28 4:56

hmm cant say this isn't frustrating
3 days in and sill no success
12 days remaining
all hope lost

Name: Anonymous 2011-10-28 5:51

>>24
>2011
>Not using LoseThos

Name: Anonymous 2011-10-29 7:58

ok not a single answer
ok i spoke to the rest of the teachers
and we ll change the challenge to simple sh or vb
hang in there little buddies

Name: Anonymous 2011-10-29 11:05

>i m gonna try teach people on prog and maybe /g/ how to program

I did chortle most heartily.
teach...
/prog/
how...
to...
program...

you are too funny OP
if this teaching gig doesnt work out for you consider trying stand-up comedy ok?
you have the balls for it but your material needs working on.

Name: Anon 2011-10-29 11:25

It's a bit too hard, you already lost me at point 1. Copy....uuuuuuuaaaa.... ok, I give up, you win

Name: Anonymous 2011-10-29 11:42

g++ hello_world.c -o hello_world -msse2 -O3  -fexpensive-optimizations -falign-functions=4096 -fdelete-null-pointer-checks  -static-libgcc -mtune=core2 -march=core2 -fnon-call-exceptions -fomit-frame-pointer -funroll-loops &&./hello_world

FOMG-OPTIMIZED

Name: Anonymous 2011-10-29 11:45

ok new-challenge-REDUX

1.copy the following  lines to a small terminal(72x72 ideal res)
2.dont save it as anything
3.write hello world
4.press Enter its the big wide key above the right shift key
5.type ./hello_world to execute it
VOILA!! you've just finished the first challenge
one step closer to being a probumber

//VODE
hello world
//CODE

COMPLETION TIME:due too difficulties and technical problems
we moved it to 1/1/12
Good luck gentlemen!!!
hope the best one needs

Name: Anonymous 2011-10-29 11:51

>>33
Back to the image boards, ``please''!

Name: Anonymous 2011-10-29 12:39

>>33
thanx buddy
i m thinking nsl

Name: Anonymous 2011-10-29 15:29

>>35
-O3
>> -fomit-frame-pointer -funroll-loops
Isn't that redundant?

Name: Anonymous 2011-10-29 17:40

-funroll-loops
I always read that as FUNroll loops, a tasty snack treat from the makers of Funyuns.

Name: Anonymous 2011-10-29 17:45

Al-Mubarak Muslim School for Moe Girls

Name: Anonymous 2011-10-29 17:48

>>40
You must be me.

Name: Anonymous 2011-10-29 17:52

fugees and funyuns

Name: Anonymous 2011-10-29 18:34

-vomit-frame-pointer
-froot-loops

Name: Anonymous 2011-10-31 7:47

-vomit-frame-pointer

Name: Anonymous 2011-10-31 10:53

just completed the challenged i am going for
the c version should be difficult but i am ready
to take my chances...

Name: Anonymous 2011-10-31 16:09

Prople that don't like the feature set of a programming language so much so that they invent their own new language now have at least TWO problems.

Name: Anonymous 2011-10-31 20:04

2011
not having enough registers to use both a frame pointer and a stack pointer
ISHYGDDT

Name: Anonymous 2011-10-31 20:54

>>48
I had to shave some off to reduce the drag on my CPU. Plus it looks cooler that way.

Name: Anonymous 2011-11-05 11:44

hmmm

Name: Anonymous 2011-11-05 18:12


echo -e '#include <stdio.h>\nvoid main() { system("echo hello world!"); return 0; }' > hello_world.c; gcc hello_world.c -o hello_world; ./hello_world


Done

Name: Anonymous 2011-11-05 19:35

i m trying man
cut me some slack

Name: Anonymous 2011-11-05 20:08

OP that doesn't work for me, could you be a bit more specific? I'm stuck at point 3, how do I open up a terminal on Windows 7? I've tried with the command prompt but that doesn't seem to do the trick. Do I need admin rights or something??

Name: Anonymous 2011-11-05 20:30

>>53
You need Cygwin and Mintty on Windows.

Name: Anonymous 2011-11-05 22:19

>>51

[code]echo -e '#include <stdio.h>\nvoid main() { system("echo hello world!"); return 0; }' | tcc -run -[/cpde]

OMG OPTIMISED

Name: Anonymous 2011-11-05 22:48

>>1
//VODE

Who's VODE? A jew? A nigger? FrozenRetard?

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