What distribution of emacs are you using? What setup for rust? Because the run/debug things work on mine.
What distribution of emacs are you using? What setup for rust? Because the run/debug things work on mine.
Thank you. Yeah, something like this would work for me as I can add in a script and run it before compiling. But it won’t be a cross platform solution and windows/mac users are probably not going to be able to do anything. Maybe if I do the same thing but from build.rs it’ll work. I’ll try that.
That seems like a good compromise if I don’t find something better. Thank you.
I’m hoping to make it easy for people to add more functions, that’s why I want minimal code change required to add more functions.
Thank you for your detailed response.
I am ok using macros. But even proc macro only get the tokens and using in on the whole mod is unstable unless you use use it on mod sth{...}
instead of code being on in a different file (sth.rs).
The plug-in system is dynamic in a sense that my plans for it are loading them through shared libraries (.dll, .so) compiled separately by users. But I also have internally provided core plugins that come with the program. But rust ABI system is not that stable, so in worst case I might have to ask users to just add plugin code to some directory and re-compile program instead of loading from shared libraries. That’s why I’m trying to make it as simple as possible. Asking users to modify the rust code somewhere else yo register the plugin might be met with resistance.
I was thinking that using build script to parse the source code and generating those codes could work, but that seemed hacky. So I was trying to see if there are better solutions, as it felt like a problem people might have come across themselves.
Thank you. I just put the call with !
, I don’t necessarily want a macro solution. Any solution is acceptable, my requirement is that I can just keep adding more mods with functions in src/functions/
and not have to register each function.
Inventory seems like the solution I am looking for. Although in my case, instead of collecting different values of the same type, I want to collect different types that all have same trait. But maybe I can make a temporary struct with Box<dyn _>
member to collect it if trying to collect it directly doesn’t work. I do not plan to support WASM. I am planning to make C/C++ and Python API for the libraries though, so if it has problems with them, then I might have a problem.
I’ll repeat it as much as I can but we need yo open up new journals for these kind of things.
All we need is a good cloud for storage, and volunteers. I think comp-sci people do that with https://arxiv.org/
The journal should accept any user submitted papers but have ranking based on other people, like successful reproducible studies (which is also accepted in journal) will be linked to the original journal. Reviews and such can be their own articles but also linked to the journal.
That way, undergrads can do projects reproducing previous studies (given resources) which will still give them research credit. Failures and exploration will also give people credit as it helps other people’s research. We can just tag papers for novel ideas,failures, reproducing old paper,reviews, etc.
I think it has a chance to be very useful if we can pull it off. Although it’ll have the same problems as of social media with upvote system. So some more thoughts needs to be there for the actual implementation.
That’s what bibliography is. It’s already like that, or am I missing something?
We’re not saying pay the authors a bunch, we’re saying make the papers free to read. Or at least don’t charge authors and readers both, while keeping all the money for yourself.
Yup, looks like that movie. Thanks, I didn’t remember the name.
I remember there being something like this already. The final mission happens as they say “this is the final training for you”. The enemy (aliens) behave differently than expected in this final simulation because they are not immediately aggressive and are waiting while defending their location, but the child successfully eliminates them. And later learns that was the actual aliens and not the simulation. And the aliens were just trying to find a place and protect their new generation, or sth.
For adding with Firefox or similar apps on laptop. I have another program that monitors clipboard (or selection), can filter with regex and run custom commands. So simply copying the url to the video can trigger the curl command to add to playlist.
Making it in the phone is the hard part. I don’t know much about android dev so any help would be appreciated. I did find somewhere you can make a simple app with protocol definition for sharing, and on share to the app, run the request to the server in the local network.
I also want to implement file share, if you share a file to that app from local storage, it could upload to the server and mpv can stream it. Since I have used the basic tcp connection, I couldn’t do that in this version either.
Thank you. I did think there might be a way.
My program is basically doing printf "%d\n" {{1..3},{7..8}}
in that case. Can bash do step? like 1:2:10
would be 1,3,5,7,9
I know, and no one will believe me