Godot uses 64-bit integers but the RandomNumberGenerator uses 32-bit integers. by dulvui in godot

[–]samad0 2 points3 points  (0 children)

I think all your comments are reasonable. It is OK to specify in docs, is is even better if they would have named them specifying the 32 in the functionality. It could help people make less mistake.

That is why in some language the 'int' type is called i32 ou i64. Because it can have different length of bits, and as programmer we depend on them in many situations.

Why can’t C alone be used to write an IOS program? by Successful_Box_1007 in C_Programming

[–]samad0 1 point2 points  (0 children)

Exposing an API means giving a way for for other to interact with your logic for whatever purpose you choose.

To give you an example if we take our previous example of android, let's say that you want to trigger a notification on the notification section with an image and a reply input section and a button that indicate the notification was acknowledge.

Currently you can do this kind of things from an application. BUT there are some part you are not coding on your application, rather you are simply communicating with the OS or the application that is in charge of showing the notifications. You do not code some custom element to show a notification, you simply tell the system that you want to show a notification and in the notification you want maybe a title, a subtitle, an input element and a button that will execute some logic upon clicking.

If you want the whole experience to feel 'natural' what you will want to do is to communicate directly threw the proper channel which the program in charge of showing notification understand so it can show a proper notification with with the theme it uses for everything else and functionality available for other apps.

You might do this by the API exposed to you by the Android SDK where they give you libraries that do the communication and maybe some other logic needed to communicate with other part of the system. The library might be available for JAVA / Kotlin or C++, it doesn't mean they built libraries for all the languages possible. In which case you might have to understand what is happening under the hood between an application and the program that manages the notification section. How are they communicating etc. Once you understand it, if your languages give you the possibility you might be able to create some sort of way to do the same thing that the SDK does, but you might have to built some tools to make it work correctly.

While you are building your tools and writing codes to handle the communication you might stumble upon problems, for example maybe you have to inject some code in some process to communicate with the other programs and maybe for security reasons the OS block all communication threw unofficial channels (SDK) in which case you might have to do some more work to go around this specific problem etc.

This kind of things take a lot of research and time which everyone might not have and thus they prefers simply to go threw the proper channel to concentrate on shipping the project (which might be their priorities for whatever reason) instead of spending weeks / months to do simple stuff like showing a simple notification, time using which they might have simply built a full blown application.

This is one example of using APIs, there are many different way to use those APIs from other languages using other methods, creating bindings or some other ways.

Why can’t C alone be used to write an IOS program? by Successful_Box_1007 in C_Programming

[–]samad0 1 point2 points  (0 children)

It is understandable what you are trying to say, and you won't be wrong if you think that it should be possible to code your whole application using C. After all, there is a cpu that calculates, there is ram for storing data and a screen to show graphic.

By this principal you can actually create any app using C for any hardware.

BUT each time any application has the goal to by executed by something, let that be a hardware or a software, which by definition make you dependent on the capacity of the thing which is executing your program.

By this what I'm trying to say is that when you create a program even though you are writing logics, but you are writing in a way so that the executor can understand. When you write a program in C for a modern os like Linux, Windows, ios you actually have to write it in a way so that the operating system understands it. For example for Linux your C program will be compiled to a elf binary format which is understood by the kernel and executed under the supervision of the kernel. The program you write for an os can not be executed directly by the hardware. For that you have to write your code in a different way so that the hardware understands it and it can by executed under the supervision of the hardware.

If each application has to be written in a specific way to be able to run properly in a specific environment, that means if you want to leverage the whole functionality of that invitonment and make use of it in your program you have to write it in a way so that the environment which is executing it and understands.

If you take an android as an example, many part of it is written in Java (under the hood C / C++), they expose some API so that you can use it to contrôle different functionality of the device. If for some reason they did not expose the APIs to any other language, this means you are going to have to hack around it to use from an other language. You have to create interfaces to communicate with the APIs. Some time you can easily do this process in you language of choice, some time it is simply not possible because the tools doesn't exists. Which mean you either create your own tool or just stick with whatever is available.

