Questions tagged [alchemy]

Alchemy is a research project from Adobe Systems that allows for the compilation of C and C++ code to AVM2 bytecode, so that it can be run on Flash Player or Adobe AIR. This is accomplished by an initial compilation to LLVM bytecode as an intermediate step.

Alchemy is a research project from Adobe Systems that allows for the compilation of C and C++ code to AVM2 bytecode, so that it can be run on Flash Player or Adobe AIR. This is accomplished by an initial compilation to LLVM bytecode as an intermediate step.

148 questions
1
vote
2 answers

using 'ar' tool in Alchemy

I've found that if you specify a path to Alchemy's 'ar' tool, it won't create the 'l.bc' file necessary to link the library. For example, here is the case when I don't specify a path (it works): asimmons-mac:test asimmons$ echo 'int main() { return…
paleozogt
  • 6,393
  • 11
  • 51
  • 94
1
vote
0 answers

Error #1006 value is not a function in C++ code compiled by Alchemy

I'm trying to port a big library to Alchemy. I've run into something that looks like an Alchemy bug. I have a class with a static member. There's a static function that uses it. Something like this: In foo.h: class Foo { static Bar m_pBar; …
ggambetta
  • 3,312
  • 6
  • 32
  • 42
1
vote
0 answers

How to update my database with using mysql alchemy

I'm starting a new application and looking at using an ORM -- in particular, SQLAlchemy. For starters I created a python script which reads from a file and then creates a table in my database which has inside the contents of the first file. I want…
1
vote
1 answer

How do I force the Alchemy API to process text in English?

When calling the Alchemy API for language processing, it's sometimes auto recognizing the wrong language. (The text has lots of names, which sometimes throws off the auto recognition.) I know the text is all English, so is there a way to force the…
Alan
  • 86
  • 2
1
vote
2 answers

Flex Alchemy: Returning a ByteArray from C function

I am using Flex's Alchemy library to generate SWC's out of C files. I have a byte array (unsigned char buffer[size]) in the c-layer that I'd like to return to the ActionScript layer as a ByteArray. Do I have to iterate through the array and…
Raul Agrait
  • 5,938
  • 6
  • 49
  • 72
1
vote
3 answers

Increase Flash script execution time (FlasCC)

I am using FlasCC. My app works fine but takes long to load. I get a message that it has exceeded 15 seconds (Error #1502). How can I make this time longer?
Marcin
  • 65
  • 5
1
vote
2 answers

Can I make a swc file with alchemy that will work for AS3 programmers that do not use alchemy?

I am very new to Alchemy and not an expert in using swc to store code(Although I am well aware that it worked for me so far). I want to make sure I understand if Alchemy is the right tool for me in this situation. I want to make a simple script in…
AturSams
  • 7,568
  • 18
  • 64
  • 98
1
vote
0 answers

How to access Alchemy/C functions from Haxe

I am writing a project in Haxe targeting flash. We have licensed a library written in C, which is being provided as an Alchemy-compiled SWC. I can figure out the compilation options (I think), my concern is more things like: What do I import? Will…
Bjorn Roche
  • 11,279
  • 6
  • 36
  • 58
0
votes
1 answer

Alchemy cannot get the size of list

//--------------------------------------------test.cpp // g++ test.cpp -O3 -Wall -swc -o test.swc #include #include #include #include "AS3.h" using namespace std; //vector vf; list vf; static AS3_Val…
lightboat
  • 23
  • 4
0
votes
1 answer

Fail to compile c++ source to swc using Alchemy on Mac OS X Lion

When I tried to compile a [.cpp] file to [.swc] file, I got this: dyld: Library not loaded: /usr/lib/libltdl.3.dylib And I found that my libltdl is Poechant:src poechant$ ls -l /usr/lib/libltdl.* lrwxr-xr-x 1 root wheel 15 10 11 08:17…
Poechant
  • 11
  • 3
0
votes
1 answer

Using opencv in Flash Alchemy

I have a project that uses quite a few opencv libs to do some image processing tasks. Now I need to build a Flash app for it. I read that Alchemy allows compiling c++ libs for Flash. I wonder if anyone has tried to build flash apps using opencv…
user1030532
  • 573
  • 1
  • 5
  • 12
0
votes
1 answer

using flashzlib into flash project

I am integrating flashzlib into one of my flash project. As mentioned in documentation of project. I have successfully generated libz.a and z.l.bc and pushed libs and headers in appropriate places. Now, I have written this small wrapper…
Nakul
  • 1,574
  • 11
  • 13
0
votes
2 answers

Creating AS3 code for C++ classes converted with Alchemy (a là Box2D)

So I've a collection of C++ classes which I now have converting fine with Alchemy to a swc file and can call the exposed functions fine from my AS3 code. What I'd really like to do is recreate stuff like Box2D's b2Vec.as class, public class b2Vec2…
seaders
  • 3,878
  • 3
  • 40
  • 64
0
votes
2 answers

How to get Solana Nfts for owner with Metaplex in React? (Error: 410)

I try to get Solana Nfts for owner with Metaplex Javascript SDK but the request gives me the following response: Error: 410 Gone: {"jsonrpc":"2.0","error":{"code": 410, "message":"The RPC call or parameters have been disabled."} I use React-js…
Marco86
  • 9
  • 2
0
votes
0 answers

Why is Metamask throwing this Alchemy related error to my users?

I'm getting this problem when utilising Remix, and when utilising my DApp it comes out that Metamask is trying to get my user to switch to an Alchemy RPC. Any reasons why? The big issue is that it affects the entire user experience using Metamask…