Try to learn C

Joshua Richardson
Joshua Richardson

try to learn C
write hello world
execute it
segmentation fault

All urls found in this thread:
https://developer.android.com/training/basics/firstapp/creating-project.html
Jayden Cruz
Jayden Cruz

how

Mason Cox
Mason Cox

try to learn java
write hello world
execute it
out of memory

Luke Edwards
Luke Edwards

try to learn lisp

Luke Watson
Luke Watson

try to learn go
write hello world
compile it
1.8 MB

Aiden Kelly
Aiden Kelly

kek

Noah Brooks
Noah Brooks

try to learn c++
write hello world
3 years later, still writing it

Joseph Gutierrez
Joseph Gutierrez

learn C
write compiler
write os
die in obscurity

Jaxon Moore
Jaxon Moore

Make sure you're not using a poozen cpu.

Joseph Evans
Joseph Evans

try to learn assembly
still writing hello world

Liam Fisher
Liam Fisher

try to learn HolyC
write hello world
cia niggers steal my fucking compiler

Jose Bennett
Jose Bennett

Welcome to C.

Adam Watson
Adam Watson

try to learn ocaml
try to write hello world
realize too retarded to smart think

Luke Ross
Luke Ross

try to learn C
write hello world
execute it
runs so fast no device in the known universe is able to confirm it happened

David Morris
David Morris

I guarantee its because you're using the K&R book. That shit is so outdated that the new versions of C require more declarations than that book shows you. After two minutes of trying to get it to work and googling, I tossed that book in the trash and moved on to "C Programming for the Absolute Beginner" 2nd Ed. Much better and clearer. Plus the challenges at the end of each chapter are really helpful for learning and practicing what you've learned.

Andrew King
Andrew King

