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

Forth

Name: Anonymous 2014-06-11 20:15

Forth as a general low-level systems programming language to replace C?

Name: Anonymous 2014-06-11 20:18

No.

Name: Anonymous 2014-06-11 20:19

Yes.

Name: Anonymous 2014-06-11 20:37

Maybe.

Name: Anonymous 2014-06-11 20:38

I'm 13.

Name: Anonymous 2014-06-11 22:05

>>5
No, you are 5.

Name: Anonymous 2014-06-12 9:54

Forth is shit. An even bigger shit than C. I'd rather replace C with ATS than with this unityped crap.

Name: Anonymous 2014-06-12 9:58

>>7
typing is for shitty programmers

Name: Anonymous 2014-06-12 10:25

>>8
What do you use then, speach recognition or do you have a data port installed in your head?

Name: Anonymous 2014-06-12 13:05

>>9
Brain waves.

Name: Anonymous 2014-06-12 14:08

>>10
電波女

Name: Anonymous 2014-06-12 15:07

>>11
Radio waves woman?

Name: Anonymous 2014-06-13 1:24

>>12
Denpa kind of means ``autistic'' when you're talking about people.

Name: Anonymous 2014-06-13 11:50

>>13
``schizo'' would be more accurate

Name: Anonymous 2014-06-13 12:27

>>13
What's a "denpa"?

Name: Anonymous 2014-06-13 12:45

>>15
It's an anime word nerd.

Name: Anonymous 2014-06-13 12:50

>>16
This is /prog/, not /weeaboo/. Go away.

Name: Anonymous 2014-06-13 12:58

desu

Name: Anonymous 2014-06-13 13:27

>>11
BACK TO RUSSIA, YOU VODKA WHORE!

Name: Anonymous 2014-06-13 14:08

`` '' not " ".

Name: Anonymous 2014-06-13 14:54

>>17
Welcome to world4ch!

Name: Anonymous 2016-07-11 5:32

(stopping the dubsfaggot from dubsbumping)

Name: Anonymous 2016-09-24 1:21

>>17
#define /weeaboo/ /prog/
What now, nerd?

Name: Anonymous 2016-09-24 7:56

>>23
Holy shit Anon! That's nonportable C code that you have there. Better run before the police gets here.

Name: Anonymous 2016-09-24 15:47

>>24
How is it nonportable?

Name: Anonymous 2016-09-25 19:27

Now let's look at the major failing of higher level languages. In
attempting to achieve machine independence and to be applicable to
a wide range of applications, they only give you acess to a fraction of
the capabilities of your computer. If you compare the number of
loop control instructions on your computer to the number of loop
constructs in your language, you'll see what I mean.

Let me indulge in a 1 sentence characterization of 3 popular
languages to illustrate their restricted capabilities:

FORTRAN is great at evaluating complicated algebraic expressions.
COBOL is great at processing packed decimal data.
ALGOL is great at providing loops and conditional statements.

Each language can be very efficient at its sort of job. But if you want
conditional loops involving complicated decimal expressions you
have a problem.

We are going to be concerned with efficiency. We are going to do
some things that if we don't do efficiently, we can't do at all. Most of
these things will not fit in the framework of a higher level language.

Some will; others will demand controlled use of the hardware that a
compiler doesn't permit. For example, upon entering a FORTRAN
subroutine it may save the registers it uses. If you didn't need to save
them you've wasted time and space. An ALGOL subroutine may expect
registers available that you have reserved; then you have to save them.
It may well cost you more effort to interface with the compiler than it saves
you in return.

Moreover, none of these languages are very good at moving things
around. Most statements are data transfers count them in your latest
program. There is a profound philosophical truth concealed in how
much we can accomplish by moving numbers around. If we can move
several things with one instruction, or put the same register several
places we can't afford not to.

You will have to code in assembler! Not the whole program, if you
insist, but the important parts that we'll be concentrating on. You
might be able to do some of these in FORTRAN, but it simply isn't
worth the effort. I'll show you where higher level subroutines can go,
and I think you'll agree there is good reason to restrict them to that
function.

I recognise the drawbacks of assembler and chafe at them as much
as anyone. I don't like to punch and debug 10 times as many cards
either. But I will in order to get the performance I need. By the way, I
will use the word "compiler" to include assembler; we will
compile an assembly language program.

Later I'll show you how to write a program in a forgotten language:
machine language. By that I mean sitting at the console and entering
absolute, binary instructions with the switches. Depending on the
hardware and software available, and the nature of your application, it
may just be the best language of all.

Name: Anonymous 2016-09-25 19:40

>>26
I don't like to punch and debug 10 times as many cards
either.
I don't like to punch and debug 10 times as many cards
either.
I don't like to punch and debug 10 times as many cards
either.
Holy fuck is this from the time of dinosaurs or something?

Name: Anonymous 2016-09-25 19:54

>>27
Do modern men quote many times for no reason?

Name: Anonymous 2016-09-25 20:19

>>28
I wouldn't know that; I can only assure you I've quoted many times for a reason.

Name: Anonymous 2016-09-25 21:12

>>29
What are your reasons?

Name: Anonymous 2016-09-26 11:00

>>30
Not him but I do not know.

Name: Anonymous 2016-09-26 11:18

>>32
Thanks

Name: Anonymous 2016-09-26 12:58

>>30
Sheer amazement and shock.

Name: Anonymous 2016-09-27 17:41

Forth has only stacks, not even arrays. Such a low-performance language can never replace C.

Name: XML is Turing complete 2016-09-27 19:42

>>34
A stack is just an array with a special pointer.

Name: Anonymous 2016-09-28 1:18

>>34
forth has only stacks
forth typically has generic memory read/write functions so no not really

Name: Anonymous 2016-09-29 5:03

>>34
@ 'n' ! that shit

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