frassle / ciltk Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
can you please also add the needed dependencies for weaving in the nuget package?
FSharp.Core.dll
...
That would be great!
Hi,
Edit:
I tried to compile the ciltk project. The UnitTest project cannot be compiled because of following error (sorry its german):
Unbehandelte Ausnahme: System.TypeInitializationException: Der Typeninitialisier
er für "<StartupCode$Loom>.$Silk.Loom.Parser" hat eine Ausnahme verursacht. --->
System.IO.FileLoadException: Die Datei oder Assembly "FSharp.Core, Version=4.0.
0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" oder eine Abhängigkeit da
von wurde nicht gefunden. Die gefundene Manifestdefinition der Assembly stimmt n
icht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)
bei <StartupCode$Loom>.$Silk.Loom.Parser..cctor()
--- Ende der internen Ausnahmestapelüberwachung ---
bei Silk.Loom.Parser.get_ptype()
bei Silk.Loom.Reference.ParseTypeReference(Scope scope, String reference) in
D:\ciltk-master\Loom\Reference.fs:Zeile 69.
bei Weave.StackAnalyser..ctor(ModuleDefinition module) in d:\ciltk-master\Rew
riter\StackAnalyser.cs:Zeile 221.
bei Weave.MethodVisitor.Visit(AssemblyDefinition assembly) in d:\ciltk-master
\Rewriter\MethodVisitor.cs:Zeile 26.
bei Weave.Program.Main(String[] args) in d:\ciltk-master\Rewriter\Program.cs:
Zeile 78.
I have installed Visual F# 3.1.2 and Vs 2013.
I dont exactly understand where the error occurs.
Thank you.
Hi,
when do I have to return with:
return Silk.Cil.Peek();
and when with:
Silk.Cil.Ret();
what are the difference?
You used it in OpenTk for example as:
public static Boolean SwapInterval(int interval)
{
Silk.Cil.Ldarg(0);
Silk.Cil.Load(EntryPoints);
Silk.Cil.Ldc_I4(16);
Silk.Cil.Ldelem_I();
Silk.Cil.Calli(CallingConvention.Winapi, typeof(Boolean), typeof(int));
return Silk.Cil.Peek();
}
public static Boolean ReleaseTexImage(IntPtr hPbuffer, int iBuffer)
{
Silk.Cil.Ldarg(0);
Silk.Cil.Ldarg(1);
Silk.Cil.Load(EntryPoints);
Silk.Cil.Ldc_I4(13);
Silk.Cil.Ldelem_I();
Silk.Cil.Calli(CallingConvention.Winapi, typeof(Boolean), typeof(IntPtr), typeof(int));
Silk.Cil.Ret();
throw new NotImplementedException();
}
both return a bool? Where are the differences?
Do I always have to get the IntPtr of a string with Silk.Cil.Peek() and convert the IntPtr to a string?
In the wiki I added a list with data types used in arguments and the equivalent usage in the function call. For example
public static int[] Func(IntPtr* p)
{
...
Silk.Cil.Calli(CallingConvention.Winapi, typeof(int_), typeof(IntPtr_));
...
}
Is the list correct?
Thank you.
Hi,
I get an exception when I run the rewriter under visual Studio 2015.
I think this is an roslyn issue. Did you already tested this?
Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.