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
1 answer

How do you generate "l.bc" files?

I have been trying in vain for almost two weeks now to generate a "l.bc" files based on my very own library for building a swc with Alchemy. I have tried doing (in both alc-on / alc-off modes) ar rc myOwnLibrary.a myOwnlibraryObj1.o…
Gary Tsui
  • 1,755
  • 14
  • 18
1
vote
2 answers

Protect method calls in a swc residing in another swc

I have an alchemy compiled swc which contains methods to perform certain key algorithms. These methods should only return values only if user is authorized(bought license from online service) for security purpose. So I am planning to add another SWC…
mobdev999
  • 27
  • 5
1
vote
2 answers

is an alchemy C library faster/slower than an equivalent as3 library?

I've got a simple question. Suppose some simple lib written on c. Did I understood correctly that alchemy compiles it AS3 before compiling it to swf. If so, will the lib be slower or faster in comparison with the same lib written on AS3.
Eugeny89
  • 3,797
  • 7
  • 51
  • 98
1
vote
0 answers

AS3 Alchemy byteArray float conversion from sound extract

I'm trying to do something simple: send a byteArray to a C library, fill up a buffer and read the memory, but I think I have float conversion problems. Here is what I do in AS: var memory:ByteArray = gstate.ds; // get sound var soundBytes:ByteArray…
Soundstep
  • 618
  • 2
  • 6
  • 11
1
vote
1 answer

How do i get a reference to an alchemy asm declared variable into flash?

i have a variable declared in alchemy asm: asm("var buffer:Vector. = new Vector.(100, true);"); i can populate it with data like so: asm("buffer[%0] = %1;" : : "r"(index) : "r"(value)); what i can't figure out is how to get a…
kyunghoon
  • 41
  • 4
1
vote
3 answers

return values from calling a function using lua alchemy

Im calling a function in lua from actionscript using callstack : Array = luaAlchemyInstance.doString("luafunction"); my function should return some values function luafunction() return true, 125 end When i look at the callstack array returned by…
serenskye
  • 3,467
  • 5
  • 35
  • 51
1
vote
4 answers

Is Alchemy Server sided or client sided?

i know that action script is client sided. But i am very confused when i am using alchemy. Is alchemy client sided or server sided?
karthick
  • 11,998
  • 6
  • 56
  • 88
1
vote
0 answers

FlasCC, Alchemy, CrossBridge - How to use C++ class in ActionScript3 code?

How can I use c++ class in ActionScript3? I want to use the BulletPhysics physics library (C++) in my ActionScript3 game. How can I do it and compile my game (AS3) main class as document class (create main.cpp and addChild as3 main class? how?) in…
1
vote
1 answer

Populating a C array with from an AS3_Val

When receiving an array from flash, in C, how do I populate that array when its size isn't constant but the values types are? In Alchemy's documentation, the example given is: S3_ArrayValue(arr, "IntType, StrType, DoubleType", &arg0, &arg1,…
dutzi
  • 1,880
  • 1
  • 18
  • 23
1
vote
2 answers

API Watson and API Alchemy cannot do sentiment analysis in url portuguese language

API Watson and API Alchemy, cannot be able to do sentiment analysis in Portuguese language, I did within two ways "keywords" and "sentiment" alone with URL, running very well with url english but not in Portuguese, only keywords and relevance…
Marco SC
  • 13
  • 5
1
vote
0 answers

How we can call URLGetCombinedData in java using Alchemy API with different parameters?

I am using Alchemy API for my project. I want to call a method URLGetCombinedData with different parameter. By default it has four parameter i.e concepts, entity, taxonomy and keyword. But i want to call other parameters like author, relation etc.…
vin
  • 231
  • 1
  • 17
1
vote
1 answer

how to code a chat bot to use Alchemy data

Apologies for posting a basic question and not a detailed programming problem! Alas, IBM send people here for BlueMix support. We're evaluating different AI Bots, and with Watson what we want to do, I think, is use Alchemy to analyze our web site,…
1
vote
0 answers

How to use the AlchemyAPI for face detection / recognition in Python

This is pretty much a generic question and just would like someone to point me the right direction. I understand the existence of an API in Alchemy as documented in…
misctp asdas
  • 973
  • 4
  • 13
  • 35
1
vote
1 answer

How to invoke Alchemy API in Java using Bluemix?

I am new to IBM Watson. Can some one guide me on how to invoke Alchemy in Java using Bluemix? Guide me about all the Maven dependence too.
Rakshith R Pai
  • 202
  • 1
  • 5
  • 13
1
vote
1 answer

Suggetions for overcoming a flash waveform performance problem

My question is sort of a follow on from this question below but I thought it'd be best to start a new question. help converting this as3 code to pixel bender code So I have a waveform drawing implementation in flash that extracts pcm data from an…
dubbeat
  • 7,706
  • 18
  • 70
  • 122