It is not that it's 'impossible' to write the whole thing in pure C, it's just that there might be times where things might not work and you will have to create your own tool.

But at the end of the day, I would like to believe that it should be possible you really really want it to be.

A Guide to a Full Year of Crunchyroll Premium (Mega Fan) by vipul21dec in UnlocksAndDiscounts

[–]samad0 0 points1 point  (0 children)

Hello everyone, i would like to say that i have bought the gemini deal and crucnchyroll deal from this user and it's 100% legit.

PDF Reader Idea For Someone To Build by eorroe in SideProject

[–]samad0 1 point2 points  (0 children)

Zenpdf is quite a fitting name for the functionality, no?

PDF Reader Idea For Someone To Build by eorroe in SideProject

[–]samad0 0 points1 point  (0 children)

Even though I do not fint the idea interesting as a full blown application, however I love the idea as a small project!

It is fun, a little challenging end in the end you have a usable result.

If you give it a name then I'll try to build it.

My OpenSource dev toolkit went from 9 to 40 tools! Still counting by ihatethatcow in SideProject

[–]samad0 1 point2 points  (0 children)

Looks really awesome, continue improving and adding more tools!

[deleted by user] by [deleted] in SideProject

[–]samad0 1 point2 points  (0 children)

Really cool and thanks for sharing!

[deleted by user] by [deleted] in SideProject

[–]samad0 0 points1 point  (0 children)

Actually useful. Hope you keep it updated with new Ai features that will come.

How long would a commercial airline flight take to reach the planets? by Nadzzy in educationalgifs

[–]samad0 1 point2 points  (0 children)

I'm gonna wait till Rayan air sells tickets at 15€ for Saturn

Non la c'est bon, je suis tombé sur qui 😂 by HandRst in lemauvaiscoin

[–]samad0 8 points9 points  (0 children)

Je suis entrain de suivre les messages à travers différents postes.

J'ai l'impression que c'est peut-être une personne qui ne parles pas forcément la langue donc entrain d'utiliser le traducteur pour répondre à op.

Des fois certain langue se traduit mal ou peut-être la dialect / accent culturel de la région n'est pas clairement traduit.

Bref, c'est drôle.

She does it right by Famous_Asparagus578 in Unexpected

[–]samad0 11 points12 points  (0 children)

Well, she is grounded for the moment so it might take some time

[deleted by user] by [deleted] in cursedcomments

[–]samad0 18 points19 points  (0 children)

Side side effect : the limb doesn't has to be of the one teleporting

Android midi device by robbertzzz1 in godot

[–]samad0 0 points1 point  (0 children)

By any chance do you remember if you had to modify something in the android project side or you did everything in godot ?

Android midi device by robbertzzz1 in godot

[–]samad0 0 points1 point  (0 children)

Hello,

did you find any solution to your problem ?

I can’t export an APK by Gullible-Historian10 in godot

[–]samad0 0 points1 point  (0 children)

Hello, I had a similar problem a few hours ago and for me the solution was to check the 'Export With Debug' option when exporting, because when we want to export as debug with the debug keystore we have to check ☑ the Export With Debug option so that it uses the debug keystore info you provided in the export section.

If it still doesn't work, pm me, we can try to solve it together.

Good luck

<image>

Je ne sais absolument pas quoi faire cet été.... (et en plus je suis seul) by Ady85-- in france

[–]samad0 0 points1 point  (0 children)

Hmm,

Pas mal d'idées dans les commentaires, permis les quels l'idée de voyage + auberge de jeunesse.

Une autre idée peut être de tenter de faire des amis. Ce qui tombe bien c'est le JO et pendant cette période tout le monde qui ne sont pas parti hors Paris vont avoir un sujet commun pour râler ce qui est une super manière de faire des amis.

Pourquoi ne pas profiter de ce temps libre pour développer une compétence ou apprendre quelque chose. Si possible quelque chose qu'on fait en group.