Is there any way to use python script under Xamarin.Android? [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I know CSharp is the language in Xamarin,but sometimes some features of python are awesome,so I want invoke python scripts under Xamarin.
I know ironpython,so I try it.
I added some Required Assembly like: IronPython.dll,IronPython.Module,Microsoft.Scripting.dll...
Luckily,I built it successfully and it run on my Android device.
But When the code run at:
ScriptEngine engine = Python.CreateEngine();
ScriptScope scope = engine.CreateScope();
ScriptSource source = engine.CreateScriptSourceFromString("");
source.Execute(scope);
An error occured:
Microsoft.Scripting.InvalidImplementationException:
Type 'IronPython.Runtime.PythonContext' doesn't provide a suitable public constructor or its implementation is faulty:
Could not load type 'IronPython.Runtime.PythonContext' from assembly 'IronPython, Version=2.7.5.0, Culture=neutral, PublicKeyToken=7f709c5b713576e1'.
So,Is there any possibility to use Python Scripts on Xamarin.Android?

Short answer, No. You could conceivably port IronPython or some other Python runtime to work under Xamarin, but that would take considerable effort, and to my knowledge it hasn't been done before.

People have asked this before, but no, the crux of Xamarin is C# (or F#) so anything else is out of scope. Am sure other people are trying to do similar things with other languages like Python, but not through Xamarin

Related

Blender with C# instead of Python [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Like you can see in the title I want to know if it's possible to use C# or any other language instead of Python for Blender.
from blender.org:
The scripting interface is only for Python. If you are interested in
digging in the source code, then you may have some usage for C++ too.
The main source is coded in C, but as I know C++ is used in some parts
of Game Engine. You can download the source code from Blender's
homepage, and see if you can follow it. (Personally I do not.)
There are some interesting closely related projects coded in C++, if I
remember right, MakeHuman is one such. This may be the environment
most interesting for you if you want to keep using C++.
Blender supports many fileformats for importing and exporting models.
Some of them can be utilized in your own projects, as I know, quite
easily by C++. In this case you would use Blender for modelling your
meshes and C++ for writing your own interface utilising your models.
Yet still, be open for new ideas. C++ is quite oldfashioned
programming language, complex, not very readable. That's the main
reason why people today prefer Python.
So your answer is no. there might be a support for c++ (the source code indicates so) but no support for C#.

Ability to extend app with scripts [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Is it possible to make C# app use external scripts? Luke if i make shell application and i want to allow pepole add their own scripts (type command to add script from file and then execute it by command (example: 'calculator') I'll accept all ways to do this.
Not sure if this is what you are looking for, but by using the dynamic language runtime in .net you can integrate dynamic languages like ruby into your application. You could then write scripts in that language and interpret them in your app. I have used this to implement a plug-in system for one application, in which plug-ins (scripts) could be dynamically (at run-time) loaded into it without the need to recompile everything.
Two options come to mind:
Roslyn: It's now possible to embed C# scripts using the Roslyn scripting API. There are some samples in the GitHub wiki to get you started.
DLR: Scripting via the DLR is also possible. Here's an example that illustrates how to run an IronPython script from inside your C# app. However, my (highly subjective) impression is that Roslyn is generating more developer interest than IronPython/DLR these days.

How to convert c# DLL to vb DLL [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Please, can I convert a c# DLL to vb DLL, My problem is when I try to use svg.dll written in c# with a vb Code, Single and Float Types don't much, Any Help or suggestion !
Good news: There is no need to convert! A .NET DLL is neither a C# DLL nor a VB.NET DLL, it's simply a .NET DLL. You can use DLLs created with C# in VB.NET and vice-versa.
(Apparently, you have some specific issue using a third-party DLL. Now that you know that "the language of the DLL" is not the problem, I suggest that you start a new question about that and explain the problems you are having in detail. Beware of the XY problem!)

run c# code in java [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a code which is written in c#, how can I run it in java code??
Thanks
The ikvm project is a JVM written in .net - designed to allow Java and .net interoperability.
If it is a small chunk of code, I'd recommend rewriting it.
If it is a large chunk of code, I'd recommend:
wrapping it as a command and running it using System.exec(), or
turning it into a service and making requests using HTTP, a common RPC protocol or plain sockets.
Only if neither of those approaches were technically feasible would I consider something like JNI or IKVM.
Take a look at JNBridgePro (www.jnbridge.com), which is specifically designed to tightly integrate .NET and Java code.
Disclosure: I work for JNBridge.

how c# compiler works? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
how c# compiler works??
how it parses our whole solutions and .cs files... i want to know where it start and how everything works... i want to know from the asp.net perspective...
thx
If you're really interested in how a C# compiler works, you may want to read the source code from Mono's compiler, mcs.
Eric Lippert gave a great synopsis of the C# compiler in this answer.
A really brief explanation could be:
In Asp.net, you write an page.aspx file that get compiled into a .Net assembly, this assembly is then used by the Asp.Net runtime that execute http request.
This .Net assembly can be written in any .Net language like c# or VB.Net. But in the end, the code is compiled by the .Net CLR compiler into a Common Intermediary Language(CIL). This CIL is used by the CLR runtime which get loaded when you start a .Net process. The JIT then use this CIL and transform it into pure assembly that will be understandable by the computer.

Categories