Should I use shared object (.dll, .so) files or bytecode files for plugins?

I remember, back when I used Windows, a lot of programs used .dll files for plugins, but I also understand that dll files can easily be malicious, and it wouldn't be hard to create a malicious plugin. So, what I'm wondering, is if it'd be a better idea to use a bytecode interpretor instead. This would allow my program to execute the code in a way that can easily prevent malicious plugins but as far as I know, people only use bytecode when they're working on really big projects and I know that writing my program to support bytecode would take a very long time. I've already Googled around for answers and I can't find many. What do you guys think?
I usually use .dlls. But that of course depends on what are you going to do, if security is a big concern, then I guess you could use bytecodes instead. Though dlls are easier to make.
Topic archived. No new replies allowed.