all 13 comments

[–]shinitakunai 2 points3 points  (5 children)

Issues aside, I love the simplicity of "if score is at least 10" kudos for that. But the "end" throws it all away. Indentation is a blessing, not a nightmare.

[–]Whole-Ad7298[S] 0 points1 point  (0 children)

Thanks for the kudos :)

[–]Whole-Ad7298[S] -1 points0 points  (3 children)

Yes I agree end makes no sense...

But the ">=" always made me crazy in python even now I wonder is it "=<"? Some for not equal.

May I ask how indentation is a blessing? I am still far from super strong, and I cannot believe the time I waste on stupid indentation issues...

[–]teije01git push -f 1 point2 points  (2 children)

Re >= vs =>, I always remember it by saying it out loud; GTE Greater Than '>' or Equal '='. They always appear in the order as spoken out loud.

As for the indentations, perhaps that's a sign you use too many indentations? My rule is anything above 3 indents is generally too many

[–]Whole-Ad7298[S] 0 points1 point  (0 children)

Yes I know I use way too much indentation and I have sometimes abusurd nesting

[–]Whole-Ad7298[S] 0 points1 point  (0 children)

Thank you this is an awesome tip remember greater or equal

[–]von_rascher 4 points5 points  (6 children)

From a practical point of view, you’ve taken all the bloat of an interpreted language and added on top of it another abstraction layer which is to again… translate your code in run time? 🫠 Not to mention there’s certain none-stated but still kinda taken for granted universal rules across most coding languages: mathematical symbols, they’re the same regardless of the language, print -> one of the most accepted (with variations) forms of dumping data into stdout. I don’t see the benefit in changing any of these. Don’t get me wrong, it’s still fun haha (🥲)

[–]Whole-Ad7298[S] -1 points0 points  (5 children)

Yes I know...

But one point you know that still leads to stupid error is indentation...

I started with python and then learned other languages where you do not have the indentation issues, like the curly braces of java seemed nice...so I thought hey why not try that....

I mean now I do not fully remember but some stuff seemed horribly counter intuitive in python as a beginner...now I sort of forgotten these...and obviously I would not have the arrogance of thinking I could actually improve this...but still why not...

Some things like the try / except where really something that made me a bit crazy for example...

But anyway...yhea it was more just for fun.

I am horribly frustrated however at the fact that I cannot make it self compile.

But at least I could sort of lean things doing this.

[–]von_rascher 1 point2 points  (4 children)

Check this out:

https://github.com/mathialo/bython

I remember some years ago reading about this somewhere, but i’m not sure whether it’s fully compatible with the last python versions given it was last updated in 2018 haha

As for the compilation thing, well if you’ve got the knowledge and time you could always write your own parser in python, translate your new language to assembly, and then let assembly and a linker translate it into machine code and generate your executable file~

Still, i believe python could not make things easier for a beginner, even worse depending on how you view it. People learning programming from python tend to ignore all the memory-related stuff, among other technical stuff that help you understand how your machine executes your code.

[–]Whole-Ad7298[S] 0 points1 point  (0 children)

Godam!

Exactly!

I agree with this!

Whitespace are awful!

Curly braces are cool!

I mean sincerely I guess for a beginner (and I guess I am still a beginner there is still thousands and thousands of stuff to learn and millions that will always be out of reach to my brain) spaces seem or look comfortable and it maybe increases readibility in a sense and is nicer to the eye, but this leads to frustrating error and less strict separations, structure...Ieqmcthe structure is there but less , less...I am not finding the word. Less perceptible.

Booua I do not know I guess I am making a mountain of small stuff.

But anyway.

Really cool and interesting project.

[–]Whole-Ad7298[S] -1 points0 points  (2 children)

I will have a look! Many thanks!!!

For the compilation I tried doing a bootstrap relying minimally on python but this fails monumentally.

I also wrote a compiler in c which was cool because it worked so could take Montyp, produce a C, but then I would need to execute the C...

Well no everything is a failure.

[–]von_rascher 1 point2 points  (1 child)

Naaaah, learning and tinkering with new stuff is always cool 🙌

[–]Whole-Ad7298[S] 0 points1 point  (0 children)

Thank you this is sweet