[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Forth is the most hacker thing that there is. It is literally

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 9
Thread images: 6

File: 1498606081258.jpg (26KB, 328x328px) Image search: [Google]
1498606081258.jpg
26KB, 328x328px
Forth is the most hacker thing that there is.

It is literally like a tiny tiny little unix shell.

Here's how you make a forth.

>make a linked list
>make a push function
>make a pop function
>make a swap function

Congradulations you made a forth.

You can make a forth in like 50 lines of c with no libraries.

You can make a little forth shell to go on a tiny mcu computer the size of a peanut.

Forth is the most versatile. It is fully customizable down to the teeth and it can run absolutely anywhere, and with a little elbow grease you can port your forth code across systems.

Forth is one of the oldest unix utils and was hidden in the command gnu dc which is like 25 kilobytes.

Gforth itsself is like 500 kilobytes. A custom forth gets down to about 10 kilobytes.

Imagine me this why would the powers that be want forth to be a mainstream language? They don't because it is top elite secrets.

Forth is like the ultimate polish/russian hacks.

You can fit forth into micro code. Forth has the best attack vector because it fits into nothing. It maps onto all of the most micro attack surfaces.

Forth is king.
>>
>>61148058
>>make a linked list
>>make a push function
>>make a pop function
>>make a swap function

That would be the most awful """forth""" in existence. Making a functional Forth is easy but not trivial. A Lisp is easier, and more powerful.
>>
File: 1498601683664.jpg (69KB, 689x1023px) Image search: [Google]
1498601683664.jpg
69KB, 689x1023px
>>61148209
forth is way more powerful and yes that's all you need at all for a forth.

Basically if you want it to be a shell you just need to getline the input, chop off the first word, look it up in the dictionary, if its not in the dictionary try to make it a number, and if it's not a number throw an error, then loop again.

So simple.

A pea brain could do it
>>
>>61148209
>A Lisp is easier, and more powerful.
Quasiquoting is a pain in the ass to implement
>>
File: 1498379389343.jpg (87KB, 960x640px) Image search: [Google]
1498379389343.jpg
87KB, 960x640px
open your mind to the uber hacks gentleman
>>
Any good examples/writeups on what you can do with it?
>>
File: 1498439295966.jpg (118KB, 960x916px) Image search: [Google]
1498439295966.jpg
118KB, 960x916px
>>61149125
It's sort of like asking for examples of what you can do with busybox. Lots of general purpose stuff not one specific thing.
>>
File: 1497845797829.jpg (61KB, 525x503px) Image search: [Google]
1497845797829.jpg
61KB, 525x503px
One definition of an operating system you can prescribe to is a general purpose portability machine. Linux for example allows you to port a large variety of applications to a large variety of machines. This is what it is optimized for.

Forth is not optimized for portability of such vast swaths of software. Forth is optimized for simplicity above else. It is a computer system that allows you to go from nothing to a shell-like environment in as few lines of code as possible.

Forth's reputation is for it's small size and for it's general speed. It is not as fast as direct c code and it is usually not compiled, yet it is generally fast because there is not a large layer of abstraction between the user and the machine.

Forth is often said to be an assembly-like language not just because it resembles assembly but because one can write a small forth directly in assembly if they so desire.

This is what makes it a "hacker" language. In it's self it is a hack. There is nothing to forth but a linked list and a dictionary. This is what makes forth so minimal, and the absolute minimalism is what makes it unique.
>>
File: 1498770398684.jpg (50KB, 710x460px) Image search: [Google]
1498770398684.jpg
50KB, 710x460px
>in the underground basements
>forth
>on the tiniest most cutting edge chips
>forth
>in the most deceptive of viruses
>forth
>in the depths of ancient sources running the firmware that keeps your coffee frothing
>forth
>in the dark recesses of old files spitting out god knows what
>forth
>It's all around you
>hidden
>how can you detect a linked list in an ocean of datastructures
>you can't
>forth is everywhere
>forth hides
>forth waits
>what do you think a stack is, anon?

it's FORTH
Thread posts: 9
Thread images: 6


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.