I don't think you understand, sir pointers are arrays. arrays are just pointers to a string of bytes in memory.
Ryan Reed
>forth is lower level than even c. the only type is pointer. THERE ARE NO ARRAYS. You can't get lower-level than C, and "arrays" are already syntactic sugar for pointers.
James Wood
Forth is trash.
>Ctards are this fucking retarded A pointer is not an array. It can point to an array (either to the start, somewhere in the middle or at the end), or it can point to a single variable, or it can point to some invalid area. An array is a pointer AND a size. Without the size, all you have is an ordinary pointer that you can access with an offset.
Adrian Thompson
>You can't get any lower level than C C programmers just keep proving their retardation time and time again. Forth is trash nonetheless.
Aiden Bell
You're right actually. meant to say that arrays are pointers and hence forth has arrays because pointers can refer to segments of initialized memory.
Exactly, that's what I'm saying you dumb fucking idiot.
Wyatt Ross
What are you trying to say?
Christian Reyes
so we are we going ? this green arrays stuff seems like out of everyones league for now
in like 5-10 times, it might catch wind especially with this serial computation limit on cpus
every body will start using fancy compilers to arrange code in many nodes manual human layout of code for multi cored chips will be the new assembler
looking at the way they solve the md5 problem just shows you how esoteric this all practice is and how much you need to think differently once you start using this multi cored setup
code is data, data is code a forth gem, never saw anything similar in any other language
Brody Price
Thats just the testing ground, they are still figuring how to properly program 144, either we'll go to 100k+ parallel forth computers per chip or get quantum computers.
Aiden Ortiz
yeah but why would you want to program at a lower level than c? I had to learn jasmin in uni but I swear I will never write another fucking assembly program as long as I live because fuck working without an ide
Xavier Myers
>fuck working without an ide This HAS to be bait.
that actually comes from LISP, which was a big influence on Forth.
the chips are actually pretty cheap. I'd get one if there was an easy and cheap way to program them.
if a word marked with immediate is encountered during the compilation of a new word, it is executed immediately, and no call to the word is written in the compiled code.
Think about ";" - when executed at compile time, it writes return code at the end of the defined word but also leaves the compile mode.
Levi Morgan
lmfao. You do know at its advent, C was considered a very high level language, right?
What can you make in forth? What are major examples?
Ryan Brooks
>All variables in C have an address >A pointer is a variable holding an address, which has it's own address
Forth has a very similar implementation to this. What don't you get OP?
A array in C is just a pointer to the start of memory. If you'd like, sure you can have a set size (maybe you malloc'd a nice lil bitty of ram, or you using some funky embedded EEPROM). That size is now defined as an integer, which is an address in memory. When we read that memory, we can interpret that value as an int. That's legit the exact same as Forth. Except forth reads straight from the stack rather than from the addresses we've assigned to our int values.
Anthony Martinez
This is so fucking dumb. You can interrupt C as assembly, and optimize on a per-machine-cycle basis. That low-level of computer optimization is already GARBAGE and widely criticized. Sup Forums loves to suck off old HTML Web 1.0, but you know what?
Priorities: -Make it work -Document it -Make it conform -Optimise
Like fuck anyone outside of academia will take up forth
Ian Jones
C is still a high level language. not as high level as other high level languages, but still is high level language.
A high level language: -makes a human readable abstraction over assembly and machine code -provides facilities for certain tasks that would be done manually in a low level language
C does both.
Elijah Johnson
I like your agenda to make forth a meme. Let's hope that someone actually fell for it and discover its beauty. The only thing that forth miss is a fan base, I think that the problem is that everyone want to make his own forth and stops there. We need a framework, a big, fast and useful one, something that rust's "I don't trust myself programming" people want.
Aaron Russell
Immediate words simply execute at compile time instead of run time.
Surrounding them in brackets when calling them would do the same.
>We need a framework, a big, fast and useful one, something that rust's "I don't trust myself programming" people want. You clearly don't understand the Forth philosophy. That shit is all bloat and if you can't even make your own implementation of Forth, then we don't want you in our community.
It's usually used in embedded or other small memory systems. It was in common use for game programming in the 80's, NASA used it for some of its spacecraft and it's still in use in some embedded systems.
> You clearly don't understand the Forth philosophy. That shit is all bloat and if you can't even make your own implementation of Forth, then we don't want you in our community. Don't pretend to be the face of the forth community.
Brody Walker
I never said I'm the face of the Forth community, but you clearly aren't even part of it. Chuck's philosophy is to simplify programs and systems until they're a sharp and efficient tool. He believed the future of computing would be everyone making their own programs for their personal use.
I really don't have the space to explain his philosophy here, so maybe this article will explain it better: ultratechnology.com/lowfat.htm
Chuck's minimalist and DIY attitude has lead to him saying you don't need a disk for most applications and that every programmer should write his own editor anyways. This is the prevalent philosophy in the Forth community, and it's why we'll never be a safe place for pajeets and webdevs.