• 6 Posts
  • 100 Comments
Joined 8 months ago
cake
Cake day: January 25th, 2024

help-circle





  • Those topics seems a little advanced for a Linux user without cyber security knowledge though. I personally don’t understand any of them lol. I know what hardening is, what CVEs are; but except for few anecdotes like the logj4, xz, etc, I don’t think I’d know enough to talk about the cyber security side of linux.

    I was thinking more along the side of daily life things. Like how programmer like linux because it’s easier to develop things and manage environments and cross program compatibility.







  • 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.




  • It’s not fun when you have to explain it. But basically it is based on the infinite multiverse theory. Since the multiverse splits whenever you make choices, in this case the program would spawn a large number of multiverses each with different combinations of those bits, which means at least one of them would have the exactly the combination we want. If the program destroys the multiverse it is in after it determines it is not correct, only reality that remains is the one with correct combination of bytes. Making it that we will get the code we want on the first try.