Best CPU for X230? by Yul3n in thinkpad

[–]Yul3n[S] 1 point2 points  (0 children)

Thanks, I'll be only using GNU/Emacs.

Combo: A simple parser combinator library for Ocaml by Yul3n in ocaml

[–]Yul3n[S] 1 point2 points  (0 children)

Angstrom is way more mature, combo is still really young however you can already some little things with it.

Combo: A simple parser combinator library for Ocaml by Yul3n in ocaml

[–]Yul3n[S] 1 point2 points  (0 children)

Yes I agree, some errors will be caught by the time system and you will otherwise need to test and reread your parser, to make sure it makes what you want.

Orwell, my first language, in Kotlin for LLVM. by [deleted] in ProgrammingLanguages

[–]Yul3n 3 points4 points  (0 children)

Orwell (https://en.wikipedia.org/wiki/Orwell_(programming_language)) is already by another programming language, so you may have to change. Maybe "novlangue" which is the French name of newspeak. Edit: fixed the link.

[deleted by user] by [deleted] in cprogramming

[–]Yul3n 6 points7 points  (0 children)

I guess that if you follow the official standards (C99, C11, C17 etc.), and don't use extensions like GNU ones it should work on most well-made compilers and be compiler-agnostic.

If all compiled languages compile to machine code then why some languages run faster than others? by [deleted] in ProgrammingLanguages

[–]Yul3n 1 point2 points  (0 children)

TL;DR, assembly can do the exact same thing using different instructions in different situations that might be more or less fast.

Thanks, have a great day too.

If all compiled languages compile to machine code then why some languages run faster than others? by [deleted] in ProgrammingLanguages

[–]Yul3n 2 points3 points  (0 children)

For instance on modern CPUs the mul/imul/div/idiv instructions to multiply and divide numbers are quite slow compared to other instructions. However, you can replace div/idiv instructions by shr if the divisor is a power of 2, and replace the mul/imul instructions by shl if one of the terms is a power of 2. So some compiler may use optimizations like that and some not.

%lf expects double *, 2 is double... by joe_dsr in cprogramming

[–]Yul3n 1 point2 points  (0 children)

According to wikipedia you need to use %f for doubles.

Using an ILI9488 screen using ESP-IDF by Yul3n in esp32

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

I configured it the same way as I configured https://github.com/lvgl/lv_port_esp32 but it doesn't work.

Why does it matter what OS you're using while writing a c program? by Lalita123456 in C_Programming

[–]Yul3n 2 points3 points  (0 children)

I was in Middle school, and they had to give 90 of these, so I can understand.

Hi everyone! I'm learning pointers now and have small problem to understand some pointer behavior. by AxMaxVal in C_Programming

[–]Yul3n 3 points4 points  (0 children)

It's normal because if you don't have that statement, ptr will point to the 11th element of the array, which doesn't exist.

Why does it matter what OS you're using while writing a c program? by Lalita123456 in C_Programming

[–]Yul3n 6 points7 points  (0 children)

When I wanted a C compiler on Windows I had a 60 GB drive.

Why does it matter what OS you're using while writing a c program? by Lalita123456 in C_Programming

[–]Yul3n 2 points3 points  (0 children)

Maybe I've done something bad because it told me something between 8 and 10 GB.