(((((((("""""""""programming languages""""""""))))))))))
not directly editing the 0s and 1s on your hard drive

Caleb Ross
Caleb Ross

Fuck off shill

Dominic Watson
Dominic Watson

implying you would edit direct binary and not hex

Jaxon Thomas
Jaxon Thomas

If you're op, you gotta be retarded to have a segfault in hello world lmfao

Jaxson Rogers
Jaxson Rogers

Bruh..

Michael Parker
Michael Parker

try to learn javascript
write hello world
execute it
NaN

Nolan Hughes
Nolan Hughes

nigger...

Gavin King
Gavin King

I'm pretty sure the hello world in K&R still works perfectly fine.

Jackson Garcia
Jackson Garcia

0s and 1s dont do shit on your harddrive, they need to be in RAM....

John Gonzalez
John Gonzalez

try to learn html
write hello world
open file
works
It's turing complete, why are you fags not exclusively using HTML?

Julian Cruz
Julian Cruz

You cannot directly address bits even in the RAM.

Colton Reyes
Colton Reyes

Then how the fuck do programming languages do it?

Connor Morgan
Connor Morgan

html5 isn't turing complete on its own, it's turing complete in combination with css3 u big idiot :^)

Leo Martinez
Leo Martinez

K&R
outdated
Guaranteed replies.

Eli Brooks
Eli Brooks

So is brainfuck, but that doesn't mean I'd want to write anything in it.

Carter Taylor
Carter Taylor

what the fuck is a hex editor

Juan Morgan
Juan Morgan

Byte + offset usually.
Go back to your cage, monkey.

Angel Thomas
Angel Thomas

Are you retarded?

Everything the computer loads into RAM comes from the HARD DRIVE.

Joseph Peterson
Joseph Peterson

You are too stupid to reply to that post.

Jeremiah Brown
Jeremiah Brown

Stay butthurt, brainlet.

Jaxson Sanchez
Jaxson Sanchez

Butthurt about your reading comprehension or your lack of knowledge?
You cannot address bits directly, you fucking retard. Only bytes.

Camden Howard
Camden Howard

try to write hello world in rust
doesn't compile; programming is considered unsafe by sjw overlords

Bentley Lee
Bentley Lee

fake news

Ryder Torres
Ryder Torres

It does. With more complex shit you get warnings but you can avoid all that by just using the --ansi flag

Noah Green
Noah Green

try to write hello world in linux terminal
distro has to be compiled 6 more times to run it

Dominic Perez
Dominic Perez

try to learn C++
write hello world
execute it
STOP 0x0000008E KERNEL_MODE_EXCEPTION_NOT_HANDLED

Christopher Thomas
Christopher Thomas

fuckin watch me

Evan Lewis
Evan Lewis

SEGURIDDY BY OBSURIDDY RITE?

Adrian Brooks
Adrian Brooks

try to learn C#
write hello world
execute it
don't have .NET Framework

Asher Morales
Asher Morales

When I first started programming it took me probably an hour to realize I needed to download that

Ryder Reyes
Ryder Reyes

Considering that the C# compiler is itself written in C#, it begs the question how you were able to compile an application but not run it.

Evan Walker
Evan Walker

try to learn python
write hello world
inconsistent use of tabs and spaces in indentation
why?

Luis Morales
Luis Morales

authenticAMD

Carter Turner
Carter Turner

realloc() an array
segmentation fault

Michael Bell
Michael Bell

create a VLA
accidentally blow up the stack

Brayden Taylor
Brayden Taylor

what "complex shit"? Fuck off retard.

Alexander Richardson
Alexander Richardson

try a language that has been designed with dumb people in mind. C has been written by (pretty genius) engineers for engineers. not for dumb frogposter kiddies.

Nathaniel Williams
Nathaniel Williams

it's essentially moving some shit into a few registers and executing a syscall. holy fuck, how retarded can numales get?

Jason Sanchez
Jason Sanchez

K&R 2nd Ed is pretty current. all the C99 changes are just syntactic sugar for lazy morons and low iq niggers

Benjamin Moore
Benjamin Moore

HolyC
Haha, is he out of mental ward at the moment?

Wyatt Torres
Wyatt Torres

Wew, I see the IDF (Intel Defense Force) is already in positions to shill

Joshua Edwards
Joshua Edwards

being that retarded

David Baker
David Baker

try to learn Python
write hello world
"Kernel died, restarting..."

Colton Campbell
Colton Campbell

import __hello__

Dylan Scott
Dylan Scott

You mean "Absolute Beginner's Guide to C"? I gave that a read and that author is fucking retarded as fuck. I actually felt less intelligent after doing the majority of the exercises in the book. Fucking aweful and teaches you very little.
pic related.

Angel Stewart
Angel Stewart

Uses breaks in an if else ladder which should be a switch
Multiple printf statements in a row
This better be his bad example

Joseph Flores
Joseph Flores

numale
syscall
If you wanted to sound like a edgy greasy nerd well you are, but at least don't write bullshit

Noah Walker
Noah Walker

literally ho can you segfault a hello world? are you using printf?

Jack Morris
Jack Morris

try to learn rust
start browsing reddit

Charles Edwards
Charles Edwards

Try to learn python
write hello world
SyntaxError: Missing parenthesis
IndentationError

Jaxson Allen
Jaxson Allen

try learn apl
write 6 lines of code
those 6 lines searchthe ‘net to find out how to say “hello world” in all known languages and prints them out
spend the rest of your life trying to figure out how it works

Asher Mitchell
Asher Mitchell

what are bitfields

Cooper Phillips
Cooper Phillips

Windows 2000 preview build 1585

Isaac Johnson
Isaac Johnson

don't try to learn a programming language because you're rich and won't ever need to be a wageslave

Brandon Gonzalez
Brandon Gonzalez

what is BIOS
what is UEFI
what is NetBoot
what is user input

Luis Foster
Luis Foster

try to learn PHP
write hello world
execute it
error: T_PAAMAYIM_NEKUDOTAYIM

Elijah Sanders
Elijah Sanders

A few registers
You have more than three registers? Pussy.

Austin Martin
Austin Martin

try to learn js
sit down for two hours
learned js

William Perez
William Perez

#include <stdio.h>

int main(void){
char *msg = "Hello world!";
printf("%s\n",*msg);
}


pretty simple, really.

Joshua Sullivan
Joshua Sullivan

Is that so easy? How much time to start freelancing?

Mason Smith
Mason Smith

how long does it take you to register on pajeetlancer.com?

Colton Cook
Colton Cook

open notepad
write hello world
save as...

Henry Wright
Henry Wright

As easy as writing it in BASIC.
Specially if you have a machine language monitor build in.

Owen Gomez
Owen Gomez

not using an advanced debugger
Yes I can.

Cooper Sanchez
Cooper Sanchez

Try to learn Android
Create application class, activity class, activity lifecycle, layout, views
Import org.pajeet.helloworld
Gradle sync
Wait hours
Build
Wait hours
Generate APK
Wait years
50MB APK
Warning: you're using 100 deprecated methods
Run
App stopped unexpectedly: nullpointer

Angel Ramirez
Angel Ramirez

Well you could just learn the difference between a reference and its value, if you encounter such problems
(I might be the one baited, but you really dont want to print *msg as a value for "%s", but rather only msg, as it is the one holding the value "hello world")

Cameron Peterson
Cameron Peterson

learning to develop for iOS
create new project
drag UI elements to a visual representation of an iPhone
“warning: you should add constraints”
press the auto constraint button
everything done automagically
hello world app is now compatible with any iPad or iPhone on different resolutions
I wonder how should I call a method after pressing a button
click and drag from the button to the code
method created
print(“Hello World”)
no ; required because it’s Swift
compile with absolutely no errors
t-thanks Apple

Asher Fisher
Asher Fisher

Try to learn PHP
Write hello world
Out of memory, try increasing memory_limit to 8G and max_threads to 1000

Landon Cruz
Landon Cruz

I was simply trying to reverse engineer what op did to get a segfault on hello_world.c

you could just learn the difference between a reference and its value
this is not something someone writing his first ever c program will understand

Jaxon Powell
Jaxon Powell

Is android development really that fucked up?

Alexander Cox
Alexander Cox

try to learn C
write hello world
compile using gcc with optimizations set to the max because you don't get why everyone limits them
the optimizations are so advanced, the compiler temporarily gains sapience while going through the code, founds out that all existence is ultimately meaningless, optimizes away the entire program and replaces it with a virus to do the same to all other entities that exist or may ever exist in the universe, then exits successfully

Jeremiah Johnson
Jeremiah Johnson

Yes, just read a few lines of the this Google’s getting started:
https://developer.android.com/training/basics/firstapp/creating-project.html

tldr: it’s hell.

Also, Android studio is pretty discouraging

Lucas Barnes
Lucas Barnes

Android studio will do most of the work for you and you obviously don't need to import external libraries to print hello world on a label, but in general an Android app requires a lot of different shit just for a single page with a single view. But iOS is the same, Xcode prepares everything and you just code on top of the shiny new autogenerated controller

Isaiah Reed
Isaiah Reed

actually learn it
realize its the pinnacle of human achievement and every other language is torture now

Blake Wright
Blake Wright

pic related is a button

Nolan Rodriguez
Nolan Rodriguez

even simpler

$ echo 'main(){char*msg="asdf";printf(*msg);}' > sf.c && gcc sf.c 2>/dev/null && ./a.out
Segmentation fault

Angel Rogers
Angel Rogers

read out value as number at memory location
convert to binary mentally
change bit
convert back
store value
Or literally any operation

Benjamin Scott
Benjamin Scott

try to run the virus
segmentation fault

Connor Cox
Connor Cox

be brainlet
segfault
Nothing surprising here

Jaxson Turner
Jaxson Turner

try to learn fortran
write hello world
accidentally drop punched card stack walking to the computer

Juan Roberts
Juan Roberts

kek

Nathan Morris
Nathan Morris

Kekd

Ryder Wood
Ryder Wood

My father did this for his final programming project when he went to uni back in the late 70s. He was biking to the student office with punchcards and of course fell and had to manually sort them before the deadline.

Ian Smith
Ian Smith

I literally can't believe anybody bothers to make apps for Android after using XCode. Don't get me wrong, it still makes me want to blow my brains out for a thousand reasons, but damn it does a lot of the work for you.

Leo Phillips
Leo Phillips

echo hello world
Pretty easy actually

Julian Bell
Julian Bell

Then why would OP use pointers?

Josiah Walker
Josiah Walker


Fucking aweful
It's written "awefull" when you are filled with awe

Jace Bailey
Jace Bailey

Because the book book/tutorial he read told him to use char * without explaining it properly, or that * has multiple meanings.

Landon Jackson
Landon Jackson

Usually you take the stack and draw a diagonal line across the top, so that all cards get uniquely marked on their (top) sides. The task of sorting a dropped pack is much smaller this way.

Camden Carter
Camden Carter

try to learn python
write hello world
Unexpected indent

try to learn js
write hello world
undefined is not a function

Lucas Torres
Lucas Torres

* means reference
* means to dereference
** can mean reference to a reference
*** can mean reference to a reference to a reference
**** syntax error

aliens.jpg

Nolan Morgan
Nolan Morgan

current state of Sup Forums

That's not direct access.

Anthony Long
Anthony Long

tripfag
retarded
Color me surprised.

Anthony Sanders
Anthony Sanders

dunning kruger or something

it's the difference between software engineer and developer.

Bentley Miller
Bentley Miller

try to learn assembly
write hello world
execute it
alignment error

Eli Young
Eli Young

try to learn latin
write salve orbis
send it
get cucked by islam

Owen Sanders
Owen Sanders

try to learn C++
write hello world
it doesn't compile

okay

Colton Martin
Colton Martin

pedantry at its infest

Ryan King
Ryan King

try to learn Swedish
write Jag älskar berg
say it
I love faggots

Jonathan Nelson
Jonathan Nelson

try to learn write video games
after 2 years of hard work it finally came to this
a spinning color triangle

Wyatt Ramirez
Wyatt Ramirez

try to improve productivity
install Ubuntu
just werks
distro-hop for 2 years anyway

Gabriel Williams
Gabriel Williams

*msg stores an address to a char data type. You tried putting a string instead of an address.

Pointers, which is what you're dealing with when you use the Asterix, are not taught till much later in C.

Lucas Diaz
Lucas Diaz

try to learn haskell
i'll do it later

Juan Murphy
Juan Murphy

try to learn Go
ch <- "Hello, world!"; fmt.Println(<-ch)

Landon Hernandez
Landon Hernandez

trying to learn javascript
google chrome is out of memory

Nolan Hill
Nolan Hill

install Arch
never upgrades

Aaron Anderson
Aaron Anderson

*updates

Andrew Campbell
Andrew Campbell

you fucking idiot
stick to the theme of the thread

William Diaz
William Diaz

actually learn it
realize it's minimalist garbage and people who think otherwise are sperglords

Cooper Collins
Cooper Collins

minimalist languages tend to be superior

Blake Rodriguez
Blake Rodriguez

i dont know how to program

Jack Evans
Jack Evans

Someone put this next to the cs grad picture

David Foster
David Foster

asterix, nigguh

Elijah Turner
Elijah Turner

(((berg)))

Christian Martin
Christian Martin

It's asterisk

Julian Peterson
Julian Peterson

yes, that is the joke

and here's your (you)
ya guntgrinder

Landon Ramirez
Landon Ramirez

Is that because there's risk involved with asterisks?

Nathaniel Flores
Nathaniel Flores

printf("s\n", *msg);
printf("s\n", 'H');
printf("s\n", 0x48);

The process can't read address 0x00000048 hence segmentation violation.

Wyatt Wright
Wyatt Wright

If you want full coverage of the language + standards (up to C99 at least) + library + gotchas + how to make actual big C projects in the real world (multiple files and custom headers) then I recommend C Programming: A Modern Approach.

Jack Bennett
Jack Bennett

What is a computer.

Kayden Green
Kayden Green

the year is 2017
I'm in c class
class requires we use the c99 standard
ask why not the c11 standard
instructor says he didn't want to remake the slides he created in 2005

Landon Ortiz
Landon Ortiz

Terry?

Tyler Long
Tyler Long

Someone tell me this isn't accurate

Someone please tell me this isn't accurate

Connor Sullivan
Connor Sullivan

Honestly, the differences between C99 and C11 are pretty minimal. As long as he's off of C89, it's fine.

Tyler Green
Tyler Green

Now you know the true meaning of "fat binaries"

Jack Gomez
Jack Gomez

Yup. Simple Go app is indeed 1.8MB _stripped_.

Jace Moore
Jace Moore

STRIPPED.

FUCKING 1.8MB S T R I P P E D.

What a fucking meme. Not to bash the whole use of the language but if helloworld.go or whatever compiles to a 1.8MB Binary you need to rethink how that compiler works.

Juan Sullivan
Juan Sullivan

byte
what year is it?

Lucas Smith
Lucas Smith

Thicc

Thomas Wright
Thomas Wright

Virtual memory

Blake Morris
Blake Morris

It's because of the runtime. If you write a huge, complex program it's only going to be a few MB.

Michael Butler
Michael Butler

that is the runtime size. That is a one time thing per executable. It isn't linear on the size of the program

Jaxon Ross
Jaxon Ross

try to learn VHDL
LEDs on test bench blink so quickly you get epilepsy

how can software even compete?

Lincoln Gutierrez
Lincoln Gutierrez

Honestly this tbqh. It's pure power and truth.

Every other language is garbage in comparison.

Mason Richardson
Mason Richardson

learning

Disable AdBlock to view this page

Disable AdBlock to view this page