In what languages are Javascript, html,php,sql written?
Something needs to be beneath it for these abstractions to work.
In whatever language you want.
>>56564505
C and C++ mostly.
Firefox is written in C and C++
Chrome is written in C++
webkit is written in C++
V8 is written in C++
MySQL is in C++
Zend (PHP engine) is written in C
PostgreSQL is written in C
>>56564505
C i think
maybe some ASM
>>56564554
Firefox has also growing parts (re)written in Rust.
>>56564505
Writing a parser doesn't need a special programming language. Just look at the compiler/interpreter for a special language.
>>56564562
>writing a parser in assembly
>>56564554
node.js is written in C and C++
CPython is written in C
Safari is written in C++ and Objective-C
IE was written in C++
Edge is written in C++
MongoDB is written in C++ and C
CouchDB is written in Erlang
Apache is written in C
nginx is written in C
lighttpd is written in C
Tomcat is written in Java
IIS is written in C
>>56564571
>Firefox has also growing parts (re)written in Rust.
It's dual stack atm, and not enabled by default
https://developer.mozilla.org/en-US/Firefox/Building_Firefox_with_Rust_code
>>56564582
There are plenty of RegEx implementations in assembly.
>>56564621
>>56564554
So C and C++ are the technologies of the web?
How ironic, considering all the Haskell, Erlang and Rust shills on this board.
>>56564571
>Writing a parser doesn't need a special programming language
Then how do you write parser without language?
>>56564682
Magnetic needle and a steady hand
>>56564505
what language is C and C++ written in?
>>56564682
>special programming language
>without language
Saying that you don't need "this" language doesn't mean you don't need any language. Learn reading.
But honestly you don't need one. Write your opcodes and have fun.
>>56564697
Every time I get to that part I use needle to inject heroin instead. Erry time.
>>56564718
Most languages are self-hosting which means you write the compiler in the same language. You just need a compiler in a lower language once and than extend your compiler with your language.
>>56564718
in B
>>56564718
C++ is written in C
C is written in BCPL/CPL (aka "B")
>>56564745
So you're saying it's turtles all the way down?
>>56564772
Yes
>>56564772
Yes
>>56564772
Yes
>>56564772
Maybe
>>56564764
Doesnt C translates directly to assembly? These layers man...
>>56564772
I don't know
>>56564815
>directly
No, but almost. C is today considered a portable assembly, but it is a high level programming language.
>>56564772
Perhaps
>>56564772
install gentoo
>>56564851
>>56564816
>>56564809
>>56564792
>>56564791
>>56564785
>>56564783
>>56564870
Thanks /g/
>>56564832
>high level
It's mid level at most.
>>56564832
>No, but almost.
What is it? Where can I read more about that?
>>56564897
C is a high level language, it offers high-level abstractions to IO and other system functionality.
>>56564743
<<<redit
>>56564631
>using regex to parse html
>>56565108
Who are you quoting?
>>56565108
What's wrong with that?
>>56565147
HTML parsing is not possible with regexes because it requires matching of opening and closing tags.
>>56565147
https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags
>>56565175
>not possible
It's possible by doing it in separate steps, but it's not performant.
There's also extended regex syntax that allows you to refer previous groups in your expressions.
>Javascript, HTML
These are handled in web browsers, which are almost all written in C++
>PHP
C
>SQL
MySQL is written in C++
PostgreSQL and SQLite are written in C
>>56565246
I never understood why didn't people just continued to use C++ since whole browser (and OS after all) is written in it instead of inventing javascript and other stuff.
>>56565321
Because C++ is difficult for most people to program in, whereas even hipsters can manage to throw simple shit together in javascript.
>>56564672
>So C and C++ are the technologies of the web?
If you want to be out of job, then yes.
>>56565350
I find C much easier than JS.
>>56565175
>because it requires matching of opening and closing tags.
no it doesn't, you don't need to close any tag
>>56565736
>any tag
Dumbass.
>>56564505
in english you stupid fuck
>>56564764
What is B written in?
>>56564672
All these language are used, just not as much as C/C++
>>56564745
>Most languages are self-hosting
>most
see >>56564554
>>56564815
no, it doesn't translate directly. do you know any programming language or concepts like functions variables etc.? if so i can give you an example of C code and equivalent assembly code and walk you through both
>>56564772
Can you repeat the question
>>56568345
Not >>56564815, but interested.
>>56568345
Do you even know how compiles work dumbfuck.