[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

[Advertise on 4chan]


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1646414668579s.jpg (2 KB, 111x125)
2 KB
2 KB JPG
What's needed to write my own programming language? I know some python and lua
>>
learn C
>>
File: 1574169870988.png (522 KB, 800x450)
522 KB
522 KB PNG
Abstract syntax tree, parsers, etc. I learned it all in my compilers course.
>>
File: HOLYC_ASM.gif (1.3 MB, 839x656)
1.3 MB
1.3 MB GIF
>>86937768
Assembly matching the cpu architecture.
>>
>>86937786
How are programing language available on every CPU architecture ? Is there a version buildt with every most used assembly language ?
>>
>>86937786
wtf are you just shilling TempleOS?
>>
File: TOS_NETWORK.png (211 KB, 1506x614)
211 KB
211 KB PNG
>>86937845
CPU instructions describe what to do with
memory. These are primitive commands like
move x to y. This differs in the phylosophy of
the processors in the RISC and CISC. But
according to /g nowadays it's a mix of both.
So it's not a big problem to write a compiler using different instruction sets.

>>86937863
Jo, we live in TempleOS and use Windows as
network adapter at the moment. However, the
goal is to set up a separate TOS network on
the actual worldwide web.
>>
>>86937768

Just read the dragon dildo book and you'll be golden.
>>
>>86937768
A necessity for one. Pro tip, you don't have one.
>>
>>86937845
Isn't it usually via LLVM?
>>
>>86937768
What do you even want to make? It's very likely that whatever it is someone already made it.
I don't think that there are more programming paradigms to discover. New languages are just rebundled feature packs of old languages with slightly different syntax.
>>
>>86938183
According to wiki it is a virtual instruction set.
>>
>>86937768
try making your own interpreter first
https://craftinginterpreters.com/contents.html
>>
>>86937786
there seems to be a frog infestion in your os might wanna check that out
>>
>>86937845
you make the compiler able to produce machine code for other architectures.
>>
File: dunning-kruger-effect.jpg (89 KB, 880x701)
89 KB
89 KB JPG
>>86938271
"According to wiki" Dennis Ritchie, the creator of C, had a Ph.D on computer science. He wasn't a Dunning-Kruger retard with a god complex who only knew two basic scripting languages.
Stick to learning C or C++ if you want to get low level. And yes, I've designed a few languages, so if you're just curious there's many ways: if you want to make specific stuff you can use a Domain Specific Language with Ecore models and Xtext on Eclipse. 0 documentation as far as I've seen, a lowlife teacher taught it to me in university.
As for better DSLs and real languages, you can use Yacc and Bison but I remember jackshit about that course I took a year ago. You'd also need to learn a bit of Context-Free Grammar to not throw shit at the wall until it sticks and come up with the worst language in humankind.

And even then Zig and V and even Rust are probably better in every regard, no point in trying to do Pascal or C from zero over again if not for purely learning purposes.
>>
>>86938351
https://www.youtube.com/watch?v=du-TY1GUFGk
>>
>>86938069
Why would you want to connect a Temple OS machine to the internet? It has virtually no security to speak of...
>>
>>86938401
The PC/Arduino part would represent an SBC that
forwards selected signals (firewall).
>>
>>86938369
If you want a decent compiler, you need to be able
to talk to the processor(ALU).
>>
>>86938369
>He wasn't a Dunning-Kruger retard with a god complex
He was.
>who only knew two basic scripting languages.
He knew a lot of languages that were better than C which makes C even worse.



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.