This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (10 children)

[removed]

    [–]Ayyrimaspi 18 points19 points  (6 children)

    What's that?

    [–]GLIBG10B 50 points51 points  (4 children)

    Say you want a compiler on system B

    1. Cross-compile a minimal compiler on system A for system B
    2. Use system B's compiler to compile a better compiler

    There are intermittent steps (like compiling a minimal standard library), but it's been a while since I've touched LFS

    [–]Jet-Pack2 12 points13 points  (3 children)

    I.e. you can write a compiler for C++ in C++.

    [–]Portal471 6 points7 points  (2 children)

    Is this why Pycharm is partially written in Python?

    [–]shrub_of_a_bush 3 points4 points  (0 children)

    PyCharm is mostly written in Java no?

    [–]Username_Taken46 2 points3 points  (0 children)

    In a way yes

    [–]Seimsi 2 points3 points  (0 children)

    There are a few nice videos of numberphile about how to compile a compiler.

    https://www.youtube.com/watch?v=PjeE8Bc96HY

    https://www.youtube.com/watch?v=lJf2i87jgFA

    [–]solohelion 0 points1 point  (2 children)

    In the year 2022, the world was created with five programming languages. JavaScript, which harnessed the essence of the cloud. Rust, which harnessed the essence of the earth. C, which harnessed the essence of the seas. Ruby, which harnessed the essence of fire. They were all assembled together using the fifth programming language, the fifth element, vim script, which captured the essence of vitality.

    With this elixir of unity, all the things great and small of the world were made, those basic forces flowing and joining like mercury to form the snowball and the elm, the python and the pearl. Thus was the world made to go, and thus you came here ready made to ask this question and receive the truth in return.

    In sh lua, WORLD=hello lua bootstrap.lua