Group Abstract Group Abstract

Message Boards Message Boards

1
|
618 Views
|
3 Replies
|
3 Total Likes
View groups...
Share
Share this post:
GROUPS:

Is there an issue with Compilation in v14.3?

Posted 2 months ago

I recently upgraded to 14.3.0 for Mac OS X ARM (64-bit) (July 8, 2025).

I wanted to play with the compilation of functions again and thus started with the Compiler Manual Tutorial. The First Steps Section starts with:

func = Function[Typed[arg, "PackedArray"::["MachineInteger", 1]], 
   AllTrue[arg, # > 0 &]]; and func[{1, 2, 3, 4}]

which is fine, However, when I execute the:

comp = FunctionCompile[func]

I get the error : FunctionCompile::err1: Cannot resolve the "Complex" type constructor.
I did look briefly at compilation in v14.2, (which worked), but having upgraded to v14.3 now fails! I did not find anything about compiler setup etc. What am I missing?

POSTED BY: Karl Fraser
3 Replies
Posted 2 months ago

The fact that it works out-of-the-box for you guys made me realise that I had obviously over tweaked!

On closer examination of my setup, I had recently created a flat Association variable (which includes a 'get' Key) for some global Options. Although the 'get' was lower case, I had not wrapped it as a String. This was silently interfering with the FunctionCompile Command. Although interestingly not the Get command itself?

Resolved now. Note to self - ensure Options are STRINGS.

Thanks Guys.

POSTED BY: Updating Name
POSTED BY: Michael Rogers
POSTED BY: Daniele Gregori
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard