GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — Added info_string by botev · Pull Request #102 · arrayfire/arrayfire-rust Conversation
|
|
@botev While you are at it can you also add |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Should be fixed now, I've amended the commit. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ahh, that's a different story. I personally like the fact that currently the API hides all the messy-ness allocation and is pretty much defacto safe from Rust perspective. If it is up to me I would not expose this kind of things, as it means that the actor must be aware that he might be messing with allocator space that is not part of the Rust (e.g. malloc vs jemmaloc). It is and why I explicitly copy the string to Rust space. I guess that is more up to you guys really, but I don't feel in favour of such exposure. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@9prady9 I think it is still useful to keep it around for internal use. There may be some arrayfire functions that require calling this alloc and free. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@pavanky Do you mean we should expose it to user in rust wrapper ? I didn't understand what did you mean by internal use. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@9prady9 leave it inside the wrapper, no reason to expose it in rust as far as I can tell. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@pavanky The reason i asked for clarification is - this addition of |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@pavanky I think a better way would be to put such functions in an internal module and use it in required modules rather than expose this at the wrapper level itself. This new module containing fns that we want internally will not be exposed to the user. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@9prady9 That sounds reasonable too. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@botev Would it be possible for you to add such module and move this |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@9prady9 sure that's fine. could you point me out where you want the module to be placed and how should I name it? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@botev At the same level ( If there is no keyword in rust such as private, lets go with module name |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@9prady9 So one option is to put in Also the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@botev Sure, util will also do the job. Lets put it in util module. Do you mean the type alias |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yes, currently this is how it looks: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This discussion about DimT made me think about the other type aliases in the project. Most of the modules do this type aliasing. May be we can abstract all the aliases into For this PR, you can declare the alias in the May be in a different PR we can move all type aliases into defines module and use them from there. It will be a tedious and time taking change. I can take care of it but If you want to take care it you can do it in this PR itself. Please let me know if you want to. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ok so I think this should be done now. For any case please review the code that I'm not doing anything strange (for instance in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry for the another request, but can you please replace |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
That should have it all fixed |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.