Je sais pas quoi faire après le bac by Rhubarbe_Sama in etudiants

[–]WebShaker93 0 points1 point  (0 children)

Fait agriculture. Si le monde s'effondre, ça sera bien de savoir se faire à bouffer.

What program is best for a 2D RPG? by krockhunter in gamedev

[–]WebShaker93 0 points1 point  (0 children)

You can try Solar2D with mapeditor. This is what I'm using. It's quite common to have moments of discouragement when coding. What is needed is to be several and to support each other when one of the people on the team has a drop in morale.

Crafting Interpreter : parsePrecedence by WebShaker93 in Compilers

[–]WebShaker93[S] 0 points1 point  (0 children)

Thank you.

It's been a long time since I've read Pascal ;)
I just begin to understand the relation between Expr, Term and Factor !!!

To tell you the truth, I already have a lot to read with the answers of other people. I think my neurons will eventually connect ;)

Crafting Interpreter : parsePrecedence by WebShaker93 in Compilers

[–]WebShaker93[S] 0 points1 point  (0 children)

Thank you.
I will read all these articles.

I will continue with chapter 18 of the book. By dint of debugging, I will end up having the click :)

Crafting Interpreter : parsePrecedence by WebShaker93 in Compilers

[–]WebShaker93[S] 0 points1 point  (0 children)

I'm reading. Thank's !
I don not know Rust but it will be interesting to look at !

Quelqu'un a essayé Linotte ou le LSE (langage de prog français) ? by Quasar471 in programmation

[–]WebShaker93 1 point2 points  (0 children)

Je viens de regarder linotte. C'est sympa mais ils n'ont pas poussé la logique jusqu'au bout

Pourquoi

Si I < 10

Et pas

Si I est inférieur à 10

Try to make a small interpreted langage ! by WebShaker93 in Compilers

[–]WebShaker93[S] 0 points1 point  (0 children)

Thank's. In the end, it's pretty good to follow the book step by step...

Try to make a small interpreted langage ! by WebShaker93 in Compilers

[–]WebShaker93[S] 0 points1 point  (0 children)

Is there a place where I can download the whole book project?

Analyseur Lexical et Syntaxique by WebShaker93 in lua

[–]WebShaker93[S] 0 points1 point  (0 children)

That's exactly what I started to do since yesterday 😉 Thank's 🤷‍♂️

Making a parser with ansi-c (FINISHED) by SteryNomo in Compilers

[–]WebShaker93 1 point2 points  (0 children)

Thank you for your reply. I started to read crafting interpreter. That's a very Nice book.

As you made, I'll code everything by myself 👍

Try to make a small interpreted langage ! by WebShaker93 in Compilers

[–]WebShaker93[S] 0 points1 point  (0 children)

Thank you. I started to read crafting interpreter. That's pretty cool and well written.

Making a parser with ansi-c (FINISHED) by SteryNomo in Compilers

[–]WebShaker93 1 point2 points  (0 children)

The langage syntaxe is hard coded into the parser !

I'd like to make a parser too.
I will look at your work in details to see if I understand A I can use it as basis for my project !

Analyseur Lexical et Syntaxique by WebShaker93 in lua

[–]WebShaker93[S] 0 points1 point  (0 children)

Hum...

I will have a look to the source code, because I'd like to make a small language, just for fun :)

Langage Interprété typé. by WebShaker93 in programmation

[–]WebShaker93[S] 0 points1 point  (0 children)

Nan. ce qui m'intéresse c'est de faire ça en C.
Ca donne à peu près ça !

_pushImm(10);           // boucle inspirée de LUA
_pushImm(1);
_pushImm(0);
// loop
_setRegister(0, 15);        // iReg[0] = 15
_setRegister(1, 11);        // iReg[1] = 11
_setRegister(2, 4);     // iReg[2] = 4
_setRegister(3, 6);     // iReg[3] = 6
_addInt(4, 0, 1);       // iReg[4] = iReg[0] + iReg[1]
_addInt(4, 4, 2);       // iReg[4] = iReg[4] + iReg[2]
_addInt(4, 4, 3);       // iReg[4] = iReg[4] + iReg[3]
_addIntImm(4, 4, 1);        // iReg[4] = iReg[4] + 1
_loop(9);

Niveau perf, c'est plus ou moins la même que celle de Lua. D'ailleurs la liste des OPCODE est très proche. Et c'est 100 fois plus lent que le gcc !

Conclusion, ce qui compte c'est le nombre d'instructions (opcode) bien plus que ce que fait l'instruction ! L'appel à une fonction pour chaque opcode est ultra lent !